/* ===========================================================
   Danny Gal — shared page styles
   Matches the design language of index.html and writing.html.
   Subpages keep their original class names; this file restyles them.
   =========================================================== */

:root {
  --bg:       #f5f3ef;
  --bg2:      #edeae4;
  --bg3:      #e4e0d8;
  --dark:     #12192a;
  --dark2:    #1a2438;
  --border:   rgba(18,25,42,0.1);
  --gold:     #b8872a;
  --gold-lt:  #d4a84b;
  --gold-dim: rgba(184,135,42,0.12);
  --text:     #2c3548;
  --muted:    #6b7690;
  --white:    #ffffff;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Outfit', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
}

/* ── HEADER + NAV ────────────────────────────────────────── */
header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: 62px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 2.5rem;
  background: rgba(245,243,239,0.95); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
@media (max-width: 700px) { header { padding: 0 1.25rem; } }
.logo { font-family: 'Cormorant Garamond', serif; font-size: 1.4rem; font-weight: 600; letter-spacing: 0.05em; color: var(--dark); text-decoration: none; }
.logo em { font-style: normal; color: var(--gold); }
nav { display: flex; align-items: center; gap: 0.25rem; }
.nav-link { color: var(--muted); text-decoration: none; font-size: 0.8rem; font-weight: 500; letter-spacing: 0.04em; padding: 0.4rem 0.8rem; border-radius: 0.3rem; transition: color 0.2s; }
.nav-link:hover { color: var(--dark); }
.nav-link.here { color: var(--dark); font-weight: 700; }
.btn-cta { margin-left: 0.75rem; background: var(--dark); color: #fff; font-weight: 700; font-size: 0.8rem; letter-spacing: 0.04em; padding: 0.5rem 1.2rem; border-radius: 0.3rem; text-decoration: none; transition: background 0.2s; white-space: nowrap; }
.btn-cta:hover { background: var(--dark2); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.4rem 0.5rem; color: var(--dark); font-size: 1.3rem; line-height: 1; margin-left: 0.25rem; }
@media (max-width: 820px) { nav .nav-link { display: none; } .nav-toggle { display: flex; align-items: center; } }
.mobile-nav { display: none; position: fixed; top: 62px; left: 0; right: 0; z-index: 197; background: rgba(245,243,239,0.98); backdrop-filter: blur(20px); border-bottom: 2px solid var(--border); padding: 0.5rem 1.5rem 1rem; flex-direction: column; box-shadow: 0 8px 24px rgba(18,25,42,0.1); }
.mobile-nav.open { display: flex; }
.mobile-nav a.nav-link { display: block; padding: 0.85rem 0.25rem; font-size: 0.92rem; color: var(--text); border-bottom: 1px solid var(--border); }
.mobile-nav a.btn-cta { margin: 0.75rem 0 0; display: block; text-align: center; font-size: 0.9rem; padding: 0.75rem; }
.spacer { height: 62px; }

/* ── PAGE HEAD (was .hero-section) ───────────────────────── */
.hero-section {
  background: var(--white); border-bottom: 1px solid var(--border);
  padding: 4rem 2.5rem 3.25rem;
}
@media (max-width: 700px) { .hero-section { padding: 2.75rem 1.5rem 2.25rem; } }
.hero-section > div { max-width: 1200px; margin: 0 auto; }
.badge {
  display: inline-block; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--gold); background: var(--gold-dim);
  border: 1px solid rgba(184,135,42,0.25); border-radius: 9999px;
  padding: 0.3rem 0.9rem; margin-bottom: 1.25rem;
}
.hero-section h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.2rem, 4.5vw, 3.4rem); font-weight: 400; line-height: 1.12;
  color: var(--dark); margin-bottom: 0.75rem; text-wrap: balance; max-width: 24ch;
}
.hero-section p {
  font-family: 'Cormorant Garamond', serif; font-style: italic;
  font-size: clamp(1.05rem, 2vw, 1.35rem); color: var(--gold);
  line-height: 1.5; max-width: 44rem;
}
.hero-section p + p { font-family: 'Outfit', sans-serif; font-style: normal; font-size: 0.95rem; color: var(--muted); margin-top: 0.85rem; line-height: 1.8; }

/* ── LAYOUT ──────────────────────────────────────────────── */
.section { padding: 4rem 2.5rem; }
@media (max-width: 700px) { .section { padding: 2.75rem 1.5rem; } }
.section + .section { padding-top: 0; }
.max-w-4xl, .max-w-5xl, .max-w-7xl { max-width: 1200px; margin: 0 auto; }
.max-w-4xl { max-width: 60rem; }
.px-6 { width: 100%; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.25rem; }
@media (max-width: 860px) { .grid-3 { grid-template-columns: 1fr; } }
.col-span-2 { grid-column: span 2; }
.col-span-3 { grid-column: span 3; }
@media (max-width: 860px) { .col-span-2, .col-span-3 { grid-column: span 1; } }

/* ── CARDS ───────────────────────────────────────────────── */
.card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 0.75rem; box-shadow: 0 2px 10px rgba(18,25,42,0.05);
  overflow: hidden;
}
.card-body { padding: 1.75rem 1.6rem; }
.card-body-lg { padding: 2.25rem 2rem; }
.card-body h3, .card-body-lg h3 {
  font-family: 'Cormorant Garamond', serif; font-size: 1.4rem; font-weight: 600;
  color: var(--dark); line-height: 1.25; margin-bottom: 0.9rem;
}
.icon-circle {
  width: 2.75rem; height: 2.75rem; border-radius: 0.6rem;
  background: var(--gold-dim) !important; color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; margin-bottom: 1rem;
}
/* the standalone value in the "Duration" card */
.card-body > p {
  font-family: 'Cormorant Garamond', serif; font-size: 2rem; font-weight: 600;
  color: var(--gold); line-height: 1.1;
}

/* ── LISTS ───────────────────────────────────────────────── */
.bullet-list { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.bullet-list li { display: flex; gap: 0.7rem; align-items: flex-start; font-size: 0.875rem; color: var(--muted); line-height: 1.6; }
.bullet-dot { width: 0.4rem; height: 0.4rem; border-radius: 50%; background: var(--gold) !important; flex-shrink: 0; margin-top: 0.55rem; }
.check { color: var(--gold); font-weight: 700; flex-shrink: 0; }

/* ── PROCESS STEPS ───────────────────────────────────────── */
.process-step { display: flex; gap: 1.1rem; align-items: flex-start; padding-bottom: 1.1rem; border-bottom: 1px solid var(--border); }
.process-step:last-child { border-bottom: none; padding-bottom: 0; }
.step-num {
  width: 2.1rem; height: 2.1rem; border-radius: 50%;
  background: var(--dark) !important; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; font-weight: 700; flex-shrink: 0;
}
.step-content h4 { font-size: 0.95rem; font-weight: 700; color: var(--dark); margin-bottom: 0.2rem; }
.step-content p { font-size: 0.85rem; color: var(--muted); line-height: 1.65; }

/* ── CTA BLOCK ───────────────────────────────────────────── */
.cta-block {
  background: var(--dark) !important; border-radius: 0.9rem;
  padding: 2.75rem 2rem; text-align: center; border-top: 3px solid var(--gold);
}
.cta-block h3 { font-family: 'Cormorant Garamond', serif; font-size: clamp(1.5rem,3vw,2.1rem); font-weight: 400; color: #fff; margin-bottom: 0.6rem; text-wrap: balance; }
.cta-block p { color: #8899aa; font-size: 0.92rem; margin-bottom: 1.75rem; }
.cta-buttons { display: flex; gap: 0.75rem; flex-wrap: wrap; justify-content: center; }
.btn-primary {
  background: var(--gold) !important; color: var(--dark) !important;
  font-weight: 700; font-size: 0.85rem; padding: 0.72rem 1.5rem;
  border-radius: 0.3rem; text-decoration: none; display: inline-block;
  transition: background 0.2s, transform 0.2s;
}
.btn-primary:hover { background: var(--gold-lt) !important; transform: translateY(-2px); }
.cta-block .btn-primary + .btn-primary { background: rgba(255,255,255,0.1) !important; color: #f0f2f7 !important; }
.cta-block .btn-primary + .btn-primary:hover { background: rgba(255,255,255,0.18) !important; }
.btn-lg { font-size: 0.95rem; padding: 0.85rem 1.9rem; }

/* ── SERVICE CARD GRIDS (services.html, booking.html) ─────── */
.services-grid, .service-cards, .includes-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(290px,1fr)); gap: 1.25rem;
}
.scard, .svc-card {
  background: var(--white); border: 1px solid var(--border); border-radius: 0.75rem;
  overflow: hidden; text-decoration: none; display: block;
  box-shadow: 0 2px 8px rgba(18,25,42,0.04);
  transition: transform 0.2s, box-shadow 0.2s;
}
.scard:hover, .svc-card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(18,25,42,0.1); }
.scard-top, .svc-top {
  background: var(--white) !important; padding: 1.6rem 1.5rem 0.5rem; color: var(--text) !important;
}
.scard-top .icon, .svc-top .icon { font-size: 1.5rem; margin-bottom: 0.75rem; display: block; }
.scard-top h3, .svc-top h3 {
  font-family: 'Cormorant Garamond', serif; font-size: 1.3rem; font-weight: 600;
  color: var(--dark) !important; line-height: 1.25; margin-bottom: 0.35rem;
}
.scard-top p, .svc-top p, .svc-desc { font-size: 0.83rem; color: var(--muted) !important; line-height: 1.6; opacity: 1 !important; }
/* services.html: a single row (label + arrow) */
.scard-bot { background: var(--white) !important; padding: 1rem 1.5rem 1.4rem; display: flex; justify-content: space-between; align-items: center; }
/* booking.html: description, features and button stack vertically */
.svc-bottom { background: var(--white) !important; padding: 0 1.5rem 1.5rem; display: block; }
.scard-bot span, .svc-btn { color: var(--gold) !important; font-size: 0.8rem; font-weight: 700; }
.no-link .scard-bot span { color: var(--muted) !important; }
.includes-card { background: var(--white); border: 1px solid var(--border); border-radius: 0.75rem; padding: 1.6rem 1.5rem; box-shadow: 0 2px 8px rgba(18,25,42,0.04); }
.includes-card h3 { font-family: 'Cormorant Garamond', serif; font-size: 1.25rem; font-weight: 600; color: var(--dark); margin-bottom: 0.9rem; }
.inc-item { display: flex; gap: 0.65rem; align-items: flex-start; font-size: 0.85rem; color: var(--muted); line-height: 1.6; padding: 0.3rem 0; }
.inc-dot { width: 0.4rem; height: 0.4rem; border-radius: 50%; background: var(--gold) !important; flex-shrink: 0; margin-top: 0.55rem; }
/* price badge sits on its own line above the title, never floated */
.svc-top { position: relative; }
.price-badge {
  display: inline-block; float: none; background: var(--gold-dim);
  border: 1px solid rgba(184,135,42,0.25); color: var(--gold);
  font-family: 'Cormorant Garamond', serif; font-size: 1.05rem; font-weight: 600;
  padding: 0.15rem 0.75rem; border-radius: 9999px; margin-bottom: 0.75rem;
}
.feature-list { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; margin: 0.9rem 0 1.4rem; }
.feature-list li { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.85rem; color: var(--muted); line-height: 1.6; }
.svc-desc { margin-bottom: 1.1rem; }
.svc-btn {
  display: block; width: 100%; text-align: center;
  padding: 0.75rem 1rem; border: none; border-radius: 0.35rem; cursor: pointer;
  background: var(--dark) !important; color: #fff !important;
  font-family: 'Outfit', sans-serif; font-size: 0.85rem; font-weight: 700;
  text-decoration: none; transition: background 0.2s;
}
.svc-btn:hover { background: var(--dark2) !important; }
.includes-grid { grid-template-columns: repeat(auto-fill, minmax(220px,1fr)); gap: 1.25rem; margin-top: 1.25rem; }
.inc-item span { color: var(--muted); font-size: 0.87rem; line-height: 1.6; }
.sub { font-size: 0.85rem; color: var(--muted); line-height: 1.7; }

/* ── PROSE (book-excerpt.html) ───────────────────────────── */
.prose { max-width: 42rem; margin: 0 auto; }
.prose h2 { font-family: 'Cormorant Garamond', serif; font-size: clamp(1.6rem,3vw,2.2rem); font-weight: 400; color: var(--dark); line-height: 1.2; margin: 2.5rem 0 1rem; text-wrap: balance; }
.prose h3 { font-family: 'Cormorant Garamond', serif; font-size: 1.35rem; font-weight: 600; color: var(--dark); margin: 2rem 0 0.75rem; }
.prose p { font-size: 1rem; line-height: 1.9; color: var(--text); margin-bottom: 1.25rem; }
.prose blockquote { border-left: 3px solid var(--gold); padding-left: 1.25rem; margin: 1.75rem 0; font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 1.2rem; color: var(--dark); line-height: 1.7; }
.prose em { font-style: italic; }
.article-card { background: var(--white); border: 1px solid var(--border); border-radius: 0.75rem; padding: 2rem 1.9rem; box-shadow: 0 2px 10px rgba(18,25,42,0.05); margin-bottom: 2rem; }
@media (min-width: 768px) { .article-card { padding: 3rem 3.25rem; } }
.how-to-read, .continue-reading, .buy-cta { background: var(--bg2); border: 1px solid var(--border); border-radius: 0.75rem; padding: 1.75rem; margin-top: 2rem; }
.how-to-read h3 { margin-top: 0; }
.how-to-read p { font-size: 0.92rem; color: var(--muted); line-height: 1.75; }
.continue-reading { text-align: center; font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 1.05rem; color: var(--muted); margin: 2rem 0; }
.buy-cta { text-align: center; background: var(--dark); border-color: transparent; border-top: 3px solid var(--gold); }
.buy-cta h3 { font-family: 'Cormorant Garamond', serif; font-size: 1.6rem; font-weight: 400; color: #fff; margin-bottom: 0.6rem; }
.buy-cta p { color: #8899aa; font-size: 0.9rem; margin-bottom: 1.5rem; }

/* ── FOOTER ──────────────────────────────────────────────── */
footer {
  border-top: 1px solid rgba(255,255,255,0.08); padding: 1.75rem 2.5rem;
  background: var(--dark); display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 1rem; font-size: 0.75rem; color: #4a5568;
}
footer a { color: #4a5568; text-decoration: none; }
footer a:hover { color: var(--gold-lt); }
footer p { color: #4a5568; }
.f-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }

a:focus-visible, button:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
