/* ============================================================
   Happy Kids Daycare Center — Shared Stylesheet
   Fonts: Fredoka (display) + Nunito (body) via Google Fonts
   ============================================================ */

/* ── Imports ─────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;500;600;700&family=Nunito:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

/* ── CSS Custom Properties ───────────────────────────────── */
:root {
  /* Brand Colors */
  --yellow:        #FFCE3A;
  --yellow-light:  #FFF6CC;
  --yellow-mid:    #FFE480;
  --blue:          #5BBFF5;
  --blue-light:    #DAF1FD;
  --blue-mid:      #A8DDFB;
  --coral:         #FF8C69;
  --coral-light:   #FFE6DC;
  --coral-mid:     #FFBFA8;
  --green:         #6AC26F;
  --green-light:   #D8F2DC;
  --green-mid:     #A8E0AC;

  /* Neutrals */
  --bg:            #FFFCF4;
  --white:         #FFFEF8;
  --text:          #2D2820;
  --text-medium:   #5C5247;
  --text-light:    #8C8070;
  --border:        #EDE8DC;

  /* Typography */
  --font-display:  'Fredoka', sans-serif;
  --font-body:     'Nunito', sans-serif;

  /* Spacing scale (8pt base) */
  --s-1:  0.25rem;   /* 4px  */
  --s-2:  0.5rem;    /* 8px  */
  --s-3:  0.75rem;   /* 12px */
  --s-4:  1rem;      /* 16px */
  --s-5:  1.25rem;   /* 20px */
  --s-6:  1.5rem;    /* 24px */
  --s-7:  1.75rem;   /* 28px */
  --s-8:  2rem;      /* 32px */
  --s-10: 2.5rem;    /* 40px */
  --s-12: 3rem;      /* 48px */
  --s-16: 4rem;      /* 64px */
  --s-20: 5rem;      /* 80px */
  --s-24: 6rem;      /* 96px */

  /* Border Radius */
  --r-sm:   0.5rem;
  --r-md:   1rem;
  --r-lg:   1.5rem;
  --r-xl:   2rem;
  --r-2xl:  3rem;
  --r-full: 9999px;

  /* Shadows */
  --shadow-sm:  0 2px 8px rgba(45,40,32,0.08);
  --shadow-md:  0 4px 20px rgba(45,40,32,0.10);
  --shadow-lg:  0 8px 36px rgba(45,40,32,0.13);
  --shadow-xl:  0 16px 56px rgba(45,40,32,0.15);

  /* Transitions */
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.36, 0.64, 1);
  --t-fast:   150ms;
  --t-mid:    260ms;
  --t-slow:   400ms;

  /* Layout */
  --max-w: 1180px;
  --nav-h: 72px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

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

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

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  font-family: var(--font-body);
  border: none;
  background: none;
}

/* ── Language Toggle (CSS default: show Spanish) ─────────── */
.lang-en { display: none; }
.lang-es { display: inline; }

/* Block-level lang elements */
.lang-es.lang-block,
.lang-en.lang-block { display: block; }
.lang-en.lang-block { display: none; }

/* ── Typography Scale ─────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--text);
}

.display-xl {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
}

.display-lg {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
}

h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.15rem; }

.lead {
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 500;
  line-height: 1.7;
  color: var(--text-medium);
  max-width: 60ch;
}

p {
  max-width: 70ch;
  line-height: 1.7;
}

.label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light);
}

/* ── Layout Utilities ─────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--s-6);
}

@media (max-width: 640px) {
  .container { padding-inline: var(--s-4); }
}

.section {
  padding-block: var(--s-20);
}

.section-sm {
  padding-block: var(--s-12);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-8);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-6);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-5);
}

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

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.text-center { text-align: center; }
.text-left   { text-align: left; }

/* ── Color Backgrounds ───────────────────────────────────── */
.bg-white      { background: var(--white); }
.bg-yellow     { background: var(--yellow-light); }
.bg-blue       { background: var(--blue-light); }
.bg-coral      { background: var(--coral-light); }
.bg-green      { background: var(--green-light); }
.bg-yellow-solid { background: var(--yellow); }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: 0.85em 1.8em;
  border-radius: var(--r-full);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  transition: transform var(--t-mid) var(--ease-out),
              box-shadow var(--t-mid) var(--ease-out),
              background var(--t-fast);
  cursor: pointer;
  text-decoration: none;
  border: 2px solid transparent;
  letter-spacing: 0.01em;
}

.btn:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

.btn-primary {
  background: var(--yellow);
  color: var(--text);
  box-shadow: 0 4px 0 0 rgba(180,130,0,0.35), var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 0 rgba(180,130,0,0.35), var(--shadow-lg);
}

.btn-primary:active {
  transform: translateY(1px);
  box-shadow: 0 2px 0 0 rgba(180,130,0,0.35), var(--shadow-sm);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--text);
}

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

.btn-blue {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 4px 0 0 rgba(40,120,200,0.3), var(--shadow-md);
}

.btn-blue:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 0 rgba(40,120,200,0.3), var(--shadow-lg);
}

.btn-coral {
  background: var(--coral);
  color: var(--white);
  box-shadow: 0 4px 0 0 rgba(180,60,20,0.25), var(--shadow-md);
}

.btn-coral:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 0 rgba(180,60,20,0.25), var(--shadow-lg);
}

.btn-lg {
  font-size: 1.2rem;
  padding: 1em 2.2em;
}

.btn-sm {
  font-size: 0.9rem;
  padding: 0.6em 1.4em;
}

/* ── Navigation ───────────────────────────────────────────── */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(255, 252, 244, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1.5px solid var(--border);
  transition: box-shadow var(--t-mid) var(--ease-out);
}

.site-nav.scrolled {
  box-shadow: var(--shadow-md);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--s-6);
  gap: var(--s-4);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo-mark {
  width: 42px;
  height: 42px;
  background: var(--yellow);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  box-shadow: 0 2px 0 0 rgba(180,130,0,0.3);
  flex-shrink: 0;
}

.nav-logo-text {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}

.nav-logo-sub {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-light);
  font-family: var(--font-body);
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--s-1);
}

.nav-links a {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-medium);
  padding: var(--s-2) var(--s-4);
  border-radius: var(--r-full);
  transition: background var(--t-fast), color var(--t-fast);
  text-decoration: none;
  white-space: nowrap;
}

.nav-links a:hover {
  background: var(--yellow-light);
  color: var(--text);
}

.nav-links a.active {
  background: var(--yellow);
  color: var(--text);
  font-weight: 600;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  flex-shrink: 0;
}

/* Language Toggle Button */
.lang-toggle-btn {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.35em 0.9em;
  border-radius: var(--r-full);
  border: 2px solid var(--blue);
  color: var(--blue);
  background: transparent;
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast);
  white-space: nowrap;
}

.lang-toggle-btn:hover {
  background: var(--blue);
  color: var(--white);
  transform: scale(1.05);
}

.lang-toggle-btn:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

/* Mobile menu button */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.menu-toggle span {
  display: block;
  height: 2.5px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--t-mid) var(--ease-out), opacity var(--t-mid);
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(8.75px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-8.75px) rotate(-45deg);
}

/* Nav enroll button */
.nav-enroll {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: 0.55em 1.3em;
  border-radius: var(--r-full);
  background: var(--coral);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  box-shadow: 0 3px 0 0 rgba(180,60,20,0.25);
  transition: transform var(--t-mid) var(--ease-out), box-shadow var(--t-mid) var(--ease-out);
  text-decoration: none;
  white-space: nowrap;
}

.nav-enroll:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 0 0 rgba(180,60,20,0.25), var(--shadow-md);
}

/* Page offset for fixed nav */
.page-wrap {
  padding-top: var(--nav-h);
}

/* ── Wavy Section Dividers ────────────────────────────────── */
.wave-divider {
  display: block;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.wave-divider svg {
  display: block;
  width: 100%;
}

/* ── Hero Section ─────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: calc(100svh - var(--nav-h));
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(145deg, var(--yellow-light) 0%, var(--bg) 55%, var(--blue-light) 100%);
}

.hero-blob-1,
.hero-blob-2,
.hero-blob-3 {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
}

.hero-blob-1 {
  width: 500px;
  height: 500px;
  background: var(--yellow);
  top: -100px;
  right: -80px;
}

.hero-blob-2 {
  width: 380px;
  height: 380px;
  background: var(--blue);
  bottom: -60px;
  left: -60px;
}

.hero-blob-3 {
  width: 300px;
  height: 300px;
  background: var(--coral);
  top: 40%;
  left: 40%;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--s-6);
  padding-block: var(--s-16);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-12);
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: var(--s-6);
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--r-full);
  padding: 0.4em 1em;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-medium);
  width: fit-content;
  box-shadow: var(--shadow-sm);
}

.hero-eyebrow .dot {
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.6; transform: scale(0.85); }
}

.hero-title {
  font-size: clamp(2.2rem, 5.5vw, 3.8rem);
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  color: var(--text);
}

.hero-title .accent {
  position: relative;
  display: inline-block;
  color: var(--text);
}

.hero-title .accent::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  right: 0;
  height: 8px;
  background: var(--yellow);
  z-index: -1;
  border-radius: 4px;
  transform: rotate(-1deg);
}

.hero-lead {
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.7;
  color: var(--text-medium);
  max-width: 52ch;
  font-weight: 500;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-4);
  align-items: center;
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  font-size: 0.88rem;
  color: var(--text-medium);
  font-weight: 600;
}

.hero-stars {
  color: var(--yellow);
  font-size: 1rem;
  letter-spacing: -1px;
}

.hero-image-wrap {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-img-main {
  width: 100%;
  max-width: 500px;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: var(--r-2xl);
  box-shadow: var(--shadow-xl);
  transform: rotate(1.5deg);
  transition: transform var(--t-slow) var(--ease-out);
}

.hero-img-main:hover {
  transform: rotate(0deg) scale(1.01);
}

.hero-float-card {
  position: absolute;
  background: var(--white);
  border-radius: var(--r-lg);
  padding: var(--s-4) var(--s-5);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: var(--s-3);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
  white-space: nowrap;
  animation: float-card 4s ease-in-out infinite;
}

.hero-float-card.card-1 {
  top: 12%;
  left: -20px;
  animation-delay: 0s;
}

.hero-float-card.card-2 {
  bottom: 18%;
  right: -10px;
  animation-delay: 2s;
}

.hero-float-card .card-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

@keyframes float-card {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

/* ── Trust Badges ─────────────────────────────────────────── */
.trust-row {
  padding-block: var(--s-6);
  background: var(--white);
  border-block: 1.5px solid var(--border);
}

.trust-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-8);
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--s-6);
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-medium);
}

.trust-badge-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.trust-divider {
  width: 1.5px;
  height: 32px;
  background: var(--border);
}

@media (max-width: 640px) {
  .trust-divider { display: none; }
}

/* ── Section Headers ──────────────────────────────────────── */
.section-header {
  text-align: center;
  margin-bottom: var(--s-12);
}

.section-header .label {
  margin-bottom: var(--s-3);
}

.section-header h2 {
  margin-bottom: var(--s-4);
}

.section-header .lead {
  margin-inline: auto;
}

/* ── Cards ────────────────────────────────────────────────── */
.card {
  background: var(--white);
  border-radius: var(--r-xl);
  padding: var(--s-8);
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-mid) var(--ease-out),
              box-shadow var(--t-mid) var(--ease-out);
}

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

.card-icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: var(--r-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--s-5);
  font-size: 2rem;
}

/* ── Services Section ─────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-6);
}

.service-card {
  background: var(--white);
  border-radius: var(--r-xl);
  padding: var(--s-8);
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-mid) var(--ease-out),
              box-shadow var(--t-mid) var(--ease-out);
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
}

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

.service-card h3 {
  font-size: 1.25rem;
}

.service-card p {
  color: var(--text-medium);
  line-height: 1.65;
  font-size: 0.97rem;
}

/* ── Philosophy Section ───────────────────────────────────── */
.philosophy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-8);
  align-items: start;
}

.philosophy-card {
  background: var(--white);
  border-radius: var(--r-xl);
  padding: var(--s-8);
  border: 2px solid var(--border);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.philosophy-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  border-radius: var(--r-xl) var(--r-xl) 0 0;
}

.philosophy-card.montessori::before { background: var(--blue); }
.philosophy-card.reggio::before     { background: var(--green); }

.philosophy-card h3 {
  margin-top: var(--s-2);
  margin-bottom: var(--s-4);
}

.philosophy-card p {
  color: var(--text-medium);
  line-height: 1.7;
}

/* ── Testimonials ─────────────────────────────────────────── */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-6);
}

.testimonial-card {
  background: var(--white);
  border-radius: var(--r-xl);
  padding: var(--s-7);
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  transition: transform var(--t-mid) var(--ease-out),
              box-shadow var(--t-mid) var(--ease-out);
}

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

.testimonial-stars {
  color: var(--yellow);
  font-size: 1.1rem;
  letter-spacing: 1px;
}

.testimonial-quote {
  font-size: 0.97rem;
  line-height: 1.75;
  color: var(--text-medium);
  font-style: italic;
  flex: 1;
}

.testimonial-quote::before {
  content: '\201C';
  font-family: Georgia, serif;
  font-size: 2.5rem;
  color: var(--yellow);
  line-height: 0;
  vertical-align: -0.6rem;
  margin-right: var(--s-1);
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.testimonial-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
}

.testimonial-location {
  font-size: 0.82rem;
  color: var(--text-light);
}

/* ── Gallery ──────────────────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: var(--s-4);
}

.gallery-grid .g-span-2 {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-item {
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-mid) var(--ease-out),
              box-shadow var(--t-mid) var(--ease-out);
}

.gallery-item:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-lg);
  z-index: 1;
  position: relative;
}

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

/* Programs page gallery (bigger grid) */
.gallery-grid-full {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5);
}

.gallery-grid-full .g-wide {
  grid-column: span 2;
}

.gallery-grid-full .gallery-item {
  aspect-ratio: 4/3;
}

/* ── Staff Bios ───────────────────────────────────────────── */
.staff-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-10);
}

.staff-card {
  display: flex;
  flex-direction: column;
  gap: var(--s-5);
}

.staff-photo-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 3/4;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.staff-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.staff-photo-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--r-xl);
  border: 2px solid rgba(255,255,255,0.3);
}

.staff-photo-badge {
  position: absolute;
  bottom: var(--s-4);
  left: var(--s-4);
  background: var(--white);
  border-radius: var(--r-lg);
  padding: var(--s-2) var(--s-4);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--text);
  box-shadow: var(--shadow-md);
}

.staff-info h3 {
  font-size: 1.5rem;
  margin-bottom: var(--s-1);
}

.staff-role {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--s-4);
}

.staff-bio {
  color: var(--text-medium);
  line-height: 1.75;
  font-size: 0.97rem;
}

/* ── Programs Page ────────────────────────────────────────── */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-6);
}

.program-card {
  background: var(--white);
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-mid) var(--ease-out),
              box-shadow var(--t-mid) var(--ease-out);
  display: flex;
  flex-direction: column;
}

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

.program-card-header {
  padding: var(--s-8);
  position: relative;
  overflow: hidden;
}

.program-card-body {
  padding: var(--s-6) var(--s-8) var(--s-8);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
}

.program-card-body p {
  color: var(--text-medium);
  font-size: 0.97rem;
  line-height: 1.7;
}

.program-num {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 700;
  opacity: 0.12;
  position: absolute;
  top: var(--s-3);
  right: var(--s-6);
  line-height: 1;
}

/* ── Love Section (Programs) ──────────────────────────────── */
.love-section {
  text-align: center;
  position: relative;
  overflow: hidden;
}

.love-section::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: var(--yellow);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.12;
  filter: blur(80px);
  pointer-events: none;
}

.love-title {
  font-size: clamp(2rem, 5vw, 3.8rem);
  font-family: var(--font-display);
  font-weight: 700;
  margin-bottom: var(--s-5);
  line-height: 1.1;
}

/* ── Contact Page ─────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: var(--s-10);
  align-items: start;
}

.contact-form {
  background: var(--white);
  border-radius: var(--r-xl);
  padding: var(--s-10);
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-md);
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  margin-bottom: var(--s-5);
}

.form-field label {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.85em 1.1em;
  border: 2px solid var(--border);
  border-radius: var(--r-md);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  background: var(--bg);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  appearance: none;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(91,191,245,0.2);
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--text-light);
}

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

.form-field .required-star {
  color: var(--coral);
  margin-left: 2px;
}

.form-submit-wrap {
  margin-top: var(--s-2);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--s-5);
}

.contact-info-card {
  background: var(--white);
  border-radius: var(--r-xl);
  padding: var(--s-6);
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: var(--s-4);
}

.contact-info-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.contact-info-text strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 2px;
}

.contact-info-text span,
.contact-info-text a {
  font-size: 1rem;
  color: var(--text);
  line-height: 1.5;
  font-weight: 500;
}

.contact-info-text a:hover {
  color: var(--blue);
  text-decoration: underline;
}

.map-embed {
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1.5px solid var(--border);
  aspect-ratio: 4/3;
}

.map-embed iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: none;
}

/* ── Page Hero (inner pages) ──────────────────────────────── */
.page-hero {
  padding-block: var(--s-16) var(--s-12);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.page-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin-inline: auto;
  padding-inline: var(--s-6);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-5);
}

.page-hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.1;
}

.page-hero .lead {
  text-align: center;
}

/* ── CTA Banner ───────────────────────────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, var(--yellow) 0%, var(--coral-mid) 100%);
  border-radius: var(--r-2xl);
  padding: var(--s-16) var(--s-12);
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.cta-banner::before {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  top: -100px;
  right: -80px;
}

.cta-banner::after {
  content: '';
  position: absolute;
  width: 200px;
  height: 200px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  bottom: -80px;
  left: -50px;
}

.cta-banner h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: var(--s-4);
  position: relative;
  z-index: 1;
  color: var(--text);
}

.cta-banner p {
  font-size: 1.1rem;
  color: var(--text-medium);
  margin-bottom: var(--s-8);
  margin-inline: auto;
  max-width: 50ch;
  position: relative;
  z-index: 1;
}

.cta-banner .btn {
  position: relative;
  z-index: 1;
}

/* ── Footer ───────────────────────────────────────────────── */
.site-footer {
  background: var(--text);
  color: rgba(255,252,244,0.85);
  padding-top: var(--s-16);
  padding-bottom: var(--s-8);
  margin-top: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1.2fr 1.5fr;
  gap: var(--s-10);
  padding-bottom: var(--s-12);
  border-bottom: 1px solid rgba(255,252,244,0.12);
}

.footer-brand .nav-logo-mark {
  background: var(--yellow);
}

.footer-brand .nav-logo-text {
  color: var(--white);
}

.footer-brand .nav-logo-sub {
  color: rgba(255,252,244,0.6);
}

.footer-tagline {
  margin-top: var(--s-5);
  font-size: 0.95rem;
  line-height: 1.65;
  color: rgba(255,252,244,0.7);
  max-width: 34ch;
}

.footer-social {
  display: flex;
  gap: var(--s-3);
  margin-top: var(--s-5);
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: var(--r-md);
  background: rgba(255,252,244,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: rgba(255,252,244,0.8);
  transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast);
  text-decoration: none;
}

.footer-social a:hover {
  background: var(--yellow);
  color: var(--text);
  transform: translateY(-2px);
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: var(--s-5);
  letter-spacing: 0.02em;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}

.footer-links a {
  font-size: 0.93rem;
  color: rgba(255,252,244,0.7);
  text-decoration: none;
  transition: color var(--t-fast), transform var(--t-fast);
  display: inline-block;
  line-height: 1.4;
}

.footer-links a:hover {
  color: var(--yellow);
  transform: translateX(3px);
}

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--s-3);
  font-size: 0.92rem;
  color: rgba(255,252,244,0.7);
  line-height: 1.5;
}

.footer-contact-item .icon {
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-contact-item a {
  color: rgba(255,252,244,0.7);
  transition: color var(--t-fast);
}

.footer-contact-item a:hover {
  color: var(--yellow);
}

.footer-bottom {
  padding-top: var(--s-6);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--s-4);
  font-size: 0.85rem;
  color: rgba(255,252,244,0.4);
}

/* ── Fade-In Scroll Animations ───────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--t-slow) var(--ease-out),
              transform var(--t-slow) var(--ease-out);
}

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

.fade-in-delay-1 { transition-delay: 100ms; }
.fade-in-delay-2 { transition-delay: 200ms; }
.fade-in-delay-3 { transition-delay: 300ms; }
.fade-in-delay-4 { transition-delay: 400ms; }

/* ── Decorative Stars/Shapes ─────────────────────────────── */
.deco-star {
  font-size: 1.5rem;
  position: absolute;
  pointer-events: none;
  opacity: 0.25;
  animation: spin-slow 20s linear infinite;
}

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ── Welcome section layout ───────────────────────────────── */
.welcome-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-12);
  align-items: center;
}

.welcome-image-wrap {
  position: relative;
}

.welcome-img {
  width: 100%;
  border-radius: var(--r-2xl);
  object-fit: cover;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow-xl);
  transform: rotate(-1.5deg);
  transition: transform var(--t-slow) var(--ease-out);
}

.welcome-img:hover { transform: rotate(0deg); }

.welcome-float {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--yellow);
  border-radius: var(--r-xl);
  padding: var(--s-5) var(--s-6);
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.welcome-float-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}

.welcome-float-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-medium);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  max-width: 10ch;
}

.welcome-content {
  display: flex;
  flex-direction: column;
  gap: var(--s-6);
}

.welcome-content h2 {
  line-height: 1.15;
}

.welcome-content p {
  color: var(--text-medium);
  line-height: 1.75;
}

/* ── Mission / Vision box ─────────────────────────────────── */
.mission-box {
  background: var(--white);
  border-radius: var(--r-xl);
  padding: var(--s-10);
  border: 2px solid var(--yellow);
  box-shadow: var(--shadow-md);
  position: relative;
}

.mission-box::before {
  content: '"';
  font-family: Georgia, serif;
  font-size: 8rem;
  color: var(--yellow);
  position: absolute;
  top: -20px;
  left: var(--s-8);
  line-height: 1;
  opacity: 0.4;
}

.mission-box p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-medium);
  position: relative;
  z-index: 1;
}

/* ── Location blurb ───────────────────────────────────────── */
.location-card {
  background: var(--blue-light);
  border-radius: var(--r-xl);
  padding: var(--s-8);
  border: 1.5px solid var(--blue-mid);
  display: flex;
  align-items: center;
  gap: var(--s-8);
}

.location-icon-wrap {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  flex-shrink: 0;
}

/* ── Scroll-to-top gap helper ─────────────────────────────── */
.spacer { height: var(--s-8); }

/* ── Responsive ───────────────────────────────────────────── */

/* Tablet / medium */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-image-wrap {
    order: -1;
  }

  .hero-img-main {
    max-width: 380px;
    aspect-ratio: 16/10;
  }

  .hero-float-card.card-1 { top: 5%; left: 0; }
  .hero-float-card.card-2 { bottom: 5%; right: 0; }

  .hero-actions { justify-content: center; }
  .hero-trust   { justify-content: center; }
  .hero-lead    { margin-inline: auto; }

  .grid-2,
  .welcome-grid,
  .philosophy-grid,
  .testimonials-grid,
  .contact-grid { grid-template-columns: 1fr; }

  .services-grid,
  .programs-grid { grid-template-columns: 1fr; }

  .staff-grid { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 180px;
  }

  .gallery-grid .g-span-2 { grid-column: span 2; }

  .gallery-grid-full {
    grid-template-columns: 1fr 1fr;
  }

  .gallery-grid-full .g-wide { grid-column: span 2; }

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

  .footer-grid > :first-child {
    grid-column: span 2;
  }

  .nav-links a span.es,
  .nav-links a span.en { display: inline; }
}

/* Mobile */
@media (max-width: 640px) {
  :root {
    --nav-h: 64px;
  }

  .menu-toggle { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: rgba(255,252,244,0.97);
    backdrop-filter: blur(16px);
    flex-direction: column;
    align-items: stretch;
    padding: var(--s-4);
    gap: var(--s-2);
    border-bottom: 1.5px solid var(--border);
    box-shadow: var(--shadow-lg);
  }

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

  .nav-links a {
    padding: var(--s-4);
    border-radius: var(--r-lg);
    font-size: 1.05rem;
  }

  .nav-enroll {
    display: none;
  }

  .hero { min-height: auto; padding-block: var(--s-12) var(--s-8); }

  .hero-img-main { max-width: 100%; }

  .hero-float-card { display: none; }

  .services-grid { grid-template-columns: 1fr; }
  .programs-grid { grid-template-columns: 1fr; }

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

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 130px;
  }

  .gallery-grid .g-span-2 { grid-column: span 2; grid-row: span 1; }

  .gallery-grid-full {
    grid-template-columns: 1fr;
  }

  .gallery-grid-full .g-wide { grid-column: span 1; }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--s-8);
  }

  .footer-grid > :first-child { grid-column: span 1; }

  .footer-bottom { flex-direction: column; text-align: center; }

  .cta-banner { padding: var(--s-10) var(--s-6); }

  .contact-form { padding: var(--s-6); }

  .location-card { flex-direction: column; text-align: center; }

  .mission-box { padding: var(--s-8); }

  .section { padding-block: var(--s-12); }
}

/* ════════════════════════════════════════════════════════════
   ENHANCED ANIMATIONS
   ════════════════════════════════════════════════════════════ */

/* ── Slide-in variants ───────────────────────────────────── */
.fade-in-left {
  opacity: 0;
  transform: translateX(-44px);
  transition: opacity 0.65s var(--ease-out),
              transform 0.65s var(--ease-out);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(44px);
  transition: opacity 0.65s var(--ease-out),
              transform 0.65s var(--ease-out);
}

.fade-in-scale {
  opacity: 0;
  transform: scale(0.88) translateY(16px);
  transition: opacity 0.55s var(--ease-out),
              transform 0.6s var(--ease-spring);
}

.fade-in-pop {
  opacity: 0;
  transform: scale(0.7) translateY(10px);
  transition: opacity 0.4s var(--ease-out),
              transform 0.55s var(--ease-spring);
}

.fade-in-left.visible,
.fade-in-right.visible,
.fade-in-scale.visible,
.fade-in-pop.visible {
  opacity: 1;
  transform: none;
}

/* ── Hero entrance animations ─────────────────────────────── */
.hero-title {
  animation: hero-title-rise 0.9s var(--ease-out) 0.3s both;
}

@keyframes hero-title-rise {
  from { opacity: 0; transform: translateY(36px); }
  to   { opacity: 1; transform: none; }
}

/* Accent highlight underline draws in via JS class on body */
.hero-title .accent::after {
  right: auto !important;
  width: 0;
  transition: width 0.8s var(--ease-out) 0s;
}

body.hero-accent-visible .hero-title .accent::after {
  width: 100%;
}

.hero-eyebrow {
  animation: slide-down-fade 0.7s var(--ease-spring) 0.1s both;
}

@keyframes slide-down-fade {
  from { opacity: 0; transform: translateY(-14px) scale(0.95); }
  to   { opacity: 1; transform: none; }
}

.hero-lead {
  animation: rise-fade 0.8s var(--ease-out) 0.55s both;
}

.hero-actions {
  animation: rise-fade 0.8s var(--ease-out) 0.75s both;
}

.hero-trust {
  animation: rise-fade 0.8s var(--ease-out) 0.95s both;
}

@keyframes rise-fade {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}

/* ── Hero image idle float ───────────────────────────────── */
.hero-image-wrap {
  animation: img-idle-float 6s ease-in-out infinite;
}

@keyframes img-idle-float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}

.hero-img-main {
  will-change: transform;
  transition: transform 0.12s linear;
}

/* ── Hero blob drift ──────────────────────────────────────── */
.hero-blob-1 { animation: blob-drift-1 14s ease-in-out infinite; }
.hero-blob-2 { animation: blob-drift-2 18s ease-in-out infinite; }
.hero-blob-3 { animation: blob-drift-3 11s ease-in-out infinite; }

@keyframes blob-drift-1 {
  0%, 100% { transform: translate(0,     0)    scale(1);    }
  33%       { transform: translate(-28px, 22px) scale(1.06); }
  66%       { transform: translate(18px, -18px) scale(0.96); }
}

@keyframes blob-drift-2 {
  0%, 100% { transform: translate(0,    0)     scale(1);    }
  40%       { transform: translate(22px, -24px) scale(1.07); }
  70%       { transform: translate(-18px, 20px) scale(0.95); }
}

@keyframes blob-drift-3 {
  0%, 100% { transform: translate(0,     0)     scale(1);   }
  50%       { transform: translate(-22px, -26px) scale(1.1); }
}

/* ── Sparkle dots (injected by JS) ───────────────────────── */
.sparkle {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  border-radius: 50%;
  opacity: 0;
  animation: sparkle-float var(--dur, 7s) ease-in-out var(--delay, 0s) infinite;
}

@keyframes sparkle-float {
  0%   { opacity: 0;    transform: translateY(0)    scale(0.5) rotate(0deg);   }
  15%  { opacity: 0.55; }
  85%  { opacity: 0.3;  }
  100% { opacity: 0;    transform: translateY(-70px) scale(1.3) rotate(120deg); }
}

/* ── Trust badges — staggered pop (JS adds .badge-visible) ── */
.trust-badge {
  opacity: 0;
  transform: scale(0.75) translateY(10px);
  transition: opacity 0.45s var(--ease-out),
              transform 0.5s var(--ease-spring);
}

.trust-badge.badge-visible {
  opacity: 1;
  transform: none;
}

/* ── Section header underline draw ───────────────────────── */
.section-header h2 {
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 4px;
  background: var(--yellow);
  border-radius: 2px;
  transition: width 0.75s var(--ease-out) 0.25s;
}

.section-header.hdr-visible h2::after {
  width: 55%;
}

/* ── Philosophy card top-bar draw ────────────────────────── */
.philosophy-card::before {
  right: auto !important;
  width: 0;
  transition: width 0.85s var(--ease-out) 0.15s;
}

.philosophy-card.bar-visible::before {
  width: 100%;
}

/* ── Gallery shimmer sweep on hover ──────────────────────── */
.gallery-item {
  position: relative;
  overflow: hidden;
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    108deg,
    transparent 25%,
    rgba(255, 255, 255, 0.38) 50%,
    transparent 75%
  );
  transform: translateX(-110%);
  transition: transform 0.65s ease;
  pointer-events: none;
  border-radius: inherit;
}

.gallery-item:hover::after {
  transform: translateX(110%);
}

.gallery-item img {
  transition: transform 0.55s var(--ease-out),
              filter       0.35s ease;
}

.gallery-item:hover img {
  transform: scale(1.07);
  filter: brightness(1.07) saturate(1.12);
}

/* ── Staff photo hover zoom ──────────────────────────────── */
.staff-photo-wrap {
  overflow: hidden;
}

.staff-photo-wrap img {
  transition: transform 0.65s var(--ease-out);
}

.staff-photo-wrap:hover img {
  transform: scale(1.05);
}

/* ── 3D card tilt (transform set by JS) ──────────────────── */
.tilt-card {
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 0.25s var(--ease-out),
              box-shadow 0.25s var(--ease-out) !important;
}

.tilt-card:hover {
  box-shadow: var(--shadow-xl) !important;
}

/* ── Card icon bounce on hover ───────────────────────────── */
.card-icon-wrap {
  transition: transform 0.45s var(--ease-spring);
}

.service-card:hover .card-icon-wrap,
.program-card:hover .card-icon-wrap {
  transform: rotate(-10deg) scale(1.18);
}

/* ── Testimonial quote mark pop ──────────────────────────── */
.testimonial-card.quote-animate .testimonial-quote::before {
  animation: quote-pop 0.55s var(--ease-spring) 0.1s both;
}

@keyframes quote-pop {
  0%   { opacity: 0; transform: scale(0.3) rotate(-15deg); }
  60%  { transform: scale(1.2) rotate(4deg); }
  100% { opacity: 1; transform: scale(1) rotate(0deg); }
}

/* ── Nav logo mark spin on hover ─────────────────────────── */
.nav-logo-mark {
  transition: transform 0.4s var(--ease-spring),
              box-shadow 0.3s;
}

.nav-logo:hover .nav-logo-mark {
  transform: rotate(-10deg) scale(1.1);
  box-shadow: 0 4px 0 0 rgba(180,130,0,0.4), var(--shadow-md);
}

/* ── CTA banner primary button pulse ─────────────────────── */
.cta-pulse {
  animation: cta-pulse-ring 2.8s ease-out infinite 0s;
}

@keyframes cta-pulse-ring {
  0%   { box-shadow: 0 0 0 0   rgba(45,40,32,0.2),  0 4px 0 0 rgba(180,130,0,0.35), var(--shadow-md); }
  60%  { box-shadow: 0 0 0 14px rgba(45,40,32,0),   0 4px 0 0 rgba(180,130,0,0.35), var(--shadow-md); }
  100% { box-shadow: 0 0 0 0   rgba(45,40,32,0),    0 4px 0 0 rgba(180,130,0,0.35), var(--shadow-md); }
}

/* ── Page hero entrances ─────────────────────────────────── */
.page-hero h1 {
  animation: hero-title-rise 0.85s var(--ease-out) 0.2s both;
}

.page-hero .label {
  animation: slide-down-fade 0.6s var(--ease-spring) 0.05s both;
}

.page-hero .lead {
  animation: rise-fade 0.75s var(--ease-out) 0.45s both;
}

/* ── Footer link arrow reveal ────────────────────────────── */
.footer-links a {
  position: relative;
}

.footer-links a::before {
  content: '→';
  position: absolute;
  left: -16px;
  opacity: 0;
  font-size: 0.8rem;
  transition: opacity 0.2s, transform 0.2s var(--ease-out);
  transform: translateX(-4px);
}

.footer-links a:hover::before {
  opacity: 1;
  transform: translateX(0);
}

/* ── Mobile animation adjustments ───────────────────────────
   Smaller slide distances so they feel snappy, not sweeping,
   on a 375px viewport.                                        */
@media (max-width: 640px) {
  .fade-in-left  { transform: translateX(-22px); }
  .fade-in-right { transform: translateX(22px); }
  .fade-in-scale { transform: scale(0.93) translateY(10px); }
}

/* Touch tap bounce for cards (class added/removed by JS) */
.card-tap {
  animation: card-tap-bounce 0.35s var(--ease-spring) both;
}

@keyframes card-tap-bounce {
  0%   { transform: scale(1); }
  40%  { transform: scale(0.96); }
  100% { transform: scale(1); }
}

/* Gallery shimmer triggered by JS on touchstart */
.gallery-item.touch-shimmer::after {
  transform: translateX(110%);
  transition: transform 0.55s ease;
}

/* ── Reduced Motion — override everything ─────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .fade-in,
  .fade-in-left,
  .fade-in-right,
  .fade-in-scale,
  .fade-in-pop    { opacity: 1; transform: none; }

  .trust-badge    { opacity: 1; transform: none; }
  .hero-image-wrap { animation: none; }
}
