/* ============================================================
   i9 Academy — Luxury Edition
   Paleta: Verde profundo + Dourado + Off-white
   Tipografia OFICIAL i9: Grotesk (display, Velvetyne OFL) + Inter (corpo)
   ============================================================ */

@font-face {
  font-family: "Grotesk"; font-style: normal; font-weight: 200; font-display: swap;
  src: url("fonts/Grotesk-01Extrafin.woff2") format("woff2"), url("fonts/Grotesk-01Extrafin.woff") format("woff");
}
@font-face {
  font-family: "Grotesk"; font-style: normal; font-weight: 300; font-display: swap;
  src: url("fonts/Grotesk-02Mince.woff2") format("woff2"), url("fonts/Grotesk-02Mince.woff") format("woff");
}
@font-face {
  font-family: "Grotesk"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/Grotesk-03Regular.woff2") format("woff2"), url("fonts/Grotesk-03Regular.woff") format("woff");
}
@font-face {
  font-family: "Grotesk"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("fonts/Grotesk-04Gras.woff2") format("woff2"), url("fonts/Grotesk-04Gras.woff") format("woff");
}
/* Inter (corpo) — auto-alojada (fonte variável). Sem CDN externo (perf + RGPD). */
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("fonts/Inter.woff2") format("woff2");
}

:root {
  --green-950: #07402e; /* verde de marca i9 (mesmo dos outros sites) — fundo escuro mais claro/vivo */
  --green-900: #16331f;
  --green-800: #1b4028;
  --green-700: #235235;
  --green-500: #3f7a54;
  --gold:      #c9a86a;
  --gold-soft: #d8bd8a;
  --gold-deep: #a8894f;
  --cream:     #f5f7f5;   /* off-white frio (whisper verde-cinza) — sem bege */
  --cream-2:   #e9ede9;   /* neutro frio um pouco mais fundo */
  --paper:     #ffffff;   /* branco puro (maioritário) */
  --ink:       #232b25;
  --ink-soft:  #5c665e;
  --line:      rgba(28, 38, 32, 0.12);
  --line-light:rgba(255, 255, 255, 0.16);

  --display: "Grotesk", "Georgia", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  /* alias retrocompatível */
  --serif: "Grotesk", "Georgia", serif;

  --maxw: 1280px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-2: cubic-bezier(0.65, 0, 0.35, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-weight: 300;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.menu-open { overflow: hidden; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 40px; }

/* offset para o header fixo ao navegar por âncoras */
section[id], [id="top"] { scroll-margin-top: 96px; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.08; letter-spacing: -0.01em; color: var(--green-900); }
/* Grotesk não tem itálico real → ênfase por cor/peso, nunca faux-italic */
em { font-style: normal; }

/* Sistema tipográfico: Grotesk (display) só em grande; subtítulos pequenos
   e repetidos em Inter semibold — mais legíveis e limpos. */
.why-card h3, .value h3 { font-family: var(--sans); font-weight: 600; font-size: 1.28rem; letter-spacing: -0.01em; }
.method-stage h4 { font-family: var(--sans); font-weight: 400; font-size: 1.3rem; letter-spacing: -0.01em; }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul { list-style: none; }
button { font-family: inherit; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 1px; }
.header :focus-visible, .overlay-menu :focus-visible, .hero :focus-visible,
.mvp :focus-visible, .digital :focus-visible, .cta :focus-visible, .footer :focus-visible { outline-color: var(--gold-soft); }

/* ============================================================
   SPLASH — intro animada (logótipo i9 desenhado)
   ============================================================ */
.splash {
  position: fixed; inset: 0; z-index: 9999; background: #ffffff;
  display: flex; align-items: center; justify-content: center;
  transition: opacity .8s ease-out; will-change: opacity;
}
.splash.hide { opacity: 0; pointer-events: none; }
body.splash-active { overflow: hidden; }
.splash-vignette {
  position: absolute; inset: 0; pointer-events: none; opacity: .4;
  background: radial-gradient(ellipse 55% 50% at center, var(--gold-soft) 0%, transparent 75%);
}
.splash-logo {
  position: relative; width: min(300px, 58vw); height: auto;
  opacity: 0; transform: scale(.92);
  animation: splashIn 1.3s var(--ease) forwards;
}
@keyframes splashIn {
  to { opacity: 1; transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .splash-logo { animation: none; opacity: 1; transform: none; }
}

::selection { background: var(--gold); color: #fff; }

/* ---------- Eyebrow ---------- */
.eyebrow {
  display: inline-block; font-family: var(--sans); font-size: .9rem; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase; color: var(--gold-deep);
  position: relative; padding-left: 44px;
}
.eyebrow::before {
  content: ""; position: absolute; left: 0; top: 50%; width: 32px; height: 1px; background: var(--gold);
}
.eyebrow-gold { color: var(--gold); }
.eyebrow-gold::before { background: var(--gold); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--sans); font-weight: 500; font-size: .82rem;
  letter-spacing: .12em; text-transform: uppercase;
  padding: 18px 38px; border-radius: 2px; cursor: pointer;
  border: 1px solid transparent; transition: all .5s var(--ease);
  position: relative; overflow: hidden; white-space: nowrap;
}
.btn-lg { padding: 22px 52px; font-size: .86rem; }
.btn-gold { background: var(--gold); color: var(--green-950); }
.btn-gold:hover { background: var(--gold-deep); color: #fff; transform: translateY(-2px); }
.btn-dark { background: var(--green-900); color: var(--cream); }
.btn-dark:hover { background: var(--green-950); transform: translateY(-2px); }
.btn-outline-light { border-color: var(--line-light); color: #fff; }
.btn-outline-light:hover { background: #fff; color: var(--green-950); border-color: #fff; }
.btn-outline-dark { border-color: var(--line); color: var(--green-900); }
.btn-outline-dark:hover { background: var(--green-900); color: var(--cream); border-color: var(--green-900); }
.btn-row { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 40px; }

.link-underline {
  font-family: var(--sans); font-size: .8rem; font-weight: 500; letter-spacing: .18em;
  text-transform: uppercase; color: var(--green-900); position: relative; padding-bottom: 6px;
}
.link-underline::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px;
  background: var(--gold); transform: scaleX(1); transform-origin: right; transition: transform .5s var(--ease);
}
.link-underline:hover::after { transform: scaleX(0); transform-origin: left; }

/* ============================================================
   PRELOADER
   ============================================================ */
.preloader {
  position: fixed; inset: 0; z-index: 9999; background: var(--green-950);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 30px;
  transition: opacity .8s var(--ease), visibility .8s;
}
.preloader.done { opacity: 0; visibility: hidden; }
.preloader-brand { display: flex; align-items: baseline; gap: 10px; opacity: 0; animation: plFade .9s var(--ease) .1s forwards; }
.pl-mark { font-family: var(--serif); font-size: 2.6rem; color: var(--gold); font-weight: 500; }
.pl-text { font-family: var(--serif); font-size: 2rem; color: var(--cream); font-style: italic; }
.preloader-bar { width: 180px; height: 2px; background: rgba(255,255,255,.15); overflow: hidden; }
.preloader-bar span { display: block; height: 100%; width: 0; background: var(--gold); animation: plBar 1.4s var(--ease-2) forwards; }
@keyframes plFade { to { opacity: 1; } }
@keyframes plBar { to { width: 100%; } }

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0%; z-index: 999; background: var(--gold);
}

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 30px 0; transition: padding .5s var(--ease), background .5s var(--ease);
}
.header.scrolled { padding: 16px 0; background: rgba(7,64,46,.92); backdrop-filter: blur(14px); }
.header-inner { max-width: var(--maxw); margin: 0 auto; padding: 0 40px; display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 8px; }
.logo-img { display: block; height: 52px; width: auto; }
.logo-footer .logo-img { height: 58px; }
/* legado (marca em texto), mantido caso seja reutilizado */
.logo-mark { font-family: var(--serif); font-size: 1.7rem; font-weight: 500; color: var(--gold); }
.logo-text { font-family: var(--serif); font-size: 1.35rem; font-weight: 300; color: #fff; transition: color .4s; }
.header:not(.scrolled) .logo-text { color: #fff; }
.header-right { display: flex; align-items: center; gap: 32px; }
/* nav no topo (Print #7) — só em desktop; no telemóvel usa-se o menu overlay */
.header-nav { display: flex; gap: 34px; }
.header-nav a { font-family: var(--sans); font-size: .82rem; font-weight: 500; letter-spacing: .04em; color: rgba(255,255,255,.85); transition: color .3s; }
.header-nav a:hover { color: var(--gold); }
@media (max-width: 1100px) { .header-nav { display: none; } }
.header-contact { display: inline-flex; align-items: center; color: rgba(255,255,255,.82); transition: color .3s; }
.header-contact:hover { color: var(--gold); }
.header-contact svg { display: block; }

/* ---------- Language switch (dropdown minimalista) ---------- */
.lang-switch { position: relative; }
.lang-current {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  background: none; border: none; padding: 6px 2px;
  font-family: var(--sans); font-size: .74rem; font-weight: 500; letter-spacing: .14em;
  color: rgba(255,255,255,.85); transition: color .3s;
}
.lang-current:hover { color: var(--gold); }
.lang-caret { transition: transform .35s var(--ease); }
.lang-switch.open .lang-caret { transform: rotate(180deg); }
.lang-menu {
  position: absolute; top: calc(100% + 12px); right: 0; min-width: 74px; z-index: 10;
  display: flex; flex-direction: column; padding: 6px;
  background: var(--green-950); border: 1px solid rgba(255,255,255,.12); border-radius: 5px;
  box-shadow: 0 12px 26px rgba(7,64,46,.16);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
}
.lang-switch.open .lang-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-menu a {
  padding: 7px 12px; border-radius: 3px;
  font-family: var(--sans); font-size: .74rem; font-weight: 500; letter-spacing: .14em;
  color: rgba(255,255,255,.6); transition: color .25s, background .25s;
}
.lang-menu a:hover { color: #fff; background: rgba(255,255,255,.06); }
.lang-menu a.active { color: var(--gold); }

/* desktop tem a nav no topo → o menu overlay só é preciso em ecrãs pequenos */
.menu-btn { display: none; align-items: center; gap: 14px; background: none; border: none; cursor: pointer; padding: 0; }
@media (max-width: 1100px) { .menu-btn { display: flex; } }
.menu-btn-label { font-family: var(--sans); font-size: .78rem; letter-spacing: .22em; text-transform: uppercase; color: #fff; }
.menu-btn-lines { display: flex; flex-direction: column; gap: 6px; width: 30px; }
.menu-btn-lines i { display: block; height: 1.5px; width: 100%; background: var(--gold); transition: transform .4s var(--ease); }
.menu-btn:hover .menu-btn-lines i:first-child { transform: translateX(4px); }

/* ---------- Cursor personalizado (só rato fino; criado por JS) ---------- */
.cursor-dot, .cursor-ring { position: fixed; top: 0; left: 0; z-index: 9998; pointer-events: none; border-radius: 50%; opacity: 0; will-change: transform; }
.cursor-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--gold); transition: opacity .3s; }
.cursor-ring { width: 38px; height: 38px; margin: -19px 0 0 -19px; border: 1px solid var(--gold); transition: opacity .3s, width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), background .35s; }
body.cursor-on { cursor: none; }
body.cursor-on a, body.cursor-on button, body.cursor-on .btn { cursor: none; }
body.cursor-on input, body.cursor-on textarea, body.cursor-on select { cursor: auto; }
body.cursor-on .cursor-dot, body.cursor-on .cursor-ring { opacity: 1; }
.cursor-ring.is-hover { width: 60px; height: 60px; margin: -30px 0 0 -30px; background: rgba(201, 168, 106, .10); }

/* ---------- Sub-páginas (legal): cabeçalho verde + conteúdo ---------- */
.page-head { background: var(--green-950); color: var(--cream); padding: 168px 0 66px; }
.page-head .eyebrow { color: var(--gold); }
.page-title { font-family: var(--serif); font-weight: 400; line-height: 1.04; letter-spacing: -0.01em; color: #fff; font-size: clamp(2.3rem, 5.5vw, 3.8rem); margin-top: 24px; }
.page-tagline { color: rgba(255,255,255,.72); font-size: 1rem; margin-top: 16px; }

/* ---------- Página 404 (bloco verde a toda a altura) ---------- */
.notfound { background: var(--green-950); color: var(--cream); min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 160px 0 90px; }
.notfound .eyebrow { color: var(--gold); }
.notfound-code { font-family: var(--display); font-weight: 400; color: #fff; font-size: clamp(5.5rem, 22vw, 13rem); line-height: .9; letter-spacing: -0.04em; margin: 18px 0 6px; }
.notfound-title { font-family: var(--display); font-weight: 400; color: #fff; font-size: clamp(1.5rem, 4vw, 2.2rem); margin-bottom: 16px; }
.notfound-text { color: rgba(255,255,255,.72); font-size: 1.05rem; max-width: 480px; margin: 0 auto 40px; }
.notfound-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.legal { padding: 78px 0 100px; }
.legal-inner { max-width: 760px; }
.legal h2 { font-family: var(--sans); font-weight: 600; font-size: 1.22rem; color: var(--green-900); margin: 42px 0 14px; letter-spacing: -0.01em; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { color: var(--ink-soft); font-size: 1rem; line-height: 1.7; }
.legal p { margin-bottom: 14px; }
.legal ul { margin: 0 0 16px; }
.legal li { position: relative; padding-left: 22px; margin-bottom: 8px; }
.legal li::before { content: "—"; position: absolute; left: 0; color: var(--gold-deep); }
.legal strong { color: var(--ink); font-weight: 600; }
.legal a { color: var(--gold-deep); text-decoration: underline; text-underline-offset: 2px; }
.legal-meta { font-size: .85rem; color: var(--ink-soft); margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--line); }

/* ---------- WhatsApp flutuante ---------- */
.wa { position: fixed; left: 22px; bottom: 22px; z-index: 90; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.wa-btn { width: 58px; height: 58px; border-radius: 50%; background: var(--green-950); color: #fff; border: none; cursor: pointer; display: grid; place-items: center; box-shadow: 0 6px 16px rgba(7,64,46,.22); transition: transform .3s var(--ease), background .3s; }
.wa-btn:hover { background: var(--green-800); }
.wa-btn:hover { transform: scale(1.07); }
.wa-card { width: 300px; max-width: calc(100vw - 44px); background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 14px 36px rgba(7,64,46,.16); transform: translateY(14px) scale(.95); transform-origin: bottom left; opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s; }
.wa.open .wa-card { opacity: 1; visibility: visible; transform: none; }
.wa-head { display: flex; align-items: center; gap: 12px; padding: 15px 16px; background: var(--green-950); color: #fff; }
.wa-photo { border-radius: 50%; flex-shrink: 0; }
.wa-id { display: flex; flex-direction: column; line-height: 1.3; flex: 1; min-width: 0; }
.wa-id strong { font-family: var(--sans); font-weight: 600; font-size: .95rem; }
.wa-id span { font-size: .72rem; color: rgba(255,255,255,.7); }
.wa-close { background: none; border: none; color: rgba(255,255,255,.7); font-size: 1.5rem; line-height: 1; cursor: pointer; padding: 0 2px; }
.wa-close:hover { color: #fff; }
.wa-body { padding: 20px 16px; background: var(--cream-2); }
.wa-bubble { background: #fff; border-radius: 2px 12px 12px 12px; padding: 10px 14px; font-size: .92rem; line-height: 1.45; color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.1); max-width: 90%; width: fit-content; }
.wa-bubble + .wa-bubble { margin-top: 8px; }
/* as 3 mensagens aparecem uma a seguir à outra ao abrir o chat */
.wa-bubble { opacity: 0; transform: translateY(6px); }
.wa.open .wa-bubble { animation: waMsgIn .35s var(--ease) forwards; }
.wa.open .wa-bubble:nth-child(1) { animation-delay: .2s; }
.wa.open .wa-bubble:nth-child(2) { animation-delay: .85s; }
.wa.open .wa-bubble:nth-child(3) { animation-delay: 1.5s; }
@keyframes waMsgIn { to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
  .wa-bubble { opacity: 1; transform: none; }
  .wa.open .wa-bubble { animation: none; }
}
.wa-cta { display: block; text-align: center; padding: 14px; background: var(--green-950); color: #fff; font-family: var(--sans); font-weight: 600; font-size: .88rem; transition: background .3s; }
.wa-cta:hover { background: var(--green-800); }

/* ============================================================
   OVERLAY MENU
   ============================================================ */
.overlay-menu {
  position: fixed; inset: 0; z-index: 200; background: var(--green-950);
  clip-path: circle(0% at calc(100% - 60px) 48px);
  transition: clip-path .8s var(--ease); visibility: hidden;
}
.overlay-menu.open { clip-path: circle(150% at calc(100% - 60px) 48px); visibility: visible; }
.overlay-menu-inner {
  height: 100%; max-width: var(--maxw); margin: 0 auto; padding: 140px 40px 60px;
  display: grid; grid-template-columns: 1.6fr 1fr; gap: 60px; align-items: center;
}
.menu-close {
  position: absolute; top: 34px; right: 40px; z-index: 3;
}
.overlay-nav { display: flex; flex-direction: column; }
.ov-link {
  position: relative; padding: 14px 0; border-bottom: 1px solid var(--line-light);
  display: flex; align-items: center; gap: 24px; overflow: hidden;
  opacity: 0; transform: translateY(30px); transition: color .4s;
}
.overlay-menu.open .ov-link { animation: ovIn .7s var(--ease) forwards; }
.overlay-menu.open .ov-link:nth-child(1){ animation-delay: .25s; }
.overlay-menu.open .ov-link:nth-child(2){ animation-delay: .32s; }
.overlay-menu.open .ov-link:nth-child(3){ animation-delay: .39s; }
.overlay-menu.open .ov-link:nth-child(4){ animation-delay: .46s; }
.overlay-menu.open .ov-link:nth-child(5){ animation-delay: .53s; }
.overlay-menu.open .ov-link:nth-child(6){ animation-delay: .60s; }
@keyframes ovIn { to { opacity: 1; transform: translateY(0); } }
.ov-link::before {
  content: attr(data-num); font-family: var(--sans); font-size: .8rem; color: var(--gold);
  letter-spacing: .1em; min-width: 30px;
}
.ov-link span {
  font-family: var(--serif); font-size: clamp(2rem, 5vw, 3.6rem); color: var(--cream);
  font-weight: 300; transition: transform .5s var(--ease), color .4s;
}
.ov-link:hover span { color: var(--gold); transform: translateX(20px); }

.overlay-aside { display: flex; flex-direction: column; gap: 40px; opacity: 0; transition: opacity .6s .6s; }
.overlay-menu.open .overlay-aside { opacity: 1; }
.ov-block { display: flex; flex-direction: column; gap: 6px; }
.ov-label { font-size: .72rem; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; }
.ov-block a, .ov-block p { color: rgba(255,255,255,.8); font-size: 1rem; line-height: 1.6; }
.ov-block a:hover { color: var(--gold); }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; height: 100vh; min-height: 680px; display: flex; align-items: flex-end; overflow: hidden; }
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-img, .hero-video { width: 100%; height: 120%; object-fit: cover; will-change: transform; display: block; }
/* vídeo em tom natural/claro (sem cast verde — o tint vem do overlay) */
.hero-video { filter: brightness(1.05); }
/* overlay: faixa verde no topo (p/ o header branco) → branco no corpo (hero claro, texto escuro) */
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(7,64,46,.72) 0%, rgba(7,64,46,.12) 15%,
    rgba(255,255,255,.32) 34%, rgba(255,255,255,.5) 66%, rgba(255,255,255,.88) 100%);
}
.hero-content { position: relative; z-index: 2; max-width: var(--maxw); margin: 0 auto; padding: 0 40px 12vh; width: 100%; }
.hero-eyebrow { color: var(--gold-deep); margin-bottom: 34px; }
.hero-title { color: var(--green-950); font-size: clamp(2.8rem, 8vw, 7rem); font-weight: 400; letter-spacing: -0.02em; margin-bottom: 34px; text-shadow: 0 1px 18px rgba(255,255,255,.7); }
.hero-title .line { display: block; overflow: hidden; }
.hero-title em { color: var(--gold-deep); font-weight: 400; }
/* botão outline no hero claro → escuro */
.hero-actions .btn-outline-light { border-color: rgba(7,64,46,.3); color: var(--green-950); }
.hero-actions .btn-outline-light:hover { background: var(--green-950); color: #fff; border-color: var(--green-950); }
.hero-lead { color: rgba(255,255,255,.85); font-size: clamp(1.05rem, 1.6vw, 1.3rem); max-width: 560px; margin-bottom: 44px; font-weight: 300; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }
.hero-scroll {
  position: absolute; bottom: 40px; right: 40px; z-index: 2; display: flex; flex-direction: column;
  align-items: center; gap: 12px; color: var(--green-900);
}
.hero-scroll span { font-size: .68rem; letter-spacing: .24em; text-transform: uppercase; writing-mode: vertical-rl; }
.hero-scroll i { width: 1px; height: 50px; background: rgba(7,64,46,.35); position: relative; overflow: hidden; }
.hero-scroll i::after { content: ""; position: absolute; top: -50%; left: 0; width: 100%; height: 50%; background: var(--gold); animation: scrollLine 2s var(--ease-2) infinite; }
@keyframes scrollLine { 0% { top: -50%; } 100% { top: 100%; } }

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee { background: var(--green-950); padding: 26px 0; overflow: hidden; white-space: nowrap; }
.marquee-track { display: inline-flex; align-items: center; gap: 40px; animation: marquee 30s linear infinite; }
.marquee-track span { font-family: var(--serif); font-size: 1.5rem; color: var(--cream); font-style: italic; font-weight: 300; }
.marquee-track i { color: var(--gold); font-size: .7rem; font-style: normal; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============================================================
   SECTIONS BASE
   ============================================================ */
.section { padding: 130px 0; }
.section-head { max-width: 720px; margin-bottom: 70px; }
.section-head .eyebrow { margin-bottom: 26px; }
.section-title { font-size: clamp(2rem, 4.5vw, 3.5rem); font-weight: 300; }
.section-sub { color: var(--ink-soft); font-size: 1.12rem; margin-top: 20px; max-width: 560px; }

/* ---------- Intro ---------- */
.intro { padding: 120px 0; border-bottom: 1px solid var(--line); }
.intro-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 60px; }
.intro-lead { font-family: var(--serif); font-size: clamp(1.5rem, 3vw, 2.5rem); font-weight: 300; line-height: 1.3; color: var(--green-900); margin-bottom: 40px; }
.intro-lead strong { font-weight: 500; }
.intro-lead em { color: var(--gold-deep); }

/* ---------- Missão · Visão · Propósito ---------- */
.mvp { background: var(--cream); padding: 120px 0; }
.mvp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px; }
.mvp-item { padding-top: 26px; border-top: 1px solid var(--line); }
.mvp-item:first-child { border-top-color: var(--gold); }
.mvp-label { display: block; font-family: var(--sans); font-size: .9rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 22px; }
.mvp-item p { font-family: var(--serif); font-size: clamp(1.2rem, 1.7vw, 1.55rem); font-weight: 300; line-height: 1.4; color: var(--green-900); }

/* ---------- Áreas (portfolio rows) ---------- */
/* feedback: nesta secção o eyebrow ("Áreas Certificadas pela DGERT") maior e o título a preto um pouco menor */
.areas .section-head .eyebrow { font-size: .9rem; letter-spacing: .22em; }
.areas .section-title { font-size: clamp(1.75rem, 3.4vw, 2.7rem); }
.areas-list { border-top: 1px solid var(--line); }
.area-row {
  position: relative; display: grid; grid-template-columns: 120px 1.4fr 2fr 60px;
  align-items: center; gap: 30px; padding: 44px 20px; border-bottom: 1px solid var(--line);
  transition: padding .5s var(--ease); overflow: hidden;
}
.area-row::before {
  content: ""; position: absolute; inset: 0; background: var(--green-950); z-index: 0;
  transform: scaleY(0); transform-origin: bottom; transition: transform .5s var(--ease);
}
.area-row:hover { padding-left: 50px; }
.area-row:hover::before { transform: scaleY(1); }
.area-row > * { position: relative; z-index: 2; transition: color .4s; }
.area-media {
  position: absolute; right: 100px; top: 50%; transform: translateY(-50%) scale(.8); z-index: 1;
  width: 190px; height: 128px; border-radius: 4px; overflow: hidden; opacity: 0;
  transition: opacity .5s var(--ease), transform .5s var(--ease); pointer-events: none;
}
.area-media img { width: 100%; height: 100%; object-fit: cover; }
.area-row:hover .area-media { opacity: 1; transform: translateY(-50%) scale(1); }
.area-index { font-family: var(--serif); font-size: 1.4rem; color: var(--gold); }
.area-name { font-size: clamp(1.4rem, 2.6vw, 2.2rem); font-weight: 300; }
.area-desc { color: var(--ink-soft); font-size: 1rem; max-width: 300px; }
.area-arrow { font-size: 1.5rem; color: var(--gold); justify-self: end; transition: transform .5s var(--ease); }
.area-row:hover .area-name, .area-row:hover .area-desc { color: var(--cream); }
.area-row:hover .area-arrow { transform: translateX(10px); }

/* ============================================================
   DOIS CAMINHOS — blocos Empresas / Particulares
   ============================================================ */
.paths .section-head { margin-bottom: 48px; }
.paths-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.path-block {
  position: relative; display: flex; flex-direction: column; justify-content: space-between;
  min-height: 460px; padding: 56px 50px; border-radius: 4px; overflow: hidden;
  transition: transform .55s var(--ease), box-shadow .55s var(--ease);
}
.path-block:hover { transform: translateY(-6px); box-shadow: 0 10px 24px rgba(7,64,46,.08); }
.path-empresas { background: var(--green-950); color: var(--cream); }
.path-particulares { background: var(--cream-2); color: var(--green-900); }
.path-block::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .55s var(--ease);
}
.path-block:hover::before { transform: scaleX(1); }
.path-num { position: absolute; top: 34px; right: 46px; font-family: var(--serif); font-size: 3rem; font-weight: 200; opacity: .22; }
.path-empresas .path-num { color: var(--gold); }
.path-particulares .path-num { color: var(--gold-deep); }
.path-kicker { font-size: .74rem; letter-spacing: .24em; text-transform: uppercase; font-weight: 500; }
.path-empresas .path-kicker { color: var(--gold); }
.path-particulares .path-kicker { color: var(--gold-deep); }
.path-block h3 { font-family: var(--serif); font-weight: 300; font-size: clamp(1.6rem, 2.5vw, 2.25rem); line-height: 1.12; margin-bottom: 18px; }
.path-empresas h3 { color: #fff; }
.path-block p { font-size: 1.02rem; line-height: 1.6; margin-bottom: 28px; max-width: 400px; }
.path-empresas p { color: rgba(255,255,255,.82); }
.path-particulares p { color: var(--ink-soft); }
.path-cta { display: inline-flex; align-items: center; gap: 10px; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 500; }
.path-empresas .path-cta { color: var(--gold); }
.path-particulares .path-cta { color: var(--green-900); }
.path-cta::after { content: "→"; transition: transform .4s var(--ease); }
.path-block:hover .path-cta::after { transform: translateX(8px); }

/* ============================================================
   FEATURE (Empresas / Particulares)
   ============================================================ */
/* empresas: fundo off-white subtil (alterna com o branco de particulares) */
#empresas { background: var(--cream); }
#particulares { background: var(--paper); }
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.feature-grid.reverse .feature-media { order: 2; }
.feature-media { position: relative; overflow: hidden; border-radius: 4px; aspect-ratio: 4/5; }
.feature-media img { width: 100%; height: 110%; object-fit: cover; will-change: transform; }
.feature-title { font-size: clamp(1.9rem, 3.5vw, 3rem); font-weight: 300; margin-bottom: 28px; }
.feature-body p { color: var(--ink-soft); font-size: 1.1rem; }
.feature-list { list-style: none; margin-top: 30px; }
.feature-list li { position: relative; padding: 14px 0 14px 36px; border-bottom: 1px solid var(--line); font-size: 1.02rem; }
.feature-list li::before { content: "→"; position: absolute; left: 0; color: var(--gold-deep); }

/* ============================================================
   METODOLOGIA
   ============================================================ */
.method { background: var(--paper); }
/* CAMINHO VISUAL — cada etapa é um nó com ícone, ligado por uma linha.
   Passar/tocar num nó realça-o e mostra a descrição na legenda (JS). */
.method-flow { position: relative; display: grid; grid-template-columns: repeat(7, 1fr); align-items: start; }
/* a linha do caminho (por trás dos nós) */
.method-flow::before { content: ""; position: absolute; top: 33px; left: 7.14%; right: 7.14%; height: 2px; background: var(--line); z-index: 0; }
.method-stage { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 8px; cursor: pointer; }
.stage-dot { display: grid; place-items: center; width: 66px; height: 66px; border-radius: 50%; border: 1.5px solid var(--gold); background: var(--paper); color: var(--gold-deep); margin-bottom: 20px; transition: background .35s var(--ease), color .35s var(--ease), box-shadow .35s var(--ease), transform .35s var(--ease); }
.stage-dot svg { width: 27px; height: 27px; }
.method-stage h4 { font-weight: 500; font-size: 1rem; color: var(--green-900); letter-spacing: -0.01em; transition: color .3s var(--ease); }
.method-stage p { display: none; }
.method-stage.active .stage-dot, .method-stage:hover .stage-dot { background: var(--gold); color: #fff; border-color: var(--gold); box-shadow: 0 5px 14px rgba(201,168,106,.24); transform: translateY(-4px); }
.method-stage.active h4, .method-stage:hover h4 { color: var(--gold-deep); }
/* legenda com a descrição do nó ativo (criada por JS) */
.method-caption { margin: 46px auto 0; text-align: center; min-height: 1.7em; max-width: 620px; color: var(--ink-soft); font-size: 1.06rem; line-height: 1.6; transition: opacity .35s var(--ease); }
/* Mobile: o caminho fica vertical, com a descrição inline */
@media (max-width: 820px) {
  .method-flow { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; }
  .method-flow::before { top: 8px; bottom: 8px; left: 33px; right: auto; width: 2px; height: auto; }
  .method-stage { flex-direction: row; align-items: flex-start; text-align: left; gap: 20px; padding: 14px 0; }
  .stage-dot { margin-bottom: 0; flex-shrink: 0; }
  .method-stage h4 { font-size: 1.1rem; }
  .method-stage p { display: block; margin-top: 5px; font-size: .94rem; color: var(--ink-soft); line-height: 1.55; }
  .stage-text { padding-top: 6px; }
  .method-caption { display: none; }
}

/* ============================================================
   WHY
   ============================================================ */
/* Grelha sem caixas — cartões a respirar, só uma linha fina no topo (dourada no hover) */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px 60px; }
.why-card { position: relative; padding-top: 30px; border-top: 1px solid var(--line); transition: border-color .5s var(--ease); }
.why-card:hover { border-color: var(--gold); }
.why-num { font-family: var(--serif); font-size: 1rem; color: var(--gold); display: block; margin-bottom: 24px; letter-spacing: .1em; }
.why-card h3 { font-size: 1.5rem; font-weight: 400; margin-bottom: 16px; transition: color .4s var(--ease); }
.why-card p { color: var(--ink-soft); font-size: 1rem; }
.why-card:hover h3 { color: var(--gold); }

/* ============================================================
   ACADEMIA DIGITAL
   ============================================================ */
.digital { position: relative; padding: 160px 0; overflow: hidden; }
.digital-media { position: absolute; inset: 0; z-index: 0; }
.digital-media img { width: 100%; height: 120%; object-fit: cover; will-change: transform; }
.digital-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7,64,46,.94) 0%, rgba(7,64,46,.72) 55%, rgba(7,64,46,.5) 100%); }
.digital-content { position: relative; z-index: 2; max-width: 620px; }
.digital-title { color: #fff; font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 300; margin: 26px 0; }
.digital-title em { color: var(--gold); }
.digital-lead { color: rgba(255,255,255,.85); font-size: 1.15rem; margin-bottom: 48px; }
.digital-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.digital-features div { padding: 24px 0; border-top: 1px solid var(--line-light); }
.digital-features strong { display: block; font-family: var(--serif); font-size: 1.15rem; font-weight: 400; color: var(--gold); margin-bottom: 8px; }
.digital-features span { color: rgba(255,255,255,.7); font-size: .9rem; }

/* ============================================================
   VALORES — cabeçalho assimétrico + lista editorial
   (quebra deliberada da fórmula eyebrow→título→grelha)
   ============================================================ */
.values { background: var(--cream); }
.values-inner { display: grid; grid-template-columns: 0.9fr 1.4fr; gap: 80px; align-items: start; }
.values-head { position: sticky; top: 120px; }
.values-head .eyebrow { margin-bottom: 26px; }
.values-head .section-title { font-size: clamp(2rem, 4vw, 3.2rem); }
.values-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; }
.value { display: flex; gap: 22px; padding: 30px 0; border-top: 1px solid var(--line); }
.value-idx { font-family: var(--serif); font-size: .95rem; color: var(--gold-deep); padding-top: 6px; }
.value h3 { font-size: 1.45rem; font-weight: 400; margin-bottom: 8px; }
.value p { color: var(--ink-soft); font-size: .98rem; }

/* ============================================================
   CTA
   ============================================================ */
.cta { background: var(--paper); padding: 150px 0; text-align: center; border-top: 1px solid var(--line); }
.cta-inner { max-width: 820px; margin: 0 auto; }
.cta .eyebrow { padding-left: 0; }
.cta .eyebrow::before { display: none; }
.cta-title { color: var(--green-900); font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 300; margin: 30px 0 24px; }
.cta-sub { color: var(--ink-soft); font-size: 1.15rem; margin-bottom: 50px; }
.cta-actions { display: flex; flex-direction: column; align-items: center; gap: 28px; }
.cta-phone { font-family: var(--serif); font-size: 1.6rem; color: var(--gold-deep); font-weight: 300; }
.cta-phone:hover { color: var(--green-800); }

/* ============================================================
   FAQ — acordeão
   ============================================================ */
.faq { background: var(--cream); }
.faq-grid { display: grid; grid-template-columns: 0.9fr 1.5fr; gap: 80px; align-items: start; }
.faq-head { position: sticky; top: 120px; }
.faq-head .eyebrow { margin-bottom: 26px; }
.faq-head .section-title { font-size: clamp(2rem, 4vw, 3.2rem); }
.faq-note { margin-top: 30px; color: var(--ink-soft); font-size: .98rem; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; background: none; border: none; cursor: pointer; text-align: left;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 28px 0; font-family: var(--sans); font-weight: 500; font-size: 1.12rem;
  color: var(--green-900); transition: color .3s;
}
.faq-q:hover { color: var(--gold-deep); }
.faq-icon { position: relative; flex: 0 0 16px; width: 16px; height: 16px; }
.faq-icon::before, .faq-icon::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 14px; height: 1.5px;
  background: var(--gold-deep); transform: translate(-50%, -50%); transition: transform .35s var(--ease);
}
.faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item.open .faq-icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .45s var(--ease); }
.faq-a p { padding: 0 60px 30px 0; color: var(--ink-soft); font-size: 1rem; line-height: 1.7; }

/* ============================================================
   CONTACTOS — info + formulário
   ============================================================ */
.contact { background: var(--paper); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 90px; align-items: start; }
.contact-info .eyebrow { margin-bottom: 26px; }
.contact-title { font-size: clamp(2rem, 4vw, 3.3rem); font-weight: 300; margin-bottom: 24px; }
.contact-sub { color: var(--ink-soft); font-size: 1.08rem; max-width: 440px; margin-bottom: 44px; }
.contact-details { border-top: 1px solid var(--line); }
.contact-details li { display: flex; justify-content: space-between; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.cd-label { font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-soft); }
.contact-details a, .contact-details li > span:last-child { color: var(--green-900); font-weight: 500; }
.contact-details a:hover { color: var(--gold-deep); }

.contact-form { display: flex; flex-direction: column; gap: 26px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  width: 100%; background: transparent; border: none; border-bottom: 1px solid var(--line);
  padding: 10px 0; font-family: var(--sans); font-size: 1rem; color: var(--ink); transition: border-color .3s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--gold); }
.field textarea { resize: vertical; }
.field select { appearance: none; cursor: pointer; }
.form-status { font-size: .9rem; color: var(--gold-deep); min-height: 1em; }
/* honeypot anti-bot: fora do ecrã (não usar display:none — alguns bots detetam-no) */
.hp-field { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--cream); color: var(--ink-soft); padding: 90px 0 40px; border-top: 1px solid var(--line); }
.footer-top { display: grid; grid-template-columns: 1.4fr 2fr; gap: 60px; padding-bottom: 60px; border-bottom: 1px solid var(--line); }
.logo-footer .logo-text { color: var(--green-900); }
.footer-brand p { margin-top: 24px; max-width: 340px; font-size: .98rem; color: var(--ink-soft); }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.footer-col h4 { color: var(--gold-deep); font-family: var(--sans); font-size: .78rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 22px; }
.footer-col a { display: block; padding: 8px 0; font-size: .96rem; color: var(--ink-soft); transition: color .3s; }
.footer-col a:hover { color: var(--green-900); }
.footer-bottom { display: flex; justify-content: space-between; padding-top: 30px; font-size: .82rem; letter-spacing: .04em; color: var(--ink-soft); }

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }
.hero .reveal { transition-delay: .1s; }
.hero .reveal:nth-child(2) { transition-delay: .2s; }
.hero .reveal:nth-child(3) { transition-delay: .35s; }
.hero .reveal:nth-child(4) { transition-delay: .5s; }

/* ---- Dinamismo: cascata nas grelhas ---- */
:is(.why-grid, .values-list, .mvp-grid, .paths-grid, .areas-list, .method-flow) .reveal { transition-duration: .9s; }
:is(.why-grid, .values-list, .mvp-grid, .paths-grid, .areas-list, .method-flow) .reveal:nth-child(2) { transition-delay: .07s; }
:is(.why-grid, .values-list, .mvp-grid, .paths-grid, .areas-list, .method-flow) .reveal:nth-child(3) { transition-delay: .14s; }
:is(.why-grid, .values-list, .mvp-grid, .paths-grid, .areas-list, .method-flow) .reveal:nth-child(4) { transition-delay: .21s; }
:is(.why-grid, .values-list, .mvp-grid, .paths-grid, .areas-list, .method-flow) .reveal:nth-child(5) { transition-delay: .28s; }
:is(.why-grid, .values-list, .mvp-grid, .paths-grid, .areas-list, .method-flow) .reveal:nth-child(6) { transition-delay: .35s; }
:is(.why-grid, .values-list, .mvp-grid, .paths-grid, .areas-list, .method-flow) .reveal:nth-child(7) { transition-delay: .42s; }

/* ---- Dinamismo: as imagens das features entram de lado ---- */
.feature-media.reveal { transform: translateX(-48px); }
.feature-grid.reverse .feature-media.reveal { transform: translateX(48px); }
.feature-media.reveal.in { transform: translateX(0); }

/* ---- Dinamismo: brilho a atravessar os botões dourados ---- */
.btn-gold::after {
  content: ""; position: absolute; top: 0; left: -120%; width: 55%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,.35), transparent);
  transform: skewX(-20deg); pointer-events: none;
}
.btn-gold:hover::after { animation: btnShine .85s var(--ease); }
@keyframes btnShine { to { left: 140%; } }

/* ============================================================
   RESPONSIVE
   ============================================================ */
/* miniatura flutuante só em ecrãs largos, para espaçamento sempre limpo */
@media (max-width: 1200px) { .area-media { display: none; } }

@media (max-width: 1024px) {
  .mvp-grid, .why-grid, .digital-features { grid-template-columns: repeat(2, 1fr); }
  .values-inner { grid-template-columns: 1fr; gap: 40px; }
  .values-head { position: static; }
  .faq-grid { grid-template-columns: 1fr; gap: 40px; }
  .faq-head { position: static; }
  .contact-grid { grid-template-columns: 1fr; gap: 50px; }
  .feature-grid { grid-template-columns: 1fr; gap: 40px; }
  .feature-grid.reverse .feature-media { order: 0; }
  .feature-media { aspect-ratio: 16/10; }
  /* reveal vertical no telemóvel (o deslocamento horizontal de ±48px causava overflow) */
  .feature-media.reveal,
  .feature-grid.reverse .feature-media.reveal { transform: translateY(28px); }
  .intro-grid { grid-template-columns: 1fr; gap: 30px; }
  .overlay-menu-inner { grid-template-columns: 1fr; align-items: start; gap: 40px; }
  .area-media { display: none; }
}

@media (max-width: 680px) {
  .container, .header-inner { padding: 0 22px; }
  .section { padding: 80px 0; }
  .header-right { gap: 16px; } /* mais compacto no telemóvel; telefone fica como ícone */
  .menu-btn { gap: 0; } /* só o ícone hambúrguer, sem a palavra "MENU" */
  .menu-btn-label { display: none; }
  .mvp-grid, .why-grid, .digital-features, .values-list, .field-row, .paths-grid { grid-template-columns: 1fr; }
  .path-block { min-height: 300px; padding: 40px 30px; }
  .path-num { display: none; }
  .mvp-grid { gap: 40px; }
  .area-row { grid-template-columns: 60px 1fr; grid-template-areas: "idx name" "idx desc"; gap: 6px 20px; padding: 30px 6px; }
  .area-row:hover { padding-left: 16px; }
  .area-index { grid-area: idx; }
  .area-name { grid-area: name; }
  .area-desc { grid-area: desc; }
  .area-arrow { display: none; }
  .footer-top, .footer-cols { grid-template-columns: 1fr; gap: 40px; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
  .digital { padding: 90px 0; }
  .hero-scroll { display: none; }
  .overlay-menu { clip-path: circle(0% at calc(100% - 40px) 40px); }
  .overlay-menu.open { clip-path: circle(150% at calc(100% - 40px) 40px); }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
