/* CNHS public website — school red, gold and white (from the CNHS seal). Mobile-first, subtle motion. */
:root {
    --brand: #7a1414;
    --brand-deep: #4f0b0b;
    --link: #7a1414;
    --gold-text: #9a7208;
    --gold: #d4a017;
    --gold-soft: #f6e7b0;
    --sky: #fdf1f1;
    --ink: #0f172a;
    --muted: #475569;
    --line: #e2e8f0;
    --radius: 14px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: "Lora", Georgia, "Times New Roman", serif; color: var(--ink); background: #fff; line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: var(--link); }
h1, h2, h3 { line-height: 1.2; color: var(--brand); font-family: "Playfair Display", Georgia, "Times New Roman", serif; letter-spacing: .01em; }
.brand strong, .site-nav a, .button, .hero__eyebrow, .hero__tagline, .card__meta, .detail__kind, .filters input, .filters select, .pager a { font-family: "Playfair Display", Georgia, serif; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.wrap--narrow { max-width: 820px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--brand); padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* Header */
.site-header { background: var(--brand); color: #fff; position: sticky; top: 0; z-index: 50; box-shadow: 0 2px 12px rgba(0, 0, 0, .2); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 68px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; min-width: 0; flex: 1 1 0; }
.brand > span { min-width: 0; }
.brand small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand img { border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px var(--gold); flex: 0 0 auto; }
.brand strong { display: block; font-size: 15px; letter-spacing: .03em; line-height: 1.2; }
.brand small { display: block; font-size: 12px; color: #f6d6d6; }
.nav-toggle { display: none; }
.nav-toggle__button { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; border-radius: 10px; }
.nav-toggle__button span, .nav-toggle__button span::before, .nav-toggle__button span::after { display: block; width: 22px; height: 2px; background: #fff; position: relative; content: ""; }
.nav-toggle__button span::before { position: absolute; top: -7px; }
.nav-toggle__button span::after { position: absolute; top: 7px; }
.site-nav { display: none; width: 100%; flex-direction: column; padding: 4px 0 12px; }
.nav-toggle:checked ~ .site-nav { display: flex; }
.site-nav a { color: #fde8e8; text-decoration: none; padding: 10px 12px; border-radius: 10px; font-weight: 600; }
.site-nav a:hover, .site-nav a.is-active { background: rgba(255, 255, 255, .1); color: #fff; }
.site-nav a.is-active { box-shadow: inset 3px 0 0 var(--gold); }
.site-nav__login { background: var(--gold); color: var(--brand) !important; text-align: center; margin-top: 6px; }
@media (min-width: 900px) {
    .nav-toggle__button { display: none; }
    .site-nav { display: flex; width: auto; flex-direction: row; align-items: center; gap: 4px; padding: 0; }
    .site-nav a.is-active { box-shadow: inset 0 -3px 0 var(--gold); }
    .site-nav__login { margin: 0 0 0 8px; padding: 8px 16px !important; }
}

/* Hero */
.hero { background: linear-gradient(135deg, var(--brand-deep), var(--brand) 55%, #8a1c1c); color: #fff; padding: 48px 0; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; left: -10%; right: -10%; bottom: -60px; height: 120px; border-top: 6px solid var(--gold); border-radius: 50%; }
.hero__inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px; position: relative; z-index: 1; }
.hero__logo { width: 120px; height: 120px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px var(--gold), 0 10px 30px rgba(0, 0, 0, .35); }
.hero__eyebrow { margin: 0; color: var(--gold-soft); text-transform: uppercase; letter-spacing: .14em; font-weight: 700; font-size: 13px; }
.hero h1 { color: #fff; margin: 6px 0; font-size: clamp(28px, 6vw, 46px); letter-spacing: .03em; }
.hero__address { margin: 0; color: #f6d6d6; }
.hero__tagline { margin: 10px 0 0; font-weight: 800; color: var(--gold); letter-spacing: .1em; text-transform: uppercase; font-size: 14px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 22px; }
@media (min-width: 900px) {
    .hero { padding: 72px 0 84px; }
    .hero__inner { flex-direction: row; text-align: left; gap: 36px; }
    .hero__logo { width: 160px; height: 160px; }
    .hero__actions { justify-content: flex-start; }
}

/* Buttons */
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 20px; border-radius: 999px; font-weight: 700; text-decoration: none; border: 2px solid transparent; cursor: pointer; font-size: 15px; }
.button--gold { background: var(--gold); color: var(--brand); }
.button--gold:hover { background: #e8b52a; }
.button--ghost { border-color: rgba(255, 255, 255, .6); color: #fff; }
.button--ghost:hover { background: rgba(255, 255, 255, .1); }

/* Sections and cards */
.section { padding: 40px 0; }
.section--tint { background: var(--sky); }
.section__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.section__head h2 { margin: 0; font-size: 26px; }
.section__head a { font-weight: 700; text-decoration: none; }
.about { max-width: 820px; }
.about p { color: var(--muted); font-size: 17px; }
.grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid { grid-template-columns: repeat(3, 1fr); } }
.card { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(122, 11, 16, .05), 0 6px 18px rgba(122, 11, 16, .06); display: flex; flex-direction: column; transition: transform .15s ease, box-shadow .15s ease; }
.card:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(122, 11, 16, .12); }
.card__media { display: block; aspect-ratio: 16 / 10; background: var(--sky); }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__placeholder { display: flex; align-items: center; justify-content: center; height: 100%; }
.card__placeholder img { width: 72px; height: 72px; opacity: .45; }
.card__body { padding: 16px 18px 20px; }
.card__meta { margin: 0 0 6px; font-size: 13px; color: var(--gold-text); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.card__title { margin: 0; font-size: 17px; }
.card__title a { color: var(--brand); text-decoration: none; }
.card__title a:hover { text-decoration: underline; }
.card__text { margin: 8px 0 0; color: var(--muted); font-size: 15px; }
.empty { color: #94a3b8; font-style: italic; padding: 24px; text-align: center; border: 1px dashed var(--line); border-radius: var(--radius); }

/* Listing head and filters */
.page-head { background: var(--sky); padding: 34px 0 26px; border-bottom: 1px solid #f3d4d4; }
.page-head h1 { margin: 0; font-size: clamp(26px, 5vw, 36px); }
.page-head p { margin: 6px 0 16px; color: var(--muted); }
.filters { display: flex; flex-wrap: wrap; gap: 10px; }
.filters input, .filters select { min-height: 44px; border: 1px solid #cbd5e1; border-radius: 999px; padding: 8px 16px; font-size: 15px; background: #fff; color: var(--ink); flex: 1 1 200px; }
.filters select { flex: 0 1 220px; }
.pager { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 28px; flex-wrap: wrap; }
.pager a { font-weight: 700; text-decoration: none; padding: 8px 14px; border-radius: 999px; background: var(--sky); }

/* Detail page */
.detail { padding: 28px 0 40px; }
.detail__crumbs a { text-decoration: none; font-weight: 600; }
.detail__kind { margin: 16px 0 4px; color: var(--gold-text); font-weight: 800; letter-spacing: .1em; text-transform: uppercase; font-size: 13px; }
.detail h1 { margin: 0; font-size: clamp(24px, 4.6vw, 34px); }
.detail__meta { color: var(--muted); margin: 8px 0 20px; }
.detail__hero { margin: 0 0 22px; border-radius: var(--radius); overflow: hidden; box-shadow: 0 10px 30px rgba(122, 11, 16, .15); }
.detail__hero img { width: 100%; max-height: 520px; object-fit: cover; }
.detail__lead { font-size: 18px; color: var(--ink); }
.detail__section h2 { font-size: 18px; margin: 24px 0 6px; }
.detail__section p { margin: 0; color: #334155; }
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 640px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; }

/* Footer */
.site-footer { background: var(--brand-deep); color: #f6d6d6; padding: 30px 0 18px; border-top: 4px solid var(--gold); }
.site-footer__inner { display: flex; flex-direction: column; gap: 16px; }
.site-footer__brand { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.site-footer__brand img { border-radius: 50%; background: #fff; }
.site-footer__brand div { display: flex; flex-direction: column; }
.site-footer__brand strong { color: #fff; }
.site-footer__contact { display: flex; flex-direction: column; gap: 4px; }
.site-footer__contact a { color: var(--gold-soft); }
.site-footer__copy { text-align: center; font-size: 13px; margin: 22px 16px 0; color: #e9b9b9; }
@media (min-width: 900px) {
    .site-footer__inner { flex-direction: row; justify-content: space-between; align-items: center; }
    .site-footer__contact { text-align: right; }
}
