/* ═══════════════════════════════════════════════════════════════
   SHARED CSS — kealangreen.com
   Used across ALL pages. Page-specific styles go in each HTML.
   ═══════════════════════════════════════════════════════════════ */

:root {
  --bg: #0A0A0A;
  --bg-warm: #111111;
  --emerald: #1B3A2D;
  --deep: #0F2920;
  --gold: #C9A96E;
  --gold-dim: rgba(201,169,110,0.4);
  --cream: #FAF6F1;
  --text: #F0F0EC;
  --text-muted: rgba(255,255,255,0.55);
  --text-dim: rgba(255,255,255,0.3);
  --ghost: rgba(255,255,255,0.08);
  --stone: #8A8579;
  --charcoal: #1A1A1A;

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-in-out-quart: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-in-out-expo: cubic-bezier(0.87, 0, 0.13, 1);

  --font-serif: 'Cormorant Garamond', 'Georgia', serif;
  --font-sans: 'Inter', -apple-system, sans-serif;

  --text-hero: clamp(3.2rem, 2rem + 5vw, 7rem);
  --text-h1: clamp(2.4rem, 1.6rem + 3.5vw, 4.5rem);
  --text-h2: clamp(1.8rem, 1.2rem + 2.5vw, 3.2rem);
  --text-h3: clamp(1.3rem, 1rem + 1.2vw, 2rem);
  --text-body: clamp(0.95rem, 0.9rem + 0.2vw, 1.05rem);
  --text-small: clamp(0.75rem, 0.7rem + 0.15vw, 0.85rem);
  --text-label: 0.65rem;

  --space-section: clamp(6rem, 4rem + 8vw, 12rem);
  --space-lg: clamp(2rem, 1.5rem + 2vw, 4rem);
  --space-md: clamp(1rem, 0.8rem + 1vw, 2rem);
  --max-w: 1200px;
  --max-w-narrow: 800px;
}

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scrollbar-width: thin;
  scrollbar-color: var(--gold) var(--bg);
}
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 3px; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  font-weight: 300;
  line-height: 1.7;
  font-size: var(--text-body);
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 1rem + 2vw, 4rem);
}

/* ─── GRAIN ─────────────────────────────────────────────── */
.grain {
  position: fixed;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  pointer-events: none;
  z-index: 10000;
  opacity: 0.03;
  mix-blend-mode: overlay;
}

/* ─── CUSTOM CURSOR ────────────────────────────────────── */
.cursor-dot {
  position: fixed; top: 0; left: 0;
  width: 6px; height: 6px;
  background: var(--gold); border-radius: 50%;
  pointer-events: none; z-index: 9999;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
}
.cursor-circle {
  position: fixed; top: 0; left: 0;
  width: 40px; height: 40px;
  border: 1px solid var(--gold); border-radius: 50%;
  pointer-events: none; z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width 0.3s var(--ease-out-expo), height 0.3s var(--ease-out-expo),
              border-color 0.3s, background 0.3s;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.55rem; font-weight: 500; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--bg);
}
.cursor-circle.hovering {
  width: 80px; height: 80px;
  background: var(--gold); border-color: var(--gold);
}
@media (hover: none) { .cursor-dot, .cursor-circle { display: none !important; } }

/* ─── NAVIGATION ───────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100000; padding: 1.2rem 0;
  transition: transform 0.4s var(--ease-out-expo), background 0.4s, padding 0.4s;
}
.nav.scrolled {
  background: rgba(10, 10, 10, 0.7);
  backdrop-filter: blur(24px) saturate(1.8);
  -webkit-backdrop-filter: blur(24px) saturate(1.8);
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--ghost);
}
.nav.hidden { transform: translateY(-100%); }

.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--max-w); margin: 0 auto;
  padding: 0 clamp(1.5rem, 1rem + 2vw, 4rem);
}

.nav-brand { display: flex; flex-direction: column; gap: 1px; }
.nav-brand .brand-top {
  font-size: 0.55rem; font-weight: 300; letter-spacing: 0.35em;
  text-transform: uppercase; color: var(--text-dim);
}
.nav-brand .brand-bottom { font-size: 0.75rem; font-weight: 600; color: var(--text); }

.nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; }
.nav-links a {
  font-size: 0.7rem; font-weight: 400; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--text-muted);
  position: relative; padding-bottom: 2px; transition: color 0.3s;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 0; height: 1px; background: var(--gold);
  transition: width 0.4s var(--ease-out-expo);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--gold); }
.nav-links a.active::after { width: 100%; }

/* Dropdown menus */
.nav-links > li {
  position: relative;
  padding-bottom: 0.5rem;
  margin-bottom: -0.5rem;
}
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  min-width: 230px;
  padding: 0.6rem 0;
  background: rgba(8,8,8,0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,0.06);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.25s var(--ease-out-expo);
  list-style: none;
  z-index: 99999;
}
.nav-links > li:hover > .nav-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown li { margin: 0; padding: 0; }
.nav-dropdown a {
  display: block !important;
  padding: 0.55rem 1.5rem !important;
  font-size: 0.6rem !important;
  font-weight: 400 !important;
  letter-spacing: 0.1em !important;
  color: rgba(255,255,255,0.55) !important;
  white-space: nowrap;
  text-transform: uppercase;
}
.nav-dropdown a:hover {
  color: var(--gold) !important;
  background: rgba(201,169,110,0.06);
}
.nav-dropdown a::after { display: none !important; }

.nav-cta {
  font-size: 0.65rem; font-weight: 500; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--deep); background: var(--gold);
  padding: 0.6rem 1.4rem;
  transition: transform 0.3s var(--ease-out-expo), box-shadow 0.3s;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 4px 20px rgba(201,169,110,0.3); }

.nav-hamburger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav-hamburger span { width: 22px; height: 1px; background: var(--text); transition: all 0.3s; }

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
}

/* ─── MOBILE NAV ───────────────────────────────────────── */
.mobile-nav {
  position: fixed; inset: 0; z-index: 9000;
  background: var(--deep);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2rem;
  opacity: 0; pointer-events: none;
  transition: opacity 0.5s var(--ease-in-out-quart);
}
.mobile-nav.open { opacity: 1; pointer-events: auto; }
.mobile-nav a {
  font-family: var(--font-serif); font-size: clamp(2rem, 1.5rem + 3vw, 3.5rem);
  font-weight: 300; color: var(--text);
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.5s, transform 0.5s var(--ease-out-expo), color 0.3s;
}
.mobile-nav.open a { opacity: 1; transform: translateY(0); }
.mobile-nav a:hover { color: var(--gold); }
.mobile-nav .close-btn { position: absolute; top: 1.5rem; right: 1.5rem; font-size: 1.5rem; color: var(--text-muted); }

/* ─── FOOTER ───────────────────────────────────────────── */
.site-footer { padding: 3rem 0 2rem; border-top: 1px solid var(--ghost); }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 2rem; }
.footer-brand .fb-name { font-family: var(--font-serif); font-size: 1.3rem; font-weight: 400; color: var(--text); margin-bottom: 0.3rem; }
.footer-brand .fb-title { font-size: 0.65rem; font-weight: 500; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-dim); }
.footer-contact { text-align: right; font-size: var(--text-small); color: var(--text-muted); line-height: 2; }
.footer-contact a { color: var(--gold); }
.footer-bottom { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--ghost); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; font-size: 0.6rem; color: var(--text-dim); letter-spacing: 0.1em; }

/* ─── BUTTONS ──────────────────────────────────────────── */
.btn-primary {
  display: inline-block; font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--deep); background: var(--gold);
  padding: 1rem 2.5rem;
  transition: transform 0.3s var(--ease-out-expo), box-shadow 0.3s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 30px rgba(201,169,110,0.3); }

.btn-ghost {
  display: inline-block; font-size: 0.7rem; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold); border: 1px solid rgba(201,169,110,0.3);
  padding: 1rem 2.5rem;
  transition: border-color 0.3s, background 0.3s;
}
.btn-ghost:hover { border-color: var(--gold); background: rgba(201,169,110,0.05); }

/* ─── LABELS & DIVIDERS ───────────────────────────────── */
.label {
  font-family: var(--font-sans); font-size: var(--text-label);
  font-weight: 600; letter-spacing: 0.35em; text-transform: uppercase;
}
.divider { width: 45px; height: 1.5px; background: var(--gold); }

/* ─── REVEAL ANIMATIONS ───────────────────────────────── */
[data-reveal] {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}
[data-reveal].visible { opacity: 1; transform: translateY(0); }
[data-reveal="left"] { transform: translateX(-40px); }
[data-reveal="left"].visible { transform: translateX(0); }
[data-reveal="scale"] { transform: scale(0.95); }
[data-reveal="scale"].visible { transform: scale(1); }
[data-reveal="clip"] { clip-path: inset(0 100% 0 0); transform: none; opacity: 1; }
[data-reveal="clip"].visible { clip-path: inset(0 0 0 0); transition: clip-path 1.2s var(--ease-in-out-quart); }

/* ─── 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;
  }
  [data-reveal] { opacity: 1; transform: none; clip-path: none; }
}
