/* ─── STUART NOLAN CONSULTING — snc.css ─────────────────────────────────────
   Shared stylesheet for all pages.
   Fonts loaded via Google Fonts in each HTML file's <head>.
   ──────────────────────────────────────────────────────────────────────────── */

/* ─── TOKENS ───────────────────────────────────────────────────────────────── */
:root {
  --navy:    #0D1E33;
  --navy-dk: #080F1C;
  --navy-md: #1A3050;
  --teal:    #2A7FAE;
  --teal-lt: #3A9FD0;
  --gold:    #C9972E;
  --gold-lt: #E4B84A;
  --off-wht: #F4F1EC;
  --cream:   #EDE8DF;
  --mid:     #6B8AA8;
  --light:   #A8C4D8;
  --white:   #FFFFFF;
  --body-txt: #3A5060;
  --serif:  'Playfair Display', Georgia, serif;
  --sans:   'DM Sans', system-ui, sans-serif;
  --mono:   'DM Mono', monospace;
  --max:    1200px;
  --gutter: clamp(1.5rem, 5vw, 4rem);
}

/* ─── RESET ─────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--off-wht);
  color: var(--navy);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
em { font-style: italic; }

/* ─── NAV ───────────────────────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(8, 15, 28, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201, 151, 46, 0.2);
  padding: 0 var(--gutter);
  height: 68px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.03em;
  color: var(--white);
}
.nav-logo span { color: var(--gold); }
.nav-links {
  display: flex; align-items: center; gap: 2.2rem;
  list-style: none;
}
.nav-links a {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--light);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--white); }
.nav-cta {
  background: var(--gold) !important;
  color: var(--navy-dk) !important;
  font-weight: 600 !important;
  padding: 0.55rem 1.4rem;
  border-radius: 2px;
  transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--gold-lt) !important; }

/* ─── SHARED SECTION STRUCTURE ──────────────────────────────────────────────── */
.section { padding: clamp(4rem, 8vw, 8rem) var(--gutter); }
.inner { max-width: var(--max); margin: 0 auto; }

.label {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex; align-items: center; gap: 0.6rem;
  margin-bottom: 1rem;
}
.label::before {
  content: '';
  display: block;
  width: 24px; height: 1px;
  background: var(--gold);
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.6vw, 3.2rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--navy);
  margin-bottom: 1.2rem;
}
.section-title em { color: var(--teal); }
.section-title.light { color: var(--white); }
.section-title.light em { color: var(--gold); }

.body-text {
  font-size: 1rem;
  font-weight: 300;
  color: var(--body-txt);
  max-width: 600px;
  line-height: 1.75;
}
.body-text.light { color: var(--light); }

/* ─── PAGE HERO (inner pages) ───────────────────────────────────────────────── */
.page-hero {
  background: var(--navy-dk);
  padding: 9rem var(--gutter) 5rem;
  position: relative;
  overflow: hidden;
}
.page-hero-inner { max-width: var(--max); margin: 0 auto; position: relative; z-index: 2; }
.page-hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  font-weight: 900;
  line-height: 1.05;
  color: var(--white);
  max-width: 760px;
  margin-bottom: 1.4rem;
}
.page-hero h1 em { color: var(--gold); }
.page-hero p {
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--light);
  max-width: 540px;
  line-height: 1.7;
}
.ghost-word {
  position: absolute;
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(7rem, 18vw, 18rem);
  color: transparent;
  -webkit-text-stroke: 1px rgba(201, 151, 46, 0.09);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  line-height: 1;
  z-index: 0;
}

/* ─── EYEBROW ───────────────────────────────────────────────────────────────── */
.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex; align-items: center; gap: 0.8rem;
  margin-bottom: 1.4rem;
}
.eyebrow::before {
  content: '';
  display: block;
  width: 32px; height: 1px;
  background: var(--gold);
  flex-shrink: 0;
}

/* ─── BUTTONS ───────────────────────────────────────────────────────────────── */
.btn-primary {
  background: var(--gold);
  color: var(--navy-dk);
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 1rem 2.2rem;
  border-radius: 2px;
  border: none; cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  display: inline-block;
  box-shadow: 0 4px 24px rgba(201, 151, 46, 0.3);
}
.btn-primary:hover {
  background: var(--gold-lt);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(201, 151, 46, 0.4);
}
.btn-dark {
  background: var(--navy-dk);
  color: var(--white);
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 1rem 2.4rem;
  border-radius: 2px;
  display: inline-block;
  transition: background 0.2s, transform 0.15s;
  box-shadow: 0 4px 20px rgba(8, 15, 28, 0.2);
}
.btn-dark:hover { background: var(--navy); transform: translateY(-2px); }
.btn-outline {
  border: 1px solid var(--gold);
  color: var(--gold);
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.75rem 1.6rem;
  border-radius: 2px;
  transition: background 0.2s, color 0.2s;
  display: inline-block;
}
.btn-outline:hover { background: var(--gold); color: var(--navy-dk); }
.btn-ghost {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--light);
  display: inline-flex; align-items: center; gap: 0.5rem;
  transition: color 0.2s, gap 0.2s;
}
.btn-ghost::after { content: '→'; transition: transform 0.2s; }
.btn-ghost:hover { color: var(--white); }
.btn-ghost:hover::after { transform: translateX(4px); }
.sub-link {
  display: inline-block;
  margin-top: 1.2rem;
  font-size: 0.8rem;
  color: rgba(8, 15, 28, 0.55);
  transition: color 0.2s;
}
.sub-link:hover { color: var(--navy-dk); }

/* ─── QUOTE BAND ────────────────────────────────────────────────────────────── */
.quote-band {
  background: var(--gold);
  padding: clamp(2.5rem, 6vw, 4rem) var(--gutter);
  text-align: center;
}
.quote-text {
  font-family: var(--serif);
  font-size: clamp(1.05rem, 3.5vw, 2rem);
  font-style: italic;
  font-weight: 400;
  color: var(--navy-dk);
  max-width: 800px;
  margin: 0 auto 1rem;
  line-height: 1.55;
}
.quote-attr {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(13, 30, 51, 0.6);
}

/* ─── CTA BAND ──────────────────────────────────────────────────────────────── */
.cta-band {
  background: var(--gold);
  padding: clamp(4rem, 7vw, 7rem) var(--gutter);
  text-align: center;
}
.cta-band h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 900;
  color: var(--navy-dk);
  line-height: 1.1;
  margin-bottom: 1rem;
}
.cta-band p {
  font-size: 1rem;
  color: rgba(8, 15, 28, 0.6);
  max-width: 520px;
  margin: 0 auto 2rem;
  font-weight: 300;
  line-height: 1.7;
}

/* ─── TESTIMONIALS ──────────────────────────────────────────────────────────── */
.testimonials { background: var(--navy); }
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3.5rem;
}
.testi-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(168, 196, 216, 0.12);
  padding: 2rem 1.8rem;
  transition: border-color 0.2s;
}
.testi-card:hover { border-color: rgba(201, 151, 46, 0.3); }
.testi-quote-mark {
  font-family: var(--serif);
  font-size: 3rem;
  font-weight: 900;
  color: var(--gold);
  opacity: 0.4;
  line-height: 1;
  margin-bottom: 0.5rem;
}
.testi-text {
  font-size: 0.9rem;
  font-style: italic;
  color: var(--light);
  line-height: 1.7;
  font-weight: 300;
  margin-bottom: 1.4rem;
}
.testi-attr { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mid); }
.testi-attr strong { display: block; color: var(--white); font-style: normal; margin-bottom: 0.2rem; font-family: var(--sans); font-size: 0.82rem; letter-spacing: 0; }

/* ─── FOOTER ────────────────────────────────────────────────────────────────── */
.footer {
  background: var(--navy-dk);
  border-top: 1px solid rgba(168, 196, 216, 0.08);
  padding: 2.5rem var(--gutter);
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1.5rem;
}
.footer-logo { font-family: var(--serif); font-size: 0.95rem; font-weight: 700; color: var(--white); }
.footer-logo span { color: var(--gold); }
.footer-links { display: flex; gap: 2rem; list-style: none; flex-wrap: wrap; }
.footer-links a { font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mid); transition: color 0.2s; }
.footer-links a:hover { color: var(--light); }
.footer-copy { font-size: 0.72rem; color: var(--mid); width: 100%; padding-top: 1rem; border-top: 1px solid rgba(168,196,216,0.06); }

/* ─── SCROLL REVEAL ─────────────────────────────────────────────────────────── */
.reveal { opacity: 1; transform: translateY(0); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.js-ready .reveal { opacity: 0; transform: translateY(18px); }
.js-ready .reveal.visible { opacity: 1; transform: translateY(0); }

/* ─── HAMBURGER NAV ─────────────────────────────────────────────────────────── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px; height: 36px;
  cursor: pointer;
  background: none; border: none;
  padding: 4px;
  z-index: 200;
}
.nav-hamburger span {
  display: block;
  width: 100%; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
  transform-origin: center;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav drawer */
.nav-drawer {
  display: none;
  position: fixed;
  top: 68px; left: 0; right: 0;
  background: rgba(8,15,28,0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(201,151,46,0.2);
  padding: 1.5rem var(--gutter) 2rem;
  z-index: 99;
  flex-direction: column;
  gap: 0;
}
.nav-drawer.open { display: flex; }
.nav-drawer a {
  display: block;
  font-size: 1rem;
  font-weight: 500;
  color: var(--light);
  padding: 1rem 0;
  border-bottom: 1px solid rgba(168,196,216,0.08);
  transition: color 0.2s;
  letter-spacing: 0.04em;
}
.nav-drawer a:hover { color: var(--white); }
.nav-drawer .nav-cta {
  margin-top: 1.2rem;
  background: var(--gold) !important;
  color: var(--navy-dk) !important;
  text-align: center;
  padding: 1rem !important;
  border-radius: 2px;
  border-bottom: none !important;
  font-weight: 600 !important;
}

/* ─── RESPONSIVE ────────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  /* Nav */
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }

  /* Testimonials */
  .testi-grid { grid-template-columns: 1fr; }

  /* Footer — stack cleanly */
  .footer { padding: 2rem var(--gutter); }
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.2rem;
  }
  .footer-links { gap: 1.2rem; }
  .footer-copy { margin-top: 0; }

  /* Quote band — tighter on mobile */
  .quote-band { padding: 2rem var(--gutter); }
  .quote-text { font-size: clamp(1rem, 4.5vw, 1.4rem); line-height: 1.5; }

  /* Section headings on dark backgrounds */
  .method .section-title,
  .results .section-title { color: var(--white) !important; }
  .method .section-title em { color: var(--gold) !important; }
  .results .section-title em { color: var(--gold) !important; }
}

@media (max-width: 600px) {
  .section { padding: 2.5rem var(--gutter); }

  /* Footer — very small screens */
  .footer-links { flex-direction: column; gap: 0.8rem; }
  .footer-links a { font-size: 0.82rem; }
  .footer-logo { font-size: 1rem; }

  /* Quote band */
  .quote-band { padding: 1.8rem var(--gutter); }
  .quote-text { font-size: 1rem; }

  /* Book cover */
  .book-cover img {
    width: 100%; height: 100%;
    object-fit: contain; object-position: center;
    display: block; image-rendering: auto;
  }

  /* CTA band */
  .cta-band h2 { font-size: clamp(1.6rem, 6vw, 2.2rem); }
}
