/*
Theme Name: WHAP The Point
Theme URI: https://whapradio.com/
Description: Station hub theme for WHAP The Point, 96.9 FM and 1340 AM, Hopewell, Virginia. Shows, football schedule, sponsors, On Air bar, and an Advertise page with an inquiry form, all editable from the dashboard.
Version: 1.0.1
Requires at least: 5.9
Tested up to: 6.8
Requires PHP: 7.3
Author: Gee Communications
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: whap
*/

/* ---------- Fonts (bundled, SIL Open Font License; see assets/fonts) ---------- */
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 600; font-display: swap; src: url('assets/fonts/barlow-condensed-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 700; font-display: swap; src: url('assets/fonts/barlow-condensed-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 800; font-display: swap; src: url('assets/fonts/barlow-condensed-latin-800-normal.woff2') format('woff2'); }
@font-face { font-family: 'Source Sans 3'; font-style: normal; font-weight: 400; font-display: swap; src: url('assets/fonts/source-sans-3-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Source Sans 3'; font-style: normal; font-weight: 600; font-display: swap; src: url('assets/fonts/source-sans-3-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Source Sans 3'; font-style: normal; font-weight: 700; font-display: swap; src: url('assets/fonts/source-sans-3-latin-700-normal.woff2') format('woff2'); }

/* ---------- Tokens ---------- */
:root {
	--whap-accent: #F2B705;
	--navy: #0B1F3A;
	--navy-deep: #06142A;
	--navy-mid: #1E3A66;
	--navy-line: #2B4A78;
	--ink: #1A2433;
	--muted: #4A5568;
	--line: #DDE3EC;
	--bg: #F4F6F9;
	--white: #FFFFFF;
	--on-navy: #C9D4E5;
	--gold-text: #8A5A00;
	--red: #C8102E;
	--win: #1E7A46;
	--loss: #5A6678;
	--radius: 12px;
	--display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
	--body: 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--body);
	font-size: 17px;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }
a:hover { color: var(--navy-mid); }
:focus-visible { outline: 3px solid var(--whap-accent); outline-offset: 2px; }
h1, h2, h3, h4 { line-height: 1.1; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.wrap--narrow { max-width: 820px; }
.nowrap { white-space: nowrap; }
.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
	position: absolute; left: 16px; top: -60px; z-index: 100; padding: 12px 18px;
	background: var(--whap-accent); color: var(--navy); font-weight: 700; border-radius: 8px;
}
.skip-link:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 48px; padding: 0 24px; border-radius: 999px; border: 2px solid transparent;
	font: inherit; font-weight: 700; font-size: 17px; text-decoration: none; cursor: pointer;
	transition: transform .12s ease, filter .12s ease;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.05); }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn--lg { min-height: 54px; padding: 0 28px; font-size: 18px; }
.btn--block { width: 100%; }
.btn--accent, .btn--accent:hover { background: var(--whap-accent); color: var(--navy); }
.btn--navy, .btn--navy:hover { background: var(--navy); color: var(--white); }
.btn--ghost, .btn--ghost:hover { border-color: var(--white); color: var(--white); }
.btn--outline, .btn--outline:hover { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

/* ---------- On Air bar ---------- */
.onair { background: var(--navy-deep); color: var(--white); padding: 8px 0; }
.onair__inner { display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; justify-content: space-between; }
.onair__now { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-size: 15px; }
.onair__badge {
	background: var(--red); color: var(--white); font-weight: 700; font-size: 13px;
	letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: 4px;
}

/* ---------- Header ---------- */
.site-header { background: var(--navy); color: var(--white); border-bottom: 4px solid var(--whap-accent); position: relative; z-index: 20; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; padding-top: 12px; padding-bottom: 12px; }
.site-logo { display: block; flex: none; }
.site-logo__img { height: 76px; width: auto; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 26px; }
.site-nav a { display: block; padding: 10px 0; color: var(--white); text-decoration: none; font-weight: 600; font-size: 16px; }
.site-nav a:hover, .site-nav .current-menu-item > a { color: var(--whap-accent); }
.site-nav .menu-item--accent > a { color: var(--whap-accent); }
.menu-toggle { display: none; }

@media (max-width: 900px) {
	.site-logo__img { height: 60px; }
	.menu-toggle {
		display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px;
		background: transparent; color: var(--white); border: 2px solid var(--navy-line); border-radius: 10px; cursor: pointer;
	}
	.menu-toggle .icon { width: 24px; height: 24px; }
	.menu-toggle__close, .nav-open .menu-toggle__open { display: none; }
	.nav-open .menu-toggle__close { display: inline; }
	.site-nav {
		display: none; position: absolute; left: 0; right: 0; top: 100%;
		background: var(--navy); border-bottom: 4px solid var(--whap-accent); padding: 8px 24px 20px;
	}
	.nav-open .site-nav { display: block; }
	.site-nav ul { flex-direction: column; gap: 0; }
	.site-nav a { padding: 14px 0; font-size: 18px; border-bottom: 1px solid var(--navy-line); }
}

/* ---------- Hero ---------- */
.hero { background: var(--navy); color: var(--white); padding: 72px 0 88px; }
.hero--page { padding: 64px 0 72px; }
.hero--slim { padding: 48px 0 52px; }
.hero__inner { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.hero__copy { flex: 999 1 520px; min-width: 0; }
.eyebrow { margin: 0 0 14px; font-weight: 700; letter-spacing: .14em; font-size: 14px; text-transform: uppercase; color: var(--whap-accent); }
.hero__title { margin: 0; font-family: var(--display); font-weight: 800; font-size: clamp(46px, 7vw, 76px); line-height: .98; }
.hero__title--page { font-size: clamp(42px, 6vw, 70px); max-width: 900px; }
.hero__text { margin: 22px 0 0; font-size: 20px; color: var(--on-navy); max-width: 640px; }

/* Game card */
.game-card { flex: 1 1 340px; min-width: 0; background: var(--white); color: var(--ink); border-radius: 14px; overflow: hidden; }
.game-card__head { margin: 0; background: var(--whap-accent); color: var(--navy); padding: 12px 22px; font-family: var(--display); font-weight: 800; font-size: 20px; letter-spacing: .06em; text-transform: uppercase; }
.game-card__body { padding: 24px 22px; }
.game-card__label { margin: 0; font-size: 14px; font-weight: 700; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.game-card__matchup { margin: 6px 0 0; font-family: var(--display); font-weight: 700; font-size: 34px; line-height: 1.05; }
.game-card__when { margin: 10px 0 0; font-size: 17px; }
.game-card__presenter, .game-card__last { margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: 15px; color: var(--muted); }
.game-card__presenter strong { color: var(--ink); }
.game-card__presenter + .game-card__last { margin-top: 10px; padding-top: 0; border-top: 0; }
.game-card__link { display: inline-block; margin-top: 14px; font-weight: 700; }

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section--tight { padding: 0 0 80px; }
.section__head { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: baseline; justify-content: space-between; margin-bottom: 24px; }
.section__title { margin: 0; font-family: var(--display); font-weight: 800; font-size: clamp(36px, 5vw, 48px); color: var(--navy); }
.section__sub { margin: 6px 0 0; font-size: 18px; color: var(--muted); }
.section__head .section__sub { margin: 0; font-size: 17px; }
.section__sub strong { color: var(--navy); }
.section__note { margin: 22px 0 0; font-size: 15px; color: var(--muted); }
.group-label { margin: 40px 0 16px; font-size: 15px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-text); }
.grid { display: grid; gap: 22px; }
.grid--cards { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--packages { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); margin-top: 32px; align-items: stretch; }

/* Show cards */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.card__body { padding: 20px; }
.show-card__photo { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: var(--navy-mid); }
.show-time { margin: 0; font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: .04em; color: var(--gold-text); }
.show-title { margin: 4px 0 0; font-family: var(--display); font-weight: 700; font-size: 30px; color: var(--navy); }
.show-host { margin: 4px 0 0; font-size: 16px; font-weight: 600; }
.show-blurb { margin: 8px 0 0; font-size: 15px; color: var(--muted); }
.show-credit { margin: 6px 0 0; font-size: 13px; color: var(--muted); }
.weekend-card { display: flex; gap: 18px; align-items: flex-start; padding: 22px; }
.weekend-card__photo { flex: none; width: 96px; height: 96px; border-radius: 50%; object-fit: cover; border: 3px solid var(--whap-accent); background: var(--white); }
.weekend-card__day { margin: 0; font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.nightly {
	margin-top: 22px; background: var(--navy); color: var(--white); border-radius: var(--radius);
	padding: 20px 24px; display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: baseline;
}
.nightly__title { margin: 0; font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: .04em; text-transform: uppercase; color: var(--whap-accent); }
.nightly__text { margin: 0; font-size: 18px; }

/* Football table */
.table-scroll { overflow-x: auto; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.games { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 16px; text-align: left; }
.games th { background: var(--navy); color: var(--white); padding: 12px 16px; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
.games td { padding: 14px 16px; border-top: 1px solid var(--line); }
.games tr.is-next td { background: #FFF8DD; }
.games__opp { font-weight: 600; color: var(--navy); }
.result {
	display: inline-block; min-width: 24px; margin-right: 8px; padding: 1px 6px; border-radius: 4px;
	text-align: center; font-weight: 700; color: var(--white); background: var(--loss);
}
.result--w { background: var(--win); }
.tag {
	display: inline-block; margin-left: 8px; padding: 3px 9px; border-radius: 999px;
	background: var(--whap-accent); color: var(--navy); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}

/* Bands */
.band { border-radius: 18px; padding: 44px 48px; display: flex; flex-wrap: wrap; gap: 24px 28px; align-items: center; justify-content: space-between; }
.band__copy { flex: 999 1 460px; min-width: 0; }
.band__title { margin: 0; font-family: var(--display); font-weight: 800; font-size: clamp(34px, 4.5vw, 48px); line-height: 1.02; }
.band__text { margin: 10px 0 0; font-size: 18px; }
.band--navy { background: var(--navy); color: var(--white); }
.band--navy .band__text { color: var(--on-navy); }
.band--navy .eyebrow { margin-bottom: 8px; }
.band--accent { background: var(--whap-accent); color: var(--navy); }

/* Sponsors */
.sponsors { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 56px 0; }
.sponsors__title { margin: 0 0 26px; text-align: center; font-size: 15px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.sponsor-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.sponsor { aspect-ratio: 2 / 1; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.sponsor--dark { background: #000; }
.sponsor a { display: block; height: 100%; transition: transform .15s ease; }
.sponsor a:hover { transform: scale(1.03); }
.sponsor img { width: 100%; height: 100%; object-fit: contain; }
.sponsor__name { display: flex; height: 100%; align-items: center; justify-content: center; padding: 16px; text-align: center; font-family: var(--display); font-weight: 700; font-size: 24px; color: var(--navy); }

/* ---------- Advertise ---------- */
.stats { list-style: none; margin: 44px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.stat { border: 1px solid var(--navy-line); border-radius: var(--radius); padding: 20px; }
.stat__num { display: block; font-family: var(--display); font-weight: 800; font-size: 40px; line-height: 1; }
.stat__label { display: block; margin-top: 6px; font-size: 15px; color: var(--on-navy); }
.package { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 30px; display: flex; flex-direction: column; gap: 14px; }
.package--star { background: var(--navy); color: var(--white); border: 3px solid var(--whap-accent); }
.package .tag { margin: 0; align-self: flex-start; }
.package__name { margin: 0; font-family: var(--display); font-weight: 700; font-size: 30px; color: var(--navy); }
.package--star .package__name { color: var(--white); }
.package__desc { margin: 0; font-size: 16px; color: var(--muted); }
.package--star .package__desc { color: var(--on-navy); }
.package__price { margin: 0; font-family: var(--display); font-weight: 800; font-size: 44px; line-height: 1; }
.package__price span { font-size: 20px; font-weight: 600; color: var(--muted); }
.package--star .package__price span { color: var(--on-navy); }
.package__price .package__call { font-size: 28px; color: inherit; }
.package__items { margin: 0; padding-left: 20px; font-size: 16px; display: flex; flex-direction: column; gap: 6px; flex-grow: 1; }
.entry-content--advertise { margin-top: 40px; }

.inquiry { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.inquiry__intro { flex: 1 1 320px; min-width: 0; font-size: 17px; }
.inquiry__intro .section__sub { margin-bottom: 20px; }
.inquiry__form {
	flex: 999 1 520px; min-width: 0; background: var(--white); border: 1px solid var(--line); border-radius: 14px;
	padding: 32px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full, .inquiry__form .notice { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: 15px; }
.field input, .field select, .field textarea {
	min-height: 46px; padding: 10px 12px; border: 1px solid #8792A2; border-radius: 8px; font: inherit; background: var(--white); color: var(--ink);
}
.field textarea { resize: vertical; }
.form-note { margin: 0; font-size: 14px; color: var(--muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { margin: 0; padding: 14px 16px; border-radius: 8px; font-weight: 600; }
.notice--ok { background: #E6F4EC; color: #14532D; border: 1px solid #A7D7B8; }
.notice--err { background: #FDECEC; color: #7F1D1D; border: 1px solid #F3B4B4; }
@media (max-width: 600px) {
	.inquiry__form { grid-template-columns: minmax(0, 1fr); padding: 22px; }
	.band { padding: 32px 24px; }
}

/* ---------- Generic content ---------- */
.entry { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; margin-bottom: 22px; }
.entry__title { margin: 0; font-family: var(--display); font-size: 32px; }
.entry__title a { text-decoration: none; }
.entry__meta { margin: 6px 0 0; color: var(--muted); font-size: 15px; }
.entry__image { margin: 0 0 24px; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content img { border-radius: 8px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: var(--on-navy); padding: 56px 0 32px; }
.site-footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; }
.site-footer p { margin: 0; font-size: 16px; }
.site-footer a { color: var(--white); }
.site-footer .site-footer__name { font-family: var(--display); font-weight: 800; font-size: 32px; color: var(--white); line-height: 1; margin-bottom: 8px; }
.site-footer__label { margin: 0 0 10px; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; color: var(--whap-accent); }
.footer-menu { list-style: none; margin: 10px 0 0; padding: 0; }
.site-footer .site-footer__copy { margin: 40px auto 0; padding-top: 20px; border-top: 1px solid var(--navy-mid); font-size: 14px; }

/* ---------- Small screens ---------- */
@media (max-width: 600px) {
	body { font-size: 16px; }
	.wrap { padding: 0 16px; }
	.hero { padding: 48px 0 56px; }
	.hero__text { font-size: 18px; }
	.section { padding: 56px 0; }
	.section--tight { padding: 0 0 56px; }
	.weekend-card__photo { width: 72px; height: 72px; }
	.onair__now { font-size: 14px; }
}
