/*
 * Waverock — Common styles
 * Shared across all Waverock pages: tokens, reset, typography, buttons,
 * layout utilities, form controls, header/navigation and footer.
 * Page-specific styles live in their own stylesheet (e.g. landing-page.css),
 * loaded after this file.
 *
 * Font: Montserrat is loaded via <link> in the page <head> (with preconnect)
 * so it downloads in parallel with this file.
 */

/* ───────────────── TOKENS ───────────────── */
:root {
	/* Brand (live theme) */
	--brand-navy: #00215E;
	--brand-blue: #4A94DB;
	--bg-main: #FFFFFF;
	--bg-alt: #F8FAFC;
	--text-main: #1E293B;
	--text-muted: #64748B;
	--border-light: rgba(0, 33, 94, 0.1);
	--white: #FFFFFF;

	/* Surfaces */
	--surface-soft: #F5F8FC;    /* light section background */
	--surface-blue: #EAF3FC;    /* soft blue panels */
	--surface-gray: #F0F4F8;    /* neutral card */
	--surface-gray-2: #E7EDF4;  /* neutral inset panel */
	--navy-deep: #061B45;       /* dark navy band */
	--navy-tile: #123367;       /* tiles on navy */
	--line: #DCE5EF;            /* hairlines, card and input borders */
	--cta-text: #B8D8F3;        /* body text on navy */
	--error: #D64545;

	/* Layout */
	--container: 1240px;
	--gutter: 24px;

	/* Radius */
	--radius-sm: 6px;
	--radius: 8px;
	--radius-md: 12px;
	--radius-lg: 16px;
	--radius-xl: 20px;
	--radius-2xl: 24px;

	/* Shadow */
	--shadow-card: 0 18px 40px rgba(0, 33, 94, 0.08);

	/* Typography */
	--font: 'Montserrat', sans-serif;
}

/* ───────────────── RESET & BASE ───────────────── */
*,
*::before,
*::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

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

body {
	font-family: var(--font);
	background: var(--bg-main);
	color: var(--text-main);
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

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

a {
	color: inherit;
}

ul {
	list-style: none;
}

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

svg {
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* ───────────────── LAYOUT UTILITIES ───────────────── */
.container {
	width: min(var(--container), 100% - var(--gutter) * 2);
	margin-inline: auto;
}

.two-col {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 608px;
	column-gap: 32px;
	align-items: center;
}

.section {
	padding: 105px 0 105px;
}

.section-alt {
	background: var(--surface-soft);
}

/* ───────────────── TYPOGRAPHY ───────────────── */
.eyebrow {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 12px;
	line-height: 16px;
	font-weight: 600;
	letter-spacing: 0.01em;
	text-transform: uppercase;
	color: var(--brand-navy);
	margin-bottom: 22px;
}

.eyebrow::before {
	content: '';
	width: 22px;
	height: 2px;
	border-radius: 2px;
	background: var(--brand-blue);
	flex-shrink: 0;
}

.eyebrow-light {
	color: #DCE7F5;
}

.section-title {
	font-size: 40px;
	line-height: 50px;
	font-weight: 700;
	letter-spacing: -0.012em;
	color: var(--brand-navy);
}

.body-copy p {
	font-size: 17px;
	line-height: 28px;
	color: var(--text-muted);
}

.body-copy p + p {
	margin-top: 12px;
}

.body-copy .lead-question {
	font-weight: 600;
	margin-top: 25px;
}

.body-copy-sm p {
	font-size: 17px;
	line-height: 27px;
}

/* ───────────────── BUTTONS ───────────────── */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	height: 51px;
	padding: 0 18px;
	border-radius: var(--radius-sm);
	border: 0;
	font-family: var(--font);
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	white-space: nowrap;
	transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.btn-arrow {
	width: 18px;
	height: 18px;
	stroke-width: 2.4;
	flex-shrink: 0;
}

.btn-primary {
	background: var(--brand-navy);
	color: var(--white);
}

.btn-primary:hover {
	background: #001845;
	transform: translateY(-1px);
	box-shadow: 0 8px 24px rgba(0, 33, 94, 0.25);
}

.btn-light {
	background: var(--white);
	color: var(--brand-navy);
	padding: 0 22px;
}

.btn-light:hover {
	transform: translateY(-1px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.btn-block {
	width: 100%;
}

.btn:focus-visible,
.nav-links a:focus-visible,
.nav-toggle:focus-visible {
	outline: 2px solid var(--brand-blue);
	outline-offset: 3px;
}

/* ───────────────── FORM CONTROLS ───────────────── */
.field-label {
	display: block;
	font-size: 12px;
	line-height: 16px;
	font-weight: 600;
	color: var(--brand-navy);
}

.field .field-label {
	margin-bottom: 6px;
}

.input-wrap {
	position: relative;
	display: flex;
	align-items: center;
}

.input-wrap .ico {
	position: absolute;
	left: 10px;
	width: 17px;
	height: 17px;
	color: var(--text-muted);
	pointer-events: none;
}

.input-wrap input {
	width: 100%;
	height: 36px;
	padding: 0 36px 0 33px;
	background: var(--surface-soft);
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	font-size: 12px;
	color: var(--text-main);
	outline: none;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.input-wrap input::placeholder {
	color: var(--text-muted);
	opacity: 0.9;
}

.input-wrap input:focus {
	border-color: var(--brand-blue);
	box-shadow: 0 0 0 3px rgba(74, 148, 219, 0.15);
	background: var(--white);
}

.input-wrap input.has-error {
	border-color: var(--error);
}

.toggle-pass {
	position: absolute;
	right: 8px;
	display: inline-flex;
	padding: 2px;
	border: 0;
	background: none;
	color: var(--text-muted);
	cursor: pointer;
}

.toggle-pass svg {
	width: 18px;
	height: 18px;
}

.toggle-pass.is-on {
	color: var(--brand-navy);
}

/* Custom checkbox: <label class="checkbox-label"><input type="checkbox"><span class="checkbox-box"></span>…</label> */
.checkbox-label {
	display: flex;
	align-items: center;
	gap: 10px;
	cursor: pointer;
}

.checkbox-label input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.checkbox-box {
	width: 16px;
	height: 16px;
	flex-shrink: 0;
	border: 1px solid #ACB6C3;
	border-radius: 3px;
	background: var(--white);
	transition: background 0.2s, border-color 0.2s;
}

.checkbox-label input:checked + .checkbox-box {
	background: var(--brand-navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat;
	border-color: var(--brand-navy);
}

.checkbox-label input:focus-visible + .checkbox-box {
	outline: 2px solid var(--brand-blue);
	outline-offset: 2px;
}

.checkbox-label.has-error .checkbox-box {
	border-color: var(--error);
}

/* ───────────────── HEADER & NAVIGATION ───────────────── */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(255, 255, 255, 0.96);
	backdrop-filter: blur(16px);
	border-bottom: 1px solid var(--line);
}

.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 95px;
}

.logo {
	display: inline-flex;
}

.logo img {
	width: 238px;
	height: auto;
}

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

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

.nav-links a {
	font-size: 14px;
	font-weight: 500;
	color: var(--text-main);
	text-decoration: none;
	transition: color 0.2s;
}

.nav-links a:hover {
	color: var(--brand-blue);
}

.btn-nav {
	padding: 0 32px;
	gap: 16px;
}

.nav-toggle {
	display: none;
	width: 44px;
	height: 44px;
	border-radius: var(--radius);
	border: 1px solid var(--line);
	background: var(--white);
	cursor: pointer;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 5px;
}

.nav-toggle span {
	width: 20px;
	height: 2px;
	background: var(--brand-navy);
	border-radius: 2px;
	transition: transform 0.25s, opacity 0.25s;
}

.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ───────────────── FOOTER ───────────────── */
.site-footer {
	border-top: 1px solid var(--line);
	padding: 56px 0 30px;
	background: var(--white);
}

.footer-top {
	display: flex;
	justify-content: space-between;
	gap: 40px;
}

.footer-brand p {
	margin-top: 22px;
	font-size: 15px;
	line-height: 26px;
	color: var(--text-muted);
}

.footer-nav {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 22px;
}

.footer-nav ul {
	display: flex;
	gap: 32px;
}

.footer-nav ul + ul {
	gap: 24px;
}

.footer-nav a,
.social a {
	font-size: 13px;
	line-height: 22px;
	color: var(--text-main);
	text-decoration: none;
	transition: color 0.2s;
}

.footer-nav a:hover,
.social a:hover {
	color: var(--brand-blue);
}

.footer-bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	margin-top: 35px;
	padding-top: 35px;
	border-top: 1px solid var(--line);
}

.copyright {
	font-size: 12px;
	line-height: 20px;
	color: var(--text-muted);
}

.social {
	display: flex;
	gap: 24px;
}

.social a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.social svg {
	width: 20px;
	height: 20px;
	color: var(--brand-navy);
}

/* ───────────────── RESPONSIVE ───────────────── */
@media (max-width: 1280px) {
	.two-col {
		grid-template-columns: minmax(0, 1fr) minmax(0, 560px);
	}

	/* Desktop-only line breaks in headings */
	.br-desk {
		display: none;
	}
}

@media (max-width: 1100px) {
	.section-title {
		font-size: 38px;
		line-height: 44px;
	}
}

@media (max-width: 1024px) {
	/* Mobile navigation */
	.nav-toggle {
		display: inline-flex;
	}

	.primary-nav {
		position: absolute;
		top: calc(100% + 8px);
		left: var(--gutter);
		right: var(--gutter);
		flex-direction: column;
		align-items: stretch;
		gap: 16px;
		padding: 20px;
		background: var(--white);
		border: 1px solid var(--line);
		border-radius: var(--radius-xl);
		box-shadow: 0 28px 80px rgba(0, 33, 94, 0.12);
		opacity: 0;
		visibility: hidden;
		transform: translateY(-8px);
		transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
	}

	.nav-open .primary-nav {
		opacity: 1;
		visibility: visible;
		transform: translateY(0);
	}

	.nav-links {
		flex-direction: column;
		align-items: stretch;
		gap: 4px;
	}

	.nav-links a {
		display: block;
		padding: 12px 8px;
		text-align: center;
	}

	/* Stack two-column layouts */
	.two-col {
		grid-template-columns: minmax(0, 1fr);
		row-gap: 56px;
	}
}

@media (max-width: 767px) {
	:root {
		--gutter: 16px;
	}

	.header-inner {
		height: 72px;
	}

	.logo img {
		width: 170px;
	}

	.section {
		padding: 64px 0;
	}

	.section-title {
		font-size: 30px;
		line-height: 36px;
	}

	.body-copy p,
	.body-copy-sm p {
		font-size: 16px;
		line-height: 26px;
	}

	.btn {
		white-space: normal;
		height: auto;
		min-height: 51px;
		padding-top: 12px;
		padding-bottom: 12px;
		text-align: left;
	}

	.input-wrap input {
		height: 42px;
		font-size: 16px; /* prevents iOS zoom on focus */
	}

	.footer-top,
	.footer-bottom {
		flex-direction: column;
		align-items: flex-start;
	}

	.footer-nav {
		align-items: flex-start;
		gap: 14px;
	}

	.footer-nav ul {
		flex-wrap: wrap;
		gap: 12px 24px;
	}
}