/* ==========================================================================
   Maruthi International School — Global Stylesheet
   Sections: 1. Tokens  2. Reset  3. Layout  4. Header  5. Hero
             6. Components  7. Page blocks  8. Forms  9. Footer  10. Responsive
   ========================================================================== */

/* 1. Design tokens ------------------------------------------------------- */
:root {
  --navy-900: #0b1f3a;
  --navy-800: #122c4f;
  --navy-700: #1b3c68;
  --navy-100: #e8eef6;
  --gold-500: #d4a13a;
  --gold-400: #e8bb5c;
  --gold-100: #fdf4e1;
  --teal-500: #0f8a7e;
  --ink: #16202e;
  --body: #4a5a70;
  --muted: #7c8aa0;
  --line: #e2e8f0;
  --surface: #ffffff;
  --surface-alt: #f6f8fb;

  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;

  --wrap: 1160px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(11, 31, 58, .06), 0 4px 12px rgba(11, 31, 58, .06);
  --shadow-md: 0 10px 30px rgba(11, 31, 58, .10);
  --shadow-lg: 0 24px 60px rgba(11, 31, 58, .16);
  --ease: cubic-bezier(.4, 0, .2, 1);
}

/* 2. Reset --------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

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

img, svg, video { display: block; max-width: 100%; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; }
input, textarea, select { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -.01em;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.25rem; }

p { text-wrap: pretty; }

:focus-visible {
  outline: 3px solid var(--gold-500);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 50%;
  top: -60px;
  transform: translateX(-50%);
  z-index: 999;
  background: var(--navy-900);
  color: #fff;
  padding: .7rem 1.2rem;
  border-radius: 0 0 10px 10px;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 0; }

/* 3. Layout helpers ------------------------------------------------------ */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section--alt { background: var(--surface-alt); }
.section--navy {
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(212, 161, 58, .22), transparent 60%),
    linear-gradient(160deg, var(--navy-900), var(--navy-700));
  color: #cfdaea;
}
.section--navy h2,
.section--navy h3 { color: #fff; }

.grid { display: grid; gap: 1.75rem; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.section-head {
  max-width: 640px;
  margin-bottom: 2.75rem;
}
.section-head--center {
  margin-inline: auto;
  text-align: center;
}
.section-head p { margin-top: .9rem; font-size: 1.05rem; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-500);
  margin-bottom: .85rem;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--gold-500);
}
.section--navy .eyebrow { color: var(--gold-400); }

/* 4. Header / navigation ------------------------------------------------- */
.topbar {
  background: var(--navy-900);
  color: #b9c8dd;
  font-size: .85rem;
}
.topbar .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.75rem;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
}
.topbar__list { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.topbar__list li { display: flex; align-items: center; gap: .5rem; }
.topbar a:hover { color: #fff; }
.topbar svg { width: 15px; height: 15px; flex: none; color: var(--gold-400); }

/* Running admissions ticker */
.ticker {
  overflow: hidden;
  background: linear-gradient(90deg, #0a1830, #16345c 40%, #0a1830);
  border-bottom: 1px solid rgba(232, 187, 92, .28);
  color: var(--gold-400);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.ticker__track {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  width: max-content;
  padding: .55rem 0;
  white-space: nowrap;
  animation: ticker-run 28s linear infinite;
}
.ticker__track span[aria-hidden="true"] {
  color: rgba(232, 187, 92, .55);
  font-size: .65rem;
}
@keyframes ticker-run {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .ticker__track { animation: none; justify-content: center; width: 100%; flex-wrap: wrap; white-space: normal; }
  .ticker__track span[aria-hidden="true"]:nth-of-type(n+2),
  .ticker__track span:nth-child(n+7) { display: none; }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header.is-stuck { box-shadow: var(--shadow-md); }
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 78px;
}

.brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-right: auto;
  min-width: 0;
  flex: 1;
}
.brand__logo {
  width: 62px;
  height: 62px;
  flex: none;
  object-fit: contain;
  object-position: center;
  border-radius: 50%;
  background: #f7f5f0;
  padding: 4px;
  border: 2px solid rgba(212, 161, 58, .5);
  box-shadow: 0 2px 10px rgba(11, 31, 58, .14);
}
.brand > span {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  min-width: 0;
}
.brand__mark {
  width: 46px;
  height: 46px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(150deg, var(--navy-800), var(--navy-900));
  color: var(--gold-400);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}
.brand__name {
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 2.6vw, 1.15rem);
  font-weight: 700;
  color: var(--navy-900);
  line-height: 1.2;
  display: block;
}
.brand__tag {
  display: block;
  font-family: var(--font-body);
  font-size: clamp(.62rem, 1.8vw, .72rem);
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.3;
  white-space: normal;
}

.nav__list { display: flex; align-items: center; gap: .35rem; }
.nav__list a {
  display: block;
  padding: .55rem .85rem;
  border-radius: 8px;
  font-size: .95rem;
  font-weight: 600;
  color: var(--navy-800);
  transition: background .2s var(--ease), color .2s var(--ease);
}
.nav__list a:hover { background: var(--navy-100); }
.nav__list a[aria-current="page"] { color: var(--gold-500); }
.nav__list a[aria-current="page"]::after {
  content: "";
  display: block;
  height: 2px;
  margin-top: 3px;
  border-radius: 2px;
  background: var(--gold-500);
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border-radius: 10px;
  border: 1px solid var(--line);
  color: var(--navy-900);
  place-items: center;
}
.nav-toggle span {
  position: relative;
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  transition: transform .25s var(--ease), background .25s var(--ease);
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: currentColor;
  transition: transform .25s var(--ease);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* 5. Hero ---------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  color: #dbe5f2;
  background:
    radial-gradient(700px 420px at 12% 12%, rgba(15, 138, 126, .35), transparent 62%),
    radial-gradient(760px 460px at 88% 18%, rgba(212, 161, 58, .28), transparent 60%),
    linear-gradient(155deg, #0a1c34 0%, var(--navy-800) 55%, #16345c 100%);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: radial-gradient(circle at 50% 40%, #000, transparent 78%);
  pointer-events: none;
}
.hero .wrap {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
}
.hero h1 { color: #fff; }
.hero h1 em {
  font-style: normal;
  color: var(--gold-400);
}
.hero__lead {
  margin-top: 1.25rem;
  font-size: 1.1rem;
  max-width: 46ch;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
  margin-top: 2rem;
}
.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 1.75rem 2.5rem;
  margin-top: 2.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, .16);
}
.hero__fact strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.9rem;
  color: #fff;
  line-height: 1;
}
.hero__fact span {
  font-size: .82rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #a8bad2;
}

.hero__panel {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(6px);
}
.hero__illustration {
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(160deg, #f4f7fc, #dfe8f4);
  aspect-ratio: 16 / 10;
}
.hero__illustration img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.hero__badge {
  position: absolute;
  bottom: -18px;
  left: -18px;
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .85rem 1.1rem;
  border-radius: 14px;
  background: #fff;
  color: var(--navy-900);
  box-shadow: var(--shadow-md);
}
.hero__badge strong { font-size: .95rem; display: block; }
.hero__badge small { color: var(--muted); }
.hero__badge .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--teal-500);
  box-shadow: 0 0 0 4px rgba(15, 138, 126, .18);
}

/* Page banner (inner pages) */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(3rem, 7vw, 4.75rem) 0;
  color: #d8e2f0;
  background:
    radial-gradient(620px 340px at 88% 0%, rgba(212, 161, 58, .26), transparent 62%),
    linear-gradient(140deg, #0a1c34, var(--navy-700));
  text-align: center;
}
.page-hero h1 { color: #fff; }
.page-hero p {
  max-width: 62ch;
  margin: 1rem auto 0;
  font-size: 1.05rem;
}
.crumbs {
  display: flex;
  justify-content: center;
  gap: .5rem;
  margin-top: 1.5rem;
  font-size: .85rem;
  color: #9fb2cb;
}
.crumbs a:hover { color: var(--gold-400); }
.crumbs li + li::before { content: "/"; margin-right: .5rem; opacity: .6; }
.crumbs li { display: flex; }
.crumbs [aria-current="page"] { color: var(--gold-400); }

/* 6. Components ---------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .85rem 1.6rem;
  border-radius: 10px;
  font-size: .96rem;
  font-weight: 600;
  border: 1.5px solid transparent;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease),
    background .18s var(--ease), color .18s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; }

.btn--primary {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-400));
  color: #2a1d02;
  box-shadow: 0 10px 24px rgba(212, 161, 58, .32);
}
.btn--primary:hover { box-shadow: 0 14px 30px rgba(212, 161, 58, .42); }

.btn--navy {
  background: var(--navy-900);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn--navy:hover { background: var(--navy-800); }

.btn--ghost {
  border-color: rgba(255, 255, 255, .38);
  color: #fff;
}
.btn--ghost:hover { background: rgba(255, 255, 255, .12); }

.btn--outline {
  border-color: var(--navy-900);
  color: var(--navy-900);
}
.btn--outline:hover { background: var(--navy-900); color: #fff; }

.btn--block { width: 100%; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.85rem;
  box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease),
    border-color .25s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #cfdaea;
}
.card h3 { margin-bottom: .6rem; }
.card p { font-size: .96rem; }

.card__icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  margin-bottom: 1.15rem;
  background: var(--gold-100);
  color: var(--gold-500);
}
.card__icon svg { width: 26px; height: 26px; }
.card__icon--teal { background: #e2f4f2; color: var(--teal-500); }
.card__icon--navy { background: var(--navy-100); color: var(--navy-800); }

.link-more {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-top: 1.1rem;
  font-size: .9rem;
  font-weight: 700;
  color: var(--navy-800);
}
.link-more svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.link-more:hover svg { transform: translateX(4px); }

.stat-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, .16);
  border-radius: var(--radius);
  overflow: hidden;
}
.stat-band > div {
  padding: 2rem 1.5rem;
  text-align: center;
  background: rgba(255, 255, 255, .04);
}
.stat-band strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  color: #fff;
  line-height: 1;
}
.stat-band span {
  font-size: .82rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #a8bad2;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.split__media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(150deg, var(--navy-100), #f7f2e4);
  box-shadow: var(--shadow-md);
}

.checklist { display: grid; gap: .8rem; margin-top: 1.5rem; }
.checklist li {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  font-size: .98rem;
}
.checklist svg {
  flex: none;
  width: 21px;
  height: 21px;
  margin-top: .18rem;
  color: var(--teal-500);
}

.pill-row { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.5rem; }
.pill {
  padding: .45rem 1rem;
  border-radius: 999px;
  background: var(--navy-100);
  color: var(--navy-800);
  font-size: .85rem;
  font-weight: 600;
}

/* Timeline (admissions steps) */
.steps { counter-reset: step; display: grid; gap: 1.5rem; }
.steps li {
  counter-increment: step;
  position: relative;
  padding: 1.6rem 1.6rem 1.6rem 4.75rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 1.5rem;
  top: 1.5rem;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--navy-900);
  color: var(--gold-400);
  font-family: var(--font-display);
  font-weight: 700;
}
.steps h3 { font-size: 1.1rem; margin-bottom: .35rem; }
.steps p { font-size: .95rem; }

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}
.tile {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: grid;
  place-items: center;
  color: #fff;
  isolation: isolate;
}
.tile--tall { aspect-ratio: 3 / 4; }
.tile svg { width: 44%; height: auto; opacity: .95; }
.tile figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 2.5rem 1.1rem .95rem;
  font-size: .95rem;
  font-weight: 600;
  background: linear-gradient(to top, rgba(8, 20, 38, .88), transparent);
}
.tile-1 { background: linear-gradient(150deg, #1b3c68, #0f8a7e); }
.tile-2 { background: linear-gradient(150deg, #7a4c1e, #d4a13a); }
.tile-3 { background: linear-gradient(150deg, #123a52, #2f7fa8); }
.tile-4 { background: linear-gradient(150deg, #4a2a63, #9057b8); }
.tile-5 { background: linear-gradient(150deg, #0f5132, #48a860); }
.tile-6 { background: linear-gradient(150deg, #7b2233, #d4576b); }

/* News list */
.news { display: grid; gap: 1.25rem; }
.news li {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 1.25rem;
  align-items: start;
  padding: 1.35rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: box-shadow .25s var(--ease), transform .25s var(--ease);
}
.news li:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.news__date {
  text-align: center;
  padding: .6rem .3rem;
  border-radius: 10px;
  background: var(--navy-900);
  color: #fff;
}
.news__date strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1;
}
.news__date span {
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold-400);
}
.news h3 { font-size: 1.08rem; margin-bottom: .3rem; }
.news p { font-size: .93rem; }
.tag {
  display: inline-block;
  margin-bottom: .5rem;
  padding: .2rem .65rem;
  border-radius: 999px;
  background: var(--gold-100);
  color: #8a6415;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* Quote / testimonial */
.quote {
  padding: 2rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.quote blockquote {
  font-family: var(--font-display);
  font-size: 1.12rem;
  line-height: 1.6;
  color: var(--ink);
}
.quote blockquote::before { content: "“"; color: var(--gold-500); font-size: 2rem; line-height: 0; }
.quote figcaption {
  display: flex;
  align-items: center;
  gap: .85rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: .9rem;
}
.avatar {
  width: 44px;
  height: 44px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--navy-100);
  color: var(--navy-800);
  font-weight: 700;
}
.quote figcaption b { display: block; color: var(--ink); }
.quote figcaption span { color: var(--muted); }

/* Table */
.table-scroll { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  min-width: 520px;
}
caption {
  text-align: left;
  padding: 1rem 1.25rem;
  font-weight: 600;
  color: var(--muted);
  font-size: .9rem;
}
th, td {
  padding: .95rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-size: .95rem;
}
thead th {
  background: var(--navy-900);
  color: #fff;
  font-size: .82rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: var(--surface-alt); }

/* Accordion (FAQ) */
.faq { display: grid; gap: .9rem; }
details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
details[open] { border-color: #cfdaea; }
summary {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 1.15rem 1.4rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--gold-500);
  line-height: 1;
  transition: transform .2s var(--ease);
}
details[open] summary::after { transform: rotate(45deg); }
details p { padding: 0 1.4rem 1.35rem; font-size: .95rem; }

/* CTA band */
.cta {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  padding: clamp(2.25rem, 5vw, 3.5rem);
  color: #dbe5f2;
  background:
    radial-gradient(500px 300px at 90% 10%, rgba(212, 161, 58, .3), transparent 60%),
    linear-gradient(140deg, var(--navy-900), var(--navy-700));
  display: flex;
  flex-wrap: wrap;
  gap: 1.75rem;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-lg);
}
.cta h2 { color: #fff; }
.cta p { margin-top: .6rem; max-width: 52ch; }
.cta__actions { display: flex; flex-wrap: wrap; gap: .8rem; }

/* 7. Contact page blocks -------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(2rem, 4vw, 3rem);
  align-items: start;
}

.info-card {
  display: flex;
  gap: 1rem;
  padding: 1.35rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.info-card__icon {
  width: 44px;
  height: 44px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--navy-100);
  color: var(--navy-800);
}
.info-card__icon svg { width: 21px; height: 21px; }
.info-card h3 { font-size: 1.02rem; margin-bottom: .25rem; }
.info-card p, .info-card a { font-size: .94rem; }
.info-card a { color: var(--navy-800); font-weight: 600; }
.info-card a:hover { color: var(--gold-500); text-decoration: underline; }

.map-frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  background: var(--surface-alt);
}
.map-frame iframe { width: 100%; height: 340px; border: 0; display: block; }

.hours { display: grid; gap: .55rem; }
.hours li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: .55rem;
  border-bottom: 1px dashed var(--line);
  font-size: .94rem;
}
.hours li:last-child { border-bottom: 0; padding-bottom: 0; }
.hours b { color: var(--ink); }
.hours .closed { color: #b4432f; font-weight: 600; }

.social { display: flex; gap: .6rem; margin-top: 1.25rem; }
.social a {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--navy-100);
  color: var(--navy-800);
  transition: background .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.social a:hover { background: var(--navy-900); color: var(--gold-400); transform: translateY(-3px); }
.social svg { width: 19px; height: 19px; }

/* 8. Forms --------------------------------------------------------------- */
.form-card {
  padding: clamp(1.5rem, 3vw, 2.5rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.form-card > h2 { font-size: 1.6rem; }
.form-card > p { margin-top: .5rem; font-size: .96rem; }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.15rem;
  margin-top: 1.75rem;
}
.field { display: flex; flex-direction: column; gap: .45rem; }
.field--full { grid-column: 1 / -1; }

.field label {
  font-size: .88rem;
  font-weight: 600;
  color: var(--ink);
}
.field label .req { color: #c0392b; }
.field .hint { font-size: .8rem; color: var(--muted); font-weight: 400; }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: .8rem .95rem;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: #fbfcfe;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease),
    background .18s var(--ease);
}
.field textarea { resize: vertical; min-height: 140px; }
.field select { appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237c8aa0' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .85rem center;
  background-size: 18px;
  padding-right: 2.6rem;
}
.field input:hover,
.field select:hover,
.field textarea:hover { border-color: #c8d3e2; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 0;
  background: #fff;
  border-color: var(--navy-700);
  box-shadow: 0 0 0 4px rgba(27, 60, 104, .12);
}
.field input::placeholder,
.field textarea::placeholder { color: #a9b5c6; }

.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea {
  border-color: #d1503c;
  background: #fdf6f5;
}
.field.is-invalid input:focus,
.field.is-invalid select:focus,
.field.is-invalid textarea:focus {
  box-shadow: 0 0 0 4px rgba(209, 80, 60, .14);
}
.error {
  display: none;
  font-size: .82rem;
  font-weight: 600;
  color: #c0392b;
}
.field.is-invalid .error { display: block; }

.consent {
  display: flex;
  gap: .7rem;
  align-items: flex-start;
  font-size: .9rem;
}
.consent input {
  width: 18px;
  height: 18px;
  flex: none;
  margin-top: .22rem;
  accent-color: var(--navy-800);
}
.field.is-invalid .consent { color: #c0392b; }
.field.is-invalid .consent input { accent-color: #c0392b; }

.form-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: .5rem;
}
.form-actions .note { font-size: .82rem; color: var(--muted); }

.form-status {
  display: none;
  gap: .75rem;
  align-items: flex-start;
  grid-column: 1 / -1;
  padding: 1rem 1.15rem;
  border-radius: 12px;
  font-size: .93rem;
  border: 1px solid transparent;
}
.form-status.is-visible { display: flex; }
.form-status svg { width: 20px; height: 20px; flex: none; margin-top: .12rem; }
.form-status--success {
  background: #e8f7f0;
  border-color: #b6e3cd;
  color: #14653f;
}
.form-status--error {
  background: #fdeeeb;
  border-color: #f3c6bd;
  color: #99271a;
}
.form-status b { display: block; }

/* 9. Footer -------------------------------------------------------------- */
.site-footer {
  background: #08172c;
  color: #97a9c2;
  padding-top: clamp(3rem, 6vw, 4.5rem);
  font-size: .94rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
}
.site-footer h4 {
  font-family: var(--font-body);
  font-size: .82rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 1.15rem;
}
.site-footer .brand__name { color: #fff; }
.site-footer .brand__tag { color: #7d90ab; }
.site-footer .brand__logo {
  background: #f7f5f0;
  border-radius: 50%;
  border: 2px solid rgba(232, 187, 92, .4);
  padding: 0;
}
.site-footer p { margin-top: 1rem; max-width: 34ch; }
.footer-links { display: grid; gap: .7rem; }
.footer-links a:hover { color: var(--gold-400); }
.footer-contact { display: grid; gap: .9rem; }
.footer-contact li { display: flex; gap: .7rem; }
.footer-contact svg { width: 17px; height: 17px; flex: none; margin-top: .2rem; color: var(--gold-400); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1.5rem;
  justify-content: space-between;
  padding: 1.35rem 0;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: .86rem;
}
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.footer-bottom a:hover { color: #fff; }

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }

/* 10. Responsive --------------------------------------------------------- */
@media (max-width: 992px) {
  .wrap { padding-inline: 1.15rem; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .stat-band { grid-template-columns: repeat(2, 1fr); }
  .hero .wrap { grid-template-columns: 1fr; padding-block: 2.5rem 3.5rem; }
  .hero__panel { order: -1; max-width: 520px; margin-inline: auto; width: 100%; }
  .hero__badge { left: 1rem; right: 1rem; bottom: -16px; transform: none; }
  .split,
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .site-header .wrap { min-height: 68px; gap: .75rem; }

  .nav-toggle { display: grid; flex: none; }
  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: grid;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s var(--ease);
  }
  .site-nav.is-open { max-height: min(80vh, 520px); overflow-y: auto; }
  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: .75rem 1.15rem 1.35rem;
  }
  .nav__list a {
    padding: 1rem .35rem;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    font-size: 1rem;
  }
  .nav__list a[aria-current="page"]::after { display: none; }
  .nav__list .btn {
    margin-top: 1rem;
    border-bottom: 0;
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 700px) {
  html { scroll-padding-top: 74px; }
  body { font-size: .97rem; overflow-x: hidden; }
  h1 { font-size: clamp(1.75rem, 8vw, 2.35rem); }
  h2 { font-size: clamp(1.4rem, 6.5vw, 1.9rem); }
  h3 { font-size: 1.1rem; }
  .section { padding: 2.75rem 0; }
  .section-head { margin-bottom: 1.75rem; }
  .grid--2,
  .grid--3,
  .grid--4 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; gap: 1rem; }
  .topbar .wrap { min-height: auto; padding-block: .5rem; }
  .topbar__list {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: .35rem 1.1rem;
    font-size: .72rem;
    width: 100%;
  }
  .topbar__list li {
    white-space: nowrap;
  }
  .ticker { font-size: .74rem; }
  .ticker__track { gap: 1.1rem; animation-duration: 22s; }
  .brand__logo { width: 52px; height: 52px; border-radius: 50%; padding: 3px; }
  .brand__name { font-size: .95rem; }
  .brand__tag { font-size: .6rem; letter-spacing: .08em; }
  .hero__lead { font-size: 1rem; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; }
  .hero__facts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem 1.25rem;
    margin-top: 1.75rem;
    padding-top: 1.25rem;
  }
  .hero__fact strong { font-size: 1.45rem; }
  .stat-band { grid-template-columns: 1fr 1fr; }
  .stat-band > div { padding: 1.35rem 1rem; }
  .card { padding: 1.35rem; }
  .news li { grid-template-columns: 1fr; gap: .85rem; }
  .news__date { width: 78px; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .steps li { padding: 1.25rem; }
  .steps li::before { position: static; margin-bottom: .85rem; }
  .cta {
    text-align: center;
    justify-content: center;
    padding: 1.75rem 1.25rem;
    border-radius: 16px;
  }
  .cta p { margin-inline: auto; }
  .cta__actions {
    justify-content: center;
    width: 100%;
    flex-direction: column;
  }
  .cta__actions .btn { width: 100%; }
  .page-hero { padding: 2.25rem 0; text-align: left; }
  .page-hero .eyebrow { justify-content: flex-start; }
  .crumbs { justify-content: flex-start; flex-wrap: wrap; }
  .info-card { align-items: flex-start; }
  .hours li {
    flex-direction: column;
    align-items: flex-start;
    gap: .2rem;
  }
  .form-card { padding: 1.25rem; border-radius: 16px; }
  .form-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .form-actions .btn { width: 100%; }
  .map-frame iframe { height: 260px; }
  .table-scroll {
    margin-inline: -0.25rem;
    border-radius: 12px;
  }
  .gallery { grid-template-columns: 1fr; }
  .split { gap: 1.5rem; }
  .quote { padding: 1.35rem; }
  .pill-row { gap: .45rem; }
  .pill { font-size: .8rem; padding: .4rem .8rem; }
}

@media (max-width: 420px) {
  .wrap { padding-inline: 1rem; }
  .brand__name { font-size: .88rem; }
  .brand__logo { width: 46px; height: 46px; border-radius: 50%; padding: 3px; }
  .brand__tag { font-size: .56rem; }
  .topbar__list { font-size: .68rem; gap: .3rem .75rem; }
  .btn { padding: .85rem 1.1rem; font-size: .94rem; }
  .hero__badge {
    left: .75rem;
    right: .75rem;
    bottom: -18px;
    padding: .7rem .85rem;
    font-size: .9rem;
  }
  .stat-band { grid-template-columns: 1fr; }
  .hero__facts { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .topbar, .site-footer, .hero__actions, .cta { display: none; }
  body { color: #000; }
}
