/* Conservatories.je – styled to match valegardenhouses.co.uk */

:root {
	--navy: #172b3a;
	--navy-dark: #11202b;
	--heading: #6c6c6c;
	--text: #555;
	--muted: #8a8a8a;
	--grey-bg: #f5f5f5;
	--line: rgba(0, 0, 0, 0.14);
	--footer-text: #d4dfe7;
	--serif: Baskerville, "Libre Baskerville", "Baskerville Old Face", Georgia, serif;
	--sans: Jost, "Helvetica Neue", Arial, sans-serif;
	--gutter: clamp(16px, 4vw, 40px);
	--max: 1200px;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	background: #fff;
	color: var(--text);
	font-family: var(--sans);
	font-size: 16px;
	line-height: 1.7;
}

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

a { color: var(--navy); }

h1, h2, h3 {
	font-family: var(--serif);
	font-weight: 400;
	color: var(--heading);
	line-height: 1.25;
	margin: 0 0 0.6em;
}

h1 { font-size: clamp(28px, 4vw, 40px); }
h2 { font-size: clamp(24px, 3vw, 32px); }
h3 { font-size: 22px; }

p { margin: 0 0 1.2em; }

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	background: var(--navy);
	color: #fff;
	padding: 10px 16px;
	z-index: 100;
}
.skip-link:focus { left: 0; }

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

/* BUTTONS */
.btn {
	display: inline-block;
	padding: 12px 22px;
	background: var(--navy);
	border: 1px solid var(--navy);
	color: #fff;
	font-family: var(--sans);
	font-size: 13px;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	text-decoration: none;
	line-height: 1.3;
	transition: background-color 0.2s, color 0.2s;
}
.btn:hover { background: var(--navy-dark); }

.btn--outline {
	background: transparent;
	color: var(--navy);
	border-color: rgba(23, 43, 58, 0.45);
	padding: 8px 14px;
	font-size: 11px;
}
.btn--outline:hover { background: var(--navy); color: #fff; }

.btn--light {
	background: transparent;
	border-color: rgba(255, 255, 255, 0.6);
	color: #fff;
}
.btn--light:hover { background: #fff; color: var(--navy); }

/* HEADER */
.site-header {
	background: #fff;
	position: relative;
	z-index: 20;
}

.site-header__bar {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 16px;
	max-width: var(--max);
	margin: 0 auto;
	padding: 16px var(--gutter) 14px;
}

.site-header__phone {
	justify-self: start;
	color: var(--navy);
	font-size: 14px;
	letter-spacing: 2px;
	text-decoration: none;
}

.site-header__logo {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-decoration: none;
}
.site-header__logo img { width: 220px; }

.site-header__tagline {
	margin-top: 6px;
	font-family: var(--serif);
	font-size: 11px;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: var(--navy);
	white-space: nowrap;
}

.site-header__actions {
	justify-self: end;
	display: flex;
	align-items: center;
	gap: 12px;
}

.site-header__menu-btn {
	display: none;
	align-items: center;
	gap: 10px;
	padding: 8px 0 8px 4px;
	border: 0;
	background: none;
	color: var(--navy);
	font: 500 12px/1 var(--sans);
	letter-spacing: 2px;
	text-transform: uppercase;
	cursor: pointer;
}

.site-header__menu-icon,
.site-header__menu-icon::before,
.site-header__menu-icon::after {
	display: block;
	width: 20px;
	height: 1px;
	background: currentColor;
	position: relative;
	transition: transform 0.2s;
}
.site-header__menu-icon::before,
.site-header__menu-icon::after { content: ""; position: absolute; left: 0; }
.site-header__menu-icon::before { top: -6px; }
.site-header__menu-icon::after { top: 6px; }

.site-header__menu-btn[aria-expanded="true"] .site-header__menu-icon { background: transparent; }
.site-header__menu-btn[aria-expanded="true"] .site-header__menu-icon::before { transform: translateY(6px) rotate(45deg); }
.site-header__menu-btn[aria-expanded="true"] .site-header__menu-icon::after { transform: translateY(-6px) rotate(-45deg); }

/* NAV – a simple row of links on desktop */
.site-nav {
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
}

.site-nav ul {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 0 clamp(18px, 3vw, 40px);
	margin: 0 auto;
	padding: 0 var(--gutter);
	list-style: none;
	max-width: var(--max);
}

.site-nav a {
	display: block;
	padding: 13px 0 11px;
	color: var(--navy);
	font-size: 12px;
	letter-spacing: 2px;
	text-transform: uppercase;
	text-decoration: none;
	border-bottom: 1px solid transparent;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] { border-bottom-color: var(--navy); }

.site-nav__extra { display: none; }

/* HERO SLIDESHOW (homepage) */
/* kept at the images' own 1563x600 shape: most of them have slogans baked in, which cropping would cut off */
.hero {
	position: relative;
	aspect-ratio: 1563 / 600;
	overflow: hidden;
	background: var(--grey-bg);
}

.hero picture,
.hero img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hero picture {
	opacity: 0;
	transition: opacity 1.6s ease;
}
.hero picture.is-active { opacity: 1; }

/* SECTIONS */
.section {
	padding: clamp(28px, 6vw, 50px) var(--gutter) clamp(16px, 2.8vw, 32px);
}
.section--grey { background: var(--grey-bg); }
.section--tight-top { padding-top: 0; }

.container {
	max-width: var(--max);
	margin: 0 auto;
}

.intro {
	max-width: 780px;
	margin: 0 auto;
	text-align: center;
}
.intro .lead { font-size: 18px; }

.breadcrumb {
	margin: 0 0 18px;
	padding: 0;
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
	font-size: 12px;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: var(--muted);
}
.breadcrumb li + li::before { content: "/"; margin-right: 6px; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--navy); }

.section-title {
	text-align: center;
	margin-bottom: 36px;
}

.eyebrow {
	display: block;
	margin-bottom: 10px;
	font-family: var(--sans);
	font-size: 12px;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: var(--navy);
}

/* PROCESS CARDS (homepage) */
.cards {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 28px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.card {
	display: flex;
	flex-direction: column;
	background: #fff;
}
.card img {
	width: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
}
.card__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 22px 22px 26px;
}
.card h3 { font-size: 20px; }
.card h3 a { color: inherit; text-decoration: none; }
.card p { font-size: 15px; flex: 1; }

.text-link {
	font-size: 12px;
	letter-spacing: 2px;
	text-transform: uppercase;
	text-decoration: none;
	border-bottom: 1px solid currentColor;
	align-self: flex-start;
	padding-bottom: 2px;
}

/* DETAIL STRIP */
.detail-strip {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 12px;
	margin: 0 0 1.5em;
}
.detail-strip img {
	width: 100%;
	aspect-ratio: 168 / 200;
	object-fit: cover;
}

/* TWO-COLUMN FEATURE */
.split {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: clamp(28px, 5vw, 64px);
	align-items: center;
}

/* GALLERY TEASER */
.teaser-grid {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr;
	grid-auto-rows: 220px;
	gap: 12px;
	margin-bottom: 32px;
}
.teaser-grid a:first-child { grid-row: span 2; }
.teaser-grid img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: opacity 0.2s;
}
.teaser-grid a:hover img { opacity: 0.88; }

.center { text-align: center; }

/* PROSE (process pages) */
.prose {
	max-width: 780px;
	margin: 0 auto;
}
.prose h2 { margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 {
	font-family: var(--sans);
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: var(--navy);
	margin: 2em 0 0.8em;
}
.prose figure { margin: 2em 0; }
.prose figure img { margin: 0 auto; }
.prose figcaption {
	margin-top: 8px;
	text-align: center;
	font-size: 13px;
	color: var(--muted);
}

.figure-pair {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}

.aside-note {
	border-left: 2px solid var(--navy);
	padding: 4px 0 4px 20px;
	margin: 2em 0;
	font-family: var(--serif);
	font-style: italic;
	font-size: 18px;
	color: var(--heading);
}

/* NEXT / PREVIOUS STEP */
.step-nav {
	display: flex;
	justify-content: space-between;
	gap: 20px;
	max-width: 780px;
	margin: 48px auto 0;
	padding-top: 24px;
	border-top: 1px solid var(--line);
}
.step-nav a {
	text-decoration: none;
	display: flex;
	flex-direction: column;
	gap: 2px;
}
.step-nav span {
	font-size: 11px;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: var(--muted);
}
.step-nav strong {
	font-family: var(--serif);
	font-weight: 400;
	font-size: 19px;
}
.step-nav__next { margin-left: auto; text-align: right; }

/* FAQ */
.faq {
	max-width: 780px;
	margin: 0 auto;
}
.faq details {
	border-bottom: 1px solid var(--line);
}
.faq summary {
	list-style: none;
	cursor: pointer;
	padding: 18px 36px 18px 0;
	position: relative;
	font-family: var(--serif);
	font-size: 19px;
	color: var(--navy);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
	content: "+";
	position: absolute;
	right: 4px;
	top: 14px;
	font-family: var(--sans);
	font-size: 24px;
	font-weight: 300;
}
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin-top: 0; }

/* GALLERY PAGE */
.gallery {
	columns: 3 300px;
	column-gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.gallery li {
	break-inside: avoid;
	margin: 0 0 16px;
}
.gallery figure { margin: 0; }
.gallery button {
	display: block;
	width: 100%;
	padding: 0;
	border: 0;
	background: none;
	cursor: zoom-in;
}
.gallery img { width: 100%; }
.gallery figcaption {
	padding: 10px 2px 6px;
	font-size: 14px;
	line-height: 1.6;
}

.lightbox {
	max-width: min(1000px, 94vw);
	max-height: 94vh;
	padding: 0;
	border: 0;
	background: #fff;
	overflow: auto;
}
.lightbox::backdrop { background: rgba(17, 32, 43, 0.88); }
.lightbox img { width: 100%; }
.lightbox p {
	margin: 0;
	padding: 14px 18px 18px;
	font-size: 15px;
}
.lightbox__close {
	position: absolute;
	top: 8px;
	right: 8px;
	width: 40px;
	height: 40px;
	border: 0;
	background: rgba(255, 255, 255, 0.9);
	color: var(--navy);
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
}

/* CONTACT PAGE */
.contact-grid {
	display: grid;
	grid-template-columns: 1fr 1.6fr;
	gap: clamp(28px, 5vw, 64px);
	align-items: start;
}
.contact-grid h2 { font-size: 22px; margin-top: 1.4em; }
.contact-grid h2:first-child { margin-top: 0; }
.map iframe {
	display: block;
	width: 100%;
	height: 460px;
	border: 0;
}

/* BROCHURE CTA BAND */
.cta-band {
	background: var(--grey-bg);
	padding: clamp(40px, 6vw, 72px) var(--gutter);
}
.cta-band__inner {
	display: grid;
	grid-template-columns: 200px 1fr;
	gap: clamp(24px, 5vw, 60px);
	align-items: center;
	max-width: 900px;
	margin: 0 auto;
}

/* FOOTER */
.site-footer {
	background: var(--navy);
	color: var(--footer-text);
	font-size: 15px;
}
.site-footer a { color: var(--footer-text); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .btn--light:hover { color: var(--navy); text-decoration: none; }

.site-footer__inner {
	display: grid;
	grid-template-columns: 1.2fr 1fr 1fr;
	gap: 40px;
	max-width: var(--max);
	margin: 0 auto;
	padding: 56px var(--gutter) 40px;
}
.site-footer__logo {
	width: 200px;
	margin-bottom: 20px;
}
.site-footer h2 {
	color: #fff;
	font-size: 20px;
	margin-bottom: 14px;
}
.site-footer ul {
	list-style: none;
	margin: 0 0 22px;
	padding: 0;
}
.site-footer li { margin-bottom: 6px; }

.site-footer__legal {
	background: var(--navy-dark);
	padding: 16px var(--gutter);
	text-align: center;
	font-size: 12px;
	letter-spacing: 1px;
}
.site-footer__legal p { margin: 0; }

/* TABLET */
@media (max-width: 960px) {
	.cards { grid-template-columns: repeat(2, 1fr); }
	.site-footer__inner { grid-template-columns: 1fr 1fr; }
	.site-footer__col:first-child { grid-column: 1 / -1; }
}

/* PHONE – nav collapses into a simple drop-down list */
@media (max-width: 820px) {
	.site-header__bar {
		grid-template-columns: 1fr auto;
		padding-top: 12px;
		padding-bottom: 12px;
	}
	.site-header__phone,
	.site-header__actions .btn { display: none; }
	.site-header__logo { align-items: flex-start; }
	.site-header__logo img { width: 160px; }
	.site-header__tagline { font-size: 8.5px; letter-spacing: 1.2px; }
	.site-header__menu-btn { display: inline-flex; }

	.js .site-nav { display: none; }
	.site-nav.is-open { display: block; }
	.site-nav ul {
		display: block;
		padding: 0;
	}
	.site-nav li { border-bottom: 1px solid var(--line); }
	.site-nav li:last-child { border-bottom: 0; }
	.site-nav a {
		padding: 14px var(--gutter);
		border-bottom: 0;
	}
	.site-nav a[aria-current="page"] { background: var(--grey-bg); }
	.site-nav__extra { display: block; }
	.site-nav__extra .btn {
		margin: 14px var(--gutter) 16px;
		display: inline-block;
		padding: 12px 22px;
		border: 1px solid var(--navy);
		color: #fff;
	}

	.split,
	.contact-grid { grid-template-columns: 1fr; }
	.map iframe { height: 320px; }

	.teaser-grid {
		grid-template-columns: 1fr 1fr;
		grid-auto-rows: 150px;
	}
	.teaser-grid a:first-child { grid-column: 1 / -1; grid-row: span 1; }
	.teaser-grid a:nth-child(n+4) { display: none; }

	.cta-band__inner { grid-template-columns: 1fr; text-align: center; }
	.cta-band__image { width: 150px; margin: 0 auto; }
}

@media (max-width: 560px) {
	.cards { grid-template-columns: 1fr; }
	.detail-strip { grid-template-columns: 1fr 1fr; }
	.figure-pair { grid-template-columns: 1fr; }
	.site-footer__inner { grid-template-columns: 1fr; }
	.step-nav { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
	.hero picture { transition: none; }
}
address { font-style: normal; }
