/* ═══════════════════════════════════════════════════════════
   KJMH Digital — Global Design System
   Source of truth: homepage (index.html)
   ═══════════════════════════════════════════════════════════ */

/* ── DESIGN TOKENS ── */
:root {
  --cream: #faf6f0;
  --warm-white: #fdf9f4;
  --ink: #1c1815;
  --ink-soft: #3d3530;
  --muted: #8c7d72;
  --accent: #b5714a;
  --accent-hover: #9e6040;
  --accent-soft: #e8c9b3;
  --accent-pale: #f5ece4;
  --rule: #e2d8d0;
  --dark: #1a1410;
  --charcoal: #2e2018;
  --slate: #2c2420;
  --footer-ink: #f0ebe5;
  --footer-muted: rgba(240,235,229,0.55);
  --footer-rule: rgba(240,235,229,0.12);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* ── BASE TYPOGRAPHY ── */
body {
  background: var(--cream);
  color: var(--ink);
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  line-height: 1.8;
  overflow-x: hidden;
}

/* Subtle paper texture */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 200; opacity: 0.4;
}

/* ── NAVIGATION ── */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 1.4rem 3rem;
  display: flex; align-items: center; justify-content: space-between;
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

#nav.scrolled {
  background: rgba(250,246,240,0.94);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--rule);
}

.nav-logo {
  font-family: 'Cormorant Garamond', serif; font-size: 1.25rem;
  font-style: italic; color: var(--ink); text-decoration: none;
  letter-spacing: 0.02em; flex-shrink: 0;
}

.nav-links { display: flex; align-items: center; gap: 2.5rem; list-style: none; }

.nav-links a {
  font-size: 0.875rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-soft); text-decoration: none; transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--accent); }

.nav-cta { color: var(--accent) !important; border-bottom: 1px solid rgba(181,113,74,0.3); padding-bottom: 1px; }
.nav-cta:hover { color: var(--accent-hover) !important; }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 4px; flex-direction: column; gap: 5px; }
.nav-toggle span { display: block; width: 22px; height: 1px; background: var(--ink); transition: transform 0.3s ease, opacity 0.3s ease; }

/* ── SHARED LAYOUT ── */
.section-wrap { max-width: 1100px; margin: 0 auto; padding: 0 3rem; }
.section-label {
  font-size: 0.875rem; font-weight: 400; letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--accent); display: block; margin-bottom: 1.8rem;
}

/* ── BUTTONS ── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 0.8rem;
  background: var(--accent); color: var(--warm-white);
  font-size: 0.875rem; font-weight: 400; letter-spacing: 0.16em;
  text-transform: uppercase; text-decoration: none;
  padding: 1rem 2rem; border-radius: 1px;
  transition: background 0.3s ease, gap 0.3s ease; white-space: nowrap;
}
.btn-primary:hover { background: var(--accent-hover); gap: 1.2rem; }
.btn-primary::after { content: '→'; }

.btn-ghost {
  font-family: 'Cormorant Garamond', serif; font-style: italic;
  font-size: 1.125rem; color: var(--ink-soft); text-decoration: none;
  border-bottom: 1px solid var(--rule); padding-bottom: 2px;
  transition: color 0.25s ease, border-color 0.25s ease;
}
.btn-ghost:hover { color: var(--accent); border-color: var(--accent-soft); }

.btn-offer {
  display: inline-flex; align-items: center; gap: 0.8rem;
  background: var(--accent); color: var(--warm-white);
  font-size: 0.875rem; font-weight: 400; letter-spacing: 0.16em;
  text-transform: uppercase; text-decoration: none;
  padding: 1rem 2rem; border-radius: 1px;
  transition: background 0.3s ease, gap 0.3s ease; white-space: nowrap;
}
.btn-offer:hover { background: var(--accent-hover); gap: 1.2rem; }
.btn-offer::after { content: '→'; }
.mobile-cta { display: none; margin-top: 2rem; width: 100%; justify-content: center; }

/* ── TYPOGRAPHIC SCALE (from homepage) ── */
/* Page hero headline — the big serif title */
.page-hero-heading {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 300; line-height: 1.1; color: var(--ink);
}
.page-hero-heading em { font-style: italic; color: var(--accent); }

/* Section heading (h2-level) */
.section-heading {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 300; line-height: 1.2; color: var(--ink);
}
.section-heading em { font-style: italic; color: var(--accent); }

/* Sub-section heading (h3-level, pull quotes) */
.sub-heading {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 300; line-height: 1.35; color: var(--ink);
}
.sub-heading em { font-style: italic; color: var(--accent); }

/* Body text — primary reading text (Cormorant) */
.body-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  line-height: 1.9; color: var(--ink-soft);
}

/* Small body / secondary (Cormorant) */
.body-text-sm {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1rem, 1.8vw, 1.1rem);
  color: var(--ink-soft); line-height: 1.75;
}

/* Eyebrow / label text (Jost) */
.eyebrow {
  font-size: 0.875rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--accent);
}

/* ── DIVIDER ── */
.section-divider { border: none; border-top: 1px solid var(--rule); margin: 0; }

/* ── FOOTER ── */
footer {
  background: var(--slate); padding: 4rem 3rem 2.5rem;
  position: relative; overflow: hidden;
}

footer::before {
  content: ''; position: absolute; bottom: -80px; left: -60px;
  width: 280px; height: 280px; border-radius: 50%;
  background: radial-gradient(circle, rgba(181,113,74,0.08) 0%, transparent 65%);
  pointer-events: none;
}

.footer-inner { max-width: 1100px; margin: 0 auto; position: relative; z-index: 1; }

.footer-top {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 4rem;
  padding-bottom: 2.5rem; border-bottom: 1px solid var(--footer-rule);
  margin-bottom: 1.8rem; align-items: start;
}

.footer-logo {
  font-family: 'Cormorant Garamond', serif; font-size: 1.5rem;
  font-style: italic; color: var(--footer-ink); text-decoration: none;
  display: block; margin-bottom: 0.5rem;
}

.footer-tagline {
  font-family: 'Cormorant Garamond', serif; font-style: italic;
  font-size: 1rem; color: var(--footer-muted); line-height: 1.6; max-width: 260px;
}

.footer-col-label {
  font-size: 0.875rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(240,235,229,0.4); display: block; margin-bottom: 1.2rem;
}

.footer-nav { list-style: none; display: flex; flex-direction: column; gap: 0.65rem; }

.footer-nav a {
  font-size: 0.875rem; color: var(--footer-ink); text-decoration: none;
  letter-spacing: 0.05em; transition: opacity 0.2s ease;
  font-family: 'Jost', sans-serif; font-weight: 300;
}
.footer-nav a:hover { opacity: 0.65; }

.footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.footer-copy { font-size: 0.875rem; color: var(--footer-muted); letter-spacing: 0.08em; }

.footer-legal { display: flex; gap: 1.5rem; list-style: none; }
.footer-legal a { font-size: 0.875rem; color: var(--footer-muted); text-decoration: none; letter-spacing: 0.08em; transition: opacity 0.2s ease; }
.footer-legal a:hover { opacity: 0.75; }

/* ── ANIMATIONS ── */
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.85s ease, transform 0.85s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  .desktop-cta { display: none; }
  .mobile-cta { display: inline-flex; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
}

@media (max-width: 768px) {
  html, body { overflow-x: clip; }
  #nav { padding: 1.2rem 1.5rem; }
  .nav-links {
    display: none; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(250,246,240,0.97); backdrop-filter: blur(12px);
    padding: 1.5rem 2rem; gap: 1.2rem; border-bottom: 1px solid var(--rule);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .section-wrap { padding: 0 1.5rem; }
  .footer-top { grid-template-columns: 1fr; gap: 2.5rem; }
  footer { padding: 3rem 1.5rem 2rem; }
}
