*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--green);
  color: #fff;
  padding: 8px 12px;
  z-index: 10000;
}

.skip-link:focus {
  left: 8px;
}

.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

.hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Header */
.site-header {
  background: #fff;
  border-bottom: 1px solid #f1f1f1;
  position: relative;
  z-index: 100;
}

.topbar {
  padding: 10px 0 0;
}

.topbar__inner {
  display: flex;
  justify-content: flex-end;
}

.topbar__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  justify-content: flex-end;
}

.topbar__list a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--green);
  font-size: 16px;
}

.topbar__list svg {
  width: 16px;
  height: 16px;
  fill: var(--green);
}

.header-main__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 0 24px;
  min-height: 120px;
}

.logo img {
  width: min(436px, 100%);
  height: auto;
}

.nav-desktop ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: flex-end;
}

.nav-desktop a {
  display: block;
  padding: 12px 14px;
  font-size: 16px;
  text-transform: uppercase;
  color: #000;
  transition: color 0.2s;
}

.nav-desktop a:hover,
.nav-desktop a.is-active {
  color: var(--green);
}

.nav-toggle {
  display: none;
  background: rgba(0, 0, 0, 0.05);
  border: 0;
  border-radius: 3px;
  padding: 8px 10px;
  cursor: pointer;
  color: #494c4f;
}

.nav-toggle svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
  display: block;
}

.nav-toggle .nav-toggle__close {
  display: none;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__open {
  display: none;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__close {
  display: block;
}

.nav-mobile {
  background: #fff;
  border-top: 1px solid #eee;
}

.nav-mobile a {
  display: block;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  text-transform: uppercase;
  color: #55595c;
}

.nav-mobile a:hover {
  background: #55595c;
  color: #fff;
}

/* Hero */
.hero-slider {
  position: relative;
  overflow: hidden;
  background: #000;
}

.hero-slider__track {
  position: relative;
  height: 720px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}

.hero-slide__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.16);
}

.hero-slide__content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 90%;
  padding: 20px;
}

.hero-slide__heading {
  margin: 0;
  color: #fff;
  font-family: var(--font);
  font-size: 45px;
  font-weight: 600;
  line-height: 1.25;
  text-transform: uppercase;
  animation: fadeInUp 0.8s ease both;
}

.hero-slide.is-active .hero-slide__heading {
  animation: fadeInUp 0.8s ease both;
}

.hero-slide__hr {
  width: min(420px, 70%);
  margin: 18px auto 0;
  border: 0;
  border-top: 2px solid #fff;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate3d(0, 40px, 0);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.hero-slider__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 48px;
  height: 48px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 42px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.85;
}

.hero-slider__btn:hover {
  opacity: 1;
}

.hero-slider__btn--prev {
  left: 12px;
}

.hero-slider__btn--next {
  right: 12px;
}

.hero-slider__dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.hero-slider__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  padding: 0;
}

.hero-slider__dot.is-active {
  background: #1a1a1a;
}

/* Sections */
.section-dark {
  background: var(--dark);
  color: #fff;
  padding: 90px 0;
}

.section-green {
  background: var(--green);
  color: #fff;
  padding: 90px 0;
}

.section-head {
  text-align: center;
  margin-bottom: 40px;
}

.section-head--dark {
  background: var(--dark);
  padding: 90px 0 40px;
  margin: 0;
}

.section-title {
  margin: 0;
  font-size: 40px;
  font-weight: 600;
  color: #fff;
  text-transform: uppercase;
}

.section-divider {
  width: 100%;
  height: 1px;
  background: #fff;
  margin-top: 10px;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
}

.about-text {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
}

.about-text p {
  margin: 0 0 1.1em;
}

.about-contacts {
  margin-top: 28px;
  display: grid;
  gap: 12px;
}

.about-contacts li,
.about-contacts a {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: #fff;
  font-size: 18px;
  font-weight: 400;
}

.about-contacts svg {
  width: 18px;
  height: 18px;
  fill: var(--green);
  flex-shrink: 0;
  margin-top: 4px;
}

.about-media {
  display: grid;
  gap: 24px;
}

.about-fachada {
  width: 100%;
}

.about-founder {
  display: flex;
  align-items: center;
  gap: 24px;
}

.about-founder img {
  width: 42%;
  max-width: 220px;
}

.about-founder h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: #fff;
}

/* Banner mid */
.banner-mid {
  line-height: 0;
  background: var(--dark);
}

.banner-mid img {
  width: 100%;
  object-fit: cover;
  max-height: 563px;
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.service-card {
  display: grid;
  grid-template-rows: 1fr 1fr;
  min-height: 420px;
}

.service-card--gray {
  background: var(--card-gray);
}

.service-card--green {
  background: var(--green);
}

.service-card__title {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px 16px;
  border-bottom: 2px solid #fff;
}

.service-card__title h3 {
  margin: 0;
  font-size: 23px;
  font-weight: 600;
  color: #fff;
  text-transform: uppercase;
  line-height: 1.3;
}

.service-card__img {
  overflow: hidden;
}

.service-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Seguros */
.seguros-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.seguros-item {
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 21 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: filter 0.3s;
}

.seguros-item:hover {
  filter: brightness(0.85);
}

.seguros-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Photo carousel */
.section-gallery {
  padding-bottom: 70px;
}

.photo-carousel {
  position: relative;
  padding: 0 40px;
}

.photo-carousel__viewport {
  overflow: hidden;
}

.photo-carousel__track {
  display: flex;
  transition: transform 0.5s ease;
}

.photo-carousel__slide {
  flex: 0 0 20%;
  margin: 0;
  padding: 0;
}

.photo-carousel__slide img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 4px solid #fff;
}

.photo-carousel__btn {
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 36px;
  cursor: pointer;
}

.photo-carousel__btn--prev {
  left: 0;
}

.photo-carousel__btn--next {
  right: 0;
}

.photo-carousel__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.photo-carousel__dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  padding: 0;
}

.photo-carousel__dots button.is-active {
  background: #fff;
}

/* Map */
.map-wrap {
  background: #e8e8e8 url('/assets/img/maps-placeholder.jpg') center / cover no-repeat;
  line-height: 0;
  min-height: 450px;
}

.map-wrap iframe {
  border: 0;
  width: 100%;
  height: 450px;
  display: block;
  background: transparent;
}

/* Footer / contact */
.site-footer {
  background: var(--dark);
  color: #fff;
}

.footer-main {
  background: var(--dark);
  padding: 0 0 90px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}

.contact-form__field {
  margin-bottom: 24px;
}

.contact-form label {
  display: block;
  color: #fff;
  font-size: 14px;
  margin-bottom: 11px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  background: transparent;
  border: 1px solid #fff;
  color: #fff;
  font-family: var(--font);
  font-size: 15px;
  padding: 10px 12px;
  border-radius: 0;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--green);
  outline-offset: 1px;
}

.contact-form__submit {
  background: var(--green);
  color: #fff;
  border: 0;
  border-radius: 0;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  padding: 12px 28px;
  cursor: pointer;
}

.contact-form__feedback {
  margin-top: 12px;
  font-weight: 700;
  font-size: 1.1em;
}

.contact-list {
  display: grid;
  gap: 15px;
  margin-bottom: 50px;
}

.contact-list li,
.contact-list a {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: #fff;
  font-size: 18px;
  font-weight: 600;
}

.contact-list__icon {
  display: inline-flex;
  flex-shrink: 0;
}

.contact-list__icon svg {
  width: 18px;
  height: 18px;
  fill: var(--green);
  margin-top: 3px;
}

.footer-logo img {
  width: min(320px, 100%);
}

.footer-copy {
  background: var(--darker);
  text-align: center;
  padding: 18px 16px;
  font-size: 12px;
  color: #fff;
}

.footer-copy p {
  margin: 0;
}

/* WhatsApp float */
.wa-float {
  position: fixed;
  left: 40px;
  bottom: 10px;
  z-index: 9999;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green-wa);
  color: #fff;
  border-radius: 15px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.wa-float svg {
  width: 20px;
  height: 20px;
  fill: #fff;
}

/* Legal pages */
.page-legal {
  background: #fff;
}

.legal-page {
  background: #fff;
  color: var(--text);
  padding: 40px 0 80px;
}

.legal-page__title {
  margin: 0 0 24px;
  font-size: 36px;
  font-weight: 700;
  color: #333;
}

.legal-page__body {
  font-size: 16px;
  line-height: 1.7;
  color: #555;
}

.legal-page__body h2,
.legal-page__body h3,
.legal-page__body h4 {
  color: #333;
  margin-top: 1.4em;
}

.legal-page__body a {
  color: #a0522d;
  text-decoration: underline;
}

.legal-page__body details {
  border: 1px solid #ddd;
  margin: 12px 0;
  padding: 8px 12px;
  background: #fafafa;
}

.legal-page__body summary {
  cursor: pointer;
  font-weight: 600;
}

.legal-page__body strong {
  color: #333;
  display: inline-block;
  margin-top: 0.8em;
}

/* Responsive */
@media (max-width: 1024px) {
  .services-grid,
  .seguros-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .photo-carousel__slide {
    flex-basis: 33.333%;
  }

  .hero-slide__heading {
    font-size: 32px;
  }
}

@media (max-width: 767px) {
  .nav-desktop {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .header-main__inner {
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
    padding: 16px 0 20px;
  }

  .logo {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .logo img {
    width: min(280px, 90%);
  }

  .topbar__list {
    justify-content: center;
    gap: 10px;
    font-size: 14px;
  }

  .topbar__list span {
    font-size: 13px;
  }

  .hero-slider__track {
    height: 218px;
  }

  .hero-slide__heading {
    font-size: 19px;
  }

  .section-dark,
  .section-green,
  .section-head--dark,
  .footer-main {
    padding-top: 50px;
    padding-bottom: 50px;
  }

  .section-title {
    font-size: 25px;
  }

  .about-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .services-grid,
  .seguros-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .section-dark#servicos .container,
  .services-grid {
    padding-left: 0;
    padding-right: 0;
  }

  #servicos.section-dark {
    padding-left: 20px;
    padding-right: 20px;
  }

  .service-card {
    min-height: 360px;
  }

  .photo-carousel {
    padding: 0 28px;
  }

  .photo-carousel__slide {
    flex-basis: 100%;
  }

  .wa-float {
    left: 12px;
    bottom: 12px;
    font-size: 12px;
    padding: 8px 12px;
  }

  .map-wrap iframe {
    height: 320px;
  }

  .legal-page__title {
    font-size: 28px;
  }
}
