/* Base: fonts, design tokens, reset, typography, buttons, photos, card slider, forms, prose. */

@font-face {
	font-family: "Sora";
	font-style: normal;
	font-weight: 100 800;
	font-display: swap;
	src: url("../fonts/sora.woff2") format("woff2");
}

@font-face {
	font-family: "DM Sans";
	font-style: normal;
	font-weight: 100 1000;
	font-display: swap;
	src: url("../fonts/dm-sans.woff2") format("woff2");
}

:root {
	color-scheme: light;
	--pine: #021623;       /* primary navy */
	--pine-2: #0b2d45;     /* dark gradient stop */
	--pine-ink: #010e17;   /* deepest */
	--lime: #cfea4f;       /* accent */
	--lime-hover: #dcf373;
	--lime-ink: #2b3a00;   /* text on lime */
	--paper: #fff;
	--mist: #f2f5f8;       /* light section background */
	--ink: #101b24;        /* body text */
	--muted: #5b6773;
	--line: #e1e6eb;
	--on-dark: #c3cfd9;    /* text on navy */
	--on-dark-muted: #b3c1cc;
	--radius-lg: 18px;
	--radius: 12px;
	--wrap: 1200px;
	--gutter: 24px;
	--section-space: 96px;
	--header-height: 76px;
	--head: "Sora", "Segoe UI", Arial, sans-serif;
	--body: "DM Sans", "Segoe UI", Arial, sans-serif;
}

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

html {
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--header-height) + 16px);
}

body {
	background: var(--paper);
	color: var(--ink);
	font-family: var(--body);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	overflow-x: clip;
}

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

a {
	color: inherit;
	text-decoration: none;
}

button,
input,
select,
textarea {
	font: inherit;
	color: inherit;
}

ul[role="list"],
ol[role="list"] {
	list-style: none;
}

h1,
h2,
h3,
h4 {
	font-family: var(--head);
	line-height: 1.2;
	letter-spacing: -0.01em;
}

:focus-visible {
	outline: 3px solid var(--lime);
	outline-offset: 3px;
	border-radius: 6px;
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		transition: none !important;
		animation: none !important;
		scroll-behavior: auto !important;
	}
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	white-space: nowrap;
	word-wrap: normal !important;
}

.skip-link:focus {
	z-index: 100;
	top: 8px;
	left: 8px;
	width: auto;
	height: auto;
	padding: 10px 16px;
	clip: auto;
	clip-path: none;
	border-radius: var(--radius);
	background: var(--lime);
	color: var(--lime-ink);
	font-weight: 700;
}

.wrap {
	max-width: var(--wrap);
	margin: 0 auto;
	padding: 0 var(--gutter);
}

.wrap--narrow {
	max-width: calc(800px + 2 * var(--gutter));
}

.accent {
	color: var(--lime);
}

/* Section heading: kicker with a lime dot, title, lead */

.kicker {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 12px;
	color: var(--pine);
	font-size: 14px;
	font-weight: 700;
}

.kicker::before {
	content: "";
	flex: none;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--lime);
	box-shadow: 0 0 0 3px rgb(207 234 79 / 0.3);
}

.on-dark .kicker {
	color: var(--lime);
}

.sec-title {
	max-width: 18ch;
	font-size: clamp(28px, 3.4vw, 40px);
	font-weight: 700;
}

.sec-title .accent {
	color: inherit;
	text-decoration: underline;
	text-decoration-color: var(--lime);
	text-decoration-thickness: 4px;
	text-underline-offset: 6px;
}

.on-dark .sec-title .accent {
	color: var(--lime);
	text-decoration: none;
}

.lead {
	max-width: 60ch;
	color: var(--muted);
}

.sec-title + .lead {
	margin-top: 14px;
}

.on-dark .lead {
	color: var(--on-dark-muted);
}

/* Buttons: a pill with a round arrow (lw_button()) */

.btn {
	display: inline-flex;
	flex: none;
	align-items: center;
	gap: 10px;
	padding: 8px 8px 8px 22px;
	border: 0;
	border-radius: 40px;
	font-family: var(--body);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.3;
	cursor: pointer;
	transition: background-color 0.2s, color 0.2s;
}

.btn__dot {
	display: grid;
	flex: none;
	place-items: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	transition: transform 0.2s;
}

.btn__dot .icon {
	width: 15px;
	height: 15px;
}

.btn:hover .icon--arrow-right {
	transform: translateX(2px);
}

.btn .icon {
	transition: transform 0.2s;
}

.btn--lime {
	background: var(--lime);
	color: var(--lime-ink);
}

.btn--lime .btn__dot {
	background: var(--pine-ink);
	color: var(--lime);
}

.btn--lime:hover {
	background: var(--lime-hover);
}

.btn--pine {
	background: var(--pine);
	color: #fff;
}

.btn--pine .btn__dot {
	background: var(--lime);
	color: var(--pine-ink);
}

.btn--pine:hover {
	background: var(--pine-2);
}

.btn--pine:not(:has(.btn__dot)) {
	padding: 14px 24px;
}

.btn--ghost {
	padding: 8px 0;
	background: none;
	color: #fff;
}

.btn--ghost .btn__dot {
	border: 1.5px solid rgb(255 255 255 / 0.5);
}

.btn--ghost:hover .btn__dot {
	border-color: var(--lime);
	color: var(--lime);
}

/* Photo frames (.photo-frame, not ".photo": WordPress puts that class on avatars): cover images with a soft navy fade at the bottom; the placeholder repeats the design's stand-in */

.photo-frame {
	position: relative;
	overflow: hidden;
	min-height: 220px;
	border-radius: var(--radius-lg);
	background: var(--pine-2);
}

.photo-frame::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgb(2 22 35 / 0) 55%, rgb(2 22 35 / 0.45) 100%);
	pointer-events: none;
}

.photo-frame__image,
.photo-frame .photo-placeholder {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 72% center;
}

.photo-placeholder {
	display: block;
	background:
		linear-gradient(135deg, rgb(207 234 79 / 0.08), transparent 60%),
		radial-gradient(600px 300px at 80% 20%, var(--pine-2), transparent 70%),
		var(--pine);
}

/* Card slider (lw_slider(), assets/js/site--slider.js): a row of cards that scrolls and snaps, arrows under it.
   The section sets --slider-per-view and --slider-gap; a row that fits ("slider--static") is centred without arrows. */

.slider__track {
	display: grid;
	grid-auto-columns: calc((100% - (var(--slider-per-view, 3) - 1) * var(--slider-gap, 24px)) / var(--slider-per-view, 3));
	grid-auto-flow: column;
	gap: var(--slider-gap, 24px);
	/* Room for focus outlines, which the scrolling row would clip. */
	margin: -8px 0;
	padding: 8px 0;
	overflow-x: auto;
	list-style: none;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}

.slider__track::-webkit-scrollbar {
	display: none;
}

.slider__track > * {
	scroll-snap-align: start;
}

.slider__track:focus-visible {
	outline-offset: 4px;
}

.slider__controls {
	display: flex;
	justify-content: center;
	gap: 12px;
	margin-top: 32px;
}

.slider__button {
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 1px solid var(--line);
	border-radius: 50%;
	background: #fff;
	color: var(--pine);
	cursor: pointer;
	transition: background-color 0.2s, border-color 0.2s;
}

.slider__button .icon {
	width: 20px;
	height: 20px;
}

.slider__button:hover,
.slider__button:focus-visible {
	border-color: var(--pine);
	background: var(--lime);
}

.slider__button:disabled {
	opacity: 0.35;
	pointer-events: none;
}

.slider--static .slider__track {
	justify-content: center;
}

.slider--static .slider__controls {
	display: none;
}

/* Forms: Contact Form 7 (lw_form()). "lead-form" — the consultation form in the Contact section and the popup;
   "news-form" — the newsletter box in the footer. */

.lead-form,
.news-form {
	position: relative;
}

.lead-form {
	margin-top: 28px;
}

.form__fields {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
}

.form__field--wide {
	grid-column: 1 / -1;
}

.form__label {
	display: grid;
	gap: 6px;
	font-size: 13px;
	font-weight: 700;
}

.wpcf7-form-control-wrap {
	display: block;
}

.wpcf7 :is(input[type="text"], input[type="email"], input[type="tel"], select, textarea),
.search-form input[type="search"] {
	width: 100%;
	padding: 13px 14px;
	border: 1px solid var(--line);
	border-radius: 10px;
	background: #fff;
	color: var(--ink);
	font-size: 15px;
	font-weight: 400;
}

.wpcf7 :is(input, select, textarea):focus,
.search-form input[type="search"]:focus {
	border-color: var(--pine);
	outline: 2px solid var(--pine);
	outline-offset: 0;
}

.wpcf7 textarea {
	min-height: 130px;
	resize: vertical;
}

.wpcf7 ::placeholder {
	color: var(--muted);
	opacity: 1;
}

/* The submit is an <input>: the round arrow is drawn as its background. */
.wpcf7-submit {
	justify-self: start;
	min-height: 50px;
	padding: 8px 54px 8px 22px;
	border: 0;
	border-radius: 40px;
	background: var(--lime) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 34'%3E%3Ccircle cx='17' cy='17' r='17' fill='%23010E17'/%3E%3Cpath d='M11 17h12m-4.5-4.5L23 17l-4.5 4.5' fill='none' stroke='%23CFEA4F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 8px center / 34px;
	color: var(--lime-ink);
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
	transition: background-color 0.2s;
}

.wpcf7-submit:hover {
	background-color: var(--lime-hover);
}

.wpcf7-acceptance {
	font-size: 13px;
	color: var(--muted);
}

.wpcf7-acceptance input {
	margin-right: 6px;
	accent-color: var(--pine);
}

.wpcf7-spinner {
	position: absolute;
	margin: 0 0 0 12px;
}

.wpcf7-not-valid-tip {
	margin-top: 4px;
	font-size: 13px;
	font-weight: 500;
}

.wpcf7 form .wpcf7-response-output {
	margin: 16px 0 0;
	padding: 10px 16px;
	border-radius: 10px;
	font-size: 14px;
}

/* A sent form shows the "Thank you" popup (assets/js/site--popups.js) instead of its own message. */
.wpcf7 form.sent .wpcf7-response-output {
	display: none;
}

/* Newsletter: e-mail and the button in one row. */
.news-form .form__fields {
	display: flex;
	gap: 10px;
}

.news-form .form__field {
	flex: 1;
}

.news-form .wpcf7-submit {
	padding: 8px 22px;
	background: var(--pine);
	color: #fff;
}

.news-form .wpcf7-submit:hover {
	background-color: var(--pine-2);
}

.news-form .wpcf7-spinner {
	right: 8px;
	bottom: -28px;
}

@media (max-width: 560px) {
	.form__fields {
		grid-template-columns: minmax(0, 1fr);
	}

	.news-form .form__fields {
		flex-direction: column;
	}
}

/* Search form */

.search-form {
	display: flex;
	gap: 10px;
	align-items: center;
}

.search-form input[type="search"] {
	flex: 1;
}

/* Prose: text from the classic editor and the Text section */

.prose {
	color: var(--ink);
	font-size: 17px;
	line-height: 1.7;
}

.prose > * + * {
	margin-top: 1em;
}

.prose :is(h2, h3, h4) {
	margin-top: 1.6em;
	color: var(--pine);
}

.prose h2 {
	font-size: clamp(24px, 2.6vw, 30px);
}

.prose h3 {
	font-size: 21px;
}

.prose h4 {
	font-size: 18px;
}

.prose :is(h2, h3, h4) + * {
	margin-top: 0.6em;
}

.prose a {
	font-weight: 500;
	text-decoration: underline;
	text-decoration-color: var(--lime);
	text-decoration-thickness: 2px;
	text-underline-offset: 4px;
}

.prose a:hover {
	color: var(--pine);
	text-decoration-color: var(--pine);
}

.prose :is(ul, ol) {
	padding-left: 1.4em;
}

.prose li + li {
	margin-top: 0.4em;
}

.prose ul li::marker {
	color: var(--pine);
}

.prose blockquote {
	padding: 20px 24px;
	border-left: 4px solid var(--lime);
	border-radius: 0 var(--radius) var(--radius) 0;
	background: var(--mist);
	font-family: var(--head);
	font-size: 18px;
}

.prose img {
	border-radius: var(--radius);
}

.prose .alignleft {
	float: left;
	margin: 0.4em 1.5em 1em 0;
}

.prose .alignright {
	float: right;
	margin: 0.4em 0 1em 1.5em;
}

.prose .aligncenter {
	margin-inline: auto;
}

.prose .wp-caption-text {
	margin-top: 8px;
	color: var(--muted);
	font-size: 14px;
}

.prose table {
	width: 100%;
	border-collapse: collapse;
	font-size: 15px;
}

.prose :is(th, td) {
	padding: 10px 12px;
	border: 1px solid var(--line);
	text-align: left;
}

.prose th {
	background: var(--mist);
}

.prose hr {
	border: 0;
	border-top: 1px solid var(--line);
}
