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

:root {
  --green-primary: #285C4F;
  --green-dark: #173F35;
  --champagne: #F2D7B9;
  --off-white: #F9F8F6;
  --near-black: #1C1C1C;
  --green-light: #35796A;
  --champagne-light: #F7E5D2;
  --champagne-muted: #E8C9A5;
  --warm-grey: #D9D5CE;
  --mid-grey: #8A857D;
  --stone: #EDEBE7;
  --font: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--off-white);
  color: var(--near-black);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ═══════════════════ REVEAL ANIMATIONS ═══════════════════ */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.8s cubic-bezier(.16,1,.3,1), transform 0.8s cubic-bezier(.16,1,.3,1); }
.reveal-left { opacity: 0; transform: translateX(-60px); transition: opacity 0.8s cubic-bezier(.16,1,.3,1), transform 0.8s cubic-bezier(.16,1,.3,1); }
.reveal-right { opacity: 0; transform: translateX(60px); transition: opacity 0.8s cubic-bezier(.16,1,.3,1), transform 0.8s cubic-bezier(.16,1,.3,1); }
.reveal-scale { opacity: 0; transform: scale(0.92); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible, .reveal-left.visible, .reveal-right.visible { opacity: 1; transform: translate(0); }
.reveal-scale.visible { opacity: 1; transform: scale(1); }
.stagger-1 { transition-delay: .05s; }
.stagger-2 { transition-delay: .12s; }
.stagger-3 { transition-delay: .2s; }
.stagger-4 { transition-delay: .28s; }
.stagger-5 { transition-delay: .36s; }
.stagger-6 { transition-delay: .44s; }

/* ═══════════════════ NAV ═══════════════════ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 20px 40px;
  display: flex; align-items: center; justify-content: space-between;
  transition: all 0.4s ease;
}
.nav.scrolled {
  background: rgba(23,63,53,0.97);
  backdrop-filter: blur(12px);
  padding: 14px 40px;
  box-shadow: 0 4px 32px rgba(0,0,0,0.15);
}
.nav-logo { height: 36px; transition: transform 0.3s ease; }
.nav-logo:hover { transform: scale(1.05); }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav-links a {
  color: rgba(255,255,255,0.8); text-decoration: none;
  font-size: 0.66rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  transition: color 0.3s ease; position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 2px; background: var(--champagne); transition: width 0.3s ease;
}
.nav-links a:hover { color: #fff; }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--champagne); }
.nav-links a.active::after { width: 100%; }
.nav-cta {
  background: var(--champagne) !important; color: var(--green-dark) !important;
  padding: 10px 22px; border-radius: 6px;
  font-weight: 700 !important; letter-spacing: 0.12em !important;
  transition: all 0.3s ease !important;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: #fff !important; transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0,0,0,0.15); }

/* Mobile nav toggle */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: #fff; margin: 5px 0; transition: all 0.3s; }

/* ═══════════════════ LAYOUT ═══════════════════ */
.container { max-width: 1120px; margin: 0 auto; padding: 0 32px; }
.section-tag {
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.35em;
  text-transform: uppercase; color: var(--champagne-muted); margin-bottom: 12px;
}
.section-heading {
  font-size: 2.4rem; font-weight: 300; color: var(--green-dark);
  line-height: 1.2; margin-bottom: 16px; letter-spacing: -0.015em;
}
.section-sub {
  font-size: 0.95rem; font-weight: 400; color: var(--mid-grey);
  max-width: 540px; line-height: 1.8; margin-bottom: 48px;
}

/* ═══════════════════ PAGE HERO (inner pages) ═══════════════════ */
.page-hero {
  background: var(--green-dark); position: relative; overflow: hidden;
  padding: 140px 0 72px; text-align: center;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background-image: url('../background pattern.png');
  background-repeat: no-repeat; background-position: right center;
  background-size: auto 85%; opacity: 0.06; pointer-events: none;
  animation: patternFloat 20s ease-in-out infinite;
}
@keyframes patternFloat {
  0%,100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-12px) scale(1.02); }
}
.page-hero .section-tag { color: var(--champagne); }
.page-hero .section-heading { color: #fff; margin: 0 auto 12px; }
.page-hero .section-sub { color: rgba(255,255,255,0.6); margin: 0 auto; max-width: 520px; }

/* ═══════════════════ BUTTONS ═══════════════════ */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 16px 36px; background: var(--champagne); color: var(--green-dark);
  font-family: var(--font); font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase; text-decoration: none;
  border: none; border-radius: 8px; cursor: pointer;
  transition: all 0.35s cubic-bezier(.16,1,.3,1); position: relative; overflow: hidden;
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 8px 32px rgba(242,215,185,0.3); background: #fff; }
.btn-primary:active { transform: translateY(-1px); }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 16px 36px; background: transparent; color: rgba(255,255,255,0.9);
  font-family: var(--font); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.15em; text-transform: uppercase; text-decoration: none;
  border: 2px solid rgba(255,255,255,0.25); border-radius: 8px; cursor: pointer;
  transition: all 0.35s ease;
}
.btn-secondary:hover { border-color: var(--champagne); color: var(--champagne); transform: translateY(-2px); }
.btn-green {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 16px 36px; background: var(--green-primary); color: #fff;
  font-family: var(--font); font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase; text-decoration: none;
  border: none; border-radius: 8px; cursor: pointer;
  transition: all 0.35s cubic-bezier(.16,1,.3,1);
}
.btn-green:hover { background: var(--green-dark); transform: translateY(-3px); box-shadow: 0 8px 32px rgba(23,63,53,0.2); }
.btn-arrow { width: 16px; height: 16px; }

/* ═══════════════════ CTA BANNER ═══════════════════ */
.cta-banner {
  background: var(--green-dark); position: relative; overflow: hidden; padding: 72px 0;
}
.cta-banner::before {
  content: ''; position: absolute; inset: 0;
  background-image: url('../background pattern.png');
  background-repeat: no-repeat; background-position: right center;
  background-size: auto 100%; opacity: 0.05; pointer-events: none;
}
.cta-inner { position: relative; z-index: 1; text-align: center; }
.cta-banner .section-heading { color: var(--champagne); margin-bottom: 12px; }
.cta-banner .section-sub { color: rgba(255,255,255,0.6); margin: 0 auto 36px; max-width: 480px; }

/* ═══════════════════ FLOATING CTA ═══════════════════ */
.floating-cta {
  position: fixed; bottom: 28px; right: 28px; z-index: 900;
  opacity: 0; transform: translateY(24px) scale(0.9); pointer-events: none;
  transition: all 0.4s cubic-bezier(.16,1,.3,1);
}
.floating-cta.visible { opacity: 1; transform: translateY(0) scale(1); pointer-events: all; }
.floating-cta a {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 28px; background: var(--green-primary); color: var(--champagne);
  font-family: var(--font); font-size: 0.64rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase; text-decoration: none;
  border-radius: 50px; box-shadow: 0 8px 32px rgba(23,63,53,0.35); transition: all 0.3s ease;
}
.floating-cta a:hover { background: var(--green-dark); transform: translateY(-3px); box-shadow: 0 12px 40px rgba(23,63,53,0.45); }
.floating-cta a svg { width: 16px; height: 16px; stroke: var(--champagne); fill: none; stroke-width: 2; }
.float-pulse { animation: floatPulse 3s infinite; }
@keyframes floatPulse {
  0%,100% { box-shadow: 0 8px 32px rgba(23,63,53,0.35); }
  50% { box-shadow: 0 8px 32px rgba(23,63,53,0.35), 0 0 0 8px rgba(40,92,79,0.12); }
}

/* ═══════════════════ FOOTER ═══════════════════ */
footer {
  background: var(--green-dark); padding: 48px 0 32px; position: relative; overflow: hidden;
}
footer::before {
  content: ''; position: absolute; inset: 0;
  background-image: url('../background pattern.png');
  background-repeat: no-repeat; background-position: right bottom;
  background-size: auto 90%; opacity: 0.04; pointer-events: none;
}
.footer-inner {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px;
}
.footer-logo { height: 28px; opacity: 0.7; transition: opacity 0.3s; }
.footer-logo:hover { opacity: 1; }
.footer-text { font-size: 0.68rem; color: rgba(255,255,255,0.35); letter-spacing: 0.04em; }
.footer-text a { color: var(--champagne-muted); text-decoration: none; transition: color 0.3s; }
.footer-text a:hover { color: var(--champagne); }
.footer-links { display: flex; gap: 24px; }
.footer-links a {
  font-size: 0.62rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: rgba(255,255,255,0.45);
  text-decoration: none; transition: color 0.3s;
}
.footer-links a:hover { color: var(--champagne); }

/* ═══════════════════ SKIP LINK ═══════════════════ */
.skip-link {
  position: absolute; top: -100%; left: 16px; z-index: 10000;
  padding: 12px 24px; background: var(--champagne); color: var(--green-dark);
  font-family: var(--font); font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none;
  border-radius: 0 0 8px 8px; transition: top 0.2s ease;
}
.skip-link:focus { top: 0; }

/* ═══════════════════ FOCUS VISIBLE ═══════════════════ */
:focus-visible {
  outline: 3px solid var(--champagne);
  outline-offset: 3px;
}
.nav-links a:focus-visible,
.btn-primary:focus-visible,
.btn-secondary:focus-visible,
.btn-green:focus-visible,
.nav-cta:focus-visible {
  outline: 3px solid var(--champagne);
  outline-offset: 3px;
}
.floating-cta a:focus-visible { outline: 3px solid var(--champagne); outline-offset: 3px; }
footer a:focus-visible { outline: 2px solid var(--champagne); outline-offset: 2px; }

/* ═══════════════════ CURSOR GLOW ═══════════════════ */
.cursor-glow {
  position: fixed; width: 350px; height: 350px; border-radius: 50%;
  background: radial-gradient(circle, rgba(242,215,185,0.06) 0%, transparent 70%);
  pointer-events: none; z-index: 9999; transform: translate(-50%,-50%);
  transition: opacity 0.3s; opacity: 0;
}
.cursor-glow.active { opacity: 1; }

/* ═══════════════════ RESPONSIVE ═══════════════════ */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-links.open { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: rgba(23,63,53,0.98); padding: 20px 32px; gap: 16px; }
  .nav-toggle { display: block; }
  .section-heading { font-size: 1.8rem; }
  .page-hero { padding: 120px 0 56px; }
}
@media (max-width: 600px) {
  .nav { padding: 16px 20px; }
  .nav.scrolled { padding: 12px 20px; }
  .container { padding: 0 20px; }
  .section-heading { font-size: 1.5rem; }
  .page-hero { padding: 110px 0 48px; }
}

/* ═══════════════════ REDUCED MOTION ═══════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  html { scroll-behavior: auto; }
  .reveal, .reveal-left, .reveal-right, .reveal-scale { opacity: 1; transform: none; transition: none; }
}
