/* Pak Defence Cadet Academy: olive drab + khaki + brass, stencil headings, disciplined grid. */
:root {
  --olive: #3a4728;
  --olive-d: #232c17;
  --olive-2: #4d5c35;
  --khaki: #c9bb8c;
  --khaki-l: #efe9d6;
  --sand: #f7f3e7;
  --brass: #b8892c;
  --brass-l: #d9ad4f;
  --ink: #1e2216;
  --muted: #5f634f;
  --rule: #d6cdb0;
  --max: 1120px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: "Public Sans", system-ui, sans-serif; color: var(--ink); background: var(--sand); line-height: 1.6; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2 { font-family: "Saira Stencil One", "Saira Condensed", sans-serif; font-weight: 400; line-height: 1.05; margin: 0 0 14px; letter-spacing: 0.01em; text-transform: uppercase; }
h2 { font-size: clamp(1.8rem, 6vw, 2.8rem); }
h3 { font-family: "Saira Condensed", sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; font-size: 1.2rem; line-height: 1.2; margin: 0 0 8px; }
p { margin: 0 0 14px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.tag { font-family: "Saira Condensed", sans-serif; font-weight: 600; text-transform: uppercase; letter-spacing: 0.18em; font-size: 0.8rem; }

/* header */
.site-head { position: sticky; top: 0; z-index: 20; background: var(--olive-d); color: var(--khaki-l); border-bottom: 3px solid var(--brass); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; height: 62px; gap: 10px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.brand .badge { width: 38px; height: 38px; flex: none; }
.brand b { display: block; font-family: "Saira Condensed", sans-serif; font-size: 1.05rem; letter-spacing: 0.06em; text-transform: uppercase; line-height: 1.1; }
.brand small { display: block; font-size: 0.7rem; color: var(--brass-l); letter-spacing: 0.14em; text-transform: uppercase; }
.nav { display: flex; gap: 4px; align-items: center; }
.nav a { text-decoration: none; font-family: "Saira Condensed", sans-serif; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.92rem; padding: 8px 10px; }
.nav a:hover { color: var(--brass-l); }
.nav a.go { background: var(--brass); color: var(--olive-d); white-space: nowrap; }
.nav a.cur { background: transparent; box-shadow: inset 0 0 0 2px var(--brass); color: var(--brass-l); }
@media (max-width: 640px) { .hide-sm { display: none; } .brand small { display: none; } }

/* buttons: square, stencil-ish */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 20px; font-family: "Saira Condensed", sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; font-size: 1rem; text-decoration: none; border: 0; cursor: pointer; }
.btn svg { width: 20px; height: 20px; }
.btn-brass { background: var(--brass); color: var(--olive-d); box-shadow: 4px 4px 0 var(--olive-d); }
.btn-brass:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--olive-d); }
.hero .btn-brass, .dark .btn-brass, .cta .btn-brass { box-shadow: 4px 4px 0 #11160b; }
.btn-out { box-shadow: inset 0 0 0 2px currentColor; color: var(--khaki-l); }
.btn-olive { background: var(--olive); color: var(--khaki-l); }
.btn-line { box-shadow: inset 0 0 0 2px var(--olive); color: var(--olive); }
.btn-sm { padding: 9px 14px; font-size: 0.88rem; }

/* hero */
.hero { background: var(--olive); color: var(--khaki-l); position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(239, 233, 214, 0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(239, 233, 214, 0.06) 1px, transparent 1px); background-size: 32px 32px; }
.hero .wrap { position: relative; display: grid; gap: 30px; padding-top: 40px; padding-bottom: 48px; }
@media (min-width: 900px) { .hero .wrap { grid-template-columns: 1.2fr 0.8fr; align-items: center; padding-top: 72px; padding-bottom: 80px; } }
.hero .tag { color: var(--brass-l); display: flex; align-items: center; gap: 10px; }
.hero .tag::before { content: ""; width: 34px; height: 10px; background: repeating-linear-gradient(-45deg, var(--brass-l) 0 4px, transparent 4px 8px); }
.hero h1 { font-size: clamp(2.5rem, 10vw, 4.6rem); margin: 14px 0 16px; color: #fff; }
.hero h1 span { color: var(--brass-l); }
.hero .lead { color: rgba(239, 233, 214, 0.85); font-size: 1.05rem; max-width: 34em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 22px 0 24px; }
.rating { display: inline-flex; align-items: center; gap: 10px; border: 1px solid rgba(239, 233, 214, 0.35); padding: 8px 14px; font-size: 0.92rem; }
.rating .stars { color: var(--brass-l); letter-spacing: 2px; }
.hero-photo { position: relative; border: 3px solid var(--brass); padding: 8px; background: var(--olive-d); }
.hero-photo img { width: 100%; aspect-ratio: 16 / 11; object-position: center 70%; object-fit: cover; filter: sepia(0.35) saturate(0.8) contrast(1.05); }
.hero-photo .plate { position: absolute; left: -3px; bottom: 18px; background: var(--brass); color: var(--olive-d); padding: 8px 14px; font-family: "Saira Condensed", sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.9rem; }
.corner { position: absolute; width: 18px; height: 18px; border-color: var(--brass-l); border-style: solid; }
.corner.tl { top: -10px; left: -10px; border-width: 3px 0 0 3px; }
.corner.br { bottom: -10px; right: -10px; border-width: 0 3px 3px 0; }

/* chevron strip */
.strip { background: var(--khaki); color: var(--olive-d); border-top: 3px solid var(--olive-d); border-bottom: 3px solid var(--olive-d); }
.strip .wrap { display: grid; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 800px) { .strip .wrap { grid-template-columns: repeat(4, 1fr); } }
.strip div { padding: 14px 10px; border-right: 1px solid rgba(35, 44, 23, 0.25); font-size: 0.85rem; line-height: 1.3; }
.strip div:nth-child(2n) { border-right: 0; }
@media (min-width: 800px) { .strip div:nth-child(2n) { border-right: 1px solid rgba(35, 44, 23, 0.25); } .strip div:last-child { border-right: 0; } }
@media (max-width: 799px) { .strip div:nth-child(-n + 2) { border-bottom: 1px solid rgba(35, 44, 23, 0.25); } }
.strip b { display: block; font-family: "Saira Stencil One", sans-serif; font-weight: 400; font-size: 1.35rem; }

/* sections */
.section { padding: 64px 0; }
.section.alt { background: var(--khaki-l); }
.section.dark { background: var(--olive-d); color: var(--khaki-l); }
.sec-head { border-left: 6px solid var(--brass); padding-left: 14px; margin-bottom: 28px; }
.sec-head .tag { color: var(--olive-2); }
.dark .sec-head .tag { color: var(--brass-l); }
.sec-head p { color: var(--muted); max-width: 40em; margin: 0; }
.dark .sec-head p { color: rgba(239, 233, 214, 0.75); }

/* programme grid */
.ops { display: grid; gap: 0; border: 2px solid var(--olive); background: var(--olive); grid-template-columns: 1fr; }
@media (min-width: 720px) { .ops { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .ops { grid-template-columns: repeat(3, 1fr); } }
.op { background: var(--sand); padding: 20px 18px; display: flex; flex-direction: column; outline: 1px solid var(--olive); }
.op .code { display: flex; justify-content: space-between; align-items: center; font-family: "Saira Condensed", sans-serif; font-weight: 600; letter-spacing: 0.16em; font-size: 0.78rem; color: var(--brass); text-transform: uppercase; margin-bottom: 8px; }
.op .chev { width: 26px; height: 16px; color: var(--olive-2); }
.op ul { margin: 0 0 16px; padding: 0; list-style: none; color: var(--muted); font-size: 0.95rem; flex: 1; }
.op li { padding: 5px 0 5px 20px; position: relative; border-bottom: 1px dashed var(--rule); }
.op li::before { content: ""; position: absolute; left: 2px; top: 13px; width: 8px; height: 8px; background: var(--brass); transform: rotate(45deg); }
.op.feat { background: var(--khaki-l); }

/* selection path */
.path { display: grid; gap: 0; counter-reset: s; }
@media (min-width: 900px) { .path { grid-template-columns: repeat(5, 1fr); } }
.step { position: relative; padding: 18px 16px 18px 64px; border-top: 1px solid rgba(239, 233, 214, 0.18); }
@media (min-width: 900px) { .step { padding: 64px 14px 18px; border-top: 0; border-left: 1px solid rgba(239, 233, 214, 0.18); } }
.step::before { counter-increment: s; content: "0" counter(s); position: absolute; left: 0; top: 16px; font-family: "Saira Stencil One", sans-serif; font-size: 2.2rem; color: var(--brass-l); line-height: 1; }
@media (min-width: 900px) { .step::before { left: 14px; top: 10px; } }
.step h3 { color: #fff; font-size: 1.05rem; }
.step p { margin: 0; font-size: 0.9rem; color: rgba(239, 233, 214, 0.75); }

/* why */
.why { display: grid; gap: 14px; }
@media (min-width: 800px) { .why { grid-template-columns: repeat(2, 1fr); } }
.why .item { display: flex; gap: 14px; padding: 18px; background: var(--sand); border: 1px solid var(--rule); border-top: 4px solid var(--olive); }
.why .star { width: 34px; height: 34px; flex: none; color: var(--brass); }
.why p { margin: 0; color: var(--muted); font-size: 0.94rem; }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
@media (min-width: 800px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
.gallery figure { margin: 0; position: relative; }
.gallery img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; filter: sepia(0.2) saturate(0.85); }
.gallery figcaption { position: absolute; left: 0; bottom: 0; background: var(--olive-d); color: var(--khaki-l); font-family: "Saira Condensed", sans-serif; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.72rem; padding: 4px 8px; }
.gallery .big { grid-column: span 2; }

/* visit */
.visit { display: grid; gap: 28px; }
@media (min-width: 900px) { .visit { grid-template-columns: 1fr 1fr; } }
.addr { font-style: normal; margin-bottom: 16px; }
.hours { width: 100%; border-collapse: collapse; font-size: 0.95rem; border: 2px solid var(--olive); }
.hours td { padding: 10px 12px; border-bottom: 1px solid var(--rule); }
.hours tr:nth-child(odd) td { background: rgba(201, 187, 140, 0.18); }
.hours td:last-child { text-align: right; font-weight: 700; }
.note { font-size: 0.86rem; color: var(--muted); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 18px; }
.map { width: 100%; height: 340px; border: 3px solid var(--olive); background: var(--khaki-l); }

/* cta */
.cta { background: var(--olive); color: var(--khaki-l); padding: 30px 22px; border: 3px solid var(--brass); position: relative; }
.cta::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 10px; background: repeating-linear-gradient(-45deg, var(--brass) 0 8px, var(--olive-d) 8px 16px); }
.cta h2 { color: #fff; margin-top: 10px; }
.cta p { color: rgba(239, 233, 214, 0.85); max-width: 36em; }
.cta pre { font-family: ui-monospace, Menlo, monospace; font-size: 0.86rem; background: var(--olive-d); padding: 14px; white-space: pre-wrap; color: var(--khaki); border-left: 4px solid var(--brass); }

/* fees page */
.page-hero { background: var(--olive); color: var(--khaki-l); padding: 48px 0 40px; position: relative; }
.page-hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(239, 233, 214, 0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(239, 233, 214, 0.06) 1px, transparent 1px); background-size: 32px 32px; }
.page-hero .wrap { position: relative; }
.page-hero .tag { color: var(--brass-l); }
.page-hero h1 { font-size: clamp(2.2rem, 8vw, 3.4rem); color: #fff; margin-top: 10px; }
.page-hero p { max-width: 36em; color: rgba(239, 233, 214, 0.85); }
.fee-table { width: 100%; border-collapse: collapse; border: 2px solid var(--olive); background: var(--sand); }
.fee-table th { background: var(--olive); color: var(--khaki-l); font-family: "Saira Condensed", sans-serif; text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.82rem; text-align: left; padding: 10px 12px; }
.fee-table th:last-child, .fee-table td.amt { text-align: right; }
.fee-table td { padding: 12px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.fee-table td small { display: block; color: var(--muted); font-size: 0.84rem; }
.fee-table td.amt { font-family: "Saira Condensed", sans-serif; font-weight: 700; font-size: 1.2rem; white-space: nowrap; color: var(--olive-d); }
.fee-table tr.hl td { background: rgba(217, 173, 79, 0.16); }
.tabs { display: flex; gap: 0; overflow-x: auto; margin-bottom: 16px; border: 2px solid var(--olive); scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; border: 0; border-right: 1px solid var(--olive); background: var(--sand); color: var(--olive-d); font-family: "Saira Condensed", sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.92rem; padding: 10px 16px; cursor: pointer; }
.tab:last-child { border-right: 0; }
.tab[aria-selected="true"] { background: var(--olive); color: var(--brass-l); }
.roster { border: 2px solid var(--olive); background: var(--sand); }
.slot { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-items: center; padding: 14px; border-bottom: 1px solid var(--rule); }
.slot:last-child { border-bottom: 0; }
.slot .t { font-family: "Saira Condensed", sans-serif; font-weight: 700; font-size: 1.1rem; color: var(--olive); letter-spacing: 0.04em; }
.slot .d { grid-column: 1; font-size: 0.95rem; }
.slot .d small { display: block; color: var(--muted); font-size: 0.84rem; }
.slot .btn { grid-column: 2; grid-row: 1 / span 2; }
.lbl { display: inline-block; font-family: "Saira Condensed", sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.68rem; padding: 2px 6px; background: var(--khaki); color: var(--olive-d); vertical-align: 2px; margin-left: 4px; }
@media (min-width: 760px) { .slot { grid-template-columns: 170px 1fr auto; } .slot .d { grid-column: 2; grid-row: 1; } .slot .btn { grid-column: 3; grid-row: 1; } }

/* footer */
.site-foot { background: var(--olive-d); color: rgba(239, 233, 214, 0.8); padding: 44px 0 96px; font-size: 0.92rem; border-top: 3px solid var(--brass); }
.site-foot .wrap { display: grid; gap: 22px; }
@media (min-width: 800px) { .site-foot .wrap { grid-template-columns: 2fr 1fr 1fr; } }
.site-foot h3 { color: #fff; font-size: 1rem; }
.site-foot a { color: var(--brass-l); text-decoration: none; }

.wa-float { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 50; width: 58px; height: 58px; border-radius: 50%; background: #25d366; display: grid; place-items: center; box-shadow: 0 10px 26px rgba(0, 0, 0, 0.3); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }
@media (min-width: 900px) { .hero-photo img { aspect-ratio: 4 / 4.4; } }
