/* Royal Habitat Integrated Girls School
   Palette from the logo and the building: maroon, navy, white plaster, warm window light.
   Type: Bodoni Moda (display) + Instrument Sans (text). Signature: the pointed arch from the crest. */

:root {
  --paper: #ffffff;
  --ink: #1d1b26;
  --ink-2: #545260;
  --maroon: #641223;
  --maroon-deep: #4a0d1a;
  --navy: #282847;
  --navy-deep: #1d1d36;
  --stone: #f4f3f6;
  --rule: #e2e0e6;
  --lamp: #e9b44c;
  --on-dark: #d9d8e6;

  --display: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --text: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --wrap: 1180px;
  --gutter: clamp(20px, 4vw, 40px);
  --space: clamp(64px, 9vw, 120px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.65 var(--text); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--maroon); text-underline-offset: 3px; }
a:hover { color: var(--maroon-deep); }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; }
:focus-visible { outline: 3px solid var(--lamp); outline-offset: 3px; border-radius: 2px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; }
.skip:focus { left: 8px; }

.wrap { max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding-top: var(--space); }
.section--end { padding-bottom: var(--space); }
.band { padding: var(--space) 0; }
.band--stone { background: var(--stone); }
.band--navy { background: var(--navy); color: #fff; }

/* ---------- Type ---------- */
.t-hero { font: 500 clamp(40px, 6.2vw, 78px)/1.02 var(--display); letter-spacing: -0.015em; font-optical-sizing: auto; }
.t-1 { font: 500 clamp(36px, 5vw, 62px)/1.05 var(--display); letter-spacing: -0.01em; }
.t-2 { font: 500 clamp(30px, 3.6vw, 46px)/1.1 var(--display); letter-spacing: -0.005em; }
.t-3 { font: 600 clamp(22px, 2.2vw, 26px)/1.2 var(--display); }
.t-4 { font: 600 17px/1.35 var(--text); }
.lead { font-size: clamp(18px, 1.6vw, 20px); line-height: 1.6; color: var(--ink-2); max-width: 36em; }
.muted { color: var(--ink-2); }
.small { font-size: 15px; }
.measure { max-width: 38em; }
.band--navy .lead, .band--navy .muted, .band--navy p { color: var(--on-dark); }
.band--navy .t-1, .band--navy .t-2, .band--navy .t-3 { color: #fff; }
.motto { font: italic 500 clamp(20px, 2vw, 24px)/1.3 var(--display); color: var(--maroon); }
.stack > * + * { margin-top: 20px; }
.stack-lg > * + * { margin-top: 32px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 6px; border: 1.5px solid transparent; font: 600 16px/1 var(--text); text-decoration: none; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; }
.btn--main { background: var(--maroon); color: #fff; }
.btn--main:hover { background: var(--maroon-deep); color: #fff; }
.btn--line { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--line:hover { background: var(--navy); color: #fff; }
.btn--light { background: #fff; color: var(--navy); }
.btn--light:hover { background: var(--stone); color: var(--navy); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn--ghost:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn--wide { width: 100%; }
.btn svg { width: 18px; height: 18px; flex: none; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.textlink { font-weight: 600; text-decoration: underline; text-decoration-thickness: 1.5px; }

/* ---------- Header ---------- */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); -webkit-backdrop-filter: saturate(1.4) blur(8px); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.header.is-scrolled { border-bottom-color: var(--rule); }
.header__in { display: flex; align-items: center; gap: 24px; min-height: 84px; }
.header__logo { flex: none; line-height: 0; }
.header__logo img { height: 52px; width: auto; }
.nav { display: flex; gap: 26px; margin-left: auto; font-size: 15px; font-weight: 500; }
.nav a { color: var(--ink); text-decoration: none; padding: 8px 0; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--maroon); }
.nav a[aria-current="page"] { color: var(--maroon); border-bottom-color: var(--maroon); }
.header__cta { flex: none; }
.menu-btn { display: none; margin-left: auto; width: 48px; height: 48px; border: 1px solid var(--rule); border-radius: 6px; background: #fff; color: var(--ink); align-items: center; justify-content: center; cursor: pointer; }
.menu-btn svg { width: 22px; height: 22px; }
.menu-btn .i-close { display: none; }
.menu-btn[aria-expanded="true"] .i-open { display: none; }
.menu-btn[aria-expanded="true"] .i-close { display: block; }
.drawer { display: none; }

@media (max-width: 1080px) {
  .nav, .header__cta { display: none; }
  .menu-btn { display: inline-flex; }
  .header__in { min-height: 72px; }
  .header__logo img { height: 44px; }
  .drawer { display: block; position: fixed; inset: 72px 0 0; z-index: 49; background: #fff; overflow-y: auto; padding: 8px var(--gutter) 40px; visibility: hidden; opacity: 0; transition: opacity .2s, visibility .2s; }
  .drawer.is-open { visibility: visible; opacity: 1; }
  .drawer nav { display: flex; flex-direction: column; }
  .drawer nav a { font: 500 28px/1.2 var(--display); color: var(--ink); text-decoration: none; padding: 14px 0; border-bottom: 1px solid var(--rule); }
  .drawer nav a[aria-current="page"] { color: var(--maroon); }
  .drawer__foot { display: grid; gap: 12px; margin-top: 28px; }
  .drawer__foot p { font-size: 15px; color: var(--ink-2); }
  body.is-locked { overflow: hidden; }
}

/* ---------- The arch (signature) ---------- */
.arch { position: relative; aspect-ratio: 4 / 5; background: var(--stone);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 500' preserveAspectRatio='none'%3E%3Cpath d='M0 500V190Q0 48 200 0Q400 48 400 190V500Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 500' preserveAspectRatio='none'%3E%3Cpath d='M0 500V190Q0 48 200 0Q400 48 400 190V500Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }
.arch img { width: 100%; height: 100%; object-fit: cover; }
.arch-frame { position: relative; }
.arch-frame::after { content: ""; position: absolute; inset: -14px -14px 0; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 428 514' preserveAspectRatio='none'%3E%3Cpath d='M1 514V196Q1 52 214 1Q427 52 427 196V514' fill='none' stroke='%23641223' stroke-width='1.5' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }

/* ---------- Home hero ---------- */
.hero { padding: clamp(28px, 5vw, 64px) 0 0; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 88px); align-items: end; }
.hero__copy { padding-bottom: 12px; }
.hero__copy .t-hero { max-width: 11em; }
.hero__copy .lead { margin-top: 24px; }
.hero__copy .actions { margin-top: 36px; }
.hero__note { margin-top: 28px; display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--ink-2); }
.hero__note::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--lamp); box-shadow: 0 0 0 4px rgba(233,180,76,.25); flex: none; }
.hero__media { max-width: 460px; width: 100%; justify-self: end; }
.hero__media figcaption { margin-top: 14px; font-size: 14px; color: var(--ink-2); }

@media (prefers-reduced-motion: no-preference) {
  .hero__media .arch { animation: arch-open 1.1s cubic-bezier(.2,.7,.2,1) both .1s; }
  .hero__media .arch img { animation: settle 1.6s cubic-bezier(.2,.7,.2,1) both .1s; }
  @keyframes arch-open { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
  @keyframes settle { from { transform: scale(1.08); } to { transform: none; } }
}

@media (max-width: 860px) {
  .hero { padding-top: 16px; }
  .hero__grid { grid-template-columns: 1fr; gap: 28px; }
  .hero__media { order: -1; justify-self: stretch; max-width: none; }
  .hero__media .arch { aspect-ratio: 5 / 4.4; }
  .hero__copy .actions .btn { flex: 1 1 220px; }
}

/* ---------- Facts ---------- */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--ink); margin-top: clamp(48px, 7vw, 88px); }
.facts div { padding: 22px 24px 0 0; }
.facts div + div { padding-left: 24px; border-left: 1px solid var(--rule); }
.facts dt { font-size: 14px; color: var(--ink-2); }
.facts dd { margin-top: 6px; font: 500 21px/1.3 var(--display); }
@media (max-width: 860px) {
  .facts { grid-template-columns: 1fr 1fr; }
  .facts div:nth-child(3) { padding-left: 0; border-left: 0; }
  .facts div:nth-child(n+3) { border-top: 1px solid var(--rule); margin-top: 22px; }
}
@media (max-width: 420px) { .facts dd { font-size: 18px; } .facts div { padding-right: 12px; } .facts div + div { padding-left: 14px; } }

/* ---------- Section heads ---------- */
.head { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 24px 64px; align-items: end; margin-bottom: clamp(32px, 5vw, 56px); }
.head > p { color: var(--ink-2); }
@media (max-width: 860px) { .head { grid-template-columns: 1fr; } }

/* ---------- Pathway index ---------- */
.paths { list-style: none; border-top: 1px solid var(--ink); }
.path { border-bottom: 1px solid var(--rule); }
.path a { display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; gap: 28px; align-items: center; padding: 26px 0; color: var(--ink); text-decoration: none; }
.path__code { font: 500 34px/1 var(--display); color: var(--maroon); }
.path__body h3 { margin-bottom: 4px; }
.path__body p { color: var(--ink-2); font-size: 16px; max-width: 40em; }
.path__go { font-weight: 600; font-size: 15px; color: var(--navy); white-space: nowrap; padding: 10px 16px; border: 1.5px solid var(--navy); border-radius: 6px; transition: background-color .15s, color .15s; }
.path a:hover .path__go, .path a:focus-visible .path__go { background: var(--navy); color: #fff; }
.path a:hover .t-4 { color: var(--maroon); }
@media (max-width: 720px) {
  .path a { grid-template-columns: 1fr auto; gap: 6px 16px; padding: 22px 0; }
  .path__code { font-size: 26px; grid-column: 1; }
  .path__go { grid-row: 1; grid-column: 2; padding: 8px 12px; }
  .path__body { grid-column: 1 / -1; }
}

/* ---------- Campus feature ---------- */
.campus { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.campus__main img { width: 100%; border-radius: 4px; }
.campus__main figcaption, .shot figcaption { margin-top: 12px; font-size: 14px; color: var(--ink-2); }
.campus__side { display: grid; gap: 28px; }
.shots { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.shot img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 4px; }
@media (max-width: 860px) { .campus { grid-template-columns: 1fr; } }

/* ---------- Two-column list ---------- */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); }
.split__aside { align-self: start; }
@media (min-width: 861px) { .split__aside { position: sticky; top: 120px; } }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.items { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
.items li { padding: 22px 0; border-top: 1px solid var(--rule); }
.items li p { margin-top: 6px; color: var(--ink-2); font-size: 16px; }
.items--one { grid-template-columns: 1fr; }
@media (max-width: 640px) { .items { grid-template-columns: 1fr; } }
.band--navy .items li { border-top-color: rgba(255,255,255,.16); }
.band--navy .items li p { color: var(--on-dark); }

/* ---------- Steps (a real sequence) ---------- */
.steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.steps li { counter-increment: step; border-top: 2px solid var(--navy); padding-top: 20px; }
.steps li::before { content: counter(step); display: block; font: 500 44px/1 var(--display); color: var(--maroon); margin-bottom: 14px; }
.steps li p { margin-top: 8px; color: var(--ink-2); font-size: 16px; }
@media (max-width: 960px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps li { display: grid; grid-template-columns: 48px 1fr; column-gap: 12px; padding: 18px 0; border-top: 1px solid var(--rule); }
  .steps li::before { grid-row: span 2; font-size: 34px; margin: 0; }
  .steps li p { grid-column: 2; }
}

/* ---------- CTA band ---------- */
.cta { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: center; position: relative; }
.cta .t-2 { max-width: 14em; }
.cta p { margin-top: 14px; }
.band--navy { position: relative; overflow: hidden; }
.band--navy .crestline { position: absolute; right: -60px; top: 50%; width: 360px; transform: translateY(-50%); opacity: .1; pointer-events: none; }
@media (max-width: 760px) { .cta { grid-template-columns: 1fr; } .cta .actions .btn { flex: 1 1 200px; } .band--navy .crestline { width: 260px; right: -90px; } }

/* ---------- Page hero (inner pages) ---------- */
.phero { padding: clamp(28px, 5vw, 64px) 0 0; }
.phero__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(28px, 6vw, 88px); align-items: end; }
.phero__grid--text { grid-template-columns: minmax(0, 1fr); }
.phero .lead { margin-top: 22px; }
.phero .actions { margin-top: 32px; }
.phero__media { max-width: 380px; width: 100%; justify-self: end; }
.crumb { font-size: 15px; margin-bottom: 18px; color: var(--ink-2); }
.crumb a { color: var(--ink-2); }
@media (max-width: 860px) {
  .phero__grid { grid-template-columns: 1fr; }
  .phero__media { order: -1; justify-self: stretch; max-width: none; }
  .phero__media .arch { aspect-ratio: 5 / 3.6; }
}

/* ---------- Quote ---------- */
.quote { font: italic 500 clamp(28px, 3.6vw, 44px)/1.2 var(--display); max-width: 20em; }
.quote-by { margin-top: 18px; color: var(--on-dark); }

/* ---------- Data rows ---------- */
.rows { width: 100%; border-collapse: collapse; font-size: 16px; }
.rows th, .rows td { text-align: left; vertical-align: top; padding: 16px 0; border-top: 1px solid var(--rule); }
.rows th { width: 42%; padding-right: 20px; font-weight: 500; color: var(--ink-2); }
.tbc { color: var(--ink-2); font-style: italic; }

/* ---------- Checklist ---------- */
.ticks { list-style: none; display: grid; gap: 14px; }
.ticks li { position: relative; padding-left: 32px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .35em; width: 18px; height: 18px; border-radius: 50%; background: var(--maroon) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 12px no-repeat; }
.band--navy .ticks li::before { background-color: var(--lamp); }

.tags { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; }
.tags li { padding: 9px 14px; border: 1px solid var(--rule); border-radius: 6px; font-size: 15px; }
.band--navy .tags li { border-color: rgba(255,255,255,.25); }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--ink); }
.contact > div { padding: 24px 24px 24px 0; }
.contact > div + div { padding-left: 24px; border-left: 1px solid var(--rule); }
.contact dt { font-size: 14px; color: var(--ink-2); }
.contact dd { margin-top: 6px; font: 500 20px/1.35 var(--display); }
.contact dd a { color: var(--ink); }
@media (max-width: 760px) { .contact { grid-template-columns: 1fr; } .contact > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule); } }
.map { margin-top: 32px; aspect-ratio: 16 / 7; border-radius: 4px; overflow: hidden; background: var(--stone); }
.map iframe { width: 100%; height: 100%; border: 0; }
@media (max-width: 760px) { .map { aspect-ratio: 4 / 3; } }

/* ---------- Registration form ---------- */
.apply { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
@media (min-width: 1025px) { .apply__aside { position: sticky; top: 120px; } }
@media (max-width: 1024px) { .apply { grid-template-columns: 1fr; } }
.apply__aside .ticks { margin-top: 24px; font-size: 16px; }
.form { display: grid; gap: 36px; }
.form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 20px 20px; }
.form legend { grid-column: 1 / -1; font: 600 24px/1.2 var(--display); padding: 0 0 4px; margin-bottom: 4px; width: 100%; border-bottom: 1px solid var(--rule); padding-bottom: 12px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field > label, .field > .label { font-size: 15px; font-weight: 600; }
.field .req { color: var(--maroon); }
.field .hint { font-size: 13px; color: var(--ink-2); font-weight: 400; }
.field input, .field select, .field textarea { width: 100%; font: 400 16px/1.4 var(--text); color: var(--ink); background: #fff; border: 1.5px solid #c9c6cf; border-radius: 6px; padding: 12px 14px; min-height: 50px; -webkit-appearance: none; appearance: none; }
.field select { background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23545260' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 12px center / 18px no-repeat; padding-right: 40px; }
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(40,40,71,.15); }
.dob { display: grid; grid-template-columns: 1fr 1.4fr 1.2fr; gap: 10px; }
.err { display: none; font-size: 14px; color: #a1191f; font-weight: 500; }
.field.bad .err { display: block; }
.field.bad input, .field.bad select, .field.bad textarea, .field.bad .phone { border-color: #a1191f; }
.same { display: inline-flex; gap: 10px; align-items: center; font-size: 15px; font-weight: 400; margin-top: 2px; }
.same input { width: 20px; height: 20px; min-height: 0; padding: 0; accent-color: var(--maroon); -webkit-appearance: auto; appearance: auto; }
.field.is-same .phone { opacity: .5; pointer-events: none; }
.form__send { display: grid; gap: 14px; }
.form__send p { font-size: 14px; color: var(--ink-2); }
.form__error { display: none; padding: 16px; border-radius: 6px; background: #fbeaea; color: #7a1016; font-size: 15px; }
.form__error.show { display: block; }
@media (max-width: 640px) { .form fieldset { grid-template-columns: 1fr; } }

/* phone + country picker */
.phone { position: relative; display: flex; border: 1.5px solid #c9c6cf; border-radius: 6px; background: #fff; }
.phone:focus-within { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(40,40,71,.15); }
.field .phone input[type=tel] { border: 0; box-shadow: none; flex: 1; min-width: 0; border-radius: 0 6px 6px 0; }
.phone__country { display: inline-flex; align-items: center; gap: 6px; padding: 0 10px 0 12px; border: 0; border-right: 1px solid var(--rule); background: var(--stone); border-radius: 5px 0 0 5px; font: 600 16px/1 var(--text); color: var(--ink); cursor: pointer; min-height: 47px; flex: none; }
.phone__chev { width: 14px; height: 14px; color: var(--ink-2); }
.flag { font-family: "Noto Color Emoji", "Apple Color Emoji", "Segoe UI Emoji", sans-serif; font-size: 20px; line-height: 1; font-weight: 400; }
.phone__menu { position: absolute; z-index: 40; top: calc(100% + 6px); left: 0; width: min(340px, calc(100vw - 2 * var(--gutter))); background: #fff; border: 1px solid var(--rule); border-radius: 8px; box-shadow: 0 18px 40px rgba(29,27,38,.18); padding: 8px; }
.phone__menu[hidden] { display: none; }
.field .phone__search { min-height: 44px; margin-bottom: 6px; font-size: 15px; }
.phone__list { list-style: none; max-height: 264px; overflow-y: auto; overscroll-behavior: contain; }
.phone__list li[role=option] { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 6px; cursor: pointer; font-size: 15px; }
.phone__list li[role=option]:hover, .phone__list li.is-active { background: var(--stone); }
.phone__list li[aria-selected=true] { color: var(--maroon); font-weight: 600; }
.phone__name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.phone__code { color: var(--ink-2); font-variant-numeric: tabular-nums; }
.phone__divider { height: 1px; background: var(--rule); margin: 6px 4px; }
.phone__empty { padding: 12px; color: var(--ink-2); font-size: 15px; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-deep); color: var(--on-dark); padding: 72px 0 28px; font-size: 15px; }
.footer a { color: var(--on-dark); text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer__grid { display: grid; grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 2fr)); gap: 40px; }
.footer__logo { display: inline-block; background: #fff; border-radius: 6px; padding: 14px 18px; line-height: 0; }
.footer__logo img { height: 96px; width: auto; }
.footer__motto { margin-top: 20px; font: italic 500 20px/1.35 var(--display); color: #fff; }
.footer h2 { font: 600 16px/1.3 var(--text); color: #fff; margin-bottom: 14px; }
.footer ul { list-style: none; display: grid; gap: 10px; }
.footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 56px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.14); font-size: 14px; color: #a9a8bd; }
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer__grid { grid-template-columns: 1fr; } }

/* ---------- Phone action bar ---------- */
.dock { display: none; }
@media (max-width: 760px) {
  .dock { display: flex; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom, 0px)); background: rgba(255,255,255,.97); border-top: 1px solid var(--rule); transform: translateY(110%); transition: transform .25s ease; }
  .dock.show { transform: none; }
  .dock .btn { flex: 1; min-height: 48px; }
  .dock__icon { width: 48px; height: 48px; flex: none; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; color: #fff; background: var(--navy); }
  .dock__icon--wa { background: #1f7a4d; }
  .dock__icon svg { width: 22px; height: 22px; }
  .footer { padding-bottom: 96px; }
}

/* ---------- Thank you / 404 ---------- */
.note-page { min-height: 60vh; display: grid; align-content: center; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
@media print { .header, .dock, .footer, .drawer { display: none !important; } }
.dob { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) minmax(0, 1.2fr); }
.dob select, .field select, .field input { min-width: 0; }
