/* ==========================================================
   HOLYCHILD CATHOLIC SECONDARY SCHOOL — MAIN STYLESHEET
   Custom CSS; no Tailwind build process required.
   Edit the variables below to change the whole theme.
========================================================== */
:root {
    --green: #07543c;
    --green-dark: #043b2b;
    --green-deep: #03271d;
    --gold: #d7b568;
    --gold-light: #f1dfb2;
    --ink: #192a21;
    --muted: #69776f;
    --cream: #f7f6f1;
    --line: #e8ebe6;
    --shadow: 0 18px 48px rgba(10, 48, 32, .12);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: #fff; font-family: "DM Sans", Arial, sans-serif; line-height: 1.7; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }
.container { width: min(1180px, calc(100% - 42px)); margin: 0 auto; }
.section { padding: 88px 0; }
.eyebrow { display: block; margin-bottom: 12px; color: #9a7935; font-size: 10px; font-weight: 800; letter-spacing: 2px; }
.eyebrow.light { color: var(--gold-light); }
h1, h2 { font-family: "Playfair Display", Georgia, serif; line-height: 1.14; letter-spacing: -.5px; }
h2 { font-size: clamp(31px, 3.3vw, 44px); margin: 0 0 16px; }
h2 span { color: #b28c3e; }
p { margin-top: 0; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 20px; padding: 14px 20px; border-radius: 3px; font-size: 11px; font-weight: 800; transition: transform .2s, background .2s; }
.button:hover { transform: translateY(-2px); }
.button-gold { background: var(--gold); color: #1d2a21; }
.button-gold:hover { background: #ebcc82; }
.button-green { background: var(--green); color: #fff; }
.button-green:hover { background: var(--green-dark); }

/* Top bar */
.topbar { background: var(--green-deep); color: #e4ece7; font-size: 10px; }
.topbar-inner { min-height: 36px; display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.topbar a { color: #fff; }
.topbar-divider { margin: 0 9px; color: #7d9a8b; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 100; background: #fff; box-shadow: 0 4px 24px rgba(0,0,0,.045); }
.header-inner { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 11px; min-width: 240px; }
.brand img { width: 62px; height: 62px; object-fit: contain; }
.brand-copy { display: flex; flex-direction: column; line-height: 1.25; }
.brand-copy strong { color: var(--green); font-size: 19px; font-weight: 800; letter-spacing: 1px; }
.brand-copy small { color: #303d35; font-size: 8px; font-weight: 800; letter-spacing: .65px; }
.brand-copy em { margin-top: 4px; color: #987733; font-family: "Playfair Display", Georgia, serif; font-size: 10px; }
.main-nav { display: flex; align-items: center; gap: 19px; font-size: 11px; font-weight: 700; }
.nav-link { display: inline-flex; align-items: center; gap: 6px; padding: 12px 0; border: 0; background: transparent; color: #314339; white-space: nowrap; }
.nav-link:hover, .nav-link.active { color: var(--green); }
.dropdown-toggle span { color: #9b7a36; }
.nav-dropdown { position: relative; }
.dropdown-menu { display: none; position: absolute; top: 100%; left: -14px; min-width: 205px; padding: 8px; background: #fff; border-top: 3px solid var(--gold); box-shadow: var(--shadow); }
.dropdown-menu a { display: block; padding: 10px 12px; border-radius: 3px; color: #425249; font-size: 11px; }
.dropdown-menu a:hover { background: var(--cream); color: var(--green); }
.nav-dropdown:hover .dropdown-menu, .nav-dropdown:focus-within .dropdown-menu { display: block; }
.nav-admission { padding: 12px 15px; background: var(--green); color: #fff; white-space: nowrap; }
.nav-admission span { margin-left: 7px; color: var(--gold-light); }
.menu-toggle { display: none; border: 0; background: var(--green); padding: 8px; }
.menu-toggle span { display: block; width: 23px; height: 2px; margin: 5px; background: #fff; }

/* Hero banner */
.hero, .hero-slides { position: relative; min-height: 610px; overflow: hidden; background: var(--green-deep); }
.hero-slide { position: absolute; inset: 0; display: flex; align-items: center; background-position: center; background-size: cover; opacity: 0; visibility: hidden; transition: opacity .75s ease, visibility .75s ease; }
.hero-slide.active { opacity: 1; visibility: visible; }
.hero-content { position: relative; z-index: 2; padding-top: 10px; padding-bottom: 72px; color: #fff; }
.hero-content h1 { max-width: 800px; margin: 0 0 20px; font-size: clamp(42px, 5.6vw, 72px); }
.hero-content h1 span { color: var(--gold-light); }
.hero-content p { max-width: 570px; margin-bottom: 28px; color: #e1ebe5; font-size: 14px; line-height: 1.9; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 25px; }
.hero-text-link { padding-bottom: 5px; border-bottom: 1px solid rgba(255,255,255,.4); color: #fff; font-size: 11px; font-weight: 700; }
.hero-text-link b { margin-left: 8px; color: var(--gold-light); }
.hero-bottom { position: absolute; z-index: 5; right: 0; bottom: 0; left: 0; background: rgba(3,31,23,.65); border-top: 1px solid rgba(255,255,255,.15); }
.hero-bottom-inner { height: 60px; display: flex; align-items: center; justify-content: space-between; }
.hero-dots { display: flex; gap: 8px; }
.hero-dot { width: 24px; height: 4px; padding: 0; border: 0; background: #8b9b92; }
.hero-dot.active { width: 40px; background: var(--gold); }
.hero-motto { color: #dce7e0; font-size: 9px; letter-spacing: 2px; }
.hero-arrows { display: flex; gap: 8px; }
.hero-arrows button { width: 34px; height: 34px; border: 1px solid rgba(255,255,255,.5); border-radius: 50%; background: transparent; color: #fff; }
.hero-arrows button:hover { background: var(--gold); color: var(--green-deep); }

/* Welcome */
.welcome-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 75px; }
.welcome-visual { position: relative; height: 445px; padding: 0 36px 30px 0; }
.welcome-visual:before { content: ""; position: absolute; z-index: -1; top: -16px; left: -16px; width: 170px; height: 170px; border: 1px solid var(--gold); }
.welcome-photo { width: 100%; height: 100%; border-radius: 3px; background-position: center; background-size: cover; }
.welcome-crest { position: absolute; right: 0; bottom: 0; display: flex; align-items: center; gap: 11px; padding: 14px 16px; background: #fff; box-shadow: var(--shadow); }
.welcome-crest img { width: 56px; height: 56px; object-fit: contain; }
.welcome-crest span { color: var(--green); font-family: "Playfair Display", Georgia, serif; font-size: 12px; font-weight: 700; line-height: 1.45; }
.welcome-label { position: absolute; bottom: 50px; left: -14px; display: flex; flex-direction: column; padding: 10px 15px; background: var(--green); color: #fff; }
.welcome-label strong { font-family: "Playfair Display", Georgia, serif; font-size: 14px; }
.welcome-label small { color: #d7e5dc; font-size: 9px; }
.welcome-copy .lead { color: #354d40; font-size: 16px; line-height: 1.85; }
.welcome-copy p:not(.lead) { color: var(--muted); font-size: 12px; line-height: 1.95; }
.welcome-copy .button { margin-top: 12px; }

/* Values */
.values-section { position: relative; overflow: hidden; background: var(--green-deep); color: #fff; }
.values-section:after { content: ""; position: absolute; top: -160px; right: -150px; width: 440px; height: 440px; border: 1px solid rgba(215,181,104,.15); border-radius: 50%; }
.section-heading { margin-bottom: 40px; }
.section-heading p { color: var(--muted); font-size: 12px; }
.centered { position: relative; z-index: 1; max-width: 670px; margin: 0 auto 42px; text-align: center; }
.centered h2 { color: #fff; }
.centered h2 span { color: var(--gold-light); }
.centered p { color: #c8d6ce; }
.value-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }
.value-card { padding: 26px 21px; border: 1px solid rgba(255,255,255,.15); background: rgba(255,255,255,.035); transition: transform .25s, border-color .25s, background .25s; }
.value-card:hover { transform: translateY(-5px); border-color: rgba(215,181,104,.65); background: rgba(255,255,255,.08); }
.value-icon { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 18px; border: 1px solid rgba(215,181,104,.55); color: var(--gold); font-size: 22px; }
.value-card h3 { margin: 0 0 10px; font-family: "Playfair Display", Georgia, serif; font-size: 17px; }
.value-card p { min-height: 80px; color: #c4d1c9; font-size: 10px; line-height: 1.9; }
.value-card a { color: var(--gold-light); font-size: 10px; font-weight: 800; }
.value-card a b { margin-left: 6px; }

/* News */
.news-section { background: var(--cream); }
.heading-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.heading-row h2 { margin-bottom: 0; }
.heading-row p { margin: 10px 0 0; color: var(--muted); font-size: 12px; }
.section-link { margin-bottom: 6px; padding-bottom: 5px; border-bottom: 1px solid #bdc9c1; color: var(--green); font-size: 10px; font-weight: 800; white-space: nowrap; }
.section-link b { margin-left: 7px; color: #a17f39; }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 21px; }
.news-card { min-width: 0; background: #fff; box-shadow: 0 8px 30px rgba(20,50,35,.04); }
.news-image { position: relative; display: block; height: 215px; background-position: center; background-size: cover; }
.news-image span { position: absolute; bottom: 0; left: 16px; padding: 7px 10px; background: var(--gold); color: #263328; font-size: 8px; font-weight: 800; letter-spacing: 1px; }
.news-content { padding: 21px; }
.news-content small { display: block; margin-bottom: 8px; color: #9a7a39; font-size: 8px; font-weight: 800; letter-spacing: 1.2px; }
.news-content h3 { margin: 0 0 10px; font-family: "Playfair Display", Georgia, serif; font-size: 17px; line-height: 1.45; }
.news-content h3 a:hover { color: var(--green); }
.news-content p { color: var(--muted); font-size: 10px; line-height: 1.9; }
.read-more { color: var(--green); font-size: 10px; font-weight: 800; }
.read-more b { margin-left: 7px; color: #a17f39; }

/* Gallery */
.gallery-section { background: #fff; }
.gallery-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; grid-template-rows: 205px 205px; gap: 13px; }
.gallery-tile { position: relative; min-height: 160px; overflow: hidden; background-position: center; background-size: cover; }
.gallery-tile:after { content: ""; position: absolute; inset: 35% 0 0; background: linear-gradient(transparent, rgba(0,0,0,.72)); }
.gallery-tile span { position: absolute; z-index: 1; right: 15px; bottom: 14px; left: 16px; display: flex; justify-content: space-between; color: #fff; font-family: "Playfair Display", Georgia, serif; font-size: 14px; }
.gallery-tile b { color: var(--gold-light); font-family: Arial, sans-serif; }
.gallery-large { grid-row: span 2; }

/* Birthday belt */
.birthday-section { overflow: hidden; padding: 42px 0 25px; background: #fff; border-top: 1px solid #edf0eb; border-bottom: 1px solid #edf0eb; }
.birthday-heading { display: flex; align-items: center; gap: 16px; margin-bottom: 25px; }
.birthday-icon { display: grid; place-items: center; width: 56px; height: 56px; flex: 0 0 56px; border-radius: 50%; background: #f8f0df; font-size: 26px; }
.birthday-heading .eyebrow { margin-bottom: 4px; }
.birthday-heading h2 { margin-bottom: 4px; font-size: clamp(25px, 3vw, 35px); }
.birthday-heading p { margin: 0; color: var(--muted); font-size: 11px; }
.birthday-date { margin-left: auto; padding: 8px 12px; border: 1px solid #e9e2d2; color: #82672e; font-size: 10px; font-weight: 800; white-space: nowrap; }
.birthday-window { position: relative; width: 100%; overflow: hidden; padding: 6px 0 12px; }
.birthday-window:before, .birthday-window:after { position: absolute; z-index: 2; top: 0; bottom: 0; width: 70px; content: ""; pointer-events: none; }
.birthday-window:before { left: 0; background: linear-gradient(90deg,#fff,rgba(255,255,255,0)); }
.birthday-window:after { right: 0; background: linear-gradient(270deg,#fff,rgba(255,255,255,0)); }
.birthday-track { display: flex; align-items: stretch; width: max-content; }
.birthday-person { display: flex; flex: 0 0 145px; flex-direction: column; align-items: center; width: 145px; padding: 8px 12px 13px; text-align: center; }
.birthday-photo-wrap { width: 91px; height: 91px; margin-bottom: 11px; padding: 4px; border: 2px solid var(--gold); border-radius: 50%; background: #fff; box-shadow: 0 6px 18px rgba(7,84,60,.1); }
.birthday-photo-wrap img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.birthday-person strong { max-width: 100%; overflow: hidden; color: #263d31; font-size: 10px; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.birthday-person small { margin-top: 4px; color: #987a3d; font-size: 8px; letter-spacing: .6px; text-transform: uppercase; }
.birthday-track.is-scrolling { animation: birthdayScroll 32s linear infinite; }
.birthday-track.is-scrolling:hover { animation-play-state: paused; }
@keyframes birthdayScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.birthday-note { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 12px; color: #87948c; font-size: 9px; }
.birthday-note span { width: 7px; height: 7px; border-radius: 50%; background: #319b65; box-shadow: 0 0 0 4px #e5f4eb; }

/* Call to action and footer */
.cta-section { padding: 42px 0; background: var(--green); color: #fff; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 25px; }
.cta-inner .eyebrow { margin-bottom: 6px; }
.cta-inner h2 { margin: 0 0 6px; color: #fff; font-size: 28px; }
.cta-inner p { margin: 0; color: #d4e0d8; font-size: 11px; }
.site-footer { padding-top: 52px; background: #04291e; color: #d0ddd5; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.25fr; gap: 38px; padding-bottom: 40px; }
.footer-brand { margin-bottom: 16px; }
.footer-brand img { width: 56px; height: 56px; padding: 3px; border-radius: 50%; background: #fff; }
.footer-brand .brand-copy strong { color: #fff; font-size: 16px; }
.footer-brand .brand-copy small { color: #d7e2db; }
.footer-brand .brand-copy em { color: var(--gold-light); }
.site-footer p { color: #afc0b6; font-size: 10px; line-height: 1.9; }
.footer-grid h3 { margin: 0 0 14px; color: #fff; font-size: 11px; }
.footer-grid > div:not(:first-child) > a { display: block; margin: 9px 0; color: #b7c7bd; font-size: 10px; }
.site-footer a:hover { color: var(--gold-light); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); color: #91a59a; font-size: 9px; }
.footer-bottom .container { display: flex; align-items: center; justify-content: space-between; gap: 15px; min-height: 52px; }

/* Inner pages */
.page-hero { padding: 65px 0; background: linear-gradient(100deg,rgba(3,39,29,.94),rgba(3,39,29,.68)),url("https://images.unsplash.com/photo-1523050854058-8df90110c9f1?auto=format&fit=crop&w=1800&q=80") center/cover; color: #fff; }
.page-hero h1 { margin: 0 0 12px; font-size: clamp(35px, 5vw, 55px); }
.page-hero p { max-width: 650px; margin: 0; color: #dce7e0; font-size: 13px; }
.breadcrumb { margin-bottom: 12px; color: var(--gold-light); font-size: 10px; }

/* Responsive */
@media (max-width: 1100px) {
    .main-nav { gap: 12px; font-size: 10px; }
    .brand { min-width: 215px; }
    .brand img { width: 55px; height: 55px; }
    .brand-copy strong { font-size: 17px; }
    .welcome-grid { gap: 45px; }
    .value-grid { grid-template-columns: repeat(2, 1fr); }
    .value-card p { min-height: 0; }
    .footer-grid { gap: 24px; }
}
@media (max-width: 860px) {
    .topbar-inner { flex-wrap: wrap; justify-content: center; gap: 2px 15px; padding: 7px 0; }
    .header-inner { min-height: 76px; }
    .menu-toggle { display: block; }
    .main-nav { display: none; position: absolute; top: 100%; right: 0; left: 0; max-height: calc(100vh - 100px); overflow-y: auto; padding: 12px 22px 20px; background: #fff; box-shadow: 0 15px 20px rgba(0,0,0,.1); align-items: stretch; flex-direction: column; gap: 0; }
    .main-nav.is-open { display: flex; }
    .nav-link { display: flex; width: 100%; padding: 12px 4px; border-bottom: 1px solid #edf0ec; text-align: left; }
    .nav-admission { margin-top: 10px; text-align: center; }
    .nav-dropdown { width: 100%; }
    .dropdown-menu { position: static; margin: 0 0 8px 10px; padding: 4px 8px; border-top: 0; border-left: 2px solid var(--gold); box-shadow: none; }
    .nav-dropdown.open .dropdown-menu { display: block; }
    .hero, .hero-slides { min-height: 540px; }
    .welcome-grid { grid-template-columns: 1fr; gap: 38px; }
    .welcome-visual { width: 100%; max-width: 570px; height: 390px; margin: 0 auto; }
    .news-grid { grid-template-columns: repeat(2, 1fr); }
    .news-card:last-child { display: block; }
    .gallery-grid { grid-template-rows: 180px 180px; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .container { width: calc(100% - 32px); }
    .topbar { font-size: 9px; }
    .topbar-inner { gap: 3px; }
    .topbar-inner > span, .topbar-inner > div { text-align: center; }
    .topbar-inner > div { width: 100%; }
    .brand { min-width: 0; gap: 7px; }
    .brand img { width: 46px; height: 46px; }
    .brand-copy strong { font-size: 14px; letter-spacing: .6px; }
    .brand-copy small { font-size: 6.5px; letter-spacing: .2px; }
    .brand-copy em { font-size: 9px; }
    .hero, .hero-slides { min-height: 515px; }
    .hero-content { padding-bottom: 75px; }
    .hero-content h1 { font-size: clamp(37px, 10vw, 52px); }
    .hero-content p { font-size: 12px; }
    .hero-actions { gap: 15px; }
    .hero-bottom-inner { height: 52px; }
    .hero-motto { font-size: 7px; letter-spacing: .8px; }
    .hero-arrows button { width: 29px; height: 29px; }
    .section { padding: 60px 0; }
    .welcome-visual { height: 310px; padding: 0 23px 23px 0; }
    .welcome-crest { gap: 8px; padding: 9px 11px; }
    .welcome-crest img { width: 43px; height: 43px; }
    .welcome-crest span { font-size: 10px; }
    .welcome-label { left: -7px; bottom: 40px; padding: 8px 10px; }
    .welcome-label strong { font-size: 11px; }
    .welcome-label small { font-size: 8px; }
    h2 { font-size: 30px; }
    .value-grid { grid-template-columns: 1fr; }
    .value-card { padding: 22px; }
    .value-card p { margin-bottom: 15px; }
    .heading-row { align-items: flex-start; flex-direction: column; }
    .section-link { margin-top: 0; }
    .news-grid { grid-template-columns: 1fr; }
    .news-image { height: 220px; }
    .gallery-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 155px 155px 155px; gap: 9px; }
    .gallery-large { grid-row: span 2; }
    .gallery-tile span { right: 9px; bottom: 9px; left: 10px; font-size: 11px; }
    .birthday-section { padding: 31px 0 21px; }
    .birthday-heading { align-items: flex-start; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
    .birthday-icon { width: 43px; height: 43px; flex-basis: 43px; font-size: 21px; }
    .birthday-heading > div:nth-child(2) { flex: 1; min-width: 175px; }
    .birthday-heading h2 { font-size: 24px; }
    .birthday-heading p { font-size: 10px; }
    .birthday-date { margin-left: 53px; padding: 6px 9px; font-size: 9px; }
    .birthday-window:before, .birthday-window:after { width: 25px; }
    .birthday-person { flex-basis: 116px; width: 116px; padding: 7px 8px 10px; }
    .birthday-photo-wrap { width: 77px; height: 77px; }
    .birthday-person strong { font-size: 9px; }
    .birthday-track.is-scrolling { animation-duration: 26s; }
    .cta-inner { align-items: flex-start; flex-direction: column; }
    .cta-inner h2 { font-size: 24px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px 17px; }
    .footer-about { grid-column: span 2; }
    .footer-bottom .container { align-items: flex-start; flex-direction: column; justify-content: center; padding: 12px 0; gap: 4px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *:before, *:after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
    .birthday-track.is-scrolling { animation: none; }
}

/* Fix "Guided by purpose" text colour */
.leadership-heading h2,
.leadership-heading h2 span {
    color: #b28c3e !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Gold stripe above the footer on every page */
.site-footer {
    border-top: 4px solid #c5a04b !important;
}