:root {
  --burgundy: #7a1236;
  --burgundy-deep: #5c0d28;
  --burgundy-soft: #9a244c;
  --blush: #f8e4ec;
  --blush-deep: #f0d0dc;
  --cream: #fff8f4;
  --paper: #ffffff;
  --ink: #1a1216;
  --ink-soft: #3d3236;
  --muted: #6f5c64;
  --gold: #f5c518;
  --gold-deep: #d4a40f;
  --line: #edd6de;
  --success: #2b7a3e;
  --danger: #b42318;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow: 0 12px 32px rgba(92, 13, 40, 0.1);
  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Poppins", "Segoe UI", sans-serif;
  --font-tamil: "Noto Sans Tamil", "Poppins", sans-serif;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink-soft);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--burgundy-deep);
  font-weight: 700;
  line-height: 1.2;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
[role="button"] {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

[hidden] {
  display: none !important;
}

.tamil {
  font-family: var(--font-tamil);
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 248, 244, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav-container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--burgundy);
  color: var(--paper);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.brand-mark svg {
  width: 22px;
  height: 26px;
}

.brand-text strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  color: var(--burgundy-deep);
}

.brand-text span {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
}

.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-soft);
}

.nav-links a:hover {
  color: var(--burgundy);
}

.nav-links .admin-link {
  font-size: 0.78rem;
  color: var(--muted);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: var(--burgundy);
}

.btn-primary,
.btn-secondary,
.btn-gold,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: background-color 180ms ease, transform 150ms ease, box-shadow 180ms ease;
}

.btn-primary {
  background: var(--burgundy);
  color: var(--paper) !important;
}

.btn-primary:hover {
  background: var(--burgundy-deep);
  box-shadow: 0 8px 18px rgba(122, 18, 54, 0.22);
}

.btn-secondary {
  background: transparent;
  color: var(--burgundy) !important;
  border-color: var(--burgundy);
}

.btn-secondary:hover {
  background: var(--blush);
}

.btn-gold {
  background: var(--gold);
  color: var(--burgundy-deep) !important;
}

.btn-gold:hover {
  background: var(--gold-deep);
}

.btn-ghost {
  background: var(--paper);
  color: var(--burgundy) !important;
  border-color: var(--line);
}

.hero {
  padding: 48px 0 24px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  background: var(--blush);
  color: var(--burgundy-deep);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  margin-bottom: 10px;
}

.hero-tamil {
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  color: var(--burgundy);
  font-weight: 700;
  margin-bottom: 14px;
}

.hero-sub {
  color: var(--muted);
  max-width: 36rem;
  margin-bottom: 22px;
}

.price-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}

.price-old {
  color: var(--muted);
  text-decoration: line-through;
  font-size: 1.25rem;
}

.price-now {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  color: var(--burgundy);
  line-height: 1;
  font-weight: 800;
}

.offer-pill {
  background: var(--gold);
  color: var(--burgundy-deep);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 8px 12px;
  border-radius: 999px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.poster-card {
  background: var(--paper);
  border-radius: var(--radius-lg);
  padding: 10px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.poster-card img {
  width: 100%;
  border-radius: 14px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.offer-panel {
  padding: 8px 0 48px;
}

.offer-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  box-shadow: 0 8px 24px rgba(92, 13, 40, 0.06);
}

.offer-card h2 {
  font-size: 1.7rem;
  margin: 8px 0 6px;
}

.offer-copy {
  color: var(--muted);
  margin-bottom: 16px;
}

.offer-points {
  list-style: none;
  display: grid;
  gap: 10px;
}

.offer-points li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--ink-soft);
  font-weight: 500;
}

.offer-points svg {
  flex: 0 0 auto;
  margin-top: 3px;
  color: var(--burgundy);
}

.offer-aside {
  background: var(--burgundy);
  color: var(--paper);
  border-radius: 18px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

.offer-aside h3,
.offer-aside p {
  color: var(--paper);
}

.offer-aside .price-old {
  color: #f0c8d4;
}

.offer-aside .price-now {
  color: var(--gold);
}

.section {
  padding: 64px 0;
}

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

.section-title {
  text-align: center;
  margin-bottom: 36px;
}

.section-title h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  margin-bottom: 8px;
}

.section-title p {
  color: var(--muted);
}

.features-grid,
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.steps-grid {
  grid-template-columns: repeat(3, 1fr);
}

.feature-card,
.step-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
}

.section.alt .feature-card,
.section.alt .step-card {
  background: var(--cream);
}

.feature-num,
.step-num {
  font-family: var(--font-display);
  color: var(--burgundy);
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.feature-card h3,
.step-card h3 {
  font-size: 1.12rem;
  margin-bottom: 8px;
}

.feature-card p,
.step-card p {
  color: var(--muted);
  font-size: 0.94rem;
}

.lessons-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.lesson-preview-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
}

.lesson-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--blush);
  color: var(--burgundy-deep);
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 700;
}

.lesson-preview-card .lesson-title {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
}

.lesson-preview-card small {
  color: var(--muted);
  font-size: 0.75rem;
  white-space: nowrap;
}

.curriculum-cta {
  text-align: center;
  margin-top: 28px;
}

.contact-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px 24px;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.contact-list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: 18px 0 22px;
}

.contact-list a {
  color: var(--burgundy);
  font-weight: 600;
}

.contact-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.site-footer {
  background: var(--burgundy-deep);
  color: #f3d7e0;
  padding: 40px 0 20px;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-brand {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.footer-brand .brand-mark {
  background: var(--paper);
  color: var(--burgundy);
}

.footer-brand h3 {
  color: var(--paper);
  font-size: 1.15rem;
}

.footer-brand p,
.footer-links a,
.footer-bottom {
  color: #f3d7e0;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-bottom {
  text-align: center;
  padding-top: 16px;
  font-size: 0.8rem;
}

.icon {
  width: 18px;
  height: 18px;
  display: inline-block;
}

.loading-overlay {
  position: fixed;
  inset: 0;
  background: var(--cream);
  z-index: 80;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.loading-overlay[hidden] {
  display: none !important;
}

.spinner {
  width: 34px;
  height: 34px;
  border: 3px solid var(--blush);
  border-top-color: var(--burgundy);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-top: 8px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 900px) {
  .hero-grid,
  .offer-card,
  .features-grid,
  .steps-grid,
  .lessons-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 28px;
  }

  .menu-toggle {
    display: grid;
    place-items: center;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--paper);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 16px 20px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a,
  .nav-links .btn-primary {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn-primary,
  .btn-secondary,
  .spinner {
    animation: none;
    transition: none;
  }
}
