/* ────────────────────────────────────────
   ELM GROUP — Shared Stylesheet
   Version: 1.0 | April 2026
──────────────────────────────────────── */

/* Global: no underlines on any links */
a { text-decoration: none; }
a:hover { text-decoration: none; }

:root {
  --elm-dark: #0D0D0D;
  --cream: #F8F5F0;
  --gold: #C1A360;
  --gold-light: #D4BA80;
  --gold-dark: #9A7F45;
  --elm-fit-green: #8BC34A;
  --elm-fit-green-dark: #6A9E2A;
  --elm-stays-sand: #E8DFD0;
  --elm-stays-sage: #7A9E7E;
  --elm-designs-blue: #82A0DC;
  --text-mid: #555048;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --nav-h: 72px;
  --banner-h: 40px;
}

/* ── SITE LAUNCH BANNER ── */
.site-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--banner-h);
  z-index: 1001;
  background: rgba(10,10,10,0.97);
  border-bottom: 1px solid rgba(193,163,96,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}
.site-banner p {
  font-family: var(--font-sans);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(248,245,240,0.45);
  text-align: center;
}

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--elm-dark);
  color: var(--cream);
  font-family: var(--font-sans);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

/* ── NAV ── */
.nav {
  position: fixed;
  top: var(--banner-h); /* sits below launch banner */
  left: 0;
  right: 0;
  z-index: 999;
  height: var(--nav-h);
  transition: background 0.4s ease, box-shadow 0.4s ease;
  background: transparent;
  overflow: visible;
}
.nav-inner { overflow: visible; }
.nav-links  { overflow: visible; }
.nav.scrolled {
  background: rgba(13,13,13,0.96);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(193,163,96,0.1);
}
.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  text-decoration: none;
  display: flex;
  align-items: center;
}
.nav-logo img {
  height: 40px;
  width: auto;
  display: block;
}
.logo-elm {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 0.05em;
}
.logo-group {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(248,245,240,0.4);
  margin-left: 0.3rem;
}
.nav-links {
  display: flex;
  list-style: none;
  gap: 2.5rem;
  align-items: center;
}
.nav-links a {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 400;
  color: rgba(248,245,240,0.65);
  text-decoration: none;
  transition: color 0.3s ease;
  letter-spacing: 0.02em;
}
.nav-links a:hover { color: var(--cream); }
.nav-links a.active { color: var(--gold); }
.nav-right { display: flex; align-items: center; gap: 1rem; }

.btn-nav {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--elm-dark);
  background: var(--gold);
  padding: 0.6rem 1.4rem;
  border-radius: 2px;
  transition: background 0.3s ease, opacity 0.3s ease;
  white-space: nowrap;
}
.btn-nav:hover { background: var(--gold-light); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--cream);
  transition: all 0.3s ease;
}

/* ── SHARED BUTTONS ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  background: var(--gold);
  color: var(--elm-dark);
  padding: 0.9rem 2rem;
  border-radius: 2px;
  border: 1px solid var(--gold);
  transition: all 0.3s ease;
}
.btn-primary:hover { background: var(--gold-light); border-color: var(--gold-light); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  background: transparent;
  color: rgba(248,245,240,0.7);
  padding: 0.9rem 2rem;
  border-radius: 2px;
  border: 1px solid rgba(248,245,240,0.2);
  transition: all 0.3s ease;
}
.btn-ghost:hover { border-color: rgba(248,245,240,0.5); color: var(--cream); }

.btn-outline-gold {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  background: transparent;
  color: var(--gold);
  padding: 0.9rem 2rem;
  border-radius: 2px;
  border: 1px solid var(--gold);
  transition: all 0.3s ease;
}
.btn-outline-gold:hover { background: var(--gold); color: var(--elm-dark); }

/* ── SECTION LABEL ── */
.label {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 1rem;
}

/* ── PAGE HERO (sub-brands) ── */
.page-hero {
  min-height: 75vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: calc(var(--nav-h) + var(--banner-h) + 4rem) 2rem 5rem;
  position: relative;
  overflow: hidden;
}
.page-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}
.page-hero .eyebrow {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  display: block;
}
.page-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 6.5vw, 6rem);
  font-weight: 300;
  line-height: 1.05;
  margin-bottom: 1.5rem;
}
.page-hero .hero-desc {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.75;
  max-width: 500px;
  margin-bottom: 2.5rem;
}

/* ── SECTION STRUCTURE ── */
.section-header { margin-bottom: 3.5rem; }
.section-header h2 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 300;
  line-height: 1.2;
}

/* ── DIVIDER ── */
.divider {
  height: 1px;
  background: rgba(193,163,96,0.15);
  max-width: 1200px;
  margin: 0 auto;
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes scrollLine {
  0%   { transform: scaleY(0); transform-origin: top; opacity: 1; }
  50%  { transform: scaleY(1); transform-origin: top; opacity: 1; }
  51%  { transform: scaleY(1); transform-origin: bottom; opacity: 1; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}
/* Reveal: visible by default, JS enhances with animation */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
/* Only hide when JS has initialised animations */
body.js-animations .reveal {
  opacity: 0;
  transform: translateY(28px);
}
body.js-animations .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── DROPDOWN NAV ── */
.nav-links li { position: relative; }

.nav-links li > a.has-dropdown {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.nav-links li > a.has-dropdown::after {
  content: '';
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  display: inline-block;
  opacity: 0.5;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-links li:hover > a.has-dropdown::after,
.nav-links li.dropdown-open > a.has-dropdown::after {
  transform: rotate(-135deg) translateY(-2px);
  opacity: 0.85;
}

.dropdown-menu {
  /* Hide via visibility so CSS :hover can reliably toggle — no JS dependency */
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  top: 100%;          /* flush to bottom of li — no gap so mouse never leaves */
  left: -1.25rem;
  padding-top: 0.5rem; /* visual breathing room without creating a mouse gap */
  background: rgba(10,10,10,0.98);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(193,163,96,0.15);
  border-radius: 4px;
  min-width: 200px;
  padding: 0.5rem 0;
  box-shadow: 0 16px 40px rgba(0,0,0,0.5);
  z-index: 1000;
  transition: opacity 0.18s ease, visibility 0.18s ease;
}
/* CSS-only show — works without JS, works on Netlify */
.nav-links li:hover .dropdown-menu,
.nav-links li.dropdown-open .dropdown-menu {
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  display: block !important;  /* override any inline display:none from JS init */
}

.dropdown-menu a {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.7rem 1.25rem;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: rgba(248,245,240,0.65) !important;
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}
.dropdown-menu a:hover { color: var(--cream) !important; background: rgba(193,163,96,0.06); }
.dropdown-menu .dropdown-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold) !important;
  padding: 0.8rem 1.25rem 0.3rem;
  cursor: default;
  pointer-events: none;
}
.dropdown-menu .dropdown-label:hover { background: transparent !important; }
.dropdown-divider {
  height: 1px;
  background: rgba(193,163,96,0.08);
  margin: 0.4rem 0;
}
.dropdown-sub {
  font-size: 0.76rem !important;
  color: rgba(248,245,240,0.4) !important;
  margin-top: 0.1rem;
  white-space: normal !important;
}

/* ── SHARED FOOTER ── */
.site-footer {
  background: #060606;
  padding: 5rem 2rem 2.5rem;
}
.site-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.site-footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(248,245,240,0.06);
  margin-bottom: 2rem;
}
.site-footer-brand p {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: rgba(248,245,240,0.38);
  line-height: 1.8;
  max-width: 240px;
  margin-top: 1rem;
}
/* Footer column heading */
.footer-col-heading {
  display: block !important;
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(248,245,240,0.3);
  margin-bottom: 1.25rem;
}
/* Footer links — direct <a> tags, must be block */
.site-footer-col a {
  display: block !important;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: rgba(248,245,240,0.48);
  text-decoration: none !important;
  transition: color 0.3s ease;
  margin-bottom: 0.55rem;
}
.site-footer-col a:hover { color: var(--gold) !important; }
.site-footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.site-footer-bottom p {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  color: rgba(248,245,240,0.18);
}
.site-footer-bottom a { color: rgba(248,245,240,0.28); text-decoration: none; }

/* ── INLINE FOOTER GRID (used on main pages) ── */
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 4rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid rgba(193,163,96,0.12);
}

/* ── MOBILE NAV ── */
@media (max-width: 900px) {
  .nav-links {
    display: none;
    position: fixed;
    top: calc(var(--nav-h) + var(--banner-h));
    left: 0;
    right: 0;
    background: rgba(13,13,13,0.98);
    backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    border-top: 1px solid rgba(193,163,96,0.1);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .btn-nav { display: none; }
  .dropdown-menu {
    position: static;
    border: none;
    background: rgba(255,255,255,0.04);
    box-shadow: none;
    padding: 0 0 0 1rem;
    margin-top: 0.5rem;
    display: none;
  }
  .nav-links li.dropdown-open .dropdown-menu { display: block; }
  .site-footer-top { grid-template-columns: 1fr 1fr; }
  .site-footer-brand { grid-column: 1 / -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .site-footer-top { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}
