/*
Theme Name: Luke Sparrow — Independent Advice
Theme URI: https://www.lukesparrow.com/
Author: RichardsDee
Author URI: https://www.richardsdee.com/
Description: Single-page, fixed-content custom theme based on the September 2026 website design.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: Proprietary
Text Domain: luke-sparrow
*/

/* ==========================================================================
   Font (self-hosted Inter, SIL Open Font License — see assets/fonts/OFL.txt)
   ========================================================================== */

@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("assets/fonts/inter-var.woff2") format("woff2-variations"), url("assets/fonts/inter-var.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ==========================================================================
   Base
   ========================================================================== */

:root {
	--navy: #1f2e44;
	--cyan: #04b9ed;
	--cyan-strong: #05b5ff;
	--cyan-dark: #008cbd;
	--pale: #b6eafb;
	--grey: #f8f9f9;
	--white: #fff;
	--error: #b42318;
	--max: 1440px;
	--gutter: 50px;
	--heading: "Inter", Arial, Helvetica, sans-serif;
}

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

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	color: var(--navy);
	font: 400 16px/1.55 Arial, Helvetica, sans-serif;
	background: var(--white);
}

a {
	color: inherit;
}

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

button,
input,
textarea {
	font: inherit;
}

button {
	cursor: pointer;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
.logo-carousel:focus-visible {
	outline: 3px solid #0c8eb6;
	outline-offset: 4px;
}

.wrap {
	width: min(calc(100% - var(--gutter) * 2), var(--max));
	margin: 0 auto;
}

/* Visually hidden until focused (skip link). */
.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.screen-reader-text:focus {
	top: 12px;
	left: 12px;
	z-index: 100000;
	width: auto;
	height: auto;
	margin: 0;
	padding: 12px 20px;
	clip: auto;
	clip-path: none;
	background: var(--white);
	color: var(--navy);
	font-weight: 700;
	text-decoration: none;
	box-shadow: 0 4px 16px rgba(31, 46, 68, 0.25);
}

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

.site-header {
	position: relative;
	z-index: 10;
}

.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 30px;
	padding: 22px 0;
}

.site-logo {
	display: block;
	flex: 0 0 auto;
}

.site-logo img {
	display: block;
	width: 220px;
	height: auto;
}

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

.nav a {
	text-decoration: none;
	text-transform: uppercase;
	font-weight: 800;
	letter-spacing: 0.12em;
	font-size: 11px;
}

.nav a:hover,
.nav a:focus-visible {
	color: var(--cyan-dark);
}

.menu-toggle {
	display: none;
	padding: 10px 0;
	border: 0;
	background: transparent;
	color: var(--navy);
	font-weight: 800;
	font-size: 13px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.menu-icon {
	margin-left: 6px;
	font-size: 18px;
	vertical-align: -1px;
}

/* ==========================================================================
   Sections and type
   ========================================================================== */

.section {
	padding: 110px 0;
}

.display,
.section-title,
.page-title {
	font-family: var(--heading);
	font-optical-sizing: auto;
	font-weight: 900;
	text-transform: uppercase;
	line-height: 0.9;
	margin: 0;
}

.display {
	font-size: 64px;
}

.display .blue {
	color: var(--cyan);
}

.section-title {
	font-size: clamp(42px, 5vw, 78px);
	margin-bottom: 60px;
}

/* Hero */

.hero {
	overflow: hidden;
	background: url("assets/hero-bg.webp") right top / 50% auto no-repeat;
}

.hero-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: start;
	gap: 20px;
	min-height: 560px;
}

.hero-copy {
	padding: 90px 0 80px;
}

.intro {
	max-width: 510px;
	margin: 35px 0 0;
	font-size: 20px;
	line-height: 1.35;
}

.bird-panel {
	position: relative;
	padding-bottom: 40px;
}

.bird {
	display: block;
	width: 100%;
	max-width: 660px;
}

.dictionary {
	max-width: 360px;
	margin: -10px 0 0 4%;
	font-size: 12px;
	line-height: 1.55;
}

/* What we do / Our story: two text columns in two-thirds of the width */

#what-we-do {
	background: var(--grey);
}

.two-col {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	column-gap: 12%;
}

.two-col h3 {
	font-size: 21px;
	margin: 0 0 10px;
}

.two-col p {
	max-width: 540px;
	margin: 0 0 18px;
}

/* Client logos */

.client-logos {
	background: var(--cyan-strong);
}

.logo-carousel {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: calc((100% - 5rem) / 6);
	gap: 1rem;
	margin: 0;
	padding: 0 0 0.5rem;
	list-style: none;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}

.logo-carousel::-webkit-scrollbar {
	display: none;
}

.logo-carousel li {
	display: grid;
	place-items: center;
	min-height: 130px;
	scroll-snap-align: start;
}

.logo-carousel img {
	display: block;
	width: 100%;
	max-width: 200px;
	height: 120px;
	object-fit: contain;
}

.carousel-controls {
	display: flex;
	justify-content: flex-end;
	margin-top: 20px;
}

.carousel-toggle {
	padding: 8px 16px;
	border: 1px solid var(--navy);
	border-radius: 100px;
	background: transparent;
	color: var(--navy);
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.carousel-toggle:hover {
	background: var(--navy);
	color: var(--white);
}

.carousel-toggle[hidden] {
	display: none;
}

/* The Luke Sparrow difference */

.difference {
	position: relative;
	overflow: hidden;
	background: var(--navy) url("assets/story-bg.webp") right top / 50% auto no-repeat;
	color: var(--white);
}

.difference .section-title {
	max-width: 900px;
}

.difference .two-col {
	position: relative;
	z-index: 2;
}

.difference p {
	font-size: 15px;
}

.difference strong {
	color: var(--cyan);
}

.portrait {
	float: right;
	width: 180px;
	height: 180px;
	margin: -30px 8% 15px 30px;
	border-radius: 50%;
	object-fit: cover;
	object-position: 50% 10%;
	filter: grayscale(0.15);
}

/* Questions */

.questions {
	position: relative;
	overflow: hidden;
	background: var(--pale) url("assets/questions-bg.webp") right top / 50% auto no-repeat;
}

.questions .section-title {
	margin-bottom: 25px;
}

.lead {
	max-width: 600px;
	margin: 0 0 50px;
}

.cards {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 25px;
}

.card {
	padding: 35px 32px;
	border-radius: 8px;
	background: var(--white);
	box-shadow: 0 8px 25px #17517b0d;
}

.card h3 {
	font-size: 18px;
	line-height: 1.2;
	margin: 0 0 20px;
}

.card ul {
	margin: 0;
	padding-left: 18px;
}

.card li {
	margin: 0 0 16px;
	padding-left: 4px;
	line-height: 1.4;
}

.card li::marker {
	color: var(--cyan);
}

.closing {
	margin: 35px 0 0;
	font-weight: 700;
}

/* Contact */

.contact-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8%;
}

.contact .section-title {
	margin-bottom: 25px;
}

.contact-info {
	max-width: 550px;
}

.contact-info a {
	color: var(--navy);
}

.contact-info address {
	margin-top: 60px;
	font-style: normal;
}

.contact-form {
	position: relative;
	padding: 40px;
	border-radius: 12px;
	background: #f8f8f8;
}

.form-note,
.privacy-note {
	margin: 0 0 22px;
	font-size: 13px;
}

.privacy-note a {
	color: var(--navy);
}

.fields {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
}

.field {
	margin-bottom: 22px;
}

.field label {
	display: block;
	margin-bottom: 5px;
	font-size: 13px;
	font-weight: 700;
}

.field input,
.field textarea {
	display: block;
	width: 100%;
	padding: 10px 0;
	border: 0;
	border-bottom: 1px solid #aab1bb;
	border-radius: 0;
	background: transparent;
	color: var(--navy);
}

.field textarea {
	min-height: 110px;
	resize: vertical;
}

.field.has-error input,
.field.has-error textarea {
	border-bottom: 2px solid var(--error);
}

.field-error {
	margin: 6px 0 0;
	color: var(--error);
	font-size: 13px;
	font-weight: 700;
}

.submit {
	display: inline-block;
	padding: 13px 40px;
	border: 0;
	border-radius: 100px;
	background: var(--cyan);
	color: var(--white);
	font-weight: 800;
	text-decoration: none;
}

.submit:hover {
	background: var(--cyan-dark);
}

.form-status {
	margin: 0 0 20px;
	font-size: 14px;
	font-weight: 700;
}

.form-status[role="alert"] {
	color: var(--error);
}

.honeypot {
	position: absolute;
	left: -10000px;
}

/* Standard pages (privacy policy) and 404 */

.page-main {
	min-height: 55vh;
	padding: 60px 0 110px;
}

.page-title {
	font-size: clamp(36px, 5vw, 64px);
	margin-bottom: 40px;
}

.entry-content {
	max-width: 760px;
}

.entry-content a {
	color: var(--cyan-dark);
}

.entry-content a.submit {
	color: var(--white);
}

/* Footer */

.site-footer {
	padding: 30px 0;
	background: var(--navy);
	color: var(--white);
	font-size: 13px;
}

.site-footer .wrap {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 8px 20px;
}

/* ==========================================================================
   Tablet (up to 1000px)
   ========================================================================== */

@media (max-width: 1000px) {
	:root {
		--gutter: 30px;
	}

	.hero-grid {
		min-height: 0;
	}

	.hero-copy {
		padding-top: 65px;
	}

	.two-col {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		column-gap: 8%;
	}

	.cards {
		grid-template-columns: 1fr;
	}

	.contact-grid {
		gap: 35px;
	}

	.contact-info address {
		margin-top: 25px;
	}

	.contact-form {
		padding: 25px;
	}

	.fields {
		grid-template-columns: 1fr;
		gap: 0;
	}

	.logo-carousel {
		grid-auto-columns: calc((100% - 3rem) / 4);
	}
}

/* Hero stacks: headline first, sparrow underneath */
@media (max-width: 900px) {
	.hero {
		background-position: right bottom;
		background-size: min(90%, 620px) auto;
	}

	.hero-grid {
		grid-template-columns: 1fr;
		gap: 0;
	}

	.hero-copy {
		padding-bottom: 20px;
	}

	.bird-panel {
		max-width: 560px;
		margin-left: auto;
	}
}

/* ==========================================================================
   Mobile (up to 700px)
   ========================================================================== */

@media (max-width: 700px) {
	:root {
		--gutter: 18px;
	}

	.header-inner {
		padding: 16px 0;
	}

	.site-logo img {
		width: 150px;
	}

	.menu-toggle {
		display: block;
	}

	.nav {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		flex-direction: column;
		align-items: flex-start;
		gap: 0;
		padding: 10px var(--gutter) 20px;
		background: var(--white);
		box-shadow: 0 10px 20px rgba(0, 0, 0, 0.07);
	}

	.nav.open {
		display: flex;
	}

	.nav a {
		display: block;
		width: 100%;
		padding: 14px 0;
		font-size: 13px;
		border-bottom: 1px solid #e6e9ed;
	}

	.nav a:last-child {
		border-bottom: 0;
	}

	.section {
		padding: 65px 0;
	}

	.display {
		font-size: clamp(36px, 10.5vw, 64px);
	}

	.section-title {
		font-size: clamp(34px, 10vw, 48px);
		margin-bottom: 35px;
	}

	.intro {
		margin-top: 22px;
		font-size: 17px;
	}

	.two-col,
	.contact-grid {
		grid-template-columns: 1fr;
	}

	.two-col {
		gap: 1rem;
	}

	.portrait {
		display: block;
		float: none;
		width: 120px;
		height: 120px;
		margin: 0 0 24px;
	}

	.card {
		padding: 25px 20px;
	}

	.lead {
		margin-bottom: 35px;
	}

	.logo-carousel {
		grid-auto-columns: calc((100% - 1rem) / 2);
	}

	.logo-carousel li {
		min-height: 100px;
	}

	.logo-carousel img {
		height: 90px;
	}

	.carousel-controls {
		justify-content: center;
	}

	.site-footer .wrap {
		flex-direction: column;
	}

	.difference,
	.questions {
		background-size: 75% auto;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
}
