/*
Theme Name: PhotoSport 2026
Theme URI: https://photosport.co.za/
Author: Chris Hitchcock
Author URI: https://chrishitchcock.co.za/
Description: A standalone, image-led landing theme for a sports and event photography business. One stylesheet, one self-hosted font, no parent theme and no build step. Landing copy and images are editable in the Customizer.
Version: 1.3.1
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: photosport
Tags: photography, one-column, custom-logo, custom-menu, featured-images, full-width-template
*/

@font-face {
	font-family: 'Archivo';
	font-style: normal;
	font-weight: 400 900;
	font-display: swap;
	src: url('assets/fonts/archivo-latin.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* -------------------------------------------------------------------------
 * Tokens
 * ---------------------------------------------------------------------- */
:root {
	--ink: #0b0d10;
	--ink-soft: #1b1f24;
	--muted: #5d6672;
	--line: #e5e8ec;
	--paper: #ffffff;
	--soft: #f5f6f8;
	--brand: #1aa6de;
	--brand-deep: #0b7fae;
	--brand-cta: #0a7196;
	--radius: 14px;
	--radius-sm: 10px;
	--gutter: clamp(20px, 4vw, 40px);
	--container: 1200px;
	--ease: cubic-bezier(.2, .7, .2, 1);
}

/* -------------------------------------------------------------------------
 * Reset and base
 * ---------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: 90px;
}

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: 'Archivo', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
	font-size: 1rem;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

img { display: block; max-width: 100%; height: auto; }

a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand-deep); }

:focus-visible {
	outline: 2px solid var(--brand);
	outline-offset: 3px;
	border-radius: 4px;
}

h1, h2, h3, h4 {
	margin: 0;
	line-height: 1.05;
	letter-spacing: -.02em;
	font-weight: 800;
	text-wrap: balance;
}

p { margin: 0; }

.skip-link {
	position: absolute;
	left: -9999px;
	top: 10px;
	z-index: 200;
	background: var(--ink);
	color: #fff;
	padding: 10px 16px;
	border-radius: 8px;
}
.skip-link:focus { left: 16px; color: #fff; }

.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;
}

.custom-logo-link { display: inline-flex; align-items: center; }

.container {
	width: 100%;
	max-width: var(--container);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

/* -------------------------------------------------------------------------
 * Buttons and labels
 * ---------------------------------------------------------------------- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .55em;
	padding: 14px 24px;
	border-radius: 999px;
	border: 1px solid transparent;
	font-size: .95rem;
	font-weight: 600;
	letter-spacing: .01em;
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.btn:hover { transform: translateY(-1px); color: var(--ink); }

.btn-primary { background: var(--brand-cta); color: #fff; }
.btn-primary:hover { background: #096a8d; color: #fff; }

.btn-ghost {
	background: transparent;
	border-color: rgba(255, 255, 255, .45);
	color: #fff;
}
.btn-ghost:hover { background: #fff; border-color: #fff; color: var(--ink); }

.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--brand-deep); color: #fff; }

.label {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: .72rem;
	font-weight: 700;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--muted);
}
.label::before {
	content: "";
	width: 28px;
	height: 2px;
	background: var(--brand);
	border-radius: 2px;
}

/* -------------------------------------------------------------------------
 * Header
 * ---------------------------------------------------------------------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(255, 255, 255, .9);
	backdrop-filter: saturate(140%) blur(12px);
	-webkit-backdrop-filter: saturate(140%) blur(12px);
	border-bottom: 1px solid transparent;
	transition: border-color .25s var(--ease);
}
.site-header.is-stuck { border-bottom-color: var(--line); }

.site-header .inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	height: 74px;
}

.brand { display: inline-flex; align-items: center; }
.brand img,
.custom-logo {
	height: 38px;
	width: auto;
	max-width: none;
}
.brand-name {
	font-size: 1.25rem;
	font-weight: 900;
	letter-spacing: -.03em;
	text-decoration: none;
}

.nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 32px); }
.nav ul {
	display: flex;
	align-items: center;
	gap: clamp(18px, 2.4vw, 30px);
	list-style: none;
	margin: 0;
	padding: 0;
}
.nav a:not(.btn) {
	font-size: .9rem;
	font-weight: 500;
	color: var(--ink);
	text-decoration: none;
	transition: color .18s var(--ease);
}
.nav a:not(.btn):hover { color: var(--brand-deep); }
.nav .btn { padding: 11px 20px; font-size: .88rem; }

.nav-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: #fff;
	cursor: pointer;
	padding: 0;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
	display: block;
	width: 18px;
	height: 2px;
	background: var(--ink);
	border-radius: 2px;
	transition: transform .2s var(--ease), opacity .2s var(--ease);
}
.nav-toggle span { position: relative; }
.nav-toggle span::before,
.nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

/* -------------------------------------------------------------------------
 * Hero
 * ---------------------------------------------------------------------- */
.hero {
	position: relative;
	isolation: isolate;
	display: flex;
	align-items: flex-end;
	min-height: min(82vh, 780px);
	color: #fff;
	overflow: hidden;
	background: var(--ink);
}
.hero-media,
.hero-media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}
/* Painted behind the hero content and never clickable: an absolutely
   positioned layer otherwise sits above the buttons and eats the clicks. */
.hero-media {
	z-index: -2;
	pointer-events: none;
}
.hero-media img { object-fit: cover; object-position: 52% 42%; }
.hero::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	background:
		linear-gradient(90deg, rgba(7, 9, 12, .88) 0%, rgba(7, 9, 12, .62) 40%, rgba(7, 9, 12, .12) 72%, rgba(7, 9, 12, 0) 100%),
		linear-gradient(0deg, rgba(7, 9, 12, .62) 0%, rgba(7, 9, 12, 0) 52%);
}
.hero-inner {
	width: 100%;
	max-width: 760px;
	padding-top: clamp(64px, 9vw, 110px);
	padding-bottom: clamp(52px, 7vw, 88px);
}
.hero .label { color: rgba(255, 255, 255, .78); }
.hero h1 {
	font-size: clamp(2.6rem, 6.2vw, 4.9rem);
	line-height: .98;
	letter-spacing: -.035em;
	font-weight: 800;
	margin: .22em 0 .32em;
}
.hero .lede {
	max-width: 34em;
	font-size: clamp(1rem, 1.35vw, 1.16rem);
	line-height: 1.6;
	color: rgba(255, 255, 255, .82);
}
.hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: clamp(26px, 3.4vw, 38px);
}

/* -------------------------------------------------------------------------
 * Sections
 * ---------------------------------------------------------------------- */
.section { padding: clamp(56px, 6.8vw, 96px) 0; }
.section--soft { background: var(--soft); }
.section--tight { padding-top: clamp(44px, 5vw, 64px); }

.section-head {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: clamp(28px, 3.6vw, 44px);
}
.section-head h2 {
	font-size: clamp(1.75rem, 3.4vw, 2.7rem);
	letter-spacing: -.03em;
}
.section-head .more {
	font-size: .9rem;
	font-weight: 600;
	color: var(--ink);
	text-decoration: none;
	white-space: nowrap;
}
.section-head .more:hover { color: var(--brand-deep); }

/* Intro */
.intro-grid {
	display: grid;
	grid-template-columns: minmax(140px, .34fr) minmax(0, 1fr);
	gap: clamp(24px, 5vw, 72px);
	align-items: start;
}
.intro-copy {
	font-size: clamp(1.2rem, 2.35vw, 1.85rem);
	line-height: 1.38;
	font-weight: 500;
	letter-spacing: -.015em;
	max-width: 26em;
}
.intro-copy p + p { margin-top: 1em; }
.intro-copy a { color: var(--brand-deep); text-decoration-color: rgba(11, 127, 174, .35); }
.intro-copy a:hover { text-decoration-color: currentColor; }

/* Work cards */
.cards {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: clamp(12px, 1.5vw, 20px);
}
.card {
	position: relative;
	margin: 0;
	overflow: hidden;
	border-radius: var(--radius);
	background: var(--ink);
	isolation: isolate;
}
.card img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	transition: transform .7s var(--ease);
}
.card:hover img { transform: scale(1.045); }
.card::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(0deg, rgba(5, 7, 10, .93) 0%, rgba(5, 7, 10, .6) 38%, rgba(5, 7, 10, .08) 72%, rgba(5, 7, 10, 0) 100%);
}
.card figcaption {
	position: absolute;
	inset: auto 0 0 0;
	z-index: 1;
	padding: 20px 18px 18px;
	color: #fff;
	text-shadow: 0 1px 10px rgba(0, 0, 0, .45);
}
.card h3 { font-size: 1.02rem; font-weight: 700; letter-spacing: -.01em; }
.card p { margin-top: 4px; font-size: .84rem; line-height: 1.45; color: rgba(255, 255, 255, .88); }

/* Steps */
.steps {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(20px, 3vw, 44px);
	counter-reset: step;
}
.step {
	position: relative;
	padding-top: 28px;
	border-top: 1px solid var(--line);
}
.step .num {
	display: block;
	margin-bottom: 14px;
	font-size: .78rem;
	font-weight: 700;
	letter-spacing: .16em;
	color: var(--brand-deep);
}
.step h3 { font-size: 1.22rem; letter-spacing: -.02em; }
.step p { margin-top: 8px; color: var(--muted); font-size: .96rem; max-width: 30ch; }

/* Organiser band */
.organiser {
	background: var(--ink);
	color: #fff;
}
.organiser .wrap {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
	gap: clamp(28px, 4vw, 64px);
	align-items: center;
}
.organiser h2 {
	font-size: clamp(1.9rem, 4vw, 3.1rem);
	letter-spacing: -.03em;
	margin-bottom: .45em;
}
.organiser p { color: rgba(255, 255, 255, .76); max-width: 38ch; }
.organiser .label { color: rgba(255, 255, 255, .68); }
.organiser .actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: center;
	margin-top: 22px;
}
.organiser-card {
	border: 1px solid rgba(255, 255, 255, .14);
	background: rgba(255, 255, 255, .05);
	border-radius: var(--radius);
	padding: clamp(22px, 3vw, 34px);
}
.organiser-card .label { margin-bottom: 16px; }
.organiser-card .direct {
	font-size: 1.05rem;
	line-height: 1.9;
	color: rgba(255, 255, 255, .85);
}
.organiser-card .direct a { color: #fff; font-weight: 600; text-decoration: none; }
.organiser-card .direct a:hover { color: var(--brand); }

/* -------------------------------------------------------------------------
 * Footer
 * ---------------------------------------------------------------------- */
.site-footer {
	background: var(--soft);
	border-top: 1px solid var(--line);
	padding: clamp(48px, 6vw, 72px) 0 28px;
}
.footer-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, .9fr);
	gap: clamp(28px, 4vw, 60px);
}
.footer-brand .brand img { height: 40px; }
.footer-brand p {
	margin-top: 16px;
	max-width: 30ch;
	color: var(--muted);
	font-size: .95rem;
}
.footer-col h3 {
	font-size: .74rem;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--muted);
	margin-bottom: 14px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer-col a { font-size: .95rem; text-decoration: none; color: var(--ink); }
.footer-col a:hover { color: var(--brand-deep); }

.footer-bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: clamp(36px, 5vw, 56px);
	padding-top: 22px;
	border-top: 1px solid var(--line);
	font-size: .84rem;
	color: var(--muted);
}
.footer-bottom .legal { display: flex; gap: 18px; }
.footer-bottom a { color: var(--muted); text-decoration: none; }
.footer-bottom a:hover { color: var(--ink); }

/* -------------------------------------------------------------------------
 * Inner pages
 * ---------------------------------------------------------------------- */
.page-hero {
	position: relative;
	overflow: hidden;
	background: var(--ink);
	color: #fff;
	padding: clamp(64px, 8vw, 104px) 0 clamp(44px, 5vw, 64px);
}
.page-hero::after {
	content: "";
	position: absolute;
	right: clamp(-90px, -5vw, 0px);
	top: 50%;
	width: min(46vw, 520px);
	aspect-ratio: 1;
	transform: translateY(-50%);
	background: url('assets/aperture.png') center / contain no-repeat;
	opacity: .12;
	pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero .label { color: rgba(255, 255, 255, .66); }
.page-hero h1 {
	margin-top: .26em;
	font-size: clamp(2.2rem, 5vw, 3.8rem);
	letter-spacing: -.035em;
}
.page-hero .page-lede {
	margin-top: 16px;
	max-width: 52ch;
	color: rgba(255, 255, 255, .72);
}

.page-body { padding: clamp(44px, 6vw, 80px) 0 clamp(52px, 7vw, 90px); }

.prose {
	max-width: 760px;
	font-size: 1.03rem;
	line-height: 1.75;
	color: var(--ink-soft);
}
.prose > * + * { margin-top: 1.1em; }
.prose h2 {
	margin-top: 1.9em;
	font-size: clamp(1.3rem, 2.3vw, 1.65rem);
	letter-spacing: -.02em;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.6em; font-size: 1.15rem; }
.prose a { color: var(--brand-deep); }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose li + li { margin-top: .45em; }
.prose blockquote {
	margin: 1.6em 0;
	padding-left: 20px;
	border-left: 3px solid var(--brand);
	color: var(--muted);
	font-size: 1.1rem;
}
.prose img { border-radius: var(--radius-sm); }
.prose .has-text-align-center { text-align: center; }
.prose strong { color: var(--ink); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }

/* Closing call to action on inner pages */
.cta-band {
	background: var(--soft);
	border-top: 1px solid var(--line);
	padding: clamp(40px, 5vw, 68px) 0;
}
.cta-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: clamp(24px, 4vw, 56px);
	flex-wrap: wrap;
}
.cta-band h2 {
	margin-top: .3em;
	font-size: clamp(1.55rem, 3vw, 2.25rem);
	letter-spacing: -.03em;
}
.cta-band p { margin-top: 8px; max-width: 46ch; color: var(--muted); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.btn-ghost-dark {
	background: transparent;
	border-color: rgba(11, 13, 16, .22);
	color: var(--ink);
}
.btn-ghost-dark:hover { background: var(--ink); border-color: var(--ink); color: #fff; }

/* 404 */
.error-page { padding: clamp(72px, 12vw, 160px) 0; text-align: center; }
.error-page h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
.error-page p { margin: 18px auto 28px; color: var(--muted); max-width: 40ch; }

/* -------------------------------------------------------------------------
 * Responsive
 * ---------------------------------------------------------------------- */
@media (max-width: 1024px) {
	.cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.organiser .wrap { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 860px) {
	.nav-toggle { display: inline-flex; }
	.nav {
		position: absolute;
		top: 74px;
		left: 0;
		right: 0;
		display: none;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		padding: 10px var(--gutter) 22px;
		background: #fff;
		border-bottom: 1px solid var(--line);
		box-shadow: 0 24px 40px -28px rgba(7, 9, 12, .35);
	}
	.nav-open .nav { display: flex; }
	.nav ul {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
	}
	.nav ul li { border-bottom: 1px solid var(--line); }
	.nav a:not(.btn) { display: block; padding: 14px 2px; font-size: 1rem; }
	.nav .btn { margin-top: 16px; justify-content: center; }

	.hero { min-height: 74vh; }
	.hero-inner { max-width: none; }
	.intro-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
	.steps { grid-template-columns: minmax(0, 1fr); gap: 8px; }
	.step { padding-top: 22px; }
	.footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
	.footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
	.cards { grid-template-columns: minmax(0, 1fr); }
	.card img { aspect-ratio: 3 / 2; }
	.section-head { flex-direction: column; align-items: start; gap: 10px; }
	.hero { min-height: 78vh; }
	.hero-actions .btn { width: 100%; }
	.footer-grid { grid-template-columns: minmax(0, 1fr); }
	.footer-bottom { flex-direction: column; align-items: start; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after {
		transition-duration: .001ms !important;
		animation-duration: .001ms !important;
	}
	.card:hover img, .btn:hover { transform: none; }
}
