/* ==========================================================
   WhisperTales — public marketing site
   Bedtime / dreamy: deep midnight, star gold, cream
   ========================================================== */

:root {
  --whisper-midnight:  #0B2358;
  --whisper-twilight:  #1A3A7A;
  --whisper-star-gold: #F0C770;
  --whisper-gold-soft: #E0B454;
  --whisper-cream:     #FAF7F0;
  --whisper-cream-deep: #F0EADC;
  --bg:                #FCFAF5;
  --ink:               #1A1A2E;
  --body:              #3D4258;
  --muted:             #5A6178;
  --border:            #E5DECE;
  --serif:  'Cormorant Garamond', Georgia, serif;
  --script: 'Dancing Script', cursive;
  --sans:   'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --maxw:   1100px;
  --radius: 4px;
  --radius-lg: 8px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--whisper-twilight);
  text-decoration: none;
  transition: color 0.15s ease;
}
a:hover { color: var(--whisper-midnight); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--ink);
  font-weight: 500;
  line-height: 1.2;
  margin: 0 0 0.5em;
  letter-spacing: -0.005em;
}
h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.4rem; }
p  { margin: 0 0 1em; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--whisper-star-gold);
  margin-bottom: 1rem;
}
.eyebrow::before, .eyebrow::after {
  content: '';
  display: inline-block;
  width: 32px;
  height: 1px;
  background: var(--whisper-star-gold);
  opacity: 0.55;
}

/* -------------------- header / nav -------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(252, 250, 245, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  max-width: var(--maxw);
  margin: 0 auto;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--whisper-midnight);
  letter-spacing: 0.04em;
  text-decoration: none;
}
.brand-mark {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  display: block;
}
.brand-light { font-weight: 300; }
.brand-bold  { font-weight: 600; }
.brand:hover { color: var(--whisper-twilight); }

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 500;
}
.nav-links a:hover { color: var(--whisper-twilight); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--ink);
}

@media (max-width: 720px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.5rem;
  }
  .nav-links.is-open { display: flex; }
  .nav-toggle { display: block; }
}

/* -------------------- hero (deep midnight + stars) -------------------- */
.hero {
  background:
    radial-gradient(ellipse at 70% 30%, var(--whisper-twilight) 0%, var(--whisper-midnight) 70%);
  color: white;
  padding: 5.5rem 1.5rem 5rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 8% 22%,  rgba(255,255,255,0.6) 50%, transparent 100%),
    radial-gradient(1px 1px at 18% 14%,    rgba(255,255,255,0.5) 50%, transparent 100%),
    radial-gradient(1.6px 1.6px at 32% 28%, rgba(240,199,112,0.7) 50%, transparent 100%),
    radial-gradient(1px 1px at 48% 12%,    rgba(255,255,255,0.5) 50%, transparent 100%),
    radial-gradient(1.5px 1.5px at 62% 84%, rgba(255,255,255,0.55) 50%, transparent 100%),
    radial-gradient(1px 1px at 78% 76%,    rgba(240,199,112,0.55) 50%, transparent 100%),
    radial-gradient(1.6px 1.6px at 88% 30%, rgba(255,255,255,0.65) 50%, transparent 100%),
    radial-gradient(1px 1px at 14% 70%,    rgba(255,255,255,0.45) 50%, transparent 100%),
    radial-gradient(1.4px 1.4px at 56% 50%, rgba(240,199,112,0.5) 50%, transparent 100%);
  pointer-events: none;
}
.hero .container {
  position: relative;
  z-index: 1;
  text-align: center;
}
.hero h1 {
  color: white;
  max-width: 18ch;
  margin: 0 auto 1rem;
}
.hero .lead {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.92);
  max-width: 56ch;
  margin: 0 auto 2.2rem;
}
.hero .script-mark {
  font-family: var(--script);
  font-size: 1.7rem;
  color: var(--whisper-star-gold);
  display: block;
  margin-bottom: 0.5rem;
}
.hero-cta {
  display: inline-flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* -------------------- buttons -------------------- */
.btn {
  display: inline-block;
  padding: 0.85rem 1.6rem;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: var(--radius);
  cursor: pointer;
  text-align: center;
  transition: all 0.15s ease;
  border: 1px solid transparent;
  letter-spacing: 0.01em;
}
.btn-primary {
  background: var(--whisper-star-gold);
  color: var(--whisper-midnight);
}
.btn-primary:hover {
  background: var(--whisper-gold-soft);
  color: var(--whisper-midnight);
}
.btn-on-dark {
  background: white;
  color: var(--whisper-midnight);
}
.btn-on-dark:hover {
  background: var(--whisper-cream);
  color: var(--whisper-midnight);
}
.btn-secondary {
  background: transparent;
  color: white;
  border-color: rgba(255, 255, 255, 0.45);
}
.btn-secondary:hover {
  border-color: white;
  background: rgba(255, 255, 255, 0.08);
  color: white;
}

/* -------------------- sections -------------------- */
section { padding: 4.5rem 0; }
.section-cream { background: var(--whisper-cream); }
.section-head {
  text-align: center;
  margin-bottom: 3rem;
}
.section-head .lead {
  color: var(--muted);
  max-width: 60ch;
  margin: 0 auto;
}

/* -------------------- "what we make" cards -------------------- */
.lines-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.line-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  text-align: left;
}
.line-card:hover {
  border-color: var(--whisper-twilight);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(11, 35, 88, 0.10);
}
.line-card .badge {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--whisper-star-gold);
  font-weight: 600;
  margin-bottom: 0.6rem;
}
.line-card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.7rem;
}
.line-card p {
  color: var(--muted);
  margin-bottom: 0;
  flex-grow: 1;
}

/* -------------------- about prose -------------------- */
.prose {
  max-width: 60ch;
  margin: 0 auto;
}
.prose p {
  font-size: 1.05rem;
  color: var(--body);
}

/* -------------------- closing CTA strip -------------------- */
.cta-strip {
  background:
    radial-gradient(ellipse at 50% 100%, var(--whisper-twilight) 0%, var(--whisper-midnight) 80%);
  color: white;
  text-align: center;
  padding: 4.5rem 1.5rem;
}
.cta-strip h2 {
  color: white;
  max-width: 22ch;
  margin: 0 auto 1rem;
}
.cta-strip p {
  color: rgba(255, 255, 255, 0.88);
  max-width: 50ch;
  margin: 0 auto 2rem;
  font-size: 1.05rem;
}

/* -------------------- footer -------------------- */
.site-footer {
  background: var(--whisper-midnight);
  color: #C2CADB;
  padding: 2.5rem 0 2rem;
}
.site-footer a { color: var(--whisper-cream); }
.site-footer a:hover { color: white; }
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.9rem;
}
.footer-inner .brand {
  color: white;
}
.footer-inner .brand-light,
.footer-inner .brand-bold { color: white; }

/* -------------------- utilities -------------------- */
.center { text-align: center; }
.mt-2   { margin-top: 2rem; }
