/* =========================================================
   Jayati Public School, Bettiah — Global Stylesheet
   ========================================================= */

:root {
  /* Brand palette */
  --navy: #0e2a52;
  --navy-dark: #081d3b;
  --navy-light: #1b3f78;
  --gold: #f5a623;
  --gold-dark: #d98a0b;
  --sky: #2f80ed;
  --sky-soft: #e8f1fe;

  /* Neutrals */
  --ink: #14213d;
  --body: #4a5568;
  --muted: #7a8699;
  --line: #e6eaf0;
  --bg: #ffffff;
  --bg-soft: #f6f8fc;
  --white: #ffffff;

  /* Effects */
  --shadow-sm: 0 2px 8px rgba(14, 42, 82, 0.06);
  --shadow: 0 12px 30px rgba(14, 42, 82, 0.10);
  --shadow-lg: 0 24px 60px rgba(14, 42, 82, 0.16);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 26px;

  --container: 1200px;
  --nav-h: 76px;

  --font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--body);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

ul { list-style: none; }

h1, h2, h3, h4, h5 { color: var(--ink); line-height: 1.2; font-weight: 700; }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 22px;
}

.section { padding: 84px 0; }
.section-sm { padding: 56px 0; }
.bg-soft { background: var(--bg-soft); }
.bg-navy { background: var(--navy); color: #cfe0f5; }
.text-center { text-align: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 14px;
}
.eyebrow::before { content: "✽"; color: var(--gold); }

.section-title {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  color: var(--navy);
  margin-bottom: 16px;
}

.section-lead {
  max-width: 640px;
  margin: 0 auto 10px;
  color: var(--muted);
  font-size: 1.03rem;
}

.section-head { margin-bottom: 52px; }

/* ---------- Buttons ---------- */
.btn {
  --_bg: var(--gold);
  --_fg: #1a1300;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 26px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.96rem;
  background: var(--_bg);
  color: var(--_fg);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  box-shadow: 0 10px 22px rgba(245, 166, 35, 0.28);
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 16px 30px rgba(245, 166, 35, 0.38); }

.btn-outline {
  --_bg: transparent;
  --_fg: var(--white);
  border-color: rgba(255, 255, 255, 0.55);
  box-shadow: none;
}
.btn-outline:hover { background: rgba(255, 255, 255, 0.12); }

.btn-navy {
  --_bg: var(--navy);
  --_fg: #fff;
  box-shadow: 0 10px 22px rgba(14, 42, 82, 0.25);
}
.btn-navy:hover { box-shadow: 0 16px 30px rgba(14, 42, 82, 0.35); }

.btn-ghost {
  --_bg: transparent;
  --_fg: var(--navy);
  border-color: var(--line);
  box-shadow: none;
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-dark); }

/* ---------- Topbar ---------- */
.topbar {
  background: var(--navy-dark);
  color: #b9c9e2;
  font-size: 0.85rem;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-block: 9px;
}
.topbar a { color: #d8e3f5; transition: color 0.2s; }
.topbar a:hover { color: var(--gold); }
.topbar-left { display: flex; gap: 22px; flex-wrap: wrap; }
.topbar-left span,
.topbar-left a { display: inline-flex; align-items: center; gap: 7px; }
.topbar-social { display: flex; gap: 14px; align-items: center; }
.topbar-social a:hover { color: var(--gold); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.25s ease;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }

.nav {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand-text { min-width: 0; }
.brand-badge {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--navy), var(--sky));
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.25rem;
  box-shadow: var(--shadow-sm);
}
.brand-logo {
  height: 54px;
  width: auto;
  display: block;
  border-radius: 8px;
}
.footer-logo {
  display: inline-flex;
  background: #fff;
  padding: 8px 10px;
  border-radius: 12px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}
.footer-logo img { height: 60px; width: auto; display: block; }
.brand-text b {
  display: block;
  color: var(--navy);
  font-family: var(--serif);
  font-size: 1.18rem;
  line-height: 1.1;
}
.brand-text span {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav-menu { display: flex; align-items: center; gap: 6px; }
.nav-menu > li { position: relative; }
.nav-menu > li > a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink);
  transition: color 0.2s, background 0.2s;
}
.nav-menu > li > a:hover,
.nav-menu > li.active > a { color: var(--navy); background: var(--sky-soft); }
.nav-menu .caret { font-size: 0.65rem; opacity: 0.6; }

/* Dropdown */
.dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 232px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}
.nav-menu > li:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-menu a {
  display: block;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--body);
  transition: background 0.18s, color 0.18s;
}
.dropdown-menu a:hover { background: var(--sky-soft); color: var(--navy); }
.dropdown-label {
  padding: 8px 12px 4px;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav-cta { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  position: relative;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 20px;
  height: 2px;
  background: var(--navy);
  transform: translateX(-50%);
  transition: transform 0.25s, opacity 0.2s;
}
.nav-toggle span { top: 50%; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle.open span { background: transparent; }
.nav-toggle.open span::before { top: 0; transform: translateX(-50%) rotate(45deg); }
.nav-toggle.open span::after { top: 0; transform: translateX(-50%) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: #fff;
  padding: 110px 0 120px;
  background:
    linear-gradient(115deg, rgba(8, 29, 59, 0.92) 0%, rgba(14, 42, 82, 0.78) 45%, rgba(47, 128, 237, 0.55) 100%),
    url("../images/8.jpeg") center/cover no-repeat;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(245, 166, 35, 0.25), transparent 45%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 2; max-width: 760px; }
.hero .pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  padding: 7px 16px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  margin-bottom: 22px;
}
.hero h1 {
  color: #fff;
  font-family: var(--serif);
  font-size: clamp(2.4rem, 6vw, 4.3rem);
  line-height: 1.05;
  margin-bottom: 20px;
}
.hero h1 .accent { color: var(--gold); }
.hero p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: #dbe7f7;
  max-width: 600px;
  margin-bottom: 32px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-stats {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 40px;
  margin-top: 64px;
  flex-wrap: wrap;
}
.hero-stats .stat b {
  display: block;
  font-family: var(--serif);
  font-size: 2.2rem;
  color: var(--gold);
}
.hero-stats .stat span { color: #cdddf2; font-size: 0.9rem; }

/* Simple page banner (interior pages) */
.page-banner {
  position: relative;
  color: #fff;
  padding: 78px 0 66px;
  text-align: center;
  background:
    linear-gradient(120deg, rgba(8, 29, 59, 0.94), rgba(27, 63, 120, 0.82)),
    url("../images/9.jpeg") center 30%/cover no-repeat;
}
.page-banner h1 {
  color: #fff;
  font-family: var(--serif);
  font-size: clamp(2rem, 4.5vw, 3.1rem);
  margin-bottom: 12px;
}
.breadcrumb {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-size: 0.9rem;
  color: #cdddf2;
}
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span { opacity: 0.6; }

/* ---------- Feature / Offer cards ---------- */
.grid { display: grid; gap: 26px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s;
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow); border-color: transparent; }
.card .icon {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--sky-soft);
  color: var(--sky);
  margin-bottom: 18px;
}
.card .icon svg { width: 28px; height: 28px; }
.card h3 { font-size: 1.22rem; margin-bottom: 10px; color: var(--navy); }
.card p { font-size: 0.96rem; color: var(--body); }

.card.gold .icon { background: #fff2dc; color: var(--gold-dark); }
.card.navy .icon { background: #e6edf8; color: var(--navy); }

/* ---------- Activities / split section ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 54px;
  align-items: center;
}
.split .media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3;
}
.split .media img { width: 100%; height: 100%; object-fit: cover; }
.split h2 { font-family: var(--serif); font-size: clamp(1.7rem, 3vw, 2.4rem); color: var(--navy); margin-bottom: 16px; }

.tick-list { margin-top: 20px; display: grid; gap: 14px; }
.tick-list li { display: flex; gap: 12px; align-items: flex-start; }
.tick-list .tick {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--gold);
  color: #1a1300;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 700;
  margin-top: 3px;
}
.tick-list b { color: var(--navy); }

/* ---------- Principal ---------- */
.principal {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 48px;
  align-items: center;
}
.principal-photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.principal-photo img { width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.principal-photo .tag {
  position: absolute;
  left: 18px;
  bottom: 18px;
  background: #fff;
  padding: 10px 16px;
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.principal-photo .tag b { display: block; color: var(--navy); font-size: 1rem; }
.principal-photo .tag span { font-size: 0.8rem; color: var(--muted); }
.principal blockquote {
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--navy);
  font-style: italic;
  margin: 4px 0 18px;
  border-left: 4px solid var(--gold);
  padding-left: 18px;
}
.principal p { margin-bottom: 14px; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, var(--navy), var(--sky));
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  box-shadow: var(--shadow-lg);
}
.cta-band::before {
  content: "";
  position: absolute;
  right: -60px;
  top: -60px;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(245,166,35,0.4), transparent 70%);
}
.cta-band h2 { color: #fff; font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2.3rem); position: relative; }
.cta-band p { color: #dce7f8; position: relative; }
.cta-band .actions { position: relative; display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Stats strip ---------- */
.stats-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat-card { text-align: center; padding: 26px 16px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.stat-card b { display: block; font-family: var(--serif); font-size: 2.4rem; color: var(--gold-dark); }
.stat-card span { color: var(--muted); font-size: 0.9rem; }

/* ---------- Gallery ---------- */
.gallery-filter { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 34px; }
.gallery-filter button {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--body);
  padding: 9px 20px;
  border-radius: 50px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s;
}
.gallery-filter button:hover { border-color: var(--gold); color: var(--gold-dark); }
.gallery-filter button.active { background: var(--navy); color: #fff; border-color: var(--navy); }

.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item .cap {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8,29,59,0.82), transparent 55%);
  color: #fff;
  display: flex;
  align-items: flex-end;
  padding: 18px;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.3s;
}
.gallery-item:hover .cap { opacity: 1; }

/* ---------- Timeline / Happenings ---------- */
.timeline { position: relative; max-width: 820px; margin-inline: auto; padding-left: 34px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 6px;
  bottom: 6px;
  width: 3px;
  background: linear-gradient(var(--gold), var(--sky));
  border-radius: 2px;
}
.timeline-item { position: relative; padding: 0 0 40px 26px; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -33px;
  top: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid var(--gold);
  box-shadow: var(--shadow-sm);
}
.timeline-item .date { font-size: 0.82rem; font-weight: 600; color: var(--sky); letter-spacing: 0.04em; }
.timeline-item h3 { color: var(--navy); font-size: 1.2rem; margin: 4px 0 6px; }

.news-card { overflow: hidden; padding: 0; }
.news-card .thumb { aspect-ratio: 16/10; overflow: hidden; }
.news-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.news-card:hover .thumb img { transform: scale(1.06); }
.news-card .body { padding: 22px 24px 26px; }
.news-card .date { font-size: 0.8rem; color: var(--gold-dark); font-weight: 600; }
.news-card h3 { font-size: 1.12rem; margin: 6px 0 8px; color: var(--navy); }

/* ---------- Faculty ---------- */
.faculty-card { text-align: center; padding: 0; overflow: hidden; }
.faculty-card .photo { aspect-ratio: 1; overflow: hidden; }
.faculty-card .photo img { width: 100%; height: 100%; object-fit: cover; }
.faculty-card .body { padding: 20px; }
.faculty-card h3 { font-size: 1.1rem; margin-bottom: 4px; color: var(--navy); }
.faculty-card span { color: var(--gold-dark); font-size: 0.88rem; font-weight: 500; }

/* ---------- Accordion (rules/FAQ) ---------- */
.accordion { max-width: 860px; margin-inline: auto; }
.acc-item { border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 14px; background: #fff; overflow: hidden; box-shadow: var(--shadow-sm); }
.acc-head {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--navy);
  padding: 18px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.acc-head .plus { flex: 0 0 auto; font-size: 1.3rem; color: var(--gold-dark); transition: transform 0.25s; }
.acc-item.open .acc-head .plus { transform: rotate(45deg); }
.acc-body { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.acc-body-inner { padding: 0 22px 20px; color: var(--body); }

/* ---------- Table (fees) ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius); box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
table.fee {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
  background: #fff;
}
table.fee th, table.fee td { padding: 15px 20px; text-align: left; border-bottom: 1px solid var(--line); }
table.fee thead th { background: var(--navy); color: #fff; font-weight: 600; }
table.fee tbody tr:nth-child(even) { background: var(--bg-soft); }
table.fee tbody tr:hover { background: var(--sky-soft); }
table.fee td:last-child, table.fee th:last-child { text-align: right; font-weight: 600; color: var(--navy); }

/* ---------- Forms ---------- */
.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 0.88rem; font-weight: 600; color: var(--navy); }
.field input,
.field select,
.field textarea {
  font-family: inherit;
  font-size: 0.95rem;
  padding: 12px 15px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-soft);
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--sky);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(47, 128, 237, 0.12);
}
.field textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 0.85rem; color: var(--muted); margin-top: 6px; }
.form-success {
  display: none;
  margin-top: 18px;
  padding: 14px 18px;
  border-radius: 10px;
  background: #e7f7ee;
  border: 1px solid #b6e6ca;
  color: #1e7d47;
  font-size: 0.92rem;
}
.form-success.show { display: block; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: start; }
.info-list { display: grid; gap: 18px; margin-top: 10px; }
.info-list li { display: flex; gap: 16px; align-items: flex-start; }
.info-list .ico {
  flex: 0 0 auto;
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--sky-soft);
  color: var(--sky);
  display: grid; place-items: center;
}
.info-list b { display: block; color: var(--navy); }
.info-list span, .info-list a { color: var(--body); font-size: 0.95rem; overflow-wrap: anywhere; }
.map-embed { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.map-embed iframe { width: 100%; height: 320px; border: 0; display: block; }

/* ---------- Vision / Mission cards ---------- */
.vm-card { position: relative; overflow: hidden; }
.vm-card::before {
  content: "";
  position: absolute;
  right: -30px; top: -30px;
  width: 130px; height: 130px;
  border-radius: 50%;
  background: var(--sky-soft);
  opacity: 0.7;
}
.vm-card .icon { position: relative; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-dark);
  color: #b8c8e0;
  padding-top: 66px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 48px;
}
.site-footer h4 { color: #fff; font-size: 1.05rem; margin-bottom: 18px; }
.footer-brand .brand-badge { margin-bottom: 16px; }
.footer-brand p { font-size: 0.92rem; color: #93a7c6; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: #b8c8e0; font-size: 0.93rem; transition: color 0.2s, padding-left 0.2s; }
.footer-links a:hover { color: var(--gold); padding-left: 5px; }
.footer-contact li { display: flex; gap: 11px; margin-bottom: 14px; font-size: 0.92rem; color: #b8c8e0; overflow-wrap: anywhere; }
.footer-contact svg { flex: 0 0 auto; margin-top: 3px; color: var(--gold); }
.footer-social { display: flex; gap: 12px; margin-top: 8px; }
.footer-social a {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: rgba(255,255,255,0.08);
  display: grid; place-items: center;
  transition: background 0.2s, transform 0.2s;
}
.footer-social a:hover { background: var(--gold); color: #1a1300; transform: translateY(-3px); }
/* App download row */
.footer-apps-row {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 26px 0 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.apps-label { font-size: 0.92rem; color: #cdd; font-weight: 500; }
.store-badges { display: flex; gap: 12px; flex-wrap: wrap; }
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #000;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 11px;
  padding: 8px 16px;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.store-badge:hover { transform: translateY(-3px); border-color: var(--gold); }
.store-badge svg { width: 22px; height: 22px; flex: 0 0 auto; }
.store-badge .txt { display: flex; flex-direction: column; line-height: 1.1; }
.store-badge .txt small { font-size: 0.6rem; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.85; }
.store-badge .txt b { font-size: 0.92rem; font-weight: 600; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.86rem;
  color: #8398ba;
}
.powered-by a { color: var(--gold); font-weight: 600; }
.powered-by a:hover { text-decoration: underline; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1.2fr; }
  .footer-grid .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 992px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .principal { grid-template-columns: 1fr; }
  .principal-photo { max-width: 340px; margin-inline: auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid .footer-brand { grid-column: auto; }
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .split { gap: 40px; }
}

@media (max-width: 860px) {
  .topbar { display: none; }
  .nav-toggle { display: block; }
  .nav-cta .btn { display: none; }
  .nav-menu {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: #fff;
    padding: 14px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    max-height: calc(100vh - var(--nav-h));
    max-height: calc(100dvh - var(--nav-h));
    overflow-y: auto;
    transform: translateY(-140%);
    transition: transform 0.3s ease;
  }
  .nav-menu.open { transform: translateY(0); }
  .nav-menu > li > a { padding: 14px; border-radius: 10px; justify-content: space-between; }
  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    padding: 2px 0 8px 12px;
    display: none;
  }
  .nav-menu > li.mobile-open .dropdown-menu { display: block; }
  .nav-menu > li.mobile-open > a .caret { transform: rotate(180deg); }
}

@media (max-width: 720px) {
  :root { --nav-h: 66px; }
  .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 28px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .section-sm { padding: 44px 0; }
  .section-head { margin-bottom: 36px; }
  .cta-band { padding: 36px 24px; text-align: center; justify-content: center; }
  .cta-band .actions { justify-content: center; }
  .stats-strip { grid-template-columns: 1fr 1fr; }
  .page-banner { padding: 60px 0 50px; }
  .principal blockquote { font-size: 1.12rem; padding-left: 14px; }
  .footer-bottom { flex-direction: column; text-align: center; justify-content: center; gap: 8px; }
}

@media (max-width: 560px) {
  .brand-logo { height: 44px; }
  .brand-text b { font-size: 1rem; }
  .brand-text span { font-size: 0.66rem; }
  .hero-stats { gap: 22px 30px; margin-top: 44px; }
  .hero-stats .stat b { font-size: 1.8rem; }
  .hero-actions { gap: 12px; }
  .hero-actions .btn { flex: 1 1 auto; justify-content: center; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .store-badge { flex: 1 1 auto; justify-content: center; min-width: 150px; }
  .store-badges { width: 100%; }
}

@media (max-width: 480px) {
  .container { padding-inline: 18px; }
  .gallery-grid { grid-template-columns: 1fr; }
  .hero { padding: 68px 0 78px; }
  .hero .pill { margin-bottom: 16px; }
  .form-card { padding: 24px 18px; }
  .btn { padding: 12px 22px; font-size: 0.92rem; }
  .section { padding: 48px 0; }
  .card { padding: 28px 22px; }
  .cta-band { padding: 32px 20px; }
  .accordion .acc-head { font-size: 0.96rem; padding: 16px 18px; }
  .acc-body-inner { padding: 0 18px 18px; }
}

@media (max-width: 360px) {
  .brand-logo { height: 40px; }
  .brand-text b { font-size: 0.92rem; }
  .hero-stats { gap: 18px 24px; }
  .hero-stats .stat b { font-size: 1.6rem; }
}

/* ---------- Lightbox Modal ---------- */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 15, 30, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.4s;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  position: relative;
  max-width: 85%;
  max-height: 80%;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: scale(0.95);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox.active .lightbox-content {
  transform: scale(1);
}

.lightbox-content img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 8px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  object-fit: contain;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.lightbox-caption {
  color: #fff;
  margin-top: 15px;
  font-family: 'Poppins', sans-serif;
  font-size: 1.1rem;
  font-weight: 500;
  text-align: center;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  letter-spacing: 0.5px;
}

/* Lightbox Navigation & Close Buttons */
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
  user-select: none;
}

.lightbox-close {
  top: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  font-size: 32px;
  line-height: 1;
}

.lightbox-prev {
  left: 30px;
  width: 50px;
  height: 50px;
}

.lightbox-next {
  right: 30px;
  width: 50px;
  height: 50px;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: var(--gold, #c5a880);
  border-color: var(--gold, #c5a880);
  color: #111;
  transform: scale(1.1);
  box-shadow: 0 0 15px rgba(197, 168, 128, 0.4);
}

.lightbox-close:active,
.lightbox-prev:active,
.lightbox-next:active {
  transform: scale(0.95);
}

/* Hide scrollbar when lightbox is active */
body.lightbox-open {
  overflow: hidden !important;
}

@media (max-width: 768px) {
  .lightbox-prev {
    left: 15px;
    width: 44px;
    height: 44px;
    font-size: 20px;
  }
  .lightbox-next {
    right: 15px;
    width: 44px;
    height: 44px;
    font-size: 20px;
  }
  .lightbox-close {
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    font-size: 26px;
  }
  .lightbox-content {
    max-width: 90%;
  }
  .lightbox-content img {
    max-height: 70vh;
  }
}
