/* ═══════════════════════════════════════════════════════════
   TLNA — shared.css
   Design tokens, reset, layout, nav, page-header,
   section headers, buttons, footer, reveal, responsive
═══════════════════════════════════════════════════════════ */

/* ── DESIGN TOKENS ── */
:root {
  /* Colours */
  --forest:       #1B3D2F;
  --forest-deep:  #0F2318;
  --gold:         #C4922A;
  --gold-light:   #D4A84B;
  --gold-pale:    rgba(196, 146, 42, 0.15);
  --cream:        #F5F0E8;
  --cream-mid:    #E6DEC9;
  --white:        #FFFFFF;
  --ink:          #1A1A1A;
  --ink-mid:      #333333;
  --ink-light:    #666666;
  --rule-forest:  rgba(27, 61, 47, 0.12);
  --rule-gold:    rgba(196, 146, 42, 0.2);
  --cream-warm:   #F9F4EA;
  --ink-faint:    #AAAAAA;

  /* Typography */
  --font-serif:   'Cormorant Garamond', Georgia, serif;
  --font-display: 'Cinzel', 'Trajan Pro', serif;
  --font-sans:    'DM Sans', system-ui, -apple-system, sans-serif;

  /* Layout */
  --container-max:  1200px;
  --container-pad:  48px;
  --nav-h:          120px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.75;
  color: var(--ink-mid);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-top: var(--nav-h);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.2;
  margin: 0;
}

p { margin: 0; }

em { font-style: italic; }

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

ul, ol { list-style: none; }

/* ── CONTAINER ── */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

/* ══════════════════════════════════════
   NAVIGATION
══════════════════════════════════════ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--cream);
  border-bottom: 1px solid rgba(27, 61, 47, 0.14);
  transition: box-shadow 0.35s ease;
}

#navbar.scrolled {
  box-shadow: 0 4px 32px rgba(27, 61, 47, 0.12);
}

.nav-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo-svg,
.nav-logo-img {
  height: 100px;
  width: auto;
  display: block;
  flex-shrink: 0;
  /* No filter needed — logo designed for light background */
}

/* Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(27, 61, 47, 0.65);
  text-decoration: none;
  transition: color 0.22s;
}

.nav-links a:hover { color: var(--forest); }

/* CTA button in nav */
.nav-cta {
  display: inline-block;
  padding: 9px 20px !important;
  background: transparent !important;
  border: 1px solid rgba(27, 61, 47, 0.45) !important;
  color: var(--forest) !important;
  font-size: 10px !important;
  font-weight: 500 !important;
  letter-spacing: 0.2em !important;
  text-transform: uppercase !important;
  transition: all 0.22s ease !important;
}

.nav-cta:hover {
  background: var(--forest) !important;
  border-color: var(--forest) !important;
  color: var(--cream) !important;
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  flex-shrink: 0;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: rgba(27, 61, 47, 0.75);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-hamburger.open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Mobile menu */
.nav-mobile {
  display: none;
  flex-direction: column;
  background: var(--cream);
  border-top: 1px solid rgba(27, 61, 47, 0.1);
  padding: 4px 48px 28px;
}

.nav-mobile.open { display: flex; }

.nav-mobile a {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(27, 61, 47, 0.6);
  text-decoration: none;
  padding: 15px 0;
  border-bottom: 1px solid rgba(27, 61, 47, 0.08);
  transition: color 0.2s;
}

.nav-mobile a:last-child { border-bottom: none; }
.nav-mobile a:hover { color: var(--forest); }

.mobile-cta {
  color: var(--forest) !important;
  border-bottom-color: rgba(27, 61, 47, 0.15) !important;
}

/* ══════════════════════════════════════
   PAGE HEADER (inner pages)
══════════════════════════════════════ */
.page-header {
  background: var(--forest-deep);
  padding: 80px 0 72px;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      45deg,
      rgba(196, 146, 42, 0.04) 0,
      rgba(196, 146, 42, 0.04) 1px,
      transparent 1px,
      transparent 44px
    ),
    repeating-linear-gradient(
      -45deg,
      rgba(196, 146, 42, 0.04) 0,
      rgba(196, 146, 42, 0.04) 1px,
      transparent 1px,
      transparent 44px
    );
  pointer-events: none;
}

.page-header .container { position: relative; }

.page-header-eyebrow {
  display: block;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

.page-header h1 {
  font-family: var(--font-serif);
  font-size: clamp(38px, 5.5vw, 64px);
  font-weight: 300;
  color: var(--cream);
  line-height: 1.1;
  margin-bottom: 28px;
}

.page-header h1 em {
  font-style: italic;
  color: var(--gold-light);
}

.page-header-rule {
  width: 52px;
  height: 2px;
  background: var(--gold);
  margin-bottom: 24px;
}

.page-header p {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.8;
  color: rgba(245, 240, 232, 0.56);
  max-width: 580px;
}

/* ══════════════════════════════════════
   SECTION HEADERS
══════════════════════════════════════ */
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.section-eyebrow {
  display: inline-block;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.section-eyebrow.light { color: rgba(196, 146, 42, 0.8); }

.section-heading {
  font-family: var(--font-serif);
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 300;
  color: var(--forest);
  line-height: 1.15;
  margin-bottom: 20px;
}

.section-heading.light { color: var(--cream); }

.section-heading em {
  font-style: italic;
  color: var(--gold);
}

.section-heading.light em { color: var(--gold-light); }

.section-sub {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--ink-light);
}

/* ══════════════════════════════════════
   BUTTONS
══════════════════════════════════════ */
.btn-primary {
  display: inline-block;
  padding: 14px 34px;
  background: var(--gold);
  color: var(--forest-deep);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.22s ease, transform 0.15s ease;
}

.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
}

.btn-ghost {
  display: inline-block;
  padding: 14px 0;
  color: rgba(245, 240, 232, 0.75);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-decoration: none;
  border-bottom: 1px solid rgba(196, 146, 42, 0.35);
  transition: color 0.2s, border-color 0.2s;
}

.btn-ghost:hover {
  color: var(--gold);
  border-color: var(--gold);
}

.btn-outline {
  display: inline-block;
  padding: 13px 32px;
  background: transparent;
  border: 1px solid var(--forest);
  color: var(--forest);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.22s ease;
}

.btn-outline:hover {
  background: var(--forest);
  color: var(--cream);
}

.btn-primary-light {
  display: inline-block;
  padding: 14px 34px;
  background: var(--gold);
  color: var(--forest-deep);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.22s ease;
}

.btn-primary-light:hover { background: var(--gold-light); }

/* ══════════════════════════════════════
   FOOTER
══════════════════════════════════════ */
.footer {
  background: var(--forest-deep);
  border-top: 1px solid rgba(196, 146, 42, 0.15);
}

.footer-top {
  padding: 64px 0 52px;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 80px;
  align-items: start;
}

.footer-brand { }

.footer-logo {
  margin-bottom: 20px;
}

.footer-logo-svg,
.footer-logo-img {
  height: 110px;
  width: auto;
  display: block;
  /* Slight brightness lift so logo reads on dark footer */
  filter: brightness(1.1);
}

.footer-tagline {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.8;
  color: rgba(245, 240, 232, 0.42);
  max-width: 360px;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.footer-col {
  display: flex;
  flex-direction: column;
}

.footer-col h4 {
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}

.footer-col a {
  font-size: 13px;
  font-weight: 300;
  color: rgba(245, 240, 232, 0.45);
  text-decoration: none;
  padding: 5px 0;
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--cream); }

.footer-bottom {
  padding: 20px 0;
  border-top: 1px solid rgba(196, 146, 42, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-bottom p {
  font-size: 12px;
  font-weight: 300;
  color: rgba(245, 240, 232, 0.28);
}

.footer-legal {
  display: flex;
  gap: 24px;
}

.footer-legal a {
  font-size: 11px;
  font-weight: 300;
  color: rgba(245, 240, 232, 0.28);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-legal a:hover { color: rgba(245, 240, 232, 0.6); }

/* ══════════════════════════════════════
   REVEAL ON SCROLL
══════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.72s ease, transform 0.72s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 1024px) {
  :root {
    --container-pad: 36px;
  }
}

@media (max-width: 768px) {
  :root {
    --container-pad: 24px;
    --nav-h: 96px;
  }

  body { padding-top: 96px; }

  .nav-links { display: none; }
  .nav-hamburger { display: flex; }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 48px;
    padding: 48px 0 40px;
  }

  .footer-nav { grid-template-columns: repeat(2, 1fr); gap: 28px; }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  :root { --container-pad: 20px; }

  .footer-nav { grid-template-columns: 1fr; gap: 28px; }
}

/* ═══════════════════════════════════════════════════════════
   COOKIE CONSENT BANNER
═══════════════════════════════════════════════════════════ */

#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--forest-deep);
  border-top: 3px solid rgba(196, 146, 42, 0.6);
  padding: 32px 0;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 -12px 56px rgba(0, 0, 0, 0.45);
}

#cookie-banner.visible {
  transform: translateY(0);
}

.cookie-banner-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--container-pad, 48px);
  display: flex;
  align-items: center;
  gap: 40px;
}

.cookie-banner-text {
  flex: 1;
}

.cookie-banner-text p {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.75;
  color: rgba(245, 240, 232, 0.85);
  margin: 0;
}

.cookie-banner-text a {
  color: var(--gold-light);
  text-decoration: none;
  border-bottom: 1px solid rgba(196, 146, 42, 0.5);
  transition: border-color 0.2s;
}

.cookie-banner-text a:hover {
  border-bottom-color: var(--gold-light);
}

.cookie-banner-title {
  font-family: var(--font-sans);
  font-size: 22px;
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 10px;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.cookie-banner-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.btn-cookie-accept {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--forest-deep);
  background: var(--gold);
  border: 1px solid var(--gold);
  padding: 18px 44px;
  cursor: pointer;
  transition: all 0.22s;
  white-space: nowrap;
}

.btn-cookie-accept:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(196, 146, 42, 0.3);
}

.btn-cookie-essential {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: rgba(245, 240, 232, 0.4);
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 0;
  transition: color 0.2s;
}

.btn-cookie-essential:hover {
  color: rgba(245, 240, 232, 0.7);
}

@media (max-width: 768px) {
  .cookie-banner-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }

  .cookie-banner-actions {
    flex-direction: row;
    justify-content: flex-start;
    gap: 20px;
  }

  .btn-cookie-accept {
    flex: 1;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .cookie-banner-actions {
    flex-direction: column;
    align-items: stretch;
  }
}
