/* ============================================================
   Hyderabad Public School — Learn Today, Lead Tomorrow
   Palette: navy blue, white, golden yellow
   ============================================================ */

:root {
  --navy-900: #081733;
  --navy-800: #0f2a55;
  --navy-700: #16346a;
  --navy-600: #1f4488;
  --navy-500: #2b5aa8;
  --gold-600: #d99a06;
  --gold-500: #f5b301;
  --gold-400: #ffc933;
  --gold-100: #fff3d1;
  --white: #ffffff;
  --cream: #f3f7fd;
  --cream-2: #e7eefa;
  --ink: #16233c;
  --muted: #5c6d8a;
  --line: #dbe5f4;
  --green-wa: #25d366;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 10px 30px rgba(15, 42, 85, 0.12);
  --shadow-lg: 0 24px 56px rgba(15, 42, 85, 0.2);
  --font-head: "Merriweather", Georgia, serif;
  --font-body: "Nunito", system-ui, sans-serif;
  --font-accent: "Poppins", system-ui, sans-serif;
  --nav-h: 82px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container { width: min(1180px, 92%); margin-inline: auto; }
section.section { padding: 92px 0; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Headings ---------- */
.eyebrow {
  display: inline-block;
  font-family: var(--font-accent);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 2.6px;
  text-transform: uppercase;
  color: var(--navy-600);
  background: var(--cream-2);
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.section-title {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
  color: var(--navy-800);
  line-height: 1.25;
  margin-bottom: 14px;
}
.section-head.center { text-align: center; }
.section-head.center p { max-width: 660px; margin-inline: auto; color: var(--muted); }
.section-head p { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-accent);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 13px 26px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, color 0.22s ease;
  text-align: center;
}
.btn:hover { transform: translateY(-3px); }
.btn:active { transform: translateY(-1px); }

.btn-gold { background: linear-gradient(135deg, var(--gold-400), var(--gold-500)); color: var(--navy-900); box-shadow: 0 8px 20px rgba(245, 179, 1, 0.4); }
.btn-gold:hover { box-shadow: 0 14px 30px rgba(245, 179, 1, 0.5); }
.btn-navy { background: linear-gradient(135deg, var(--navy-700), var(--navy-900)); color: var(--white); box-shadow: 0 8px 20px rgba(15, 42, 85, 0.3); }
.btn-navy:hover { background: var(--navy-600); }
.btn-outline-light { background: transparent; color: var(--white); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.7); }
.btn-outline-light:hover { background: rgba(255, 255, 255, 0.14); }
.btn-whatsapp { background: linear-gradient(135deg, #2ee26f, var(--green-wa)); color: #fff; box-shadow: 0 8px 20px rgba(37, 211, 102, 0.35); }
.btn-lg { padding: 15px 32px; font-size: 0.98rem; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(8, 23, 51, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.site-header.scrolled { background: rgba(8, 23, 51, 0.97); box-shadow: 0 10px 30px rgba(3, 10, 24, 0.4); }

.nav { display: flex; align-items: center; justify-content: space-between; width: min(1220px, 94%); margin-inline: auto; height: var(--nav-h); }

.brand { display: flex; align-items: center; gap: 12px; }
.brand-crest {
  display: grid; place-items: center;
  width: 46px; height: 46px;
  font-size: 1.4rem;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(245, 179, 1, 0.4);
}
.brand-crest.lg { width: 54px; height: 54px; font-size: 1.7rem; margin-bottom: 12px; }
.brand-name { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name b { font-family: var(--font-head); font-weight: 900; font-size: 1.02rem; color: var(--white); }
.brand-name small { font-size: 0.68rem; color: var(--gold-400); letter-spacing: 0.5px; }

.nav-menu { display: flex; align-items: center; gap: 2px; }
.nav-menu li a.nav-link {
  display: block; padding: 8px 12px;
  color: #dbe5f4;
  font-size: 0.86rem; font-weight: 600;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease;
}
.nav-menu li a.nav-link:hover,
.nav-menu li a.nav-link.active { color: var(--gold-400); background: rgba(245, 179, 1, 0.12); }
.nav-cta { padding: 10px 20px; margin-left: 8px; font-size: 0.84rem; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; z-index: 5; }
.nav-toggle span { width: 26px; height: 3px; background: var(--white); border-radius: 3px; transition: transform 0.25s ease, opacity 0.25s ease; }
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; background: var(--navy-900); }
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 18% 24%, rgba(43, 90, 168, 0.55), transparent 55%),
    radial-gradient(ellipse at 84% 78%, rgba(245, 179, 1, 0.18), transparent 55%),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.02) 0 16px, transparent 16px 32px),
    linear-gradient(155deg, #081733, #0f2a55 55%, #081733);
}
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,23,51,0.35), rgba(8,23,51,0.1) 45%, rgba(8,23,51,0.55)); }

.hero-inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center;
  padding: calc(var(--nav-h) + 46px) 0 70px;
}
.hero-text { color: var(--white); }
.hero-badge {
  display: inline-block;
  font-family: var(--font-accent); font-size: 0.74rem; font-weight: 600; letter-spacing: 1px;
  color: var(--gold-400);
  background: rgba(245, 179, 1, 0.12);
  border: 1px solid rgba(245, 179, 1, 0.35);
  padding: 7px 16px; border-radius: 999px; margin-bottom: 20px;
}
.hero-title {
  font-family: var(--font-head); font-weight: 900;
  font-size: clamp(2rem, 4.6vw, 3.1rem);
  line-height: 1.16; margin-bottom: 16px;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}
.hero-title .accent { color: var(--gold-400); }
.hero-sub { font-size: clamp(1rem, 1.9vw, 1.18rem); color: #cdd9ee; max-width: 560px; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 13px; margin-bottom: 26px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.hero-points li { color: #cdd9ee; font-size: 0.9rem; font-weight: 600; }
.hero-points li::first-letter { color: var(--gold-400); }

.hero-art { position: relative; }
.hero-art img { width: 100%; border-radius: 22px; box-shadow: 0 30px 60px rgba(3, 10, 24, 0.5); border: 5px solid rgba(255, 255, 255, 0.9); }
.hero-tag {
  position: absolute; bottom: -16px; left: 24px;
  background: var(--gold-500); color: var(--navy-900);
  font-family: var(--font-accent); font-weight: 700; font-size: 0.82rem;
  padding: 10px 20px; border-radius: 999px;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.3);
}

.hero-scroll { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 2; color: var(--gold-400); font-size: 1.4rem; animation: bounce 1.8s ease-in-out infinite; }
@keyframes bounce { 0%,100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }

/* ============================================================
   TRUST STRIP
   ============================================================ */
.trust-strip { background: var(--gold-500); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 26px 0; }
.trust { text-align: center; color: var(--navy-900); border-right: 1px solid rgba(8, 23, 51, 0.15); }
.trust:last-child { border-right: 0; }
.trust-num { display: block; font-family: var(--font-head); font-weight: 900; font-size: 1.5rem; }
.trust-label { font-size: 0.82rem; font-weight: 700; letter-spacing: 0.5px; opacity: 0.85; }

/* ============================================================
   ABOUT
   ============================================================ */
.about { background: var(--white); }
.about-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
.about-media { position: relative; }
.about-img-frame { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); border: 6px solid var(--white); outline: 1px solid var(--line); }
.about-img-frame img { width: 100%; height: 430px; object-fit: cover; }
.about-chip {
  position: absolute; bottom: -18px; right: 22px;
  background: var(--navy-800); color: var(--white);
  font-family: var(--font-accent); font-size: 0.85rem;
  padding: 12px 22px; border-radius: 14px;
  box-shadow: var(--shadow); border-bottom: 4px solid var(--gold-500);
}
.about-chip b { color: var(--gold-400); font-size: 1.05rem; }

.about-text p { color: var(--muted); margin-bottom: 18px; }
.about-text p strong { color: var(--navy-800); }

.tick-list { display: grid; gap: 11px; margin: 20px 0 26px; }
.tick-list li { position: relative; padding-left: 32px; color: var(--ink); font-weight: 600; font-size: 0.96rem; }
.tick-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--gold-500); color: var(--navy-900);
  display: grid; place-items: center; font-size: 0.78rem; font-weight: 900;
}
.tick-list.light li { color: var(--white); }
.tick-list.light li::before { background: var(--gold-500); }

.principal-card {
  display: flex; gap: 18px; align-items: flex-start;
  background: var(--cream); border-radius: var(--radius);
  padding: 22px 24px; border-left: 5px solid var(--gold-500);
}
.principal-avatar { display: grid; place-items: center; flex-shrink: 0; width: 54px; height: 54px; border-radius: 50%; background: var(--navy-800); color: var(--gold-400); font-size: 1.6rem; }
.principal-card p { font-style: italic; color: var(--navy-700); margin-bottom: 8px; }
.principal-card cite { font-style: normal; font-weight: 700; color: var(--navy-800); }
.editable { background: var(--gold-100); padding: 1px 8px; border-radius: 6px; border: 1px dashed var(--gold-600); }

/* ============================================================
   ACADEMICS
   ============================================================ */
.academics { background: linear-gradient(180deg, var(--cream), var(--white)); }
.academics-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 26px; margin-top: 42px; }
.academic-card {
  background: var(--white); border-radius: var(--radius);
  padding: 30px 26px; box-shadow: var(--shadow); border: 1px solid var(--line);
  border-top: 5px solid var(--gold-500);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}
.academic-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.academic-icon {
  display: grid; place-items: center; width: 62px; height: 62px; border-radius: 16px;
  background: var(--navy-800); color: var(--gold-400); font-size: 1.7rem; margin-bottom: 18px;
}
.academic-card h3 { font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; color: var(--navy-800); margin-bottom: 4px; }
.academic-range { display: inline-block; font-family: var(--font-accent); font-size: 0.74rem; font-weight: 600; color: var(--navy-600); background: var(--cream-2); padding: 3px 12px; border-radius: 999px; margin-bottom: 12px; }
.academic-card p { color: var(--muted); font-size: 0.92rem; }

.note-strip {
  margin-top: 34px; font-size: 0.86rem; color: var(--navy-700);
  background: var(--gold-100); border: 1px dashed var(--gold-600);
  padding: 14px 20px; border-radius: var(--radius-sm); text-align: center;
}

/* ============================================================
   FACILITIES
   ============================================================ */
.facilities { background: var(--white); }
.facilities-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; margin-top: 42px; }
.facility-card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); border: 1px solid var(--line);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}
.facility-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.facility-card img { width: 100%; height: 210px; object-fit: cover; }
.facility-body { padding: 22px 24px 26px; }
.facility-body h3 { font-family: var(--font-head); font-weight: 700; font-size: 1.12rem; color: var(--navy-800); margin-bottom: 8px; }
.facility-body p { color: var(--muted); font-size: 0.92rem; }

/* ============================================================
   GALLERY
   ============================================================ */
.gallery { background: linear-gradient(180deg, var(--cream), var(--white)); }
.gallery-controls { display: flex; justify-content: center; margin: 34px 0 30px; }
.filter-pills { display: flex; flex-wrap: wrap; gap: 9px; justify-content: center; }
.pill {
  font-family: var(--font-accent); font-size: 0.82rem; font-weight: 600;
  color: var(--navy-700); background: var(--white);
  border: 1.5px solid var(--line); padding: 9px 18px; border-radius: 999px; cursor: pointer;
  transition: all 0.2s ease;
}
.pill:hover { border-color: var(--gold-500); color: var(--navy-800); }
.pill.active { background: var(--navy-800); border-color: var(--navy-800); color: var(--gold-400); }

.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.gallery-item {
  position: relative; border-radius: var(--radius-sm); overflow: hidden;
  box-shadow: var(--shadow); cursor: pointer; background: var(--cream);
  border: 1px solid var(--line);
}
.gallery-item img { width: 100%; height: 210px; object-fit: cover; transition: transform 0.5s ease; }
.gallery-item:hover img { transform: scale(1.07); }
.gallery-item figcaption {
  position: absolute; inset: auto 0 0 0; padding: 28px 16px 15px;
  color: var(--white); font-weight: 700; font-size: 0.9rem;
  background: linear-gradient(180deg, transparent, rgba(8, 23, 51, 0.86));
  display: flex; align-items: center; gap: 8px;
}
.gallery-item figcaption::before { content: "⤢"; color: var(--gold-400); font-size: 1rem; }

/* ============================================================
   EVENTS
   ============================================================ */
.events { background: var(--navy-800); color: var(--white); }
.events .section-title { color: var(--white); }
.events .eyebrow { background: rgba(245, 179, 1, 0.14); color: var(--gold-400); }
.events .section-head p { color: #c3d0e6; }
.events .note-strip { background: rgba(245, 179, 1, 0.1); color: #ffe6ad; border-color: rgba(245, 179, 1, 0.4); }
.events-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; margin-top: 42px; }
.event-card {
  background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius); overflow: hidden; transition: transform 0.28s ease, background 0.28s ease;
}
.event-card:hover { transform: translateY(-8px); background: rgba(255, 255, 255, 0.09); }
.event-card img { width: 100%; height: 180px; object-fit: cover; }
.event-body { padding: 20px 22px 24px; }
.event-body h3 { font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; color: var(--gold-400); margin-bottom: 6px; }
.event-body p { color: #c3d0e6; font-size: 0.9rem; }
.event-date { display: inline-block; font-family: var(--font-accent); font-size: 0.72rem; font-weight: 600; color: var(--navy-900); background: var(--gold-500); padding: 2px 10px; border-radius: 999px; margin-bottom: 10px; }

/* ============================================================
   TEACHERS
   ============================================================ */
.teachers { background: var(--white); }
.teachers-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 54px; align-items: center; }
.teachers-art img { width: 100%; height: 460px; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-lg); border: 6px solid var(--white); outline: 1px solid var(--line); }
.teachers-text p { color: var(--muted); margin-bottom: 16px; }
.approach-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 22px 0; }
.approach {
  display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center;
  background: var(--cream); border-radius: var(--radius-sm); padding: 16px 10px;
  font-family: var(--font-accent); font-size: 0.82rem; font-weight: 600; color: var(--navy-700);
  border: 1px solid var(--line);
}
.approach span { font-size: 1.5rem; }
.note-inline { font-size: 0.84rem; color: var(--navy-600); background: var(--cream-2); padding: 12px 16px; border-radius: var(--radius-sm); }

/* ============================================================
   APPOINTMENT
   ============================================================ */
.appointment { background: linear-gradient(155deg, var(--navy-900), var(--navy-700)); }
.appointment-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 52px; align-items: start; }
.appointment-info .section-title { color: var(--white); }
.appointment-info .eyebrow { background: rgba(245, 179, 1, 0.14); color: var(--gold-400); }
.appointment-info > p { color: #c3d0e6; margin-bottom: 18px; }
.appointment-contact { display: flex; flex-direction: column; gap: 10px; margin: 22px 0; }
.appointment-contact span { color: #dbe5f4; font-weight: 600; }
.appointment-contact a { color: var(--gold-400); }
.privacy-note { font-size: 0.82rem; color: #aebdd6; background: rgba(255, 255, 255, 0.06); border: 1px dashed rgba(255, 255, 255, 0.2); padding: 12px 16px; border-radius: var(--radius-sm); }

.appointment-form-wrap { background: var(--white); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow-lg); }
.appointment-form { display: grid; gap: 16px; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { display: flex; flex-direction: column; gap: 7px; font-weight: 700; font-size: 0.85rem; color: var(--navy-800); }
label small { font-weight: 500; color: var(--muted); }
.req { color: #d6336c; }
input, select, textarea {
  font-family: var(--font-body); font-size: 0.94rem;
  padding: 12px 14px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--line); background: var(--cream);
  color: var(--ink); outline: none; width: 100%;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
input:focus, select:focus, textarea:focus { border-color: var(--navy-500); box-shadow: 0 0 0 4px rgba(43, 90, 168, 0.14); background: #fff; }
input.invalid, select.invalid, textarea.invalid { border-color: #d6336c; box-shadow: 0 0 0 4px rgba(214, 51, 108, 0.12); }
input[type="date"] { appearance: none; -webkit-appearance: none; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.form-status { font-size: 0.88rem; font-weight: 600; margin-top: 4px; min-height: 1px; }
.form-status.ok { color: #1a7f37; }
.form-status.error { color: #c0203f; }
.form-status.warn { color: #9a6700; }

/* ============================================================
   ADMISSIONS
   ============================================================ */
.admissions { background: linear-gradient(180deg, var(--white), var(--cream)); }
.admissions-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; margin-top: 42px; }
.admission-card { background: var(--white); border-radius: var(--radius); padding: 28px 26px; box-shadow: var(--shadow); border: 1px solid var(--line); transition: transform 0.28s ease, box-shadow 0.28s ease; }
.admission-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.admission-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 14px; background: var(--navy-800); color: var(--gold-400); font-size: 1.5rem; margin-bottom: 16px; }
.admission-card h3 { font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; color: var(--navy-800); margin-bottom: 8px; }
.admission-card p { color: var(--muted); font-size: 0.92rem; margin-bottom: 10px; }
.text-link { font-family: var(--font-accent); font-weight: 600; font-size: 0.85rem; color: var(--navy-600); }
.text-link:hover { color: var(--gold-600); }
.admissions-cta { text-align: center; margin-top: 36px; }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials { background: var(--white); }
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; margin-top: 42px; }
.testimonial-card { background: var(--cream); border-radius: var(--radius); padding: 26px 26px 24px; box-shadow: var(--shadow); border: 1px solid var(--line); border-top: 5px solid var(--navy-700); display: flex; flex-direction: column; gap: 12px; transition: transform 0.28s ease, box-shadow 0.28s ease; }
.testimonial-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.testimonial-stars { color: var(--gold-500); font-size: 1.1rem; letter-spacing: 2px; }
.testimonial-card blockquote { font-style: italic; color: var(--ink); flex: 1; font-size: 0.95rem; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--navy-800); color: var(--gold-400); font-family: var(--font-accent); font-weight: 700; }
.testimonial-author b { display: block; color: var(--navy-800); font-size: 0.94rem; }
.testimonial-author small { color: var(--muted); }
.demo-badge { align-self: flex-start; font-family: var(--font-accent); font-size: 0.68rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: var(--navy-600); background: var(--cream-2); padding: 3px 10px; border-radius: 999px; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact { background: linear-gradient(180deg, var(--cream), var(--white)); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 44px; margin-top: 42px; }
.contact-info { display: grid; gap: 18px; align-content: start; }
.info-card { display: flex; gap: 16px; align-items: flex-start; background: var(--white); border-radius: var(--radius-sm); padding: 20px 22px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.info-icon { display: grid; place-items: center; flex-shrink: 0; width: 48px; height: 48px; border-radius: 12px; background: var(--navy-800); color: var(--gold-400); font-size: 1.3rem; }
.info-card h3 { font-family: var(--font-head); font-weight: 700; font-size: 1.02rem; color: var(--navy-800); margin-bottom: 2px; }
.info-card p { font-size: 0.92rem; color: var(--muted); }
.info-card a { color: var(--navy-600); font-weight: 700; }
.info-card a:hover { color: var(--gold-600); }
.info-card em { font-size: 0.78rem; color: #9aa8bf; font-style: normal; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.contact-map { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); display: flex; flex-direction: column; }
.contact-map iframe { border: 0; width: 100%; flex: 1; min-height: 470px; }
.map-note { padding: 12px 16px; font-size: 0.8rem; color: var(--muted); background: var(--cream); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--navy-900); color: #c3d0e6; padding: 62px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 44px; }
.footer-title { display: block; font-family: var(--font-head); font-weight: 900; font-size: 1.2rem; color: var(--white); margin-bottom: 12px; }
.footer-brand p { font-size: 0.9rem; max-width: 300px; margin-bottom: 18px; }
.socials { display: flex; gap: 10px; }
.social { display: grid; place-items: center; width: 42px; height: 42px; background: rgba(255, 255, 255, 0.07); border-radius: 12px; font-size: 1.1rem; transition: background 0.2s ease, transform 0.2s ease; }
.social:hover { background: var(--gold-500); color: var(--navy-900); transform: translateY(-3px); }
.footer-col h4 { font-family: var(--font-head); color: var(--gold-400); font-size: 1.02rem; margin-bottom: 14px; }
.footer-col ul { display: grid; gap: 9px; }
.footer-col a { font-size: 0.9rem; }
.footer-col a:hover { color: var(--gold-400); }
.footer-col p { font-size: 0.9rem; }
.footer-badge { margin-top: 12px; font-size: 0.8rem; color: var(--gold-400); background: rgba(245, 179, 1, 0.1); border: 1px solid rgba(245, 179, 1, 0.25); padding: 8px 12px; border-radius: 10px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.08); padding: 18px 0; text-align: center; }
.footer-bottom p { font-size: 0.8rem; }

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox { position: fixed; inset: 0; z-index: 2000; background: rgba(4, 12, 28, 0.92); display: grid; place-items: center; padding: 24px; }
.lightbox[hidden] { display: none; }
.lb-figure { max-width: min(960px, 92vw); text-align: center; }
.lb-figure img { width: 100%; max-height: 78vh; object-fit: contain; border-radius: 12px; background: #fff; }
.lb-figure figcaption { color: var(--white); margin-top: 14px; font-weight: 700; }
.lb-close { position: absolute; top: 18px; right: 24px; background: none; border: 0; color: #fff; font-size: 2.4rem; cursor: pointer; line-height: 1; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255, 255, 255, 0.12); border: 0; color: #fff; font-size: 2.2rem; width: 54px; height: 54px; border-radius: 50%; cursor: pointer; transition: background 0.2s ease; }
.lb-nav:hover { background: var(--gold-500); color: var(--navy-900); }
.lb-prev { left: 18px; }
.lb-next { right: 18px; }

/* ============================================================
   FLOATING
   ============================================================ */
.whatsapp-float { position: fixed; right: 22px; bottom: 22px; z-index: 900; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #2ee26f, var(--green-wa)); box-shadow: 0 10px 26px rgba(37, 211, 102, 0.45); transition: transform 0.25s ease; }
.whatsapp-float:hover { transform: scale(1.1); }
.back-top { position: fixed; right: 24px; bottom: 92px; z-index: 900; width: 46px; height: 46px; border-radius: 12px; border: 0; cursor: pointer; background: var(--navy-800); color: var(--gold-400); font-size: 1.2rem; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease; }
.back-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-top:hover { background: var(--navy-600); }

/* ============================================================
   REVEAL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .hero-sub { margin-inline: auto; }
  .hero-actions, .hero-points { justify-content: center; }
  .hero-art { max-width: 620px; margin-inline: auto; }
  .about-grid, .teachers-grid, .appointment-grid, .contact-grid { grid-template-columns: 1fr; gap: 46px; }
  .about-media, .teachers-art { max-width: 620px; margin-inline: auto; }
  .teachers-art img { height: 380px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); gap: 10px 20px; }
  .trust:nth-child(2) { border-right: 0; }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: rgba(8, 23, 51, 0.99);
    padding: 16px 6% 24px;
    transform: translateY(-12px); opacity: 0; visibility: hidden; pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    max-height: calc(100vh - var(--nav-h)); overflow-y: auto;
  }
  .nav-menu.open { transform: translateY(0); opacity: 1; visibility: visible; pointer-events: auto; }
  .nav-menu li a.nav-link, .nav-cta { text-align: center; padding: 12px 14px; }
  section.section { padding: 66px 0; }
  .form-grid { grid-template-columns: 1fr; }
  .approach-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-actions .btn { width: 100%; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .approach-grid { grid-template-columns: 1fr; }
  .lb-nav { width: 44px; height: 44px; font-size: 1.8rem; }
  .lb-prev { left: 8px; } .lb-next { right: 8px; }
  .brand-name small { display: none; }
}