/*
Theme Name: Golf Launch Monitor Guide
Template: aff-base
Description: Sim-bay-at-dusk look for golf-launch-monitor.com: fairway green, deep navy and flag yellow, with radar arcs and ball-flight trace lines.
Version: 1.0.0
*/

:root {
	--bg: #f3f6f2;
	--surface: #ffffff;
	--surface-2: #e5ece4;
	--ink: #0f1d2e;
	--ink-2: #31425a;
	--muted: #627287;
	--line: #d5dfd5;
	--accent: #1b7543;
	--accent-ink: #ffffff;
	--accent-soft: #daeee0;
	--accent-2: #f6c619;
	--accent-2-ink: #0f1d2e;
	--good: #1b7543;
	--bad: #be3a2c;
	--radius: 10px;
	--radius-sm: 6px;
	--shadow: 0 1px 2px rgba(15, 29, 46, .05), 0 10px 26px rgba(15, 29, 46, .08);
	--font-display: "Rajdhani", "Arial Narrow", system-ui, sans-serif;
	--font-body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
	--display-weight: 700;
	--display-tracking: 0.005em;
	/* Theme-only tokens */
	--navy: #0b1828;
	--navy-2: #13253c;
	--navy-line: #24395a;
	--flag: #f6c619;
	--flag-text: #ffd84d;
	--fairway: #2f9e5c;
	--trace: linear-gradient(90deg, #1b7543 0%, #2f9e5c 35%, #f6c619 75%, #ffe58a 100%);
}

body { font-size: 17.5px; }
h1, h2, h3, h4 { line-height: 1.1; }
.kicker { font: 600 13.5px/1.2 var(--font-display); letter-spacing: .2em; }
.btn { border-radius: var(--radius-sm); font-family: var(--font-display); font-weight: 700; font-size: 17px; letter-spacing: .06em; text-transform: uppercase; }
:focus-visible { outline-color: var(--fairway); }

/* ---------- Header: night-bay navy with a shot-tracer strip ---------- */
.site-header { background: var(--navy); border-bottom: 0; backdrop-filter: none; }
.site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 3px; background: var(--trace); }
.brand { color: #fff; }
.brand__name { font-size: 23px; letter-spacing: .03em; text-transform: uppercase; }
.nav__list a { color: #c7d3e3; border-radius: var(--radius-sm); font-weight: 600; }
.nav__list a:hover, .nav__list .current-menu-item a { background: rgba(255, 255, 255, .08); color: #fff; box-shadow: inset 0 -2px 0 var(--flag); }
.nav-toggle { background: var(--navy-2); border-color: var(--navy-line); border-radius: var(--radius-sm); }
.nav-toggle__bar, .nav-toggle__bar::before, .nav-toggle__bar::after { background: #fff; }
@media (max-width: 1120px) {
	.nav { background: var(--navy); border-bottom-color: var(--navy-line); }
	.nav__list a { color: #e1e8f1; }
}

/* ---------- Hero: dusk sky over the bay, radar rings and a ball-flight trace ---------- */
.hero { position: relative; overflow: hidden; border-bottom: 0; color: #fff;
	background:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 520' preserveAspectRatio='none'%3E%3Cg fill='none' stroke='%23f6c619' stroke-opacity='.16' stroke-width='2' stroke-dasharray='2 10' stroke-linecap='round'%3E%3Cpath d='M-20 500C240 120 560 40 860 140'/%3E%3Cpath d='M-20 520C320 220 700 150 1220 260'/%3E%3C/g%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.05' stroke-width='1.5'%3E%3Ccircle cx='0' cy='520' r='220'/%3E%3Ccircle cx='0' cy='520' r='340'/%3E%3Ccircle cx='0' cy='520' r='460'/%3E%3C/g%3E%3C/svg%3E") center / 100% 100% no-repeat,
		radial-gradient(640px 360px at 78% 18%, rgba(246, 198, 25, .16), transparent 70%),
		radial-gradient(900px 300px at 50% 120%, rgba(47, 158, 92, .38), transparent 70%),
		linear-gradient(180deg, #0b1828 0%, #13253c 58%, #163a35 100%); }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 10px; pointer-events: none;
	background: repeating-linear-gradient(90deg, #1b7543 0 60px, #23874f 60px 120px); }
.hero__inner { position: relative; z-index: 1; }
.hero .kicker { color: var(--flag-text); }
.hero__title { color: #fff; font-size: clamp(40px, 5.4vw, 68px); line-height: 1.02; letter-spacing: .005em; }
.hero__text { color: #c7d3e3; }
.hero .btn--primary { background: var(--flag); color: var(--navy); box-shadow: 0 8px 24px rgba(246, 198, 25, .28); }
.hero .btn--ghost { border-color: #9fb2c8; color: #fff; }
.hero .btn--ghost:hover { background: #fff; color: var(--navy); border-color: #fff; }
.hero__art svg { filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .35)); }

/* ---------- Section headings get a short tracer bar ---------- */
.section__head h2, .prose h2 { position: relative; }
.section__head h2::before, .prose h2::before { content: ""; display: block; width: 52px; height: 4px; margin-bottom: 12px; border-radius: 2px; background: var(--trace); }
.section__head h2 { text-transform: uppercase; letter-spacing: .02em; }

/* ---------- Silo tiles: yardage-book cards with a trace arc ---------- */
.silos__grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.silo { position: relative; overflow: hidden; padding: 22px 22px 26px; border-radius: var(--radius); border: 1px solid var(--line); border-top: 4px solid var(--accent);
	background:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 140 80'%3E%3Cpath d='M4 76C40 18 92 6 136 30' fill='none' stroke='%231b7543' stroke-opacity='.22' stroke-width='2' stroke-dasharray='3 6' stroke-linecap='round'/%3E%3Ccircle cx='136' cy='30' r='4' fill='%23f6c619'/%3E%3C/svg%3E") right 10px bottom 10px / 120px auto no-repeat,
		linear-gradient(var(--surface), var(--surface)); }
.silo:hover { border-color: var(--line); border-top-color: var(--flag); }
.silo__icon { width: 58px; height: 58px; padding: 10px; border-radius: 12px; background: var(--navy); color: var(--flag); }
.silo__name { font-size: 22px; text-transform: uppercase; letter-spacing: .02em; }

/* ---------- Cards ---------- */
.card__link { border-radius: var(--radius); }
.card__icon { width: 44px; height: 44px; padding: 7px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); }
.card__title { font-size: 22px; }
.card--lg .card__title { font-size: 28px; }
.card--lg .card__link { background: linear-gradient(165deg, var(--accent-soft), var(--surface) 58%); border-top: 3px solid var(--accent); }
.card__more { text-transform: uppercase; letter-spacing: .06em; font-family: var(--font-display); font-size: 15.5px; }

/* ---------- Tool teaser: night bay panel ---------- */
.teaser__inner { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%); color: #c7d3e3; border-radius: calc(var(--radius) * 1.6); }
.teaser__copy h2 { color: #fff; }
.teaser .kicker { color: var(--flag-text); }
.teaser .btn--primary { background: var(--flag); color: var(--navy); }

/* ---------- Promise: scorecard columns ---------- */
.promise__item { border-top: 0; border-left: 4px solid var(--accent); border-radius: 0 var(--radius) var(--radius) 0; }
.promise__item h3 { font-size: 22px; text-transform: uppercase; letter-spacing: .02em; }

/* ---------- Article ---------- */
.article__title { line-height: 1.04; }
.prose h3 { font-size: 24px; }
.faq summary { font-size: 21px; }

/* Quick picks: numbered yardage markers */
.quick-picks { counter-reset: qp; border-radius: var(--radius); }
.quick-picks li { position: relative; padding-left: 64px; counter-increment: qp; }
.quick-picks li::before { content: counter(qp); position: absolute; left: 18px; top: 15px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 6px; background: var(--navy); color: var(--flag); font: 700 18px/1 var(--font-display); }
.quick-picks li:first-child::before { background: var(--flag); color: var(--navy); }
.quick-picks li strong { font-size: 20px; }

/* Product box: tracer edge on top, night-bay icon plate */
.aff-product { border: 0; box-shadow: 0 0 0 1.5px var(--line), var(--shadow); position: relative; overflow: hidden; }
.aff-product::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--trace); }
.aff-product__icon { background: var(--navy); color: var(--flag); }
.aff-product__icon--art { background: var(--surface-2); color: var(--ink); }
.aff-product__badge { background: var(--navy); color: var(--flag); font-family: var(--font-display); font-size: 13px; }
.aff-product__name { font-size: 21px; }
.aff-product__btn, .aff-cta__btn { border-radius: var(--radius-sm); }
.aff-cta { border-left-color: var(--accent); }
.aff-cta__label { color: var(--accent); }
.aff-cta strong { font-size: 21px; }

/* ---------- Footer: deep navy with a mown-fairway stripe ---------- */
.site-footer { background: var(--navy); color: #a9b8ca; position: relative; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 8px; background: repeating-linear-gradient(90deg, #1b7543 0 60px, #23874f 60px 120px); }
.site-footer a:hover { color: var(--flag-text); }
.site-footer__title { color: #fff; font-family: var(--font-display); font-size: 14px; }
.site-footer .brand__name { text-transform: uppercase; }

/* ---------- Tools (shared bits) ---------- */
.agg-src { margin: 14px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.agg-src b { color: var(--ink-2); }
.agg-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 10px 0 0; font-size: 13.5px; color: var(--ink-2); }
.agg-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }

/* Room size calculator */
.agg-room__seg { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; border: 0; padding: 0; }
.agg-room__seg legend { font-size: 14px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; padding: 0; width: 100%; }
.agg-room__seg label { margin: 0; }
.agg-room__seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.agg-room__seg span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--bg); font-size: 14.5px; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.agg-room__seg input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.agg-room__seg input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.agg-room__head { margin: 0 0 12px; }
.agg-room__type { margin: 8px 0 0; font-size: 14px; color: var(--ink-2); line-height: 1.4; }
.agg-room__cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 4px; }
.agg-room__card { padding: 14px 16px; border-radius: var(--radius-sm); background: var(--surface); border: 1.5px solid var(--line); }
.agg-room__card h4 { margin: 0 0 6px; font-size: 19px; text-transform: uppercase; letter-spacing: .02em; }
.agg-room__verdict { display: inline-block; padding: 4px 10px; border-radius: 999px; font: 700 13px/1.2 var(--font-body); letter-spacing: .06em; text-transform: uppercase; }
.agg-room__card.is-fit { border-color: var(--good); }
.agg-room__card.is-fit .agg-room__verdict { background: var(--good); color: #fff; }
.agg-room__card.is-tight { border-color: #c99700; }
.agg-room__card.is-tight .agg-room__verdict { background: var(--flag); color: var(--navy); }
.agg-room__card.is-nofit { border-color: var(--bad); }
.agg-room__card.is-nofit .agg-room__verdict { background: var(--bad); color: #fff; }
.agg-room__checks { list-style: none; margin: 10px 0 0; padding: 0; font-size: 14.5px; line-height: 1.45; }
.agg-room__checks li { display: grid; grid-template-columns: 74px 1fr; gap: 8px; padding: 6px 0; border-top: 1px solid rgba(15, 29, 46, .08); }
.agg-room__checks b { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; padding-top: 2px; }
.agg-room__checks .is-fit b { color: var(--good); }
.agg-room__checks .is-tight b { color: #8a6a00; }
.agg-room__checks .is-nofit b { color: var(--bad); }
.agg-room__plan { margin-top: 16px; padding: 10px; background: var(--navy); border-radius: var(--radius-sm); }
.agg-room__plan svg { display: block; width: 100%; height: auto; }

/* Launch monitor finder */
.agg-quiz__q { border: 0; margin: 0 0 16px; padding: 0; }
.agg-quiz__q legend { font: 700 19px/1.2 var(--font-display); letter-spacing: .02em; text-transform: uppercase; color: var(--ink); margin-bottom: 8px; padding: 0; }
.agg-quiz__opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 8px; }
.agg-quiz__opts label { margin: 0; }
.agg-quiz__opts input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.agg-quiz__opts span { display: flex; flex-direction: column; justify-content: center; min-height: 52px; height: 100%; padding: 8px 12px; border-radius: var(--radius-sm); border: 1.5px solid var(--line); background: var(--bg); font-size: 15px; font-weight: 600; line-height: 1.3; color: var(--ink); cursor: pointer; }
.agg-quiz__opts small { font-weight: 400; color: var(--muted); font-size: 13px; }
.agg-quiz__opts input:checked + span { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.agg-quiz__opts input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.agg-quiz__result { margin-top: 6px; }
.agg-quiz__type { display: block; font: 700 25px/1.15 var(--font-display); letter-spacing: .01em; color: var(--ink); margin: 2px 0 6px; }
.agg-quiz__result p { margin: 0 0 8px; }
.agg-quiz__links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px !important; }
.agg-quiz__links a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px; background: var(--navy); color: #fff; font-size: 14.5px; font-weight: 600; text-decoration: none; }
.agg-quiz__links a:hover { background: var(--accent); }
.agg-quiz__warn { font-size: 14.5px; color: var(--ink-2); padding: 8px 12px; border-left: 3px solid var(--flag); background: rgba(246, 198, 25, .12); border-radius: 0 6px 6px 0; }

@media (max-width: 760px) {
	.hero__title { font-size: clamp(36px, 10vw, 48px); }
	.agg-room__cards { grid-template-columns: 1fr; }
	.agg-room__checks li { grid-template-columns: 64px 1fr; }
	.quick-picks li { padding-left: 58px; }
	.quick-picks li::before { left: 14px; }
}
