/* ===========================================================================
   Arumugham Palaniguru Modern School — public site
   ---------------------------------------------------------------------------
   Identity comes from the school crest: deep maroon on warm paper, with a
   muted gold used sparingly for emphasis. Display type is a serif so the
   pages read as an institution rather than a template; body copy is a neutral
   sans at a comfortable reading size, because most visitors are parents on
   mid-range Android phones.
   =========================================================================== */

:root {
    /* Brand */
    --maroon-900: #4a0f0f;
    --maroon-800: #611616;
    --maroon-700: #7c1d1d;
    --maroon-600: #97302f;
    --maroon-100: #f6e9e7;
    --gold-600:   #a8762a;
    --gold-400:   #d5a349;
    --gold-100:   #f8efdc;

    /* Neutrals — warm, not blue-grey */
    --ink-900: #241f1d;
    --ink-700: #453c38;
    --ink-500: #6d625c;
    --ink-300: #a89e98;
    --line:    #e4ddd7;
    --line-soft: #efe9e4;
    --paper:   #fdfbf8;
    --paper-2: #f7f2ec;
    --white:   #ffffff;

    --ok-700:   #1f6b45;
    --ok-100:   #e5f4ea;
    --warn-700: #8a5a08;
    --warn-100: #fdf3dd;
    --bad-700:  #9a2020;
    --bad-100:  #fbeaea;

    --shell: 1180px;
    --gap: clamp(1.25rem, 3vw, 2.5rem);

    --r-sm: 4px;
    --r-md: 8px;
    --r-lg: 14px;

    --shadow-sm: 0 1px 2px rgba(36, 31, 29, .06), 0 2px 6px rgba(36, 31, 29, .05);
    --shadow-md: 0 2px 6px rgba(36, 31, 29, .07), 0 12px 28px rgba(36, 31, 29, .09);

    --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
    --sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
    margin: 0;
    font-family: var(--sans);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--ink-700);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
    font-family: var(--serif);
    color: var(--maroon-900);
    line-height: 1.15;
    margin: 0 0 .6em;
    font-weight: 600;
    letter-spacing: -.01em;
}

h1 { font-size: clamp(1.9rem, 4.4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
h4 { font-size: 1.05rem; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--maroon-700); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--maroon-600); }

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

.skip {
    position: absolute; left: -9999px; top: 0; z-index: 100;
    background: var(--maroon-800); color: #fff; padding: 12px 18px;
    border-radius: 0 0 var(--r-md) 0; font-weight: 600;
}
.skip:focus { left: 0; }

.shell { width: 100%; max-width: var(--shell); margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2rem); }

/* ------------------------------------------------------------------ top bar -- */

.topbar {
    background: var(--maroon-900);
    color: rgba(255, 255, 255, .78);
    font-size: .8125rem;
}
.topbar__in { display: flex; align-items: center; gap: 1.25rem; min-height: 40px; flex-wrap: wrap; }
.topbar__spacer { flex: 1; }
.topbar__item { color: inherit; text-decoration: none; }
.topbar__item:hover { color: #fff; text-decoration: underline; }
.topbar__item--muted { color: rgba(255, 255, 255, .5); }
.topbar__cta {
    background: var(--gold-400);
    color: var(--maroon-900);
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 100px;
    text-decoration: none;
    white-space: nowrap;
}
.topbar__cta:hover { background: #e6b95f; color: var(--maroon-900); }

@media (max-width: 700px) {
    .topbar__item--muted { display: none; }
    .topbar__in { justify-content: space-between; padding-block: 6px; }
}

/* ---------------------------------------------------------------- masthead -- */

.masthead {
    background: var(--white);
    border-bottom: 1px solid var(--line);
    position: sticky; top: 0; z-index: 40;
}
.masthead__in {
    display: flex; align-items: center; gap: 1.5rem;
    min-height: 84px; flex-wrap: wrap;
}

.brand { display: flex; align-items: center; gap: .875rem; text-decoration: none; margin-right: auto; }
.brand__mark { width: 56px; height: auto; flex: none; }
.brand__text { display: grid; line-height: 1.2; }
.brand__text strong {
    font-family: var(--serif); font-size: 1.16rem; font-weight: 700;
    color: var(--maroon-800); letter-spacing: -.01em;
}
.brand__text span { font-family: var(--serif); font-size: 1.16rem; color: var(--maroon-800); }
.brand__text em {
    font-style: normal; font-size: .72rem; letter-spacing: .09em;
    text-transform: uppercase; color: var(--ink-500); margin-top: 3px;
}

/* -------------------------------------------------------------------- nav -- */

.nav__list { display: flex; align-items: center; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.nav__item { position: relative; }
.nav__link {
    display: flex; align-items: center; gap: .3rem;
    padding: .55rem .7rem; border-radius: var(--r-sm);
    font-size: .9rem; font-weight: 500; color: var(--ink-700);
    text-decoration: none; white-space: nowrap;
}
.nav__link:hover { background: var(--paper-2); color: var(--maroon-700); }
.nav__link.is-active { color: var(--maroon-700); font-weight: 600; }
.nav__link.is-active::after {
    content: ""; position: absolute; left: .7rem; right: .7rem; bottom: -2px;
    height: 2px; background: var(--maroon-700); border-radius: 2px;
}
.nav__chev {
    width: 6px; height: 6px; margin-top: -2px;
    border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg); opacity: .55;
}

.subnav {
    position: absolute; top: calc(100% + 6px); left: 0; z-index: 50;
    min-width: 232px; padding: .4rem; margin: 0;
    list-style: none; background: var(--white);
    border: 1px solid var(--line); border-radius: var(--r-md);
    box-shadow: var(--shadow-md);
    opacity: 0; visibility: hidden; transform: translateY(-4px);
    transition: opacity .14s ease, transform .14s ease, visibility .14s;
}
.has-sub:hover > .subnav,
.has-sub:focus-within > .subnav { opacity: 1; visibility: visible; transform: none; }
.subnav a {
    display: block; padding: .5rem .7rem; border-radius: var(--r-sm);
    font-size: .875rem; color: var(--ink-700); text-decoration: none;
}
.subnav a:hover { background: var(--maroon-100); color: var(--maroon-800); }

.navtoggle {
    display: none; align-items: center; gap: .5rem;
    background: var(--paper-2); border: 1px solid var(--line);
    border-radius: var(--r-sm); padding: .5rem .8rem;
    font: 600 .875rem var(--sans); color: var(--ink-700); cursor: pointer;
}
.navtoggle__bars, .navtoggle__bars::before, .navtoggle__bars::after {
    display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px;
}
.navtoggle__bars { position: relative; }
.navtoggle__bars::before, .navtoggle__bars::after { content: ""; position: absolute; left: 0; }
.navtoggle__bars::before { top: -5px; }
.navtoggle__bars::after { top: 5px; }

@media (max-width: 1040px) {
    .masthead__in { min-height: 72px; }
    .navtoggle { display: flex; }
    .nav { display: none; flex-basis: 100%; }
    .nav.is-open { display: block; padding-bottom: 1rem; }
    .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
    .nav__link { padding: .7rem .25rem; border-bottom: 1px solid var(--line-soft); }
    .nav__link.is-active::after { display: none; }
    .subnav {
        position: static; opacity: 1; visibility: visible; transform: none;
        box-shadow: none; border: 0; border-bottom: 1px solid var(--line-soft);
        border-radius: 0; padding: 0 0 .4rem .9rem; min-width: 0;
    }
    .nav__chev { display: none; }
}

/* ------------------------------------------------------------------ flash -- */

.flash {
    margin: 1rem 0; padding: .85rem 1.1rem;
    border-radius: var(--r-md); border-left: 4px solid;
    font-size: .9375rem;
}
.flash--success { background: var(--ok-100);   border-color: var(--ok-700);   color: #14512f; }
.flash--error   { background: var(--bad-100);  border-color: var(--bad-700);  color: #7b1a1a; }
.flash--info    { background: var(--maroon-100); border-color: var(--maroon-600); color: var(--maroon-900); }
.flash--warning { background: var(--warn-100); border-color: var(--warn-700); color: #6d4706; }

/* ------------------------------------------------------------------- hero -- */

.hero {
    position: relative;
    background: var(--maroon-900);
    color: #fff;
    overflow: hidden;
}
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; opacity: .34; }
.hero__media::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(105deg, rgba(74, 15, 15, .93) 0%, rgba(74, 15, 15, .74) 46%, rgba(74, 15, 15, .34) 100%);
}
.hero__in { position: relative; padding: clamp(3rem, 9vw, 6.5rem) 0 clamp(2.5rem, 7vw, 5rem); }
.hero__kicker {
    display: inline-block; font-size: .75rem; letter-spacing: .16em;
    text-transform: uppercase; color: var(--gold-400); font-weight: 600; margin-bottom: 1rem;
}
.hero h1 { color: #fff; max-width: 20ch; margin-bottom: 1rem; }
.hero__lede {
    max-width: 54ch; font-size: clamp(1rem, 1.6vw, 1.1875rem);
    color: rgba(255, 255, 255, .84); margin-bottom: 2rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ----------------------------------------------------------------- button -- */

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    padding: .72rem 1.4rem; border: 1px solid transparent; border-radius: var(--r-sm);
    font: 600 .9375rem var(--sans); text-decoration: none; cursor: pointer;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.btn--primary { background: var(--maroon-700); color: #fff; }
.btn--primary:hover { background: var(--maroon-800); color: #fff; }
.btn--gold { background: var(--gold-400); color: var(--maroon-900); }
.btn--gold:hover { background: #e6b95f; color: var(--maroon-900); }
.btn--ghost { background: transparent; border-color: rgba(255, 255, 255, .45); color: #fff; }
.btn--ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.btn--outline { background: var(--white); border-color: var(--line); color: var(--ink-700); }
.btn--outline:hover { border-color: var(--maroon-600); color: var(--maroon-700); }
.btn--sm { padding: .45rem .9rem; font-size: .84rem; }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }

/* ---------------------------------------------------------------- section -- */

.section { padding: clamp(2.75rem, 7vw, 5rem) 0; }
.section--tint { background: var(--paper-2); }
.section--paper { background: var(--white); }

.section__head { max-width: 62ch; margin-bottom: clamp(1.5rem, 4vw, 2.75rem); }
.section__kicker {
    display: block; font-size: .75rem; letter-spacing: .15em; text-transform: uppercase;
    color: var(--gold-600); font-weight: 600; margin-bottom: .6rem;
}
.section__head p { color: var(--ink-500); font-size: 1.0625rem; }

.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ------------------------------------------------------------------ pagehead -- */

.pagehead {
    background: var(--maroon-900);
    color: #fff;
    padding: clamp(2rem, 5vw, 3.25rem) 0 clamp(1.75rem, 4vw, 2.75rem);
}
.pagehead h1 { color: #fff; margin-bottom: .35rem; }
.pagehead p { color: rgba(255, 255, 255, .74); margin: 0; max-width: 60ch; }
.crumbs {
    font-size: .8125rem; color: rgba(255, 255, 255, .6);
    margin-bottom: .9rem; display: flex; gap: .45rem; flex-wrap: wrap;
}
.crumbs a { color: rgba(255, 255, 255, .82); text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }

/* ------------------------------------------------------------------- prose -- */

.prose { max-width: 72ch; font-size: 1.0625rem; }
.prose > * + * { margin-top: 1.15em; }
.prose h2 { margin-top: 2.2em; }
.prose h3 { margin-top: 1.8em; }
.prose ul, .prose ol { padding-left: 1.35em; margin-block: 1.15em; }
.prose li + li { margin-top: .45em; }
.prose blockquote {
    margin: 1.6em 0; padding: .2em 0 .2em 1.4em;
    border-left: 3px solid var(--gold-400);
    font-family: var(--serif); font-size: 1.15em; color: var(--maroon-800);
}
.prose strong { color: var(--ink-900); }
.prose a { font-weight: 500; }
.prose img { border-radius: var(--r-md); margin-block: 1.6em; }
.prose table { width: 100%; }

.layout-aside {
    display: grid; gap: clamp(2rem, 5vw, 3.5rem);
    grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 900px) {
    .layout-aside { grid-template-columns: minmax(0, 1fr) 290px; }
}

.aside { align-self: start; position: sticky; top: 104px; }
.aside__card {
    background: var(--white); border: 1px solid var(--line);
    border-radius: var(--r-lg); padding: 1.3rem; margin-bottom: 1.25rem;
}
.aside__h {
    font-family: var(--sans); font-size: .75rem; letter-spacing: .12em;
    text-transform: uppercase; color: var(--ink-500); font-weight: 700; margin-bottom: .85rem;
}
.aside__links { list-style: none; margin: 0; padding: 0; }
.aside__links a {
    display: block; padding: .5rem 0; font-size: .9375rem;
    color: var(--ink-700); text-decoration: none; border-bottom: 1px solid var(--line-soft);
}
.aside__links li:last-child a { border-bottom: 0; }
.aside__links a:hover { color: var(--maroon-700); }
.aside__links a.is-active { color: var(--maroon-700); font-weight: 600; }

/* -------------------------------------------------------------------- cards -- */

.grid { display: grid; gap: clamp(1rem, 2.5vw, 1.75rem); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 258px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 208px), 1fr)); }

.card {
    background: var(--white); border: 1px solid var(--line);
    border-radius: var(--r-lg); overflow: hidden;
    display: flex; flex-direction: column;
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.card--link:hover { border-color: var(--maroon-600); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card__media { aspect-ratio: 4 / 3; background: var(--paper-2); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__body { padding: 1.15rem 1.25rem 1.35rem; flex: 1; display: flex; flex-direction: column; }
.card__eyebrow {
    font-size: .7rem; letter-spacing: .12em; text-transform: uppercase;
    color: var(--gold-600); font-weight: 700; margin-bottom: .45rem;
}
.card__title { font-size: 1.0625rem; margin-bottom: .4rem; }
.card__title a { text-decoration: none; color: inherit; }
.card__text { font-size: .9375rem; color: var(--ink-500); margin: 0 0 .9rem; }
.card__foot { margin-top: auto; font-size: .875rem; font-weight: 600; }

.feature {
    display: flex; gap: 1rem; padding: 1.25rem;
    background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg);
}
.feature__num {
    flex: none; width: 34px; height: 34px; border-radius: 50%;
    display: grid; place-items: center;
    background: var(--maroon-100); color: var(--maroon-800);
    font: 700 .8125rem var(--sans);
}
.feature h3 { font-size: 1rem; margin-bottom: .3rem; }
.feature p { font-size: .9375rem; color: var(--ink-500); margin: 0; }

/* ------------------------------------------------------------------- stats -- */

.stats { display: grid; gap: 1px; background: var(--line); border-radius: var(--r-lg); overflow: hidden;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 165px), 1fr)); }
.stat { background: var(--white); padding: 1.35rem 1.25rem; text-align: center; }
.stat__n {
    font-family: var(--serif); font-size: clamp(1.6rem, 3.4vw, 2.35rem);
    font-weight: 700; color: var(--maroon-700); line-height: 1;
}
.stat__l { font-size: .8125rem; color: var(--ink-500); margin-top: .4rem; letter-spacing: .02em; }

/* ------------------------------------------------------------------ toppers -- */

.toppers { display: grid; gap: clamp(1rem, 3vw, 2rem); grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.topper { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.topper__head { background: var(--maroon-800); color: #fff; padding: .7rem 1.15rem; font: 600 .875rem var(--sans); letter-spacing: .04em; }
.topper__body { padding: 1.15rem; }
.topper__list { list-style: none; margin: 0; padding: 0; }
.topper__list li { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; border-bottom: 1px solid var(--line-soft); font-size: .9375rem; }
.topper__list li:last-child { border-bottom: 0; }
.topper__list b { color: var(--maroon-700); font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------------- table -- */

.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--white); }
.table { width: 100%; border-collapse: collapse; font-size: .9375rem; min-width: 520px; }
.table th, .table td { padding: .7rem .9rem; text-align: left; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.table thead th {
    background: var(--paper-2); font: 700 .75rem var(--sans);
    letter-spacing: .07em; text-transform: uppercase; color: var(--ink-500);
    border-bottom: 1px solid var(--line); white-space: nowrap;
}
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: #fdfaf7; }
.table td.num, .table th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table--compact th, .table--compact td { padding: .5rem .7rem; font-size: .875rem; }

/* -------------------------------------------------------------------- pill -- */

.pill {
    display: inline-block; padding: .18em .6em; border-radius: 100px;
    font: 600 .72rem var(--sans); letter-spacing: .04em; text-transform: uppercase; white-space: nowrap;
}
.pill--ok      { background: var(--ok-100);   color: var(--ok-700); }
.pill--warn    { background: var(--warn-100); color: var(--warn-700); }
.pill--bad     { background: var(--bad-100);  color: var(--bad-700); }
.pill--neutral { background: var(--paper-2);  color: var(--ink-500); }
.pill--brand   { background: var(--maroon-100); color: var(--maroon-800); }

/* ----------------------------------------------------------------- gallery -- */

.albums { display: grid; gap: clamp(1rem, 2.5vw, 1.5rem); grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.album { position: relative; display: block; border-radius: var(--r-lg); overflow: hidden; text-decoration: none; background: var(--maroon-900); aspect-ratio: 4 / 3; }
.album img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease, opacity .25s ease; opacity: .82; }
.album:hover img { transform: scale(1.05); opacity: .62; }
.album__cap {
    position: absolute; inset-inline: 0; bottom: 0; padding: 2.5rem .95rem .9rem;
    background: linear-gradient(transparent, rgba(36, 15, 15, .88));
    color: #fff; font: 600 .9375rem var(--sans);
}
.album__n { display: block; font-weight: 400; font-size: .78rem; color: rgba(255, 255, 255, .7); margin-top: .15rem; }

.photos { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }
.photo { display: block; border-radius: var(--r-md); overflow: hidden; background: var(--paper-2); aspect-ratio: 1; }
.photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.photo:hover img { transform: scale(1.06); }

/* --------------------------------------------------------------- lightbox -- */

.lightbox {
    position: fixed; inset: 0; z-index: 200; display: none;
    background: rgba(24, 10, 10, .93); padding: clamp(1rem, 4vw, 3rem);
    place-items: center;
}
.lightbox.is-open { display: grid; }
.lightbox img { max-width: 100%; max-height: 82vh; border-radius: var(--r-md); }
.lightbox__bar { position: absolute; top: 0; inset-inline: 0; display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.25rem; color: rgba(255, 255, 255, .75); font-size: .875rem; }
.lightbox__btn {
    background: rgba(255, 255, 255, .12); border: 0; color: #fff;
    width: 44px; height: 44px; border-radius: 50%; cursor: pointer; font-size: 1.25rem; line-height: 1;
}
.lightbox__btn:hover { background: rgba(255, 255, 255, .24); }
.lightbox__nav { position: absolute; inset-block: 0; display: grid; place-items: center; padding-inline: .75rem; }
.lightbox__nav--prev { left: 0; }
.lightbox__nav--next { right: 0; }

/* -------------------------------------------------------------------- form -- */

.form { max-width: 640px; }
.field { margin-bottom: 1.15rem; }
.field__label { display: block; font: 600 .875rem var(--sans); color: var(--ink-900); margin-bottom: .4rem; }
.field__req { color: var(--bad-700); }
.field__hint { display: block; font-size: .8125rem; color: var(--ink-500); margin-top: .35rem; }
.field__err { display: block; font-size: .8125rem; color: var(--bad-700); margin-top: .35rem; font-weight: 500; }

.input, .select, .textarea {
    width: 100%; padding: .68rem .85rem;
    font: 400 1rem var(--sans); color: var(--ink-900);
    background: var(--white); border: 1px solid var(--line); border-radius: var(--r-sm);
    transition: border-color .14s ease, box-shadow .14s ease;
}
.input:focus, .select:focus, .textarea:focus {
    outline: none; border-color: var(--maroon-600);
    box-shadow: 0 0 0 3px rgba(151, 48, 47, .13);
}
.input[aria-invalid="true"], .select[aria-invalid="true"] { border-color: var(--bad-700); }
.textarea { min-height: 132px; resize: vertical; }
.select { appearance: none; padding-right: 2.4rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236d625c' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right .9rem center; }

.row { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }

/* ------------------------------------------------------------------ contact -- */

.contact-grid { display: grid; gap: clamp(2rem, 5vw, 3.5rem); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 860px) { .contact-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); } }

.infoblock { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.5rem; }
.infoblock + .infoblock { margin-top: 1.25rem; }
.infoblock h3 { font-size: 1rem; margin-bottom: .55rem; }
.infoblock p { font-size: .9375rem; margin: 0; color: var(--ink-500); }
.infoblock a { font-weight: 500; }

/* ------------------------------------------------------------------- notice -- */

.noticebar { background: var(--gold-100); border-bottom: 1px solid #eeddbb; }
.noticebar__in { display: flex; align-items: center; gap: .85rem; padding: .6rem 0; font-size: .9rem; flex-wrap: wrap; }
.noticebar__tag {
    background: var(--maroon-700); color: #fff; font: 700 .68rem var(--sans);
    letter-spacing: .1em; text-transform: uppercase; padding: .25em .6em; border-radius: var(--r-sm); flex: none;
}
.noticebar__items { display: flex; gap: 1.5rem; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; }
.noticebar__items a { color: var(--maroon-900); text-decoration: none; font-weight: 500; }
.noticebar__items a:hover { text-decoration: underline; }

/* ---------------------------------------------------------------- CTA band -- */

.ctaband { background: var(--maroon-800); color: #fff; }
.ctaband__in {
    display: flex; align-items: center; justify-content: space-between; gap: 1.75rem;
    padding: clamp(2rem, 5vw, 3rem) 0; flex-wrap: wrap;
}
.ctaband h2 { color: #fff; margin: 0 0 .35rem; }
.ctaband p { color: rgba(255, 255, 255, .78); margin: 0; max-width: 52ch; }

/* -------------------------------------------------------------------- foot -- */

.foot { background: var(--ink-900); color: rgba(255, 255, 255, .68); font-size: .9rem; margin-top: 0; }
.foot__grid {
    display: grid; gap: 2rem; padding: clamp(2.5rem, 6vw, 3.75rem) clamp(1rem, 4vw, 2rem);
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 205px), 1fr));
}
.foot__col--wide { grid-column: span 1; }
@media (min-width: 900px) { .foot__col--wide { grid-column: span 1; max-width: 320px; } }
.foot__logo { margin-bottom: .9rem; }
.foot__name { font-family: var(--serif); font-size: 1.05rem; color: #fff; margin-bottom: .5rem; }
.foot__addr { line-height: 1.7; margin-bottom: .7rem; }
.foot__meta { font-size: .8125rem; color: rgba(255, 255, 255, .45); margin: 0; }
.foot__h {
    font-family: var(--sans); font-size: .72rem; letter-spacing: .13em; text-transform: uppercase;
    color: rgba(255, 255, 255, .5); font-weight: 700; margin-bottom: .9rem;
}
.foot__links { list-style: none; margin: 0; padding: 0; }
.foot__links li + li { margin-top: .5rem; }
.foot__links a { color: rgba(255, 255, 255, .74); text-decoration: none; }
.foot__links a:hover { color: #fff; text-decoration: underline; }
.foot__social { display: flex; gap: 1rem; margin-top: 1.1rem; font-size: .8125rem; }
.foot__social a { color: var(--gold-400); text-decoration: none; }
.foot__social a:hover { text-decoration: underline; }
.foot__base {
    display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
    padding: 1.1rem clamp(1rem, 4vw, 2rem); border-top: 1px solid rgba(255, 255, 255, .1);
    font-size: .8125rem; color: rgba(255, 255, 255, .45);
}
.foot__base p { margin: 0; }
.foot__base a { color: rgba(255, 255, 255, .6); }

/* ------------------------------------------------------------------ utility -- */

.mt-0 { margin-top: 0; } .mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; } .mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; }
.muted { color: var(--ink-500); }
.small { font-size: .875rem; }
.tiny  { font-size: .8125rem; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.tnum { font-variant-numeric: tabular-nums; }
.stack > * + * { margin-top: 1rem; }
.cluster { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.between { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.visually-hidden {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.empty {
    padding: clamp(2rem, 6vw, 3.5rem) 1.5rem; text-align: center;
    background: var(--white); border: 1px dashed var(--line); border-radius: var(--r-lg);
    color: var(--ink-500);
}
.empty h3 { color: var(--ink-700); margin-bottom: .4rem; }

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

@media print {
    .topbar, .masthead, .foot, .noticebar, .ctaband, .navtoggle { display: none !important; }
    body { background: #fff; }
}
