/* ═══════════════════════════════════════════════════════════════
   INSTITUTO CALAZANS · Sistema de design compartilhado
   Derivado do index.html — paleta preto/ouro, Cormorant + Jakarta
   ═══════════════════════════════════════════════════════════════ */

:root {
  --bg:           #080b0f;
  --bg-2:         #0e1318;
  --bg-3:         #141b22;
  --bg-4:         #1a232d;
  --line:         rgba(255,255,255,.07);
  --line-silver:  rgba(184,184,200,.12);

  --text:         #e4dfd4;
  --text-muted:   #7e8494;
  --text-dim:     #404655;

  --gold:         #c9a84c;
  --gold-light:   #e0c47a;
  --gold-dim:     rgba(201,168,76,.12);
  --gold-border:  rgba(201,168,76,.25);

  --silver:       #b4b8c8;
  --silver-light: #d0d4e0;
  --silver-dim:   rgba(180,184,200,.1);
  --silver-border:rgba(180,184,200,.2);

  --white:        #f8f6f0;
  --radius:       3px;
  --max:          1160px;
  --max-prose:    760px;
  --gap:          clamp(3.5rem, 8vw, 7rem);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  line-height: 1.12;
  color: var(--white);
}

.eyebrow {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: .68rem; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold);
}
.eyebrow-silver { color: var(--silver); }

.lead {
  font-size: clamp(.95rem, 1.4vw, 1.1rem);
  color: var(--text-muted);
  max-width: 60ch; line-height: 1.82;
}

.container { width: min(var(--max), 100% - 3rem); margin-inline: auto; }
.container-prose { width: min(var(--max-prose), 100% - 3rem); margin-inline: auto; }
section { padding-block: var(--gap); }

/* ─── NAV ─────────────────────────────────────────────── */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(8,11,15,.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  width: min(var(--max), 100% - 3rem); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.nav-logo { display: flex; align-items: center; gap: .7rem; }
.nav-logo img { height: 38px; width: auto; }
.nav-logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.nav-logo-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem; font-weight: 600; color: var(--white);
  letter-spacing: .02em;
}
.nav-logo-sub {
  font-size: .58rem; font-weight: 600; letter-spacing: .22em;
  text-transform: uppercase; color: var(--gold);
}
.nav-links { display: flex; align-items: center; gap: 1.9rem; }
.nav-links a {
  font-size: .82rem; font-weight: 500; color: var(--text-muted);
  transition: color .2s;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--silver-light); }
.btn-nav {
  border: 1px solid var(--gold-border);
  color: var(--gold) !important;
  padding: .5rem 1.1rem; border-radius: var(--radius);
  font-weight: 600 !important;
}
.btn-nav:hover { background: var(--gold-dim); }
.nav-mobile-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 6px; }
.nav-mobile-toggle span { width: 24px; height: 2px; background: var(--silver-light); transition: .25s; }

@media (max-width: 860px) {
  .nav-links {
    position: fixed; inset: 72px 0 auto 0;
    flex-direction: column; gap: 0;
    background: var(--bg-2); border-bottom: 1px solid var(--line);
    padding: 1rem 0; transform: translateY(-120%);
    transition: transform .3s ease; align-items: stretch;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links li { text-align: center; }
  .nav-links a { display: block; padding: .9rem; font-size: .95rem; }
  .nav-mobile-toggle { display: flex; }
}

/* ─── BUTTONS ─────────────────────────────────────────── */
.btn-primary, .btn-secondary {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: .82rem; font-weight: 600; letter-spacing: .04em;
  padding: .95rem 1.8rem; border-radius: var(--radius);
  transition: transform .15s, background .2s, border-color .2s;
  cursor: pointer;
}
.btn-primary { background: var(--gold); color: var(--bg); border: 1px solid var(--gold); }
.btn-primary:hover { background: var(--gold-light); transform: translateY(-1px); }
.btn-secondary { background: transparent; color: var(--silver-light); border: 1px solid var(--silver-border); }
.btn-secondary:hover { border-color: var(--silver); background: var(--silver-dim); }

/* ─── PAGE HERO ───────────────────────────────────────── */
.page-hero { padding-block: clamp(3rem, 8vw, 6rem) clamp(2.5rem, 6vw, 4rem); position: relative; }
.page-hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 80% 60% at 70% -10%, rgba(201,168,76,.07), transparent 60%),
    linear-gradient(180deg, var(--bg-2), var(--bg));
}
.page-hero .eyebrow { display: block; margin-bottom: 1rem; }
.page-hero h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); max-width: 16ch; }
.page-hero h1 em { color: var(--gold-light); font-style: italic; }
.page-hero .lead { margin-top: 1.6rem; font-size: clamp(1.02rem, 1.6vw, 1.2rem); }
.breadcrumb { font-size: .72rem; color: var(--text-dim); margin-bottom: 1.6rem; letter-spacing: .04em; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--gold); }

/* ─── PROSE / CONTENT ─────────────────────────────────── */
.prose h2 { font-size: clamp(1.8rem, 3.5vw, 2.7rem); margin-bottom: 1rem; }
.prose h3 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); margin: 2.2rem 0 .8rem; color: var(--silver-light); }
.prose p { color: var(--text-muted); margin-bottom: 1.1rem; line-height: 1.85; }
.prose p strong { color: var(--text); font-weight: 600; }
.prose ul.bullets { margin: 1rem 0 1.4rem; }
.prose ul.bullets li {
  position: relative; padding-left: 1.5rem; margin-bottom: .7rem;
  color: var(--text-muted); line-height: 1.7;
}
.prose ul.bullets li::before {
  content: '›'; position: absolute; left: 0; color: var(--gold);
  font-weight: 700;
}

/* ─── DEFINITION CARD ─────────────────────────────────── */
.def-card {
  background: linear-gradient(160deg, var(--bg-3), var(--bg-2));
  border: 1px solid var(--gold-border); border-left: 3px solid var(--gold);
  border-radius: var(--radius); padding: clamp(1.6rem, 4vw, 2.4rem);
  margin: 2rem 0;
}
.def-card .eyebrow { display: block; margin-bottom: .7rem; }
.def-card p { font-family: 'Cormorant Garamond', serif; font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  color: var(--white); line-height: 1.45; font-style: italic; margin: 0; }

/* ─── VIAS (mecânica / metabólica) ────────────────────── */
.vias { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin: 1.8rem 0; }
.via-col .eyebrow-silver { display:block; margin-bottom:.5rem; }
.via-col p { font-size: .92rem; color: var(--text-muted); margin: 0; }
@media (max-width: 600px){ .vias { grid-template-columns: 1fr; gap: 1.1rem; } }

/* ─── FOR WHOM grid ───────────────────────────────────── */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: 1.2rem; margin: 1.8rem 0; }
.mini-card {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem;
}
.mini-card h4 { font-size: 1.3rem; margin-bottom: .5rem; color: var(--silver-light); }
.mini-card p { font-size: .88rem; color: var(--text-muted); margin: 0; line-height: 1.65; }

/* ─── STEPS ───────────────────────────────────────────── */
.steps { counter-reset: step; margin: 1.8rem 0; }
.step {
  display: grid; grid-template-columns: 56px 1fr; gap: 1.2rem;
  padding: 1.4rem 0; border-top: 1px solid var(--line);
}
.step:first-child { border-top: none; }
.step-num {
  font-family: 'Cormorant Garamond', serif; font-size: 2.2rem;
  color: var(--gold); line-height: 1;
}
.step h4 { font-size: 1.25rem; margin-bottom: .4rem; }
.step p { font-size: .9rem; color: var(--text-muted); margin: 0; }

/* ─── FAQ ─────────────────────────────────────────────── */
.faq { margin: 1.5rem 0; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.25rem 0; color: var(--white);
  font-family: 'Cormorant Garamond', serif; font-size: clamp(1.15rem,2vw,1.4rem);
}
.faq-q::after { content: '+'; color: var(--gold); font-size: 1.4rem; flex-shrink: 0; transition: transform .25s; }
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a p { color: var(--text-muted); padding-bottom: 1.25rem; margin: 0; line-height: 1.8; font-size: .95rem; }

/* ─── CTA BAND ────────────────────────────────────────── */
.cta-band {
  background: linear-gradient(160deg, var(--bg-3), var(--bg-2));
  border: 1px solid var(--gold-border); border-radius: var(--radius);
  padding: clamp(2.2rem, 6vw, 3.5rem); text-align: center; margin-top: 2rem;
}
.cta-band h2 { font-size: clamp(1.8rem,4vw,2.8rem); margin-bottom: 1rem; max-width: 20ch; margin-inline: auto; }
.cta-band p { color: var(--text-muted); max-width: 52ch; margin: 0 auto 1.8rem; }
.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ─── FOOTER ──────────────────────────────────────────── */
footer { border-top: 1px solid var(--line); padding-block: clamp(2.5rem,6vw,4rem); background: var(--bg-2); }
.footer-inner { width: min(var(--max), 100% - 3rem); margin-inline: auto; text-align: center; }
.footer-logo { font-family:'Cormorant Garamond',serif; font-size:1.5rem; color:var(--white); margin-bottom:.4rem; }
.footer-sub { font-size:.82rem; color:var(--text-muted); margin-bottom:1.4rem; }
.footer-contact { font-size:.85rem; color:var(--text-muted); line-height:1.9; margin-bottom:1.4rem; }
.footer-contact a:hover { color: var(--gold); }
.footer-links { display:flex; gap:1.6rem; justify-content:center; flex-wrap:wrap; margin-bottom:1.4rem; }
.footer-links a { font-size:.72rem; letter-spacing:.18em; text-transform:uppercase; color:var(--text-muted); }
.footer-links a:hover { color: var(--gold); }
.footer-legal { font-size:.7rem; color:var(--text-dim); line-height:1.7; }

/* ─── WHATSAPP FLOAT ──────────────────────────────────── */
.wa-float {
  position: fixed; bottom: 22px; right: 22px; z-index: 200;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 24px rgba(37,211,102,.4); transition: transform .2s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }

/* ─── REVEAL ──────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

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

/* ─── SOBRE GRID responsivo ───────────────────────────── */
@media (max-width: 680px){
  .sobre-grid { grid-template-columns: 1fr !important; }
  .sobre-grid img { max-width: 240px; margin-inline: auto; }
}
