/* ============================================================
   S Corporation Tax Savings - AE Tax Advisors
   Entity Tax Strategy Series Design System
   Navy #1B2A4A | Gold #C5A572
   ============================================================ */

:root {
  --navy: #1B2A4A;
  --navy-dark: #0F1A2E;
  --navy-light: #2A3F6A;
  --gold: #C5A572;
  --gold-light: #D4BC94;
  --gold-dark: #A88B5A;
  --white: #FFFFFF;
  --off-white: #F8F6F3;
  --gray-50: #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-300: #D1D5DB;
  --gray-400: #9CA3AF;
  --gray-500: #6B7280;
  --gray-600: #4B5563;
  --gray-700: #374151;
  --gray-800: #1F2937;
  --gray-900: #111827;
  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --shadow-sm: 0 1px 2px rgba(27, 42, 74, 0.06);
  --shadow-md: 0 4px 12px rgba(27, 42, 74, 0.1);
  --shadow-lg: 0 12px 32px rgba(27, 42, 74, 0.15);
  --shadow-xl: 0 20px 48px rgba(27, 42, 74, 0.2);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --transition: 0.3s ease;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  color: var(--gray-800);
  line-height: 1.7;
  background: var(--white);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  color: var(--navy);
  line-height: 1.2;
  font-weight: 700;
}

a {
  color: var(--gold-dark);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--gold);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.container--narrow {
  max-width: 800px;
}

/* ============================================================
   Navigation
   ============================================================ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(27, 42, 74, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(197, 165, 114, 0.15);
  transition: all var(--transition);
}

.nav--scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  text-decoration: none;
}

.nav__brand:hover {
  color: var(--gold);
}

.nav__icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--navy);
  font-weight: 800;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav__links a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: color var(--transition);
  position: relative;
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width var(--transition);
}

.nav__links a:hover {
  color: var(--white);
}

.nav__links a:hover::after {
  width: 100%;
}

.nav__cta {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--navy) !important;
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  transition: all var(--transition);
}

.nav__cta::after {
  display: none !important;
}

.nav__cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(197, 165, 114, 0.4);
}

.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  margin: 5px 0;
  transition: all var(--transition);
  border-radius: 2px;
}

/* ============================================================
   Hero Section
   ============================================================ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(160deg, var(--navy-dark) 0%, var(--navy) 40%, var(--navy-light) 100%);
  padding-top: 72px;
  overflow: hidden;
}

.hero__bg-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image:
    radial-gradient(circle at 20% 50%, var(--gold) 1px, transparent 1px),
    radial-gradient(circle at 80% 20%, var(--gold) 1px, transparent 1px),
    radial-gradient(circle at 60% 80%, var(--gold) 1px, transparent 1px);
  background-size: 60px 60px, 80px 80px, 45px 45px;
}

.hero__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero__text {
  color: var(--white);
}

.hero__series-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(197, 165, 114, 0.15);
  border: 1px solid rgba(197, 165, 114, 0.3);
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.hero__title {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero__title span {
  color: var(--gold);
}

.hero__subtitle {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.6;
  margin-bottom: 32px;
  max-width: 540px;
}

.hero__meta {
  display: flex;
  gap: 32px;
  margin-bottom: 36px;
}

.hero__meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero__meta-label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}

.hero__meta-value {
  font-size: 1rem;
  color: var(--gold);
  font-weight: 600;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero__book-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.book-mockup {
  width: 320px;
  perspective: 1200px;
}

.book-mockup__cover {
  background: linear-gradient(145deg, var(--navy-dark), var(--navy));
  border: 2px solid var(--gold);
  border-radius: var(--radius-md);
  padding: 48px 36px;
  box-shadow:
    12px 12px 0 rgba(197, 165, 114, 0.15),
    var(--shadow-xl);
  transform: rotateY(-5deg) rotateX(2deg);
  transition: transform 0.5s ease;
  position: relative;
  overflow: hidden;
}

.book-mockup__cover::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold));
}

.book-mockup__cover::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold));
}

.book-mockup__cover:hover {
  transform: rotateY(0deg) rotateX(0deg);
}

.book-mockup__series {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 24px;
}

.book-mockup__title {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 16px;
}

.book-mockup__subtitle {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.5;
  margin-bottom: 32px;
}

.book-mockup__divider {
  width: 60px;
  height: 2px;
  background: var(--gold);
  margin-bottom: 20px;
}

.book-mockup__author {
  font-size: 0.8rem;
  color: var(--gold-light);
  font-weight: 500;
  letter-spacing: 0.05em;
}

/* ============================================================
   Buttons
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-decoration: none;
}

.btn--primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--navy);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(197, 165, 114, 0.4);
  color: var(--navy);
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn--outline:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}

.btn--secondary {
  background: var(--navy);
  color: var(--white);
}

.btn--secondary:hover {
  background: var(--navy-light);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--large {
  padding: 18px 40px;
  font-size: 1.05rem;
}

/* ============================================================
   Section Styles
   ============================================================ */

.section {
  padding: 100px 0;
}

.section--gray {
  background: var(--gray-50);
}

.section--navy {
  background: var(--navy);
  color: var(--white);
}

.section--navy h2,
.section--navy h3 {
  color: var(--white);
}

.section__header {
  text-align: center;
  margin-bottom: 64px;
}

.section__label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin-bottom: 16px;
}

.section__title {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.section__subtitle {
  font-size: 1.1rem;
  color: var(--gray-500);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.7;
}

.section--navy .section__subtitle {
  color: rgba(255, 255, 255, 0.7);
}

/* ============================================================
   Chapters / Table of Contents
   ============================================================ */

.chapters-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.chapter-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.chapter-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--gold), var(--gold-dark));
  opacity: 0;
  transition: opacity var(--transition);
}

.chapter-card:hover {
  border-color: var(--gold-light);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.chapter-card:hover::before {
  opacity: 1;
}

.chapter-card__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, rgba(197, 165, 114, 0.12), rgba(197, 165, 114, 0.05));
  border: 1px solid rgba(197, 165, 114, 0.2);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold-dark);
  margin-bottom: 16px;
}

.chapter-card__title {
  font-size: 1.2rem;
  margin-bottom: 12px;
  font-family: var(--font-serif);
  color: var(--navy);
}

.chapter-card__description {
  font-size: 0.92rem;
  color: var(--gray-600);
  line-height: 1.7;
}

.chapter-card--intro {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  border: 1px solid rgba(197, 165, 114, 0.2);
}

.chapter-card--intro .chapter-card__number {
  background: rgba(197, 165, 114, 0.2);
  border-color: rgba(197, 165, 114, 0.3);
  color: var(--gold);
}

.chapter-card--intro .chapter-card__title {
  color: var(--white);
}

.chapter-card--intro .chapter-card__description {
  color: rgba(255, 255, 255, 0.7);
}

.chapter-card--intro::before {
  opacity: 1;
  background: linear-gradient(180deg, var(--gold), var(--gold-light));
}

.chapter-card--conclusion {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  border: 1px solid rgba(197, 165, 114, 0.2);
  text-align: center;
}

.chapter-card--conclusion .chapter-card__number {
  background: rgba(197, 165, 114, 0.2);
  border-color: rgba(197, 165, 114, 0.3);
  color: var(--gold);
  margin: 0 auto 16px;
}

.chapter-card--conclusion .chapter-card__title {
  color: var(--white);
}

.chapter-card--conclusion .chapter-card__description {
  color: rgba(255, 255, 255, 0.7);
}

.chapter-card--conclusion::before {
  display: none;
}

/* ============================================================
   Audience Section
   ============================================================ */

.audience-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.audience-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(197, 165, 114, 0.15);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  transition: all var(--transition);
}

.audience-card:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(197, 165, 114, 0.35);
  transform: translateY(-4px);
}

.audience-card__icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, rgba(197, 165, 114, 0.2), rgba(197, 165, 114, 0.08));
  border: 1px solid rgba(197, 165, 114, 0.25);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 20px;
}

.audience-card__title {
  font-size: 1.05rem;
  font-family: var(--font-serif);
  margin-bottom: 12px;
  color: var(--white);
}

.audience-card__text {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.6;
}

/* ============================================================
   Key Topics
   ============================================================ */

.topics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.topic-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  transition: all var(--transition);
}

.topic-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: var(--gold-light);
}

.topic-card__icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, rgba(27, 42, 74, 0.08), rgba(27, 42, 74, 0.03));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin: 0 auto 20px;
}

.topic-card__title {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.topic-card__text {
  font-size: 0.9rem;
  color: var(--gray-500);
  line-height: 1.6;
}

/* ============================================================
   Series Section
   ============================================================ */

.series-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.series-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
  transition: all var(--transition);
  text-decoration: none;
  display: block;
}

.series-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: var(--gold-light);
}

.series-card--current {
  border-color: var(--gold);
  background: linear-gradient(135deg, rgba(197, 165, 114, 0.06), rgba(197, 165, 114, 0.02));
}

.series-card__badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold-dark);
  background: rgba(197, 165, 114, 0.15);
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 16px;
}

.series-card__title {
  font-size: 1.05rem;
  font-family: var(--font-serif);
  color: var(--navy);
  margin-bottom: 8px;
  line-height: 1.3;
}

.series-card__domain {
  font-size: 0.82rem;
  color: var(--gray-400);
  font-weight: 500;
}

/* ============================================================
   Stats Bar
   ============================================================ */

.stats-bar {
  background: var(--white);
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
  padding: 48px 0;
}

.stats-bar__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.stats-bar__item {
  position: relative;
}

.stats-bar__item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -16px;
  top: 10%;
  height: 80%;
  width: 1px;
  background: var(--gray-200);
}

.stats-bar__number {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 8px;
}

.stats-bar__label {
  font-size: 0.85rem;
  color: var(--gray-500);
  font-weight: 500;
}

/* ============================================================
   CTA Section
   ============================================================ */

.cta {
  background: linear-gradient(160deg, var(--navy-dark), var(--navy), var(--navy-light));
  padding: 100px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta__bg {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: radial-gradient(circle at 30% 40%, var(--gold) 1px, transparent 1px);
  background-size: 50px 50px;
}

.cta__content {
  position: relative;
  z-index: 2;
}

.cta__title {
  font-size: 2.5rem;
  color: var(--white);
  margin-bottom: 20px;
}

.cta__text {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 36px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

.cta__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================
   Footer
   ============================================================ */

.footer {
  background: var(--navy-dark);
  color: rgba(255, 255, 255, 0.6);
  padding: 64px 0 32px;
  border-top: 1px solid rgba(197, 165, 114, 0.15);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer__brand-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--white);
  margin-bottom: 12px;
}

.footer__brand-text {
  font-size: 0.88rem;
  line-height: 1.7;
  margin-bottom: 16px;
}

.footer__heading {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: 20px;
}

.footer__links {
  list-style: none;
}

.footer__links li {
  margin-bottom: 10px;
}

.footer__links a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.88rem;
  transition: color var(--transition);
}

.footer__links a:hover {
  color: var(--gold);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
}

.footer__bottom a {
  color: rgba(255, 255, 255, 0.6);
}

.footer__bottom a:hover {
  color: var(--gold);
}

/* ============================================================
   About Page
   ============================================================ */

.page-hero {
  background: linear-gradient(160deg, var(--navy-dark), var(--navy));
  padding: 140px 0 80px;
  text-align: center;
}

.page-hero__title {
  font-size: 2.75rem;
  color: var(--white);
  margin-bottom: 16px;
}

.page-hero__subtitle {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.65);
  max-width: 600px;
  margin: 0 auto;
}

.about-content {
  padding: 80px 0;
}

.about-content__grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 64px;
  align-items: start;
}

.about-content__text h2 {
  font-size: 1.75rem;
  margin-bottom: 20px;
  margin-top: 40px;
}

.about-content__text h2:first-child {
  margin-top: 0;
}

.about-content__text p {
  margin-bottom: 16px;
  color: var(--gray-600);
  line-height: 1.8;
}

.about-sidebar {
  position: sticky;
  top: 96px;
}

.about-sidebar__card {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 24px;
}

.about-sidebar__card h3 {
  font-size: 1.1rem;
  margin-bottom: 16px;
}

.about-sidebar__card ul {
  list-style: none;
  padding: 0;
}

.about-sidebar__card ul li {
  padding: 8px 0;
  border-bottom: 1px solid var(--gray-200);
  font-size: 0.9rem;
  color: var(--gray-600);
}

.about-sidebar__card ul li:last-child {
  border-bottom: none;
}

/* ============================================================
   404 Page
   ============================================================ */

.error-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, var(--navy-dark), var(--navy));
  text-align: center;
  padding: 24px;
}

.error-page__code {
  font-family: var(--font-serif);
  font-size: 8rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 16px;
}

.error-page__title {
  font-size: 2rem;
  color: var(--white);
  margin-bottom: 16px;
}

.error-page__text {
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 32px;
  font-size: 1.05rem;
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 1024px) {
  .hero__content {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }

  .hero__subtitle {
    margin: 0 auto 32px;
  }

  .hero__meta {
    justify-content: center;
  }

  .hero__actions {
    justify-content: center;
  }

  .chapters-grid {
    grid-template-columns: 1fr;
  }

  .audience-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .topics-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .series-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-bar__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .stats-bar__item:nth-child(2)::after {
    display: none;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .about-content__grid {
    grid-template-columns: 1fr;
  }

  .about-sidebar {
    position: static;
  }
}

@media (max-width: 768px) {
  .nav__links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--navy-dark);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid rgba(197, 165, 114, 0.15);
  }

  .nav__links.active {
    display: flex;
  }

  .nav__toggle {
    display: block;
  }

  .hero {
    min-height: auto;
    padding: 120px 0 60px;
  }

  .hero__title {
    font-size: 2.5rem;
  }

  .book-mockup {
    width: 260px;
  }

  .section {
    padding: 64px 0;
  }

  .section__title {
    font-size: 2rem;
  }

  .audience-grid {
    grid-template-columns: 1fr;
  }

  .topics-grid {
    grid-template-columns: 1fr;
  }

  .series-grid {
    grid-template-columns: 1fr;
  }

  .stats-bar__grid {
    grid-template-columns: 1fr 1fr;
  }

  .stats-bar__item::after {
    display: none !important;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .cta__title {
    font-size: 2rem;
  }

  .page-hero__title {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .hero__title {
    font-size: 2rem;
  }

  .hero__meta {
    flex-direction: column;
    gap: 16px;
    align-items: center;
  }

  .hero__actions {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  .section__title {
    font-size: 1.65rem;
  }

  .book-mockup {
    width: 220px;
  }
}

/* ============================================================
   Animations
   ============================================================ */

.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }
