:root {
  --brand: #c62828;
  --brand-dark: #9f1d1d;
  --bg-alt: #f7f7f7;
  --tint: #fdeaea;
  --text: #1c1c1c;
  --text-soft: #555;
  --border: #e2e2e2;
  --dark: #101010;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 10px 30px rgba(0,0,0,0.08);
  --shadow-lg: 0 24px 60px rgba(0,0,0,0.14);
  --font-head: "Fredoka", system-ui, sans-serif;
  --font-body: "Open Sans", system-ui, sans-serif;
  --maxw: 1120px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 4px; }
ul { list-style: none; margin: 0; padding: 0; }
ol { margin: 0; padding: 0; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.15;
  color: var(--text);
  margin: 0 0 0.5em;
  text-transform: capitalize;
}
h1 { font-size: clamp(2rem, 5vw + 1rem, 3.5rem); }
h2 { font-size: clamp(1.5rem, 2.5vw + 1rem, 2.25rem); }
p { margin: 0 0 1em; }
[hidden] { display: none !important; }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  padding: 10px 16px; background: #fff; color: var(--brand); font-weight: 700;
  border-radius: 8px; box-shadow: var(--shadow);
}
.skip-link:focus { top: 12px; text-decoration: none; }

/* --- Layout --- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section { padding: 56px 0; }
.section-alt { background: var(--bg-alt); }
.center { text-align: center; }
.section-title { margin-bottom: 1.25rem; }
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.badge {
  display: inline-block; margin-bottom: 12px; padding: 4px 14px;
  border-radius: 999px; background: var(--tint); color: var(--brand);
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.04em;
}
.page-hero { padding: 72px 0; background: var(--bg-alt); text-align: center; }
.page-hero .container { max-width: 860px; }
.page-hero-sub { color: var(--text-soft); font-size: 1.125rem; max-width: 680px; margin: 0 auto 28px; }
.page-hero .hero-ctas { justify-content: center; }
.draft-notice { margin: 0 auto 20px; padding: 12px 16px; max-width: 720px; border: 1px solid #efb4b4; border-radius: 12px; background: #fff5f5; color: #7a1b1b; font-size: 0.9rem; }
.lead { max-width: 760px; margin: -0.5rem auto 2rem; }
.narrow { max-width: 760px; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.step-card { position: relative; padding: 24px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: #fff; }
.step-number { display: inline-grid; place-items: center; width: 42px; height: 42px; margin-bottom: 14px; border-radius: 13px; background: var(--tint); color: var(--brand); font-family: var(--font-head); font-weight: 600; }
.step-card h3 { font-size: 1.15rem; }
.step-card p { margin: 0; color: var(--text-soft); font-size: 0.94rem; }
.checklist, .bullets { display: grid; gap: 12px; }
.checklist li, .bullets li { position: relative; padding: 14px 16px 14px 44px; border: 1px solid var(--border); border-radius: 12px; background: #fff; }
.checklist li::before, .bullets li::before { content: "✓"; position: absolute; left: 16px; color: var(--brand); font-weight: 700; }
.table-wrap { overflow-x: auto; margin: 24px 0; border: 1px solid var(--border); border-radius: var(--radius); }
.fees-table { width: 100%; border-collapse: collapse; text-align: left; }
.fees-table th, .fees-table td { padding: 14px 18px; border-bottom: 1px solid var(--border); }
.fees-table th { background: var(--bg-alt); font-size: 0.9rem; }
.fees-table tr:last-child td { border-bottom: 0; }
.fee-lists { margin-top: 24px; }
.fee-lists .card h3 { margin-bottom: 16px; }
.fee-lists .bullets { margin: 0; }
.steps + *,
.checklist + * { margin-top: 24px; }

/* --- Departments --- */
.departments-intro { color: var(--text-soft); }
.department-head-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  align-items: start; max-width: 1100px; margin: 0 auto;
}
.department-head-card { height: 100%; text-align: center; }
.department-head-photo {
  width: min(100%, 240px); aspect-ratio: 1; margin: 0 auto 20px;
  overflow: hidden; border-radius: 50%; box-shadow: var(--shadow-lg);
}
.department-head-photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: center top;
  filter: contrast(1.06);
  transform: scale(1.2); transform-origin: center top;
}
.department-head-card h3 { margin-bottom: 6px; font-size: 1.2rem; }
.department-head-role { margin: 0; color: var(--text-soft); }
.department-grid { align-items: stretch; }
.department-card { height: 100%; }
.department-card .card-icon { color: var(--brand); font-family: var(--font-head); font-weight: 600; }
.department-card h3 { font-size: 1.3rem; }
.department-lead { display: flex; align-items: center; gap: 12px; margin: 16px 0; padding: 12px; background: var(--bg-alt); border-radius: var(--radius); }
.department-lead img { flex: 0 0 48px; width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.department-lead p { display: grid; gap: 2px; margin: 0; }
.department-lead strong { font-size: 0.9rem; }
.department-lead p span { color: var(--text-soft); font-size: 0.82rem; }
.department-summary { color: var(--text-soft); font-size: 0.96rem; }
.department-list { display: grid; gap: 9px; margin-top: 18px; }
.department-list li { position: relative; padding-left: 20px; color: var(--text-soft); font-size: 0.93rem; }
.department-list li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }
.department-note { margin-top: 20px !important; padding-top: 16px; border-top: 1px solid var(--border); color: var(--brand) !important; font-weight: 600; }
.programme-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; max-width: 960px; margin: 0 auto; padding: 0; list-style: none; counter-reset: programme; }
.programme-list li { counter-increment: programme; display: flex; align-items: center; gap: 14px; min-height: 72px; padding: 16px 20px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); font-weight: 600; }
.programme-list li::before { content: counter(programme, decimal-leading-zero); flex: 0 0 36px; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: var(--tint); color: var(--brand); font-family: var(--font-head); }
.programme-cta { margin: 28px 0 0; text-align: center; font-weight: 700; }

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-weight: 700; font-size: 15px;
  padding: 12px 22px; border: none; border-radius: 12px;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  color: #fff; transition: transform .15s, background .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn-primary { background: var(--brand); }
.btn-primary:hover { background: var(--brand-dark); box-shadow: var(--shadow); }
.btn-whatsapp { background: #0b7a3b; }
.btn-whatsapp:hover { background: #075e2f; box-shadow: var(--shadow); }
.btn:focus-visible,
.nav-toggle:focus-visible { outline: 3px solid var(--brand-dark); outline-offset: 3px; }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .65; cursor: progress; }
.btn-block { width: 100%; }

/* --- Call-to-action band --- */
.cta-band { padding: 48px 28px; border-radius: var(--radius-lg); background: var(--brand); color: #fff; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.92); max-width: 620px; margin-left: auto; margin-right: auto; }
.cta-band-actions { justify-content: center; margin-top: 20px; }
.cta-band .btn-primary { background: #fff; color: var(--brand); }
.cta-band .btn-primary:hover { background: var(--tint); }
.cta-band-phone { margin: 20px auto 0 !important; }
.cta-band-phone a { color: #fff; text-decoration: underline; font-weight: 700; }
.cta-band a:focus-visible { outline-color: #fff; }

/* --- Header --- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(198,40,40,0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px; gap: 20px;
}
.brand { display: flex; align-items: center; gap: 10px; color: inherit; }
.brand:hover { text-decoration: none; }
.brand-logo { flex: 0 0 44px; width: 44px; height: 44px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--font-head); font-weight: 600; font-size: 19px; color: #fff; }
.brand-sub { font-size: 11px; letter-spacing: 0.18em; color: rgba(255,255,255,0.88); text-transform: uppercase; font-weight: 600; }
.site-nav { display: flex; align-items: center; }
.site-nav ul { display: flex; align-items: center; gap: 22px; }
.site-nav a { color: rgba(255,255,255,0.92); font-weight: 600; font-size: 15px; text-decoration: none; padding: 4px 0; border-bottom: 2px solid transparent; }
.site-nav a:hover { color: #fff; }
.site-nav a[aria-current="page"] { color: #fff; border-bottom-color: #fff; }
.site-nav a:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
.site-nav a.btn { color: #fff; border-bottom: 0; padding: 9px 16px; }
.site-nav a.btn:hover { color: #fff; }
.site-nav a.btn-primary { background: var(--brand-dark); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.45); }
.site-nav a.btn-primary:hover { background: #751515; }
.nav-cta { list-style: none; margin-left: 12px; }
.nav-cta .btn { font-size: 13px; }
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; padding: 10px; cursor: pointer;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; }

/* --- Hero --- */
.hero {
  position: relative; display: flex; align-items: center;
  min-height: clamp(360px, 40vw, 520px); padding: 96px 0;
  overflow: hidden; background: var(--dark);
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; opacity: 1; transition: opacity .3s ease; }
.hero-img.is-changing { opacity: 0; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.58) 45%, rgba(0,0,0,0.15) 100%);
}
.hero-inner { position: relative; z-index: 1; max-width: 880px; }
.hero-headline { color: #fff; font-size: clamp(2.5rem, 5vw, 4rem); line-height: 1.05; letter-spacing: -0.02em; margin-bottom: 18px; }
.hero-sub { color: rgba(255,255,255,0.92); font-size: 1.2rem; max-width: 580px; margin-bottom: 0; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }

/* --- Cards --- */
.strength-image {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  margin-bottom: 20px; border-radius: 12px;
}
.card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px;
}
.card-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; background: var(--tint);
  border-radius: 14px; font-size: 22px; margin-bottom: 14px;
}
.card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.card p { color: var(--text-soft); font-size: 0.95rem; margin: 0; }
#strengths .card,
#promise .card { height: 100%; }
#strengths .card h3,
#promise .card h3 {
  display: flex; align-items: flex-end; min-height: 2.4em;
}

/* --- Stage cards --- */
.stage-card {
  height: 100%; border-radius: var(--radius-lg); padding: 28px; min-height: 280px;
  display: flex; flex-direction: column; justify-content: flex-end;
  border: 1px solid var(--border); background: var(--tint);
}
.stage-card h3 { font-size: 1.25rem; margin: 0 0 4px; }
.stage-card .sub { font-weight: 700; color: var(--brand); font-size: 0.9rem; margin-bottom: 8px; }
.stage-card p { color: var(--text-soft); font-size: 0.95rem; margin: 0; }
.stage-card--image h3,
.stage-card--image .sub,
.stage-card--image p { color: #fff; }

/* --- About --- */
.about-grid { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; }
@media (min-width: 900px) { .about-grid { grid-template-columns: 1fr 1.1fr; gap: 64px; } }
.about-media img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover;
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
}
.prose { text-align: justify; text-justify: inter-word; }
.prose.center { text-align: center; }
.prose p { color: var(--text-soft); font-size: 1.02rem; }
.prose p:last-child { margin-bottom: 0; }

/* --- Headteacher --- */
.message-grid {
  display: grid; grid-template-columns: 1fr; gap: 40px;
  align-items: start; max-width: 960px; margin: 0 auto;
}
@media (min-width: 800px) { .message-grid { grid-template-columns: 320px 1fr; gap: 56px; } }
.message-photo { width: min(100%, 240px); margin: 0 auto; }
.message-photo img {
  width: 100%; aspect-ratio: 1; object-fit: cover; object-position: center top;
  border-radius: 50%; box-shadow: var(--shadow-lg);
}
.message-date, .message-recipient { color: var(--text-soft); }
.message-date { margin-bottom: 4px; }
.message-recipient { font-weight: 700; margin-bottom: 16px; }
.signature { font-weight: 700; color: var(--text-soft); margin-top: 20px; }

/* --- Terms --- */
.term-card {
  display: flex; flex-direction: column; align-items: center;
  height: 100%; padding: 28px; text-align: center;
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.term-card h3 { min-height: 1.3em; color: var(--brand); margin-bottom: 6px; }
.term-card .dates { min-height: 1.6em; font-weight: 700; margin-bottom: 6px; }
.term-card .note { margin: auto 0 0; color: var(--text-soft); font-size: 0.9rem; }

/* --- News --- */
.news-date { display: block; margin-bottom: 6px; color: var(--brand); font-size: 0.85rem; font-weight: 700; }

/* --- Testimonials --- */
.testimonial {
  display: flex; flex-direction: column; height: 100%; padding: 28px;
  background: var(--tint); border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.testimonial blockquote { font-family: var(--font-body); font-size: 1rem; line-height: 1.6; margin: 0 0 16px; }
.testimonial .author { margin-top: auto; font-weight: 700; }
.testimonial .role { color: var(--text-soft); font-size: 0.9rem; }

/* --- Gallery --- */
.gallery-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 20px;
}
.gallery-card { margin: 0; overflow: hidden; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.gallery-grid img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover;
  border-radius: var(--radius); transition: transform .3s, box-shadow .3s;
}
.gallery-card img { border-radius: 0; }
.gallery-card figcaption { padding: 14px 16px; color: var(--text); font-weight: 700; }
.gallery-grid img:hover { transform: scale(1.02); box-shadow: var(--shadow-lg); }
.gallery-more { margin: 28px 0 0; text-align: center; }

/* --- Contact --- */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 40px; }
@media (min-width: 900px) {
  .contact-grid { grid-template-columns: 1fr 1fr; gap: 56px; align-items: stretch; }
  .contact-map { display: flex; }
  .contact-map .map-wrap { flex: 1; aspect-ratio: auto; }
}
.contact-list { margin: 24px 0; }
.contact-list li { padding: 14px 0; border-top: 1px solid var(--border); display: grid; gap: 4px; }
.contact-list li:last-child { border-bottom: 1px solid var(--border); }
.contact-list .label {
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-soft); font-weight: 700;
}
.contact-list a { font-weight: 600; }
.map-wrap { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); aspect-ratio: 4/3; }
.map-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-caption { margin: 12px 0 0; color: var(--text-soft); font-size: 0.92rem; }
.map-link { display: inline-block; margin-top: 4px; font-weight: 700; font-size: 0.92rem; }
.contact-form {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px;
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow);
}
.contact-form > * { grid-column: 1 / -1; min-width: 0; margin: 0; }
.contact-form > .field:nth-child(-n + 4) { grid-column: auto; }
.contact-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 6px; color: #444; }
.field input, .field textarea {
  width: 100%; font: inherit; padding: 12px 14px;
  border: 1px solid #ccc; border-radius: 10px; background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.contact-form textarea { resize: vertical; }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(198,40,40,0.25);
}
.form-note { color: var(--text-soft); font-size: 0.85rem; }
.form-status { font-size: 0.95rem; font-weight: 600; min-height: 1.2em; }
.form-status.success { color: var(--brand); }
.form-status.error { color: #b3261e; }

/* --- Footer --- */
.site-footer { background: var(--dark); color: #ddd; padding: 64px 0 24px; margin-top: 40px; }
.site-footer a { color: #ddd; }
.site-footer a:hover { color: #fff; }
.site-footer a:focus-visible { outline-color: #fff; }
.footer-inner { display: grid; gap: 40px; grid-template-columns: 1fr; }
@media (min-width: 800px) { .footer-inner { grid-template-columns: 1.2fr 2fr; } }
.footer-about p { color: #bbb; margin-top: 12px; max-width: 320px; }
.footer-logo { width: 36px; height: 36px; object-fit: contain; }
.footer-contact { margin-top: 0; }
.footer-contact h3 { color: #f8f2f2; font-family: var(--font-head); font-size: 1rem; margin: 0; }
.footer-contact-list { margin: 8px 0 0; }
.footer-contact-list li { border-color: #3b3b3b; padding: 8px 0; }
.footer-contact-list .label { color: #b5b5b5; }
.footer-cols { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(136px, 1fr)); }
.footer-cols h4 { color: #fff; font-family: var(--font-head); font-weight: 600; margin: 0 0 12px; font-size: 1rem; }
.footer-cols ul { display: grid; gap: 8px; }
.footer-cols a { font-size: 0.92rem; }
.footer-legal { border-top: 1px solid #3b3b3b; margin-top: 48px; padding-top: 20px; font-size: 0.85rem; color: #b5b5b5; }
.footer-policy-links { display: flex; flex-wrap: wrap; gap: 16px; }

/* --- Mobile --- */
@media (max-width: 1100px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute; top: 72px; left: 0; right: 0;
    background: var(--brand); border-bottom: 1px solid rgba(255,255,255,0.15);
    max-height: 0; overflow: hidden; display: block;
    visibility: hidden;
    transition: max-height .25s ease, visibility 0s linear .25s;
  }
  .site-nav.open { max-height: 640px; visibility: visible; transition: max-height .25s ease, visibility 0s; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 12px 20px 20px; }
  .site-nav ul li { border-top: 1px solid rgba(255,255,255,0.15); }
  .site-nav ul li:first-child { border-top: none; }
  .site-nav a { display: block; padding: 14px 0; font-size: 16px; }
  .site-nav a[aria-current="page"] { border-bottom-color: transparent; text-decoration: underline; }
  .nav-cta { margin: 0; padding-top: 14px; }
  .nav-cta .btn { width: 100%; padding: 14px; font-size: 15px; }
}
@media (max-width: 560px) {
  .section { padding: 40px 0; }
  .hero { padding: 64px 0; }
  .hero-ctas .btn { flex: 1; }
  .contact-form { grid-template-columns: 1fr; padding: 24px; }
  .contact-form > .field:nth-child(-n + 4) { grid-column: 1; }
}

/* Reversible visual refresh */
.hero-overlay {
  background:
    linear-gradient(90deg, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.68) 52%, rgba(0,0,0,0.24) 100%),
    linear-gradient(0deg, rgba(0,0,0,0.32) 0%, transparent 58%);
}
.hero-eyebrow {
  width: fit-content; margin: 0 0 18px; padding: 6px 12px;
  border: 1px solid rgba(255,255,255,0.4); border-radius: 999px;
  background: rgba(255,255,255,0.12); color: #fff;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
}
.hero-headline { text-shadow: 0 3px 20px rgba(0,0,0,0.25); }
.hero-headline::after {
  content: ""; display: block; width: 56px; height: 4px; margin-top: 16px;
  border-radius: 999px; background: #fff; opacity: 0.85;
}
.department-head-card {
  display: flex; flex-direction: column; align-items: center;
  border-top: 4px solid var(--brand);
  background: linear-gradient(180deg, #fff 0%, var(--bg-alt) 100%);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.department-head-photo {
  border: 6px solid #fff;
  box-shadow: var(--shadow-lg);
}
.department-head-role {
  display: inline-block; padding: 7px 12px; border-radius: 999px;
  background: var(--tint); color: var(--brand); font-size: 0.88rem; font-weight: 600;
}
@media (prefers-reduced-motion: no-preference) {
  .department-head-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
}
@media (min-width: 700px) {
  .department-head-card:last-child:nth-child(3n + 1) { grid-column: 2; }
}

:root {
  --site-grain:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.085) 0 1px, transparent 1px 8px),
    repeating-linear-gradient(45deg, rgba(0,0,0,0.06) 0 1px, transparent 1px 10px);
}
.site-header,
.site-footer,
.cta-band,
.btn-primary,
.btn-whatsapp {
  background-image: var(--site-grain);
  background-repeat: repeat;
}
.btn-primary:hover,
.btn-whatsapp:hover,
.site-nav a.btn-primary:hover {
  background-image: var(--site-grain);
  background-repeat: repeat;
}
.cta-band .btn-primary,
.cta-band .btn-primary:hover { background-image: none; }
@media (max-width: 1100px) {
  .site-nav {
    background-image: var(--site-grain);
    background-repeat: repeat;
  }
}
@media (max-width: 1100px) {
  .site-nav.static-page-nav {
    position: static; top: auto; left: auto; right: auto;
    display: flex; max-height: none; overflow: visible; visibility: visible;
    background: transparent; border: 0;
  }
  .site-nav.static-page-nav ul { flex-direction: row; flex-wrap: wrap; gap: 0 14px; padding: 8px 0; }
  .site-nav.static-page-nav ul li { border: 0; }
  .site-nav.static-page-nav a { display: inline-block; padding: 8px 0; }
}
@media (max-width: 560px) {
  .static-page-header { height: auto; min-height: 72px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
  .site-nav.static-page-nav { width: 100%; }
}
