/* ========================================================
   GREENFIELD ACADEMY — MAIN STYLESHEET
   Colour tokens → override in :root[data-theme="dark"]
   ======================================================== */

/* ---- DESIGN TOKENS ---- */
:root {
  color-scheme: light;
  --primary: #0d4f5c;
  --primary-dark: #093843;
  --primary-light: #1a7080;
  --accent: #f5a623;
  --accent-dark: #d68910;
  --accent-light: #ffc85a;
  --text-body: #2d3748;
  --text-muted: #718096;
  --text-heading: #1a202c;
  --bg-body: #ffffff;
  --bg-section: #f8f5f0;
  --bg-card: #ffffff;
  --border: #e2e8f0;
  --footer-bg: #071f26;
  --shadow-sm: 0 2px 8px rgba(0,0,0,.08);
  --shadow-md: 0 6px 24px rgba(0,0,0,.10);
  --shadow-lg: 0 16px 48px rgba(0,0,0,.14);
  --radius: 12px;
  --transition: 0.28s cubic-bezier(0.4,0,0.2,1);
}

[data-theme="dark"] {
  color-scheme: dark;
  --primary: #1a8099;
  --primary-dark: #0f5f72;
  --primary-light: #22a8c4;
  --text-body: #e2e8f0;
  --text-muted: #a0aec0;
  --text-heading: #f7fafc;
  --bg-body: #0f1923;
  --bg-section: #162030;
  --bg-card: #1e2d3d;
  --border: #2d3748;
  --footer-bg: #050d12;
  --shadow-sm: 0 2px 8px rgba(0,0,0,.30);
  --shadow-md: 0 6px 24px rgba(0,0,0,.40);
  --shadow-lg: 0 16px 48px rgba(0,0,0,.50);
}

/* ---- RESET & BASE ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text-body);
  background: var(--bg-body);
  line-height: 1.65;
  transition: background var(--transition), color var(--transition);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* ---- TYPOGRAPHY ---- */
.playfair { font-family: 'Playfair Display', Georgia, serif; }
h1, h2, h3, h4 { font-family: 'Playfair Display', Georgia, serif; color: var(--text-heading); line-height: 1.2; }

/* ---- LAYOUT ---- */
.container { width: min(1200px, 100% - 2rem); margin-inline: auto; }
.section { padding: 5rem 0; position: relative; }

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .75rem 1.75rem; border-radius: 50px;
  font-size: .95rem; font-weight: 600;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-ghost { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-ghost:hover { background: var(--primary); color: #fff; }
.btn-outline-white { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.7); }
.btn-outline-white:hover { background: rgba(255,255,255,.15); border-color: #fff; }
.btn-sm { padding: .5rem 1.25rem; font-size: .875rem; }
.btn-lg { padding: .9rem 2.25rem; font-size: 1.05rem; }
.btn-block { width: 100%; justify-content: center; }

/* ---- SECTION HEADINGS ---- */
.section-label {
  font-size: .8rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: .5rem;
}
.section-title { font-size: clamp(1.75rem, 3vw, 2.5rem); margin-bottom: 1rem; }
.section-sub { color: var(--text-muted); max-width: 600px; margin-inline: auto; text-align: center; margin-bottom: 3rem; }

/* ======================================================
   TOP BAR
   ====================================================== */
.topbar {
  background: var(--primary-dark);
  color: rgba(255,255,255,.85);
  font-size: .8rem;
  padding: .4rem 1rem;
}
.topbar-inner {
  display: flex; gap: 2rem; flex-wrap: wrap;
  justify-content: center; align-items: center;
}
.topbar-inner i { color: var(--accent); margin-right: .4rem; }

/* ======================================================
   HEADER
   ====================================================== */
#site-header {
  position: sticky; top: 0; z-index: 1000;
  background: var(--bg-body);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: background var(--transition), box-shadow var(--transition);
}
.header-inner {
  display: flex; align-items: center; gap: 1.5rem;
  padding: .75rem 1rem;
  width: min(1200px, 100% - 2rem);
  margin-inline: auto;
}

/* Logo */
.logo-wrap { display: flex; align-items: center; gap: .75rem; text-decoration: none; margin-right: auto; }
.logo-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--primary); color: #fff;
  display: grid; place-items: center; font-size: 1.4rem;
  flex-shrink: 0;
}
.logo-name { display: block; font-family: 'Playfair Display', serif; font-size: 1.1rem; font-weight: 700; color: var(--text-heading); line-height: 1.2; }
.logo-tagline { display: block; font-size: .65rem; color: var(--text-muted); line-height: 1.3; }

/* Nav */
#main-nav ul { display: flex; gap: .25rem; }
#main-nav a {
  padding: .5rem .85rem; border-radius: 8px;
  font-size: .88rem; font-weight: 500; color: var(--text-body);
  transition: all var(--transition);
}
#main-nav a:hover { background: var(--bg-section); color: var(--primary); }

/* Header Actions */
.header-actions { display: flex; align-items: center; gap: .75rem; }
.theme-toggle {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--bg-section); color: var(--text-body);
  display: grid; place-items: center;
  transition: all var(--transition); border: 1px solid var(--border);
}
.theme-toggle:hover { background: var(--primary); color: #fff; }

/* Hamburger */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  width: 36px; height: 36px; padding: 6px;
  border-radius: 8px; border: 1px solid var(--border);
}
.hamburger span {
  display: block; width: 100%; height: 2px;
  background: var(--text-body); border-radius: 2px;
  transition: all var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Nav */
.mobile-nav {
  background: var(--bg-body);
  border-top: 1px solid var(--border);
  padding: 1.5rem 1rem;
  display: none;
}
.mobile-nav.open { display: block; }
.mobile-nav ul { display: flex; flex-direction: column; gap: .25rem; }
.mobile-nav a { display: block; padding: .75rem 1rem; border-radius: 8px; font-weight: 500; transition: background var(--transition); }
.mobile-nav a:hover { background: var(--bg-section); }

/* ======================================================
   HERO
   ====================================================== */
.hero {
  position: relative; min-height: 92vh;
  display: flex; align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, #1a7080 100%);
}
.hero-bg::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%3Ccircle cx='30' cy='30' r='20'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-content {
  position: relative; z-index: 1;
  width: min(900px, 100% - 2rem); margin-inline: auto;
  text-align: center; color: #fff;
  padding: 6rem 0 10rem;
}
.hero-eyebrow {
  font-size: .85rem; letter-spacing: .15em; text-transform: uppercase;
  color: rgba(255,255,255,.7); margin-bottom: 1rem;
}
.hero-headline {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  color: #fff; line-height: 1.1; margin-bottom: .75rem;
}
.hero-highlight { color: var(--accent); }
.hero-typewriter {
  font-size: clamp(1.5rem, 3.5vw, 2.5rem);
  color: rgba(255,255,255,.9); font-weight: 400;
  font-style: italic; margin-bottom: 1.5rem; min-height: 3rem;
}
.cursor { opacity: 1; animation: blink 0.8s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero-sub {
  font-size: 1.05rem; color: rgba(255,255,255,.8);
  max-width: 580px; margin: 0 auto 2.5rem; line-height: 1.7;
}
.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero-wave {
  position: absolute; bottom: -1px; left: 0; right: 0; z-index: 2;
  line-height: 0;
}
.hero-wave svg { width: 100%; height: 80px; }

/* ======================================================
   STATS BAND
   ====================================================== */
.stats-band {
  background: var(--bg-section);
  padding: 3rem 0;
  border-bottom: 1px solid var(--border);
}
.stats-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem; text-align: center;
}
.stat-item { display: flex; flex-direction: column; align-items: center; gap: .25rem; }
.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700; color: var(--primary); line-height: 1;
}
.stat-plus { font-size: 1.5rem; font-weight: 700; color: var(--primary); }
.stat-label { font-size: .85rem; font-weight: 500; color: var(--text-muted); }

/* ======================================================
   PROGRAMS
   ====================================================== */
.programs-section { background: var(--bg-body); overflow: hidden; }
.section-bg-lines {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: repeating-linear-gradient(
    -45deg,
    transparent 0px, transparent 30px,
    rgba(13,79,92,.03) 30px, rgba(13,79,92,.03) 31px
  );
}
.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem; position: relative; z-index: 1;
}
.program-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2rem;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}
.program-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--primary); }
.program-card.featured { border-color: var(--accent); position: relative; }
.program-card.featured::before {
  content: 'Popular'; position: absolute; top: 1rem; right: 1rem;
  background: var(--accent); color: #fff;
  font-size: .7rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; padding: .2rem .6rem; border-radius: 50px;
}
.program-icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: rgba(13,79,92,.1); color: var(--primary);
  display: grid; place-items: center; font-size: 1.5rem;
  margin-bottom: 1.25rem;
  transition: all var(--transition);
}
.program-card:hover .program-icon { background: var(--primary); color: #fff; }
.program-card h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.program-card p { font-size: .9rem; color: var(--text-muted); margin-bottom: 1rem; line-height: 1.6; }
.card-link { font-size: .875rem; font-weight: 600; color: var(--primary); display: inline-flex; align-items: center; gap: .4rem; transition: gap var(--transition); }
.card-link:hover { gap: .75rem; }

/* ======================================================
   ABOUT
   ====================================================== */
.about-section { background: var(--bg-section); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.img-stack { position: relative; }
.img-main { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.img-main img { width: 100%; height: 400px; object-fit: cover; }
.img-accent {
  position: absolute; bottom: -2rem; right: -2rem;
  width: 200px; border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-md);
  border: 4px solid var(--bg-section);
}
.img-accent img { height: 150px; object-fit: cover; }
.exp-badge {
  position: absolute; top: -1.5rem; left: -1.5rem;
  width: 90px; height: 90px; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; box-shadow: var(--shadow-md);
}
.exp-num { font-family: 'Playfair Display', serif; font-size: 1.75rem; font-weight: 700; line-height: 1; }
.exp-text { font-size: .55rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; line-height: 1.3; }

.about-content .section-title { margin-bottom: 1rem; }
.about-content p { color: var(--text-muted); margin-bottom: 1rem; }
.feature-list { margin: 1.5rem 0; display: flex; flex-direction: column; gap: .6rem; }
.feature-list li { display: flex; align-items: center; gap: .75rem; font-size: .9rem; }
.feature-list i { color: var(--accent); font-size: 1.1rem; flex-shrink: 0; }
.about-cta-row { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.5rem; }

/* Tour Banner */
.tour-banner { background: var(--accent); margin-top: 4rem; padding: 0; }
.tour-inner {
  display: flex; align-items: center; gap: 1.5rem;
  padding: 1.5rem 1rem;
  width: min(1200px, 100% - 2rem); margin-inline: auto;
  flex-wrap: wrap;
}
.tour-icon { font-size: 2rem; color: #fff; flex-shrink: 0; }
.tour-text { flex: 1; min-width: 200px; }
.tour-text strong { display: block; color: #fff; font-size: 1.1rem; font-family: 'Playfair Display', serif; }
.tour-text span { color: rgba(255,255,255,.85); font-size: .9rem; }
.tour-btn {
  background: #fff; color: var(--accent-dark);
  padding: .75rem 1.5rem; border-radius: 50px;
  font-weight: 700; font-size: .9rem;
  display: inline-flex; align-items: center; gap: .5rem;
  transition: all var(--transition); white-space: nowrap;
}
.tour-btn:hover { background: var(--primary); color: #fff; transform: translateY(-2px); }

/* ======================================================
   MISSION
   ====================================================== */
.mission-section { background: var(--bg-body); }
.mission-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.mission-quote {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem; font-style: italic;
  color: var(--primary); border-left: 4px solid var(--accent);
  padding: 1rem 1.5rem; margin: 1.5rem 0;
  background: rgba(13,79,92,.05); border-radius: 0 8px 8px 0;
}
.mission-text p { color: var(--text-muted); }

.values-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.value-card {
  background: var(--bg-section); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem;
  transition: all var(--transition);
}
.value-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.value-card i { font-size: 1.5rem; color: var(--accent); margin-bottom: .75rem; display: block; }
.value-card h4 { font-size: 1rem; margin-bottom: .5rem; }
.value-card p { font-size: .85rem; color: var(--text-muted); line-height: 1.5; }

/* ======================================================
   ACTION CARDS
   ====================================================== */
.action-section { background: var(--bg-section); text-align: center; }
.action-section .section-title, .action-section .section-label { text-align: center; }
.action-cards-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
}
.action-card {
  background: var(--primary); border-radius: var(--radius);
  padding: 2rem 1.5rem; text-align: center;
  color: #fff; transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}
.action-card:hover { background: var(--primary-dark); transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.action-icon { font-size: 2rem; margin-bottom: 1rem; }
.action-card h3 { font-size: 1.1rem; color: #fff; margin-bottom: .6rem; }
.action-card p { font-size: .875rem; color: rgba(255,255,255,.8); margin-bottom: 1.5rem; }
.action-card .btn-accent { background: var(--accent); }
.action-card .btn-accent:hover { background: var(--accent-dark); }

/* ======================================================
   ENROLLMENT
   ====================================================== */
.enroll-section { padding: 5rem 0; position: relative; overflow: hidden; }
.enroll-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--primary-dark) 0%, #0a3d4a 100%);
  z-index: 0;
}
.enroll-section .container { position: relative; z-index: 1; }
.enroll-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }

/* Steps */
.enroll-steps { margin-top: 2rem; display: flex; flex-direction: column; gap: 1.25rem; }
.enroll-steps li { display: flex; gap: 1rem; align-items: flex-start; }
.step-num {
  min-width: 40px; height: 40px; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: grid; place-items: center;
  font-size: .85rem; font-weight: 700; flex-shrink: 0;
}
.enroll-steps strong { display: block; color: #fff; margin-bottom: .2rem; }
.enroll-steps p { font-size: .875rem; color: rgba(255,255,255,.7); margin: 0; }

/* Enrollment Form Card */
.enroll-form-card {
  background: var(--bg-body); border-radius: 16px;
  padding: 0; box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.enroll-form-card form,
.enroll-form-card .form-success { padding: 1.75rem 2rem 2rem; }

/* ---- FORM CARD HEADER ---- */
.form-card-header {
  display: flex; align-items: center; gap: 1.1rem;
  padding: 1.4rem 2rem;
  background: linear-gradient(135deg, var(--primary) 0%, #0a4060 100%);
  color: #fff;
}
.form-card-header--contact {
  background: linear-gradient(135deg, #1a6b5a 0%, #0d4a3d 100%);
}
.form-card-header-icon {
  width: 52px; height: 52px; flex-shrink: 0;
  background: rgba(255,255,255,.18); border: 1.5px solid rgba(255,255,255,.3);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.35rem;
}
.form-card-header h3,
.form-card-header .contact-form-heading {
  margin: 0; font-size: 1.2rem; color: #fff; text-align: left; line-height: 1.3;
}
.form-card-subtitle {
  font-size: .8rem; color: rgba(255,255,255,.78);
  margin: .25rem 0 0; line-height: 1.4;
}

/* ---- INPUT WITH ICON ---- */
.input-icon-wrap { position: relative; }
.input-icon-wrap > i {
  position: absolute; left: .9rem; top: 50%; transform: translateY(-50%);
  color: var(--primary); font-size: .78rem; pointer-events: none; z-index: 1;
}
.input-icon-wrap--textarea > i { top: .8rem; transform: none; }
.input-icon-wrap input,
.input-icon-wrap select,
.input-icon-wrap textarea { padding-left: 2.4rem !important; }

/* ---- LABEL ICON ---- */
.form-label-icon { color: var(--primary); margin-right: .25rem; font-size: .75rem; }
.req { color: #e53e3e; font-size: .75rem; }

/* Contact / Enroll Form Shared */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: .3rem; margin-bottom: .9rem; }
.form-group label {
  font-size: .78rem; font-weight: 700; color: var(--text-body);
  text-transform: uppercase; letter-spacing: .04em;
}
.form-group input,
.form-group select,
.form-group textarea {
  padding: .72rem .9rem; border-radius: 8px;
  border: 1.5px solid var(--border);
  background: var(--bg-body); color: var(--text-body);
  font-size: .9rem; transition: border-color .2s, box-shadow .2s;
  width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(30,120,170,.12);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: #a0aec0; font-size: .88rem; }

/* Styled checkbox */
.form-check-styled {
  display: flex; gap: .75rem; align-items: flex-start;
  margin: 1rem 0; padding: .85rem 1rem;
  background: var(--bg-section); border-radius: 8px;
  border: 1px solid var(--border);
}
.form-check-styled input[type="checkbox"] {
  width: 18px; height: 18px; flex-shrink: 0; margin-top: .1rem;
  accent-color: var(--primary); cursor: pointer;
}
.form-check-styled label { font-size: .8rem; color: var(--text-muted); line-height: 1.5; cursor: pointer; }

/* Submit button */
.form-submit-btn { margin-top: .5rem; padding: .85rem 1.5rem; font-size: 1rem; letter-spacing: .02em; }

/* ---- SUCCESS STATE ---- */
.form-success { text-align: center; }
.form-success-inner {
  padding: 2.5rem 1.5rem;
  display: flex; flex-direction: column; align-items: center; gap: .75rem;
}
.form-success-icon {
  width: 64px; height: 64px;
  background: linear-gradient(135deg, #48bb78, #38a169);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; color: #fff; box-shadow: 0 8px 24px rgba(72,187,120,.35);
}
.form-success h4 { font-size: 1.3rem; margin: 0; color: var(--text-heading); }
.form-success p { font-size: .95rem; color: var(--text-muted); margin: 0; }

/* ======================================================
   FAQ
   ====================================================== */
.faq-section { background: var(--bg-section); }
.faq-section .section-title,
.faq-section .section-label,
.faq-section .section-sub { text-align: center; }
.faq-grid { max-width: 820px; margin-inline: auto; display: flex; flex-direction: column; gap: .75rem; }
.faq-item { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.faq-question {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 1.2rem 1.5rem; text-align: left;
  font-size: .95rem; font-weight: 600; color: var(--text-heading);
  gap: 1rem; transition: background var(--transition);
}
.faq-question:hover { background: var(--bg-section); }
.faq-question[aria-expanded="true"] { color: var(--primary); }
.faq-icon { font-size: .85rem; transition: transform var(--transition); flex-shrink: 0; color: var(--accent); }
.faq-question[aria-expanded="true"] .faq-icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0; overflow: hidden;
  transition: max-height .35s ease, padding .35s ease;
}
.faq-answer.open { max-height: 400px; }
.faq-answer p { padding: 0 1.5rem 1.25rem; font-size: .9rem; color: var(--text-muted); line-height: 1.7; }

/* ======================================================
   GALLERY
   ====================================================== */
.gallery-section { background: var(--bg-body); }
.gallery-section .section-title,
.gallery-section .section-label,
.gallery-section .section-sub { text-align: center; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: 1rem;
}
.gallery-item { position: relative; border-radius: var(--radius); overflow: hidden; cursor: pointer; }
.gallery-item.tall { grid-row: span 2; }
.gallery-item.wide { grid-column: span 2; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-overlay {
  position: absolute; inset: 0;
  background: rgba(13,79,92,.4);
  display: grid; place-items: center;
  color: #fff; font-size: 1.5rem;
  opacity: 0; transition: opacity var(--transition);
}
.gallery-item:hover .gallery-overlay { opacity: 1; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,.92);
  display: none; place-items: center;
}
.lightbox.open { display: grid; }
.lightbox-close {
  position: absolute; top: 1.5rem; right: 1.5rem;
  color: #fff; font-size: 1.5rem; width: 44px; height: 44px;
  border-radius: 50%; background: rgba(255,255,255,.15);
  display: grid; place-items: center; transition: background var(--transition);
}
.lightbox-close:hover { background: rgba(255,255,255,.3); }
#lightbox-img { max-width: 90vw; max-height: 85vh; border-radius: 8px; }

/* ======================================================
   TESTIMONIALS
   ====================================================== */
.testimonials-section { background: var(--bg-section); overflow: hidden; }
.testimonials-section .section-title,
.testimonials-section .section-label,
.testimonials-section .section-sub { text-align: center; }
.testimonials-track-wrap { position: relative; display: flex; align-items: center; gap: 1rem; }
.testimonials-track {
  display: flex; gap: 1.5rem;
  overflow: hidden;
  flex: 1;
  transition: transform .4s ease;
}
.testi-card {
  min-width: calc(33.333% - 1rem);
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
  transition: all var(--transition);
}
.testi-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.testi-stars { color: var(--accent); font-size: .9rem; margin-bottom: .75rem; letter-spacing: 2px; }
.testi-card > p { font-size: .9rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 1.25rem; }
.testi-author { display: flex; align-items: center; gap: .75rem; }
.testi-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--primary); color: #fff;
  display: grid; place-items: center;
  font-size: .8rem; font-weight: 700; flex-shrink: 0;
}
.testi-author > div:nth-child(2) { flex: 1; }
.testi-author strong { display: block; font-size: .9rem; color: var(--text-heading); }
.testi-author span { font-size: .78rem; color: var(--text-muted); }
.google-badge { color: #4285F4; font-size: 1rem; margin-left: auto; }

.testi-nav {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--bg-card); border: 1.5px solid var(--border);
  color: var(--text-body); font-size: 1rem;
  display: grid; place-items: center;
  transition: all var(--transition); flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}
.testi-nav:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.testi-dots { display: flex; gap: .5rem; justify-content: center; margin-top: 1.5rem; }
.testi-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--border); transition: all var(--transition);
  border: none;
}
.testi-dot.active { background: var(--primary); width: 24px; border-radius: 50px; }

/* ======================================================
   CONTACT
   ====================================================== */
.contact-section { background: var(--bg-body); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 4rem; align-items: start; }
.contact-details { margin: 1.5rem 0; display: flex; flex-direction: column; gap: 1rem; }
.contact-item { display: flex; gap: 1rem; align-items: flex-start; }
.contact-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: rgba(13,79,92,.1); color: var(--primary);
  display: grid; place-items: center; font-size: 1.1rem; flex-shrink: 0;
}
.contact-item strong { display: block; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); margin-bottom: .1rem; }
.contact-item span { font-size: .9rem; color: var(--text-body); }
.social-links { display: flex; gap: .75rem; margin-top: 1.5rem; }
.social-link {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--bg-section); color: var(--text-body);
  border: 1.5px solid var(--border);
  display: grid; place-items: center; font-size: .95rem;
  transition: all var(--transition);
}
.social-link:hover { background: var(--primary); color: #fff; border-color: var(--primary); transform: translateY(-2px); }
.contact-form-wrap {
  background: var(--bg-body); border-radius: 16px; padding: 0;
  border: 1px solid var(--border); overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.contact-form-wrap form,
.contact-form-wrap .form-success { padding: 1.75rem 2rem 2rem; }

/* ======================================================
   FOOTER
   ====================================================== */
.site-footer { position: relative; }
.footer-wave { line-height: 0; background: var(--bg-section); }
.footer-wave svg { width: 100%; height: 60px; display: block; }
.footer-body { background: var(--footer-bg); padding: 4rem 0 2rem; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.3fr;
  gap: 3rem;
}
.footer-logo { display: flex; align-items: center; gap: .75rem; color: #fff; font-family: 'Playfair Display', serif; font-size: 1.1rem; margin-bottom: 1rem; }
.footer-logo i { font-size: 1.5rem; color: var(--accent); }
.footer-brand p { font-size: .85rem; color: rgba(255,255,255,.6); line-height: 1.7; margin-bottom: 1rem; }
.footer-brand .social-links .social-link { background: rgba(255,255,255,.1); color: rgba(255,255,255,.7); border-color: rgba(255,255,255,.2); }
.footer-brand .social-links .social-link:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.footer-col h4 { font-size: .85rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.5); margin-bottom: 1rem; font-family: 'Inter', sans-serif; }
.footer-col ul li { margin-bottom: .5rem; }
.footer-col ul a { font-size: .875rem; color: rgba(255,255,255,.65); transition: color var(--transition); }
.footer-col ul a:hover { color: var(--accent); }
.footer-contact li { display: flex; align-items: flex-start; gap: .6rem; font-size: .875rem; color: rgba(255,255,255,.65); margin-bottom: .6rem; }
.footer-contact i { color: var(--accent); flex-shrink: 0; margin-top: .15rem; }

.footer-bottom {
  background: rgba(0,0,0,.3); padding: 1rem 0;
}
.footer-bottom .container { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .75rem; }
.footer-bottom p { font-size: .8rem; color: rgba(255,255,255,.4); }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { font-size: .8rem; color: rgba(255,255,255,.4); transition: color var(--transition); }
.footer-links a:hover { color: var(--accent); }

/* ======================================================
   BACK TO TOP
   ====================================================== */
.back-to-top {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 500;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--primary); color: #fff;
  display: grid; place-items: center; font-size: 1rem;
  box-shadow: var(--shadow-md);
  opacity: 0; transform: translateY(20px);
  transition: all var(--transition); pointer-events: none;
}
.back-to-top.visible { opacity: 1; transform: translateY(0); pointer-events: all; }
.back-to-top:hover { background: var(--accent); }

/* ======================================================
   SCROLL ANIMATIONS
   ====================================================== */
[data-animate] {
  opacity: 0; transform: translateY(30px);
  transition: opacity .6s ease, transform .6s ease;
}
[data-animate].in-view { opacity: 1; transform: none; }

/* ======================================================
   RESPONSIVE
   ====================================================== */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .about-grid { gap: 3rem; }
  .mission-grid { gap: 2.5rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .enroll-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .testi-card { min-width: calc(50% - .75rem); }
}

@media (max-width: 768px) {
  .topbar-inner { font-size: .72rem; gap: 1rem; }
  .topbar-inner span:last-child { display: none; }

  #main-nav { display: none; }
  .header-actions .btn-sm { display: none; }
  .hamburger { display: flex; }

  .hero-content { padding: 5rem 0 9rem; }
  .about-grid { grid-template-columns: 1fr; }
  .img-accent { display: none; }
  .mission-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .enroll-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 160px; }
  .gallery-item.tall { grid-row: span 1; }
  .gallery-item.wide { grid-column: span 2; }
  .testi-card { min-width: calc(100% - 0px); }
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-bottom .container { flex-direction: column; text-align: center; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .section { padding: 3.5rem 0; }
  .hero-cta { flex-direction: column; align-items: center; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item.wide { grid-column: span 1; }
  .values-grid { grid-template-columns: 1fr; }
  .action-cards-grid { grid-template-columns: 1fr; }
}
