/*
Theme Name: Kwetu Billboards
Theme URI: https://billboardskenya.co.ke
Author: Kwetu Billboards
Description: Directory-first theme for Kwetu Billboards, built to match the approved Lovable-style design system (cream/terracotta/near-black, Outfit throughout). Pairs with the Billboards Directory plugin for the CPT, taxonomy and map.
Version: 1.0.0
Requires PHP: 7.4
Text Domain: billboards-kenya
*/

:root {
	--bg: #fbf9f3;
	--panel: #fffdfa;
	--surface-2: #f4f0e7;
	--panel-ink: #1e1814;
	--ink: #1d1713;
	--muted: #6c635a;
	--line: #e1dcd2;
	--primary: #df5200;
	--cream-text: #f7f5ef;
	--radius-2xl: 28px;
	--radius-3xl: 32px;
	--radius-pill: 999px;
	--container: 1152px;
	--font: 'Outfit', ui-sans-serif, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
	font-family: var(--font);
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.03;
	text-transform: uppercase;
	margin: 0;
}
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* buttons */
.btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: var(--font);
	font-weight: 600;
	font-size: 13px;
	padding: 10px 18px;
	border-radius: var(--radius-pill);
	border: 1px solid transparent;
	cursor: pointer;
	transition: opacity 0.15s ease, background-color 0.15s ease;
}
.btn-primary { background: var(--primary); color: var(--cream-text); }
.btn-primary:hover { opacity: 0.9; }
.btn-outline { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-outline:hover { background: var(--surface-2); }
.btn-dark { background: var(--panel-ink); color: var(--cream-text); }
.btn-dark:hover { opacity: 0.88; }

/* header */
header.site {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(251,249,243,0.85);
	backdrop-filter: blur(8px);
	border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 16px 24px; max-width: var(--container); margin: 0 auto; }
.logo { font-family: var(--font); font-weight: 800; font-size: 18px; letter-spacing: -0.01em; text-transform: uppercase; }
.logo .dot { color: var(--primary); }
nav.main { display: flex; align-items: center; gap: 32px; }
nav.main ul { list-style: none; display: flex; gap: 32px; margin: 0; padding: 0; }
nav.main a { font-size: 14px; font-weight: 600; color: var(--muted); }
nav.main a:hover { color: var(--ink); }
.header-cta { display: flex; align-items: center; }

/* hero */
.hero { padding: 40px 0 0; }
.hero-panel { border: 1px solid var(--line); border-radius: var(--radius-2xl); background: var(--panel); padding: 32px; }
.hero h1 { font-size: clamp(34px, 5.4vw, 56px); margin: 0 0 16px; }
.hero-sub { font-size: 15px; color: var(--muted); max-width: 520px; margin-bottom: 24px; line-height: 1.6; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.stat-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 40px; }
.stat-card { border: 1px solid var(--line); border-radius: var(--radius-2xl); background: var(--panel); padding: 20px; display: flex; align-items: center; justify-content: space-between; min-height: 106px; }
.stat-card.dark { background: var(--panel-ink); border-color: var(--panel-ink); color: var(--cream-text); }
.stat-card .num { font-family: var(--font); font-weight: 800; font-size: 32px; line-height: 1; text-transform: none; }
.stat-card .label { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); max-width: 110px; margin-top: 6px; }
.stat-card.dark .label { color: rgba(247,245,239,0.55); }
.stat-thumb { width: 40px; height: 40px; border-radius: 999px; background-size: cover; background-position: center; }

/* photo band */
.photo-band { position: relative; margin-top: 12px; border-radius: var(--radius-3xl); overflow: hidden; border: 1px solid var(--line); height: 460px; }
.photo-band img { width: 100%; height: 100%; object-fit: cover; }
.photo-band::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(30,24,20,0) 45%, rgba(30,24,20,0.6) 100%); }
.photo-caption { position: absolute; left: 20px; right: 20px; bottom: 20px; z-index: 2; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-2xl); padding: 18px 22px; max-width: 420px; }
.photo-caption .label { font-weight: 700; color: var(--ink); margin-bottom: 4px; text-transform: uppercase; font-size: 12px; letter-spacing: 0.06em; }
.photo-caption p.body { font-size: 14px; color: var(--muted); }

/* sections */
section.block { padding: 72px 0; }
section.on-tint { background: var(--surface-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 32px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(24px, 2.6vw, 36px); }
.section-head .lead { color: var(--muted); font-size: 14px; padding-bottom: 4px; }
.link-arrow { font-weight: 700; color: var(--primary); font-size: 14px; }
.link-arrow:hover { text-decoration: underline; }

/* about panel */
.about-panel { border: 1px solid var(--line); border-radius: var(--radius-2xl); background: var(--panel); padding: 32px; max-width: 720px; }
.about-panel h2 { font-size: clamp(26px, 3vw, 38px); margin: 0 0 18px; }
.about-panel p { color: var(--muted); font-size: 15px; margin-bottom: 14px; line-height: 1.6; }

/* format tiles */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.format-tile { border-radius: var(--radius-2xl); padding: 24px; display: flex; flex-direction: column; justify-content: space-between; min-height: 200px; border: 1px solid var(--line); background: var(--panel); }
.format-tile.dark { background: var(--panel-ink); color: var(--cream-text); border-color: var(--panel-ink); }
.format-tile .tag { font-size: 10.5px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.format-tile.dark .tag { color: rgba(247,245,239,0.55); }
.format-tile h3 { font-size: 19px; text-transform: uppercase; margin-bottom: 8px; }
.format-tile p.desc { font-size: 13.5px; color: var(--muted); text-transform: none; font-weight: 400; margin-bottom: 18px; line-height: 1.5; }
.format-tile.dark p.desc { color: rgba(247,245,239,0.7); }
.format-tile .foot { display: flex; align-items: center; justify-content: space-between; font-size: 13px; font-weight: 700; }
.format-tile .foot .count { color: var(--muted); font-weight: 500; }
.format-tile.dark .foot .count { color: rgba(247,245,239,0.6); }
.format-tile .foot .go { color: var(--primary); }
.format-tile.dark .foot .go { color: #ff8a3d; }

/* CTA bands */
.cta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cta-band { border-radius: var(--radius-2xl); padding: 40px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.cta-band.dark { background: var(--panel-ink); color: var(--cream-text); }
.cta-band.light { background: var(--panel); border: 1px solid var(--line); }
.cta-band h2 { font-size: clamp(22px, 2.4vw, 30px); }
.cta-band p { max-width: 360px; font-size: 14.5px; }
.cta-band.dark p { color: rgba(247,245,239,0.72); }
.cta-band.light p { color: var(--muted); }

/* single billboard */
.single-billboard-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 24px; align-items: start; }
.single-billboard-gallery { border-radius: var(--radius-2xl); overflow: hidden; border: 1px solid var(--line); }
.single-billboard-panel { border: 1px solid var(--line); border-radius: var(--radius-2xl); background: var(--panel); padding: 24px; position: sticky; top: 90px; }
.single-billboard-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 20px 0; }
.single-billboard-specs .spec-label { font-size: 11px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); margin-bottom: 3px; }
.single-billboard-specs .spec-value { font-weight: 700; font-size: 16px; }

/* footer */
footer.site { border-top: 1px solid var(--line); padding: 32px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.footer-links a { font-size: 13.5px; font-weight: 600; color: var(--muted); }
.footer-links a:hover { color: var(--primary); }
.footer-note { font-size: 12.5px; color: var(--muted); max-width: 300px; text-align: right; }

@media (max-width: 980px) {
	.grid-4, .cta-grid, .single-billboard-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
	nav.main { display: none; }
	.hero-panel { padding: 24px; }
	.grid-4, .cta-grid, .stat-row, .single-billboard-grid { grid-template-columns: 1fr; }
	.about-panel { padding: 24px; }
	.footer-note { text-align: left; }
}
