/*
Theme Name: Kamwezi School
Theme URI: https://kamwezihs.sc.ug/
Author: RENU DevOps
Description: Kamwezi High School website using the Nakwaya school layout system.
Version: 3.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: kamwezi-school
*/

:root {
    --navy: #111a3b;
    --navy-dark: #0a1029;
    --navy-deep: #060b1c;
    --blue-bright: #263f78;
    --red: #e3061b;
    --yellow: #f4df00;
    --paper: #fff;
    --tint: #f7f9fc;
    --line: #dde5f0;
    --body: #4f5b68;
    --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--body); background: var(--paper); font-family: Roboto, "Segoe UI", Arial, sans-serif; line-height: 1.7; }
a { color: var(--navy); text-underline-offset: 3px; }
a:hover { color: var(--blue-bright); }
img { max-width: 100%; height: auto; }
h1, h2, h3, h4, h5, h6 { color: var(--navy-dark); font-family: Montserrat, "Segoe UI", Arial, sans-serif; letter-spacing: -.025em; line-height: 1.12; }
.site-shell { min-height: 100vh; overflow: hidden; }
.container { width: min(var(--max), calc(100% - 48px)); margin-inline: auto; }

.topbar { background: var(--navy); color: #fff; font-size: 13px; }
.topbar-inner { min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.topbar a { color: #fff; font-weight: 700; text-decoration: none; }
.topbar-inner div { display: flex; gap: 30px; opacity: .95; }
.site-header { position: relative; z-index: 5; background: #fff; border-bottom: 1px solid var(--line); }
.header-inner { min-height: 90px; display: flex; align-items: center; justify-content: space-between; gap: 25px; }
.brand { display: inline-flex; align-items: center; gap: 13px; color: var(--navy-dark); text-decoration: none; line-height: 1.15; }
.brand-logo { display: block; width: 58px; height: 62px; object-fit: contain; object-position: center; }
.brand-mark { display: grid; width: 54px; height: 54px; place-items: center; border: 3px solid var(--yellow); border-radius: 50%; background: var(--navy-dark); color: var(--yellow); font-size: 24px; font-weight: 900; }
.brand strong { display: block; font-size: 15px; letter-spacing: .11em; text-transform: uppercase; }
.brand small { display: block; margin-top: 4px; color: #6c7887; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.primary-nav ul { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; padding: 0; margin: 0; list-style: none; }
.primary-nav a { display: block; padding: 11px 13px; color: #1a1d24; border-radius: 3px; font-size: 14px; font-weight: 700; text-decoration: none; text-transform: uppercase; }
.primary-nav a:hover, .primary-nav .current-menu-item > a { background: #fff8d9; color: var(--navy); }
.header-cta, .button { display: inline-flex; align-items: center; justify-content: center; border-radius: 4px; font-size: 14px; font-weight: 800; text-decoration: none; }
.header-cta { padding: 13px 20px; background: var(--yellow); color: var(--navy-dark); }
.header-cta:hover { background: #f3c700; color: var(--navy-dark); }

.hero { position: relative; min-height: 600px; display: grid; place-items: center; overflow: hidden; background: var(--navy-deep); color: #fff; }
.hero-slideshow, .hero-slide { position: absolute; inset: 0; }
.hero-slideshow { z-index: 0; }
.hero-slide { background-position: center; background-size: cover; opacity: 0; transform: scale(1.02); transition: opacity 1.1s ease, transform 7s ease; }
.hero-slide.is-active { opacity: 1; transform: scale(1); }
.hero-overlay { position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(6, 24, 55, .78), rgba(13, 33, 69, .47)); }
.hero-content { position: relative; z-index: 2; padding: 92px 0 100px; text-align: center; }
.hero-slideshow-controls { position: absolute; z-index: 3; right: 28px; bottom: 24px; left: 28px; display: flex; justify-content: center; gap: 9px; }
.hero-dot { width: 10px; height: 10px; padding: 0; border: 1px solid rgba(255, 255, 255, .9); border-radius: 50%; background: transparent; cursor: pointer; transition: transform .2s ease, background-color .2s ease; }
.hero-dot:hover, .hero-dot:focus-visible { transform: scale(1.25); }
.hero-dot.is-active { background: var(--yellow); border-color: var(--yellow); }
.hero-dot:focus-visible { outline: 3px solid rgba(244, 223, 0, .95); outline-offset: 4px; }
.eyebrow { margin: 0 0 16px; color: var(--yellow); font-size: 13px; font-weight: 800; letter-spacing: .17em; text-transform: uppercase; }
.eyebrow-dark { color: var(--navy); }
.hero h1 { max-width: 900px; margin: 0 auto; color: #fff; font-size: clamp(40px, 6vw, 72px); font-weight: 900; letter-spacing: -.045em; line-height: 1.06; text-transform: uppercase; }
.hero-tagline { margin: 12px 0 30px; color: #fff; font-size: 24px; font-weight: 700; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; }
.button { min-height: 52px; padding: 13px 27px; }
.button-light { background: #fff; color: var(--navy-dark); }
.button-light span { margin-left: 15px; font-size: 24px; line-height: 0; }
.button-light:hover { background: #f3f6fb; color: var(--navy-dark); }
.button-gold { background: var(--yellow); color: var(--navy-dark); }
.button-gold:hover { background: #f3c700; color: var(--navy-dark); }

.section { padding: 95px 0; }
.about-grid { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: 78px; align-items: center; }
.about-image { min-height: 490px; background: url("/wp-content/uploads/2026/08/kamwezi-gallery/kamwezi-campus-01.jpg") center / cover no-repeat; border-radius: 2px; box-shadow: 22px 22px 0 #f5eeb0; }
.about-copy h2, .section-heading h2, .school-life-heading h2 { margin: 0; font-size: clamp(31px, 4vw, 50px); }
.about-copy > p:not(.eyebrow) { margin: 18px 0 0; font-size: 17px; }
.highlight-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0; }
.highlight-row span { padding: 8px 12px; background: var(--tint); color: var(--navy); font-size: 12px; font-weight: 800; }
.text-link { display: inline-flex; align-items: center; gap: 12px; font-weight: 800; text-decoration: none; }
.text-link span { font-size: 22px; }
.section-tint { background: var(--tint); }
.centered { max-width: 780px; margin: 0 auto 42px; text-align: center; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature-card { padding: 34px 30px 31px; border: 1px solid var(--line); background: #fff; box-shadow: 0 16px 38px rgba(13, 33, 69, .07); transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease; }
.feature-card:hover { transform: translateY(-7px); border-color: var(--blue-bright); box-shadow: 0 22px 44px rgba(13, 33, 69, .16); }
.feature-number { display: grid; width: 42px; height: 42px; place-items: center; margin-bottom: 24px; background: var(--red); color: #fff; font-size: 13px; font-weight: 900; }
.feature-card h3 { margin: 0; font-size: 23px; }
.feature-card p { margin: 14px 0 0; font-size: 15px; }
.school-life-grid { display: grid; grid-template-columns: .78fr .82fr 1.15fr; gap: 45px; align-items: center; }
.school-life-image { min-height: 300px; background: url("/wp-content/uploads/2026/08/kamwezi-gallery/kamwezi-campus-10.jpg") center / cover no-repeat; box-shadow: 14px 14px 0 #f5eeb0; }
.school-life-heading > p:not(.eyebrow) { max-width: 520px; margin: 18px 0 0; font-size: 17px; }
.school-life-links { display: grid; gap: 0; }
.school-life-links a { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 4px; border-bottom: 1px solid var(--line); text-decoration: none; }
.school-life-links a:first-child { border-top: 1px solid var(--line); }
.school-life-links span { color: var(--body); font-size: 14px; }
.school-life-links strong { color: var(--navy-dark); font-size: 20px; }
.school-life-links b { margin-left: 18px; color: var(--yellow); font-size: 25px; }
.photo-strip-heading { display: flex; align-items: end; justify-content: space-between; gap: 35px; margin-bottom: 36px; }
.photo-strip-heading h2 { max-width: 680px; margin: 0; font-size: clamp(31px, 4vw, 50px); }
.photo-strip-grid { display: grid; grid-template-columns: 1.45fr .8fr .8fr; gap: 18px; }
.photo-tile { position: relative; min-height: 290px; display: flex; align-items: end; padding: 22px; overflow: hidden; background-position: center; background-size: cover; color: #fff; text-decoration: none; }
.photo-tile-wide { min-height: 390px; }
.photo-tile::before { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(6, 11, 28, .78), transparent 60%); content: ''; transition: background .22s ease; }
.photo-tile::after { position: absolute; inset: 12px; border: 1px solid rgba(255,255,255,.45); content: ''; opacity: 0; transition: opacity .22s ease; }
.photo-tile span { position: relative; z-index: 1; font-family: Montserrat, "Segoe UI", Arial, sans-serif; font-size: 17px; font-weight: 800; }
.photo-tile:hover { color: #fff; }
.photo-tile:hover::before { background: linear-gradient(0deg, rgba(17, 26, 59, .9), rgba(227, 6, 27, .18)); }
.photo-tile:hover::after { opacity: 1; }

.page-hero { padding: 80px 0; background: var(--tint); border-bottom: 1px solid var(--line); }
.page-hero-image { position: relative; isolation: isolate; min-height: 330px; display: flex; align-items: center; color: #fff; background-image: linear-gradient(90deg, rgba(6, 24, 55, .84), rgba(13, 33, 69, .46)), var(--page-hero-image); background-position: center; background-size: cover; }
.page-hero-image::after { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(6, 24, 55, .18), transparent); content: ''; }
.page-hero-image h1 { color: #fff; }
.page-hero-image p:last-child { color: rgba(255,255,255,.9); }
.page-hero-inner { max-width: 900px; }
.page-hero h1 { margin: 0; font-size: clamp(38px, 5vw, 60px); text-transform: uppercase; }
.page-hero p:last-child { max-width: 720px; margin: 18px 0 0; font-size: 18px; }
.content-shell { max-width: 900px; padding-top: 72px; padding-bottom: 100px; }
.content-shell h2 { margin: 44px 0 0; font-size: 31px; }
.content-shell h3 { margin-top: 30px; font-size: 23px; }
.content-shell p, .content-shell li { font-size: 17px; }
.content-shell ul { padding-left: 24px; }
.content-shell .notice { padding: 20px 24px; border-left: 4px solid var(--yellow); background: #fff8d9; }
.school-map { overflow: hidden; min-height: 360px; margin: 22px 0 10px; border: 1px solid var(--line); box-shadow: 0 12px 28px rgba(13, 33, 69, .08); }
.school-map iframe { display: block; width: 100%; min-height: 360px; border: 0; }
.wpforms-container { padding: 30px; margin: 22px 0 42px !important; border: 1px solid var(--line); background: var(--tint); }
.wpforms-container .wpforms-field-label { color: var(--navy-dark); font-family: Montserrat, "Segoe UI", Arial, sans-serif; font-size: 14px; font-weight: 800; }
.wpforms-container input[type="text"], .wpforms-container input[type="email"], .wpforms-container textarea { width: 100%; border: 1px solid #cbd6e4; border-radius: 2px; padding: 12px 14px; color: var(--body); background: #fff; font: inherit; }
.wpforms-container input[type="text"]:focus, .wpforms-container input[type="email"]:focus, .wpforms-container textarea:focus { outline: 2px solid rgba(36, 85, 164, .22); border-color: var(--blue-bright); }
.wpforms-container button[type="submit"] { min-height: 48px; padding: 12px 24px; border: 0; border-radius: 3px; background: var(--yellow); color: var(--navy-dark); font-size: 14px; font-weight: 800; cursor: pointer; }
.wpforms-container button[type="submit"]:hover { background: #f3c700; }
.gallery-page { max-width: 1120px; padding-top: 72px; padding-bottom: 100px; }
.gallery-intro { max-width: 760px; margin-bottom: 42px; }
.gallery-intro p { font-size: 17px; }
.photo-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.gallery-card { position: relative; overflow: hidden; min-height: 260px; margin: 0; border: 1px solid var(--line); background: var(--navy-dark); box-shadow: 0 14px 30px rgba(10, 16, 41, .1); }
.gallery-card img { display: block; width: 100%; height: 100%; min-height: 260px; object-fit: cover; transition: transform .35s ease; }
.gallery-card figcaption { position: absolute; right: 0; bottom: 0; left: 0; padding: 45px 18px 16px; background: linear-gradient(transparent, rgba(6, 11, 28, .9)); color: #fff; font-size: 14px; font-weight: 700; }
.gallery-card:hover img { transform: scale(1.04); }
.blog-grid { max-width: 1050px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.post-card { overflow: hidden; margin-bottom: 0; border: 1px solid var(--line); background: #fff; box-shadow: 0 16px 38px rgba(13, 33, 69, .07); }
.post-card-image { min-height: 210px; background-position: center; background-size: cover; }
.post-card-copy { padding: 26px 28px 30px; }
.post-card-copy h2 { margin-bottom: 14px; }
.post-card-copy .text-link { margin-top: 12px; }
.post-card h2 { margin-top: 0; }
.post-date { color: var(--body); font-size: 14px; }

.site-footer { padding: 62px 0 24px; background: var(--navy-dark); color: rgba(255,255,255,.73); }
.footer-grid { display: grid; grid-template-columns: 1.25fr .8fr .7fr; gap: 55px; }
.footer-brand { color: #fff; }
.footer-brand small { color: rgba(255,255,255,.6); }
.footer-copy, .footer-grid p { margin: 22px 0 0; font-size: 14px; }
.site-footer h3 { margin: 0; color: #fff; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }
.footer-links { display: grid; gap: 7px; margin-top: 18px; }
.footer-links a, .footer-bottom a { color: rgba(255,255,255,.75); text-decoration: none; }
.footer-links a:hover, .footer-bottom a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 48px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.15); font-size: 12px; }

@media (max-width: 900px) {
    .header-inner { flex-wrap: wrap; padding: 17px 0; }
    .primary-nav { order: 3; width: 100%; overflow-x: auto; }
    .primary-nav ul { flex-wrap: nowrap; width: max-content; }
    .header-cta { display: none; }
    .about-grid, .school-life-grid { grid-template-columns: 1fr; gap: 44px; }
    .about-image { min-height: 360px; }
    .feature-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .blog-grid { grid-template-columns: 1fr; }
    .photo-strip-grid { grid-template-columns: 1fr 1fr; }
    .photo-tile-wide { grid-column: 1 / -1; }
    .photo-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
    .container { width: min(100% - 30px, var(--max)); }
    .topbar-inner { min-height: 42px; font-size: 11px; }
    .topbar-inner div { gap: 10px; }
    .brand-mark { width: 45px; height: 45px; }
    .brand-logo { width: 46px; height: 50px; }
    .brand strong { font-size: 12px; }
    .brand small { font-size: 9px; }
    .hero { min-height: 570px; }
    .hero-content { padding: 75px 0 85px; }
    .hero h1 { font-size: 40px; }
    .hero-tagline { font-size: 20px; }
    .section { padding: 65px 0; }
    .about-image { min-height: 260px; box-shadow: 12px 12px 0 #e9eef6; }
    .school-life-image { min-height: 240px; }
    .page-hero-image { min-height: 300px; }
    .photo-strip-heading { display: block; }
    .photo-strip-heading .text-link { margin-top: 20px; }
    .photo-strip-grid, .photo-gallery { grid-template-columns: 1fr; }
    .photo-tile-wide { grid-column: auto; }
    .gallery-card, .gallery-card img { min-height: 230px; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer-bottom { flex-direction: column; margin-top: 32px; }
}
