/* =============================================================
   APOGEU FABULOSO, LDA — Brand System
   Re-skin of the FAAIF "Modern Monolith" structure into the
   Apogeu identity: Metallic Gold + Chocolate Dark Brown.
   ============================================================= */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* ---- Brand palette — extracted from the Apogeu logo ---- */
  --gold-300: #F0D695;
  --gold-400: #E2BA63;
  --gold-500: #C9962F;   /* primary metallic gold */
  --gold-600: #A6781F;
  --gold-700: #835D16;

  --brown-950: #1C1006;
  --brown-900: #2A1A0E;  /* deepest chocolate */
  --brown-800: #38240F;  /* primary dark surface */
  --brown-700: #4E3220;  /* elevated dark card */
  --brown-600: #6B4A2E;
  --brown-500: #8A6843;
  --brown-400: #A98963;

  --cream-50:  #FBF8F2;  /* warm off-white */
  --cream-100: #F4ECDF;
  --cream-200: #EADEC9;
  --white:     #FFFFFF;

  /* Warm neutral text ramp */
  --ink-900: #2A1B0E;    /* primary text */
  --ink-700: #5A4634;
  --ink-500: #897560;    /* muted */
  --ink-300: #B9A88F;    /* placeholder */

  /* ---- Semantic ---- */
  --fg-1: var(--ink-900);
  --fg-2: var(--ink-700);
  --fg-3: var(--ink-500);
  --fg-accent: var(--gold-600);
  --fg-inverse: var(--white);
  --fg-inverse-2: rgba(255,255,255,0.74);
  --fg-inverse-3: rgba(255,255,255,0.48);

  --bg-1: var(--white);
  --bg-2: var(--cream-50);
  --bg-3: var(--cream-100);
  --bg-dark: var(--brown-800);
  --bg-dark-elevated: var(--brown-700);
  --bg-nav-glass: rgba(255,255,255,0.72);

  --border-1: var(--cream-200);
  --border-2: #DECDB0;
  --border-dark: rgba(255,255,255,0.10);

  --gold-grad: linear-gradient(135deg, #F0D695 0%, #C9962F 46%, #A6781F 100%);
  --gold-sheen: linear-gradient(120deg, #835D16 0%, #C9962F 28%, #F4E2AE 50%, #C9962F 72%, #835D16 100%);

  /* ---- Type ---- */
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Menlo, monospace;

  --text-xs: 12px;  --text-sm: 14px;  --text-base: 16px; --text-md: 18px;
  --text-lg: 20px;  --text-xl: 24px;  --text-2xl: 32px;  --text-3xl: 40px;
  --text-4xl: 56px; --text-5xl: 72px; --text-6xl: 88px;

  --lh-tight: 1.08; --lh-display: 1.12; --lh-heading: 1.28; --lh-body: 1.62;
  --tracking-display: -0.025em;
  --tracking-heading: -0.015em;
  --tracking-caps: 0.16em;

  --weight-regular: 400; --weight-medium: 500; --weight-semibold: 600;
  --weight-bold: 700; --weight-extra: 800;

  /* ---- Spacing (4px base) ---- */
  --space-1: 4px;  --space-2: 8px;  --space-3: 12px; --space-4: 16px;
  --space-5: 24px; --space-6: 32px; --space-7: 48px; --space-8: 64px;
  --space-9: 96px; --space-10: 128px;

  /* ---- Radii ---- */
  --radius-sm: 4px; --radius-md: 8px; --radius-lg: 12px; --radius-xl: 16px;
  --radius-2xl: 24px; --radius-pill: 9999px;

  /* ---- Elevation ---- */
  --shadow-1: 0 1px 2px rgba(42,27,14,0.05), 0 1px 1px rgba(42,27,14,0.03);
  --shadow-2: 0 6px 18px rgba(42,27,14,0.08), 0 2px 5px rgba(42,27,14,0.04);
  --shadow-3: 0 20px 48px rgba(42,27,14,0.12), 0 6px 12px rgba(42,27,14,0.06);
  --shadow-gold: 0 12px 32px rgba(166,120,31,0.28);

  /* ---- Motion ---- */
  --ease-out: cubic-bezier(0.2,0.8,0.2,1);
  --ease-in-out: cubic-bezier(0.4,0,0.2,1);
  --dur-micro: 160ms; --dur-short: 240ms; --dur-medium: 420ms;

  /* ---- Layout ---- */
  --container-max: 1200px;
  --gutter: 48px;
  --nav-height: 114px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--lh-body);
  color: var(--fg-1);
  background: var(--bg-1);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1,h2,h3,h4,h5,h6,p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; }

/* ============================ LAYOUT ============================ */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.section { padding: var(--space-10) 0; }
.section--tight { padding: var(--space-9) 0; }
.section--cream { background: var(--bg-2); }
.section--dark {
  background: var(--bg-dark);
  color: var(--fg-inverse);
  position: relative;
}

/* ============================ TYPE ============================ */
.eyebrow {
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--gold-600);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}
.eyebrow::before {
  content: "";
  width: 22px; height: 2px;
  background: var(--gold-grad);
  display: inline-block;
}
.section--dark .eyebrow { color: var(--gold-400); }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: rgba(201,150,47,0.08);
  border: 1px solid rgba(240,214,149,0.2);
  color: var(--gold-300);
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  letter-spacing: 0.02em;
  margin-bottom: var(--space-5);
}

.display {
  font-weight: var(--weight-extra);
  font-size: clamp(44px, 6.4vw, var(--text-6xl));
  line-height: var(--lh-display);
  letter-spacing: var(--tracking-display);
}
.h1 {
  font-weight: var(--weight-extra);
  font-size: clamp(36px, 5vw, var(--text-4xl));
  line-height: var(--lh-display);
  letter-spacing: var(--tracking-display);
}
.h2 {
  font-weight: var(--weight-bold);
  font-size: clamp(28px, 3.6vw, var(--text-3xl));
  line-height: var(--lh-heading);
  letter-spacing: var(--tracking-heading);
}
.h3 {
  font-weight: var(--weight-bold);
  font-size: var(--text-2xl);
  line-height: var(--lh-heading);
  letter-spacing: var(--tracking-heading);
}
.h4 {
  font-weight: var(--weight-semibold);
  font-size: var(--text-xl);
  line-height: var(--lh-heading);
}
.lede {
  font-size: var(--text-lg);
  line-height: var(--lh-body);
  color: var(--fg-2);
  font-weight: var(--weight-regular);
}
.muted { color: var(--fg-3); }
.mono {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  letter-spacing: 0.02em;
}
.gold-text {
  color: #FFFFFF;
}

/* ============================ BUTTONS ============================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-sans);
  font-weight: var(--weight-semibold);
  font-size: var(--text-base);
  padding: 15px 26px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
  white-space: nowrap;
  outline: none;
}
.btn:focus-visible {
  outline: 2px solid var(--gold-500);
  outline-offset: 2px;
}
.btn:active { transform: scale(0.98); }
.btn--primary {
  background: rgba(201, 150, 47, 0.12);
  color: var(--gold-500);
  border-color: rgba(201, 150, 47, 0.35);
  box-shadow: none;
}
.btn--primary:hover {
  background: rgba(201, 150, 47, 0.22);
  border-color: var(--gold-500);
  transform: scale(1.02);
  box-shadow: 0 8px 24px rgba(201, 150, 47, 0.18);
}
.btn--primary:focus-visible {
  background: rgba(201, 150, 47, 0.22);
  border-color: var(--gold-500);
}
.hero .btn--primary,
.page-hero .btn--primary,
.section--dark .btn--primary {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.35);
}
.hero .btn--primary:hover,
.page-hero .btn--primary:hover,
.section--dark .btn--primary:hover,
.hero .btn--primary:focus-visible,
.page-hero .btn--primary:focus-visible,
.section--dark .btn--primary:focus-visible {
  color: #c9962f;
  border-color: #c9962f;
}
.btn--dark {
  background: var(--brown-800);
  color: var(--white);
}
.btn--dark:hover {
  background: var(--brown-700);
  transform: scale(1.02);
}
.btn--ghost {
  background: transparent;
  color: var(--fg-1);
  border-color: var(--border-2);
}
.btn--ghost:hover {
  border-color: var(--gold-500);
  color: var(--gold-700);
  transform: scale(1.02);
}
.btn--ghost:focus-visible {
  border-color: var(--gold-500);
  color: var(--gold-700);
}
.hero .btn--ghost,
.page-hero .btn--ghost {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.45);
}
.hero .btn--ghost:hover,
.page-hero .btn--ghost:hover,
.hero .btn--ghost:focus-visible,
.page-hero .btn--ghost:focus-visible {
  color: #c9962f;
  border-color: #c9962f;
  background: rgba(201, 150, 47, 0.08);
}
.section--dark .btn--ghost {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.45);
}
.section--dark .btn--ghost:hover,
.section--dark .btn--ghost:focus-visible {
  color: #c9962f;
  border-color: #c9962f;
  background: rgba(201, 150, 47, 0.08);
}
.btn .arrow { transition: transform 0.3s ease-in-out; }
.btn:hover .arrow { transform: translateX(4px); }

/* ============================ NAV ============================ */
.nav-wrap {
  position: fixed;
  top: 16px; left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: var(--container-max);
  z-index: 100;
}
.nav {
  position: relative;
  background: var(--bg-nav-glass);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid rgba(42,27,14,0.07);
  border-radius: var(--radius-xl);
  padding: 12px 16px 12px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  box-shadow: 0 1px 0 rgba(42,27,14,0.04);
  transition: box-shadow var(--dur-medium) var(--ease-out), background var(--dur-medium) var(--ease-out);
}
.nav.scrolled { box-shadow: var(--shadow-3); background: rgba(255,255,255,0.86); }

/* Brand lockup */
.brand { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand-img { height: 90px; width: auto; display: block; transition: transform var(--dur-short) var(--ease-out); }
.brand:hover .brand-img { transform: scale(1.02); }

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  flex: 1;
  justify-content: center;
}
.nav-links > li { display: flex; align-items: center; }
.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--fg-2);
  padding: 6px 0;
  transition: color var(--dur-micro) var(--ease-out);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--gold-grad);
  transition: width var(--dur-short) var(--ease-out);
}
.nav-link:hover { color: var(--ink-900); }
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }
.nav-link.active { color: var(--ink-900); }

/* Nav dropdown menus */
.nav-dropdown { position: relative; display: flex; align-items: center; }
.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 0;
  padding: 6px 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--fg-2);
  line-height: 1.4;
  -webkit-appearance: none;
  appearance: none;
}
.nav-dropdown-trigger:hover { color: var(--ink-900); }
.nav-dropdown-trigger .chev {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  color: var(--ink-500);
  transition: transform var(--dur-short) var(--ease-out);
}
.nav-dropdown.open .nav-dropdown-trigger .chev { transform: rotate(180deg); }
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 260px;
  max-height: 70vh;
  overflow-y: auto;
  background: var(--white);
  border: 1px solid var(--border-1);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-3);
  padding: 6px;
  z-index: 110;
}
.nav-dropdown.open .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a {
  display: block;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--ink-700);
  white-space: nowrap;
  transition: background var(--dur-micro), color var(--dur-micro);
}
.nav-dropdown-menu a:hover {
  background: var(--cream-50);
  color: var(--ink-900);
}
.nav-dropdown-menu a.nav-dropdown-overview {
  font-weight: var(--weight-bold);
  color: var(--gold-700);
  border-bottom: 1px solid var(--border-1);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  margin-bottom: 4px;
}
.nav-dropdown.active > .nav-dropdown-trigger { color: var(--ink-900); }
.nav-dropdown.active > .nav-dropdown-trigger::after { width: 100%; }

.nav-right { display: flex; align-items: center; gap: var(--space-3); }

/* Language switcher */
.lang { position: relative; }
.flag-icon { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; flex-shrink: 0; display: inline-block; vertical-align: middle; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 7px;
  background: transparent;
  border: 1px solid var(--border-2);
  border-radius: var(--radius-md);
  padding: 9px 12px;
  cursor: pointer;
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--ink-900);
  transition: border-color var(--dur-micro) var(--ease-out), background var(--dur-micro);
}
.lang-btn:hover { border-color: var(--gold-500); }
.lang-btn .globe { width: 16px; height: 16px; color: var(--gold-600); }
.lang-btn .chev { width: 13px; height: 13px; transition: transform var(--dur-short) var(--ease-out); color: var(--ink-500); }
.lang.open .lang-btn .chev { transform: rotate(180deg); }
.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 168px;
  background: var(--white);
  border: 1px solid var(--border-1);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-3);
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity var(--dur-short) var(--ease-out), transform var(--dur-short) var(--ease-out), visibility var(--dur-short);
}
.lang.open .lang-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-opt {
  display: flex; align-items: center; gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: none; background: transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--ink-700);
  text-align: left;
  transition: background var(--dur-micro);
}
.lang-opt:hover { background: var(--cream-50); }
.lang-opt .flag { font-size: 16px; line-height: 1; }
.lang-opt .check { margin-left: auto; width: 15px; height: 15px; color: var(--gold-600); opacity: 0; }
.lang-opt.active { color: var(--ink-900); font-weight: var(--weight-bold); }
.lang-opt.active .check { opacity: 1; }
.lang-opt .opt-sub { font-size: 11px; color: var(--ink-500); font-weight: 400; }
.lang-names { display: flex; flex-direction: column; line-height: 1.25; }
.lang-names .opt-name { font-size: var(--text-sm); }
.nav-cta { padding: 11px 18px; font-size: var(--text-sm); }
@media (max-width: 600px) { .nav-cta { display: none; } }
@media (max-width: 860px) { .nav-right { gap: var(--space-2); } }

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 22px; height: 2px;
  background: var(--ink-900);
  border-radius: 2px;
  transition: transform var(--dur-short) var(--ease-out), opacity var(--dur-short);
}

/* ============================ CARDS ============================ */
.card {
  background: var(--white);
  border: 1px solid var(--border-1);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  box-shadow: var(--shadow-1);
  transition: transform var(--dur-medium) var(--ease-out),
              box-shadow var(--dur-medium) var(--ease-out),
              border-color var(--dur-medium) var(--ease-out);
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-2);
  border-color: var(--gold-400);
}
.section--cream .card { border-color: var(--border-1); }
.card-icon {
  width: 54px; height: 54px;
  border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--cream-100), var(--cream-200));
  color: var(--gold-700);
  margin-bottom: var(--space-5);
  border: 1px solid var(--border-1);
}
.card:hover .card-icon {
  background: var(--gold-grad);
  color: var(--brown-900);
  border-color: transparent;
}
.card-icon svg { width: 26px; height: 26px; }

/* Dark card */
.card-dark {
  background: var(--bg-dark-elevated);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  color: var(--fg-inverse);
}

/* ============================ FORMS ============================ */
.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fg-2);
}
.field label .req { color: var(--gold-600); }
.field input, .field select, .field textarea {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  padding: 14px 15px;
  border: 1px solid var(--border-2);
  border-radius: var(--radius-md);
  background: var(--white);
  color: var(--ink-900);
  width: 100%;
  outline: none;
  transition: border-color var(--dur-short) var(--ease-out), box-shadow var(--dur-short) var(--ease-out);
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-300); }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--gold-500);
  box-shadow: 0 0 0 3px rgba(201,150,47,0.16);
}
.field textarea { resize: vertical; min-height: 130px; }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238A6843' stroke-width='2.2'><path d='M6 9l6 6 6-6'/></svg>");
  background-repeat: no-repeat;
  background-position: right 15px center;
  padding-right: 38px;
}
.field.invalid input, .field.invalid select, .field.invalid textarea {
  border-color: #C0392B;
  box-shadow: 0 0 0 3px rgba(192,57,43,0.12);
}
.field-error {
  font-size: var(--text-xs);
  color: #C0392B;
  font-weight: var(--weight-medium);
  display: none;
}
.field.invalid .field-error { display: block; }

/* Quote form — conditional sub-services */
.sub-services-field {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity var(--dur-medium) var(--ease-out), max-height var(--dur-medium) var(--ease-out);
}
.sub-services-field.is-visible {
  opacity: 1;
  max-height: 600px;
}
.sub-services-panel {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-2);
  padding: var(--space-4);
  background: var(--cream-50);
  border: 1px solid var(--border-1);
  border-radius: var(--radius-lg);
}
@media (max-width: 520px) {
  .sub-services-panel { grid-template-columns: 1fr; }
}
.sub-service-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--ink-700);
  transition: background var(--dur-micro), border-color var(--dur-micro);
}
.sub-service-option:hover {
  background: var(--white);
  border-color: var(--border-1);
}
.sub-service-option input[type="checkbox"] {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: var(--gold-600);
  cursor: pointer;
}
.sub-service-label { line-height: 1.35; }

/* ============================ FOOTER ============================ */
.footer {
  background: var(--brown-900);
  color: var(--fg-inverse-2);
  padding: var(--space-9) 0 var(--space-7);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: var(--space-7);
  margin-bottom: var(--space-8);
}
.footer h5 {
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--gold-400);
  margin-bottom: var(--space-5);
}
.footer-links { display: flex; flex-direction: column; gap: var(--space-3); }
.footer-links a {
  font-size: var(--text-sm);
  color: var(--fg-inverse-2);
  transition: color var(--dur-micro);
  width: fit-content;
}
.footer-links a:hover { color: var(--gold-300); }
.footer-blurb {
  font-size: var(--text-sm);
  line-height: var(--lh-body);
  color: var(--fg-inverse-3);
  max-width: 300px;
  margin-top: var(--space-4);
}
.footer-email {
  margin-top: var(--space-4);
  font-size: var(--text-sm);
}
.footer-email a {
  color: var(--gold-300);
  transition: color 0.3s ease-in-out;
}
.footer-email a:hover { color: var(--white); }
.footer-bottom {
  padding-top: var(--space-6);
  border-top: 1px solid var(--border-dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--fg-inverse-3);
}
.footer-bottom .gdpr { max-width: 620px; line-height: 1.6; }

/* ============================ MISC ============================ */
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  background: var(--cream-100);
  border: 1px solid var(--border-1);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--ink-700);
}
.section--dark .chip { background: rgba(255,255,255,0.06); border-color: var(--border-dark); color: var(--fg-inverse-2); }

.stat-num {
  font-weight: var(--weight-extra);
  font-size: clamp(40px, 4.5vw, 64px);
  letter-spacing: -0.03em;
  line-height: 1;
}
.divider-rule { height: 1px; background: var(--border-1); border: 0; }

/* ============================ REVEAL ANIMATION ============================ */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ============================ RESPONSIVE ============================ */
@media (max-width: 1000px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-7) var(--space-5); }
}
@media (max-width: 860px) {
  :root { --gutter: 24px; }
  .nav-links {
    position: absolute;
    top: calc(100% + 10px);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: var(--white);
    border: 1px solid var(--border-1);
    border-radius: var(--radius-lg);
    padding: 10px;
    box-shadow: var(--shadow-3);
    opacity: 0; visibility: hidden;
    transform: translateY(-8px);
    transition: opacity var(--dur-short) var(--ease-out), transform var(--dur-short) var(--ease-out), visibility var(--dur-short);
  }
  .nav-links.open { opacity: 1; visibility: visible; transform: none; }
  .nav-link { padding: 12px 14px; border-radius: var(--radius-md); }
  .nav-link:hover { background: var(--cream-50); }
  .nav-link::after { display: none; }
  .nav-links > li { display: block; width: 100%; }
  .nav-dropdown { width: 100%; display: block; }
  .nav-dropdown-trigger {
    width: 100%;
    justify-content: space-between;
    padding: 12px 14px;
    border-radius: var(--radius-md);
  }
  .nav-dropdown-trigger:hover { background: var(--cream-50); }
  .nav-dropdown-menu {
    position: static;
    left: auto;
    transform: none;
    display: none;
    min-width: 0;
    max-height: none;
    margin-top: 4px;
    box-shadow: none;
    border: none;
    background: var(--cream-50);
    padding: 4px 0 4px 12px;
  }
  .nav-dropdown.open .nav-dropdown-menu { display: block; }
  .nav-dropdown-menu a { white-space: normal; padding: 8px 12px; }
  .nav-toggle { display: flex; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .section { padding: var(--space-9) 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
}
