/* ============================================
   INSPIRED MINDS LEARNING CO-OP
   Premium Redesign — MASON / Webink Solutions
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
  --green: #7BA87B;
  --green-dark: #5e8a5e;
  --green-light: #a3c9a3;
  --teal: #6BA3A3;
  --teal-dark: #4d8585;
  --teal-light: #8fc4c4;
  --cream: #F5F1E8;
  --cream-dark: #e8e0d0;
  --coral: #E8997A;
  --coral-dark: #d47a5a;
  --coral-light: #f0b89e;
  --gold: #D4A574;
  --navy: #1A2A4A;
  --navy-light: #2a3f66;
  --text: #2C2C2C;
  --text-muted: #6b7280;
  --white: #ffffff;
  --off-white: #fafaf8;
  --border: #e5e7eb;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.15);
  --radius: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-display: 'Lora', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

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

body {
  font-family: var(--font-body);
  line-height: 1.6;
  color: var(--text);
  background: var(--off-white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

h1, h2, h3, h4, h5 { font-family: var(--font-display); color: var(--navy); line-height: 1.25; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.5rem); font-weight: 600; }
h3 { font-size: clamp(1.15rem, 2vw, 1.5rem); font-weight: 600; }
p { line-height: 1.75; color: var(--text-muted); }

ul { list-style: none; }

/* --- Utility --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.text-center { text-align: center; }
.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 0.75rem;
}
.section-title { margin-bottom: 1rem; }
.section-subtitle {
  max-width: 640px;
  margin: 0 auto 3rem;
  font-size: 1.1rem;
  color: var(--text-muted);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.8rem;
  border: none;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  line-height: 1.4;
}
.btn-primary {
  background: linear-gradient(135deg, var(--teal), var(--green));
  color: var(--white);
  box-shadow: 0 4px 16px rgba(107,163,163,0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(107,163,163,0.45);
  color: var(--white);
}
.btn-secondary {
  background: var(--white);
  color: var(--navy);
  border: 2px solid var(--white);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.9);
  transform: translateY(-2px);
  color: var(--navy);
}
.btn-outline {
  background: transparent;
  color: var(--teal);
  border: 2px solid var(--teal);
}
.btn-outline:hover {
  background: var(--teal);
  color: var(--white);
  transform: translateY(-2px);
}
.btn-coral {
  background: linear-gradient(135deg, var(--coral), var(--coral-dark));
  color: var(--white);
  box-shadow: 0 4px 16px rgba(232,153,122,0.35);
}
.btn-coral:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(232,153,122,0.45);
  color: var(--white);
}
.btn-small { padding: 0.55rem 1.2rem; font-size: 0.85rem; }
.btn-large { padding: 1rem 2.4rem; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }

/* --- Navigation --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  transition: all var(--transition);
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}
.nav-brand .logo {
  height: 42px;
  width: 42px;
  border-radius: 10px;
  object-fit: contain;
}
.nav-brand .brand-text {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
}
.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav-menu li a {
  display: block;
  padding: 0.5rem 0.9rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: var(--radius);
  transition: all var(--transition);
}
.nav-menu li a:hover,
.nav-menu li a.active {
  color: var(--teal);
  background: rgba(107,163,163,0.08);
}
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 0.5rem;
  background: none;
  border: none;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all var(--transition);
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8rem 1.5rem 5rem;
  background: linear-gradient(160deg, var(--navy) 0%, #1e3a5f 30%, var(--teal-dark) 70%, var(--green-dark) 100%);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 80%, rgba(123,168,123,0.25), transparent),
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(107,163,163,0.3), transparent),
    radial-gradient(ellipse 40% 40% at 50% 50%, rgba(232,153,122,0.1), transparent);
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
/* Floating shapes */
.hero-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.08;
  animation: float 20s ease-in-out infinite;
}
.hero-shape-1 {
  width: 400px;
  height: 400px;
  background: var(--coral);
  top: -100px;
  right: -100px;
  animation-delay: 0s;
}
.hero-shape-2 {
  width: 300px;
  height: 300px;
  background: var(--green);
  bottom: -80px;
  left: -80px;
  animation-delay: -7s;
}
.hero-shape-3 {
  width: 200px;
  height: 200px;
  background: var(--teal-light);
  top: 30%;
  right: 15%;
  animation-delay: -14s;
}
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(20px, -30px) scale(1.05); }
  50% { transform: translate(-10px, 20px) scale(0.95); }
  75% { transform: translate(15px, 10px) scale(1.02); }
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(10px);
  padding: 0.5rem 1.2rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
  margin-bottom: 2rem;
}
.hero h1 {
  color: var(--white);
  font-size: clamp(2.5rem, 6vw, 4rem);
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}
.hero h1 .highlight {
  background: linear-gradient(135deg, var(--coral-light), var(--coral));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p {
  color: rgba(255,255,255,0.8);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}
.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.hero-stat {
  text-align: center;
}
.hero-stat-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
}
.hero-stat-label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  margin-top: 0.25rem;
}

/* --- Page Header (inner pages) --- */
.page-header {
  padding: 8rem 1.5rem 3rem;
  background: linear-gradient(160deg, var(--navy) 0%, var(--teal-dark) 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 60% at 70% 90%, rgba(123,168,123,0.2), transparent),
    radial-gradient(ellipse 50% 50% at 30% 30%, rgba(232,153,122,0.1), transparent);
}
.page-header .container { position: relative; z-index: 2; }
.page-header h1 {
  color: var(--white);
  margin-bottom: 0.75rem;
  font-size: clamp(2rem, 4vw, 3rem);
}
.page-header p {
  color: rgba(255,255,255,0.75);
  font-size: 1.15rem;
}

/* --- Sections --- */
.section { padding: 5rem 0; }
.section-cream { background: var(--cream); }
.section-white { background: var(--white); }
.section-dark {
  background: linear-gradient(160deg, var(--navy) 0%, #1e3a5f 100%);
  color: var(--white);
}
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark p { color: rgba(255,255,255,0.7); }

/* --- Feature Cards (Home) --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.feature-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: all var(--transition);
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--teal), var(--green));
  opacity: 0;
  transition: opacity var(--transition);
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(107,163,163,0.15);
}
.feature-card:hover::before { opacity: 1; }
.feature-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  background: linear-gradient(135deg, rgba(107,163,163,0.1), rgba(123,168,123,0.1));
  border-radius: 18px;
  transition: transform var(--transition);
}
.feature-card:hover .feature-icon { transform: scale(1.1); }
.feature-card h3 { margin-bottom: 0.75rem; color: var(--navy); }
.feature-card p { font-size: 0.95rem; }

/* --- Testimonials --- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow);
  position: relative;
}
.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-family: var(--font-display);
  font-size: 5rem;
  color: rgba(107,163,163,0.1);
  line-height: 1;
}
.testimonial-text {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--green));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: 1.1rem;
}
.testimonial-name { font-weight: 600; color: var(--navy); font-size: 0.95rem; }
.testimonial-role { font-size: 0.85rem; color: var(--text-muted); }

/* --- CTA Section --- */
.cta {
  padding: 5rem 1.5rem;
  background: linear-gradient(135deg, var(--teal) 0%, var(--green) 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 70% at 80% 80%, rgba(255,255,255,0.1), transparent),
    radial-gradient(ellipse 40% 50% at 20% 20%, rgba(232,153,122,0.15), transparent);
}
.cta .container { position: relative; z-index: 2; }
.cta h2 { color: var(--white); margin-bottom: 1rem; }
.cta p { color: rgba(255,255,255,0.85); font-size: 1.15rem; margin-bottom: 2rem; max-width: 600px; margin-left: auto; margin-right: auto; }
.cta .btn-secondary { border-color: var(--white); }

/* --- Values Grid --- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.value-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--teal);
  transition: all var(--transition);
}
.value-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.value-card h3 { margin-bottom: 0.5rem; }
.value-card p { font-size: 0.95rem; }
.value-card:nth-child(2) { border-left-color: var(--green); }
.value-card:nth-child(3) { border-left-color: var(--coral); }
.value-card:nth-child(4) { border-left-color: var(--gold); }

/* --- Teachers --- */
.teachers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}
.teacher-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all var(--transition);
}
.teacher-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.teacher-card-header {
  padding: 2.5rem 2rem 1.5rem;
  background: linear-gradient(135deg, var(--teal), var(--green));
  text-align: center;
}
.teacher-avatar {
  width: 100px;
  height: 100px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  border: 3px solid rgba(255,255,255,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}
.teacher-card-header h3 { color: var(--white); margin-bottom: 0.25rem; }
.teacher-card-header .teacher-title {
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
  font-weight: 500;
}
.teacher-card-body { padding: 2rem; }
.teacher-card-body p { font-size: 0.95rem; margin-bottom: 1rem; }
.teacher-classes {
  background: var(--cream);
  padding: 1rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
}
.teacher-classes strong { color: var(--teal); }

/* --- Programs / Class Cards --- */
.programs-section { margin-bottom: 3rem; }
.section-header {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 3px solid var(--teal);
}
.section-header h2 { margin-bottom: 0.25rem; }
.section-header p { font-size: 1rem; }
.classes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.5rem;
}
.class-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: all var(--transition);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.class-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--teal), var(--green));
}
.class-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(107,163,163,0.2);
}
.class-card h3 { margin-bottom: 0.5rem; padding-left: 0.75rem; }
.class-card .teacher {
  font-size: 0.9rem;
  color: var(--teal);
  font-weight: 500;
  padding-left: 0.75rem;
  margin-bottom: 0.5rem;
}
.class-card .schedule {
  font-size: 0.9rem;
  color: var(--text-muted);
  padding-left: 0.75rem;
  margin-bottom: 1rem;
}
.class-card .description {
  font-size: 0.95rem;
  padding-left: 0.75rem;
  margin-bottom: 1.5rem;
}
.class-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0.75rem 0;
  border-top: 1px solid var(--border);
}
.capacity {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--green);
  background: rgba(123,168,123,0.1);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
}

/* --- Info Grid --- */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.info-item {
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all var(--transition);
}
.info-item:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.info-item h3 { margin-bottom: 0.5rem; color: var(--teal); }
.info-item p { font-size: 0.95rem; }
.info-section { margin-top: 3rem; }
.info-section > h2 { margin-bottom: 2rem; }

/* --- Calendar / Events --- */
.calendar-section { margin-bottom: 3rem; }
.calendar-section > h2 { margin-bottom: 2rem; }
.events-list { display: flex; flex-direction: column; gap: 1rem; }
.event-item {
  display: flex;
  gap: 1.5rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  border: 1px solid var(--border);
}
.event-item:hover {
  box-shadow: var(--shadow);
  transform: translateX(4px);
}
.event-date {
  flex-shrink: 0;
  width: 72px;
  text-align: center;
  background: linear-gradient(135deg, var(--teal), var(--green));
  border-radius: var(--radius);
  padding: 0.75rem 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.event-day {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}
.event-month {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.8);
  margin-top: 0.25rem;
}
.event-year {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.6);
}
.event-content h3 { margin-bottom: 0.35rem; font-size: 1.15rem; }
.event-time { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 0.5rem; }
.event-description { font-size: 0.9rem; }

/* Event type badges */
.badge {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.badge-holiday { background: rgba(232,153,122,0.15); color: var(--coral-dark); }
.badge-event { background: rgba(107,163,163,0.15); color: var(--teal-dark); }
.badge-exam { background: rgba(212,165,116,0.2); color: #a07840; }
.badge-trip { background: rgba(123,168,123,0.15); color: var(--green-dark); }

.calendar-legend {
  margin-top: 3rem;
  padding: 2rem;
  background: var(--cream);
  border-radius: var(--radius-lg);
}
.calendar-legend h3 { margin-bottom: 1rem; }
.legend-items {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.no-events {
  text-align: center;
  padding: 3rem;
  background: var(--cream);
  border-radius: var(--radius-lg);
  color: var(--text-muted);
}

/* --- Forms --- */
.form-wrapper, .login-wrapper {
  max-width: 640px;
  margin: 0 auto;
  background: var(--white);
  padding: 3rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.form-wrapper h2, .login-wrapper h2 {
  margin-bottom: 0.5rem;
}
.form-intro, .login-intro {
  color: var(--text-muted);
  margin-bottom: 2rem;
}
.form-fieldset {
  border: none;
  margin-bottom: 2rem;
  padding: 0;
}
.form-fieldset legend {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--navy);
  padding-bottom: 0.75rem;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--cream);
  display: block;
  width: 100%;
}
.form-group {
  margin-bottom: 1.25rem;
}
.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.4rem;
}
input, textarea, select {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--off-white);
  transition: all var(--transition);
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(107,163,163,0.12);
  background: var(--white);
}
textarea { resize: vertical; min-height: 120px; }
select { cursor: pointer; }

.form-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}
.checkbox-group { margin-bottom: 1rem; }
.checkbox-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  margin-bottom: 0.5rem;
  background: var(--off-white);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  border: 1.5px solid transparent;
}
.checkbox-item:hover {
  background: rgba(107,163,163,0.06);
  border-color: rgba(107,163,163,0.2);
}
.checkbox-item input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--teal);
  cursor: pointer;
  flex-shrink: 0;
}
.checkbox-item label {
  cursor: pointer;
  margin-bottom: 0;
  font-size: 0.95rem;
}
.class-group-title {
  color: var(--teal);
  font-size: 1rem;
  margin: 1.5rem 0 0.75rem;
  font-weight: 600;
}
.class-teacher { color: var(--text-muted); font-weight: 400; }

/* Alerts */
.alert {
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
}
.alert-success {
  background: rgba(123,168,123,0.1);
  border: 1px solid rgba(123,168,123,0.3);
  color: var(--green-dark);
}
.alert-error {
  background: rgba(232,153,122,0.1);
  border: 1px solid rgba(232,153,122,0.3);
  color: var(--coral-dark);
}
.alert h3 { margin-bottom: 0.5rem; color: inherit; }
.alert p { color: inherit; opacity: 0.9; }
.password-display {
  font-family: monospace;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--teal-dark);
  background: rgba(107,163,163,0.08);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius);
  display: inline-block;
  margin: 0.75rem 0;
  letter-spacing: 0.05em;
}

/* --- Login Page Features --- */
.login-page { padding: 3rem 0; }
.login-section { margin-bottom: 3rem; }
.login-features { margin-top: 3rem; }
.login-features h2 { margin-bottom: 2rem; text-align: center; }
.login-features .features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}
.login-features .feature-item {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--cream);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
}
.login-features .feature-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.login-features .feature-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}
.login-features .feature-item h3 { margin-bottom: 0.5rem; font-size: 1.05rem; }
.login-features .feature-item p { font-size: 0.9rem; }
.login-info {
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--cream);
  border-radius: var(--radius);
  font-size: 0.9rem;
}
.login-info p { margin-bottom: 0.5rem; }

/* --- Parent Portal Dashboard --- */
.portal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 2.5rem;
  background: linear-gradient(135deg, var(--navy) 0%, var(--teal-dark) 100%);
  color: var(--white);
  border-radius: var(--radius-lg);
  margin-bottom: 2rem;
  box-shadow: var(--shadow-lg);
}
.portal-header h2 { color: var(--white); margin: 0; }
.portal-header p { color: rgba(255,255,255,0.75); margin: 0.5rem 0 0; }
.logout-btn {
  background: rgba(255,255,255,0.15);
  color: var(--white);
  padding: 0.6rem 1.2rem;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all var(--transition);
}
.logout-btn:hover {
  background: rgba(255,255,255,0.25);
  color: var(--white);
}
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.dashboard-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.dashboard-card h3 {
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--cream);
  font-size: 1.15rem;
}
.classes-list li, .events-list-portal li, .progress-list li {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
}
.classes-list li:last-child, .events-list-portal li:last-child, .progress-list li:last-child {
  border-bottom: none;
}
.class-name { font-weight: 600; color: var(--navy); }

.help-section {
  padding: 2rem;
  background: var(--cream);
  border-radius: var(--radius-lg);
  margin-top: 2rem;
}
.help-section h3 { margin-bottom: 0.75rem; }
.help-section p { font-size: 0.95rem; }

/* --- Contact Page --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.contact-form-section h2, .contact-info-section h2 { margin-bottom: 1.5rem; }
.info-block {
  margin-bottom: 1.75rem;
  padding: 1.25rem;
  background: var(--off-white);
  border-radius: var(--radius);
  transition: all var(--transition);
}
.info-block:hover { background: var(--cream); }
.info-block h3 { margin-bottom: 0.5rem; font-size: 1.05rem; }
.info-block p { font-size: 0.95rem; margin-bottom: 0.25rem; }
.info-block a { font-weight: 500; }

.inquiry-box {
  background: linear-gradient(135deg, rgba(107,163,163,0.08), rgba(123,168,123,0.08));
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(107,163,163,0.15);
}
.inquiry-box h3 { margin-bottom: 0.75rem; }
.inquiry-box ul {
  padding-left: 1.25rem;
  list-style: disc;
}
.inquiry-box li {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

/* FAQ */
.faq-section {
  margin-top: 4rem;
  padding: 3rem;
  background: var(--cream);
  border-radius: var(--radius-lg);
}
.faq-section h2 { margin-bottom: 2rem; }
.faq-grid { display: flex; flex-direction: column; gap: 1.5rem; }
.faq-item {
  background: var(--white);
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.faq-item h4 { margin-bottom: 0.5rem; font-family: var(--font-body); font-weight: 600; color: var(--navy); }
.faq-item p { font-size: 0.95rem; margin-bottom: 0; }

/* --- About page sections --- */
.mission-section, .values-section, .teachers-section, .philosophy-section, .history-section {
  margin-bottom: 3.5rem;
}
.mission-section h2, .values-section h2, .teachers-section h2, .philosophy-section h2, .history-section h2 {
  margin-bottom: 1.25rem;
}
.mission-section p, .philosophy-section p, .history-section p {
  font-size: 1.05rem;
  max-width: 800px;
}
.philosophy-list {
  padding-left: 0;
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.philosophy-list li {
  padding: 1rem 1.25rem;
  background: var(--cream);
  border-radius: var(--radius);
  font-size: 0.95rem;
  color: var(--text-muted);
  border-left: 4px solid var(--teal);
}
.philosophy-list li strong { color: var(--navy); }

/* --- Main Content Wrapper --- */
.main-content { padding: 3rem 0 4rem; }

/* --- Footer --- */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: 4rem 0 0;
  margin-top: 0;
}
.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
}
.footer h4 {
  font-family: var(--font-display);
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 1rem;
}
.footer p {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}
.footer a {
  color: rgba(255,255,255,0.6);
  display: block;
  padding: 0.3rem 0;
  font-size: 0.9rem;
  transition: all var(--transition);
}
.footer a:hover {
  color: var(--coral-light);
  transform: translateX(4px);
}
.footer-brand-desc {
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}
.footer-social {
  display: flex;
  gap: 0.75rem;
}
.footer-social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.08);
  border-radius: 10px;
  font-size: 1.1rem;
  transition: all var(--transition);
  padding: 0;
}
.footer-social a:hover {
  background: rgba(232,153,122,0.2);
  transform: translateY(-2px) translateX(0);
}
.footer-bottom {
  text-align: center;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .nav-hamburger { display: flex; }
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 1rem;
    box-shadow: var(--shadow-lg);
    border-top: 1px solid var(--border);
  }
  .nav-menu.active { display: flex; }
  .nav-menu li a { padding: 0.75rem 1rem; }

  .hero { min-height: 80vh; padding: 7rem 1.5rem 4rem; }
  .hero-stats { gap: 2rem; flex-wrap: wrap; }

  .footer-content { grid-template-columns: 1fr; gap: 2rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .teachers-grid { grid-template-columns: 1fr; }
  .classes-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .hero { min-height: 70vh; padding: 6rem 1rem 3rem; }
  .hero h1 { font-size: 2rem; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .hero-stats { flex-direction: column; gap: 1.5rem; }

  .section { padding: 3rem 0; }
  .form-wrapper, .login-wrapper { padding: 2rem 1.5rem; }
  .portal-header { flex-direction: column; gap: 1rem; text-align: center; padding: 1.5rem; }
  .dashboard-grid { grid-template-columns: 1fr; }

  input, textarea, select { font-size: 16px; /* prevents iOS zoom */ }
}

/* --- Hero Background Image --- */
.hero-bg-image {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.18;
}

/* --- Section Images --- */
.section-banner {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin-bottom: 2rem;
  box-shadow: var(--shadow);
}
.section-banner-sm {
  height: 200px;
}

/* --- Teacher Card Images --- */
.teacher-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* --- Class Card Images --- */
.class-card-image {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: var(--radius) var(--radius) 0 0;
  margin: -2rem -2rem 1.5rem -2rem;
  width: calc(100% + 4rem);
}

/* --- Contact Banner --- */
.contact-banner {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow);
}

/* ==========================================
   SCROLL ANIMATIONS (CSS + IntersectionObserver)
   ========================================== */

/* Base state for animated elements */
[data-animate] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
[data-animate="fade-left"] {
  opacity: 0;
  transform: translateX(-40px);
}
[data-animate="fade-right"] {
  opacity: 0;
  transform: translateX(40px);
}
[data-animate="zoom-in"] {
  opacity: 0;
  transform: scale(0.92);
}

/* Active state */
[data-animate].animate-visible {
  opacity: 1;
  transform: translateY(0) translateX(0) scale(1);
}

/* Stagger delays */
[data-delay="100"] { transition-delay: 100ms; }
[data-delay="200"] { transition-delay: 200ms; }
[data-delay="300"] { transition-delay: 300ms; }
[data-delay="400"] { transition-delay: 400ms; }
[data-delay="500"] { transition-delay: 500ms; }
[data-delay="600"] { transition-delay: 600ms; }

/* Button hover lift */
.btn {
  transition: all var(--transition);
}
.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}
.btn-primary:hover, .btn-coral:hover {
  box-shadow: 0 8px 28px rgba(107,163,163,0.45);
}

/* Counter animation */
.counter-animate {
  display: inline-block;
}

/* Parallax-lite for images */
.parallax-img {
  transition: transform 0.3s ease-out;
}

/* ==========================================
   RESPONSIVE FIXES — Comprehensive Audit
   ========================================== */

/* === TABLET (768-1024px) === */
@media (min-width: 768px) and (max-width: 1024px) {
  .container { padding: 0 2rem; }
  .section { padding: 4rem 0; }
  
  .hero { padding: 7rem 2rem 4rem; }
  .hero h1 { font-size: 2.5rem; }
  .hero-stats { gap: 2rem; }
  
  .features-grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .teachers-grid { grid-template-columns: 1fr; }
  .classes-grid { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: repeat(2, 1fr); }
  
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  
  .form-wrapper, .login-wrapper { padding: 2.5rem 2rem; }
  
  .footer-content { grid-template-columns: 1fr 1fr; gap: 2rem; }
  
  .dashboard-grid { grid-template-columns: 1fr; }
  .portal-header { padding: 1.5rem 2rem; }
  
  .page-header { padding: 7rem 2rem 2.5rem; }
  
  .faq-section { padding: 2.5rem 2rem; }
  
  .section-banner { height: 220px; }
}

/* === MOBILE (up to 767px) === */
@media (max-width: 767px) {
  .container { padding: 0 1.25rem; }
  .section { padding: 3rem 0; }
  
  /* Hero */
  .hero { min-height: 70vh; padding: 6rem 1.25rem 3rem; }
  .hero h1 { font-size: 1.85rem; letter-spacing: -0.01em; }
  .hero p { font-size: 1rem; margin-bottom: 2rem; }
  .hero-badge { font-size: 0.78rem; padding: 0.4rem 1rem; }
  .hero-buttons { flex-direction: column; align-items: stretch; gap: 0.75rem; }
  .hero-buttons .btn { width: 100%; }
  .hero-stats { flex-direction: column; gap: 1.25rem; margin-top: 2.5rem; padding-top: 2rem; }
  .hero-stat-number { font-size: 1.75rem; }
  
  /* Page headers */
  .page-header { padding: 6rem 1.25rem 2rem; }
  .page-header h1 { font-size: 1.75rem; }
  .page-header p { font-size: 1rem; }
  
  /* Section labels & titles */
  .section-subtitle { font-size: 1rem; margin-bottom: 2rem; }
  
  /* Cards */
  .features-grid { grid-template-columns: 1fr; gap: 1rem; }
  .feature-card { padding: 2rem 1.5rem; }
  
  .testimonials-grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .testimonial-card { padding: 2rem 1.5rem; }
  
  .values-grid { grid-template-columns: 1fr; gap: 1rem; }
  .value-card { padding: 1.5rem; }
  
  .teachers-grid { grid-template-columns: 1fr; }
  .teacher-card-header { padding: 2rem 1.5rem 1.25rem; }
  .teacher-card-body { padding: 1.5rem; }
  
  .classes-grid { grid-template-columns: 1fr; gap: 1rem; }
  .class-card { padding: 1.5rem; }
  .class-card h3, .class-card .teacher, .class-card .schedule, .class-card .description { padding-left: 0.5rem; }
  .class-card-image { margin: -1.5rem -1.5rem 1.25rem -1.5rem; width: calc(100% + 3rem); }
  
  .info-grid { grid-template-columns: 1fr; gap: 1rem; }
  .info-item { padding: 1.5rem; }
  
  /* Contact */
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .contact-banner { height: 160px; }
  .info-block { padding: 1rem; }
  
  /* FAQ */
  .faq-section { padding: 2rem 1.25rem; margin-top: 3rem; }
  .faq-item { padding: 1.25rem; }
  
  /* Forms */
  .form-wrapper, .login-wrapper { padding: 1.75rem 1.25rem; }
  .form-fieldset legend { font-size: 1.05rem; }
  input, textarea, select { padding: 0.85rem 1rem; font-size: 16px; }
  .form-actions { flex-direction: column; }
  .form-actions .btn { width: 100%; }
  .checkbox-item { padding: 0.75rem; }
  
  /* Portal */
  .portal-header { flex-direction: column; gap: 1rem; text-align: center; padding: 1.5rem 1.25rem; }
  .dashboard-grid { grid-template-columns: 1fr; gap: 1rem; }
  .dashboard-card { padding: 1.5rem; }
  
  /* CTA */
  .cta { padding: 3.5rem 1.25rem; }
  .cta h2 { font-size: 1.5rem; }
  .cta p { font-size: 1rem; }
  
  /* Footer */
  .footer { padding: 3rem 0 0; }
  .footer-content { grid-template-columns: 1fr; gap: 1.5rem; }
  
  /* Section banner */
  .section-banner { height: 160px; margin-bottom: 1.5rem; }
  
  /* Calendar events */
  .event-item { flex-direction: column; gap: 1rem; padding: 1.25rem; }
  .event-date { width: 100%; flex-direction: row; gap: 0.5rem; padding: 0.5rem 1rem; }
  
  /* Legend */
  .legend-items { flex-direction: column; gap: 0.75rem; }
  
  /* Login features */
  .login-features .features-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .login-features .feature-item { padding: 1.5rem 1rem; }
}

/* === SMALL MOBILE (375px and below) === */
@media (max-width: 375px) {
  .container { padding: 0 1rem; }
  .hero { padding: 5.5rem 1rem 2.5rem; }
  .hero h1 { font-size: 1.65rem; }
  .form-wrapper, .login-wrapper { padding: 1.5rem 1rem; }
  .login-features .features-grid { grid-template-columns: 1fr; }
  .feature-card { padding: 1.5rem 1.25rem; }
}

/* Consistent section spacing */
.programs-section { margin-bottom: 3rem; }
.programs-section:last-of-type { margin-bottom: 2rem; }

/* Ensure images don't overflow */
.section-banner, .contact-banner, .class-card-image {
  max-width: 100%;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  [data-animate] {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero-shape { animation: none; }
  .btn:hover { transform: none; }
}

/* --- Legacy Animation (kept for compatibility) --- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-in {
  animation: fadeInUp 0.6s ease-out forwards;
}
