/* Kusaki College Yandev — site styles
   Palette drawn from the crest, warmed with sandstone and amber. */

:root {
  --navy: #1d2264;          /* crest banner */
  --navy-700: #262c7a;
  --ink: #162231;           /* crest shield */
  --ink-2: #2b3747;
  --sand: #dbac84;          /* sandstone */
  --sand-200: #efd9c4;
  --sand-50: #faf4ee;
  --amber: #f59e0b;
  --amber-600: #d98506;
  --motto: #b8231f;         /* crest motto red — used sparingly */
  --white: #ffffff;
  --muted: #5d6675;
  --line: #e7ddd2;

  --font-display: "Marcellus", "Trajan Pro", Georgia, "Times New Roman", serif;
  --font-body: "Figtree", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;

  --wrap: 1180px;
  --gutter: clamp(1.1rem, 4vw, 2rem);
  --radius-s: 6px;
  --radius-m: 14px;
  --shadow: 0 18px 40px -22px rgba(22, 34, 49, .45);
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--navy); text-underline-offset: .18em; }
a:hover { color: var(--navy-700); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 3px; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; line-height: 1.15; margin: 0 0 .6em; color: var(--ink); letter-spacing: .005em; }
h1 { font-size: clamp(2.3rem, 5.4vw, 4.1rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.55rem); }
p { margin: 0 0 1.1em; }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.28rem); color: var(--ink-2); max-width: 62ch; }
.muted { color: var(--muted); }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.narrow { max-width: 68ch; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--amber); color: var(--ink); padding: .6rem 1rem; z-index: 100; font-weight: 600; }
.skip-link:focus { left: 1rem; top: 1rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font: 600 1rem/1 var(--font-body);
  padding: .95rem 1.45rem; border-radius: var(--radius-s);
  border: 2px solid transparent; text-decoration: none; cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn-amber { background: var(--amber); color: var(--ink); }
.btn-amber:hover { background: #ffb42e; color: var(--ink); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-700); color: var(--white); }
.btn-ghost-light { border-color: rgba(255,255,255,.7); color: var(--white); }
.btn-ghost-light:hover { background: rgba(255,255,255,.12); color: var(--white); }
.btn-ghost { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-ghost:hover { background: var(--navy); color: var(--white); }
.btn-whatsapp { background: #1f8f4e; color: var(--white); }
.btn-whatsapp:hover { background: #197a42; color: var(--white); }
.btn-lg { padding: 1.1rem 1.7rem; font-size: 1.06rem; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; }

/* ---------- Utility bar + header ---------- */
.utility { background: var(--ink); color: #c9d1dc; font-size: .875rem; }
.utility .wrap { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 40px; }
.utility a { color: #e8edf3; text-decoration: none; }
.utility a:hover { color: var(--amber); }
.utility-list { display: flex; gap: 1.4rem; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.utility-list li { display: inline-flex; align-items: center; gap: .45rem; }
.utility svg { width: 15px; height: 15px; color: var(--sand); }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: .8rem; text-decoration: none; color: var(--ink); }
.brand img { width: 54px; height: auto; }
.brand-name { font-family: var(--font-display); font-size: 1.35rem; line-height: 1.05; display: block; color: var(--navy); }
.brand-place { display: block; font-size: .82rem; color: var(--muted); letter-spacing: .02em; margin-top: 2px; }

.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav-links { display: flex; gap: .3rem; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: block; padding: .55rem .75rem; font-weight: 500; font-size: .98rem;
  color: var(--ink); text-decoration: none; border-radius: var(--radius-s); position: relative;
}
.nav-links a:hover { color: var(--navy); background: var(--sand-50); }
.nav-links a[aria-current="page"] { color: var(--navy); }
.nav-links a[aria-current="page"]::after { content: ""; position: absolute; left: .75rem; right: .75rem; bottom: .2rem; height: 3px; background: var(--amber); border-radius: 2px; }
.nav-cta { display: flex; gap: .6rem; }
.nav-cta .btn { padding: .72rem 1.1rem; font-size: .95rem; }

.nav-toggle { display: none; background: none; border: 0; padding: .5rem; cursor: pointer; color: var(--ink); }
.nav-toggle svg { width: 28px; height: 28px; }

@media (max-width: 1060px) {
  .utility { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; background: var(--white);
    flex-direction: column; align-items: stretch; gap: 1rem; padding: 1rem var(--gutter) 1.6rem;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
  }
  .nav.is-open { opacity: 1; transform: none; visibility: visible; transition: opacity .2s ease, transform .2s ease; }
  .nav-links { flex-direction: column; }
  .nav-links a { padding: .85rem .5rem; font-size: 1.08rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav-links a[aria-current="page"]::after { left: auto; right: .5rem; top: 50%; bottom: auto; width: 8px; height: 8px; border-radius: 50%; transform: translateY(-50%); }
  .nav-cta { flex-direction: column; }
  .nav-cta .btn { padding: .95rem 1rem; font-size: 1rem; }
}
@media (max-width: 420px) {
  .brand img { width: 44px; }
  .brand-name { font-size: 1.15rem; }
}

/* ---------- Hero (home) ---------- */
.hero { position: relative; color: var(--white); background: var(--ink); isolation: isolate; overflow: hidden; }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(100deg, rgba(22,34,49,.94) 0%, rgba(29,34,100,.82) 42%, rgba(29,34,100,.25) 78%, rgba(22,34,49,.15) 100%);
}
.hero-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 2rem; padding-block: clamp(4.5rem, 12vw, 8.5rem) clamp(5.5rem, 12vw, 8rem); }
.hero h1 { color: var(--white); max-width: 18ch; margin-bottom: .45em; }
.hero-sub { font-size: clamp(1.08rem, 1.5vw, 1.25rem); max-width: 56ch; color: #e6e9f1; margin-bottom: 2rem; }
.hero-crest { width: clamp(150px, 18vw, 230px); height: auto; filter: drop-shadow(0 16px 30px rgba(0,0,0,.35)); }
.hero-place { display: inline-flex; align-items: center; gap: .5rem; color: var(--sand); font-weight: 600; margin-bottom: 1.1rem; font-size: 1rem; }
.hero-place svg { width: 18px; height: 18px; }

@media (max-width: 760px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-crest { display: none; }
  .hero::before { background: linear-gradient(180deg, rgba(22,34,49,.5) 0%, rgba(29,34,100,.86) 72%); }
}

/* Motto ribbon — the signature element */
.ribbon { position: relative; z-index: 2; margin-top: -2.6rem; }
.ribbon-band {
  display: flex; align-items: center; justify-content: center; gap: clamp(.8rem, 3vw, 2.2rem); flex-wrap: wrap;
  background: var(--sand); color: var(--ink);
  padding: 1.15rem 3.4rem;
  clip-path: polygon(0 0, 100% 0, calc(100% - 26px) 50%, 100% 100%, 0 100%, 26px 50%);
  box-shadow: var(--shadow);
}
.ribbon-motto { font-family: var(--font-display); font-size: clamp(1.35rem, 3vw, 2.1rem); line-height: 1.1; color: var(--ink); margin: 0; text-align: center; }
.ribbon-motto .amp { color: var(--motto); padding-inline: .2em; }
.ribbon-rule { width: 1px; align-self: stretch; background: rgba(22,34,49,.25); }
.ribbon-note { margin: 0; font-size: .98rem; max-width: 32ch; color: var(--ink-2); }
@media (max-width: 700px) {
  .ribbon-band { padding: 1rem 2.4rem; clip-path: polygon(0 0, 100% 0, calc(100% - 16px) 50%, 100% 100%, 0 100%, 16px 50%); }
  .ribbon-rule { display: none; }
  .ribbon-note { text-align: center; font-size: .92rem; }
}

/* ---------- Page banner (inner pages) ---------- */
.page-banner { position: relative; isolation: isolate; color: var(--white); background: var(--navy); overflow: hidden; }
.page-banner .banner-media { position: absolute; inset: 0; z-index: -2; }
.page-banner .banner-media img { width: 100%; height: 100%; object-fit: cover; }
.page-banner::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(95deg, rgba(22,34,49,.95) 0%, rgba(29,34,100,.85) 55%, rgba(29,34,100,.45) 100%); }
.page-banner .wrap { padding-block: clamp(3.2rem, 8vw, 5.5rem) clamp(3.6rem, 8vw, 5.5rem); }
.page-banner h1 { color: var(--white); max-width: 20ch; margin-bottom: .35em; }
.page-banner p { color: #e3e7ef; max-width: 60ch; font-size: clamp(1.05rem, 1.4vw, 1.2rem); margin: 0; }
.crumbs { list-style: none; display: flex; gap: .5rem; padding: 0; margin: 0 0 1.2rem; font-size: .9rem; color: var(--sand); }
.crumbs a { color: var(--sand-200); text-decoration: none; }
.crumbs a:hover { color: var(--white); text-decoration: underline; }
.crumbs li + li::before { content: "/"; margin-right: .5rem; color: rgba(255,255,255,.45); }
.page-banner::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: linear-gradient(90deg, var(--amber) 0 30%, var(--sand) 30% 100%); }

/* ---------- Sections ---------- */
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section-sand { background: var(--sand-50); }
.section-ink { background: var(--ink); color: #dfe4ec; }
.section-ink h2, .section-ink h3 { color: var(--white); }
.section-head { max-width: 62ch; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.section-ink .section-head p { color: #b9c2cf; }

.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } }

/* Photo frame with graceful fallback when a placeholder fails to load */
.photo { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--navy) 0%, var(--ink) 100%); border-radius: var(--radius-m); }
.photo::before { content: ""; position: absolute; inset: 0; background: url("../img/crest-sm.png") center / 34% no-repeat; opacity: .18; }
.photo img { position: relative; width: 100%; height: 100%; object-fit: cover; }
.photo.img-failed img, .hero-media.img-failed img, .banner-media.img-failed img { visibility: hidden; }

/* Welcome composition */
.welcome-photos { position: relative; padding: 0 0 3.5rem 2.5rem; }
.welcome-photos .photo-main { aspect-ratio: 4 / 5; box-shadow: var(--shadow); }
.welcome-photos .photo-inset { position: absolute; left: 0; bottom: 0; width: 46%; aspect-ratio: 1; border: 6px solid var(--white); box-shadow: var(--shadow); }
.welcome-photos::before { content: ""; position: absolute; right: -14px; top: 24px; width: 55%; height: 70%; background: var(--sand-200); border-radius: var(--radius-m); z-index: -1; }
.welcome-photos { isolation: isolate; }
.signoff { display: flex; align-items: center; gap: 1rem; margin-top: 1.6rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.signoff img { width: 58px; }
.signoff strong { display: block; font-family: var(--font-display); font-weight: 400; font-size: 1.15rem; }
.signoff span { color: var(--muted); font-size: .95rem; }

/* Pillars — alternating photo stories rather than identical cards */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.pillar { display: flex; flex-direction: column; }
.pillar .photo { aspect-ratio: 4 / 5; border-radius: var(--radius-s); margin-bottom: 1.1rem; }
.pillar:nth-child(even) { margin-top: 2.6rem; }
.pillar h3 { margin-bottom: .4em; }
.pillar p { color: var(--muted); font-size: 1rem; margin: 0; }
@media (max-width: 980px) { .pillars { grid-template-columns: repeat(2, 1fr); } .pillar:nth-child(even) { margin-top: 0; } }
@media (max-width: 520px) { .pillars { grid-template-columns: 1fr; } .pillar .photo { aspect-ratio: 16 / 10; } }

/* Quick access */
.quick { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(255,255,255,.14); }
.quick a {
  display: flex; flex-direction: column; gap: .5rem; padding: 1.8rem 1.5rem 1.9rem; text-decoration: none; color: #dfe4ec;
  border-right: 1px solid rgba(255,255,255,.14); transition: background-color .18s ease;
}
.quick a:last-child { border-right: 0; }
.quick a:hover { background: rgba(255,255,255,.05); color: var(--white); }
.quick svg { width: 30px; height: 30px; color: var(--amber); margin-bottom: .4rem; }
.quick strong { font-family: var(--font-display); font-weight: 400; font-size: 1.35rem; color: var(--white); }
.quick span { font-size: .96rem; color: #b9c2cf; }
@media (max-width: 900px) { .quick { grid-template-columns: repeat(2, 1fr); } .quick a:nth-child(2) { border-right: 0; } .quick a:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.14); } }
@media (max-width: 520px) { .quick { grid-template-columns: 1fr; } .quick a { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.14); } }

/* Gallery mosaic */
.gallery { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 150px; gap: .8rem; }
.gallery .photo { border-radius: var(--radius-s); }
.gallery .g1 { grid-column: span 3; grid-row: span 2; }
.gallery .g2 { grid-column: span 3; }
.gallery .g3 { grid-column: span 2; }
.gallery .g4 { grid-column: span 1; }
.gallery .g5 { grid-column: span 2; grid-row: span 2; }
.gallery .g6 { grid-column: span 4; grid-row: span 2; }
@media (max-width: 760px) {
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 140px; }
  .gallery .g1, .gallery .g6 { grid-column: span 2; grid-row: span 2; }
  .gallery .g2, .gallery .g3, .gallery .g4, .gallery .g5 { grid-column: span 1; grid-row: span 1; }
}
.gallery-note { margin-top: 1rem; font-size: .9rem; color: var(--muted); }

/* CTA band */
.cta-band { position: relative; background: var(--navy); color: var(--white); overflow: hidden; isolation: isolate; }
.cta-band::before { content: ""; position: absolute; right: -80px; top: 50%; width: 420px; height: 420px; transform: translateY(-50%); background: url("../img/crest.png") center / contain no-repeat; opacity: .08; z-index: -1; }
.cta-band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; padding-block: clamp(3rem, 7vw, 4.8rem); }
.cta-band h2 { color: var(--white); margin: 0 0 .3em; }
.cta-band p { margin: 0; color: #d6dbe7; max-width: 52ch; }

/* ---------- About ---------- */
.mv { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.mv article { background: var(--white); padding: clamp(1.8rem, 3.5vw, 2.6rem); border-top: 5px solid var(--amber); border-radius: 0 0 var(--radius-s) var(--radius-s); box-shadow: 0 1px 0 var(--line); }
.mv article:nth-child(2) { border-top-color: var(--navy); }
.mv h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.mv p { font-family: var(--font-display); font-size: clamp(1.2rem, 2vw, 1.45rem); line-height: 1.45; color: var(--ink-2); margin: 0; }
@media (max-width: 760px) { .mv { grid-template-columns: 1fr; } }

.values { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; border-top: 1px solid rgba(255,255,255,.16); }
.values li { list-style: none; padding: 1.6rem 1.3rem 0 0; }
.values li + li { padding-left: 1.3rem; border-left: 1px solid rgba(255,255,255,.16); }
.values h3 { font-size: 1.4rem; margin-bottom: .45em; }
.values h3::before { content: ""; display: block; width: 28px; height: 3px; background: var(--amber); margin-bottom: 1rem; }
.values p { font-size: .98rem; color: #b9c2cf; margin: 0; }
.values { padding: 0; margin: 0; }
@media (max-width: 960px) { .values { grid-template-columns: repeat(2, 1fr); } .values li, .values li + li { padding: 1.5rem 1.2rem 1.5rem 0; border-left: 0; border-bottom: 1px solid rgba(255,255,255,.12); } }
@media (max-width: 520px) { .values { grid-template-columns: 1fr; } }

.crest-explain { display: grid; grid-template-columns: 300px 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.crest-explain img { width: 100%; max-width: 300px; margin-inline: auto; }
.crest-parts { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem 2rem; }
.crest-parts li { padding-left: 1rem; border-left: 3px solid var(--sand); }
.crest-parts strong { display: block; font-family: var(--font-display); font-weight: 400; font-size: 1.2rem; }
.crest-parts span { color: var(--muted); font-size: .98rem; }
@media (max-width: 820px) { .crest-explain { grid-template-columns: 1fr; } .crest-parts { grid-template-columns: 1fr; } }

/* ---------- Admissions steps (a real sequence, so numbered) ---------- */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 0; }
.step { counter-increment: step; display: grid; grid-template-columns: 76px 1fr; gap: 1.4rem; position: relative; padding-bottom: 2.4rem; }
.step:last-child { padding-bottom: 0; }
.step::before {
  content: counter(step); display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%;
  background: var(--white); border: 2px solid var(--sand); font-family: var(--font-display); font-size: 1.6rem; color: var(--navy);
  position: relative; z-index: 1;
}
.step::after { content: ""; position: absolute; left: 30px; top: 60px; bottom: 0; width: 2px; background: var(--sand-200); }
.step:last-child::after { display: none; }
.step:last-child::before { background: var(--amber); border-color: var(--amber); color: var(--ink); }
.step h3 { margin: .35rem 0 .35em; }
.step p { color: var(--muted); margin: 0 0 .8rem; max-width: 58ch; }
.step .step-link { font-weight: 600; }

.apply-card { background: var(--ink); color: #dfe4ec; padding: clamp(1.8rem, 3.5vw, 2.4rem); border-radius: var(--radius-m); position: sticky; top: calc(var(--header-h) + 24px); overflow: hidden; isolation: isolate; }
.apply-card::before { content: ""; position: absolute; right: -60px; bottom: -60px; width: 240px; height: 240px; background: url("../img/crest.png") center / contain no-repeat; opacity: .08; z-index: -1; }
.apply-card h2 { color: var(--white); font-size: clamp(1.6rem, 2.6vw, 2rem); }
.apply-card p { color: #c3cbd7; }
.apply-card .btn + .btn { margin-top: .7rem; }
.apply-card small { display: block; margin-top: 1rem; color: #9aa6b6; font-size: .88rem; }
.admissions-grid { display: grid; grid-template-columns: 1.4fr .9fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
@media (max-width: 900px) { .admissions-grid { grid-template-columns: 1fr; } .apply-card { position: static; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.25fr .85fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-m); padding: clamp(1.5rem, 3.5vw, 2.4rem); box-shadow: 0 30px 60px -48px rgba(22,34,49,.5); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.2rem; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: .4rem; }
.field .req { color: var(--motto); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  padding: .82rem .9rem; border: 1.5px solid #cfc5ba; border-radius: var(--radius-s); background: var(--white);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(29,34,100,.15); }
.field .hint { font-size: .86rem; color: var(--muted); margin-top: .3rem; }
.field .error { display: none; font-size: .88rem; color: var(--motto); margin-top: .35rem; font-weight: 500; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--motto); }
.field.invalid .error { display: block; }
.form-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.5rem; align-items: center; }
.form-note { font-size: .9rem; color: var(--muted); margin: 1rem 0 0; }
.form-status { margin-top: 1rem; padding: .9rem 1rem; border-radius: var(--radius-s); background: #eef7f1; border: 1px solid #b8dcc5; color: #16532f; display: none; font-size: .96rem; }
.form-status.show { display: block; }

.office { background: var(--sand-50); border-radius: var(--radius-m); padding: clamp(1.5rem, 3vw, 2.2rem); }
.office h2 { font-size: 1.6rem; }
.office dl { margin: 0; display: grid; gap: 1.15rem; }
.office dt { font-weight: 600; font-size: .9rem; color: var(--muted); display: flex; align-items: center; gap: .5rem; }
.office dt svg { width: 18px; height: 18px; color: var(--amber-600); }
.office dd { margin: .2rem 0 0; font-size: 1.05rem; }
.office .note { font-size: .9rem; color: var(--muted); }
.map { margin-top: 1.4rem; border-radius: var(--radius-m); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4 / 3; background: var(--sand-200); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Portal ---------- */
.portal { display: grid; grid-template-columns: 1fr 1fr; min-height: min(760px, calc(100dvh - var(--header-h))); }
.portal-media { position: relative; }
.portal-media .photo { position: absolute; inset: 0; border-radius: 0; }
.portal-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(29,34,100,.1), rgba(22,34,49,.75)); }
.portal-media blockquote { position: absolute; left: clamp(1.5rem, 4vw, 3rem); right: clamp(1.5rem, 4vw, 3rem); bottom: clamp(1.5rem, 4vw, 3rem); margin: 0; color: var(--white); z-index: 1; font-family: var(--font-display); font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.2; }
.portal-media blockquote .amp { color: var(--amber); }
.portal-panel { display: flex; align-items: center; justify-content: center; padding: clamp(2.5rem, 6vw, 4.5rem) var(--gutter); background: var(--sand-50); }
.portal-card { width: 100%; max-width: 470px; }
.portal-card .crest { width: 78px; margin-bottom: 1.3rem; }
.portal-card h1 { font-size: clamp(2rem, 3.6vw, 2.7rem); }
.portal-card .sub { color: var(--ink-2); margin-bottom: 1.8rem; }
.credentials { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 1.3rem 1.4rem; margin-bottom: 1.4rem; }
.credentials p { margin: 0 0 .8rem; font-weight: 600; font-size: .95rem; }
.credentials ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.credentials li { display: flex; align-items: center; gap: .7rem; padding: .7rem .85rem; border: 1.5px dashed #d9cdbf; border-radius: var(--radius-s); color: var(--ink-2); font-size: .98rem; }
.credentials li svg { width: 20px; height: 20px; color: var(--navy); flex: none; }
.portal-help { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .6rem 1rem; margin-top: 1.2rem; font-size: .96rem; }
.portal-help a { font-weight: 600; }
.secure-note { display: flex; gap: .6rem; margin-top: 1.6rem; font-size: .88rem; color: var(--muted); align-items: flex-start; }
.secure-note svg { width: 18px; height: 18px; flex: none; color: #1f8f4e; margin-top: 2px; }
@media (max-width: 860px) {
  .portal { grid-template-columns: 1fr; }
  .portal-media { min-height: 220px; }
  .portal-media blockquote { font-size: 1.4rem; }
}

/* ---------- Fees ---------- */
.pay-steps { list-style: none; counter-reset: pay; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.pay-steps li { counter-increment: pay; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 1.4rem 1.3rem 1.5rem; }
.pay-steps li::before { content: counter(pay); display: block; font-family: var(--font-display); font-size: 2.2rem; line-height: 1; color: var(--sand); margin-bottom: .8rem; }
.pay-steps h3 { font-size: 1.2rem; margin-bottom: .35em; }
.pay-steps p { font-size: .97rem; color: var(--muted); margin: 0; }
@media (max-width: 900px) { .pay-steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .pay-steps { grid-template-columns: 1fr; } }

.policy { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (max-width: 880px) { .policy { grid-template-columns: 1fr; } }
.policy ul { padding-left: 1.2rem; margin: 0; }
.policy li { margin-bottom: .8rem; }
.policy li::marker { color: var(--amber-600); }

.breakdown { background: var(--white); border-radius: var(--radius-m); padding: clamp(1.4rem, 3vw, 2rem); box-shadow: var(--shadow); }
.breakdown h3 { font-size: 1.25rem; margin-bottom: 1.2rem; }
.bar { display: flex; height: 58px; border-radius: var(--radius-s); overflow: hidden; margin-bottom: 1rem; }
.bar .base { flex: 1 1 88%; background: var(--navy); color: var(--white); display: flex; align-items: center; padding-left: 1rem; font-weight: 600; font-size: .95rem; }
.bar .fee { flex: 0 0 22%; background: repeating-linear-gradient(135deg, var(--amber) 0 8px, #fbbf46 8px 16px); color: var(--ink); display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: .85rem; text-align: center; line-height: 1.15; padding: 0 .4rem; }
.breakdown dl { margin: 0; display: grid; gap: .7rem; }
.breakdown dl div { display: flex; justify-content: space-between; gap: 1rem; padding-bottom: .7rem; border-bottom: 1px solid var(--line); font-size: .98rem; }
.breakdown dl div:last-child { border-bottom: 0; padding-bottom: 0; }
.breakdown dt { color: var(--muted); }
.breakdown dd { margin: 0; font-weight: 600; text-align: right; }
.swatch { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: .5rem; vertical-align: -1px; }

.alert { display: grid; grid-template-columns: auto 1fr; gap: 1.2rem; background: #fff7e8; border: 1px solid #f7d08a; border-left: 6px solid var(--amber); border-radius: var(--radius-s); padding: clamp(1.4rem, 3vw, 2rem); }
.alert svg.alert-icon { width: 34px; height: 34px; color: var(--amber-600); }
.alert h2 { font-size: clamp(1.45rem, 2.5vw, 1.9rem); margin-bottom: .45em; }
.alert strong { color: var(--motto); }
.alert .btn-row { margin-top: 1.2rem; }
@media (max-width: 560px) { .alert { grid-template-columns: 1fr; } }

.info-strip { display: flex; gap: 1rem; align-items: flex-start; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 1.2rem 1.3rem; margin-top: 1.4rem; }
.info-strip svg { width: 24px; height: 24px; color: var(--navy); flex: none; margin-top: 2px; }
.info-strip p { margin: 0; font-size: .98rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #b9c2cf; font-size: .96rem; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2.4rem; padding-block: clamp(3rem, 6vw, 4.5rem) 2.5rem; }
.footer-brand img { width: 84px; margin-bottom: 1rem; }
.footer-brand .name { font-family: var(--font-display); color: var(--white); font-size: 1.5rem; line-height: 1.1; margin: 0 0 .3rem; }
.footer-brand .motto { color: var(--sand); margin: 0 0 1rem; font-family: var(--font-display); font-size: 1.05rem; }
.site-footer h2 { font-family: var(--font-body); font-weight: 600; font-size: 1rem; color: var(--white); margin-bottom: 1rem; letter-spacing: .01em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.site-footer a { color: #dfe4ec; text-decoration: none; }
.site-footer a:hover { color: var(--amber); text-decoration: underline; }
.footer-contact li { display: flex; gap: .6rem; align-items: flex-start; }
.footer-contact svg { width: 17px; height: 17px; color: var(--sand); margin-top: 4px; flex: none; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-block: 1.3rem 1.6rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .88rem; color: #8e9aab; }
.footer-bottom a { color: #b9c2cf; }
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .footer-top { grid-template-columns: 1fr; } }

/* Floating WhatsApp chat button */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 40; display: inline-flex; align-items: center; gap: .5rem;
  background: #1f8f4e; color: var(--white); text-decoration: none; font-weight: 600; font-size: .95rem;
  padding: .8rem 1rem; border-radius: 999px; box-shadow: 0 12px 28px -10px rgba(0,0,0,.45);
}
.wa-float:hover { background: #197a42; color: var(--white); }
.wa-float svg { width: 22px; height: 22px; }
@media (max-width: 520px) { .wa-float span { display: none; } .wa-float { padding: .85rem; } }

/* 404 */
.notfound { text-align: center; padding-block: clamp(4rem, 12vw, 8rem); }
.notfound img { width: 140px; margin: 0 auto 1.5rem; }
.notfound .btn-row { justify-content: center; margin-top: 1.5rem; }

/* ---------- The one orchestrated moment: hero entrance ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero .hero-place, .hero h1, .hero .hero-sub, .hero .btn-row { opacity: 0; transform: translateY(18px); animation: rise .8s cubic-bezier(.2,.7,.2,1) forwards; }
  .hero h1 { animation-delay: .08s; }
  .hero .hero-sub { animation-delay: .2s; }
  .hero .btn-row { animation-delay: .32s; }
  .hero-crest { opacity: 0; animation: fade 1s ease .3s forwards; }
  .ribbon-band { transform: scaleX(.92); opacity: 0; animation: unfurl .9s cubic-bezier(.2,.7,.2,1) .45s forwards; }
}
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes fade { to { opacity: 1; } }
@keyframes unfurl { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

@media print {
  .utility, .site-header, .wa-float, .cta-band, .site-footer { display: none; }
  .page-banner { color: var(--ink); background: none; }
  .page-banner::before, .page-banner .banner-media { display: none; }
  .page-banner h1, .page-banner p { color: var(--ink); }
}

/* Small utilities (kept out of inline styles so the CSP can forbid them) */
.photo { margin: 0; }
.visit-photo { aspect-ratio: 16 / 11; }
.pos-mid { object-position: center 40%; }
.pos-top { object-position: center 28%; }
.mt-l { margin-top: 1.5rem; }
.mb-l { margin-bottom: 1.6rem; }
.mb-xl { margin-bottom: 2.6rem; }
.m-0 { margin: 0; }
.mx-auto { margin-inline: auto; }
.swatch-navy { background: var(--navy); }
.swatch-amber { background: var(--amber); }
img[width][height] { height: auto; }
.op-bl { object-position: 18% 52%; }
.op-t { object-position: 50% 18%; }
.op-r { object-position: 85% 50%; }
.op-mr { object-position: 68% 50%; }
