/* ================================================
   EAGLE MAGIC ACADEMY — Main Stylesheet
   ================================================ */

/* ---- 1. Design Tokens ---- */
:root {
  --primary:        #1B3A8A;
  --primary-dark:   #0F2560;
  --primary-light:  #2D64C8;
  --primary-pale:   #EEF3FF;
  --gold:           #F0A500;
  --gold-light:     #F8CC6A;
  --gold-pale:      #FEF6E4;
  --accent:         #5B8DEF;
  --carolina:       #4B9CD3;   /* Carolina Blue — home hero + header */
  --flag-blue:      #0A3161;   /* American Flag (Old Glory) Blue — hero buttons, section kickers */
  --flag-red:       #B31942;   /* American Flag (Old Glory) Red — CTAs, hero accent words */
  --bg:             #FFFFFF;
  --bg-light:       #F8FAFF;
  --bg-alt:         #F2F5FB;
  --text:           #1A1C2E;
  --text-muted:     #5C6880;
  --text-light:     #8C95A6;
  --border:         #DDE3F0;
  --border-light:   #EEF1F8;
  --shadow-sm:      0 1px 4px rgba(27,58,138,.08);
  --shadow-md:      0 4px 20px rgba(27,58,138,.12);
  --shadow-lg:      0 8px 40px rgba(27,58,138,.16);
  --shadow-gold:    0 4px 20px rgba(240,165,0,.25);
  --radius-sm:      8px;
  --radius-md:      14px;
  --radius-lg:      24px;
  --radius-xl:      36px;
  --radius-full:    999px;
  --font-heading:   'Playfair Display', Georgia, serif;
  --font-body:      'Nunito', system-ui, sans-serif;
  --header-h:       144px;
  --container:      1200px;
  --section-py:     96px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* ---- 3. Typography ---- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  line-height: 1.2;
  color: var(--text);
}

h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); font-weight: 700; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); font-weight: 600; }
h4 { font-size: 1.15rem; font-weight: 600; }
p  { color: var(--text-muted); }

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--flag-blue);
  margin-bottom: 12px;
}
.section-tag::before {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background: var(--flag-blue);
  border-radius: 2px;
}

.section-title { margin-bottom: 16px; }
.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 580px;
  margin-bottom: 48px;
}
.text-center { text-align: center; }
.text-center .section-subtitle { margin-left: auto; margin-right: auto; }
.text-center .section-tag { justify-content: center; }
.text-center .section-tag::before { display: none; }
.text-center .section-tag::after {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background: var(--flag-blue);
  border-radius: 2px;
}

/* ---- 4. Layout ---- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: var(--section-py) 0; }

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

/* ---- 5. Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-size: .95rem;
  font-weight: 700;
  font-family: var(--font-body);
  transition: all .22s ease;
  white-space: nowrap;
  cursor: pointer;
}

.btn-primary {
  background: var(--gold);
  color: var(--primary-dark);
  box-shadow: var(--shadow-gold);
}
.btn-primary:hover {
  background: #D9940A;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(240,165,0,.35);
}

.btn-lg {
  padding: 20px 48px;
  font-size: 1.2rem;
  justify-content: center;
}

.btn-red {
  background: var(--flag-red);
  color: #fff;
  box-shadow: 0 4px 16px rgba(179,25,66,.28);
}
.btn-red:hover {
  background: #8F1435;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(179,25,66,.38);
}

.btn-secondary {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-md);
}
.btn-secondary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

.btn-outline-white {
  background: transparent;
  border: 2px solid rgba(255,255,255,.7);
  color: #fff;
}
.btn-outline-white:hover {
  background: rgba(255,255,255,.15);
  border-color: #fff;
}

.btn-white {
  background: #fff;
  color: var(--primary);
  box-shadow: var(--shadow-md);
}
.btn-white:hover {
  background: var(--primary-pale);
  transform: translateY(-2px);
}

/* ---- 6. Header & Navigation ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--carolina);
  transition: box-shadow .3s ease;
  height: var(--header-h);
  display: flex;
  align-items: center;
}

.site-header.scrolled {
  box-shadow: 0 4px 20px rgba(10,49,97,.25);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 24px;
}

/* Header spans the full viewport so the logo can sit at the far left edge */
.site-header .header-inner {
  max-width: none;
  padding: 0 32px 0 20px;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  text-decoration: none;
}

.site-logo img {
  height: 52px;
  width: 52px;
  object-fit: contain;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.logo-text strong {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
}

.logo-text span {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold);
}

/* Header logo: big, flush left, white wordmark on Carolina Blue */
.site-header .site-logo { gap: 16px; }
.site-header .site-logo img { height: 128px; width: 128px; }
.site-header .logo-text strong { font-size: 2.1rem; color: #fff; }
.site-header .logo-text span { font-size: 1.15rem; color: #fff; }

/* Desktop Nav */
.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  padding: 9px 16px;
  border-radius: var(--radius-full);
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  transition: color .2s, background .2s;
}

.nav-link:hover,
.nav-link.active {
  color: #fff;
  background: rgba(255,255,255,.2);
}

.nav-cta {
  padding: 12px 26px;
  font-size: 1rem;
  font-weight: 800;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  border-radius: var(--radius-sm);
  background: none;
  border: none;
  cursor: pointer;
  transition: background .2s;
}

.hamburger:hover { background: rgba(255,255,255,.15); }

.hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  background: #fff;
  border-radius: 2px;
  transition: all .3s ease;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.mobile-nav {
  display: none;
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: rgba(255,255,255,.98);
  backdrop-filter: blur(12px);
  z-index: 999;
  padding: 32px 24px 40px;
  flex-direction: column;
  gap: 8px;
  transform: translateX(-100%);
  transition: transform .3s ease;
  overflow-y: auto;
}

.mobile-nav.open {
  transform: translateX(0);
}

.mobile-nav-link {
  display: block;
  padding: 14px 20px;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  border-radius: var(--radius-md);
  transition: background .2s, color .2s;
}

.mobile-nav-link:hover {
  background: var(--primary-pale);
  color: var(--primary);
}

.mobile-nav-cta {
  margin-top: 16px;
  text-align: center;
}

/* ---- 7. Hero Section ---- */
.hero {
  background: var(--carolina);
  position: relative;
  overflow: hidden;
  padding: 80px 0 96px;
  min-height: 600px;
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  align-items: center;
  gap: 60px;
  position: relative;
  z-index: 1;
}

.hero-content { color: #fff; }

.hero h1 {
  color: #fff;
  font-size: clamp(2.3rem, 5.8vw, 4.5rem);
  line-height: 1.1;
  margin-bottom: 36px;
}

.hero h1 .hero-accent { color: var(--flag-red); }

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

.hero-actions .btn {
  padding: 14px 26px;
  font-size: .95rem;
}

/* White pill buttons with American Flag Blue text */
.btn-hero {
  background: #fff;
  color: var(--flag-blue);
  box-shadow: 0 4px 16px rgba(10,49,97,.22);
}
.btn-hero:hover {
  background: #EAF3FA;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(10,49,97,.3);
}

/* Optional variant: full-width photo behind the hero, dark scrim for legibility.
   Preview with index.html?hero=photo — ship by adding class "hero--photo" to the hero <section>. */
.hero--photo {
  background:
    linear-gradient(90deg, rgba(10,49,97,.85) 0%, rgba(10,49,97,.62) 55%, rgba(10,49,97,.35) 100%),
    url('../images/happykids.jpg') center 30% / cover no-repeat;
}
.hero--photo .hero-grid { grid-template-columns: 1fr; }
.hero--photo .hero-content { max-width: 640px; }
.hero--photo .hero-accent { color: #fff; } /* red is illegible on the dark scrim */
.hero--photo .hero-visual,
.hero--photo .star-deco { display: none; }

/* Hero visual */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-img-frame {
  position: relative;
  width: 100%;
  max-width: 440px;
  aspect-ratio: 4/3.5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.35), 0 0 0 3px rgba(240,165,0,.3);
}

.hero-img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-img-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(145deg, #1a3070 0%, #234098 40%, #3a5abc 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-align: center;
  padding: 32px;
}

.hero-img-placeholder .placeholder-icon {
  width: 64px;
  height: 64px;
  background: rgba(240,165,0,.2);
  border: 2px dashed rgba(240,165,0,.5);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-light);
}

.hero-img-placeholder p {
  font-size: .85rem;
  color: rgba(255,255,255,.6);
  font-style: italic;
}

.hero-badge-float {
  position: absolute;
  background: #fff;
  border-radius: var(--radius-md);
  padding: 12px 16px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .85rem;
  font-weight: 700;
  color: var(--text);
}

.hero-badge-float.float-1 {
  bottom: -16px;
  left: -20px;
}

.hero-badge-float.float-2 {
  top: -16px;
  right: -20px;
}

.badge-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Floating stars */
.star-deco {
  position: absolute;
  color: rgba(248,204,106,.55);
  pointer-events: none;
  animation: twinkle 3s ease-in-out infinite;
}
.star-deco.s1 { top: 12%; left: 5%; font-size: 1.4rem; animation-delay: 0s; }
.star-deco.s2 { top: 25%; right: 8%; font-size: .9rem; animation-delay: .6s; }
.star-deco.s3 { bottom: 20%; left: 10%; font-size: 1.1rem; animation-delay: 1.2s; }
.star-deco.s4 { bottom: 10%; right: 15%; font-size: .7rem; animation-delay: 1.8s; }
.star-deco.s5 { top: 55%; right: 3%; font-size: 1.3rem; animation-delay: .9s; }

@keyframes twinkle {
  0%, 100% { opacity: .5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.25); }
}

/* ---- 8. Life Skills Section ---- */
.skills-section {
  background: var(--bg-light);
}

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

.traits-subsection {
  max-width: 760px;
  margin: 56px auto 0;
  text-align: center;
}

.traits-subsection h3 {
  margin-bottom: 16px;
}

.traits-subsection p {
  color: var(--text-muted);
  margin-bottom: 16px;
}

.traits-subsection p:last-child {
  margin-bottom: 0;
}

.skill-card {
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  transition: transform .25s ease, box-shadow .25s ease;
  position: relative;
  overflow: hidden;
}

.skill-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--primary-light));
  opacity: 0;
  transition: opacity .25s;
}

.skill-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

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

.skill-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.skill-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
  color: var(--primary);
}

.skill-card p {
  font-size: .9rem;
  line-height: 1.65;
}

/* ---- 9. Programs Preview ---- */
.programs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 8px;
}

.program-photo-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.program-photo {
  aspect-ratio: 1/1;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.program-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.program-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform .25s, box-shadow .25s;
}

.program-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.program-card-header {
  padding: 48px 40px 40px;
  position: relative;
  overflow: hidden;
}

.program-card-header.blue {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
}

.program-card-header.gold {
  background: linear-gradient(135deg, #8B6000, #C47E00);
}

.program-card-header .prog-icon {
  width: 64px;
  height: 64px;
  background: rgba(255,255,255,.15);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: #fff;
}

.program-card-header h3 { color: #fff; margin-bottom: 10px; }
.program-card-header p { color: rgba(255,255,255,.82); font-size: .95rem; }

.prog-deco {
  position: absolute;
  right: -20px;
  bottom: -20px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
}
.prog-deco-2 {
  position: absolute;
  right: 40px;
  top: -40px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(255,255,255,.04);
}

.program-card-body {
  background: var(--bg);
  padding: 32px 40px;
  border: 1px solid var(--border-light);
  border-top: none;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.prog-features {
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.prog-feature {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .9rem;
  color: var(--text-muted);
}

.prog-feature svg {
  flex-shrink: 0;
  margin-top: 1px;
  color: var(--gold);
}

/* ---- 10. Testimonials ---- */
.testimonials-section {
  background: var(--bg-alt);
}

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

.testimonial-card {
  background: var(--bg);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform .25s, box-shadow .25s;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.testimonial-stars {
  display: flex;
  gap: 4px;
  color: var(--gold);
}

.testimonial-quote {
  font-size: .95rem;
  line-height: 1.7;
  color: var(--text);
  font-style: italic;
  flex: 1;
  position: relative;
  padding-top: 20px;
}

.testimonial-quote::before {
  content: '\201C';
  position: absolute;
  top: -8px;
  left: 0;
  font-family: var(--font-heading);
  font-size: 3.5rem;
  line-height: 1;
  color: var(--gold);
  opacity: .4;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .95rem;
  color: #fff;
  flex-shrink: 0;
}

.author-info { display: flex; flex-direction: column; }
.author-name { font-weight: 700; font-size: .9rem; color: var(--text); }
.author-role { font-size: .8rem; color: var(--text-light); }

/* ---- 11. Sponsor Carousel ---- */
.carousel-section {
  background: var(--bg);
  padding: 64px 0;
  overflow: hidden;
}

.carousel-section .section-subtitle {
  margin-bottom: 40px;
}

.carousel-wrapper {
  position: relative;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.carousel-track {
  display: flex;
  width: max-content;
  animation: carousel-scroll 32s linear infinite;
}

.carousel-wrapper:hover .carousel-track {
  animation-play-state: paused;
}

@keyframes carousel-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.carousel-item {
  flex: 0 0 200px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sponsor-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 24px;
  background: var(--bg-alt);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  min-width: 148px;
  min-height: 68px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .3s ease, transform .3s ease, border-color .3s ease;
  cursor: default;
}

.sponsor-logo:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--gold);
  transform: scale(1.04);
}

.sponsor-logo-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.sponsor-name {
  font-size: .8rem;
  font-weight: 700;
  color: var(--primary);
  text-align: center;
  letter-spacing: .03em;
  white-space: nowrap;
}

.sponsor-type {
  font-size: .68rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: .08em;
}

/* ---- 12. About Preview ---- */
.about-preview {
  background: var(--bg-light);
}

.about-preview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-img-wrap {
  position: relative;
}

.about-img-box {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/4.5;
  position: relative;
}

.about-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-img-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(145deg, var(--primary-pale), #d4e0ff);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  padding: 40px;
}

.about-img-placeholder svg { color: var(--primary-light); opacity: .5; }
.about-img-placeholder p { font-size: .85rem; color: var(--text-light); font-style: italic; }

.about-accent-box {
  position: absolute;
  background: var(--gold);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  box-shadow: var(--shadow-lg);
  bottom: -24px;
  right: -24px;
  text-align: center;
}

.about-accent-box strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-dark);
  font-family: var(--font-heading);
}

.about-accent-box span {
  font-size: .8rem;
  font-weight: 600;
  color: rgba(27,58,138,.7);
}

.about-content { }
.about-content h2 { margin-bottom: 16px; }

.about-values {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 28px 0;
}

.about-value {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.value-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.value-text { display: flex; flex-direction: column; }
.value-text strong { font-size: .95rem; font-weight: 700; color: var(--text); }
.value-text span { font-size: .85rem; color: var(--text-muted); }

/* ---- 13. CTA Section ---- */
.cta-section {
  background: var(--carolina);
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 96px 0;
}

.cta-section h2 { color: #fff; margin-bottom: 16px; }
.cta-section p { color: #fff; max-width: 520px; margin: 0 auto 36px; }

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

.cta-deco-star {
  position: absolute;
  color: rgba(240,165,0,.25);
}
.cta-deco-star.d1 { top: 15%; left: 8%; font-size: 2rem; }
.cta-deco-star.d2 { top: 30%; right: 6%; font-size: 1.2rem; }
.cta-deco-star.d3 { bottom: 20%; left: 15%; font-size: 1.5rem; }
.cta-deco-star.d4 { bottom: 30%; right: 10%; font-size: 2.5rem; }
.cta-deco-star.d5 { top: 60%; left: 3%; font-size: .9rem; }

/* ---- 14. Footer ---- */
/* Compact footer: big logo on the left, Get in Touch on the right */
.site-footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,.8);
  padding: 32px 0 0;
}

.footer-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px 48px;
  padding-bottom: 28px;
}

.footer-main .site-logo { gap: 20px; }
.footer-main .site-logo img { height: 128px; width: 128px; }
.footer-main .logo-text strong { font-size: 1.9rem; color: #fff; }
.footer-main .logo-text span { font-size: 1.05rem; color: var(--gold-light); }

.footer-col h4 {
  color: #fff;
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-bottom: 14px;
  font-family: var(--font-body);
}

.footer-link {
  font-size: .88rem;
  color: rgba(255,255,255,.75);
  transition: color .2s;
}

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

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .95rem;
  color: rgba(255,255,255,.75);
  margin-bottom: 10px;
}
.footer-col .footer-contact-item:last-child { margin-bottom: 0; }

.footer-contact-item svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--gold);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  font-size: .82rem;
  color: rgba(255,255,255,.4);
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
}

.footer-bottom-link {
  font-size: .82rem;
  color: rgba(255,255,255,.4);
  transition: color .2s;
}

.footer-bottom-link:hover { color: rgba(255,255,255,.8); }

/* ---- 15. Page Hero (inner pages) ---- */
.page-hero {
  background: var(--carolina);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero h1 { color: #fff; margin-bottom: 12px; }
.page-hero p { color: #fff; max-width: 600px; margin: 0 auto; }

/* ---- 16. About Page ---- */
.founder-section { background: var(--bg); }

.founder-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 80px;
  align-items: start;
}

.founder-img-wrap {
  position: sticky;
  top: 100px;
}

.founder-img-box {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 3/4;
  background: linear-gradient(145deg, var(--primary-pale), #c8d8ff);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  padding: 40px;
}

.founder-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.founder-img-box p { font-size: .85rem; color: var(--text-light); font-style: italic; }

.founder-credentials {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}

.credential {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-light);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--text);
}

.credential svg { color: var(--gold); flex-shrink: 0; }

.partners-block {
  margin-top: 72px;
  padding-top: 56px;
  border-top: 1px solid var(--border-light);
}
.partners-block .section-title { margin-bottom: 32px; }
.partner-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}
.partner-links .btn { flex: 1 1 260px; max-width: 340px; }

.founder-content h2 { margin-bottom: 8px; }
.founder-title {
  font-size: .9rem;
  font-weight: 700;
  color: var(--flag-red);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 20px;
}

.founder-bio p {
  margin-bottom: 16px;
  font-size: .97rem;
  line-height: 1.75;
}

/* Mission Section */
.mission-section {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.mission-section h2 { color: #fff; margin-bottom: 16px; }
.mission-statement {
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-style: italic;
  color: rgba(255,255,255,.9);
  max-width: 720px;
  margin: 0 auto 48px;
  line-height: 1.6;
}

.mission-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: left;
}

.mission-pillar {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius-md);
  padding: 28px;
  backdrop-filter: blur(8px);
}

.mission-pillar h4 { color: var(--gold-light); margin-bottom: 8px; }
.mission-pillar p { color: rgba(255,255,255,.75); font-size: .9rem; }

/* Why Magic Works */
.why-magic { background: var(--bg-light); }

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.why-card {
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 32px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  transition: transform .25s, box-shadow .25s;
}

.why-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.why-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.why-text h4 { color: var(--primary); margin-bottom: 8px; }
.why-text p { font-size: .9rem; }

/* ---- 17. Programs Page ---- */
.program-section { padding: var(--section-py) 0; }
.program-section:nth-child(even) { background: var(--bg-light); }

.program-intro-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: center;
  margin-bottom: 64px;
}

.program-intro-grid.reverse { direction: rtl; }
.program-intro-grid.reverse > * { direction: ltr; }

.program-details { }
.program-details .section-tag { margin-bottom: 8px; }
.program-details h2 { margin-bottom: 16px; }
.program-details p { margin-bottom: 16px; }

.learn-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 24px 0;
}

.learn-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: .92rem;
  color: var(--text);
}

.learn-item svg { color: var(--gold); flex-shrink: 0; margin-top: 1px; }

.program-img-box {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 1/1.1;
  background: linear-gradient(145deg, var(--primary-pale), #c8d8ff);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  padding: 40px;
  box-shadow: var(--shadow-md);
}

.program-img-box img { width: 100%; height: 100%; object-fit: cover; }
.program-img-box p { font-size: .85rem; color: var(--text-light); font-style: italic; }

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

.prog-detail-card {
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: transform .25s, box-shadow .25s;
}

.prog-detail-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.prog-detail-card .card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.prog-detail-card h4 { color: var(--primary); margin-bottom: 8px; }
.prog-detail-card p { font-size: .88rem; }

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

.audience-card {
  text-align: center;
  padding: 28px 20px;
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  transition: transform .25s, border-color .25s;
}

.audience-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary-light);
}

.audience-card .aud-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}

.audience-card h4 { font-size: .95rem; color: var(--primary); margin-bottom: 6px; }
.audience-card p { font-size: .83rem; }

/* ---- 18. Products Page ---- */
.products-intro {
  background: var(--bg);
}

.products-category { padding: var(--section-py) 0; }
.products-category:nth-child(even) { background: var(--bg-light); }

.product-category-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 40px;
  gap: 24px;
  flex-wrap: wrap;
}

.product-category-header div { flex: 1; }

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

.product-card {
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform .25s, box-shadow .25s;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.product-img {
  aspect-ratio: 1/0.85;
  background: linear-gradient(145deg, var(--bg-alt), var(--primary-pale));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.product-img .prod-icon {
  color: var(--primary-light);
  opacity: .4;
}

.product-img-label {
  font-size: .8rem;
  color: var(--text-light);
  font-style: italic;
}

.product-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--gold);
  color: var(--primary-dark);
  font-size: .72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: .06em;
}

.product-body {
  padding: 24px;
}

.product-body h4 {
  color: var(--primary);
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.product-body p {
  font-size: .88rem;
  line-height: 1.6;
  margin-bottom: 16px;
}

.product-inquiry {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .85rem;
  font-weight: 700;
  color: var(--primary);
  transition: gap .2s, color .2s;
}

.product-inquiry:hover {
  gap: 10px;
  color: var(--gold);
}

.product-inquiry svg { transition: transform .2s; }
.product-inquiry:hover svg { transform: translateX(3px); }

/* ---- 19. Contact Page ---- */
.contact-section {
  background: var(--bg);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 80px;
  align-items: start;
}

.contact-info h2 { margin-bottom: 16px; }
.contact-info > p { margin-bottom: 32px; }

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.contact-detail-icon {
  width: 44px;
  height: 44px;
  background: var(--primary-pale);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--primary);
}

.contact-detail-text strong {
  display: block;
  font-size: .88rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 3px;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.contact-detail-text span {
  font-size: .9rem;
  color: var(--text-muted);
}

.contact-social-row {
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--border-light);
}

.contact-social-row h4 {
  font-size: .9rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.contact-social-links {
  display: flex;
  gap: 12px;
}

.contact-social-link {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}

.contact-social-link:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: translateY(-2px);
}

/* Contact Form */
.contact-form-wrap {
  background: var(--bg-light);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  box-shadow: var(--shadow-sm);
}

.contact-form-wrap h3 {
  margin-bottom: 8px;
  color: var(--primary);
}

.contact-form-wrap > p {
  font-size: .9rem;
  margin-bottom: 32px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.form-group label {
  font-size: .85rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: .02em;
}

.form-group .required { color: var(--gold); }

.form-control {
  width: 100%;
  padding: 12px 16px;
  font-size: .92rem;
  color: var(--text);
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color .2s, box-shadow .2s;
  outline: none;
  appearance: none;
}

.form-control:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(45,100,200,.12);
}

.form-control::placeholder { color: var(--text-light); }

select.form-control { cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }

textarea.form-control { resize: vertical; min-height: 130px; }

.form-submit {
  width: 100%;
  padding: 15px;
  font-size: 1rem;
  margin-top: 8px;
}

.form-note {
  text-align: center;
  font-size: .8rem;
  color: var(--text-light);
  margin-top: 16px;
}

.form-error {
  text-align: center;
  font-size: .88rem;
  font-weight: 600;
  color: var(--flag-red);
  margin-top: 14px;
}

/* Spam-trap field: invisible to people, still reachable by bots that fill in every field */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---- 20. Utility Classes ---- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

.icon-bg-blue    { background: var(--primary-pale); color: var(--primary); }
.icon-bg-gold    { background: var(--gold-pale); color: #9A6A00; }
.icon-bg-purple  { background: #F0EBFF; color: #6B3FA0; }
.icon-bg-green   { background: #ECFDF5; color: #059669; }
.icon-bg-teal    { background: #ECFEFF; color: #0891B2; }
.icon-bg-rose    { background: #FFF1F2; color: #E11D48; }

.avatar-blue   { background: var(--primary); }
.avatar-gold   { background: var(--gold); color: var(--primary-dark) !important; }
.avatar-green  { background: #059669; }
.avatar-purple { background: #7C3AED; }
.avatar-teal   { background: #0891B2; }

.divider {
  height: 1px;
  background: var(--border-light);
  margin: 0;
}

/* ---- 21. Animations ---- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-in-up {
  animation: fadeInUp .6s ease both;
}

/* ---- 22. Media Queries ---- */

/* Large tablets / smaller desktops */
@media (max-width: 1100px) {
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .mission-pillars { grid-template-columns: 1fr; }
  .about-preview-grid { gap: 48px; }
  .founder-grid { gap: 48px; }
  .program-intro-grid { gap: 48px; }
}

/* Larger header logo + nav need the hamburger menu below this width */
@media (max-width: 1200px) {
  :root { --header-h: 124px; }
  .hamburger { display: flex; order: -1; }   /* menu button first (far left), then logo, then CTA */
  .site-nav { display: none; }
  .mobile-nav { display: flex; }
  .site-header .header-inner { justify-content: flex-start; }
  .site-header .nav-cta { margin-left: auto; }
  .site-header .site-logo img { height: 104px; width: 104px; }
  .site-header .logo-text strong { font-size: 1.7rem; }
}

/* Tablet */
@media (max-width: 900px) {
  :root { --section-py: 72px; }

  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-actions { justify-content: center; }
  .hero-visual { order: -1; }
  .hero-img-frame { max-width: 360px; }
  .hero-badge-float { display: none; }
  .hero--photo .hero-content { margin: 0 auto; }

  .programs-grid { grid-template-columns: 1fr; }
  .program-photo-strip { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: 1fr; }
  .about-preview-grid { grid-template-columns: 1fr; }
  .about-img-wrap { max-width: 360px; margin: 0 auto; }
  .about-accent-box { bottom: -16px; right: 16px; }

  .contact-grid { grid-template-columns: 1fr; }
  .contact-info { order: 2; }
  .contact-form-wrap { order: 1; }

  .founder-grid { grid-template-columns: 1fr; }
  .founder-img-wrap { position: static; max-width: 320px; }

  .program-intro-grid { grid-template-columns: 1fr; }
  .program-intro-grid.reverse { direction: ltr; }
  .program-cards-grid { grid-template-columns: 1fr 1fr; }
  .audience-grid { grid-template-columns: 1fr 1fr; }

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

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

  .form-row { grid-template-columns: 1fr; }

  .contact-form-wrap { padding: 32px 24px; }
}

/* Mobile */
@media (max-width: 600px) {
  :root {
    --section-py: 56px;
    --header-h: 100px;
  }

  .container { padding: 0 16px; }

  .skills-grid { grid-template-columns: 1fr; }
  .program-photo-strip { grid-template-columns: repeat(2, 1fr); }
  .program-cards-grid { grid-template-columns: 1fr; }
  .audience-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr; }

  .program-card-header { padding: 32px 24px; }
  .program-card-body { padding: 24px; }

  .footer-main { flex-direction: column; text-align: center; }
  .footer-main .site-logo img { height: 104px; width: 104px; }
  .footer-contact-item { justify-content: center; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-bottom-links { justify-content: center; }

  .hero-actions { flex-wrap: wrap; justify-content: center; }
  .cta-actions { flex-direction: column; align-items: center; }

  .logo-text { display: none; }
  .site-header .site-logo img { height: 80px; width: 80px; }
  .site-header .header-inner { padding: 0 12px; gap: 10px; }
  .site-header .nav-cta { padding: 10px 16px; font-size: .9rem; }

  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }

  .contact-form-wrap { padding: 24px 16px; }
}
