/* ─── TOKENS ─────────────────────────────────────────────── */
:root {
  --blue-dark:   #0F2A5E;
  --blue-mid:    #1A3F7A;
  --blue-light:  #2558A8;
  --gold:        #F0C040;
  --gold-dark:   #C9960A;
  --white:       #FFFFFF;
  --off-white:   #F6F8FF;
  --text-dark:   #1A1A2E;
  --text-mid:    #3A3A5C;
  --text-light:  #6B7280;
  --border:      #D1D9F0;
  --shadow-sm:   0 2px 8px rgba(15,42,94,.12);
  --shadow-md:   0 6px 24px rgba(15,42,94,.18);
  --shadow-lg:   0 16px 48px rgba(15,42,94,.24);
  --radius:      12px;
  --nav-h:       72px;
}

/* ─── RESET ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Open Sans', sans-serif;
  color: var(--text-dark);
  background: var(--white);
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul { list-style: none; }
kbd {
  display: inline-block;
  padding: 2px 6px;
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: .8rem;
  font-family: monospace;
}

/* ─── BUTTONS ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-family: 'Open Sans', sans-serif;
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .22s ease;
  border: 2px solid transparent;
}
.btn-gold {
  background: var(--gold);
  color: var(--blue-dark);
  border-color: var(--gold);
}
.btn-gold:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(240,192,64,.4);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.6);
}
.btn-outline:hover {
  background: rgba(255,255,255,.12);
  border-color: var(--white);
  transform: translateY(-2px);
}

/* ─── NAVBAR ─────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: transparent;
  transition: background .3s ease, box-shadow .3s ease;
}
.navbar.scrolled {
  background: var(--blue-dark);
  box-shadow: var(--shadow-md);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-brand {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  flex-shrink: 0;
}
.brand-main {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: .5px;
}
.brand-sub {
  font-size: .72rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.nav-links {
  display: flex;
  gap: 6px;
  margin-left: auto;
}
.nav-links a {
  padding: 8px 16px;
  border-radius: 50px;
  color: rgba(255,255,255,.88);
  font-size: .9rem;
  font-weight: 600;
  transition: all .2s;
}
.nav-links a:hover {
  color: var(--gold);
  background: rgba(255,255,255,.08);
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
}

/* ─── HERO ───────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  transform: scale(1.05);
  filter: blur(3px);
  transition: transform 6s ease;
}
.hero:hover .hero-bg { transform: scale(1.08); }
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(10,25,60,.85) 0%,
    rgba(15,42,94,.75) 50%,
    rgba(8,18,45,.9) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 120px 24px 80px;
  max-width: 780px;
}
.hero-eyebrow {
  display: inline-block;
  background: var(--gold);
  color: var(--blue-dark);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: 50px;
  margin-bottom: 24px;
}
.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.8rem, 7vw, 5rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 20px;
}
.hero-title em {
  font-style: italic;
  color: var(--gold);
}
.hero-sub {
  color: rgba(255,255,255,.82);
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  line-height: 1.7;
  margin-bottom: 40px;
}
.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255,255,255,.6);
  font-size: 1.2rem;
  animation: bounce 2s ease infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}


/* ─── SECTION HEADERS ────────────────────────────────────── */
.section-header {
  text-align: center;
  margin-bottom: 48px;
}
.section-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 12px;
  position: relative;
  display: inline-block;
}
.section-header h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--gold);
  border-radius: 2px;
  margin: 12px auto 0;
}
.section-header p {
  color: var(--text-light);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto;
}
.section-header.light h2 { color: var(--white); }
.section-header.light h2::after { background: var(--gold); }
.section-header.light p { color: rgba(255,255,255,.75); }

/* ─── FLIPBOOK SECTION ───────────────────────────────────── */
.flipbook-section {
  padding: 80px 24px;
  background: var(--off-white);
}
.flipbook-outer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 28px;
}
.flipbook-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--blue-dark);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.flipbook-container::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(26,63,122,.6) 0%, rgba(10,25,60,1) 100%);
  pointer-events: none;
}
#flipbook {
  position: relative;
  z-index: 1;
}
.flip-arrow {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--white);
  color: var(--blue-mid);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s;
  box-shadow: var(--shadow-sm);
}
.flip-arrow:hover {
  background: var(--blue-mid);
  color: var(--white);
  border-color: var(--blue-mid);
  transform: scale(1.08);
  box-shadow: var(--shadow-md);
}
.flip-arrow:disabled {
  opacity: .35;
  cursor: default;
  transform: none;
}
.flipbook-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.ctrl-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: 50px;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--blue-mid);
  font-size: .88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
  box-shadow: var(--shadow-sm);
}
.ctrl-btn:hover {
  background: var(--blue-mid);
  color: var(--white);
  border-color: var(--blue-mid);
}
.page-counter {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--blue-dark);
  color: var(--white);
  padding: 9px 20px;
  border-radius: 50px;
  font-size: .9rem;
  font-weight: 600;
  min-width: 130px;
  justify-content: center;
}
.page-sep { color: var(--gold); }
.flipbook-hint {
  text-align: center;
  color: var(--text-light);
  font-size: .84rem;
  margin-top: 16px;
}
.flipbook-hint i { margin-right: 4px; }

/* ─── EXPLORE SECTION ────────────────────────────────────── */
.explore-section {
  padding: 80px 24px;
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue-mid) 100%);
}
.categories-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.cat-card {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: all .25s ease;
  backdrop-filter: blur(4px);
}
.cat-card:hover {
  background: rgba(255,255,255,.13);
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,.3);
  border-color: rgba(240,192,64,.4);
}
.cat-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.4rem;
  color: var(--gold);
  transition: background .2s;
}
.cat-card:hover .cat-icon {
  background: var(--gold);
  color: var(--blue-dark);
}
.cat-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  color: var(--white);
  margin-bottom: 12px;
}
.cat-card p {
  color: rgba(255,255,255,.7);
  font-size: .9rem;
  line-height: 1.7;
}

/* ─── CTA BAND ───────────────────────────────────────────── */
.cta-band {
  background: var(--gold);
  padding: 40px 24px;
}
.cta-band-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-band-text h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--blue-dark);
  margin-bottom: 6px;
}
.cta-band-text p {
  color: rgba(15,42,94,.75);
  font-size: .95rem;
}
.cta-band .btn-gold {
  background: var(--blue-dark);
  color: var(--white);
  border-color: var(--blue-dark);
  flex-shrink: 0;
}
.cta-band .btn-gold:hover {
  background: var(--blue-mid);
  border-color: var(--blue-mid);
  box-shadow: 0 8px 24px rgba(15,42,94,.35);
}

/* ─── FOOTER ─────────────────────────────────────────────── */
.site-footer {
  background: var(--text-dark);
  color: rgba(255,255,255,.75);
  padding-top: 60px;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px 48px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
}
.footer-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  color: var(--white);
  margin-bottom: 4px;
}
.footer-edition {
  color: var(--gold);
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 10px;
}
.footer-pub { font-size: .88rem; }
.footer-pub strong { color: var(--white); }
.footer-links h4,
.footer-contact h4 {
  color: var(--white);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-links ul { display: flex; flex-direction: column; gap: 8px; }
.footer-links a {
  color: rgba(255,255,255,.65);
  font-size: .9rem;
  transition: color .2s;
}
.footer-links a:hover { color: var(--gold); }
.footer-contact p {
  font-size: .9rem;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-contact i { color: var(--gold); width: 14px; }
.footer-contact a { color: rgba(255,255,255,.65); transition: color .2s; }
.footer-contact a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 20px 24px;
  text-align: center;
  font-size: .82rem;
  color: rgba(255,255,255,.35);
}

/* ─── LIGHTBOX ───────────────────────────────────────────── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,.92);
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: fadeIn .2s ease;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 100%;
  max-height: 92vh;
  border-radius: 4px;
  box-shadow: 0 0 80px rgba(0,0,0,.8);
}
.lightbox-close {
  position: absolute;
  top: 20px; right: 24px;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.6rem;
  cursor: pointer;
  opacity: .7;
  transition: opacity .2s;
  z-index: 2;
}
.lightbox-close:hover { opacity: 1; }
.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,.12);
  border: 1.5px solid rgba(255,255,255,.25);
  color: var(--white);
  font-size: 1.3rem;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
  z-index: 2;
}
.lightbox-arrow:hover { background: rgba(255,255,255,.28); }
.lightbox-arrow:disabled { opacity: .2; cursor: default; }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
.lightbox-counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,.55);
  color: var(--white);
  font-size: .85rem;
  font-weight: 600;
  padding: 6px 18px;
  border-radius: 50px;
  pointer-events: none;
  white-space: nowrap;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ─── ZOOM BUTTON ────────────────────────────────────────── */
.ctrl-zoom {
  background: var(--blue-mid);
  color: var(--white);
  border-color: var(--blue-mid);
  margin-left: 8px;
}
.ctrl-zoom:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
}
.ctrl-icon { min-width: 42px; justify-content: center; }

/* ─── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 900px) {
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--blue-dark);
    padding: 16px;
    gap: 4px;
    box-shadow: var(--shadow-md);
    z-index: 999;
  }
  .nav-links.open a { padding: 12px 20px; border-radius: 8px; }
  .flip-arrow { display: none; }
  .flipbook-outer { gap: 0; }
  .categories-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .cta-band-inner { flex-direction: column; text-align: center; }
  .strip-item { padding: 14px 18px; font-size: .8rem; }
  .flipbook-controls { gap: 8px; }
  .ctrl-btn { padding: 9px 14px; font-size: .82rem; }
  .zoom-label { display: none; }
}

@media (max-width: 480px) {
  :root { --nav-h: 60px; }

  /* Hero */
  .hero-cta { flex-direction: column; align-items: center; }
  .hero-cta .btn { width: 100%; max-width: 280px; justify-content: center; }

  /* Intro strip — 2-per-row grid */
  .intro-strip {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
  }
  .strip-item {
    border-right: 1px solid rgba(255,255,255,.1);
    border-bottom: 1px solid rgba(255,255,255,.1);
    justify-content: center;
    font-size: .78rem;
    padding: 14px 8px;
  }
  .strip-item:nth-child(even) { border-right: none; }
  /* 5th item spans both columns */
  .strip-item:last-child {
    grid-column: 1 / -1;
    border-right: none;
    border-bottom: none;
  }

  /* Flipbook section */
  .flipbook-section { padding: 48px 0 56px; }
  .section-header { padding: 0 16px; }
  .flipbook-container {
    padding: 8px;
    border-radius: 8px;
    width: 100%;
  }
  .flipbook-outer { width: 100%; }

  /* Controls — wrap into two rows */
  .flipbook-controls {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    padding: 0 12px;
  }
  .ctrl-btn { padding: 9px 12px; font-size: .8rem; }
  .page-counter { order: -1; width: 100%; justify-content: center; margin-bottom: 4px; }
  .ctrl-zoom { margin-left: 0; }
  .flipbook-hint { font-size: .78rem; padding: 0 16px; }
  .flipbook-hint kbd { display: none; }

  /* Explore */
  .explore-section { padding: 56px 16px; }
  .cat-card { padding: 24px 20px; }

  /* CTA band */
  .cta-band { padding: 32px 16px; }
  .cta-band-text h3 { font-size: 1.25rem; }

  /* Footer */
  .footer-inner { padding: 0 16px 40px; }
  .footer-bottom { font-size: .78rem; }
}
