:root {
  --color-navy: #001b5b;
  --color-blue: #1c5ec5;
  --color-teal: #20bfa6;
  --color-green: #39b061;
  --color-sky: #e7f4ff;
  --color-ice: #f4fbf9;
  --color-text: #0f1f2d;
  --color-muted: #5d6b7b;
  --shadow-soft: 0 20px 45px rgba(0, 27, 91, 0.12);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 10px;
  --container-width: min(1100px, 92vw);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--color-text);
  background: #ffffff;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover,
a:focus {
  color: var(--color-green);
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: var(--container-width);
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 16px;
  background: var(--color-teal);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  z-index: 999;
}

.skip-link:focus {
  left: 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 27, 91, 0.08);
}

.site-header.is-scrolled {
  box-shadow: 0 18px 35px rgba(0, 27, 91, 0.15);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.brand img {
  width: clamp(140px, 18vw, 220px);
  height: auto;
}

.primary-nav {
  position: relative;
  display: flex;
  align-items: center;
}

.menu {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-weight: 500;
}

.menu a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.98rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-muted);
  transition: color 0.2s ease, transform 0.2s ease;
}

.menu a::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: transparent;
  transition: background 0.2s ease;
}

.menu a:hover,
.menu a:focus {
  color: var(--color-navy);
  transform: translateY(-2px);
}

.menu a:hover::after,
.menu a:focus::after {
  background: var(--color-green);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  background: rgba(0, 27, 91, 0.08);
  cursor: pointer;
  transition: background 0.2s ease;
}

.nav-toggle .line {
  width: 20px;
  height: 2px;
  background: var(--color-navy);
  border-radius: 99px;
}

.nav-toggle:hover {
  background: rgba(0, 27, 91, 0.15);
}

.eyebrow {
  display: inline-flex;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-blue);
  font-weight: 600;
}

h1,
h2,
h3 {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  margin: 0 0 0.8rem 0;
  line-height: 1.25;
  color: var(--color-navy);
}

p {
  margin: 0 0 1.1rem 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 999px;
  padding: 0.85rem 1.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid transparent;
  position: relative;
  overflow: hidden; /* evita cortes de borda em alguns navegadores */
  background-clip: padding-box; /* impede halo claro em bordas com gradiente */
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button--primary {
  border: 0;
  color: #fff;
  box-shadow: 0 12px 20px rgba(0, 27, 91, 0.2);
  will-change: transform;
}
.button--primary::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-blue) 100%);
  z-index: -1; /* mantém o gradiente dentro do botão sem afetar o texto */
}

.button--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 30px rgba(0, 27, 91, 0.25);
}

.button--ghost {
  border-color: rgba(0, 27, 91, 0.3);
  color: var(--color-navy);
  background: rgba(255, 255, 255, 0.25);
}

.button--ghost:hover {
  transform: translateY(-2px);
  border-color: var(--color-navy);
}

/* Theme variants removed: fixed dark with image overlay */

.hero {
  background: #0b1f3e; /* fallback */
  color: #fff;
  position: relative;
  overflow: hidden;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  z-index: 0;
}

.hero::before {
  background-image: url('../images/hero.jpg');
  opacity: 1; /* imagem base sempre visível */
}
.hero::after {
  background-image: url('https://images.unsplash.com/photo-1501004318641-b39e6451bec6?auto=format&fit=crop&w=1920&q=80');
  opacity: 0;
  animation: heroCycle 14s ease-in-out infinite;
}

@keyframes heroCycle {
  0% { opacity: 0 }
  10% { opacity: 1 }
  50% { opacity: 1 }
  60% { opacity: 0 }
  100% { opacity: 0 }
}

.hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.55), rgba(0,0,0,.35));
  pointer-events: none;
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 3rem;
  grid-template-columns: minmax(0, 1fr) 320px;
  padding: 5rem 0 6rem;
}

.hero__content h1 {
  color: #fff;
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  text-shadow: 0 2px 18px rgba(0,0,0,.35);
}

.hero__content p {
  color: rgba(255, 255, 255, 0.82);
  max-width: 34ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

/* Melhorar contraste no banner */
.hero .eyebrow { color: #ffffff; opacity: .92; text-shadow: 0 2px 12px rgba(0,0,0,.35); }
.hero .button--ghost { border-color: rgba(255,255,255,.85); color: #fff; background: rgba(255,255,255,.12); }
.hero .button--ghost:hover { border-color: #fff; background: rgba(255,255,255,.2); }

.hero__stats {
  display: grid;
  gap: 1.5rem;
}

.stat-card {
  background: rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-card__label {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}

.stat-card__value {
  display: block;
  font-size: 2rem;
  font-weight: 700;
}

.contact-cta { background: var(--color-ice); padding: 1.2rem 0 2.2rem; }
.contact-cta__grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1rem; }
.contact-item { display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.25rem; background: #fff; border: 1px solid rgba(0,27,91,.08); border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); text-decoration: none; color: var(--color-text); transition: transform .18s ease, box-shadow .18s ease; }
.contact-item:hover { transform: translateY(-2px); box-shadow: 0 20px 36px rgba(0,27,91,.18); }
.contact-item__icon { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(28,94,197,.1); color: var(--color-navy); flex: 0 0 44px; }
.contact-item__icon svg { width: 22px; height: 22px; fill: currentColor; }
.contact-item--whatsapp .contact-item__icon { background: rgba(37,211,102,.12); color: #1fae5a; }
.contact-item__content { display: flex; flex-direction: column; line-height: 1.2; }
.contact-item__label { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--color-muted); }
.contact-item__value { font-size: 1.35rem; font-weight: 800; color: var(--color-navy); }

@media (max-width: 1024px){ .contact-cta__grid { grid-template-columns: 1fr; } .contact-item { padding: 1rem 1.1rem; } .contact-item__value { font-size: 1.25rem; } }

.section {
  padding: 5rem 0;
}

.section__grid {
  display: grid;
  gap: 3rem;
  grid-template-columns: 1.4fr 1fr;
  align-items: start;
}

/* About section full-width and single column */
.section--about .section__grid { grid-template-columns: 1fr; }
.section--about .section__content { max-width: none; }

/* USP strip full-width */
.section--usp { background: linear-gradient(180deg, var(--color-ice), #e7f4ff); padding: 3.5rem 0; }

.section__header {
  text-align: center;
  max-width: 60ch;
  margin: 0 auto 3rem;
}

.section__aside {
  display: flex;
  justify-content: center;
}

.usp-section { margin-top: 1.5rem; }

.highlight-box {
  background: linear-gradient(135deg, rgba(0, 27, 91, 0.07), rgba(32, 191, 166, 0.09));
  border-radius: var(--radius-lg);
  padding: 2rem 2.4rem;
  box-shadow: var(--shadow-soft);
}

.highlight-box h3 {
  margin-bottom: 1rem;
}

.highlight-box--usp { padding: 2rem; }
.usp-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1rem 1.25rem; }
.usp-item { display: flex; gap: .9rem; align-items: flex-start; background: rgba(255,255,255,.55); border: 1px solid rgba(0,27,91,.06); border-radius: 14px; padding: .85rem .9rem; }
.usp-icon { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, rgba(28,94,197,.14), rgba(32,191,166,.14)); color: var(--color-navy); flex: 0 0 42px; }
.usp-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.usp-item strong { display: block; font-size: .98rem; color: var(--color-navy); }
.usp-item p { margin: .2rem 0 0 0; color: var(--color-muted); font-size: .92rem; }
.trust-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.chip { background: #fff; border: 1px solid rgba(0,27,91,.08); border-radius: 999px; padding: .35rem .7rem; color: var(--color-text); font-size: .85rem; }
.chip strong { color: var(--color-navy); margin-right: .25rem; }

@media (max-width: 1024px){ .usp-grid { grid-template-columns: 1fr; } }

.section--services {
  background: var(--color-sky);
}

.services-grid {
  display: grid;
  gap: 1.8rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.service-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 2rem 1.8rem;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 55px rgba(0, 27, 91, 0.18);
}

.service-card__icon {
  width: 64px;
  height: 64px;
  margin-bottom: 1.5rem;
}

.service-card svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.service-card__icon img { width: 100%; height: 100%; display: block; }
.service-card svg * { vector-effect: non-scaling-stroke; }

.icon-ring {
  fill: none;
  stroke: rgba(0, 27, 91, 0.35);
  stroke-width: 2;
}

.icon-fill-soft {
  fill: rgba(32, 191, 166, 0.18);
}

.icon-fill-primary {
  fill: var(--color-teal);
}

.icon-fill-secondary {
  fill: var(--color-blue);
}

.icon-stroke {
  fill: none;
  stroke: var(--color-navy);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-dot {
  fill: var(--color-navy);
}

.icon-stroke--thin {
  stroke-width: 1.6;
}

.icon-bg-soft {
  fill: rgba(0, 27, 91, 0.08);
}

.icon-eye { fill: var(--color-navy); }

.section--highlight {
  background: linear-gradient(135deg, rgba(0, 27, 91, 0.04), rgba(32, 191, 166, 0.08));
}

.section--highlight .text-block {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 2.4rem;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.section--highlight .section__grid {
  align-items: stretch;
}

.section--highlight .text-block .summary {
  margin-bottom: 1rem;
}

/* Expandable content (ler mais/menos) */
.expandable {
  position: relative;
}
.expandable__content {
  position: relative;
  overflow: hidden;
  transition: max-height 220ms ease;
}
.expandable[data-collapsed="true"] .expandable__content {
  max-height: 9.5rem; /* ~6-7 linhas */
}
.expandable[data-collapsed="true"] .expandable__content::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3rem;
  background: linear-gradient(to bottom, rgba(255,255,255,0), #fff 85%);
}
.expandable__toggle {
  margin-top: 1rem;
}

.section--partners {
  background: #fff;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 2rem;
  align-items: center;
  justify-items: center;
  filter: saturate(0.85);
}

.partners-grid img {
  width: clamp(120px, 18vw, 170px);
  height: auto;
  opacity: 0.8;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.partners-grid img:hover {
  opacity: 1;
  transform: scale(1.04);
}

.section--gallery {
  background: var(--color-ice);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
}

.gallery-grid img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  box-shadow: 0 16px 32px rgba(0, 27, 91, 0.14);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: zoom-in;
}

.gallery-grid img:hover {
  transform: translateY(-4px);
  box-shadow: 0 32px 48px rgba(0, 27, 91, 0.2);
}

.section--contact .section__grid {
  grid-template-columns: 1.1fr 1fr;
  align-items: stretch;
}

.section--contact .section__content {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 2.6rem;
  box-shadow: var(--shadow-soft);
}

.section--contact .tagline {
  font-style: italic;
  color: var(--color-blue);
  font-weight: 600;
}

.map-wrapper {
  width: 100%;
  height: 100%;
  min-height: 360px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.site-footer {
  background: var(--color-navy);
  color: #fff;
  text-align: center;
  padding: 2rem 0;
  font-size: 0.9rem;
}

/* Modal */
.modal { position: fixed; inset: 0; display: none; z-index: 50; }
.modal.is-open { display: block; }
.modal__overlay { position: absolute; inset: 0; background: rgba(15, 31, 45, 0.6); }
.modal__dialog { position: relative; z-index: 1; width: min(720px, 92vw); max-height: 90vh; margin: 5vh auto; background: #fff; border-radius: var(--radius-lg); box-shadow: 0 40px 80px rgba(0,27,91,0.3); display: flex; flex-direction: column; }
.modal__header { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.25rem; border-bottom: 1px solid rgba(0,27,91,0.08); }
.modal__body { padding: 1.25rem; overflow: auto; }
.modal__footer { padding: 1rem 1.25rem; border-top: 1px solid rgba(0,27,91,0.08); display: flex; justify-content: flex-end; gap: .5rem; }
.modal__close { border: 1px solid rgba(0,27,91,0.15); background: #fff; border-radius: 50%; width: 36px; height: 36px; cursor: pointer; }
.modal__close:hover { background: rgba(0,27,91,0.06); }
body.has-modal { overflow: hidden; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; display: none; z-index: 60; }
.lightbox.is-open { display: block; }
.lightbox__overlay { position: absolute; inset: 0; background: rgba(15,31,45,.75); }
.lightbox__dialog { position: relative; z-index: 1; width: min(96vw, 1200px); height: min(90vh, 860px); margin: 5vh auto; display: flex; align-items: center; justify-content: center; }
.lightbox__image { max-width: 100%; max-height: 100%; border-radius: var(--radius-sm); box-shadow: 0 40px 80px rgba(0,27,91,.35); }
.lightbox__caption { position: absolute; left: 0; right: 0; bottom: -2.2rem; text-align: center; color: #fff; font-size: .95rem; text-shadow: 0 2px 10px rgba(0,0,0,.6); padding: 0 .5rem; }
.lightbox__close { position: absolute; top: -44px; right: 0; border: 1px solid rgba(255,255,255,.6); background: rgba(255,255,255,.15); color: #fff; border-radius: 50%; width: 38px; height: 38px; cursor: pointer; backdrop-filter: blur(4px); }
.lightbox__close:hover { background: rgba(255,255,255,.25); }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); border: none; background: rgba(255,255,255,.15); color: #fff; width: 44px; height: 64px; cursor: pointer; border-radius: 8px; backdrop-filter: blur(4px); font-size: 28px; line-height: 0; display: grid; place-items: center; }
.lightbox__prev { left: -54px; }
.lightbox__next { right: -54px; }

@media (max-width: 768px) {
  .lightbox__dialog { width: 92vw; height: 72vh; margin: 14vh auto; }
  .lightbox__prev { left: 8px; }
  .lightbox__next { right: 8px; }
  .lightbox__close { top: -50px; right: 8px; }
}

/* Accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
  }

  .hero__stats {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }

  .section__grid {
    grid-template-columns: 1fr;
  }

  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-strip__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .site-header .container {
    padding: 0.75rem 0;
  }

  .nav-toggle {
    display: flex;
  }

  .menu {
    position: absolute;
    top: calc(100% + 0.8rem);
    right: 0;
    flex-direction: column;
    background: #fff;
    border-radius: var(--radius-md);
    padding: 1.5rem;
    box-shadow: 0 22px 45px rgba(0, 27, 91, 0.18);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .menu.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .menu a {
    font-size: 0.85rem;
  }

  .hero__actions {
    flex-direction: column;
  }

  .contact-strip__grid {
    grid-template-columns: 1fr;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  }
}

@media (max-width: 600px) {
  .hero .container {
    padding: 4rem 0 5rem;
  }

  .section {
    padding: 4rem 0;
  }

  .section__header {
    margin-bottom: 2rem;
  }

  .contact-card {
    padding: 1.5rem;
  }

  .service-card {
    padding: 1.6rem;
  }

  .section--contact .section__content {
    padding: 2rem;
  }
}
