/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.site-header--scrolled {
  border-bottom-color: var(--color-border);
  box-shadow: var(--shadow-soft);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.5rem;
}
.site-header__logo {
  display: inline-flex;
  align-items: center;
}
.site-header__logo img { display: block; width: auto; height: 114px; object-fit: contain; }
@media (max-width: 480px) {
  .site-header__logo img { height: 90px; }
}
.nav-list {
  display: none;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: nowrap;
}
.nav-list a {
  position: relative;
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  padding-block: 0.2rem;
}
.nav-list a::after {
  content: '';
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--color-gold-dark);
  transition: right 0.2s var(--ease);
}
.nav-list a:hover { color: var(--color-gold-dark); }
.nav-list a:hover::after { right: 0; }
.site-header__actions { display: flex; align-items: center; gap: var(--space-3); flex-shrink: 0; }
.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px; height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-graphite);
}

/* Services dropdown trigger (shared base; positioning differs by breakpoint below) */
.nav-item--dropdown { position: relative; }
.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  background: none;
  border: none;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-graphite);
  cursor: pointer;
  padding-block: 0.2rem;
}
.nav-dropdown-trigger:hover { color: var(--color-gold-dark); }
.nav-dropdown-trigger__icon { transition: transform 0.2s var(--ease); }
.nav-item--dropdown[data-open="true"] .nav-dropdown-trigger__icon { transform: rotate(180deg); }
.nav-dropdown a::after { display: none; }
.nav-dropdown a:hover { color: var(--color-gold-dark); }

@media (min-width: 1024px) {
  .nav-list { display: flex; }
  .nav-toggle { display: none; }

  .nav-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 0.85rem;
    min-width: 260px;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    padding: 0.4rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.18s var(--ease), transform 0.18s var(--ease), visibility 0.18s;
  }
  .nav-item--dropdown[data-open="true"] .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .nav-dropdown a {
    display: block;
    padding: 0.6rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
  }
  .nav-dropdown a:hover { background: var(--color-beige-light); }
}

@media (max-width: 1023px) {
  .nav-list {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--color-white);
    padding: var(--space-3);
    border-bottom: 1px solid var(--color-border);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
  }
  .nav-list--open {
    display: flex;
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-list > li { padding-block: var(--space-1); border-bottom: 1px solid var(--color-border); }
  .nav-list a::after { display: none; }

  .nav-dropdown-trigger { width: 100%; justify-content: space-between; padding-block: var(--space-1); }
  .nav-dropdown {
    max-height: 0;
    overflow: hidden;
    padding-left: var(--space-3);
    transition: max-height 0.25s var(--ease);
  }
  .nav-item--dropdown[data-open="true"] .nav-dropdown { max-height: 20rem; }
  .nav-dropdown li { border-bottom: none; padding-block: 0.35rem; }
  .nav-dropdown a { display: block; font-size: 0.875rem; color: var(--color-graphite-soft); }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: var(--fs-small);
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.btn--primary { background: var(--color-graphite); color: var(--color-white); }
.btn--primary:hover { background: var(--color-gold-dark); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--color-graphite); border-color: var(--color-graphite); }
.btn--ghost:hover { border-color: var(--color-gold-dark); color: var(--color-gold-dark); transform: translateY(-1px); }
.btn--small { padding: 0.55rem 1.1rem; font-size: 0.8rem; }

/* WhatsApp floating button */
.whatsapp-fab {
  position: fixed;
  bottom: var(--space-3);
  right: var(--space-3);
  z-index: 60;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-soft);
}

/* Footer */
.site-footer {
  background: var(--color-graphite);
  color: var(--color-beige-light);
  padding-block: var(--space-6) var(--space-3);
  margin-top: var(--space-7);
}
.site-footer__grid {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: 1fr;
}
.site-footer__logo {
  display: flex;
  align-items: center;
  margin-bottom: var(--space-2);
}
.site-footer__logo img {
  display: block;
  width: auto;
  height: 120px;
  object-fit: contain;
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 0.5rem 0.75rem;
}
.site-footer h3 { font-family: var(--font-sans); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--color-gold); margin-bottom: var(--space-2); }
.site-footer ul li { margin-bottom: 0.5rem; }
.site-footer a:hover { color: var(--color-gold); }
.site-footer__bottom {
  margin-top: var(--space-5);
  padding-top: var(--space-3);
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 0.8rem;
  color: rgba(245,240,230,0.6);
}
@media (min-width: 768px) {
  .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}

/* Section primitives — a hairline top rule marks each new section instead of
   raw whitespace, so consecutive sections read as structured, not broken */
.section {
  padding-block: var(--space-7);
  position: relative;
}
.section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--color-line);
}
.section:first-child::before,
.hero + .section::before { display: none; }
.section--tight { padding-block: var(--space-6); }
.section--beige { background: var(--color-beige-light); }
.section__heading { max-width: 720px; margin-bottom: var(--space-5); }
.section__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-gold-dark);
  margin-bottom: var(--space-2);
}
.section__eyebrow::before {
  content: '';
  display: inline-block;
  width: 1.25em;
  height: 1px;
  background: var(--color-gold-dark);
}
.section__heading p { color: var(--color-graphite-soft); font-size: 1.05rem; }

/* Hero */
.hero {
  padding-block: var(--space-8) var(--space-6);
  background: var(--color-beige-light);
}
.hero__grid {
  display: grid;
  gap: var(--space-5);
  align-items: center;
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-gold-dark);
  margin-bottom: var(--space-3);
}
.hero__eyebrow::before {
  content: '';
  display: inline-block;
  width: 1.25em;
  height: 1px;
  background: var(--color-gold-dark);
}
.hero h1 { margin-bottom: var(--space-3); }
.hero__subheadline {
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--color-graphite-soft);
  max-width: 52ch;
  margin-bottom: var(--space-4);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.hero__image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}
.hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-md);
}
@media (min-width: 1024px) {
  .hero__grid { grid-template-columns: 1.05fr 1fr; }
}

/* Hero entrance — plays once on load, above the fold, so motion is
   immediately visible without requiring the visitor to scroll first */
@keyframes hero-rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero__eyebrow, .hero h1, .hero__subheadline, .hero__actions, .hero__image {
  animation: hero-rise 0.7s var(--ease) both;
}
.hero h1 { animation-delay: 0.08s; }
.hero__subheadline { animation-delay: 0.16s; }
.hero__actions { animation-delay: 0.24s; }
.hero__image { animation-delay: 0.15s; }
@media (prefers-reduced-motion: reduce) {
  .hero__eyebrow, .hero h1, .hero__subheadline, .hero__actions, .hero__image {
    animation: none;
  }
}

/* Problems — kept as cards (the brief for this section explicitly asks
   for it), but with real icons, more air, and a stronger hover state */
.problem-grid {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .problem-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .problem-grid { grid-template-columns: repeat(3, 1fr); } }
.problem-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  transition: box-shadow 0.25s var(--ease), transform 0.25s var(--ease), border-color 0.25s var(--ease);
}
.problem-card:hover {
  box-shadow: var(--shadow-soft);
  transform: translateY(-4px);
  border-color: var(--color-graphite);
}
.problem-card__icon {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--color-beige-light);
  border: 1px solid var(--color-border);
  color: var(--color-gold-dark);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--space-3);
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease);
}
.problem-card__icon svg { width: 24px; height: 24px; }
.problem-card:hover .problem-card__icon {
  background: var(--color-graphite);
  border-color: var(--color-graphite);
  color: var(--color-white);
}
.problem-card h3 { margin-bottom: 0.4rem; }
.problem-card p { color: var(--color-graphite-soft); margin-bottom: 0; }

/* Services — a vertical, alternating "journey" instead of a card grid */
.service-journey {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}
.service-journey__item {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
}
.service-journey__icon {
  flex-shrink: 0;
  width: 68px; height: 68px;
  border-radius: 50%;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  color: var(--color-gold-dark);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-soft);
}
.service-journey__icon svg { width: 30px; height: 30px; }
.service-journey__title { margin-bottom: 0.35rem; }
.service-journey__content p { color: var(--color-graphite-soft); margin-bottom: 0; }
.service-journey__link {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  margin-top: var(--space-2);
  font-weight: 600;
  font-size: var(--fs-small);
  color: var(--color-gold-dark);
}
.service-journey__link:hover { color: var(--color-graphite); }
@media (min-width: 768px) {
  .service-journey::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0.5rem;
    bottom: 0.5rem;
    width: 1px;
    background: var(--color-line);
    transform: translateX(-50%);
  }
  .service-journey__item { width: calc(50% - var(--space-5)); }
  .service-journey__item--left { margin-right: auto; flex-direction: row-reverse; }
  .service-journey__item--right { margin-left: auto; }
}

/* Benefits — a large central image with benefits arranged around it */
.benefit-showcase {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  align-items: center;
}
.benefit-showcase__image { order: -1; }
.benefit-showcase__image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}
.benefit-showcase__col {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.benefit-item { display: flex; align-items: flex-start; gap: var(--space-3); }
.benefit-item__icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--color-beige-light);
  border: 1px solid var(--color-border);
  color: var(--color-gold-dark);
  display: flex; align-items: center; justify-content: center;
}
.benefit-item__icon svg { width: 20px; height: 20px; }
.benefit-item h3 { margin-bottom: 0.2rem; font-size: 1.05rem; }
.benefit-item p { color: var(--color-graphite-soft); margin-bottom: 0; font-size: var(--fs-small); }
@media (min-width: 1024px) {
  .benefit-showcase { grid-template-columns: 1fr 1.1fr 1fr; gap: var(--space-6); }
  .benefit-showcase__image { order: 0; }
  .benefit-showcase__image img { aspect-ratio: 3 / 4; }
}

/* Generic benefit/feature card grid — used by pages other than the
   homepage (e.g. sobre.html "O Que Nos Distingue"), which keeps a
   simple grid since it isn't the section this redesign targeted */
.benefit-grid {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .benefit-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .benefit-grid { grid-template-columns: repeat(3, 1fr); } }
.benefit-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  transition: box-shadow 0.25s var(--ease), transform 0.25s var(--ease), border-color 0.25s var(--ease);
}
.benefit-card:hover { box-shadow: var(--shadow-soft); transform: translateY(-3px); border-color: var(--color-gold); }
.benefit-card h3 { margin-bottom: 0.4rem; }
.benefit-card p { color: var(--color-graphite-soft); margin-bottom: 0; }

/* Process steps */
.process-steps {
  display: grid;
  gap: var(--space-3);
  counter-reset: step;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .process-steps { grid-template-columns: repeat(4, 1fr); } }
.process-step { position: relative; padding-top: var(--space-4); border-top: 1px solid var(--color-line); }
.process-step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-gold-dark);
  display: block;
  margin-bottom: var(--space-2);
}

/* Testimonials */
.testimonial-grid {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .testimonial-grid { grid-template-columns: repeat(2, 1fr); } }
.testimonial-card {
  background: var(--color-beige-light);
  border-radius: var(--radius-md);
  padding: var(--space-4);
}
.testimonial-card__quote { font-family: var(--font-serif); font-size: 1.1rem; margin-bottom: var(--space-2); }
.testimonial-card__author { font-size: var(--fs-small); color: var(--color-graphite-soft); }

/* FAQ accordion */
.faq { max-width: 760px; }
.faq-item { border-bottom: 1px solid var(--color-border); }
.faq-item__question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: var(--space-2);
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--color-graphite);
}
.faq-item__question::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--color-gold-dark);
  transition: transform 0.2s ease;
}
.faq-item[data-open="true"] .faq-item__question::after { transform: rotate(45deg); }
.faq-item__answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.25s ease;
  color: var(--color-graphite-soft);
}
.faq-item[data-open="true"] .faq-item__answer { max-height: 480px; padding-bottom: var(--space-2); }

/* CTA banner */
.cta-banner {
  background: var(--color-graphite);
  color: var(--color-white);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  text-align: center;
}
.cta-banner h2 { color: var(--color-white); }
.cta-banner p { color: rgba(245,240,230,0.85); max-width: 56ch; margin-inline: auto; margin-bottom: var(--space-3); }
.cta-banner__actions { display: flex; flex-wrap: wrap; gap: var(--space-2); justify-content: center; }
.cta-banner .btn--ghost { color: var(--color-white); border-color: rgba(255,255,255,0.4); }
.cta-banner .btn--ghost:hover { border-color: var(--color-gold); color: var(--color-gold); }

/* Contact form */
.contact-layout {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: 1fr;
}
@media (min-width: 1024px) {
  .contact-layout { grid-template-columns: 1.4fr 1fr; align-items: start; }
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  background: var(--color-beige-light);
  padding: var(--space-4);
  border-radius: var(--radius-md);
}
.form-row { display: flex; flex-direction: column; gap: 0.4rem; }
.form-row--split { display: grid; gap: var(--space-3); grid-template-columns: 1fr; }
@media (min-width: 480px) {
  .form-row--split { grid-template-columns: 1fr 1fr; }
}
.contact-form label, .contact-form legend { font-weight: 600; font-size: var(--fs-small); }
.contact-form input, .contact-form select, .contact-form textarea {
  font: inherit;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-white);
}
.contact-form input:invalid:not(:placeholder-shown),
.contact-form textarea:invalid:not(:placeholder-shown) {
  border-color: #B3413E;
}
.radio-group { display: flex; gap: var(--space-3); flex-wrap: wrap; font-weight: 400; }
.radio-group label { display: flex; align-items: center; gap: 0.4rem; font-weight: 400; }
.form-status { font-size: var(--fs-small); min-height: 1.2em; }
.form-status[data-state="success"] { color: #2F6B3E; }
.form-status[data-state="error"] { color: #B3413E; }
.contact-aside { background: var(--color-white); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: var(--space-4); }
.contact-aside__list li { margin-bottom: var(--space-2); }

.legal-content { max-width: 760px; }
.legal-content h2 { font-size: 1.25rem; margin-top: var(--space-4); }
.legal-content h2:first-child { margin-top: 0; }

/* Scroll reveal — applied by js/main.js's initScrollReveal() */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.reveal--visible {
  opacity: 1;
  transform: translateY(0);
}
/* Stagger grid children so a row reveals left-to-right, not all at once */
.problem-grid > .reveal:nth-child(2) { transition-delay: 0.06s; }
.problem-grid > .reveal:nth-child(3) { transition-delay: 0.12s; }
.problem-grid > .reveal:nth-child(4) { transition-delay: 0.06s; }
.problem-grid > .reveal:nth-child(5) { transition-delay: 0.12s; }
.problem-grid > .reveal:nth-child(6) { transition-delay: 0.18s; }
.service-journey__item.reveal { transform: translateY(24px); }
.service-journey__item--left.reveal { transform: translateX(-24px); }
.service-journey__item--right.reveal { transform: translateX(24px); }
.service-journey__item.reveal--visible { transform: translate(0, 0); }
.benefit-showcase__col > .reveal:nth-child(2) { transition-delay: 0.08s; }
.benefit-showcase__col > .reveal:nth-child(3) { transition-delay: 0.16s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition-delay: 0s; }
}

/* Full-bleed photo band — the "espaço para fotos" signature: a bold,
   uncropped-feeling image moment between text-heavy sections, with a
   short overlay statement instead of another paragraph. */
.photo-band {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.photo-band img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.photo-band::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(16, 21, 31, 0) 40%, rgba(16, 21, 31, 0.82) 100%);
}
.photo-band__content {
  position: relative;
  z-index: 1;
  color: var(--color-white);
  padding: var(--space-5) var(--space-4);
  max-width: 620px;
}
.photo-band__content .section__eyebrow { color: var(--color-gold); }
.photo-band__content .section__eyebrow::before { background: var(--color-gold); }
.photo-band__content h2 { color: var(--color-white); margin-bottom: 0; }
@media (min-width: 768px) {
  .photo-band { min-height: 520px; }
  .photo-band__content { padding: var(--space-6); }
}

/* Dark, "vivid" section variant for structural contrast between text-only bands */
.section--dark {
  background: var(--color-navy);
  color: rgba(255, 255, 255, 0.88);
}
.section--dark::before { background: rgba(255, 255, 255, 0.12); }
.section--dark h2, .section--dark h3 { color: var(--color-white); }
.section--dark .section__heading p { color: rgba(255, 255, 255, 0.7); }
.section--dark .section__eyebrow { color: var(--color-gold); }
.section--dark .section__eyebrow::before { background: var(--color-gold); }
.section--dark .process-step { border-top-color: rgba(255, 255, 255, 0.18); }
.section--dark .process-step::before { color: var(--color-gold); }
.section--dark .process-step p { color: rgba(255, 255, 255, 0.7); }
