/* ============================================================
   VENEDIKT ATENDIMENTOS — stylesheet
   Tokens: dark green #0F2B22 · gold #C9A063 · cream #F7F3EA
   Display: Playfair Display · Body/UI: Montserrat
   ============================================================ */

:root {
  --green: #0F2B22;
  --green-deep: #0A1F18;
  --green-mid: #163A2C;
  --gold: #C9A063;
  --gold-soft: #E2C592;
  --gold-dim: rgba(201, 160, 99, 0.35);
  --cream: #F7F3EA;
  --cream-dim: #E4DCC8;
  --ink: #16211B;
  --ink-soft: #4B584F;
  --line-on-dark: rgba(247, 243, 234, 0.14);
  --line-on-light: rgba(15, 43, 34, 0.14);

  --serif: "Playfair Display", "Iowan Old Style", Georgia, serif;
  --sans: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --wrap: 1180px;
  --pad: clamp(1.5rem, 5vw, 4rem);
  --section-pad: clamp(4.5rem, 9vw, 8rem);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  font-family: var(--sans);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

section { position: relative; }

/* ---------- Type ---------- */

h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.01em; }

h1 { font-size: clamp(2.3rem, 5.4vw, 4.1rem); line-height: 1.08; font-weight: 600; }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); line-height: 1.16; }
h3 { font-size: clamp(1.2rem, 2vw, 1.4rem); line-height: 1.3; }

p { color: inherit; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65em;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.4rem;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--gold);
  display: inline-block;
}

.section--dark .eyebrow { color: var(--gold-soft); }

.lede {
  font-size: clamp(1.02rem, 1.5vw, 1.15rem);
  max-width: 46em;
  color: var(--ink-soft);
}

.section--dark .lede,
.section--dark p { color: var(--cream-dim); }

.section--dark { background: var(--green); color: var(--cream); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--cream); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--sans);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 0.95em 1.9em;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.35s var(--ease), background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease);
  white-space: nowrap;
}

.btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.btn--primary {
  background: var(--gold);
  color: var(--green-deep);
}
.btn--primary:hover { background: var(--gold-soft); transform: translateY(-2px); }

.btn--ghost-dark {
  border-color: var(--line-on-dark);
  color: var(--cream);
}
.btn--ghost-dark:hover { border-color: var(--gold); color: var(--gold-soft); transform: translateY(-2px); }

.btn--ghost-light {
  border-color: var(--line-on-light);
  color: var(--green);
}
.btn--ghost-light:hover { border-color: var(--green); background: var(--green); color: var(--cream); }

.btn--whatsapp {
  background: var(--green);
  color: var(--cream);
}
.btn--whatsapp:hover { background: var(--green-mid); transform: translateY(-2px); }
.btn--whatsapp svg { width: 16px; height: 16px; flex-shrink: 0; }

/* ============================================================
   HEADER
   ============================================================ */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.35rem 0;
  transition: padding 0.35s var(--ease), background 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--green);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}

.site-header.is-scrolled {
  padding: 0.85rem 0;
  box-shadow: 0 12px 30px -18px rgba(10, 31, 24, 0.55);
}
.site-header.is-scrolled::before { opacity: 1; }

.site-header .wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--serif);
  font-size: 1.18rem;
  letter-spacing: 0.02em;
  color: var(--cream);
  transition: color 0.35s var(--ease);
}

.brand .mark {
  width: auto;
  height: 34px;
  flex-shrink: 0;
}

.brand small {
  display: block;
  font-family: var(--sans);
  font-size: 0.55rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--gold);
  margin-top: 0.1rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2.1rem;
}

.main-nav a {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--cream-dim);
  position: relative;
  padding-bottom: 4px;
  transition: color 0.35s var(--ease);
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.3s var(--ease);
}
.main-nav a:hover { color: var(--gold); }
.main-nav a:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 1rem; }

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  border: none;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span {
  width: 22px; height: 2px;
  background: var(--cream);
  transition: all 0.3s var(--ease);
}

/* ============================================================
   HERO
   ============================================================ */

.hero {
  background: linear-gradient(165deg, var(--green) 0%, var(--green-deep) 78%);
  color: var(--cream);
  padding: clamp(8.5rem, 16vw, 11rem) 0 clamp(4rem, 8vw, 6rem);
  overflow: hidden;
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  top: -20%; right: -10%;
  width: 60vw; height: 60vw;
  max-width: 720px; max-height: 720px;
  background: radial-gradient(circle, var(--gold-dim) 0%, transparent 68%);
  opacity: 0.55;
  pointer-events: none;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr;
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: end;
  position: relative;
}

.hero h1 { margin-bottom: 1.6rem; }

.hero .lede { margin-bottom: 2.4rem; font-size: clamp(1.02rem, 1.5vw, 1.2rem); }

.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.hero-card {
  background: rgba(247, 243, 234, 0.05);
  border: 1px solid var(--line-on-dark);
  border-radius: 4px;
  padding: clamp(1.8rem, 3vw, 2.5rem);
  backdrop-filter: blur(6px);
}

.hero-card p:first-child {
  font-family: var(--serif);
  font-size: 1.35rem;
  line-height: 1.4;
  color: var(--cream);
  margin-bottom: 1.1rem;
}

.hero-card .flow-tag {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-soft);
  font-weight: 600;
}

/* ============================================================
   SECTION generic rhythm
   ============================================================ */

.section {
  padding: var(--section-pad) 0;
}

.section--light { background: var(--cream); }
.section--panel { background: #EFE9DA; }

.section-head {
  max-width: 44em;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow::before { display: none; }

/* reveal-on-scroll */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   SECTION 2 — A experiência começa aqui
   ============================================================ */

.intro-copy {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  max-width: 56em;
}

.intro-copy p { font-size: 1.05rem; color: var(--ink-soft); }

.intro-copy p::first-letter {
  font-family: var(--serif);
  font-size: 2.6rem;
  color: var(--gold);
  float: left;
  line-height: 0.7;
  padding-right: 0.1em;
  padding-top: 0.15em;
}

/* ============================================================
   SECTION 3 — O desafio (numbered list)
   ============================================================ */

.challenge-list { border-top: 1px solid var(--line-on-light); max-width: 52em; }

.challenge-item {
  display: grid;
  grid-template-columns: 3.2rem 1fr;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line-on-light);
  align-items: baseline;
}

.challenge-item .num {
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--gold);
}

.challenge-item p { font-size: 1.05rem; }

/* ============================================================
   SECTION 4 — Flow diagram (signature element)
   ============================================================ */

.flow-section { background: var(--green-deep); color: var(--cream); }

.flow-intro { max-width: 40em; margin-bottom: clamp(3rem, 6vw, 4.5rem); }

.flow-diagram {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: stretch;
  gap: 0;
  position: relative;
}

.flow-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.9rem;
  padding: 0 0.6rem;
  position: relative;
  z-index: 2;
}

.flow-node .dot {
  width: 54px; height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-on-dark);
  background: rgba(247, 243, 234, 0.04);
  transition: border-color 0.4s var(--ease), background 0.4s var(--ease), transform 0.4s var(--ease);
}

.flow-node.is-hub .dot {
  background: var(--gold);
  border-color: var(--gold);
  width: 74px; height: 74px;
}

.flow-node .dot svg { width: 22px; height: 22px; stroke: var(--cream); }
.flow-node.is-hub .dot svg { stroke: var(--green-deep); width: 26px; height: 26px; }

.flow-node .label {
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--cream);
}

.flow-node.is-hub .label { color: var(--gold-soft); font-weight: 600; }

.flow-node .sub {
  font-size: 0.74rem;
  letter-spacing: 0.03em;
  color: var(--cream-dim);
  line-height: 1.5;
}

.flow-connector {
  position: absolute;
  top: 27px;
  left: 0; right: 0;
  height: 1px;
  z-index: 1;
}

.flow-connector svg { width: 100%; height: 4px; display: block; overflow: visible; }

.flow-connector path {
  stroke: var(--gold-dim);
  stroke-width: 1.4;
  fill: none;
  stroke-dasharray: 6 6;
}

.flow-connector path.is-active {
  stroke: var(--gold);
  stroke-dasharray: 320;
  stroke-dashoffset: 320;
  transition: stroke-dashoffset 1.8s var(--ease);
}
.flow-diagram.is-visible .flow-connector path.is-active { stroke-dashoffset: 0; }

/* ============================================================
   SECTION 5 — grid of 6 cards
   ============================================================ */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-on-light);
  border: 1px solid var(--line-on-light);
}

.service-card {
  background: var(--cream);
  padding: clamp(2rem, 3vw, 2.6rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: background 0.35s var(--ease);
}

.service-card:hover { background: #fff; }

.service-card .num {
  font-family: var(--serif);
  font-size: 0.95rem;
  color: var(--gold);
}

.service-card h3 { color: var(--green); }
.service-card p { font-size: 0.94rem; color: var(--ink-soft); }

/* ============================================================
   SECTION 6 — Indicadores panel
   ============================================================ */

.metrics-section { background: var(--green); color: var(--cream); }

.metrics-intro { max-width: 40em; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }

.metrics-panel {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--line-on-dark);
  border-left: 1px solid var(--line-on-dark);
}

.metric {
  border-right: 1px solid var(--line-on-dark);
  border-bottom: 1px solid var(--line-on-dark);
  padding: 2rem 1.4rem;
}

.metric .tag {
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--gold-soft);
  margin-bottom: 0.7rem;
  display: block;
}

.metric p { font-size: 0.82rem; color: var(--cream-dim); line-height: 1.55; }

/* ============================================================
   SECTION 7 — Como funciona (steps)
   ============================================================ */

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.step {
  padding-top: 1.6rem;
  border-top: 2px solid var(--gold-dim);
  transition: border-color 0.4s var(--ease);
}
.step:hover { border-color: var(--gold); }

.step .num {
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--gold);
  display: block;
  margin-bottom: 0.9rem;
}

.step h3 { color: var(--green); margin-bottom: 0.7rem; }
.step p { font-size: 0.92rem; color: var(--ink-soft); }

/* ============================================================
   SECTION 8 — Para quem é
   ============================================================ */

.audience-section .wrap { max-width: 50em; }

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 2.2rem;
}

.tag {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 0.6em 1.2em;
  border: 1px solid var(--gold-dim);
  border-radius: 20px;
  color: var(--green);
}

/* ============================================================
   SECTION 9 — Fronteira
   ============================================================ */

.boundary-section {
  background: var(--green-deep);
  color: var(--cream);
  border-top: 1px solid var(--gold-dim);
  border-bottom: 1px solid var(--gold-dim);
}

.boundary-section .wrap { max-width: 46em; }

.boundary-section .lede { font-size: 1.02rem; }

/* ============================================================
   SECTION 10 — CTA final
   ============================================================ */

.cta-final {
  background: var(--green);
  color: var(--cream);
  text-align: center;
  padding: clamp(5.5rem, 10vw, 8rem) 0;
  position: relative;
  overflow: hidden;
}

.cta-final::before {
  content: "";
  position: absolute;
  bottom: -30%; left: 50%;
  transform: translateX(-50%);
  width: 80vw; max-width: 900px; height: 60vw; max-height: 500px;
  background: radial-gradient(ellipse, var(--gold-dim) 0%, transparent 70%);
  opacity: 0.45;
}

.cta-final .wrap { position: relative; max-width: 42em; }

.cta-logo {
  height: 76px;
  width: auto;
  margin: 0 auto 2.2rem;
}

.cta-final .eyebrow { justify-content: center; }
.cta-final .eyebrow::before { display: none; }

.cta-final h2 { margin-bottom: 1.2rem; }
.cta-final .lede { margin: 0 auto 2.4rem; text-align: center; }

/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
  background: var(--green-deep);
  color: var(--cream-dim);
  padding: clamp(3rem, 6vw, 4rem) 0 2rem;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--line-on-dark);
  margin-bottom: 1.6rem;
}

.footer-brand-block {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-mark {
  height: 40px;
  width: auto;
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.footer-brand {
  font-family: var(--serif);
  font-size: 1.1rem;
  letter-spacing: 0.03em;
  color: var(--cream);
  margin-bottom: 0.6rem;
}

.footer-tagline { font-size: 0.85rem; max-width: 26em; }

.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1.4rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  align-items: flex-start;
}

.footer-links a {
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--cream-dim);
  transition: color 0.3s var(--ease);
}
.footer-links a:hover { color: var(--gold); }

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-end;
}

.footer-contact a {
  font-size: 0.85rem;
  color: var(--cream-dim);
  transition: color 0.3s var(--ease);
}
.footer-contact a:hover { color: var(--gold); }

.footer-bottom { font-size: 0.76rem; color: rgba(228, 220, 200, 0.6); }

/* ============================================================
   Floating WhatsApp (mobile-friendly persistent CTA)
   ============================================================ */

.float-whatsapp {
  position: fixed;
  right: 1.3rem;
  bottom: 1.3rem;
  z-index: 90;
  width: 54px; height: 54px;
  border-radius: 50%;
  background: var(--green);
  border: 1px solid var(--gold-dim);
  display: grid;
  place-items: center;
  box-shadow: 0 14px 30px -12px rgba(10, 31, 24, 0.6);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
  opacity: 0;
  pointer-events: none;
}
.float-whatsapp.is-visible { opacity: 1; pointer-events: auto; }
.float-whatsapp:hover { transform: scale(1.07); }
.float-whatsapp svg { width: 24px; height: 24px; stroke: var(--gold-soft); }

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 980px) {
  .hero .wrap { grid-template-columns: 1fr; align-items: start; }
  .hero-card { order: -1; }

  .intro-copy { grid-template-columns: 1fr; }

  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); gap: 2.2rem 1.6rem; }
  .metrics-panel { grid-template-columns: repeat(3, 1fr); }

  .flow-diagram { grid-template-columns: repeat(5, 1fr); }
  .flow-node .sub { display: none; }
}

@media (max-width: 760px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }

  .header-actions .btn--whatsapp span { display: none; }
  .header-actions .btn--whatsapp { padding: 0.85em; border-radius: 50%; }

  .services-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .metrics-panel { grid-template-columns: repeat(2, 1fr); }

  .flow-diagram {
    grid-template-columns: 1fr;
    gap: 2.2rem;
  }
  .flow-connector { display: none; }
  .flow-node { flex-direction: row; text-align: left; justify-content: flex-start; }
  .flow-node .sub { display: block; }

  .challenge-item { grid-template-columns: 2.4rem 1fr; }

  .footer-top { flex-direction: column; }
  .footer-right { align-items: flex-start; }
  .footer-contact { align-items: flex-start; }
}

/* Mobile nav drawer */
.mobile-nav {
  position: fixed;
  inset: 0;
  background: var(--green-deep);
  z-index: 99;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  transform: translateY(-100%);
  transition: transform 0.45s var(--ease);
}
.mobile-nav.is-open { transform: translateY(0); }

.mobile-nav a {
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--cream);
}
.mobile-nav a:hover { color: var(--gold); }

.mobile-nav .btn { margin-top: 1rem; }
