/* ==========================================================================
   King Williams Photography — Theme Styles
   Design tokens
   ========================================================================== */

:root {
	--bg-black: #0a0a0b;
	--bg-charcoal: #2c2c2f;
	--bg-charcoal-light: #38383c;
	--bg-gradient: linear-gradient(165deg, #08080a 0%, #1b1b1d 45%, #333336 100%);
	--white: #f5f5f2;
	--muted: #aeaeb2;
	--muted-dim: #7d7d82;
	--gold: #c9a24b;
	--gold-soft: rgba(201, 162, 75, 0.16);
	--line: rgba(245, 245, 242, 0.14);
	--radius: 2px;
	--font-display: 'Oswald', 'Arial Narrow', sans-serif;
	--font-body: 'Work Sans', -apple-system, BlinkMacSystemFont, sans-serif;
	--shadow-signature: 3px 3px 0 rgba(0, 0, 0, 0.55);
	--container: 1180px;
}

/* ==========================================================================
   Reset & base
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--bg-gradient);
	background-attachment: fixed;
	color: var(--white);
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

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

a { color: var(--white); text-decoration: none; }

h1, h2, h3, h4 {
	font-family: var(--font-display);
	text-transform: uppercase;
	letter-spacing: 0.02em;
	line-height: 1.05;
	margin: 0 0 0.5em;
	font-weight: 600;
}

p { margin: 0 0 1em; color: var(--muted); }

.screen-reader-text {
	position: absolute;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

.skip-link {
	position: absolute;
	top: -60px;
	left: 0;
	background: var(--gold);
	color: var(--bg-black);
	padding: 10px 18px;
	z-index: 1000;
	transition: top 0.2s ease;
}
.skip-link:focus {
	top: 0;
	width: auto;
	height: auto;
	clip: auto;
}

:focus-visible {
	outline: 2px solid var(--gold);
	outline-offset: 3px;
}

.eyebrow {
	font-family: var(--font-display);
	text-transform: uppercase;
	letter-spacing: 0.28em;
	font-size: 0.78rem;
	color: var(--gold);
	margin: 0 0 0.9em;
}

/* Signature treatment: hard drop-shadow lettering, echoing the KW mark */
.hero__title,
.services__header h2,
.page-hero h1 {
	text-shadow: var(--shadow-signature);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
	display: inline-block;
	font-family: var(--font-display);
	text-transform: uppercase;
	letter-spacing: 0.12em;
	font-size: 0.9rem;
	padding: 16px 34px;
	border: 1px solid var(--white);
	border-radius: var(--radius);
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.btn--primary {
	background: var(--white);
	color: var(--bg-black);
}
.btn--primary:hover {
	background: var(--gold);
	border-color: var(--gold);
	color: var(--bg-black);
	transform: translateY(-2px);
}

.btn--outline {
	background: transparent;
	color: var(--white);
	border-color: var(--gold);
}
.btn--outline:hover {
	background: var(--gold-soft);
	transform: translateY(-2px);
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(8, 8, 9, 0.85);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--line);
}

.site-header__inner {
	max-width: var(--container);
	margin: 0 auto;
	padding: 14px 24px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

.site-logo { display: flex; align-items: center; }
.site-logo img,
.site-logo__img {
	height: 52px;
	width: auto;
}
.custom-logo-link img { height: 52px; width: auto; }

.primary-nav {
	display: flex;
	align-items: center;
	gap: 32px;
}

.primary-menu {
	list-style: none;
	display: flex;
	gap: 30px;
	margin: 0;
	padding: 0;
}

.primary-menu a {
	font-family: var(--font-display);
	text-transform: uppercase;
	font-size: 0.9rem;
	letter-spacing: 0.08em;
	color: var(--muted);
	transition: color 0.2s ease;
	position: relative;
	padding-bottom: 4px;
}
.primary-menu a:hover,
.primary-menu li.current-menu-item a {
	color: var(--white);
}
.primary-menu a::after {
	content: '';
	position: absolute;
	left: 0; bottom: 0;
	width: 0; height: 1px;
	background: var(--gold);
	transition: width 0.2s ease;
}
.primary-menu a:hover::after { width: 100%; }

.nav-cta {
	font-family: var(--font-display);
	text-transform: uppercase;
	letter-spacing: 0.1em;
	font-size: 0.82rem;
	border: 1px solid var(--gold);
	padding: 10px 20px;
	color: var(--white);
	white-space: nowrap;
	transition: background-color 0.2s ease;
}
.nav-cta:hover { background: var(--gold-soft); }

.menu-toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	background: none;
	border: none;
	cursor: pointer;
	padding: 8px;
}
.menu-toggle span {
	width: 24px;
	height: 2px;
	background: var(--white);
	transition: transform 0.2s ease, opacity 0.2s ease;
}
.menu-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.is-active span:nth-child(2) { opacity: 0; }
.menu-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   Hero (Home)
   ========================================================================== */

.hero {
	padding: 130px 24px 110px;
	text-align: center;
	border-bottom: 1px solid var(--line);
	background:
		radial-gradient(ellipse at 50% 0%, rgba(201, 162, 75, 0.09), transparent 60%);
}

.hero__inner { max-width: 760px; margin: 0 auto; }

.hero__title {
	font-size: clamp(2.6rem, 6vw, 4.6rem);
	display: flex;
	flex-direction: column;
}
.hero__title-shadow {
	font-size: 0.34em;
	letter-spacing: 0.35em;
	color: var(--gold);
	text-shadow: none;
	margin-top: 0.4em;
}

.hero__subtitle {
	font-size: 1.15rem;
	color: var(--muted);
	max-width: 560px;
	margin: 22px auto 38px;
}

/* ==========================================================================
   Services (Home) — Portraits / Sports / Weddings / Events
   ========================================================================== */

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

.services__header {
	text-align: center;
	max-width: 560px;
	margin: 0 auto 50px;
}
.services__header h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); }

.services__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 18px;
}

.service-card {
	position: relative;
	display: block;
	aspect-ratio: 3 / 4;
	overflow: hidden;
	border-radius: var(--radius);
	border: 1px solid var(--line);
}

.service-card__image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.service-card__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(8,8,9,0.05) 0%, rgba(8,8,9,0.55) 55%, rgba(8,8,9,0.95) 100%);
	transition: background 0.3s ease;
}

.service-card__content {
	position: absolute;
	left: 0; right: 0; bottom: 0;
	padding: 22px;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.service-card__eyebrow {
	font-family: var(--font-display);
	color: var(--gold);
	font-size: 0.78rem;
	letter-spacing: 0.2em;
}

.service-card__label {
	font-family: var(--font-display);
	text-transform: uppercase;
	font-size: 1.5rem;
	letter-spacing: 0.03em;
	color: var(--white);
	margin: 0;
	text-shadow: none;
}

.service-card__desc {
	color: var(--muted);
	font-size: 0.88rem;
	max-height: 0;
	opacity: 0;
	overflow: hidden;
	transition: max-height 0.3s ease, opacity 0.3s ease, margin 0.3s ease;
}

.service-card__link {
	font-family: var(--font-display);
	font-size: 0.82rem;
	letter-spacing: 0.08em;
	color: var(--gold);
	text-transform: uppercase;
	margin-top: 6px;
}

.service-card:hover .service-card__image { transform: scale(1.06); }
.service-card:hover .service-card__desc {
	max-height: 80px;
	opacity: 1;
	margin-top: 4px;
}

/* ==========================================================================
   CTA band (Home)
   ========================================================================== */

.cta-band {
	border-top: 1px solid var(--line);
	background: rgba(0,0,0,0.25);
	padding: 90px 24px;
	text-align: center;
}
.cta-band__inner { max-width: 560px; margin: 0 auto; }
.cta-band h2 { font-size: clamp(1.8rem, 3.4vw, 2.4rem); }
.cta-band p { margin-bottom: 34px; }

/* ==========================================================================
   Generic page hero (About / Book a Shoot / default pages)
   ========================================================================== */

.page-hero {
	padding: 110px 24px 60px;
	text-align: center;
	border-bottom: 1px solid var(--line);
}
.page-hero__inner { max-width: 640px; margin: 0 auto; }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); }
.page-hero__subtitle { color: var(--muted); font-size: 1.05rem; margin-top: 14px; }

/* ==========================================================================
   About page
   ========================================================================== */

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

.about__inner {
	display: grid;
	grid-template-columns: 1.1fr 0.9fr;
	gap: 60px;
	align-items: center;
}

.about__photo {
	position: relative;
	aspect-ratio: 4 / 5;
	overflow: hidden;
	border-radius: var(--radius);
	border: 1px solid var(--line);
}

.about__photo img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.about__content p {
	font-size: 1.08rem;
	color: var(--muted);
}
.about__content a { color: var(--gold); border-bottom: 1px solid var(--gold); }
.about__content a:hover { color: var(--white); border-color: var(--white); }
.about__content .btn { margin-top: 10px; }

/* ==========================================================================
   Galleries page (SmugMug embed)
   ========================================================================== */

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

.galleries__inner { display: flex; flex-direction: column; align-items: center; gap: 30px; }

.gallery-tabs {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	width: 100%;
}

.gallery-tab {
	font-family: var(--font-display);
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-size: 0.85rem;
	color: var(--muted);
	background: transparent;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 12px 24px;
	cursor: pointer;
	transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.gallery-tab:hover { color: var(--white); border-color: var(--gold); }
.gallery-tab.is-active {
	color: var(--bg-black);
	background: var(--gold);
	border-color: var(--gold);
}

.gallery-panels { width: 100%; }
.gallery-panel { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 24px; }
.gallery-panel[hidden] { display: none; }

.galleries-embed {
	width: 100%;
	background: var(--white);
	border-radius: var(--radius);
	border: 1px solid var(--line);
	padding: 18px;
	overflow: hidden;
}

.galleries-embed iframe {
	width: 100% !important;
	border: 0;
	display: block;
}

.galleries-embed--fallback {
	background: rgba(255, 255, 255, 0.04);
	padding: 50px 24px;
	text-align: center;
}
.galleries-embed--fallback p { margin: 0; color: var(--muted); }

.galleries-cta { text-align: center; }

/* ==========================================================================
   Booking page / form
   ========================================================================== */

.booking {
	max-width: 720px;
	margin: 0 auto;
	padding: 60px 24px 120px;
}

.form-notice {
	padding: 16px 20px;
	border-radius: var(--radius);
	margin-bottom: 30px;
	font-size: 0.95rem;
}
.form-notice--success {
	background: rgba(122, 201, 129, 0.12);
	border: 1px solid rgba(122, 201, 129, 0.4);
	color: #b9e6bd;
}
.form-notice--error {
	background: rgba(224, 108, 108, 0.12);
	border: 1px solid rgba(224, 108, 108, 0.45);
	color: #f0b3b3;
}

.booking-form {
	display: flex;
	flex-direction: column;
	gap: 22px;
}

.form-row { display: flex; flex-direction: column; gap: 8px; }
.form-row--split {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 22px;
}
.form-row--split > div { display: flex; flex-direction: column; gap: 8px; }

.booking-form label {
	font-family: var(--font-display);
	text-transform: uppercase;
	font-size: 0.78rem;
	letter-spacing: 0.1em;
	color: var(--muted);
}

.booking-form input,
.booking-form select,
.booking-form textarea {
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	color: var(--white);
	font-family: var(--font-body);
	font-size: 1rem;
	padding: 13px 15px;
	width: 100%;
}
.booking-form input:focus,
.booking-form select:focus,
.booking-form textarea:focus {
	outline: none;
	border-color: var(--gold);
	background: rgba(255, 255, 255, 0.06);
}

.booking-form select {
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%23aeaeb2' stroke-width='1.6' fill='none'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 15px center;
}

.booking-form button.btn { align-self: flex-start; border: none; cursor: pointer; }

.kw-hp-field {
	position: absolute;
	left: -9999px;
	top: -9999px;
}

/* ==========================================================================
   Generic content (default page.php / index.php)
   ========================================================================== */

.generic-content {
	max-width: 760px;
	margin: 0 auto;
	padding: 60px 24px 110px;
}
.generic-content article { margin-bottom: 50px; border-bottom: 1px solid var(--line); padding-bottom: 40px; }
.generic-content h2 a { color: var(--white); }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
	border-top: 1px solid var(--line);
	background: rgba(0,0,0,0.35);
}

.site-footer__inner {
	max-width: var(--container);
	margin: 0 auto;
	padding: 60px 24px 40px;
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr;
	gap: 40px;
}

.site-footer__logo { height: 44px; width: auto; margin-bottom: 14px; }
.site-footer__brand p { max-width: 280px; font-size: 0.92rem; }

.footer-menu {
	list-style: none;
	margin: 0; padding: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.footer-menu a {
	color: var(--muted);
	font-size: 0.95rem;
	transition: color 0.2s ease;
}
.footer-menu a:hover { color: var(--gold); }

.footer-widget-title {
	font-family: var(--font-display);
	text-transform: uppercase;
	font-size: 0.85rem;
	letter-spacing: 0.1em;
	color: var(--muted);
	margin-bottom: 12px;
}

.site-footer__bottom {
	border-top: 1px solid var(--line);
	padding: 22px 24px;
	text-align: center;
}
.site-footer__bottom p {
	margin: 0;
	font-size: 0.82rem;
	color: var(--muted-dim);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 900px) {
	.services__grid { grid-template-columns: repeat(2, 1fr); }
	.about__inner { grid-template-columns: 1fr; gap: 34px; }
	.site-footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
	.menu-toggle { display: flex; }

	.primary-nav {
		position: fixed;
		top: 82px;
		left: 0; right: 0;
		bottom: 0;
		background: var(--bg-black);
		flex-direction: column;
		align-items: flex-start;
		padding: 30px 24px;
		gap: 26px;
		transform: translateX(100%);
		transition: transform 0.25s ease;
		overflow-y: auto;
	}
	.primary-nav.is-open { transform: translateX(0); }

	.primary-menu {
		flex-direction: column;
		gap: 20px;
		width: 100%;
	}
	.primary-menu a { font-size: 1.2rem; }

	.form-row--split { grid-template-columns: 1fr; }
	.site-footer__inner { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
	.services__grid { grid-template-columns: 1fr; }
	.hero { padding: 100px 20px 80px; }
}
