/* ==========================================================================
   H.M. Vidhya Peeth — Premium School Theme
   White · Royal Blue · Golden Accent · Light Grey
   ========================================================================== */

:root {
  --blue-900: #0e2158;
  --blue-800: #16337e;
  --blue-700: #1e44a5;
  --blue-600: #2a56c6;
  --blue-100: #e5ecfb;
  --blue-050: #f2f6fd;
  --gold-600: #b8860b;
  --gold-500: #d4a12a;
  --gold-400: #e6b93f;
  --gold-100: #fbf3dd;
  --grey-900: #1c2333;
  --grey-700: #3d4759;
  --grey-500: #66718a;
  --grey-200: #e3e7ef;
  --grey-100: #f4f6fa;
  --white: #ffffff;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;

  --shadow-sm: 0 2px 10px rgba(14, 33, 88, 0.07);
  --shadow: 0 12px 32px rgba(14, 33, 88, 0.10);
  --shadow-lg: 0 24px 60px rgba(14, 33, 88, 0.16);

  --container: 1180px;
  --header-h: 84px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--grey-700);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
a { color: var(--blue-700); text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--blue-900);
  line-height: 1.2;
  font-weight: 700;
}

h1 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); margin-bottom: 1rem; }
h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 1.25rem; }
.container-narrow { max-width: 820px; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--blue-800); color: var(--white);
  padding: 0.6rem 1.2rem; border-radius: 0 0 var(--radius-sm) 0; z-index: 200;
}
.skip-link:focus { left: 0; }

.icon { width: 22px; height: 22px; flex-shrink: 0; }
.icon-lg { width: 48px; height: 48px; }
.text-gold { color: var(--gold-500); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.85rem 1.9rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--blue-700); color: var(--white); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--blue-600); box-shadow: var(--shadow); }

.btn-gold {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
  color: var(--blue-900);
  box-shadow: 0 8px 24px rgba(212, 161, 42, 0.35);
}
.btn-gold:hover { box-shadow: 0 12px 32px rgba(212, 161, 42, 0.45); }

.btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.22); }

/* ---------- Glassmorphism ---------- */
.glass {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: var(--shadow);
  border-radius: var(--radius-lg);
}

/* ---------- Header / Navbar ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--grey-200);
  transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: var(--header-h); gap: 1rem;
}

.brand { display: flex; align-items: center; gap: 0.75rem; }
.brand-logo { width: 46px; height: 46px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 700; font-size: 1.15rem; color: var(--blue-900);
}
.brand-tagline { font-size: 0.7rem; color: var(--gold-600); letter-spacing: 0.08em; text-transform: uppercase; }

.nav-list { display: flex; gap: 0.25rem; }
.nav-link {
  display: block; padding: 0.5rem 0.85rem;
  color: var(--grey-700); font-weight: 500; font-size: 0.92rem;
  border-radius: 999px;
  transition: color var(--transition), background var(--transition);
}
.nav-link:hover { color: var(--blue-700); background: var(--blue-050); }
.nav-link.active { color: var(--blue-800); background: var(--blue-100); font-weight: 600; }

.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 10px;
  background: none; border: none; cursor: pointer; border-radius: var(--radius-sm);
}
.nav-toggle-bar {
  height: 2.5px; width: 100%; background: var(--blue-900);
  border-radius: 2px; transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: calc(92vh - var(--header-h));
  display: flex; flex-direction: column; justify-content: center;
  padding: 5rem 0 3.5rem;
  overflow: hidden;
  color: var(--white);
}
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(14, 33, 88, 0.92) 20%, rgba(30, 68, 165, 0.72) 60%, rgba(14, 33, 88, 0.55));
}

.hero-content { max-width: 780px; }
.hero-kicker {
  display: inline-block;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold-400);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.35rem 1rem; border-radius: 999px; margin-bottom: 1.2rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.hero h1 { color: var(--white); margin-bottom: 1rem; }
.hero-sub { font-size: 1.15rem; color: rgba(255, 255, 255, 0.88); max-width: 560px; margin-bottom: 2rem; }
.hero-actions { display: flex; gap: 0.9rem; flex-wrap: wrap; }

.hero-stats {
  margin-top: 4rem;
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding: 1.8rem 1.5rem;
  text-align: center;
}
.achievements-stats { margin-top: 0; }
.stat { display: flex; flex-direction: column; align-items: center; }
.stat-num, .stat-plus {
  font-family: var(--font-display);
  font-size: 2.3rem; font-weight: 800; color: var(--blue-800);
  display: inline;
}
.stat-num { display: inline-block; }
.stat-plus { color: var(--gold-500); }
.stat > .stat-num { line-height: 1.1; }
.stat-label { font-size: 0.85rem; color: var(--grey-500); font-weight: 500; margin-top: 0.3rem; }
.stat { flex-direction: row; flex-wrap: wrap; justify-content: center; align-items: baseline; column-gap: 2px; }
.stat .stat-label { flex-basis: 100%; }

/* ---------- Sections ---------- */
.section { padding: 5rem 0; }
.section-grey { background: var(--grey-100); }

.section-head { text-align: center; max-width: 640px; margin: 0 auto 3rem; }
.kicker {
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold-600); margin-bottom: 0.6rem;
}

/* ---------- Split layout ---------- */
.split {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 3.5rem; align-items: center;
}
.split-reverse .split-media { order: 2; }
.rounded-img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); width: 100%; }
.split-body .btn { margin-top: 1.25rem; }
.split-body p + p { margin-top: 0.8rem; }
.signature { margin-top: 1.2rem; color: var(--blue-800); }

.check-list { margin: 1.2rem 0 0.4rem; display: grid; gap: 0.6rem; }
.check-list li { display: flex; align-items: flex-start; gap: 0.6rem; font-weight: 500; color: var(--grey-700); }
.check-list .icon { color: var(--gold-500); margin-top: 3px; }

/* ---------- Cards ---------- */
.card-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.6rem;
}
.card-grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.card {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius);
  padding: 2rem 1.7rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: var(--blue-100);
}

.card-icon {
  width: 56px; height: 56px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--blue-100), var(--blue-050));
  color: var(--blue-700);
  margin-bottom: 1.1rem;
}
.card-icon .icon { width: 26px; height: 26px; }

.staff-card { text-align: center; }
.staff-card img { width: 110px; height: 110px; border-radius: 50%; margin: 0 auto 1rem; box-shadow: var(--shadow-sm); }
.staff-role { color: var(--gold-600); font-weight: 600; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.6rem; }

/* ---------- Steps (admission) ---------- */
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.6rem; }
.step-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius);
  padding: 2.4rem 1.6rem 1.8rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.step-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.step-num {
  position: absolute; top: -22px; left: 1.6rem;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
  color: var(--blue-900);
  font-family: var(--font-display); font-weight: 800; font-size: 1.2rem;
  box-shadow: 0 6px 18px rgba(212, 161, 42, 0.4);
}
.steps-grid { margin-top: 2.4rem; }

/* ---------- Info / notice / FAQ ---------- */
.info-list { display: grid; gap: 0.55rem; }
.info-list li { padding-left: 1.1rem; position: relative; }
.info-list li::before {
  content: ''; position: absolute; left: 0; top: 0.65em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--gold-500);
}

.notice-list { display: grid; gap: 1.1rem; max-width: 860px; margin: 0 auto; }
.notice {
  display: flex; gap: 1.1rem; align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-left: 4px solid var(--gold-500);
  border-radius: var(--radius-sm);
  padding: 1.3rem 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.notice:hover { transform: translateX(4px); box-shadow: var(--shadow); }
.notice-date { color: var(--blue-700); margin-top: 3px; }

.faq-list { display: grid; gap: 0.9rem; }
.faq {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.faq summary {
  cursor: pointer; list-style: none;
  padding: 1.1rem 3rem 1.1rem 1.4rem;
  font-weight: 600; color: var(--blue-900);
  position: relative;
  transition: background var(--transition);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; position: absolute; right: 1.3rem; top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem; color: var(--gold-500); font-weight: 400;
  transition: transform var(--transition);
}
.faq[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq summary:hover { background: var(--blue-050); }
.faq p { padding: 0 1.4rem 1.2rem; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background:
    radial-gradient(1000px 400px at 85% -50%, rgba(212, 161, 42, 0.25), transparent),
    linear-gradient(120deg, var(--blue-900), var(--blue-700));
  color: var(--white);
  padding: 4.5rem 0 4rem;
  text-align: center;
}
.page-hero h1 { color: var(--white); margin-bottom: 0.6rem; }
.page-hero p { color: rgba(255, 255, 255, 0.85); font-size: 1.1rem; max-width: 620px; margin: 0 auto; }

/* ---------- CTA band ---------- */
.cta-band {
  background:
    radial-gradient(800px 300px at 15% 120%, rgba(212, 161, 42, 0.3), transparent),
    linear-gradient(120deg, var(--blue-800), var(--blue-600));
  color: var(--white);
}
.cta-inner { text-align: center; max-width: 640px; margin: 0 auto; }
.cta-inner h2 { color: var(--white); }
.cta-inner p { color: rgba(255, 255, 255, 0.85); margin-bottom: 1.6rem; }
.cta-inner .hero-actions { justify-content: center; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 3.5rem; align-items: start; }
.contact-list { display: grid; gap: 1.6rem; margin-top: 1.4rem; }
.contact-list li { display: flex; gap: 1.1rem; align-items: flex-start; }
.contact-list .card-icon { margin-bottom: 0; flex-shrink: 0; }
.contact-list h3 { margin-bottom: 0.15rem; font-size: 1.05rem; }

.map-embed { margin-top: 1.4rem; overflow: hidden; }
.map-embed iframe { width: 100%; height: 340px; border: 0; display: block; }
.map-placeholder {
  height: 340px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.8rem; text-align: center; color: var(--grey-500);
  background: repeating-linear-gradient(45deg, var(--grey-100), var(--grey-100) 14px, var(--blue-050) 14px, var(--blue-050) 28px);
}
.map-placeholder .icon-lg { color: var(--blue-700); }

.contact-cta { margin-top: 1.6rem; padding: 1.8rem; }
.contact-cta .btn { margin-top: 0.9rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: linear-gradient(160deg, var(--blue-900), #0a1a45);
  color: rgba(255, 255, 255, 0.78);
  margin-top: auto;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 3rem; padding: 4rem 1.25rem 3rem;
}
.footer-col h3 {
  color: var(--white); font-size: 1.05rem; margin-bottom: 1.1rem;
  font-family: var(--font-body); font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase; font-size: 0.85rem;
}
.brand-footer { margin-bottom: 1rem; }
.brand-footer .brand-name { color: var(--white); }
.footer-about p { font-size: 0.92rem; }

.footer-social { display: flex; gap: 0.7rem; margin-top: 1.2rem; }
.footer-social a {
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--white);
  transition: background var(--transition), transform var(--transition);
}
.footer-social a:hover { background: var(--gold-500); color: var(--blue-900); transform: translateY(-3px); }
.footer-social .icon { width: 18px; height: 18px; }

.footer-links { display: grid; gap: 0.55rem; }
.footer-links a { color: rgba(255, 255, 255, 0.78); font-size: 0.92rem; transition: color var(--transition), padding-left var(--transition); }
.footer-links a:hover { color: var(--gold-400); padding-left: 4px; }

.footer-contact { display: grid; gap: 0.9rem; font-size: 0.92rem; }
.footer-contact li { display: flex; gap: 0.7rem; align-items: flex-start; }
.footer-contact .icon { color: var(--gold-400); margin-top: 3px; }
.footer-contact a { color: rgba(255, 255, 255, 0.78); }
.footer-contact a:hover { color: var(--gold-400); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.2rem 0;
  font-size: 0.85rem; text-align: center;
}

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.2rem;
}
.gallery-grid img {
  width: 100%; height: 240px; object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.gallery-grid img:hover { transform: scale(1.03); box-shadow: var(--shadow); }

/* ---------- Misc ---------- */
.portrait-img { max-width: 380px; margin: 0 auto; aspect-ratio: 3 / 4; object-fit: cover; }
.footer-motto { color: var(--gold-400); font-weight: 600; margin-top: 0.8rem; }
.note { margin-top: 1rem; font-style: italic; color: var(--grey-500); }

/* ---------- Reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card, .step-card, .notice { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .nav-link { padding: 0.5rem 0.6rem; font-size: 0.86rem; }
}

@media (max-width: 900px) {
  .nav-toggle { display: flex; }

  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--grey-200);
    box-shadow: var(--shadow);
    max-height: 0; overflow: hidden;
    transition: max-height 0.35s ease;
  }
  .site-nav.open { max-height: 480px; }

  .nav-list { flex-direction: column; padding: 0.8rem 1.25rem 1.2rem; gap: 0.15rem; }
  .nav-link { padding: 0.7rem 1rem; font-size: 1rem; border-radius: var(--radius-sm); }

  .split, .split-reverse { grid-template-columns: 1fr; gap: 2.2rem; }
  .split-reverse .split-media { order: 0; }
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.2rem; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 1.4rem 0; }
}

@media (max-width: 560px) {
  .section { padding: 3.5rem 0; }
  .hero { padding: 3.5rem 0 2.5rem; min-height: auto; }
  .hero-sub { font-size: 1rem; }
  .hero-stats { margin-top: 2.5rem; padding: 1.4rem 1rem; }
  .stat-num, .stat-plus { font-size: 1.7rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .brand-tagline { display: none; }
  .brand-name { font-size: 1rem; }
}
