/* ============================================================
   Performa Ilumina — Design System (light)
   Tokens herdados do catálogo: creme + verde + serif editorial.
   ============================================================ */
:root {
  --bg:        #f5f0e8;
  --bg-2:      #efe9dd;
  --surf:      #ffffff;
  --surf-2:    #f0ebe1;
  --surf-3:    #e8e1d5;
  --border:    #ddd6ca;
  --border-hi: #c9c0b0;
  --text:      #1a140e;
  --muted:     #6f6356;
  --faint:     #9a8d7d;
  --accent:    #2d6a4f;
  --accent-hi: #245a42;
  --accent-soft: rgba(45,106,79,.10);
  --dark:      #14110d;
  --dark-2:    #1c1812;
  --sans:  "Epilogue", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "DM Serif Display", Georgia, "Times New Roman", serif;
  --r:  14px;
  --r-sm: 9px;
  --shadow: 0 1px 2px rgba(26,20,14,.04), 0 8px 30px rgba(26,20,14,.06);
  --shadow-hi: 0 2px 6px rgba(26,20,14,.06), 0 18px 48px rgba(26,20,14,.12);
  --max: 1180px;
  --gutter: clamp(20px, 5vw, 48px);
}

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

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

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }

::selection { background: var(--accent-soft); color: var(--accent-hi); }

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

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(20,17,13,.92);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid rgba(255,255,255,.08);
  color: #f3eee4;
}
.site-header .wrap {
  display: flex; align-items: center; gap: 22px;
  min-height: 68px; padding-top: 10px; padding-bottom: 10px;
}
.brand {
  display: flex; flex-direction: column; line-height: 1.1; flex: none;
}
.brand .brand-name {
  font-family: var(--serif);
  font-size: 1.22rem; letter-spacing: -.01em; color: #fff;
}
.brand .brand-tag {
  font-size: .63rem; letter-spacing: .18em; text-transform: uppercase;
  color: #b9ae9c; margin-top: 3px; font-weight: 500;
}
.site-nav {
  display: flex; align-items: center; gap: 4px; margin-left: auto;
  flex-wrap: wrap;
}
.site-nav a {
  font-size: .86rem; font-weight: 500; color: #cfc6b7;
  padding: 8px 11px; border-radius: 8px; transition: color .15s, background .15s;
  white-space: nowrap;
}
.site-nav a:hover { color: #fff; background: rgba(255,255,255,.08); }
.site-nav a[aria-current="page"] { color: #fff; }
.site-nav .nav-cta {
  margin-left: 8px; background: var(--accent); color: #fff;
  padding: 9px 16px; border-radius: 9px; font-weight: 600;
}
.site-nav .nav-cta:hover { background: var(--accent-hi); }

.nav-toggle {
  display: none; margin-left: auto; width: 40px; height: 40px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  border-radius: 9px; cursor: pointer; color: #fff;
}

/* ---------- hero ---------- */
.hero { padding: clamp(56px, 9vw, 104px) 0 clamp(40px, 6vw, 64px); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: .72rem; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 22px;
}
.eyebrow::before {
  content: ""; width: 26px; height: 1.5px; background: var(--accent);
}
.hero h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2.3rem, 5.4vw, 4.1rem);
  line-height: 1.04; letter-spacing: -.025em; max-width: 16ch;
  color: var(--text);
}
.hero h1 em { font-style: italic; color: var(--accent); }
.hero .deck {
  margin-top: 22px; max-width: 60ch;
  font-size: clamp(1rem, 1.5vw, 1.18rem); color: var(--muted); line-height: 1.65;
}
.hero-actions { margin-top: 34px; display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 12px 22px; border-radius: 10px; font-weight: 600; font-size: .93rem;
  border: 1px solid transparent; transition: .16s ease; cursor: pointer;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hi); transform: translateY(-1px); box-shadow: 0 10px 26px rgba(45,106,79,.28); }
.btn-ghost { background: transparent; border-color: var(--border-hi); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- stats strip ---------- */
.stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--border); border-radius: var(--r);
  background: var(--surf); overflow: hidden;
  margin-top: clamp(40px, 6vw, 64px);
}
.stat { padding: 24px 26px; border-right: 1px solid var(--border); }
.stat:last-child { border-right: 0; }
.stat .num {
  font-family: var(--serif); font-size: clamp(1.7rem, 3vw, 2.3rem);
  color: var(--accent); line-height: 1;
}
.stat .lbl { margin-top: 8px; font-size: .82rem; color: var(--muted); line-height: 1.4; }

/* ---------- sections ---------- */
.section { padding: clamp(48px, 7vw, 84px) 0; }
.section + .section { border-top: 1px solid var(--border); }
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; margin-bottom: 34px; flex-wrap: wrap;
}
.section-kicker {
  font-size: .72rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 12px;
}
.section-title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.7rem, 3.2vw, 2.5rem); line-height: 1.1; letter-spacing: -.02em;
}
.section-desc { color: var(--muted); margin-top: 10px; max-width: 64ch; font-size: .96rem; }
.section-link {
  font-size: .88rem; font-weight: 600; color: var(--accent);
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
}
.section-link:hover { gap: 10px; }

/* ---------- cards ---------- */
.grid { display: grid; gap: 16px; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--surf); border: 1px solid var(--border);
  border-radius: var(--r); padding: 24px 24px 22px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  overflow: hidden;
}
.card::after {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 3px;
  background: var(--accent); transform: scaleY(0); transform-origin: top;
  transition: transform .2s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hi);
  border-color: var(--border-hi);
}
.card:hover::after { transform: scaleY(1); }

.card-tag {
  font-size: .63rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 14px;
}
.card h3 {
  font-family: var(--serif); font-weight: 400; font-size: 1.22rem;
  line-height: 1.25; letter-spacing: -.01em; margin-bottom: 9px;
}
.card p { font-size: .9rem; color: var(--muted); line-height: 1.55; flex: 1; }
.card .card-foot {
  margin-top: 18px; display: flex; align-items: center; gap: 7px;
  font-size: .84rem; font-weight: 600; color: var(--accent);
}
.card .card-foot .arrow { transition: transform .18s ease; }
.card:hover .card-foot .arrow { transform: translateX(4px); }
.card .ext { font-size: .8rem; color: var(--faint); margin-left: 4px; }

/* featured card variant */
.card--wide { grid-column: span 2; }
@media (max-width: 760px) { .card--wide { grid-column: auto; } }

/* ---------- callout / band ---------- */
.band {
  background: var(--dark); color: #f3eee4; border-radius: var(--r);
  padding: clamp(32px, 5vw, 56px); margin: clamp(48px, 7vw, 80px) 0;
  display: flex; align-items: center; justify-content: space-between;
  gap: 28px; flex-wrap: wrap;
}
.band h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.15; max-width: 22ch;
}
.band p { color: #c9bfae; margin-top: 10px; max-width: 48ch; font-size: .95rem; }
.band .btn-primary { flex: none; }

/* ---------- footer ---------- */
.site-footer {
  background: var(--dark); color: #cfc6b7;
  margin-top: clamp(48px, 7vw, 80px);
  padding: clamp(44px, 6vw, 64px) 0 30px;
}
.footer-top {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px;
  padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-brand .brand-name { color: #fff; font-family: var(--serif); font-size: 1.3rem; }
.footer-brand p { margin-top: 14px; font-size: .88rem; color: #a99f8e; max-width: 34ch; line-height: 1.6; }
.footer-col h4 {
  font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
  color: #8f8574; margin-bottom: 15px; font-weight: 700;
}
.footer-col a {
  display: block; font-size: .88rem; color: #cfc6b7; padding: 5px 0;
  transition: color .14s;
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding-top: 26px; font-size: .8rem; color: #8f8574;
}

/* ---------- misc ---------- */
.crumbs {
  padding: 18px 0 0; font-size: .82rem; color: var(--muted);
  display: flex; gap: 8px; flex-wrap: wrap;
}
.crumbs a { color: var(--accent); }
.crumbs span { color: var(--faint); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.page-hero { padding: clamp(40px, 6vw, 72px) 0 clamp(32px, 4vw, 48px); }
.page-hero .hero-sub { margin-top: 14px; color: var(--muted); max-width: 62ch; font-size: 1.02rem; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .site-nav { display: none; }
  .site-nav.open {
    display: flex; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--dark-2); padding: 14px var(--gutter) 20px;
    border-bottom: 1px solid rgba(255,255,255,.1);
  }
  .site-nav.open a { padding: 11px 12px; }
  .site-nav.open .nav-cta { margin: 8px 0 0; text-align: center; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 30px; }
}
@media (max-width: 760px) {
  .grid.cols-3, .grid.cols-2 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--border); }
  .stat:last-child { border-bottom: 0; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 460px) {
  .footer-top { grid-template-columns: 1fr; }
  .band { padding: 28px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
