/* ═══════════════════════════════════════
   THEME SYSTEM (CSS Variables)
   ═══════════════════════════════════════ */
:root {
  /* Default theme: Charcoal & Warm Cognac */
  --bg-light: #ffffff;
  --bg-alt: #f8f6f3;
  --bg-dark: #1e2535;
  --bg-dark-alt: #2c3548;
  --accent: #bc7635;
  --text-dark: #201e1b;
  --text-light: #ffffff;
  --text-muted: #64584e;
  --border-light: #e8e2d8;
  --input-bg: #f8f6f3;
  --form-bg: #ffffff;
  --card-bg: #f8f6f3;
  --card-hover-shadow: rgba(30, 37, 53, 0.06);
  --font-body: 'Montserrat', sans-serif;
}

body.theme-slate-brass {
  /* Slate & Brushed Brass (formerly default) */
  --bg-light: #ffffff;
  --bg-alt: #f7f5f2;
  --bg-dark: #1e2535;
  --bg-dark-alt: #2c3548;
  --accent: #cca43b;
  --text-dark: #1a1f2e;
  --text-light: #ffffff;
  --text-muted: #52596a;
  --border-light: #e4e0d8;
  --input-bg: #f7f5f2;
  --form-bg: #ffffff;
  --card-bg: #f7f5f2;
  --card-hover-shadow: rgba(30, 37, 53, 0.06);
}

body.theme-midnight-gold {
  --bg-light: #ffffff;
  --bg-alt: #f5f6f8;
  --bg-dark: #0f1b2d;
  --bg-dark-alt: #1a2c45;
  --accent: #c9a830;
  --text-dark: #0d1520;
  --text-light: #ffffff;
  --text-muted: #4e5b6e;
  --border-light: #dfe3e8;
  --input-bg: #f5f6f8;
  --form-bg: #ffffff;
  --card-bg: #f5f6f8;
  --card-hover-shadow: rgba(15, 27, 45, 0.06);
}

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

body {
  background: var(--bg-light);
  color: var(--text-dark);
  font-family: 'Montserrat', sans-serif;
  font-size: 17px;
  line-height: 1.8;
  overflow-x: hidden;
}

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

/* ═══════════════════════════════════════
   THEME SWITCHER
   ═══════════════════════════════════════ */
.theme-switcher {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-left: auto;
  margin-right: 2rem;
}
.theme-dot {
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.3);
  cursor: pointer;
  padding: 0;
  position: relative;
  transition: transform 0.2s, border-color 0.2s;
  background: transparent;
  outline: none;
}
.theme-dot::after {
  content: '';
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  background: var(--accent-dot);
}
.theme-dot:hover { transform: scale(1.15); }
.theme-dot.active {
  border-color: #fff;
  transform: scale(1.15);
  box-shadow: 0 0 8px rgba(255,255,255,0.4);
}
.theme-dot.t-slate    { background: var(--bg-dark); --accent-dot: #cca43b; }
.theme-dot.t-charcoal { background: #262320;        --accent-dot: #bc7635; }
.theme-dot.t-midnight { background: #0f1b2d;        --accent-dot: #d4af37; }

/* ═══════════════════════════════════════
   NAV
   ═══════════════════════════════════════ */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  background: rgba(0,0,0,0);
  transition: background 0.4s;
  padding: 0 2rem;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
#nav.solid { background: var(--bg-dark); }

/* Inner pages: nav is always solid (no hero below) */
body.inner-page #nav { background: var(--bg-dark); }

.nav-logo {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}
.nav-menu {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}
.nav-menu a {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  transition: color 0.2s;
}
.nav-menu a:hover,
.nav-menu a.active { color: #fff; }
.nav-menu a.active { border-bottom: 1px solid var(--accent); padding-bottom: 1px; }
.nav-menu .book-link > a {
  background: var(--accent);
  color: #fff;
  padding: 0.4rem 1.1rem;
  transition: background 0.2s;
}
.nav-menu .book-link > a:hover { filter: brightness(1.08); border-bottom: none; }

/* hamburger */
.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: 2px;
  background: #fff;
  transition: transform 0.3s, opacity 0.3s;
}

/* ═══════════════════════════════════════
   PAGE HERO (inner pages)
   ═══════════════════════════════════════ */
.page-hero {
  background: var(--bg-dark);
  padding: 8rem 2rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(204,164,59,0.08) 0%, transparent 60%);
  pointer-events: none;
}
.page-hero-label {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.page-hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  line-height: 1.05;
  margin-bottom: 1rem;
}
.page-hero-sub {
  font-size: 1rem;
  font-weight: 400;
  color: rgba(255,255,255,0.65);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.75;
}

/* ═══════════════════════════════════════
   SECTIONS SHARED
   ═══════════════════════════════════════ */
.section { padding: 6rem 2rem; }
.section-dark { background: var(--bg-dark); color: #fff; }
.section-gray { background: var(--bg-alt); }
.inner { max-width: 1100px; margin: 0 auto; }

.section-label {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #666;
  margin-bottom: 1rem;
}
.section-dark .section-label { color: var(--accent); font-size: 0.68rem; }

.section-heading {
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.05;
  margin-bottom: 0.5rem;
}
.rule { width: 40px; height: 2px; background: var(--accent); margin: 1.5rem 0; }
.section-dark .rule { background: rgba(255,255,255,0.3); }

/* ═══════════════════════════════════════
   QUOTE BAND
   ═══════════════════════════════════════ */
.quote-band {
  background: var(--bg-dark);
  padding: 2.4rem 2rem;
  text-align: center;
}
.quote-band blockquote {
  font-family: 'EB Garamond', Georgia, serif;
  font-style: italic;
  font-size: clamp(1.05rem, 2.5vw, 1.45rem);
  color: rgba(255,255,255,0.95);
  letter-spacing: 0.02em;
  max-width: 800px;
  margin: 0 auto;
}
.quote-band cite {
  display: block;
  margin-top: 0.75rem;
  font-family: 'Montserrat', sans-serif;
  font-style: normal;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
}

/* ═══════════════════════════════════════
   CTA BUTTONS
   ═══════════════════════════════════════ */
.cta-btn {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 0.75rem 2rem;
  border: 1px solid #fff;
  color: #fff;
  transition: background 0.25s, color 0.25s;
}
.cta-btn:hover { background: #fff; color: var(--text-dark); }
.cta-btn.primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.cta-btn.primary:hover { filter: brightness(1.08); background: var(--accent); color: #fff; }
.cta-btn.dark {
  border-color: var(--bg-dark);
  color: var(--bg-dark);
}
.cta-btn.dark:hover { background: var(--bg-dark); color: #fff; }

/* ═══════════════════════════════════════
   PHOTO STRIP
   ═══════════════════════════════════════ */
.photo-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  height: 320px;
  overflow: hidden;
}
.ps-item { overflow: hidden; position: relative; }
.ps-item img {
  width: 101%; margin-left: -0.5%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  filter: grayscale(30%) brightness(0.85);
  transition: filter 0.4s, transform 0.5s;
}
.ps-item:hover img { filter: grayscale(0%) brightness(1); transform: scale(1.04); }

/* ═══════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════ */
footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.4);
  padding: 4rem 2rem 2.5rem;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand .fb-name {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 0.75rem;
}
.footer-brand p { font-size: 0.82rem; line-height: 1.7; }
.footer-col h4 {
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
  margin-bottom: 1.1rem;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.55rem; }
.footer-col ul a,
.footer-col address a {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
  transition: color 0.2s;
}
.footer-col ul a:hover,
.footer-col address a:hover { color: #fff; }
.footer-col address {
  font-style: normal;
  font-size: 0.82rem;
  line-height: 1.85;
}
.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.07);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.footer-bottom p {
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ═══════════════════════════════════════
   REVEAL ANIMATION
   ═══════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible { opacity: 1; transform: none; }
.delay-1 { transition-delay: 0.08s; }
.delay-2 { transition-delay: 0.16s; }
.delay-3 { transition-delay: 0.24s; }
.delay-4 { transition-delay: 0.32s; }

/* ═══════════════════════════════════════
   HAMBURGER ANIMATED
   ═══════════════════════════════════════ */
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ═══════════════════════════════════════
   TABLET (≤980px)
   ═══════════════════════════════════════ */
@media (max-width: 980px) {
  .inner { padding: 0 1.5rem; }
  .nav-menu {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 60px; left: 0; right: 0; bottom: 0;
    background: var(--bg-dark);
    padding: 2rem;
    gap: 0;
    align-items: stretch;
    z-index: 499;
    overflow-y: auto;
  }
  .nav-menu li { border-bottom: 1px solid rgba(255,255,255,0.07); }
  .nav-menu a { display: block; padding: 1.1rem 0; font-size: 0.75rem; }
  .nav-menu .book-link > a {
    margin-top: 1rem;
    display: block;
    text-align: center;
    padding: 0.85rem;
    background: var(--accent);
    color: #fff;
  }
  .nav-toggle { display: flex; }
  .nav-open .nav-menu { display: flex; }
  .photo-strip { grid-template-columns: 1fr 1fr; height: 220px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
}

/* ═══════════════════════════════════════
   MOBILE (≤640px)
   ═══════════════════════════════════════ */
@media (max-width: 640px) {
  .section { padding: 3.5rem 1.25rem; }
  .photo-strip { grid-template-columns: 1fr 1fr; height: 180px; }
  .footer-inner { grid-template-columns: 1fr; }
  .quote-band { padding: 1.75rem 1.25rem; }
}
