/* ============================================================
   Happy Island Books — Complete Redesign
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800;900&family=Open+Sans:ital,wght@0,400;0,500;0,600;1,400&display=swap');

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

:root {
  --yellow:  #FFD93D;
  --coral:   #FF6B6B;
  --teal:    #4ECDC4;
  --purple:  #7C3AED;
  --navy:    #1A1A2E;
  --cream:   #FFFBF0;
  --white:   #FFFFFF;
  --gray:    #6B7280;
  --light:   #F3F4F6;
  --gold:    #F59E0B;

  --font-head: 'Nunito', 'Trebuchet MS', Arial, sans-serif;
  --font-body: 'Open Sans', Arial, sans-serif;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 4px 24px rgba(0,0,0,0.10);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.16);
  --transition: 0.25s ease;
  --max: 1200px;
  --nav-h: 72px;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--navy);
  line-height: 1.7;
  font-size: 16px;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; }

/* ── Utility ─────────────────────────────────────────────── */
.container   { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.section     { padding: 80px 0; }
.section-sm  { padding: 48px 0; }
.text-center { text-align: center; }

h1,h2,h3,h4 {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.2;
  color: var(--navy);
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
p  { color: var(--gray); font-size: 1.02rem; }

.pill {
  display: inline-block;
  background: var(--yellow);
  color: var(--navy);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 14px;
}
.pill-teal   { background: var(--teal);   color: var(--white); }
.pill-coral  { background: var(--coral);  color: var(--white); }
.pill-purple { background: var(--purple); color: var(--white); }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 100px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-primary   { background: var(--coral);  color: var(--white); }
.btn-primary:hover { background: #e85555; }
.btn-yellow    { background: var(--yellow); color: var(--navy); }
.btn-yellow:hover { background: #f5cb2a; }
.btn-teal      { background: var(--teal);   color: var(--white); }
.btn-teal:hover { background: #3ab8b0; }
.btn-outline   { border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-outline-white { border-color: var(--white); color: var(--white); }
.btn-outline-white:hover { background: var(--white); color: var(--navy); }
.btn-amazon    { background: #FF9900; color: var(--navy); }
.btn-amazon:hover { background: #e58900; }
.btn-gold      { background: var(--gold); color: var(--white); }
.btn-gold:hover { background: #d97706; }
.btn-sm        { padding: 8px 18px; font-size: 0.85rem; }
.btn-lg        { padding: 16px 36px; font-size: 1.05rem; }

/* ── Navigation ──────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(255,251,240,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.07);
  z-index: 1000;
  transition: box-shadow var(--transition);
}
.nav.scrolled { box-shadow: var(--shadow); }

.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1.25rem;
  color: var(--navy);
}
.nav-logo img {
  width: 40px; height: 40px;
  border-radius: 10px;
  object-fit: cover;
}
.nav-logo-placeholder {
  width: 40px; height: 40px;
  background: var(--yellow);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
}
.nav-logo span { color: var(--coral); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.nav-links a {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--navy);
  padding: 8px 14px;
  border-radius: 100px;
  transition: background var(--transition), color var(--transition);
}
.nav-links a:hover, .nav-links a.active {
  background: var(--navy);
  color: var(--white);
}
.nav-cta a {
  background: var(--coral) !important;
  color: var(--white) !important;
}
.nav-cta a:hover { background: #e85555 !important; }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 6px;
}
.nav-hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ── Page Hero (inner pages) ─────────────────────────────── */
.page-hero {
  padding: calc(var(--nav-h) + 56px) 0 56px;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.page-hero-bg {
  background: linear-gradient(135deg, var(--cream) 0%, #fff8e1 60%, #e0faf9 100%);
}
.page-hero::before, .page-hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.page-hero::before {
  width: 500px; height: 500px;
  background: var(--yellow);
  opacity: 0.07;
  top: -150px; right: -100px;
}
.page-hero::after {
  width: 350px; height: 350px;
  background: var(--coral);
  opacity: 0.05;
  bottom: -100px; left: -80px;
}

/* ── HOME HERO ───────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  padding-top: var(--nav-h);
  display: flex;
  align-items: center;
  background-image: url('../images/home_index.png');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(255,251,240,0.88) 0%,
    rgba(255,251,240,0.70) 50%,
    rgba(255,251,240,0.30) 100%
  );
  pointer-events: none;
  z-index: 0;
}
.hero > * { position: relative; z-index: 1; }
.hero-blob {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.0;
}
.hero-blob-1 { width:700px;height:700px;background:var(--coral);top:-250px;right:-200px; }
.hero-blob-2 { width:500px;height:500px;background:var(--teal);bottom:-200px;left:-150px; }
.hero-blob-3 { width:250px;height:250px;background:var(--yellow);top:30%;left:35%; }

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 80px 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  width: 100%;
}
.hero-pill { animation: fadeUp 0.5s ease both; }
.hero-title { margin-bottom: 12px; animation: fadeUp 0.5s 0.1s ease both; }
.hero-tagline {
  font-size: 1.3rem;
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--teal);
  margin-bottom: 16px;
  animation: fadeUp 0.5s 0.15s ease both;
}
.hero-desc {
  margin-bottom: 32px;
  animation: fadeUp 0.5s 0.2s ease both;
  font-size: 1.05rem;
}
.hero-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  animation: fadeUp 0.5s 0.25s ease both;
}
.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 40px;
  animation: fadeUp 0.5s 0.3s ease both;
}
.hero-stat-num {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1.8rem;
  color: var(--coral);
  display: block;
}
.hero-stat-label {
  font-size: 0.8rem;
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--gray);
}

.hero-visual { animation: fadeUp 0.7s 0.2s ease both; }
.hero-books-stack {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 16px;
  padding: 24px 0;
}
.hero-book-thumb {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition);
  overflow: hidden;
}
.hero-book-thumb:hover { transform: translateY(-8px) rotate(-2deg); }
.hero-book-thumb.main {
  width: 200px;
  z-index: 2;
}
.hero-book-thumb.side {
  width: 140px;
  opacity: 0.85;
}
.hero-book-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero-book-placeholder {
  width: 100%;
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px;
  font-size: 0.75rem;
  font-family: var(--font-head);
  font-weight: 700;
  text-align: center;
  color: var(--white);
  line-height: 1.3;
}

/* ── Feature strip ───────────────────────────────────────── */
.strip {
  background: var(--navy);
  padding: 56px 0;
}
.strip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}
.strip-item { }
.strip-icon {
  font-size: 2.2rem;
  margin-bottom: 10px;
  display: block;
}
.strip-item h3 {
  color: var(--yellow);
  font-size: 1.1rem;
  margin-bottom: 6px;
}
.strip-item p {
  color: rgba(255,255,255,0.65);
  font-size: 0.88rem;
}

/* ── Book Card ───────────────────────────────────────────── */
.book-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}
.book-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.book-cover {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  position: relative;
}
.book-cover img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.book-card:hover .book-cover img { transform: scale(1.05); }
.book-cover-placeholder {
  width: 100%; aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  text-align: center;
  font-family: var(--font-head);
  font-weight: 800;
  color: var(--white);
  font-size: 0.9rem;
  line-height: 1.3;
}
.book-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.book-series {
  font-size: 0.75rem;
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--teal);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.book-title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--navy);
  margin-bottom: 4px;
  line-height: 1.3;
}
.book-author {
  font-size: 0.82rem;
  color: var(--gray);
  margin-bottom: 10px;
  font-style: italic;
}
.book-desc {
  font-size: 0.88rem;
  color: var(--gray);
  line-height: 1.55;
  flex: 1;
  margin-bottom: 16px;
}
.book-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: auto;
}
.book-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--gold);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.72rem;
  padding: 4px 10px;
  border-radius: 100px;
  box-shadow: var(--shadow);
}

/* ── Autographed section ─────────────────────────────────── */
.autograph-section {
  background: linear-gradient(135deg, var(--navy) 0%, #16213e 100%);
  padding: 80px 0;
}
.autograph-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.autograph-content h2 { color: var(--white); margin-bottom: 12px; }
.autograph-content p  { color: rgba(255,255,255,0.7); margin-bottom: 20px; }
.autograph-features { list-style: none; margin-bottom: 28px; }
.autograph-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.8);
  font-size: 0.95rem;
  margin-bottom: 10px;
}
.autograph-features li::before {
  content: '✓';
  width: 22px; height: 22px;
  background: var(--teal);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--white);
  flex-shrink: 0;
}

.autograph-form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-lg);
}
.autograph-form-card h3 { margin-bottom: 24px; }

/* ── Product Card ────────────────────────────────────────── */
.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}
.product-img {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  position: relative;
  overflow: hidden;
}
.product-img img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.product-coming-soon {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: rgba(26,26,46,0.75);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.75rem;
  text-align: center;
  padding: 6px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.product-body { padding: 16px; }
.product-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--navy);
  margin-bottom: 4px;
}
.product-desc { font-size: 0.84rem; color: var(--gray); margin-bottom: 12px; }
.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.product-price {
  font-family: var(--font-head);
  font-weight: 800;
  color: var(--coral);
  font-size: 1.08rem;
}

/* ── Author section ──────────────────────────────────────── */
.author-section {}
.author-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 64px;
  align-items: center;
}
.author-grid-reverse {
  grid-template-columns: 1fr 380px;
}
.author-grid-reverse .author-photo-wrap {
  order: 2;
}
.author-grid-reverse .author-content {
  order: 1;
}
.author-photo-wrap { position: relative; }
.author-photo {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  object-fit: cover;
  aspect-ratio: 4/5;
}
.author-badge {
  position: absolute;
  bottom: -16px; right: -16px;
  background: var(--yellow);
  border-radius: var(--radius);
  padding: 16px 20px;
  box-shadow: var(--shadow);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--navy);
  text-align: center;
  line-height: 1.4;
  max-width: 160px;
}
.author-badge .big {
  font-size: 1.6rem;
  font-weight: 900;
  display: block;
  color: var(--coral);
}
.author-content {}
.author-content p { margin-bottom: 14px; }
.author-content .author-quote {
  font-size: 1.15rem;
  font-style: italic;
  color: var(--navy);
  font-family: var(--font-head);
  font-weight: 600;
  border-left: 4px solid var(--yellow);
  padding-left: 16px;
  margin: 24px 0;
  line-height: 1.5;
}

/* ── Video section ───────────────────────────────────────── */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.video-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.video-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.video-thumb {
  aspect-ratio: 16/9;
  position: relative;
  overflow: hidden;
  background: var(--navy);
  cursor: pointer;
}
.video-thumb img { width:100%;height:100%;object-fit:cover;transition:transform 0.4s; }
.video-card:hover .video-thumb img { transform: scale(1.05); }
.play-btn {
  position: absolute;
  top:50%;left:50%;
  transform: translate(-50%,-50%);
  width: 52px;height:52px;
  background: rgba(255,255,255,0.92);
  border-radius: 50%;
  display: flex;align-items:center;justify-content:center;
  font-size: 1.2rem;
  box-shadow: var(--shadow);
  transition: transform var(--transition), background var(--transition);
}
.video-card:hover .play-btn {
  transform: translate(-50%,-50%) scale(1.1);
  background: var(--coral);
  color: var(--white);
}
.video-info { padding: 16px; }
.video-info h4 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 4px;
}
.video-info p { font-size: 0.84rem; }

/* Video modal */
.video-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.88);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.video-modal.open { display: flex; }
.video-modal-inner {
  position: relative;
  width: 100%;
  max-width: 860px;
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
}
.video-modal-close {
  position: absolute;
  top:10px;right:10px;
  background: rgba(255,255,255,0.15);
  border: none;
  color: var(--white);
  width: 34px;height:34px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  z-index: 1;
  transition: background var(--transition);
  display: flex;align-items:center;justify-content:center;
}
.video-modal-close:hover { background: var(--coral); }
.video-modal-frame { position: relative; padding-top: 56.25%; }
.video-modal-frame iframe {
  position: absolute;
  inset: 0;
  width:100%;height:100%;
  border: none;
}

/* ── Events gallery ──────────────────────────────────────── */
.events-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.event-img {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1;
  box-shadow: var(--shadow);
}
.event-img img {
  width: 100%;height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.event-img:hover img { transform: scale(1.05); }

/* ── Workshop pricing ────────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}
.pricing-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--yellow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.pricing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.pricing-card.featured {
  border-top-color: var(--coral);
  position: relative;
}
.pricing-card.featured::before {
  content: 'Most Popular';
  position: absolute;
  top: -1px; right: 16px;
  background: var(--coral);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.72rem;
  padding: 3px 10px;
  border-radius: 0 0 8px 8px;
}
.pricing-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--gray);
  margin-bottom: 4px;
}
.pricing-price {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 2rem;
  color: var(--navy);
  margin-bottom: 4px;
}
.pricing-desc { font-size: 0.82rem; color: var(--gray); margin-bottom: 16px; }
.pricing-features { list-style: none; font-size: 0.84rem; color: var(--gray); }
.pricing-features li {
  padding: 5px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.pricing-features li::before {
  content: '✓';
  color: var(--teal);
  font-weight: 700;
  flex-shrink: 0;
}

/* ── Forms ───────────────────────────────────────────────── */
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--navy);
  margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 15px;
  border: 2px solid #E5E7EB;
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--navy);
  background: var(--cream);
  outline: none;
  transition: border-color var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--teal); background: var(--white); }
.form-group textarea { resize: vertical; min-height: 110px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ── Contact ─────────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 64px;
  align-items: start;
}
.contact-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow);
}
.contact-detail {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 20px;
}
.contact-icon {
  width: 42px; height: 42px;
  background: var(--yellow);
  border-radius: 11px;
  display: flex;align-items:center;justify-content:center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.contact-detail h4 { font-size: 0.9rem; margin-bottom: 2px; }
.contact-detail p, .contact-detail a { font-size: 0.88rem; }
.contact-detail a { color: var(--coral); }

/* ── Newsletter ──────────────────────────────────────────── */
.newsletter {
  background: linear-gradient(135deg, var(--navy) 0%, #16213e 100%);
  padding: 72px 0;
  text-align: center;
}
.newsletter h2 { color: var(--white); margin-bottom: 8px; }
.newsletter p  { color: rgba(255,255,255,0.68); margin-bottom: 28px; }
.newsletter-form {
  display: flex;
  gap: 12px;
  max-width: 480px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}
.newsletter-form input {
  flex: 1;
  min-width: 240px;
  padding: 13px 18px;
  border: none;
  border-radius: 100px;
  font-size: 0.92rem;
  outline: none;
}

/* ── Footer ──────────────────────────────────────────────── */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,0.65);
  padding: 48px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand { }
.footer-brand .nav-logo { color: var(--white); margin-bottom: 12px; }
.footer-brand .nav-logo span { color: var(--yellow); }
.footer-brand p { font-size: 0.87rem; line-height: 1.6; }
.footer-col h4 {
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 7px; }
.footer-col ul li a {
  color: rgba(255,255,255,0.58);
  font-size: 0.87rem;
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--yellow); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.84rem;
}
.footer-socials { display: flex; gap: 10px; }
.footer-socials a {
  width: 34px; height: 34px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.1);
  border-radius: 8px;
  display: flex;align-items:center;justify-content:center;
  color: var(--white);
  font-size: 0.9rem;
  transition: background var(--transition);
}
.footer-socials a:hover { background: var(--coral); }

/* ── Animations & fade-in ────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ── Section headers ─────────────────────────────────────── */
.section-label { display: block; margin-bottom: 8px; }
.section-sub {
  color: var(--gray);
  font-size: 1.05rem;
  margin-top: 8px;
  margin-bottom: 48px;
  max-width: 600px;
}
.section-sub.centered { margin-left: auto; margin-right: auto; }

/* ── Filter tabs ─────────────────────────────────────────── */
.filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 40px;
}
.filter-btn {
  padding: 9px 20px;
  border-radius: 100px;
  border: 2px solid var(--light);
  background: var(--white);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--gray);
  cursor: pointer;
  transition: all var(--transition);
}
.filter-btn:hover, .filter-btn.active {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

/* ── Characters section ──────────────────────────────────── */
.characters-section { background: var(--navy); padding: 64px 0; }
.characters-img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
  display: block;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-inner   { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .hero-visual  { order: -1; }
  .hero-btns    { justify-content: center; }
  .hero-stats   { justify-content: center; }
  .author-grid  { grid-template-columns: 1fr; }
  .author-grid-reverse { grid-template-columns: 1fr; }
  .author-grid-reverse .author-photo-wrap { order: 0; }
  .author-grid-reverse .author-content { order: 1; }
  .author-photo-wrap { max-width: 340px; margin: 0 auto; }
  .autograph-inner { grid-template-columns: 1fr; }
  .contact-grid  { grid-template-columns: 1fr; }
  .strip-grid    { grid-template-columns: repeat(2, 1fr); }
  .footer-grid   { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .section { padding: 56px 0; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--cream);
    padding: 16px 20px 24px;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    box-shadow: var(--shadow);
    gap: 2px;
  }
  .nav-hamburger { display: flex; }
  .strip-grid    { grid-template-columns: 1fr; }
  .events-gallery { grid-template-columns: 1fr 1fr; }
  .form-row      { grid-template-columns: 1fr; }
  .footer-grid   { grid-template-columns: 1fr; }
  .hero-books-stack { gap: 8px; }
  .hero-book-thumb.main { width: 150px; }
  .hero-book-thumb.side { width: 110px; }
}

@media (max-width: 480px) {
  .hero-book-thumb.side:last-child { display: none; }
  .events-gallery { grid-template-columns: 1fr; }
  .author-badge { right: 0; }
}
