/* HQControl Bookstore — Apple Books-inspired design system */

/* ── Reset & Base ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --color-bg: #ffffff;
  --color-bg-alt: #f5f5f7;
  --color-bg-card: #ffffff;
  --color-bg-hero: #1d1d1f;
  --color-text: #1d1d1f;
  --color-text-secondary: #6e6e73;
  --color-text-inverse: #f5f5f7;
  --color-accent: #0071e3;
  --color-accent-hover: #0077ed;
  --color-green: #24766f;
  --color-green-light: #e8f5f3;
  --color-border: #d2d2d7;
  --color-border-light: #e8e8ed;
  --color-tag-bg: #f0f0f5;
  --shadow-card: 0 2px 12px rgba(0,0,0,.08);
  --shadow-card-hover: 0 8px 30px rgba(0,0,0,.14);
  --shadow-nav: 0 1px 3px rgba(0,0,0,.06);
  --shadow-cover: 0 12px 40px rgba(0,0,0,.25);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 18px;
  --max-width: 1200px;
  --nav-height: 52px;
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-serif: Georgia, "Times New Roman", serif;
  --font-display: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { display: block; max-width: 100%; }
a { color: var(--color-accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Typography ───────────────────────────────────────────────── */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); letter-spacing: -.01em; }
h3 { font-size: 1.15rem; }
h4 { font-size: .95rem; font-weight: 500; }

/* ── Utility ──────────────────────────────────────────────────── */
.container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 clamp(1rem, 4vw, 3rem); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.section-label { font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--color-text-secondary); margin-bottom: .5rem; }
.section-heading { margin-bottom: 1.5rem; }
.section-heading h2 { margin-bottom: .35rem; }
.section-heading p { color: var(--color-text-secondary); font-size: 1.05rem; max-width: 42rem; }
.page-header {
  padding: clamp(4rem, 10vw, 7rem) 0 clamp(2rem, 5vw, 3rem);
  background: var(--color-bg-alt);
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute; top: -50%; right: -10%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(36,118,111,.06) 0%, transparent 70%);
  pointer-events: none;
}
.page-header h1 { margin-bottom: .5rem; position: relative; }
.page-header p { color: var(--color-text-secondary); font-size: 1.1rem; max-width: 48rem; position: relative; }

/* ── Navigation ───────────────────────────────────────────────── */
.site-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.88);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--color-border-light);
  height: var(--nav-height);
}
.site-nav .container { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.nav-brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--color-text); font-weight: 600; font-size: .95rem; white-space: nowrap; }
.nav-brand img { height: 28px; width: auto; }
.nav-brand .nav-brand-sub { font-size: .68rem; font-weight: 400; color: var(--color-text-secondary); display: block; line-height: 1.2; }
.nav-links { display: flex; gap: 1.5rem; align-items: center; list-style: none; }
.nav-links a { font-size: .82rem; color: var(--color-text-secondary); transition: color .15s; }
.nav-links a:hover { color: var(--color-text); text-decoration: none; }
.nav-links a.active { color: var(--color-text); font-weight: 500; }
.nav-search { display: flex; align-items: center; gap: .5rem; }
.nav-search input {
  width: 200px; padding: .45rem .75rem .45rem 2rem;
  border: 1px solid var(--color-border); border-radius: 20px;
  font-size: .82rem; background: var(--color-bg-alt);
  transition: width .25s, border-color .2s;
}
.nav-search input:focus { outline: none; border-color: var(--color-accent); width: 260px; }
.nav-search { position: relative; }
.nav-search svg { position: absolute; left: .65rem; width: 14px; height: 14px; color: var(--color-text-secondary); pointer-events: none; }

/* Mobile hamburger */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: .25rem; }
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--color-text); margin: 4px 0; border-radius: 1px; transition: .2s; }

@media (max-width: 860px) {
  .nav-links, .nav-search { display: none; }
  .nav-toggle { display: block; }
  .site-nav.open .nav-links {
    display: flex; flex-direction: column; position: absolute; top: var(--nav-height); left: 0; right: 0;
    background: rgba(255,255,255,.97); backdrop-filter: blur(20px);
    padding: 1rem 1.5rem; gap: 1rem; border-bottom: 1px solid var(--color-border-light);
  }
  .site-nav.open .nav-search { display: flex; position: absolute; top: calc(var(--nav-height) + 180px); left: 0; right: 0; padding: 0 1.5rem 1rem; background: rgba(255,255,255,.97); }
  .site-nav.open .nav-search input { width: 100%; }
}

/* ── Hero ─────────────────────────────────────────────────────── */
.hero {
  position: relative;
  background: var(--color-bg-hero);
  color: var(--color-text-inverse);
  padding: clamp(4rem, 12vw, 8rem) 0 clamp(3.5rem, 10vw, 7rem);
  text-align: center;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url('../images/backgrounds/hero-construction.jpg') center/cover no-repeat;
  opacity: .18;
  filter: saturate(.6);
}
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(29,29,31,.4) 0%, rgba(29,29,31,.85) 50%, rgba(29,29,31,.97) 100%);
}
.hero .container { position: relative; z-index: 1; }
.hero h1 { color: #fff; margin-bottom: .75rem; }
.hero p { color: rgba(255,255,255,.72); font-size: clamp(1rem, 2.2vw, 1.25rem); max-width: 36rem; margin: 0 auto 1.5rem; line-height: 1.55; }
.hero-tagline { font-family: var(--font-serif); font-style: italic; font-size: 1.05rem; color: rgba(255,255,255,.55); margin-bottom: 2rem; }
.hero-actions { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }

/* ── Buttons ──────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .7rem 1.4rem; border-radius: 980px;
  font-size: .88rem; font-weight: 500; cursor: pointer;
  border: none; transition: background .15s, transform .1s, box-shadow .2s;
  text-decoration: none; white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--color-accent); color: #fff; box-shadow: 0 2px 8px rgba(0,113,227,.3); }
.btn-primary:hover { background: var(--color-accent-hover); text-decoration: none; box-shadow: 0 4px 14px rgba(0,113,227,.4); }
.btn-secondary { background: rgba(255,255,255,.15); color: #fff; border: 1px solid rgba(255,255,255,.25); }
.btn-secondary:hover { background: rgba(255,255,255,.25); text-decoration: none; }
.btn-outline { background: transparent; color: var(--color-text); border: 1px solid var(--color-border); }
.btn-outline:hover { background: var(--color-bg-alt); text-decoration: none; }
.btn-green { background: var(--color-green); color: #fff; }
.btn-green:hover { background: #1c5e58; text-decoration: none; }
.btn-sm { padding: .5rem 1rem; font-size: .8rem; }

/* ── Section spacing ──────────────────────────────────────────── */
.section { padding: clamp(3rem, 7vw, 5rem) 0; }
.section-alt { background: var(--color-bg-alt); }

/* ── Book Cards ───────────────────────────────────────────────── */
.book-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: clamp(1rem, 3vw, 1.5rem); }
.book-grid-wide { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

.book-card {
  background: var(--color-bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
  text-decoration: none;
  color: inherit;
}
.book-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-card-hover); text-decoration: none; }

/* ── Book Cover System ────────────────────────────────────────── */
.book-card-cover {
  aspect-ratio: 2/3;
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem 1.25rem;
  position: relative; overflow: hidden;
}
.book-card-cover .book-cover-title {
  font-family: var(--font-serif);
  color: #fff;
  font-size: .95rem;
  text-align: center;
  line-height: 1.35;
  position: relative;
  z-index: 2;
  text-shadow: 0 1px 3px rgba(0,0,0,.3);
}

/* Cover decorative elements */
.book-card-cover::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 20% 80%, rgba(255,255,255,.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(255,255,255,.05) 0%, transparent 40%);
  z-index: 1;
}
.book-card-cover::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 40%;
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,.3) 100%);
  z-index: 1;
}

/* Spine effect on covers */
.book-card-cover .book-spine {
  position: absolute; left: 0; top: 0; bottom: 0; width: 6px;
  background: rgba(0,0,0,.2);
  z-index: 3;
}

/* Cover title underline */
.book-card-cover .book-cover-title::after {
  content: '';
  display: block;
  width: 30px; height: 2px;
  background: rgba(255,255,255,.4);
  margin: .6rem auto 0;
}

/* Publisher mark on cover */
.book-card-cover .book-publisher {
  position: absolute; bottom: 12px; left: 0; right: 0;
  text-align: center;
  font-size: .55rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
  z-index: 3;
}

.book-card-body { padding: .85rem 1rem 1rem; }
.book-card-body h4 { font-size: .85rem; font-weight: 600; margin-bottom: .25rem; line-height: 1.3; }
.book-card-meta { font-size: .75rem; color: var(--color-text-secondary); margin-bottom: .5rem; }
.book-card-price { font-size: .88rem; font-weight: 600; color: var(--color-text); }
.book-card-series {
  display: inline-block; font-size: .65rem; font-weight: 600;
  background: var(--color-green-light); color: var(--color-green);
  padding: .15rem .5rem; border-radius: 4px; margin-bottom: .4rem;
}

/* ── Book Cover Colours — Rich gradients with texture ─────────── */
.cover-malaysia {
  background:
    linear-gradient(135deg, #0a2e2f 0%, #0f4f42 30%, #1a6b5a 60%, #24766f 100%);
}
.cover-malaysia::before {
  background:
    radial-gradient(ellipse at 30% 70%, rgba(36,218,186,.12) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 30%, rgba(255,255,255,.06) 0%, transparent 40%) !important;
}

.cover-singapore {
  background:
    linear-gradient(135deg, #5a1a1a 0%, #8b2d26 30%, #c0392b 60%, #e74c3c 100%);
}
.cover-singapore::before {
  background:
    radial-gradient(ellipse at 30% 70%, rgba(231,76,60,.15) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 30%, rgba(255,255,255,.06) 0%, transparent 40%) !important;
}

.cover-uae {
  background:
    linear-gradient(135deg, #0f2a4a 0%, #1a4a7a 30%, #2980b9 60%, #3498db 100%);
}
.cover-uae::before {
  background:
    radial-gradient(ellipse at 30% 70%, rgba(52,152,219,.12) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 30%, rgba(255,255,255,.06) 0%, transparent 40%) !important;
}

.cover-international {
  background:
    linear-gradient(135deg, #1a2530 0%, #2c3e50 30%, #34495e 60%, #4a6274 100%);
}
.cover-international::before {
  background:
    radial-gradient(ellipse at 30% 70%, rgba(74,98,116,.12) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 30%, rgba(255,255,255,.06) 0%, transparent 40%) !important;
}

.cover-uk {
  background:
    linear-gradient(135deg, #1a0f08 0%, #3d2015 30%, #6b3a2a 60%, #8b5a3a 100%);
}
.cover-uk::before {
  background:
    radial-gradient(ellipse at 30% 70%, rgba(139,90,58,.12) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 30%, rgba(255,255,255,.06) 0%, transparent 40%) !important;
}

.cover-saudi {
  background:
    linear-gradient(135deg, #0f3a0f 0%, #1a6b2a 30%, #27ae60 60%, #2ecc71 100%);
}
.cover-saudi::before {
  background:
    radial-gradient(ellipse at 30% 70%, rgba(46,204,113,.12) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 30%, rgba(255,255,255,.06) 0%, transparent 40%) !important;
}

/* ── Category / Axis Cards ────────────────────────────────────── */
.axis-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1rem; }
.axis-card {
  display: flex; align-items: center; gap: .75rem;
  padding: 1rem 1.15rem;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius);
  text-decoration: none; color: var(--color-text);
  transition: box-shadow .2s, border-color .2s, transform .2s;
}
.axis-card:hover { box-shadow: var(--shadow-card); border-color: var(--color-border); text-decoration: none; transform: translateY(-2px); }
.axis-card-icon {
  width: 44px; height: 44px; border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--color-bg-alt) 0%, #e8e8ed 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0,0,0,.06);
}
.axis-card h4 { font-size: .85rem; margin-bottom: .1rem; }
.axis-card p { font-size: .72rem; color: var(--color-text-secondary); }

/* ── Feature row ──────────────────────────────────────────────── */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; }
.feature-card {
  text-align: center; padding: 2rem 1.5rem;
  background: var(--color-bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--color-border-light);
  transition: box-shadow .2s, transform .2s;
}
.feature-card:hover { box-shadow: var(--shadow-card); transform: translateY(-2px); }
.feature-icon {
  width: 56px; height: 56px; margin: 0 auto 1rem;
  background: linear-gradient(135deg, var(--color-green-light) 0%, #d0ede8 100%);
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 12px rgba(36,118,111,.12);
}
.feature-card h3 { margin-bottom: .4rem; }
.feature-card p { color: var(--color-text-secondary); font-size: .9rem; }

/* ── Tags / Chips ─────────────────────────────────────────────── */
.tag {
  display: inline-block; padding: .2rem .6rem;
  background: var(--color-tag-bg); color: var(--color-text-secondary);
  border-radius: 6px; font-size: .72rem; font-weight: 500;
  text-decoration: none; transition: background .15s, transform .1s;
}
.tag:hover { background: #e4e4ea; text-decoration: none; transform: scale(1.02); }
.tag-active { background: var(--color-accent); color: #fff; }
.tag-group { display: flex; flex-wrap: wrap; gap: .4rem; }

/* ── Book detail page ─────────────────────────────────────────── */
.book-detail { display: grid; grid-template-columns: 280px 1fr; gap: 3rem; align-items: start; }
.book-cover-large {
  aspect-ratio: 2/3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-cover);
  transition: transform .3s, box-shadow .3s;
}
.book-cover-large:hover { transform: scale(1.02); box-shadow: 0 16px 50px rgba(0,0,0,.3); }
.book-info h1 { font-size: 1.8rem; margin-bottom: .35rem; }
.book-info .book-series-label { font-size: .85rem; color: var(--color-green); font-weight: 600; margin-bottom: .35rem; display: block; }
.book-meta-table { width: 100%; margin: 1.25rem 0; font-size: .88rem; }
.book-meta-table td { padding: .4rem 0; vertical-align: top; }
.book-meta-table td:first-child { color: var(--color-text-secondary); width: 160px; font-weight: 500; }
.book-price-box {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(135deg, #f8f9fa 0%, #f0f2f5 100%);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius);
  margin: 1.25rem 0;
}
.book-price-box .price { font-size: 1.5rem; font-weight: 700; }
.book-price-box .price-note { font-size: .8rem; color: var(--color-text-secondary); }
.licence-options { display: flex; gap: .5rem; flex-wrap: wrap; margin: .75rem 0; }
.licence-option {
  flex: 1; min-width: 140px;
  padding: .75rem 1rem;
  border: 2px solid var(--color-border-light);
  border-radius: var(--radius-sm);
  cursor: pointer; text-align: center;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.licence-option:hover, .licence-option.selected {
  border-color: var(--color-accent);
  background: rgba(0,113,227,.04);
  box-shadow: 0 2px 8px rgba(0,113,227,.1);
}
.licence-option h4 { font-size: .8rem; margin-bottom: .2rem; }
.licence-option .licence-price { font-size: 1.1rem; font-weight: 700; }
.licence-option .licence-desc { font-size: .7rem; color: var(--color-text-secondary); }
.book-synopsis { margin: 1.5rem 0; line-height: 1.7; color: #333; }
.book-synopsis h3 { margin-bottom: .5rem; }
.book-toc { margin: 1.5rem 0; }
.book-toc h3 { margin-bottom: .5rem; }
.book-toc ol { padding-left: 1.25rem; }
.book-toc li { padding: .3rem 0; font-size: .9rem; color: var(--color-text-secondary); }
.book-toc li strong { color: var(--color-text); }

@media (max-width: 700px) {
  .book-detail { grid-template-columns: 1fr; }
  .book-cover-large { max-width: 220px; margin: 0 auto; }
}

/* ── Filter bar ───────────────────────────────────────────────── */
.filter-bar {
  display: flex; flex-wrap: wrap; gap: .5rem; padding: 1rem 0;
  border-bottom: 1px solid var(--color-border-light);
  margin-bottom: 1.5rem;
}
.filter-group { display: flex; flex-wrap: wrap; gap: .35rem; }
.filter-group-label { font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--color-text-secondary); padding: .35rem .5rem 0; }

/* ── Footer ───────────────────────────────────────────────────── */
.site-footer {
  background: var(--color-bg-hero);
  color: rgba(255,255,255,.65);
  padding: clamp(2.5rem, 6vw, 4rem) 0 1.5rem;
  position: relative;
  overflow: hidden;
}
.site-footer::before {
  content: '';
  position: absolute; top: -100px; right: -50px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(36,118,111,.08) 0%, transparent 70%);
  pointer-events: none;
}
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 2rem; margin-bottom: 2rem; position: relative; }
.footer-col h4 { color: #fff; font-size: .82rem; font-weight: 600; margin-bottom: .75rem; }
.footer-col a { display: block; font-size: .78rem; color: rgba(255,255,255,.55); padding: .2rem 0; transition: color .15s; }
.footer-col a:hover { color: #fff; text-decoration: none; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 1rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; font-size: .72rem; position: relative; }
.footer-bottom a { color: rgba(255,255,255,.45); }

/* ── Breadcrumb ───────────────────────────────────────────────── */
.breadcrumb { display: flex; gap: .4rem; font-size: .78rem; color: var(--color-text-secondary); padding: .75rem 0; flex-wrap: wrap; }
.breadcrumb a { color: var(--color-text-secondary); }
.breadcrumb a:hover { color: var(--color-text); }
.breadcrumb .sep { color: var(--color-border); }

/* ── Table (legal/policy) ─────────────────────────────────────── */
.content-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.content-table th, .content-table td { padding: .6rem .75rem; border-bottom: 1px solid var(--color-border-light); text-align: left; }
.content-table th { font-weight: 600; background: var(--color-bg-alt); }
.content-table tr:hover { background: rgba(0,0,0,.015); }

/* ── CTA Banner ───────────────────────────────────────────────── */
.cta-banner {
  text-align: center;
  padding: clamp(3.5rem, 8vw, 6rem) clamp(1.5rem, 5vw, 3rem);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute; inset: 0;
  background: url('../images/backgrounds/cta-bg.jpg') center/cover no-repeat;
  opacity: .15;
  filter: saturate(.5);
}
.cta-banner::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(29,58,74,.92) 0%, rgba(42,90,94,.88) 50%, rgba(26,74,58,.92) 100%);
}
.cta-banner .container { position: relative; z-index: 1; }
.cta-banner h2 { color: #fff; margin-bottom: .5rem; }
.cta-banner p { color: rgba(255,255,255,.7); margin: 0 auto 1.5rem; max-width: 36rem; }

/* ── Scroll row (horizontal) ──────────────────────────────────── */
.scroll-row {
  display: flex; gap: clamp(.75rem, 2vw, 1.25rem);
  overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: .5rem;
  -webkit-overflow-scrolling: touch;
}
.scroll-row::-webkit-scrollbar { height: 4px; }
.scroll-row::-webkit-scrollbar-track { background: transparent; }
.scroll-row::-webkit-scrollbar-thumb { background: var(--color-border); border-radius: 2px; }
.scroll-row .book-card { flex: 0 0 180px; scroll-snap-align: start; }
.scroll-row .book-card-cover { min-height: 250px; }

/* ── Pages list ───────────────────────────────────────────────── */
.pages-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.25rem; }
.page-card {
  display: block; padding: 1.5rem;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius);
  text-decoration: none; color: var(--color-text);
  transition: box-shadow .2s, border-color .2s, transform .2s;
}
.page-card:hover { box-shadow: var(--shadow-card); border-color: var(--color-border); text-decoration: none; transform: translateY(-2px); }
.page-card h3 { margin-bottom: .35rem; font-size: 1rem; }
.page-card p { font-size: .85rem; color: var(--color-text-secondary); line-height: 1.5; }

/* ── Resource cards ───────────────────────────────────────────── */
.resource-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.25rem; }
.resource-card {
  padding: 1.25rem;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius);
  background: var(--color-bg-card);
  transition: box-shadow .2s, transform .2s;
}
.resource-card:hover { box-shadow: var(--shadow-card); transform: translateY(-2px); }
.resource-card h4 { margin-bottom: .35rem; }
.resource-card p { font-size: .85rem; color: var(--color-text-secondary); margin-bottom: .75rem; }
.resource-tag { font-size: .65rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--color-green); margin-bottom: .35rem; display: block; }

/* ── Accordion ────────────────────────────────────────────────── */
.accordion-item { border-bottom: 1px solid var(--color-border-light); }
.accordion-trigger {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  padding: 1rem 0; background: none; border: none; cursor: pointer;
  font-size: .95rem; font-weight: 500; text-align: left; font-family: inherit; color: var(--color-text);
  transition: color .15s;
}
.accordion-trigger:hover { color: var(--color-accent); }
.accordion-trigger .chevron { transition: transform .2s; font-size: .8rem; color: var(--color-text-secondary); }
.accordion-trigger[aria-expanded="true"] .chevron { transform: rotate(180deg); }
.accordion-body { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.accordion-body-inner { padding: 0 0 1rem; font-size: .88rem; line-height: 1.65; color: var(--color-text-secondary); }

/* ── Decorative section dividers ──────────────────────────────── */
.section-divider {
  width: 40px; height: 3px;
  background: linear-gradient(90deg, var(--color-green) 0%, var(--color-accent) 100%);
  border-radius: 2px;
  margin: 0 auto 1.5rem;
}

/* ── Stats / social proof strip ───────────────────────────────── */
.stats-strip {
  display: flex; justify-content: center; gap: 3rem; flex-wrap: wrap;
  padding: 2rem 0;
  border-top: 1px solid var(--color-border-light);
  border-bottom: 1px solid var(--color-border-light);
  margin: 2rem 0;
}
.stat-item { text-align: center; }
.stat-number { font-size: 2rem; font-weight: 700; color: var(--color-green); line-height: 1; }
.stat-label { font-size: .78rem; color: var(--color-text-secondary); margin-top: .25rem; }

/* ── Under Construction badge ─────────────────────────────────── */
.under-construction {
  position: relative;
  opacity: .55;
  pointer-events: none;
}
.under-construction::after {
  content: 'Under Construction';
  position: absolute; top: 8px; right: 8px;
  background: #f59e0b;
  color: #fff;
  font-size: .55rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: .2rem .5rem;
  border-radius: 4px;
  z-index: 5;
  box-shadow: 0 1px 4px rgba(0,0,0,.2);
}
.under-construction-tag {
  display: inline-block; padding: .2rem .6rem;
  background: #fef3c7; color: #92400e;
  border-radius: 6px; font-size: .72rem; font-weight: 500;
  text-decoration: none;
  opacity: .6;
}
.section-coming-soon {
  padding: 2rem 1.5rem;
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border: 1px dashed #f59e0b;
  border-radius: var(--radius);
  text-align: center;
}
.section-coming-soon h3 { color: #92400e; margin-bottom: .35rem; }
.section-coming-soon p { color: #a16207; font-size: .9rem; }
