/* ==========================================================================
   Carolina Figueiredo Martins — Estilos
   1. Tokens  2. Base  3. Layout  4. Componentes  5. Seções  6. Responsivo
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
  --gold: #AD8747;
  --gold-light: #D8BA83;
  --gold-text: #7F6130;        /* tom derivado do dourado para textos pequenos em fundo claro (contraste AA) */
  --brown: #51372D;
  --brown-deep: #30211C;
  --white: #FFFFFF;
  --cream: #F7F3EB;
  --black: #171411;

  --text: #2A201B;
  --text-muted: #5E4F47;
  --line: rgba(81, 55, 45, .14);
  --line-strong: rgba(81, 55, 45, .26);
  --line-light: rgba(216, 186, 131, .28);

  --font-serif: "Playfair Display", "DM Serif Display", Georgia, "Times New Roman", serif;
  --font-sans: "Manrope", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(48, 33, 28, .06), 0 2px 8px rgba(48, 33, 28, .05);
  --shadow: 0 2px 6px rgba(48, 33, 28, .05), 0 14px 34px rgba(48, 33, 28, .08);

  --container: 1200px;
  --gutter: clamp(20px, 5vw, 40px);
  --header-h: 76px;
  --section-y: clamp(72px, 10vw, 128px);

  --ease: cubic-bezier(.22, .61, .36, 1);
  --t-fast: 200ms;
  --t: 320ms;
  --t-slow: 450ms;
}

/* 2. Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 8px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; line-height: 1.15; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--gold-light); color: var(--black); }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.ic { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ic-sm { width: .95em; height: .95em; }
.ic-lg { width: 2rem; height: 2rem; }

.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 200;
  background: var(--brown-deep); color: var(--white); padding: 10px 18px; border-radius: 8px;
  text-decoration: none; font-weight: 600; transition: top var(--t-fast) var(--ease);
}
.skip-link:focus { top: 12px; }

.sep { color: var(--gold); margin: 0 .5em; }
.muted { color: var(--text-muted); }
.small { font-size: .875rem; }

/* 3. Layout ---------------------------------------------------------------- */
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.grid-12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2.4vw, 32px); }
section { position: relative; }

.section-cream { background: var(--cream); }
.section-dark { background: var(--brown-deep); color: var(--cream); }
.section-brown { background: var(--brown); color: var(--cream); }

/* 4. Componentes ----------------------------------------------------------- */
.eyebrow {
  font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold-text); margin-bottom: 18px; display: inline-flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .7; }
.eyebrow-light { color: var(--gold-light); }

.section-title {
  font-family: var(--font-serif); font-size: clamp(1.95rem, 3.4vw, 2.9rem);
  color: var(--brown-deep); letter-spacing: -.01em; text-wrap: balance;
}
.section-title em { font-style: italic; color: var(--gold); }
.section-title-light { color: var(--white); }
.section-title-light em { color: var(--gold-light); }
.section-lead { margin-top: 20px; font-size: 1.125rem; color: var(--text-muted); max-width: 60ch; }
.section-lead-light { color: rgba(247, 243, 235, .82); }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head-center { margin-inline: auto; text-align: center; }
.section-head-center .eyebrow { justify-content: center; }
.section-head-center .section-lead { margin-inline: auto; }

/* Botões */
.btn {
  --b-bg: transparent; --b-fg: var(--brown-deep); --b-bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 12px 24px; border-radius: 999px;
  background: var(--b-bg); color: var(--b-fg); border: 1.5px solid var(--b-bd);
  font-weight: 600; font-size: .975rem; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: transform var(--t-fast) var(--ease), background-color var(--t) var(--ease), border-color var(--t) var(--ease), box-shadow var(--t) var(--ease), color var(--t) var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-gold { --b-bg: var(--gold); --b-fg: var(--black); --b-bd: var(--gold); box-shadow: 0 6px 18px rgba(173, 135, 71, .22); }
.btn-gold:hover { --b-bg: #B9955A; box-shadow: 0 10px 24px rgba(173, 135, 71, .3); }
.btn-brown { --b-bg: var(--brown); --b-fg: var(--white); --b-bd: var(--brown); }
.btn-brown:hover { --b-bg: var(--brown-deep); --b-bd: var(--brown-deep); }
.btn-ghost { --b-fg: var(--brown); --b-bd: var(--line-strong); }
.btn-ghost:hover { --b-bd: var(--gold); --b-bg: rgba(173, 135, 71, .06); }
.btn-outline-light { --b-fg: var(--cream); --b-bd: var(--line-light); }
.btn-outline-light:hover { --b-bd: var(--gold-light); }
.btn-block { width: 100%; }

.text-link {
  display: inline-flex; align-items: center; gap: 8px; color: var(--brown); font-weight: 600;
  text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 5px;
  transition: color var(--t-fast) var(--ease), text-decoration-color var(--t-fast) var(--ease);
}
.text-link:hover { color: var(--gold-text); text-decoration-thickness: 2px; }
.text-link-light { color: var(--gold-light); }
.text-link-light:hover { color: var(--white); }
.inline-link {
  background: none; border: 0; padding: 0; color: var(--brown); font-weight: 600; cursor: pointer;
  text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px;
}
.inline-link-light { color: var(--gold-light); }

.prose p + p { margin-top: 1.1em; }
.prose a { color: var(--brown); text-decoration-color: var(--gold); text-underline-offset: 3px; }

/* Revelação ao rolar (somente com JS e sem movimento reduzido) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* 5. Seções ---------------------------------------------------------------- */

/* Cabeçalho */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  background: rgba(247, 243, 235, .86); backdrop-filter: saturate(140%) blur(10px); -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: background-color var(--t) var(--ease), border-color var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--brown-deep); min-width: 0; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 50%; flex: none; display: grid; place-items: center;
  font-family: var(--font-serif); font-size: 1.05rem; letter-spacing: .02em;
  color: var(--gold-light); background: var(--brown-deep); border: 1px solid var(--gold);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.brand-name { font-family: var(--font-serif); font-size: 1.06rem; white-space: nowrap; }
.brand-sub { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-text); font-weight: 600; white-space: nowrap; }

.main-nav ul { display: flex; align-items: center; gap: clamp(14px, 1.5vw, 26px); }
.main-nav ul a {
  position: relative; display: inline-block; padding: 8px 0; text-decoration: none;
  font-size: .9rem; font-weight: 600; color: var(--brown); white-space: nowrap;
  transition: color var(--t-fast) var(--ease);
}
.main-nav ul a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1.5px; background: var(--gold);
  transform: scaleX(0); transform-origin: left; transition: transform var(--t) var(--ease);
}
.main-nav ul a:hover::after, .main-nav ul a[aria-current="true"]::after { transform: scaleX(1); }
.main-nav ul a[aria-current="true"] { color: var(--brown-deep); }
.mobile-nav-extra { display: none; }

.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-link, .menu-toggle {
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%;
  color: var(--brown); border: 1px solid var(--line-strong); background: transparent; cursor: pointer;
  transition: border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
}
.icon-link:hover, .menu-toggle:hover { border-color: var(--gold); color: var(--gold-text); }
.icon-link .ic { width: 18px; height: 18px; }
.menu-toggle { display: none; }
.menu-toggle .ic-close { display: none; }

/* Cabeçalho após rolagem: fundo marrom */
.site-header.is-scrolled { background: rgba(48, 33, 28, .97); border-bottom-color: var(--line-light); box-shadow: 0 8px 24px rgba(23, 20, 17, .18); }
.site-header.is-scrolled .brand { color: var(--white); }
.site-header.is-scrolled .brand-sub { color: var(--gold-light); }
.site-header.is-scrolled .main-nav ul a { color: rgba(247, 243, 235, .82); }
.site-header.is-scrolled .main-nav ul a:hover, .site-header.is-scrolled .main-nav ul a[aria-current="true"] { color: var(--white); }
.site-header.is-scrolled .icon-link, .site-header.is-scrolled .menu-toggle { color: var(--gold-light); border-color: var(--line-light); }

/* Hero */
.hero { background: var(--cream); padding: calc(var(--header-h) + clamp(40px, 7vw, 96px)) 0 clamp(48px, 6vw, 72px); overflow: hidden; }
.hero-curves { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-curves path { fill: none; stroke: var(--gold); stroke-width: 1; opacity: .28; }
.hero-curves path + path { opacity: .16; }
.hero-grid { align-items: center; row-gap: 56px; position: relative; }
.hero-copy { grid-column: 1 / span 7; }
.hero-visual { grid-column: 8 / span 5; position: relative; justify-self: end; width: 100%; max-width: 460px; }
.hero-title {
  font-family: var(--font-serif); font-weight: 500; color: var(--brown-deep);
  font-size: clamp(2.6rem, 6.2vw, 5.1rem); line-height: 1.02; letter-spacing: -.02em;
}
.hero-headline {
  margin-top: 26px; font-family: var(--font-serif); font-style: italic; color: var(--brown);
  font-size: clamp(1.3rem, 2.2vw, 1.75rem); line-height: 1.35; max-width: 24ch;
  padding-left: 20px; border-left: 2px solid var(--gold);
}
.hero-text { margin-top: 24px; color: var(--text-muted); max-width: 60ch; }
.location-badge {
  margin-top: 26px; display: inline-flex; align-items: center; flex-wrap: wrap; gap: 4px 8px;
  padding: 9px 18px; border-radius: 999px; background: var(--white); border: 1px solid var(--line);
  font-size: .9rem; font-weight: 600; color: var(--brown);
}
.location-badge .ic { color: var(--gold); width: 18px; height: 18px; }
.location-badge .sep { margin: 0 2px; }
.cta-row { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 12px; }

.portrait-arch {
  margin: 0; position: relative; aspect-ratio: 4 / 5; border-radius: 999px 999px var(--radius-lg) var(--radius-lg);
  overflow: hidden; background: var(--gold-light); box-shadow: var(--shadow);
}
.portrait-arch img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 38%; }
.hero-visual::before {
  content: ""; position: absolute; inset: -14px -14px 14px 14px; border: 1px solid var(--gold);
  border-radius: 999px 999px var(--radius-lg) var(--radius-lg); pointer-events: none; opacity: .7;
}
.hero-card {
  position: absolute; left: -40px; bottom: 36px; max-width: 250px; padding: 16px 18px; border-radius: var(--radius);
  background: var(--brown-deep); color: var(--cream); box-shadow: var(--shadow); border: 1px solid var(--line-light);
  display: flex; flex-direction: column; gap: 4px;
}
.hero-card-label { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--gold-light); }
.hero-card-text { font-size: .88rem; line-height: 1.45; }

.hero-pillars { margin-top: clamp(48px, 6vw, 80px); position: relative; }
.hero-pillars ul { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-strong); }
.hero-pillars li { padding: 22px 24px 0 0; font-size: .95rem; color: var(--text-muted); }
.hero-pillars li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.hero-pillars span { display: block; font-family: var(--font-serif); font-size: 1.15rem; color: var(--brown-deep); margin-bottom: 2px; }

/* Sobre */
.about { background: var(--white); }
.chapter-band { background: var(--brown); color: var(--cream); padding: clamp(56px, 7vw, 88px) 0; position: relative; overflow: hidden; }
.chapter-band::after {
  content: ""; position: absolute; right: -120px; top: 50%; width: 420px; height: 420px; transform: translateY(-50%);
  border: 1px solid var(--line-light); border-radius: 50%; pointer-events: none;
}
.chapter-band::before {
  content: ""; position: absolute; right: -40px; top: 50%; width: 260px; height: 260px; transform: translateY(-50%);
  border: 1px solid rgba(216, 186, 131, .18); border-radius: 50%; pointer-events: none;
}
.chapter-band-inner { position: relative; z-index: 1; }
.chapter-label { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; color: var(--gold-light); }
.chapter-title { margin-top: 14px; font-family: var(--font-serif); font-size: clamp(2.6rem, 6vw, 4.6rem); color: var(--white); letter-spacing: -.02em; line-height: 1.05; }
.chapter-intro { margin-top: 16px; max-width: 52ch; color: rgba(247, 243, 235, .82); font-size: 1.1rem; }

.about-grid { padding-block: var(--section-y); row-gap: 48px; align-items: start; }
.about-photo { grid-column: 1 / span 5; position: sticky; top: calc(var(--header-h) + 24px); }
.photo-frame { margin: 0; position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); background: var(--cream); }
.photo-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.about-facts { margin-top: 24px; display: grid; gap: 10px; }
.about-facts li { display: flex; align-items: center; gap: 12px; font-size: .95rem; font-weight: 500; color: var(--brown); padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--cream); }
.about-facts .ic { color: var(--gold); width: 18px; height: 18px; }
.about-text { grid-column: 7 / span 6; }
.about-text .section-title { margin-bottom: 28px; }
.lead-in { font-family: var(--font-serif); font-size: 1.3rem; line-height: 1.5; color: var(--brown-deep); }
.pull-quote {
  margin: 40px 0 32px; padding: 28px 30px; border-radius: var(--radius); background: var(--cream);
  border-left: 3px solid var(--gold); position: relative;
}
.pull-quote p { font-family: var(--font-serif); font-style: italic; font-size: 1.25rem; line-height: 1.5; color: var(--brown-deep); }
.pull-quote footer { margin-top: 12px; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--gold-text); }

.education { background: var(--cream); padding-block: var(--section-y); }
.education .grid-12 { row-gap: 40px; align-items: start; }
.education-head { grid-column: 1 / span 5; }
.education-head .muted { margin-top: 18px; }
.timeline { grid-column: 7 / span 6; position: relative; display: grid; gap: 28px; }
.timeline::before { content: ""; position: absolute; left: 23px; top: 24px; bottom: 24px; width: 1px; background: linear-gradient(var(--gold), var(--gold-light)); }
.timeline-item { position: relative; display: grid; grid-template-columns: 48px 1fr; gap: 20px; }
.timeline-dot { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--brown-deep); color: var(--gold-light); border: 1px solid var(--gold); position: relative; z-index: 1; }
.timeline-dot .ic { width: 22px; height: 22px; }
.timeline-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px; box-shadow: var(--shadow-sm); transition: box-shadow var(--t) var(--ease), transform var(--t) var(--ease); }
.timeline-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.timeline-period { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--gold-text); }
.timeline-title { margin-top: 8px; font-family: var(--font-serif); font-size: 1.4rem; color: var(--brown-deep); }
.timeline-degree { margin-top: 6px; color: var(--text-muted); }
.timeline-card .text-link { margin-top: 14px; font-size: .9rem; }


/* NR-1 */
.nr1 { padding-block: var(--section-y); overflow: hidden; }
.nr1::before {
  content: ""; position: absolute; right: -340px; top: -260px; width: 520px; height: 520px; border-radius: 50%;
  border: 1px solid var(--line-light); pointer-events: none;
}
.nr1-head { row-gap: 24px; align-items: end; margin-bottom: clamp(44px, 5vw, 64px); position: relative; }
.nr1-title-wrap { grid-column: 1 / span 7; }
.nr1-intro { grid-column: 8 / span 5; color: rgba(247, 243, 235, .82); }
.nr1-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; position: relative; }
.nr1-card {
  padding: 30px 28px; border-radius: var(--radius); background: rgba(255, 255, 255, .03); border: 1px solid var(--line-light);
  transition: border-color var(--t) var(--ease), background-color var(--t) var(--ease), transform var(--t) var(--ease);
}
.nr1-card:hover { border-color: rgba(216, 186, 131, .55); background: rgba(255, 255, 255, .05); transform: translateY(-2px); }
.nr1-num { font-family: var(--font-serif); font-size: 1.05rem; color: var(--gold); }
.nr1-card h3 { margin-top: 14px; font-family: var(--font-serif); font-size: 1.28rem; line-height: 1.3; color: var(--white); }
.nr1-card p { margin-top: 14px; font-size: .97rem; color: rgba(247, 243, 235, .8); }
.nr1-card-accent { background: var(--gold); border-color: var(--gold); color: var(--black); }
.nr1-card-accent:hover { background: #B9955A; border-color: #B9955A; }
.nr1-card-accent h3 { color: var(--black); }
.nr1-card-accent p { color: #2B2118; }
.nr1-ref { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line-light); display: grid; gap: 14px; font-size: .92rem; color: rgba(247, 243, 235, .74); max-width: 900px; }
.nr1-ref strong { color: var(--gold-light); font-weight: 600; }

/* Serviços */
.services { padding-block: var(--section-y); }
.cards-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.service-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px 32px;
  box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease), border-color var(--t) var(--ease);
}
.service-card::after { content: ""; position: absolute; left: 28px; right: 28px; bottom: 0; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform var(--t-slow) var(--ease); }
.service-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: rgba(173, 135, 71, .35); }
.service-card:hover::after { transform: scaleX(1); }
.service-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.service-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--cream); color: var(--brown); border: 1px solid var(--line); }
.service-icon .ic { width: 24px; height: 24px; }
.service-num { font-family: var(--font-serif); font-size: 1.05rem; color: var(--gold-text); }
.service-card h3 { font-family: var(--font-serif); font-size: 1.28rem; line-height: 1.3; color: var(--brown-deep); }
.service-card p { margin-top: 12px; font-size: .97rem; color: var(--text-muted); }
.section-cta { margin-top: 48px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }

/* Experiência */
.experience { padding-block: var(--section-y); background: var(--white); }
.experience-head { row-gap: 12px; align-items: end; margin-bottom: clamp(40px, 5vw, 56px); }
.experience-title { grid-column: 1 / span 6; }
.experience-lead { grid-column: 7 / span 6; margin-top: 0; }
.sector-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.sector-card {
  padding: 26px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white);
  transition: border-color var(--t) var(--ease), transform var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.sector-card:hover { border-color: rgba(173, 135, 71, .45); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.sector-card > .ic { width: 30px; height: 30px; color: var(--gold); stroke-width: 1.4; }
.sector-card h3 { margin-top: 18px; font-family: var(--font-serif); font-size: 1.16rem; color: var(--brown-deep); }
.sector-card p { margin-top: 8px; font-size: .92rem; color: var(--text-muted); line-height: 1.6; }
.sector-note { background: var(--cream); border-color: transparent; }
.sector-note > .ic { color: var(--brown); }
.sector-note p { color: var(--brown); font-size: .92rem; margin-top: 14px; }

/* Metodologia */
.method { padding-block: var(--section-y); overflow: hidden; }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; position: relative; counter-reset: step; }
.steps::before { content: ""; position: absolute; top: 31px; left: 12%; right: 12%; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-light) 12%, var(--gold-light) 88%, transparent); opacity: .6; }
.step { position: relative; text-align: center; padding: 0 8px; }
.step-num {
  width: 62px; height: 62px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; position: relative; z-index: 1;
  font-family: var(--font-serif); font-size: 1.2rem; color: var(--black); background: var(--gold-light); border: 6px solid var(--brown);
  box-shadow: 0 0 0 1px var(--gold);
}
.step h3 { margin-top: 22px; font-family: var(--font-serif); font-size: 1.3rem; color: var(--white); }
.step p { margin-top: 10px; font-size: .96rem; color: rgba(247, 243, 235, .8); max-width: 30ch; margin-inline: auto; }

/* Parcerias */
.partners { padding-block: var(--section-y); background: var(--white); }
.partners-grid { row-gap: 48px; align-items: center; }
.partners-text { grid-column: 1 / span 6; }
.partners-panel {
  grid-column: 8 / span 5; background: var(--brown-deep); color: var(--cream); border-radius: var(--radius-lg);
  padding: clamp(28px, 3.5vw, 44px); position: relative; overflow: hidden; box-shadow: var(--shadow);
}
.partners-panel::after { content: ""; position: absolute; right: -110px; top: -110px; width: 240px; height: 240px; border-radius: 50%; border: 1px solid var(--line-light); }
.panel-title { font-family: var(--font-serif); font-size: 1.45rem; color: var(--white); }
.check-list { margin-top: 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; }
.check-list li { display: flex; align-items: flex-start; gap: 10px; font-size: .95rem; line-height: 1.45; }
.check-list .ic { color: var(--gold-light); width: 18px; height: 18px; margin-top: 2px; stroke-width: 2; }
.commitments { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line-light); position: relative; z-index: 1; }
.commitments-label { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--gold-light); margin-bottom: 8px; }
.commitments p:last-child { font-size: .92rem; color: rgba(247, 243, 235, .8); }

/* FAQ */
.faq { padding-block: var(--section-y); }
.faq-grid { row-gap: 32px; align-items: start; }
.faq-head { grid-column: 1 / span 4; position: sticky; top: calc(var(--header-h) + 24px); }
.accordion { grid-column: 6 / span 7; border-top: 1px solid var(--line-strong); }
.acc-item { border-bottom: 1px solid var(--line-strong); }
.acc-heading { font-family: var(--font-sans); font-size: 1rem; }
.acc-trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; text-align: left;
  padding: 22px 4px; background: none; border: 0; cursor: pointer; font-weight: 600; font-size: 1.04rem; line-height: 1.45; color: var(--brown-deep);
  transition: color var(--t-fast) var(--ease);
}
.acc-trigger:hover { color: var(--gold-text); }
.acc-trigger .ic {
  width: 34px; height: 34px; padding: 8px; border-radius: 50%; border: 1px solid var(--line-strong); color: var(--brown);
  transition: transform var(--t) var(--ease), background-color var(--t) var(--ease), border-color var(--t) var(--ease), color var(--t) var(--ease);
}
.acc-trigger[aria-expanded="true"] .ic { transform: rotate(180deg); background: var(--brown); border-color: var(--brown); color: var(--gold-light); }
.acc-panel { padding: 0 52px 24px 4px; color: var(--text-muted); }
.acc-panel a { color: var(--brown); font-weight: 600; text-decoration-color: var(--gold); text-underline-offset: 3px; }
.js .acc-panel:not([hidden]) { animation: accIn var(--t) var(--ease); }
@keyframes accIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* Formulários */
.forms-pair { margin-top: clamp(56px, 7vw, 88px); row-gap: 24px; align-items: stretch; }
.forms-pair .form-card:first-child { grid-column: 1 / span 7; }
.forms-pair .form-card:last-child { grid-column: 8 / span 5; }
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(24px, 3.5vw, 40px); box-shadow: var(--shadow-sm); }
.form-card-alt { background: #FBF8F2; }
.form-title { font-family: var(--font-serif); font-size: clamp(1.4rem, 2.2vw, 1.75rem); color: var(--brown-deep); }
.form-desc { margin-top: 10px; font-size: .94rem; color: var(--text-muted); }
.site-form { margin-top: 24px; display: grid; gap: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-size: .9rem; font-weight: 600; color: var(--brown-deep); }
.req { color: #8A4B2A; }
.opt { font-weight: 500; color: var(--text-muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--line-strong);
  background: var(--white); font-size: 1rem; color: var(--text);
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.field textarea { resize: vertical; min-height: 120px; line-height: 1.55; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 44px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2351372D' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; }
.field input::placeholder, .field textarea::placeholder { color: #8C7D74; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(81, 55, 45, .42); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(173, 135, 71, .25); }
.field [aria-invalid="true"] { border-color: #A3412A; box-shadow: 0 0 0 3px rgba(163, 65, 42, .12); }
.field-error { font-size: .85rem; color: #A3412A; font-weight: 600; min-height: 0; }
.field-error:empty { display: none; }
.field-check { grid-template-columns: 22px 1fr; column-gap: 12px; align-items: start; }
.field-check input { width: 20px; height: 20px; min-height: 0; margin: 3px 0 0; padding: 0; accent-color: var(--brown); cursor: pointer; }
.field-check label { font-weight: 500; font-size: .9rem; line-height: 1.55; color: var(--text-muted); }
.field-check .field-error { grid-column: 2; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-result:empty { display: none; }
.form-result { padding: 20px 22px; border-radius: var(--radius); background: var(--cream); border: 1px solid rgba(173, 135, 71, .4); }
.form-result-title { font-weight: 700; color: var(--brown-deep); }
.form-result-text { margin-top: 6px; font-size: .92rem; color: var(--text-muted); }
.form-result-actions { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 10px; }
.form-result-actions .btn { min-height: 44px; padding: 10px 18px; font-size: .9rem; }
.form-result-mail { margin-top: 12px; font-size: .85rem; color: var(--text-muted); word-break: break-word; }
.form-result.is-error { background: #FBEDE8; border-color: rgba(163, 65, 42, .4); }

/* Contato */
.contact { padding-block: var(--section-y); background: var(--white); }
.contact-grid { row-gap: 24px; align-items: stretch; }
.contact-panel {
  grid-column: 1 / span 5; background: var(--brown-deep); color: var(--cream); border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 48px); position: relative; overflow: hidden;
}
.contact-panel::after { content: ""; position: absolute; left: -100px; bottom: -120px; width: 300px; height: 300px; border-radius: 50%; border: 1px solid var(--line-light); pointer-events: none; }
.contact-lead { margin-top: 18px; color: rgba(247, 243, 235, .82); }
.contact-list { margin-top: 32px; display: grid; gap: 18px; position: relative; z-index: 1; }
.contact-list li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: center; }
.contact-list li > .ic { width: 44px; height: 44px; padding: 11px; border-radius: 50%; border: 1px solid var(--line-light); color: var(--gold-light); }
.contact-list li:first-child > .ic, .contact-list li:nth-child(3) > .ic { fill: currentColor; stroke: none; }
.contact-label { display: block; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--gold-light); }
.contact-list a, .contact-list span:not(.contact-label) { color: var(--white); font-weight: 500; text-decoration: none; word-break: break-word; }
.contact-list a:hover { color: var(--gold-light); text-decoration: underline; text-underline-offset: 4px; }
.form-card-contact { grid-column: 6 / span 7; background: var(--cream); border-color: transparent; box-shadow: none; }

/* Rodapé */
.site-footer { background: var(--brown-deep); color: rgba(247, 243, 235, .8); padding: clamp(56px, 7vw, 80px) 0 calc(28px + 72px); border-top: 3px solid var(--gold); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1.2fr; gap: 40px; }
.footer-name { font-family: var(--font-serif); font-size: 1.5rem; color: var(--white); }
.footer-crp { margin-top: 6px; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--gold-light); }
.footer-desc { margin-top: 16px; }
.footer-loc { margin-top: 10px; font-size: .92rem; }
.footer-heading { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--gold-light); margin-bottom: 14px; }
.footer-nav ul { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 20px; }
.footer-nav a { text-decoration: none; font-size: .94rem; transition: color var(--t-fast) var(--ease); }
.footer-nav a:hover { color: var(--gold-light); }
.footer-contact { display: grid; gap: 10px; align-content: start; }
.footer-btn {
  display: inline-flex; align-items: center; gap: 12px; min-height: 48px; padding: 10px 16px; border-radius: 12px; text-decoration: none;
  border: 1px solid var(--line-light); color: var(--cream); font-size: .92rem; word-break: break-word;
  transition: border-color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
}
.footer-btn:hover { border-color: var(--gold-light); background: rgba(216, 186, 131, .06); }
.footer-btn .ic { color: var(--gold-light); width: 18px; height: 18px; }
.footer-btn:first-child .ic, .footer-btn:last-child .ic { fill: currentColor; stroke: none; }
.footer-bottom { position: relative; margin-top: 48px; padding-top: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .85rem; }

/* WhatsApp flutuante */
.wa-float {
  position: fixed; right: max(18px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom)); z-index: 90;
  display: inline-flex; align-items: center; gap: 10px; height: 58px; min-width: 58px; padding: 0 17px; border-radius: 999px;
  background: var(--brown-deep); color: var(--white); text-decoration: none; font-weight: 600; font-size: .92rem;
  border: 1.5px solid var(--gold); box-shadow: 0 10px 26px rgba(23, 20, 17, .28);
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease), opacity var(--t) var(--ease), visibility var(--t);
}
.wa-float .ic { width: 24px; height: 24px; color: #4FD17A; }
.wa-float:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(23, 20, 17, .34); }
.wa-float-text { display: none; }
.menu-open .wa-float, .wa-float.is-hidden { opacity: 0; visibility: hidden; transform: translateY(8px); }

.footer-bottom::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); height: 1px; background: var(--line-light); }

/* Diálogo de privacidade */
.privacy-dialog {
  width: min(720px, calc(100vw - 32px)); max-height: min(86vh, 900px); padding: 0; border: 0; border-radius: var(--radius-lg);
  background: var(--white); color: var(--text); box-shadow: 0 30px 80px rgba(23, 20, 17, .35);
}
.privacy-dialog::backdrop { background: rgba(23, 20, 17, .6); }
.privacy-dialog[open] { display: flex; flex-direction: column; }
.privacy-inner { display: flex; flex-direction: column; max-height: inherit; min-height: 0; }
.privacy-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 28px; border-bottom: 1px solid var(--line); background: var(--cream); }
.privacy-head h2 { font-family: var(--font-serif); font-size: 1.5rem; color: var(--brown-deep); }
.dialog-close { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--white); display: grid; place-items: center; cursor: pointer; color: var(--brown); }
.privacy-body { padding: 24px 28px 32px; overflow-y: auto; font-size: .96rem; }
.privacy-body h3 { margin-top: 22px; margin-bottom: 6px; font-family: var(--font-serif); font-size: 1.12rem; color: var(--brown-deep); }
.privacy-body p + h3 { margin-top: 22px; }

/* 6. Responsivo ------------------------------------------------------------ */
@media (min-width: 1024px) {
  .wa-float-text { display: inline; }
  .wa-float { padding: 0 22px 0 18px; }
}

@media (max-width: 1239px) {
  .main-nav ul { gap: 16px; }
  .main-nav ul a { font-size: .86rem; }
  .brand-name { font-size: 1rem; }
}

/* Menu móvel a partir de 1180 px */
@media (max-width: 1179px) {
  .menu-toggle { display: grid; }
  /* sem backdrop-filter para que o painel fixo do menu ocupe a tela inteira */
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(247, 243, 235, .97); }
  .main-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0; z-index: 99;
    background: var(--brown-deep); padding: 28px var(--gutter) 40px; overflow-y: auto;
    display: flex; flex-direction: column; gap: 28px;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity var(--t) var(--ease), transform var(--t) var(--ease), visibility var(--t);
  }
  .main-nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav ul li { border-bottom: 1px solid var(--line-light); }
  .main-nav ul a, .site-header.is-scrolled .main-nav ul a {
    display: flex; padding: 16px 2px; font-family: var(--font-serif); font-weight: 500; font-size: 1.35rem; color: var(--cream);
  }
  .main-nav ul a::after { display: none; }
  .main-nav ul a[aria-current="true"] { color: var(--gold-light); }
  .mobile-nav-extra { display: grid; gap: 12px; max-width: 420px; }
  .mobile-nav-extra a.btn-gold { color: var(--black); }
  .menu-open .site-header { background: var(--brown-deep); }
  .menu-open .site-header .brand { color: var(--white); }
  .menu-open .site-header .brand-sub { color: var(--gold-light); }
  .menu-open .site-header .icon-link, .menu-open .site-header .menu-toggle { color: var(--gold-light); border-color: var(--line-light); }
  .menu-open .menu-toggle .ic-open { display: none; }
  .menu-open .menu-toggle .ic-close { display: block; }
  .menu-open { overflow: hidden; }
}

@media (max-width: 1023px) {
  .hero-copy { grid-column: 1 / -1; }
  .hero-visual { grid-column: 1 / -1; justify-self: center; max-width: 380px; order: -1; }
  .hero-grid { row-gap: 40px; }
  .hero-card { left: -20px; }
  .about-photo { grid-column: 1 / span 5; }
  .about-text { grid-column: 6 / span 7; }
  .nr1-title-wrap, .nr1-intro { grid-column: 1 / -1; }
  .nr1-grid, .cards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sector-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 44px; }
  .steps::before { display: none; }
  .partners-text, .partners-panel { grid-column: 1 / -1; }
  .faq-head { grid-column: 1 / -1; position: static; }
  .accordion { grid-column: 1 / -1; }
  .forms-pair .form-card:first-child, .forms-pair .form-card:last-child { grid-column: 1 / -1; }
  .contact-panel, .form-card-contact { grid-column: 1 / -1; }
  .education-head, .timeline { grid-column: 1 / -1; }
  .experience-title, .experience-lead { grid-column: 1 / -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 767px) {
  :root { --header-h: 68px; }
  body { font-size: 1rem; }
  .brand-mark { width: 38px; height: 38px; font-size: .95rem; }
  .brand-name { font-size: .95rem; }
  .brand-sub { font-size: .66rem; }
  .header-actions .icon-link { display: none; }
  .hero-pillars ul { grid-template-columns: 1fr; }
  .hero-pillars li, .hero-pillars li + li { padding: 16px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .cta-row .btn { width: 100%; }
  .hero { padding-top: calc(var(--header-h) + 36px); }
  .hero-visual { max-width: 280px; }
  .hero-card { display: none; }
  .hero-visual::before { inset: -10px -10px 10px 10px; }
  .location-badge { display: grid; grid-template-columns: auto 1fr; border-radius: 14px; row-gap: 2px; column-gap: 8px; }
  .location-badge .sep { display: none; }
  .location-badge span:last-child { grid-column: 2; }
  .about-photo { grid-column: 1 / -1; position: static; max-width: 420px; }
  .about-text { grid-column: 1 / -1; }
  .nr1-grid, .cards-grid, .sector-grid, .steps { grid-template-columns: 1fr; }
  .steps { row-gap: 0; }
  .step { display: grid; grid-template-columns: 62px 1fr; column-gap: 18px; text-align: left; padding: 0 0 32px; }
  .step::before { content: ""; position: absolute; left: 31px; top: 62px; bottom: 0; width: 1px; background: var(--gold-light); opacity: .5; }
  .step:last-child::before { display: none; }
  .step-num { grid-row: span 2; margin: 0; }
  .step h3 { margin-top: 14px; }
  .step p { margin: 6px 0 0; max-width: none; }
  .check-list { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .form-actions .btn { width: 100%; }
  .section-cta .btn { width: 100%; }
  .acc-panel { padding-right: 8px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .chapter-band::after { width: 280px; height: 280px; right: -140px; }
  .chapter-band::before { display: none; }
  .wa-float { height: 54px; min-width: 54px; padding: 0 15px; }
  .privacy-head, .privacy-body { padding-inline: 20px; }
}

@media (max-width: 380px) {
  .brand-sub { display: none; }
  .hero-headline { padding-left: 16px; }
  .location-badge { font-size: .84rem; padding: 8px 14px; }
}

@media print {
  .site-header, .wa-float, .site-form, .hero-curves { display: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
