/*
 * Omega Marine — design-system styles.
 * Source of truth: design_handoff_omega_marine (Homepage Hi-Fi).
 * Tokens live in theme.json; this file implements the components.
 *
 * Breakpoints (from the handoff): desktop ≥1100 · tablet 700–1099 · mobile <700
 */

/* ------------------------------------------------------------------ */
/* Base                                                                */
/* ------------------------------------------------------------------ */
html {
	scroll-behavior: smooth;
}

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

	*,
	*::before,
	*::after {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
	}
}

:focus-visible {
	outline: 2px solid var(--wp--preset--color--accent);
	outline-offset: 2px;
}

.screen-reader-text {
	border: 0;
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

.skip-link:focus {
	background: var(--wp--preset--color--accent);
	clip-path: none;
	color: var(--wp--preset--color--base);
	display: block;
	font-family: var(--wp--preset--font-family--archivo);
	font-weight: 700;
	height: auto;
	left: 16px;
	padding: 12px 24px;
	text-decoration: none;
	top: 16px;
	width: auto;
	z-index: 100000;
}

/* Mono microcopy utility — eyebrows, labels, captions */
.mono-label {
	font-family: var(--wp--preset--font-family--plex-mono) !important;
	font-size: 13px;
	font-weight: 400;
	letter-spacing: 0.5px;
	text-transform: uppercase;
}

.mono-eyebrow {
	color: var(--wp--preset--color--accent);
	font-family: var(--wp--preset--font-family--plex-mono) !important;
	font-size: 14px;
	font-weight: 400;
	letter-spacing: 2px;
	text-transform: uppercase;
}

/* ------------------------------------------------------------------ */
/* Buttons                                                             */
/* ------------------------------------------------------------------ */
.wp-block-button__link {
	box-shadow: none;
	transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.wp-block-button__link:hover,
.wp-block-button__link:focus {
	background-color: var(--wp--custom--accent-hover);
	border-color: var(--wp--custom--accent-hover);
	color: var(--wp--preset--color--base);
}

/* Secondary: 2px ink outline; inverts to ink bg / cream text on hover */
.is-style-outline > .wp-block-button__link,
.wp-block-button.is-style-outline .wp-block-button__link {
	background-color: transparent;
	border: 2px solid var(--wp--preset--color--ink);
	color: var(--wp--preset--color--ink);
}

.is-style-outline > .wp-block-button__link:hover,
.is-style-outline > .wp-block-button__link:focus,
.wp-block-button.is-style-outline .wp-block-button__link:hover,
.wp-block-button.is-style-outline .wp-block-button__link:focus {
	background-color: var(--wp--preset--color--ink);
	border-color: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--base);
}

@media (max-width: 699px) {
	.omega-stack-buttons .wp-block-button,
	.omega-stack-buttons .wp-block-button__link {
		display: block;
		text-align: center;
		width: 100%;
	}
}

/* ------------------------------------------------------------------ */
/* Announcement bar                                                    */
/* ------------------------------------------------------------------ */
.announcement-bar {
	background: var(--wp--preset--color--dark);
	padding: 10px 16px;
	position: relative;
}

.announcement-bar__inner {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 8px 18px;
	justify-content: center;
}

.announcement-bar p {
	color: var(--wp--preset--color--base);
	font-family: var(--wp--preset--font-family--plex-mono);
	font-size: 13px;
	letter-spacing: 0.5px;
	margin: 0;
	text-transform: uppercase;
}

.announcement-bar a {
	border-bottom: 1px solid var(--wp--preset--color--accent);
	color: var(--wp--preset--color--accent);
	font-family: var(--wp--preset--font-family--plex-mono);
	font-size: 13px;
	text-decoration: none;
	text-transform: uppercase;
}

.announcement-bar__dismiss {
	align-items: center;
	background: none;
	border: 0;
	color: var(--wp--preset--color--ondark-muted);
	cursor: pointer;
	display: inline-flex;
	font-family: var(--wp--preset--font-family--plex-sans);
	font-size: 18px;
	height: 24px;
	justify-content: center;
	line-height: 1;
	padding: 0;
	position: absolute;
	right: 12px;
	top: 50%;
	transform: translateY(-50%);
	width: 24px;
}

.announcement-bar__dismiss:hover,
.announcement-bar__dismiss:focus-visible {
	color: var(--wp--preset--color--accent);
}

/* Reserve room so the centred text never slides under the close button */
.announcement-bar__inner {
	padding-inline: 28px;
}

.announcement-bar.is-dismissed {
	display: none;
}

@media (max-width: 699px) {
	.announcement-bar p,
	.announcement-bar a {
		font-size: 11px;
	}
}

/* ------------------------------------------------------------------ */
/* Header / nav                                                        */
/* ------------------------------------------------------------------ */
.site-header {
	background: var(--wp--preset--color--base);
	border-bottom: 1px solid var(--wp--preset--color--hairline);
	padding: 18px var(--wp--preset--spacing--70);
	position: sticky;
	top: 0;
	z-index: 1000;
}

.site-header .wp-block-site-logo img {
	height: 40px;
	width: auto;
}

.site-header .wp-block-navigation a:hover {
	color: var(--wp--preset--color--accent);
}

@media (max-width: 699px) {
	.site-header {
		padding-bottom: 12px;
		padding-top: 12px;
	}

	.site-header .wp-block-site-logo img {
		height: 30px;
	}
}

/* The header "Enquire" button (inside navigation row) */
.header-enquire .wp-block-button__link {
	font-size: 15px;
	padding: 11px 22px;
}

/* ------------------------------------------------------------------ */
/* Hero                                                                */
/* ------------------------------------------------------------------ */
.hero-section {
	padding: var(--wp--preset--spacing--80) var(--wp--preset--spacing--70) 64px;
}

.hero-lead {
	color: var(--wp--preset--color--body);
	max-width: 540px;
	text-wrap: pretty;
}

.hero-reassurance {
	color: var(--wp--preset--color--muted);
	font-family: var(--wp--preset--font-family--plex-mono);
	font-size: 13px;
	text-transform: uppercase;
}

/* Product image well + annotation chips */
.image-well {
	background: var(--wp--preset--color--well);
	border-radius: var(--wp--custom--radius-panel);
	padding: 28px;
	position: relative;
}

.image-well img {
	display: block;
	height: auto;
	width: 100%;
}

.hero-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 10px;
}

.hero-chip {
	background: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--accent);
	border-radius: 4px;
	color: var(--wp--preset--color--ink);
	font-family: var(--wp--preset--font-family--plex-mono);
	font-size: 12px;
	padding: 5px 9px;
	text-transform: uppercase;
	white-space: nowrap;
}

/* Desktop: chips float over the well with 36px orange leader lines */
@media (min-width: 1100px) {
	.hero-chips {
		display: contents;
	}

	.hero-chip {
		position: absolute;
		z-index: 2;
	}

	.hero-chip::before {
		background: var(--wp--preset--color--accent);
		content: "";
		height: 1px;
		position: absolute;
		top: 50%;
		width: 36px;
	}

	.hero-chip--hob {
		right: -10%;
		top: 9%;
	}

	.hero-chip--hob::before {
		left: -44px;
	}

	.hero-chip--gimbal {
		left: -14%;
		top: 48%;
	}

	.hero-chip--gimbal::before {
		right: -44px;
	}

	.hero-chip--steel {
		bottom: 6%;
		right: -4%;
	}

	.hero-chip--steel::before {
		left: -44px;
	}
}

@media (max-width: 699px) {
	.hero-chip {
		font-size: 10px;
		padding: 4px 7px;
	}
}

/* ------------------------------------------------------------------ */
/* Spec strip                                                          */
/* ------------------------------------------------------------------ */
.spec-strip {
	border-bottom: 2px solid var(--wp--preset--color--ink);
	border-top: 2px solid var(--wp--preset--color--ink);
	display: grid;
	grid-template-columns: repeat(4, 1fr);
}

.spec-strip__cell {
	border-right: 1px solid var(--wp--preset--color--hairline);
	padding: 26px 20px;
	text-align: center;
}

.spec-strip__cell:last-child {
	border-right: 0;
}

.spec-strip__number {
	color: var(--wp--preset--color--ink);
	font-family: var(--wp--preset--font-family--archivo);
	font-size: 34px;
	font-weight: 800;
	line-height: 1.1;
}

.spec-strip__label {
	color: var(--wp--preset--color--muted);
	font-family: var(--wp--preset--font-family--plex-mono);
	font-size: 13px;
	margin-top: 4px;
	text-transform: uppercase;
}

@media (max-width: 699px) {
	.spec-strip {
		grid-template-columns: 1fr 1fr;
	}

	.spec-strip__cell {
		padding: 16px 10px;
	}

	.spec-strip__cell:nth-child(2) {
		border-right: 0;
	}

	.spec-strip__cell:nth-child(-n+2) {
		border-bottom: 1px solid var(--wp--preset--color--hairline);
	}

	.spec-strip__number {
		font-size: 24px;
	}

	.spec-strip__label {
		font-size: 10px;
	}
}

/* ------------------------------------------------------------------ */
/* Cards (steps, service cards, FAQ)                                   */
/* ------------------------------------------------------------------ */
.omega-card {
	background: var(--wp--preset--color--card);
	border: 1px solid var(--wp--preset--color--hairline);
	border-radius: var(--wp--custom--radius-card);
	padding: 28px;
}

.step-number {
	align-items: center;
	background: var(--wp--preset--color--accent);
	border-radius: 50%;
	color: var(--wp--preset--color--base);
	display: flex;
	flex-shrink: 0;
	font-family: var(--wp--preset--font-family--archivo);
	font-size: 18px;
	font-weight: 800;
	height: 40px;
	justify-content: center;
	margin-bottom: 18px;
	width: 40px;
}

/* Mobile: step cards collapse to horizontal (number left, text right) */
@media (max-width: 699px) {
	.step-card {
		align-items: flex-start;
		display: flex;
		gap: 14px;
		padding: 16px;
	}

	.step-card .step-number {
		font-size: 14px;
		height: 30px;
		margin-bottom: 0;
		width: 30px;
	}

	.step-card h3 {
		font-size: 16px;
	}

	.step-card p {
		font-size: 13px;
		line-height: 1.55;
	}
}

/* ------------------------------------------------------------------ */
/* Proof band / testimonial                                            */
/* ------------------------------------------------------------------ */
.proof-image img {
	border-radius: var(--wp--custom--radius-panel);
}

.testimonial-slot {
	border-left: 3px solid var(--wp--preset--color--accent);
	padding: 4px 0 4px 22px;
}

.testimonial-slot__quote {
	color: var(--wp--preset--color--ink);
	font-family: var(--wp--preset--font-family--archivo) !important;
	font-size: 21px;
	font-style: italic;
	font-weight: 600;
	line-height: 1.35;
}

.testimonial-slot__source {
	color: var(--wp--preset--color--muted);
	font-family: var(--wp--preset--font-family--plex-mono) !important;
	font-size: 13px;
	margin-top: 8px;
	text-transform: uppercase;
}

.arrow-link {
	color: var(--wp--preset--color--accent);
	font-family: var(--wp--preset--font-family--archivo);
	font-size: 16px;
	font-weight: 700;
	text-decoration: none;
}

.arrow-link:hover {
	color: var(--wp--custom--accent-hover);
}

@media (max-width: 699px) {
	.testimonial-slot__quote {
		font-size: 16px;
		line-height: 1.4;
	}
}

/* ------------------------------------------------------------------ */
/* Deposit trust band                                                  */
/* ------------------------------------------------------------------ */
.deposit-band {
	background: var(--wp--preset--color--dark);
	padding: 36px var(--wp--preset--spacing--70);
}

.deposit-band__check {
	align-items: center;
	border: 2.5px solid var(--wp--preset--color--accent);
	border-radius: 50%;
	color: var(--wp--preset--color--accent);
	display: flex;
	flex-shrink: 0;
	font-size: 26px;
	height: 56px;
	justify-content: center;
	width: 56px;
}

.deposit-band h2 {
	color: var(--wp--preset--color--base);
	font-size: 28px;
	letter-spacing: -0.5px;
}

.deposit-band p {
	color: var(--wp--preset--color--ondark-muted);
	font-size: 16px;
}

@media (max-width: 699px) {
	.deposit-band__check {
		font-size: 16px;
		height: 36px;
		width: 36px;
	}

	.deposit-band h2 {
		font-size: 18px;
	}

	.deposit-band p {
		font-size: 13px;
	}
}

/* ------------------------------------------------------------------ */
/* FAQ — native <details>/<summary>                                    */
/* ------------------------------------------------------------------ */
.faq-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.faq-item {
	background: var(--wp--preset--color--card);
	border: 1px solid var(--wp--preset--color--hairline);
	border-radius: var(--wp--custom--radius-card);
	padding: 0 24px;
}

.faq-item summary {
	align-items: center;
	color: var(--wp--preset--color--ink);
	cursor: pointer;
	display: flex;
	font-family: var(--wp--preset--font-family--archivo);
	font-size: 19px;
	font-weight: 700;
	gap: 10px;
	justify-content: space-between;
	list-style: none;
	padding: 20px 0;
}

.faq-item summary::-webkit-details-marker {
	display: none;
}

.faq-chevron {
	color: var(--wp--preset--color--accent);
	flex-shrink: 0;
	font-size: 24px;
	font-style: normal;
	transition: transform 0.2s ease;
}

.faq-item[open] .faq-chevron {
	transform: rotate(45deg);
}

.faq-item__answer {
	color: var(--wp--preset--color--body);
	font-size: 16px;
	line-height: 1.6;
	padding-bottom: 22px;
}

@media (max-width: 699px) {
	.faq-item {
		padding: 0 16px;
	}

	.faq-item summary {
		font-size: 15px;
		padding: 14px 0;
	}

	.faq-item__answer {
		font-size: 14px;
		padding-bottom: 14px;
	}
}

/* ------------------------------------------------------------------ */
/* Consultancy teaser                                                  */
/* ------------------------------------------------------------------ */
.consultancy-teaser {
	border-bottom: 1px solid var(--wp--preset--color--hairline);
	border-top: 1px solid var(--wp--preset--color--hairline);
	padding: 32px 0;
}

.consultancy-teaser__services {
	color: var(--wp--preset--color--muted);
	font-family: var(--wp--preset--font-family--plex-mono) !important;
	font-size: 13px;
	text-transform: uppercase;
}

/* ------------------------------------------------------------------ */
/* Enquiry form (Jetpack Forms, styled to the design)                  */
/* ------------------------------------------------------------------ */
.enquiry-section {
	background: var(--wp--preset--color--tint);
}

.form-reassurance p {
	color: var(--wp--preset--color--muted);
	font-family: var(--wp--preset--font-family--plex-mono) !important;
	font-size: 13px;
	margin: 0 0 8px;
	text-transform: uppercase;
}

.form-card {
	background: var(--wp--preset--color--card);
	border: 1px solid var(--wp--preset--color--hairline);
	border-radius: var(--wp--custom--radius-panel);
	padding: 32px;
}

@media (max-width: 699px) {
	.form-card {
		padding: 18px;
	}
}

/* Jetpack field overrides */
.form-card .jetpack-field .jetpack-field__label,
.form-card .grunion-field-label,
.form-card label {
	color: var(--wp--preset--color--muted);
	font-family: var(--wp--preset--font-family--plex-mono);
	font-size: 12px;
	font-weight: 400;
	letter-spacing: 0.5px;
	text-transform: uppercase;
}

.form-card input[type="text"],
.form-card input[type="email"],
.form-card input[type="url"],
.form-card input[type="tel"],
.form-card select,
.form-card textarea {
	background: var(--wp--preset--color--base);
	border: 1px solid var(--wp--custom--input-border);
	border-radius: var(--wp--custom--radius-button);
	color: var(--wp--preset--color--ink);
	font-family: var(--wp--preset--font-family--plex-sans);
	font-size: 16px;
	padding: 13px 14px;
	width: 100%;
}

.form-card input::placeholder,
.form-card textarea::placeholder {
	color: #9A9486;
	font-family: var(--wp--preset--font-family--plex-sans);
}

.form-card input:focus,
.form-card select:focus,
.form-card textarea:focus {
	border-color: var(--wp--preset--color--accent);
	outline: 2px solid var(--wp--preset--color--accent);
	outline-offset: 0;
}

.form-card .wp-block-jetpack-button,
.form-card .wp-block-button {
	display: flex;
	justify-content: flex-end;
	margin-top: 20px;
}

.form-card button[type="submit"],
.form-card .wp-block-button__link {
	background: var(--wp--preset--color--accent);
	border: 0;
	border-radius: var(--wp--custom--radius-button);
	color: var(--wp--preset--color--base);
	cursor: pointer;
	font-family: var(--wp--preset--font-family--archivo);
	font-size: 17px;
	font-weight: 700;
	padding: 15px 32px;
	transition: background-color 0.18s ease;
}

.form-card button[type="submit"]:hover {
	background: var(--wp--custom--accent-hover);
}

.form-card .contact-form__error,
.form-card .grunion-error {
	color: var(--wp--preset--color--accent);
}

@media (max-width: 699px) {
	.form-card button[type="submit"],
	.form-card .wp-block-button__link {
		text-align: center;
		width: 100%;
	}
}

/* ------------------------------------------------------------------ */
/* Spec table (Products page)                                          */
/* ------------------------------------------------------------------ */
.specs-table-wrap {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.specs-table {
	border: 1px solid var(--wp--preset--color--hairline);
	border-collapse: collapse;
	border-radius: var(--wp--custom--radius-button);
	width: 100%;
}

.specs-table caption {
	caption-side: top;
	color: var(--wp--preset--color--muted);
	font-family: var(--wp--preset--font-family--plex-mono);
	font-size: 13px;
	padding-bottom: 16px;
	text-align: left;
	text-transform: uppercase;
}

.specs-table th,
.specs-table td {
	border: 1px solid var(--wp--preset--color--hairline);
	font-size: 15px;
	padding: 12px 16px;
	text-align: left;
	vertical-align: top;
}

.specs-table th {
	background: var(--wp--preset--color--tint);
	color: var(--wp--preset--color--ink);
	font-family: var(--wp--preset--font-family--archivo);
	font-weight: 700;
	white-space: nowrap;
}

/* ------------------------------------------------------------------ */
/* Timeline (About page)                                               */
/* ------------------------------------------------------------------ */
.voyage-timeline {
	border-left: 2px solid var(--wp--preset--color--accent);
	display: flex;
	flex-direction: column;
	gap: 24px;
	margin-left: 4px;
	padding-left: 24px;
}

.voyage-timeline h3 {
	font-size: 18px;
	margin: 0 0 4px;
}

.voyage-timeline .timeline-year {
	color: var(--wp--preset--color--accent);
	font-family: var(--wp--preset--font-family--plex-mono);
	font-size: 13px;
	text-transform: uppercase;
}

/* ------------------------------------------------------------------ */
/* Dark CTA band (inner pages) + footer                                */
/* ------------------------------------------------------------------ */
.dark-band {
	background: var(--wp--preset--color--dark);
}

.dark-band h1,
.dark-band h2,
.dark-band h3 {
	color: var(--wp--preset--color--base);
}

.dark-band p {
	color: var(--wp--preset--color--ondark-muted);
}

.site-footer {
	background: var(--wp--preset--color--dark);
	padding: 56px var(--wp--preset--spacing--70) 32px;
}

.site-footer .footer-brand-name {
	color: var(--wp--preset--color--base);
	font-family: var(--wp--preset--font-family--archivo) !important;
	font-size: 22px;
	font-weight: 800;
	letter-spacing: 0.5px;
}

.site-footer .footer-tagline {
	color: var(--wp--preset--color--accent);
	font-family: var(--wp--preset--font-family--plex-mono) !important;
	font-size: 13px;
	text-transform: uppercase;
}

.site-footer .footer-description {
	color: var(--wp--preset--color--ondark-muted);
	font-size: 15px;
}

.site-footer .footer-col-head {
	color: var(--wp--preset--color--muted);
	font-family: var(--wp--preset--font-family--plex-mono) !important;
	font-size: 12px;
	letter-spacing: 1px;
	text-transform: uppercase;
}

.site-footer .footer-links {
	list-style: none;
	margin: 0;
	padding: 0;
}

.site-footer .footer-links li {
	margin-bottom: 12px;
}

.site-footer .footer-links a {
	color: var(--wp--preset--color--base);
	font-size: 15px;
	text-decoration: none;
}

.site-footer .footer-links a:hover {
	color: var(--wp--preset--color--accent);
}

.footer-rule {
	border-top: 1px solid var(--wp--custom--dark-divider);
	margin-top: 40px;
	padding-top: 24px;
}

.footer-copyright {
	color: var(--wp--preset--color--muted);
	font-family: var(--wp--preset--font-family--plex-mono) !important;
	font-size: 12px;
	text-transform: uppercase;
}

/* ------------------------------------------------------------------ */
/* Mobile sticky reserve bar (homepage)                                */
/* ------------------------------------------------------------------ */
.sticky-reserve-bar {
	align-items: center;
	background: var(--wp--preset--color--card);
	border-top: 2px solid var(--wp--preset--color--accent);
	bottom: 0;
	display: none;
	justify-content: space-between;
	left: 0;
	padding: 10px 18px;
	padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
	position: fixed;
	right: 0;
	transform: translateY(100%);
	transition: transform 0.25s ease;
	z-index: 2000;
}

.sticky-reserve-bar__label {
	color: var(--wp--preset--color--ink);
	font-size: 13px;
	margin: 0;
}

.sticky-reserve-bar__cta {
	background: var(--wp--preset--color--accent);
	border-radius: var(--wp--custom--radius-button);
	color: var(--wp--preset--color--base);
	font-family: var(--wp--preset--font-family--archivo);
	font-size: 13px;
	font-weight: 700;
	padding: 8px 16px;
	text-decoration: none;
}

@media (max-width: 699px) {
	.sticky-reserve-bar {
		display: flex;
	}
}

.sticky-reserve-bar.is-visible {
	transform: translateY(0);
}

/* ------------------------------------------------------------------ */
/* Legal pages                                                         */
/* ------------------------------------------------------------------ */
.legal-last-updated {
	border-top: 1px solid var(--wp--preset--color--hairline);
	color: var(--wp--preset--color--muted);
	padding-top: 24px;
}

/* ------------------------------------------------------------------ */
/* Misc                                                                */
/* ------------------------------------------------------------------ */
.wp-block-image img {
	height: auto;
	max-width: 100%;
}

.hidden-section {
	display: none !important;
}

/* ------------------------------------------------------------------ */
/* Blog: listing, post cards, single article                           */
/* ------------------------------------------------------------------ */
.blog-intro {
	max-width: 640px;
}

.posts-grid {
	gap: var(--wp--preset--spacing--40) !important;
}

.posts-grid > li.wp-block-post {
	background: var(--wp--preset--color--card);
	border: 1px solid var(--wp--preset--color--hairline);
	border-radius: var(--wp--custom--radius-card);
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.posts-grid .wp-block-post-featured-image {
	margin: 0;
}

.posts-grid .wp-block-post-featured-image img {
	aspect-ratio: 4 / 3;
	display: block;
	height: auto;
	object-fit: cover;
	width: 100%;
}

.post-card-body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: var(--wp--preset--spacing--20);
	padding: var(--wp--preset--spacing--40);
}

.post-card-body .wp-block-post-title {
	font-size: var(--wp--preset--font-size--card-title);
	line-height: 1.2;
	margin: 0;
}

.post-card-body .wp-block-post-title a {
	color: var(--wp--preset--color--ink);
	text-decoration: none;
}

.post-card-body .wp-block-post-title a:hover {
	color: var(--wp--preset--color--accent);
}

.post-card-body .wp-block-post-excerpt {
	color: var(--wp--preset--color--body);
	font-size: var(--wp--preset--font-size--medium);
}

/* Mono date treatment, shared by cards and single */
.post-meta,
.wp-block-post-date {
	color: var(--wp--preset--color--muted);
	font-family: var(--wp--preset--font-family--plex-mono);
	font-size: var(--wp--preset--font-size--mono-s);
	letter-spacing: 0.5px;
	text-transform: uppercase;
}

/* Single post */
.single-article {
	margin-inline: auto;
	max-width: 760px;
}

.single-article .wp-block-post-featured-image {
	margin-bottom: var(--wp--preset--spacing--40);
}

.single-article .wp-block-post-featured-image img {
	border-radius: var(--wp--custom--radius-panel);
	display: block;
	width: 100%;
}

.single-article .entry-content > * {
	margin-block: var(--wp--preset--spacing--30);
}

/* Pagination */
.wp-block-query-pagination {
	gap: var(--wp--preset--spacing--30);
	margin-top: var(--wp--preset--spacing--60);
}

.wp-block-query-pagination a {
	text-decoration: none;
}

.wp-block-query-pagination .current {
	color: var(--wp--preset--color--ink);
	font-weight: 600;
}

/* ------------------------------------------------------------------ */
/* No pure white anywhere                                              */
/* The page and every surface stay in the cream family. Jetpack Forms  */
/* ship their own white field/container styles — these overrides keep  */
/* form internals on cream so nothing reads as stark white.            */
/* ------------------------------------------------------------------ */
html,
body {
	background-color: var(--wp--preset--color--base);
}

.form-card .wp-block-jetpack-contact-form,
.form-card .jetpack-field,
.form-card .grunion-field-wrap,
.form-card .contact-form,
.form-card fieldset {
	background: transparent !important;
	border: 0;
}

.form-card input[type="text"],
.form-card input[type="email"],
.form-card input[type="url"],
.form-card input[type="tel"],
.form-card input[type="number"],
.form-card select,
.form-card textarea,
.form-card .jetpack-field input,
.form-card .jetpack-field select,
.form-card .jetpack-field textarea {
	background-color: var(--wp--preset--color--base) !important;
	border: 1px solid var(--wp--custom--input-border) !important;
	border-radius: var(--wp--custom--radius-button) !important;
	color: var(--wp--preset--color--ink) !important;
}

/* Jetpack's confirmation / success panel */
.contact-form-submission,
.wp-block-jetpack-contact-form .contact-form__success {
	background-color: var(--wp--preset--color--card) !important;
}

/* ------------------------------------------------------------------ */
/* v2.3 — mobile refinements (desktop layout unaffected)               */
/* ------------------------------------------------------------------ */

/* Header: the Enquire button must never wrap letter-by-letter */
.header-enquire {
	flex-shrink: 0;
}

.header-enquire .wp-block-button__link {
	white-space: nowrap;
}

/* Clean hamburger / close toggles — no stray oval, proper tap target */
.wp-block-navigation__responsive-container-open,
.wp-block-navigation__responsive-container-close {
	background: transparent !important;
	border: 0 !important;
	color: var(--wp--preset--color--ink) !important;
	padding: 8px !important;
}

.wp-block-navigation__responsive-container-open svg,
.wp-block-navigation__responsive-container-close svg {
	height: 28px;
	width: 28px;
	fill: currentColor;
}

/* Mobile overlay menu: full-screen cream, left-aligned, large links */
.wp-block-navigation__responsive-container.is-menu-open {
	background-color: var(--wp--preset--color--base) !important;
	padding: 24px var(--wp--preset--spacing--70) var(--wp--preset--spacing--70) !important;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	align-items: flex-start !important;
	justify-content: flex-start !important;
	padding-top: 56px;
	width: 100%;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
	align-items: flex-start !important;
	gap: var(--wp--preset--spacing--40) !important;
	justify-content: flex-start !important;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	color: var(--wp--preset--color--ink);
	font-family: var(--wp--preset--font-family--archivo);
	font-size: 28px;
	font-weight: 700;
	letter-spacing: -0.5px;
}

@media (max-width: 781px) {
	.header-actions {
		gap: 14px !important;
	}

	.header-enquire .wp-block-button__link {
		padding: 10px 16px;
	}
}

/* Product page: buy-box (title, price, CTA) first on mobile; smaller imagery */
@media (max-width: 781px) {
	.product-hero {
		display: flex;
		flex-direction: column;
	}

	.product-hero .product-buybox {
		order: -1;
	}

	.product-hero .image-well {
		padding: var(--wp--preset--spacing--40);
	}

	.product-hero .image-well img {
		margin-inline: auto;
		max-height: 300px;
		width: auto;
	}
}

@media (max-width: 600px) {
	.product-hero .wp-block-gallery.has-nested-images.columns-4 figure.wp-block-image {
		width: calc(50% - 4px) !important;
	}
}

/* Spec table: stack to one column on small screens so the value column
   is no longer squeezed */
@media (max-width: 600px) {
	.specs-table,
	.specs-table tbody,
	.specs-table tr,
	.specs-table th,
	.specs-table td {
		display: block;
		width: 100%;
	}

	.specs-table tr {
		border-bottom: 1px solid var(--wp--preset--color--hairline);
	}

	.specs-table tr:last-child {
		border-bottom: 0;
	}

	.specs-table th {
		background: var(--wp--preset--color--tint);
		border: 0;
		white-space: normal;
	}

	.specs-table td {
		border: 0;
		padding-top: 4px;
	}
}

/* Legal pages: drop a leading Spacer block in the page content and trim
   the gap between the header and the first heading */
.legal-section .entry-content > .wp-block-spacer:first-child {
	display: none;
}

@media (max-width: 781px) {
	.legal-section {
		padding-top: var(--wp--preset--spacing--40) !important;
	}
}

/* "Made in the UK" callout (product page) */
.made-in-britain {
	background: var(--wp--preset--color--card);
	border-left: 3px solid var(--wp--preset--color--accent);
	border-radius: 0 var(--wp--custom--radius-card) var(--wp--custom--radius-card) 0;
	padding: var(--wp--preset--spacing--40) var(--wp--preset--spacing--50);
}

.made-in-britain h3 {
	margin: 0;
}

/* ------------------------------------------------------------------ */
/* v2.4 — Owner installs ("Fitted aboard") + logo corners              */
/* ------------------------------------------------------------------ */

/* Scroll-snap "carousel": one owner card per view, swipeable once there
   is more than one. No JS needed. */
.installs-track {
	display: flex;
	gap: var(--wp--preset--spacing--40);
	overflow-x: auto;
	padding-bottom: var(--wp--preset--spacing--20);
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
}

.install-card {
	background: var(--wp--preset--color--card);
	border: 1px solid var(--wp--preset--color--hairline);
	border-radius: var(--wp--custom--radius-panel);
	box-sizing: border-box;
	flex: 0 0 100%;
	padding: var(--wp--preset--spacing--50);
	scroll-snap-align: center;
}

@media (min-width: 1100px) {
	.install-card {
		padding: var(--wp--preset--spacing--60);
	}
}

.install-photos {
	display: grid;
	gap: var(--wp--preset--spacing--30);
	grid-template-columns: 1fr 1fr;
	margin-bottom: var(--wp--preset--spacing--40);
}

.install-photos img {
	aspect-ratio: 4 / 3;
	border-radius: var(--wp--custom--radius-card);
	display: block;
	height: auto;
	object-fit: cover;
	width: 100%;
}

.install-quote {
	border-left: 3px solid var(--wp--preset--color--accent);
	margin: 0;
	padding-left: var(--wp--preset--spacing--40);
}

.install-quote p {
	color: var(--wp--preset--color--ink);
	font-family: var(--wp--preset--font-family--archivo);
	font-size: clamp(18px, 2.2vw, 24px);
	font-style: italic;
	font-weight: 600;
	line-height: 1.4;
	margin: 0;
}

.install-cite {
	color: var(--wp--preset--color--muted);
	display: block;
	font-family: var(--wp--preset--font-family--plex-mono);
	font-size: var(--wp--preset--font-size--mono-s);
	font-style: normal;
	letter-spacing: 0.5px;
	margin-top: var(--wp--preset--spacing--30);
	text-transform: uppercase;
}

@media (max-width: 781px) {
	.install-photos {
		grid-template-columns: 1fr;
	}

	.install-card {
		padding: var(--wp--preset--spacing--40);
	}
}

/* Header logo — rounded corners to match the Enquire/CTA buttons */
.site-header .wp-block-site-logo img {
	border-radius: var(--wp--custom--radius-button);
}

/* Galleries: never let a lone last thumbnail stretch to fill its row
   (a WordPress flex-gallery quirk — keeps the products gallery tidy).
   Uses figure.wp-block-image + !important to beat core's own gallery rule. */
.wp-block-gallery.has-nested-images figure.wp-block-image {
	flex-grow: 0 !important;
}
