/* ==========================================================================
   KEDARNATH TIMBER DEPOT — DESIGN SYSTEM
   Light, premium, wood-and-gold palette. No dark theme.
   ========================================================================== */

:root {
  /* Neutrals */
  --ivory: #FBF8F2;
  --ivory-deep: #F4EEE1;
  --paper: #FFFFFE;
  --cream: #F1E9D8;
  --cream-deep: #E9DEC5;

  /* Brand green (from emblem) */
  --forest: #1F4A34;
  --forest-deep: #133024;
  --forest-soft: #3C6B52;
  --sage: #6E8F79;
  --sage-pale: #E5EEE7;

  /* Brand gold (from emblem ring) */
  --gold: #C6A24C;
  --gold-bright: #DCC178;
  --gold-deep: #9A7A31;
  --gold-pale: #F3E7C8;

  /* Wood / walnut accent */
  --walnut: #7A4C2E;
  --walnut-deep: #52311C;
  --walnut-pale: #EFDFCB;

  /* Text */
  --ink: #241F17;
  --ink-soft: #58513F;
  --ink-faint: #8A806B;

  /* Borders / lines */
  --line: #E2D8C0;
  --line-soft: #EDE5D2;

  /* Shadows */
  --shadow-sm: 0 2px 10px rgba(82, 58, 26, 0.06);
  --shadow-md: 0 10px 34px rgba(64, 47, 22, 0.10);
  --shadow-lg: 0 24px 60px rgba(45, 34, 15, 0.14);
  --shadow-gold: 0 10px 30px rgba(198, 162, 76, 0.28);

  /* Type */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Layout */
  --container: 1240px;
  --nav-h: 88px;
  --ease: cubic-bezier(0.22, 0.68, 0.1, 1);
  --ease-soft: cubic-bezier(0.16, 0.84, 0.24, 1);
}

/* ==========================================================================
   RESET
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font-body);
  background: var(--ivory);
  color: var(--ink);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }

::selection { background: var(--gold-pale); color: var(--forest-deep); }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--ivory); }
::-webkit-scrollbar-thumb { background: var(--cream-deep); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */
h1, h2, h3, h4, .display {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--forest-deep);
  line-height: 1.12;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.eyebrow::before {
  content: '';
  width: 28px;
  height: 1.5px;
  background: var(--gold);
  display: inline-block;
}

.h-xxl { font-size: clamp(2.6rem, 5.6vw, 5.2rem); }
.h-xl { font-size: clamp(2.2rem, 4.4vw, 3.6rem); }
.h-lg { font-size: clamp(1.8rem, 3vw, 2.6rem); }
.h-md { font-size: clamp(1.4rem, 2vw, 1.9rem); }

.lede {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.2rem, 1.6vw, 1.55rem);
  color: var(--forest-soft);
  line-height: 1.5;
}

p { color: var(--ink-soft); }
.p-lg { font-size: 1.15rem; line-height: 1.75; }

.text-center { text-align: center; }
.gold-text { color: var(--gold-deep); }
.forest-text { color: var(--forest); }

/* ==========================================================================
   LAYOUT
   ========================================================================== */
.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

section { position: relative; }
.section { padding: 130px 0; }
.section-sm { padding: 90px 0; }
.section-alt { background: var(--ivory-deep); }
.section-forest {
  background: linear-gradient(180deg, var(--forest-deep), var(--forest) 60%, var(--forest-deep));
  color: #F3EEDF;
}
.section-forest h1, .section-forest h2, .section-forest h3 { color: #FCF8EC; }
.section-forest p { color: rgba(243,238,223,0.78); }
.section-forest .eyebrow { color: var(--gold-bright); }
.section-forest .eyebrow::before { background: var(--gold-bright); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }

.header-block { max-width: 720px; margin: 0 auto 64px; text-align: center; }
.header-block.left { margin: 0 0 56px; text-align: left; }
.header-block .eyebrow { margin-bottom: 18px; }
.header-block .lede { margin-top: 20px; }

/* ==========================================================================
   BACKGROUND TEXTURES (all vector/CSS — no photography needed)
   ========================================================================== */
.grain-bg {
  position: relative;
  background-image:
    radial-gradient(ellipse at 20% -10%, rgba(198,162,76,0.10), transparent 55%),
    radial-gradient(ellipse at 100% 0%, rgba(31,74,52,0.06), transparent 50%);
}

.ring-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  z-index: 0;
}

.section > .wrap { position: relative; z-index: 1; }

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: background 0.5s var(--ease), box-shadow 0.5s var(--ease), height 0.4s var(--ease);
  background: rgba(251,248,242,0);
}
.site-nav.scrolled {
  height: 74px;
  background: rgba(251,248,242,0.88);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 1px 0 var(--line), 0 12px 30px -18px rgba(45,34,15,0.25);
}
.nav-inner {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand img { height: 46px; width: auto; transition: height 0.4s var(--ease); }
.site-nav.scrolled .brand img { height: 40px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text .b1 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--forest-deep);
}
.brand-text .b2 {
  font-size: 9.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 700;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-links a {
  position: relative;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ink-soft);
  padding: 10px 16px;
  border-radius: 100px;
  transition: color 0.3s, background 0.3s;
}
.nav-links a:hover { color: var(--forest-deep); background: var(--sage-pale); }
.nav-links a.active { color: var(--forest-deep); background: var(--gold-pale); }

.nav-drop { position: relative; }
.nav-drop > a { display: inline-flex; align-items: center; gap: 5px; }
.nav-drop > a svg { width: 11px; height: 11px; transition: transform 0.3s var(--ease); }
.nav-drop:hover > a svg { transform: rotate(180deg); }
.nav-drop-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 210px;
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  padding: 10px;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.nav-drop:hover .nav-drop-menu { opacity: 1; transform: translateY(0); pointer-events: auto; }
.nav-drop-menu a {
  display: block;
  padding: 11px 14px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-soft);
}
.nav-drop-menu a:hover { background: var(--sage-pale); color: var(--forest-deep); }

.nav-cta {
  background: var(--forest);
  color: #FBF3DC !important;
  padding: 12px 24px;
  border-radius: 100px;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.35s;
  white-space: nowrap;
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); background: var(--forest-deep); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  border-radius: 50%;
}
.burger { position: relative; width: 20px; height: 14px; }
.burger i {
  position: absolute; left: 0; width: 100%; height: 1.6px; background: var(--forest-deep);
  transition: transform 0.35s var(--ease), opacity 0.3s, top 0.35s var(--ease);
}
.burger i:nth-child(1) { top: 0; }
.burger i:nth-child(2) { top: 6px; }
.burger i:nth-child(3) { top: 12px; }
.nav-toggle.open .burger i:nth-child(1) { top: 6px; transform: rotate(45deg); }
.nav-toggle.open .burger i:nth-child(2) { opacity: 0; }
.nav-toggle.open .burger i:nth-child(3) { top: 6px; transform: rotate(-45deg); }

.mobile-panel {
  position: fixed; inset: 0; z-index: 999;
  background: var(--ivory);
  display: flex; flex-direction: column;
  padding: 120px 40px 40px;
  transform: translateX(100%);
  transition: transform 0.55s var(--ease);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.mobile-panel.open { transform: translateX(0); }
.mobile-panel a {
  font-family: var(--font-display);
  font-size: 30px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  color: var(--forest-deep);
}
.mobile-panel .nav-cta { margin-top: 30px; text-align: center; display:block; }

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), background 0.35s, color 0.35s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--forest);
  color: #FBF3DC;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--forest-deep); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.btn-gold {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold-deep));
  color: #2B2107;
  box-shadow: var(--shadow-gold);
}
.btn-gold:hover { transform: translateY(-3px) scale(1.01); box-shadow: 0 16px 40px rgba(198,162,76,0.4); }
.btn-outline {
  background: transparent;
  color: var(--forest-deep);
  border: 1.5px solid var(--forest-deep);
}
.btn-outline:hover { background: var(--forest-deep); color: #FBF3DC; transform: translateY(-2px); }
.btn-ghost-light {
  background: rgba(255,255,255,0.12);
  color: #FCF8EC;
  border: 1.5px solid rgba(252,248,236,0.4);
}
.btn-ghost-light:hover { background: rgba(255,255,255,0.22); transform: translateY(-2px); }
.btn-arrow { transition: transform 0.4s var(--ease); }
.btn:hover .btn-arrow { transform: translateX(5px); }

.btn-row { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }

/* ==========================================================================
   CARDS
   ========================================================================== */
.card {
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: 22px;
  padding: 40px;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.5s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--gold); }

.icon-badge {
  width: 58px; height: 58px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  background: var(--sage-pale);
  color: var(--forest);
  margin-bottom: 22px;
}
.icon-badge svg { width: 28px; height: 28px; }
.icon-badge.gold { background: var(--gold-pale); color: var(--gold-deep); }
.icon-badge.walnut { background: var(--walnut-pale); color: var(--walnut-deep); }

/* ==========================================================================
   STATS / COUNTERS
   ========================================================================== */
.stat-row { display: flex; gap: 0; flex-wrap: wrap; }
.stat {
  flex: 1;
  min-width: 150px;
  padding: 0 28px;
  border-left: 1px solid var(--line);
}
.stat:first-child { border-left: none; padding-left: 0; }
.stat .num {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 3.4vw, 3.4rem);
  color: var(--forest-deep);
  display: flex;
  align-items: baseline;
  gap: 2px;
}
.stat .num .suffix { font-size: 0.5em; color: var(--gold-deep); font-weight: 700; }
.stat .label {
  margin-top: 8px;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 700;
}
.section-forest .stat { border-left-color: rgba(255,255,255,0.18); }
.section-forest .stat .num { color: #FCF8EC; }
.section-forest .stat .label { color: rgba(252,248,236,0.6); }

/* ==========================================================================
   REVEAL ANIMATIONS
   ========================================================================== */
[data-reveal] {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.9s var(--ease-soft), transform 0.9s var(--ease-soft);
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }
[data-reveal="fade"] { transform: none; }
[data-reveal="left"] { transform: translateX(-40px); }
[data-reveal="left"].is-visible { transform: translateX(0); }
[data-reveal="right"] { transform: translateX(40px); }
[data-reveal="right"].is-visible { transform: translateX(0); }
[data-reveal="scale"] { transform: scale(0.94); }
[data-reveal="scale"].is-visible { transform: scale(1); }

[data-delay="1"] { transition-delay: 0.08s; }
[data-delay="2"] { transition-delay: 0.16s; }
[data-delay="3"] { transition-delay: 0.24s; }
[data-delay="4"] { transition-delay: 0.32s; }
[data-delay="5"] { transition-delay: 0.4s; }

/* Line draw for SVG paths */
.draw path, .draw line, .draw circle, .draw ellipse {
  stroke-dasharray: var(--len, 1000);
  stroke-dashoffset: var(--len, 1000);
  transition: stroke-dashoffset 2.2s var(--ease-soft);
}
.draw.is-visible path, .draw.is-visible line, .draw.is-visible circle, .draw.is-visible ellipse,
.is-visible .draw path, .is-visible .draw line, .is-visible .draw circle, .is-visible .draw ellipse {
  stroke-dashoffset: 0;
}

/* Floating leaf/particle */
@keyframes float-y {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-16px) rotate(4deg); }
}
.floaty { animation: float-y 6s ease-in-out infinite; }

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.spin-slow { animation: spin-slow 40s linear infinite; }

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.shimmer-text {
  background: linear-gradient(90deg, var(--forest-deep) 20%, var(--gold) 40%, var(--forest-deep) 60%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 6s linear infinite;
}

/* Marquee */
.marquee-track {
  display: flex;
  gap: 60px;
  width: max-content;
  animation: marquee 34s linear infinite;
}
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee-outer { overflow: hidden; }
.marquee-outer:hover .marquee-track { animation-play-state: paused; }

/* ==========================================================================
   HERO (shared base)
   ========================================================================== */
.hero {
  position: relative;
  padding: calc(var(--nav-h) + 90px) 0 100px;
  overflow: hidden;
}
.page-hero {
  position: relative;
  padding: calc(var(--nav-h) + 74px) 0 80px;
  background: var(--ivory-deep);
  overflow: hidden;
}
.page-hero .wrap { position: relative; z-index: 2; }
.breadcrumb {
  font-size: 13px;
  color: var(--ink-faint);
  margin-bottom: 22px;
  font-weight: 600;
}
.breadcrumb a { color: var(--gold-deep); }
.breadcrumb span { margin: 0 8px; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: var(--forest-deep);
  color: rgba(243,238,223,0.85);
  padding: 90px 0 0;
  position: relative;
  overflow: hidden;
}
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 48px; padding-bottom: 60px; }
.footer-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.footer-brand img { height: 52px; }
.footer-brand-text .b1 { font-family: var(--font-display); font-size: 20px; color: #FCF8EC; }
.footer-brand-text .b2 { font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-bright); font-weight: 700; }
.site-footer p { color: rgba(243,238,223,0.6); }
.site-footer h4 { color: #FCF8EC; font-size: 15px; margin-bottom: 20px; font-family: var(--font-body); font-weight: 700; letter-spacing: 0.02em; }
.footer-links a, .footer-contact li {
  display: block;
  color: rgba(243,238,223,0.68);
  font-size: 14.5px;
  padding: 7px 0;
  transition: color 0.3s, transform 0.3s;
}
.footer-links a:hover { color: var(--gold-bright); transform: translateX(3px); }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact svg { flex-shrink: 0; margin-top: 3px; width: 16px; height: 16px; color: var(--gold-bright); }
.footer-bottom {
  border-top: 1px solid rgba(243,238,223,0.12);
  padding: 26px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: rgba(243,238,223,0.5);
  flex-wrap: wrap;
  gap: 12px;
}
.footer-roots {
  position: absolute;
  bottom: -20px; left: 50%;
  transform: translateX(-50%);
  width: 1400px;
  max-width: none;
  opacity: 0.08;
  pointer-events: none;
}

/* ==========================================================================
   FORMS
   ========================================================================== */
.field { margin-bottom: 22px; }
.field label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--forest-deep);
  margin-bottom: 9px;
}
.field input, .field textarea, .field select {
  width: 100%;
  padding: 15px 18px;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  background: var(--paper);
  font-size: 15px;
  color: var(--ink);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 4px var(--gold-pale);
}
.field textarea { resize: vertical; min-height: 120px; }

.role-select { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.role-chip {
  flex: 1;
  min-width: 130px;
  text-align: center;
  padding: 16px 14px;
  border-radius: 14px;
  border: 1.5px solid var(--line);
  background: var(--paper);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink-soft);
  transition: all 0.35s var(--ease);
}
.role-chip svg { width: 22px; height: 22px; margin: 0 auto 8px; display:block; color: var(--ink-faint); transition: color 0.3s; }
.role-chip:hover { border-color: var(--gold); transform: translateY(-2px); }
.role-chip.active {
  background: var(--forest);
  border-color: var(--forest);
  color: #FBF3DC;
  box-shadow: var(--shadow-sm);
}
.role-chip.active svg { color: var(--gold-bright); }

.conditional-fields {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 0.5s var(--ease), opacity 0.4s;
}
.conditional-fields.open { grid-template-rows: 1fr; opacity: 1; }
.conditional-fields > div { overflow: hidden; }
.conditional-fields .inner-pad { padding-top: 4px; }

.form-success {
  display: none;
  text-align: center;
  padding: 50px 20px;
}
.form-success.show { display: block; }
.form-success .icon-badge { margin: 0 auto 22px; width: 74px; height: 74px; border-radius: 50%; }
.form-success .icon-badge svg { width: 34px; height: 34px; }

/* ==========================================================================
   MISC UTIL
   ========================================================================== */
.divider-gold { width: 60px; height: 2px; background: var(--gold); margin: 24px auto; }
.divider-gold.left { margin: 24px 0; }
.tag {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 100px;
  background: var(--sage-pale);
  color: var(--forest);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.tag.gold { background: var(--gold-pale); color: var(--gold-deep); }
.tag.walnut { background: var(--walnut-pale); color: var(--walnut-deep); }

.placeholder-media {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--cream) 0%, var(--cream-deep) 50%, var(--sage-pale) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  border: 1px solid var(--line);
}
.placeholder-media::before {
  content: '';
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(115deg, rgba(122,76,46,0.05) 0px, rgba(122,76,46,0.05) 2px, transparent 2px, transparent 26px);
}
.placeholder-media .pm-inner {
  position: relative; z-index: 1;
  text-align: center;
  color: var(--walnut-deep);
  padding: 20px;
}
.placeholder-media .pm-inner svg { width: 40px; height: 40px; margin: 0 auto 12px; opacity: 0.55; }
.placeholder-media .pm-inner .pm-label { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.6; }

.back-to-top {
  position: fixed;
  bottom: 30px; right: 30px;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--forest);
  color: var(--gold-bright);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
  z-index: 500;
  opacity: 0;
  transform: translateY(16px) scale(0.9);
  pointer-events: none;
  transition: all 0.4s var(--ease);
}
.back-to-top.show { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.back-to-top:hover { background: var(--forest-deep); transform: translateY(-4px) scale(1.05); }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1080px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-inner .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .grid-2 { grid-template-columns: 1fr; gap: 40px; }
  .grid-3 { grid-template-columns: 1fr; }
  .section { padding: 90px 0; }
  .stat-row { flex-wrap: wrap; row-gap: 28px; }
  .stat { min-width: 42%; border-left: none; padding-left: 0; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 22px; }
  .footer-top { grid-template-columns: 1fr; gap: 40px; }
  .grid-4 { grid-template-columns: 1fr; }
  .role-select { flex-direction: column; }
  .role-chip { display: flex; align-items: center; gap: 12px; text-align: left; padding: 14px 16px; }
  .role-chip svg { margin: 0; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
