/* ============================================================
   The Book's Savant — Shared Stylesheet (v2, Claude Design handoff)
   Palette drawn from the brand logo: royal blue & gilded gold
   ============================================================ */

:root {
  --navy-deepest: #0a1730;
  --navy-deep: #10233f;
  --navy: #16365c;
  --blue: #2b5d9e;
  --blue-light: #4a80c4;
  --gold: #d99b2b;
  --gold-light: #f2c14e;
  --gold-pale: #f8e3b0;
  --cream: #faf6ee;
  --parchment: #f4ecdc;
  --ink: #22314a;
  --white: #ffffff;
  --font-display: 'Cinzel Decorative', 'Cinzel', serif;
  --font-heading: 'Cinzel', serif;
  --font-body: 'Cormorant Garamond', Georgia, serif;
  --font-ui: 'Montserrat', 'Segoe UI', sans-serif;
  --shadow-soft: 0 8px 30px rgba(10, 23, 48, 0.1);
  --shadow-lift: 0 16px 45px rgba(10, 23, 48, 0.2);
  --radius: 16px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1.18rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
}

img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; transition: color 0.25s; }
a:hover { color: var(--gold); }

/* ---------- Language toggle mechanics ---------- */
html[data-lang="en"] .es { display: none !important; }
html[data-lang="es"] .en { display: none !important; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(180deg, var(--navy-deepest) 0%, var(--navy-deep) 100%);
  border-bottom: 1px solid rgba(242, 193, 78, 0.35);
  box-shadow: 0 4px 24px rgba(10, 23, 48, 0.45);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.65rem 1.6rem;
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.brand-logo {
  position: relative;
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.brand-logo::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(242, 193, 78, 0.35) 0%, transparent 70%);
}
.brand-logo img { position: relative; height: 44px; width: auto; }

.brand-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.05em;
  color: var(--gold-light);
  line-height: 1.2;
}

.brand-tag {
  font-family: var(--font-body);
  font-style: italic;
  font-weight: 500;
  font-size: 0.76rem;
  letter-spacing: 0.01em;
  color: #a9bfdc;
  display: block;
}

.main-nav { margin-left: auto; }

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 0.15rem;
  align-items: center;
  flex-wrap: wrap;
}

.main-nav a {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.045em;
  text-transform: uppercase;
  color: #dce7f5;
  padding: 0.5rem 0.7rem;
  border-radius: 8px;
  display: inline-block;
  transition: color 0.25s, background 0.25s;
}

.main-nav a:hover { color: var(--gold-light); background: rgba(242, 193, 78, 0.08); }

.main-nav a.active {
  color: var(--gold-light);
  background: rgba(242, 193, 78, 0.1);
  box-shadow: inset 0 -2px 0 var(--gold);
}

/* Language toggle pill */
.lang-toggle {
  display: flex;
  border: 1px solid rgba(242, 193, 78, 0.5);
  border-radius: 999px;
  overflow: hidden;
  margin-left: 0.6rem;
  flex-shrink: 0;
}

.lang-toggle button {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.35rem 0.75rem;
  background: transparent;
  color: #c9d8ec;
  border: none;
  cursor: pointer;
  transition: background 0.25s, color 0.25s;
}

.lang-toggle button.active {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--navy-deepest);
}

/* Language toggle inside the mobile nav panel (hidden on desktop) */
.main-nav .lang-toggle { display: none; }

/* Mobile nav toggle */
.nav-burger {
  display: none;
  margin-left: auto;
  background: none;
  border: 1px solid rgba(242, 193, 78, 0.5);
  border-radius: 8px;
  color: var(--gold-light);
  font-size: 1.3rem;
  padding: 0.25rem 0.65rem;
  cursor: pointer;
  line-height: 1;
}

/* ---------- Hero (night-sky fantasy) ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 20% 10%, rgba(74, 128, 196, 0.35) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 90%, rgba(217, 155, 43, 0.18) 0%, transparent 55%),
    linear-gradient(160deg, var(--navy-deepest) 0%, var(--navy-deep) 45%, var(--navy) 100%);
  color: var(--white);
  text-align: center;
  padding: 6rem 1.5rem 7rem;
}

.hero::before, .hero::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(1.6px 1.6px at 12% 22%, rgba(255,255,255,0.9) 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 28% 68%, rgba(255,255,255,0.7) 50%, transparent 51%),
    radial-gradient(2px 2px at 45% 15%, rgba(248,227,176,0.95) 50%, transparent 51%),
    radial-gradient(1.3px 1.3px at 63% 42%, rgba(255,255,255,0.8) 50%, transparent 51%),
    radial-gradient(1.8px 1.8px at 78% 25%, rgba(242,193,78,0.9) 50%, transparent 51%),
    radial-gradient(1.1px 1.1px at 88% 60%, rgba(255,255,255,0.75) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 35% 85%, rgba(255,255,255,0.65) 50%, transparent 51%),
    radial-gradient(1.4px 1.4px at 8% 50%, rgba(255,255,255,0.6) 50%, transparent 51%);
  animation: twinkle 5s ease-in-out infinite alternate;
}

.hero::after {
  background-image:
    radial-gradient(1.3px 1.3px at 18% 40%, rgba(255,255,255,0.8) 50%, transparent 51%),
    radial-gradient(1.6px 1.6px at 52% 30%, rgba(242,193,78,0.85) 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 82% 45%, rgba(255,255,255,0.7) 50%, transparent 51%),
    radial-gradient(1.9px 1.9px at 25% 12%, rgba(255,255,255,0.9) 50%, transparent 51%),
    radial-gradient(1.4px 1.4px at 60% 70%, rgba(248,227,176,0.75) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 95% 78%, rgba(255,255,255,0.8) 50%, transparent 51%);
  animation: twinkle 7s ease-in-out infinite alternate-reverse;
}

@keyframes twinkle {
  0%   { opacity: 0.35; }
  100% { opacity: 1; }
}

/* Crescent moon (hero, top-right) */
.moon {
  position: absolute;
  top: 2.6rem;
  right: 9%;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-light), var(--gold-pale));
  box-shadow: 0 0 30px rgba(242, 193, 78, 0.5);
}
.moon::after {
  content: '';
  position: absolute;
  top: -5px;
  right: 12px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--navy-deep);
}

.hero-content { position: relative; z-index: 2; max-width: 900px; margin: 0 auto; }

/* Glowing logo medallion */
.hero-medallion {
  position: relative;
  width: 150px;
  height: 150px;
  margin: 0 auto 1.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: float 6s ease-in-out infinite;
}
.hero-medallion::before {
  content: '';
  position: absolute;
  inset: -16px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(242, 193, 78, 0.4) 0%, transparent 70%);
}
.hero-medallion::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(242, 193, 78, 0.45);
}
.hero-medallion img { position: relative; height: 104px; width: auto; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5.5vw, 3.8rem);
  font-weight: 700;
  letter-spacing: 0.03em;
  background: linear-gradient(120deg, var(--gold-pale) 0%, var(--gold-light) 35%, #ffffff 60%, var(--gold-light) 85%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 1rem;
}

.hero .tagline {
  font-family: var(--font-body);
  font-style: italic;
  font-size: clamp(1.25rem, 2.6vw, 1.7rem);
  color: #dbe6f5;
  margin-bottom: 2.4rem;
}

.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.85rem 2rem;
  border-radius: 999px;
  transition: transform 0.25s, box-shadow 0.25s, background 0.25s, color 0.25s;
  cursor: pointer;
  border: none;
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  color: var(--navy-deepest);
  box-shadow: 0 6px 22px rgba(217, 155, 43, 0.45);
}
.btn-gold:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(217, 155, 43, 0.6); color: var(--navy-deepest); }

.btn-outline {
  background: transparent;
  color: var(--gold-light);
  border: 2px solid var(--gold-light);
}
.btn-outline:hover { background: rgba(242, 193, 78, 0.12); transform: translateY(-3px); color: var(--gold-light); }

.btn-navy {
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  color: var(--white);
  box-shadow: 0 6px 22px rgba(22, 54, 92, 0.35);
}
.btn-navy:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(22, 54, 92, 0.5); color: var(--white); }

/* ---------- Sections ---------- */
.section { padding: 5rem 1.5rem; }
.section-inner { max-width: 1150px; margin: 0 auto; }

.section-alt { background: var(--parchment); }

.section-dark {
  background:
    radial-gradient(ellipse at 75% 20%, rgba(74, 128, 196, 0.25) 0%, transparent 55%),
    linear-gradient(160deg, var(--navy-deepest), var(--navy));
  color: #e8eef8;
}
.section-dark .section-title { color: var(--gold-light); }
.section-dark p { color: #cfdbec; }

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  color: var(--navy);
  text-align: center;
  margin-bottom: 0.8rem;
  letter-spacing: 0.03em;
}

.section-sub {
  text-align: center;
  font-style: italic;
  font-size: 1.22rem;
  color: #5a6b85;
  max-width: 720px;
  margin: 0 auto 3rem;
}

/* Ornamental divider */
.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  margin: 0.4rem auto 2.2rem;
  color: var(--gold);
  font-family: var(--font-body);
  font-size: 1.15rem;
  letter-spacing: 0.1em;
}
.ornament::before, .ornament::after {
  content: '';
  height: 1px;
  width: 80px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.ornament::after { background: linear-gradient(90deg, var(--gold), transparent); }

/* ---------- Cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.8rem;
}
.card-grid-wide { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

.card {
  background: var(--white);
  border: 1px solid rgba(217, 155, 43, 0.28);
  border-radius: var(--radius);
  padding: 2.2rem 1.8rem;
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lift);
  border-color: var(--gold);
}

/* Geometric icon: gold ring + rotated diamond */
.icon-orb {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 1.5px solid rgba(217, 155, 43, 0.55);
  background: radial-gradient(circle at 35% 30%, rgba(242, 193, 78, 0.25), rgba(10, 23, 48, 0.02));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
}
.icon-orb::before {
  content: '';
  width: 11px;
  height: 11px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  transform: rotate(45deg);
  border-radius: 2px;
}

.card h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--navy);
  margin-bottom: 0.7rem;
  letter-spacing: 0.02em;
}

.card p { font-size: 1.08rem; color: #44536d; line-height: 1.6; }

/* ---------- Testimonials ---------- */
.testimonial {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid rgba(217, 155, 43, 0.3);
  padding: 2.4rem 2rem 2rem;
  box-shadow: var(--shadow-soft);
  position: relative;
  transition: transform 0.3s, box-shadow 0.3s;
}
.testimonial:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }

.testimonial::before {
  content: '\201C';
  font-family: Georgia, serif;
  position: absolute;
  top: -0.6rem;
  left: 1.2rem;
  font-size: 5rem;
  line-height: 1;
  color: var(--gold-light);
  opacity: 0.85;
}

.testimonial blockquote {
  font-style: italic;
  font-size: 1.12rem;
  color: #3c4c68;
  margin-bottom: 1.3rem;
}

.testimonial .who {
  font-family: var(--font-ui);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--navy);
}
.testimonial .what {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  color: var(--gold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.testimonial .stars { color: var(--gold); font-size: 1rem; margin-bottom: 0.6rem; letter-spacing: 0.15em; }

/* ---------- Book cards ---------- */
.book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 2rem;
}

.book-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(217, 155, 43, 0.3);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s, box-shadow 0.3s;
}
.book-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lift); }

.book-cover {
  aspect-ratio: 2 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  text-align: center;
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 1.3rem;
  letter-spacing: 0.04em;
  line-height: 1.4;
  position: relative;
}
.book-cover small {
  display: block;
  font-family: var(--font-body);
  font-style: italic;
  font-size: 0.95rem;
  margin-top: 0.8rem;
  opacity: 0.85;
}
.book-cover::after {
  content: '';
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 6px;
  pointer-events: none;
}

.book-info { padding: 1.4rem 1.4rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.book-info h3 { font-family: var(--font-heading); font-size: 1.15rem; color: var(--navy); margin-bottom: 0.2rem; }
.book-info .author { font-style: italic; color: var(--gold); font-size: 1rem; margin-bottom: 0.6rem; }
.book-info p { font-size: 1rem; color: #44536d; margin-bottom: 1.1rem; flex: 1; line-height: 1.6; }
.book-info .btn { align-self: flex-start; padding: 0.6rem 1.4rem; font-size: 0.8rem; }

.badge {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(43, 93, 158, 0.1);
  color: var(--blue);
  border: 1px solid rgba(43, 93, 158, 0.3);
  border-radius: 999px;
  padding: 0.2rem 0.7rem;
  margin-bottom: 0.7rem;
  align-self: flex-start;
}

/* ---------- Blog ---------- */
.post-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid rgba(217, 155, 43, 0.28);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s, box-shadow 0.3s;
}
.post-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lift); }

.post-banner {
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.post-initial {
  font-family: var(--font-display);
  font-size: 3.4rem;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.post-body { padding: 1.6rem 1.6rem 1.8rem; display: flex; flex-direction: column; flex: 1; }
.post-body .meta {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}
.post-body h3 { font-family: var(--font-heading); font-size: 1.25rem; color: var(--navy); margin-bottom: 0.6rem; }
.post-body p { font-size: 1.05rem; color: #44536d; flex: 1; margin-bottom: 1rem; line-height: 1.6; }
.read-more {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--blue);
}
.read-more:hover { color: var(--gold); }

/* ---------- Prose / About ---------- */
.prose { max-width: 780px; margin: 0 auto; }
.prose p { margin-bottom: 1.4rem; font-size: 1.22rem; }
.prose .lead {
  font-size: 1.45rem;
  font-style: italic;
  color: var(--navy);
  text-align: center;
  margin-bottom: 2rem;
}
.prose h2 {
  font-family: var(--font-heading);
  color: var(--navy);
  font-size: 1.6rem;
  margin: 2.4rem 0 1rem;
}

/* ---------- Articles & service detail pages ---------- */
.article-meta {
  font-family: var(--font-ui) !important;
  font-size: 0.78rem !important;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold) !important;
  font-style: normal !important;
  margin-bottom: 0.8rem;
}

.article-prose p { line-height: 1.75; }
.article-prose h2 { margin-top: 2.6rem; }
.article-prose a { border-bottom: 1px solid rgba(217, 155, 43, 0.45); }
.article-prose a:hover { color: var(--gold); }

.back-link {
  margin-top: 3rem;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(217, 155, 43, 0.3);
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.back-link a { border-bottom: none; }

/* "Learn more" link on service cards */
.card-link {
  display: inline-block;
  margin-top: 1rem;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--blue);
}
.card-link:hover { color: var(--gold); }

/* Real cover images inside book cards (replaces gradient once added) */
.book-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Contact ---------- */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: start;
}

.contact-info h3 {
  font-family: var(--font-heading);
  color: var(--navy);
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.contact-line {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}
.contact-line .ci { font-size: 1.4rem; color: var(--gold); }

.contact-form {
  background: var(--white);
  border: 1px solid rgba(217, 155, 43, 0.3);
  border-radius: var(--radius);
  padding: 2.2rem;
  box-shadow: var(--shadow-soft);
}

.form-row { margin-bottom: 1.2rem; }

.form-row label {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 0.4rem;
}

.form-row input, .form-row select, .form-row textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1.1rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid #cdd8e6;
  border-radius: 8px;
  background: var(--cream);
  color: var(--ink);
  transition: border-color 0.25s, box-shadow 0.25s;
}

.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(242, 193, 78, 0.25);
}

textarea { resize: vertical; min-height: 140px; }

.form-note { font-size: 0.95rem; font-style: italic; color: #6b7a92; margin-top: 0.8rem; }

/* ---------- CTA band ---------- */
.cta-band {
  text-align: center;
  padding: 4.6rem 1.5rem;
  background:
    radial-gradient(ellipse at 50% 120%, rgba(217, 155, 43, 0.25) 0%, transparent 60%),
    linear-gradient(160deg, var(--navy-deepest), var(--navy));
  color: var(--white);
}
.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  color: var(--gold-light);
  margin-bottom: 0.8rem;
}
.cta-band p { font-style: italic; font-size: 1.3rem; color: #cfdbec; margin-bottom: 2rem; }

/* ---------- MIST featured banner (Home) ---------- */
.mist-banner {
  position: relative;
  overflow: hidden;
  color: #e6e2f5;
  padding: 4.5rem 1.5rem;
  background:
    radial-gradient(ellipse at 15% 20%, rgba(122, 92, 255, 0.22) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 80%, rgba(45, 212, 191, 0.12) 0%, transparent 55%),
    linear-gradient(160deg, #050710 0%, #0b0d1e 55%, #141031 100%);
}
.mist-banner::before {
  content: '';
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    radial-gradient(1.5px 1.5px at 18% 35%, rgba(255,255,255,0.8) 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 42% 75%, rgba(200,190,255,0.75) 50%, transparent 51%),
    radial-gradient(1.8px 1.8px at 66% 20%, rgba(242,193,78,0.8) 50%, transparent 51%),
    radial-gradient(1.1px 1.1px at 88% 55%, rgba(255,255,255,0.65) 50%, transparent 51%),
    radial-gradient(1.4px 1.4px at 30% 15%, rgba(255,255,255,0.7) 50%, transparent 51%);
  animation: twinkle 6s ease-in-out infinite alternate;
}
.mist-banner::after {
  content: '';
  position: absolute;
  bottom: -40%; left: -10%; right: -10%; height: 90%;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 100%, rgba(180, 170, 220, 0.16) 0%, transparent 65%);
  filter: blur(18px);
  animation: mistDrift 9s ease-in-out infinite alternate;
}
@keyframes mistDrift {
  0%   { transform: translateX(-4%); opacity: 0.7; }
  100% { transform: translateX(4%); opacity: 1; }
}
.mist-banner-inner {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}
.mist-banner .kicker {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #b3a6e8;
  margin-bottom: 0.9rem;
}
.mist-banner h2 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4rem);
  letter-spacing: 0.22em;
  padding-left: 0.22em; /* optically recenter tracked text */
  background: linear-gradient(120deg, #cfc4f5 0%, #ffffff 40%, #8f7bd8 75%, #cfc4f5 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 0.5rem;
  text-shadow: none;
}
.mist-banner .mist-sub {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 1.25rem;
  color: #c3bce0;
  margin-bottom: 0.4rem;
}
.mist-banner .mist-author {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9a90c4;
  margin-bottom: 1.8rem;
}
.mist-badge {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-light);
  border: 1px solid rgba(242, 193, 78, 0.55);
  border-radius: 999px;
  padding: 0.3rem 0.95rem;
  margin-bottom: 1.4rem;
  background: rgba(242, 193, 78, 0.07);
}
.btn-mist {
  background: linear-gradient(135deg, #7a5cff 0%, #a78bfa 100%);
  color: #0b0716;
  box-shadow: 0 6px 24px rgba(122, 92, 255, 0.45);
}
.btn-mist:hover { transform: translateY(-3px); box-shadow: 0 10px 32px rgba(122, 92, 255, 0.6); color: #0b0716; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-deepest);
  color: #9fb2cc;
  padding: 3.4rem 1.6rem 1.5rem;
  border-top: 1px solid rgba(242, 193, 78, 0.3);
}

.footer-inner {
  max-width: 1150px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.4rem;
}

.footer-inner img { height: 56px; margin-bottom: 0.9rem; }

.footer-inner h4 {
  font-family: var(--font-heading);
  color: var(--gold-light);
  font-size: 1rem;
  letter-spacing: 0.05em;
  margin-bottom: 0.9rem;
}

.footer-inner ul { list-style: none; }
.footer-inner li { margin-bottom: 0.45rem; }
.footer-inner a { color: #b9c9df; font-size: 1rem; }
.footer-inner a:hover { color: var(--gold-light); }

.footer-tagline { font-style: italic; font-size: 1.05rem; color: #8fa5c2; }

.footer-bottom {
  max-width: 1150px;
  margin: 2.5rem auto 0;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(159, 178, 204, 0.2);
  text-align: center;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  color: #7189a8;
}

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 4.2rem 1.5rem;
  background:
    radial-gradient(ellipse at 30% 0%, rgba(74, 128, 196, 0.3) 0%, transparent 55%),
    linear-gradient(160deg, var(--navy-deepest) 0%, var(--navy) 100%);
  color: var(--white);
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    radial-gradient(1.5px 1.5px at 15% 30%, rgba(255,255,255,0.85) 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 40% 70%, rgba(248,227,176,0.8) 50%, transparent 51%),
    radial-gradient(1.8px 1.8px at 68% 25%, rgba(242,193,78,0.85) 50%, transparent 51%),
    radial-gradient(1.1px 1.1px at 85% 55%, rgba(255,255,255,0.7) 50%, transparent 51%);
  animation: twinkle 6s ease-in-out infinite alternate;
}
.page-hero h1 {
  position: relative;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3rem);
  color: var(--gold-light);
  letter-spacing: 0.03em;
  margin-bottom: 0.6rem;
}
.page-hero p {
  position: relative;
  font-style: italic;
  font-size: 1.3rem;
  color: #d5e1f2;
  max-width: 700px;
  margin: 0 auto;
}

/* ---------- Reveal on scroll (with per-card stagger) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

.card-grid > .reveal:nth-child(2), .book-grid > .reveal:nth-child(2) { transition-delay: 0.06s; }
.card-grid > .reveal:nth-child(3), .book-grid > .reveal:nth-child(3) { transition-delay: 0.12s; }
.card-grid > .reveal:nth-child(4), .book-grid > .reveal:nth-child(4) { transition-delay: 0.18s; }
.card-grid > .reveal:nth-child(5), .book-grid > .reveal:nth-child(5) { transition-delay: 0.24s; }
.card-grid > .reveal:nth-child(6), .book-grid > .reveal:nth-child(6) { transition-delay: 0.3s; }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .nav-burger { display: block; }
  .header-inner > .lang-toggle { display: none; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--navy-deepest);
    border-top: 1px solid rgba(242, 193, 78, 0.3);
    border-bottom: 1px solid rgba(242, 193, 78, 0.35);
    padding: 0.6rem 1.2rem 1.1rem;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav a { display: block; padding: 0.65rem 0.4rem; font-size: 0.85rem; letter-spacing: 0.04em; }
  .main-nav a.active { background: none; box-shadow: none; }
  .main-nav .lang-toggle { display: flex; margin: 0.8rem 0 0 0.4rem; width: fit-content; }
}

@media (max-width: 860px) {
  .contact-wrap { grid-template-columns: 1fr; }
}

@media (max-width: 780px) {
  .footer-inner { grid-template-columns: 1fr; text-align: center; }
  .footer-inner img { margin: 0 auto 0.9rem; }
}
