/* ==========================================================================
   Erymanthian Media — shared stylesheet
   Source of truth: design_handoff_erymanthian_media/ (hifi design tokens)
   This file: tokens, base, header/nav, mobile menu, buttons, eyebrows,
   section shells, reveal animation, footer. Page-specific rules live in
   css/<page>.css.
   ========================================================================== */

:root {
  /* Colors */
  --paper: #F4E7D2;          /* primary background (warm cream) */
  --surface: #FAF1DD;        /* raised surface / lighter cream */
  --ink: #1B1612;            /* primary text; dark section bg */
  --body: #3A2E26;           /* body text on cream */
  --muted: #6B5D4F;          /* muted text */
  --faint: #8A7A6A;          /* faint labels / captions */
  --terracotta: #C25232;     /* primary accent / CTA */
  --terracotta-dark: #9C3F23;/* CTA hover */
  --gold: #E7B864;           /* molten gold accent */
  --teal: #142A3A;           /* deep teal footer / dark sections */
  --hairline: #D9C8AC;       /* borders on cream */
  --hairline-2: #E4D6BC;

  /* Type */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-caps: 'Cormorant SC', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-grotesk: 'Space Grotesk', system-ui, sans-serif;

  /* Layout */
  --shell-max: 1280px;
  --gutter: clamp(20px, 5vw, 32px);
  --section-pad: clamp(72px, 11vw, 128px);
  --nav-h: 74px;
}

/* Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
::selection { background: var(--terracotta); color: var(--surface); }
img { display: block; max-width: 100%; }

/* Shells ----------------------------------------------------------------- */
.shell { max-width: var(--shell-max); margin: 0 auto; padding: 0 var(--gutter); }
.shell--1180 { max-width: 1180px; }
.shell--880 { max-width: 880px; }
.shell--760 { max-width: 760px; }
.section { padding: var(--section-pad) 0; }

/* Eyebrow labels ---------------------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-caps);
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
  font-size: 13px;
  color: var(--terracotta);
}
.eyebrow .rule { width: 30px; height: 1px; background: currentColor; }
.eyebrow--gold { color: var(--gold); letter-spacing: .26em; }
.eyebrow--gold .rule { width: 34px; }

/* Buttons ----------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: .02em;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease,
              transform .15s ease, box-shadow .15s ease;
}
.btn--primary {
  background: var(--terracotta);
  color: var(--surface);
  border: 1px solid var(--terracotta);
}
.btn--primary:hover {
  background: var(--terracotta-dark);
  border-color: var(--terracotta-dark);
  transform: translateY(-2px);
}
.btn--gold-metal {
  background-image: url('../assets/metallic-gold.jpg');
  background-size: cover;
  background-position: center;
  color: var(--ink);
  border: 1px solid #C9A24A;
  box-shadow: 0 6px 20px -8px rgba(120, 90, 20, 0.5);
}
.btn--gold-metal:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px -8px rgba(120, 90, 20, 0.6);
}
.btn--outline-dark {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}
.btn--outline-dark:hover { background: var(--ink); color: var(--surface); }
.btn--outline-light {
  background: transparent;
  color: var(--surface);
  border: 1px solid rgba(250, 241, 221, 0.45);
}
.btn--outline-light:hover { background: rgba(250, 241, 221, 0.12); }

/* Header / nav ------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid transparent;
  transition: background .3s ease, border-color .3s ease;
}
.site-header.is-scrolled {
  background: rgba(244, 231, 210, 0.82);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--hairline);
}
.nav-inner {
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 13px; text-decoration: none; }
.brand img { width: 40px; height: 40px; }
.brand span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1;
}
.brand span em { font-style: normal; color: var(--terracotta); }
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--body);
  text-decoration: none;
  transition: color .15s;
}
.nav-links a:hover { color: var(--terracotta); }
.nav-links a.is-active { color: var(--terracotta); font-weight: 600; }
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 22px;
  border-radius: 4px;
  background: var(--terracotta);
  color: var(--surface);
  border: 1px solid var(--terracotta);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: .02em;
  text-decoration: none;
  transition: background .15s ease, transform .15s ease;
}
.nav-cta:hover {
  background: var(--terracotta-dark);
  border-color: var(--terracotta-dark);
  transform: translateY(-1px);
}
.hamburger {
  display: none;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--hairline);
  border-radius: 4px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 0;
}
.hamburger span { display: block; width: 18px; height: 1.6px; background: var(--ink); }

/* Mobile menu ------------------------------------------------------------- */
.mobile-menu {
  display: none;
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  background: var(--paper);
  z-index: 95;
  padding: 28px var(--gutter);
  flex-direction: column;
  border-bottom: 1px solid var(--hairline);
  overflow-y: auto;
}
body.menu-open .mobile-menu { display: flex; }
.mobile-menu a {
  padding: 16px 0;
  font-family: var(--font-display);
  font-size: 30px;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--hairline);
}
.mobile-menu a.is-active { color: var(--terracotta); }
.mobile-menu .nav-cta {
  margin-top: 24px;
  font-family: var(--font-body);
  font-size: 15px;
  padding: 16px 22px;
  border-bottom: 0;
}

@media (max-width: 899px) {
  .nav-links, .site-header .nav-cta { display: none; }
  .hamburger { display: inline-flex; }
}

/* Reveal-on-scroll --------------------------------------------------------- */
.reveal-pending {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s cubic-bezier(.2, .6, .2, 1),
              transform .9s cubic-bezier(.2, .6, .2, 1);
}
.reveal-pending.is-revealed { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal-pending { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* Footer ------------------------------------------------------------------ */
.site-footer {
  background: var(--teal);
  color: rgba(250, 241, 221, 0.7);
  padding: clamp(56px, 8vw, 80px) 0 36px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: clamp(36px, 5vw, 56px);
  margin-bottom: clamp(48px, 7vw, 64px);
}
.footer-brand { min-width: 240px; }
.footer-brand img { width: 50px; height: 50px; margin-bottom: 18px; }
.footer-brand strong {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--surface);
  display: block;
  margin-bottom: 16px;
}
.footer-brand p { font-size: 14px; max-width: 36ch; line-height: 1.6; margin: 0; }
.footer-col h4 {
  font-family: var(--font-caps);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 20px;
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-col ul a {
  font-size: 14px;
  color: rgba(250, 241, 221, 0.7);
  text-decoration: none;
  transition: color .15s;
}
.footer-col ul a:hover { color: var(--gold); }
.footer-demo { min-width: 240px; }
.footer-demo p {
  font-size: 13px;
  margin: 0 0 16px;
  line-height: 1.6;
  color: rgba(250, 241, 221, 0.6);
}
.footer-demo .btn-mail {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 18px;
  border-radius: 4px;
  background: var(--terracotta);
  color: var(--surface);
  border: 1px solid var(--terracotta);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .01em;
  text-decoration: none;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.footer-demo .btn-mail:hover { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(250, 241, 221, 0.1);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 12px;
  color: rgba(250, 241, 221, 0.45);
}
.socials { display: flex; gap: 12px; }
.socials a {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(250, 241, 221, 0.18);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(250, 241, 221, 0.7);
  transition: all .15s ease;
}
.socials a:hover { color: var(--ink); background: var(--gold); border-color: var(--gold); }
