/* ============================================================
   CUSTOM PROPERTIES
   ============================================================ */
:root {
	/* Colors — Linkra brand palette */
	--c-bg:           #ffffff;
	--c-surface:      #F8FAFC;
	--c-text:         #0F172A;
	--c-text-muted:   #475569;
	--c-accent:       #1F6AC7; /* primary blue */
	--c-accent-dark:  #1552A0;
	--c-accent-light: #EBF3FB; /* light tint of primary */
	--c-border:       #DBE3EF;
	--c-white:        #ffffff;
	--c-dark:         #0F172A;
	--c-secondary:    #642AAC; /* purple — gradients & small accents only */
	--c-focus:        #09D5F0; /* cyan — focus rings on dark backgrounds */

	/* Typography */
	--font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
	        'Helvetica Neue', Arial, sans-serif;

	/* Type scale */
	--text-xs:   0.75rem;
	--text-sm:   0.875rem;
	--text-base: 1rem;
	--text-lg:   1.125rem;
	--text-xl:   1.25rem;
	--text-2xl:  1.5rem;
	--text-3xl:  1.875rem;
	--text-4xl:  2.25rem;
	--text-5xl:  3rem;

	/* Spacing */
	--sp-1:  0.25rem;
	--sp-2:  0.5rem;
	--sp-3:  0.75rem;
	--sp-4:  1rem;
	--sp-5:  1.25rem;
	--sp-6:  1.5rem;
	--sp-8:  2rem;
	--sp-10: 2.5rem;
	--sp-12: 3rem;
	--sp-14: 3.5rem;
	--sp-16: 4rem;
	--sp-20: 5rem;
	--sp-24: 6rem;

	/* Layout */
	--container:     1140px;
	--container-pad: 1.5rem;
	--header-h:      72px;

	/* Misc */
	--radius-sm: 4px;
	--radius:    8px;
	--radius-lg: 12px;
	--shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
	--shadow:    0 4px 16px rgba(0, 0, 0, 0.08);
	--shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.10);
	--transition: 180ms ease;
}

/* ============================================================
   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);
	font-size: var(--text-base);
	line-height: 1.6;
	color: var(--c-text);
	background: var(--c-bg);
	-webkit-font-smoothing: antialiased;
}

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

a {
	color: var(--c-accent);
	text-decoration: underline;
	text-underline-offset: 3px;
}

a:hover {
	color: var(--c-accent-dark);
}

ul,
ol {
	list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	line-height: 1.2;
	font-weight: 700;
	color: var(--c-text);
}

/* max-width on p is set per component, not globally, to prevent paragraph
   text from being narrower than adjacent headings and breaking alignment */

/* ============================================================
   ACCESSIBILITY
   ============================================================ */
.skip-link {
	position: absolute;
	top: -200%;
	left: var(--sp-4);
	z-index: 9999;
	padding: var(--sp-3) var(--sp-6);
	background: var(--c-accent);
	color: var(--c-white);
	font-weight: 600;
	border-radius: var(--radius);
	text-decoration: none;
	transition: top 0.15s ease;
}

.skip-link:focus {
	top: var(--sp-4);
}

:focus-visible {
	outline: 2px solid var(--c-accent);
	outline-offset: 3px;
	border-radius: var(--radius-sm);
}

.screen-reader-text {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
	width: 100%;
	max-width: var(--container);
	margin-inline: auto;
	padding-inline: var(--container-pad);
}

/* Mobile-first: tighter padding; desktop restores full breathing room */
.section {
	padding-block: var(--sp-14);
}

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

.section__header {
	margin-bottom: var(--sp-10);
}

/* clamp keeps the title readable on every viewport */
.section__title {
	font-size: clamp(var(--text-2xl), 3.5vw, var(--text-3xl));
	letter-spacing: -0.02em;
	margin-bottom: var(--sp-4);
}

.section__intro {
	font-size: var(--text-lg);
	color: var(--c-text-muted);
	line-height: 1.7;
	max-width: 58ch;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
	display: inline-flex;
	align-items: center;
	gap: var(--sp-2);
	padding: 0.75rem 1.5rem;
	font-family: var(--font);
	font-size: var(--text-base);
	font-weight: 600;
	line-height: 1;
	border: 2px solid transparent;
	border-radius: var(--radius);
	cursor: pointer;
	text-decoration: none;
	transition:
		background var(--transition),
		color var(--transition),
		border-color var(--transition),
		box-shadow var(--transition);
	white-space: nowrap;
}

.btn:focus-visible {
	outline: 2px solid var(--c-accent);
	outline-offset: 3px;
}

.btn--primary {
	background: var(--c-accent);
	color: var(--c-white);
	border-color: var(--c-accent);
}

.btn--primary:hover {
	background: var(--c-accent-dark);
	border-color: var(--c-accent-dark);
	color: var(--c-white);
}

.btn--outline {
	background: transparent;
	color: var(--c-accent);
	border-color: var(--c-accent);
}

.btn--outline:hover {
	background: var(--c-accent-light);
	color: var(--c-accent-dark);
	border-color: var(--c-accent-dark);
}

.btn--white {
	background: var(--c-white);
	color: var(--c-accent);
	border-color: var(--c-white);
}

.btn--white:hover {
	background: var(--c-accent-light);
	border-color: var(--c-accent-light);
	color: var(--c-accent-dark);
}

.btn-group {
	display: flex;
	flex-wrap: wrap;
	gap: var(--sp-3);
	align-items: center;
}

/* Focus rings on the blue CTA section must use white so they're visible */
.availability-cta .btn:focus-visible {
	outline-color: var(--c-white);
}

/* ============================================================
   SITE HEADER
   ============================================================ */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--c-bg);
	/* Shadow replaces border-bottom: gives subtle elevation without a hard line */
	box-shadow: 0 1px 0 var(--c-border), 0 4px 20px rgba(0, 0, 0, 0.04);
	height: var(--header-h);
	display: flex;
	align-items: center;
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--sp-6);
	height: 100%;
}

.site-logo {
	font-size: var(--text-xl);
	font-weight: 800;
	color: var(--c-text);
	text-decoration: none;
	letter-spacing: -0.04em;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	gap: var(--sp-2);
	transition: color var(--transition);
}

.site-logo__name {
	line-height: 1;
	color: var(--c-text);
}

.site-logo:hover .site-logo__name {
	color: var(--c-text);
}

.site-logo:hover {
	color: var(--c-accent);
}

.site-logo:focus-visible {
	outline: 2px solid var(--c-accent);
	outline-offset: 4px;
	border-radius: var(--radius-sm);
}

/* Custom logo image — constrained so it never overflows the header */
.site-logo__img {
	display: block;
	max-height: 40px;
	width: auto;
	height: auto;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.primary-nav {
	display: none;
	align-items: center;
	gap: var(--sp-2);
}

.nav-list {
	display: flex;
	align-items: center;
	gap: var(--sp-1);
}

.nav-list li a {
	display: block;
	padding: var(--sp-2) var(--sp-3);
	font-size: var(--text-sm);
	font-weight: 500;
	color: var(--c-text);
	text-decoration: none;
	border-radius: var(--radius-sm);
	transition: color var(--transition), background var(--transition);
}

.nav-list li a:hover {
	color: var(--c-accent);
	background: var(--c-accent-light);
}

/* Specificity over the .btn defaults — no !important needed */
.site-header .nav-cta {
	margin-left: var(--sp-4);
	font-size: var(--text-sm);
	padding: 0.55rem 1.1rem;
}

/* Hamburger button */
.nav-toggle {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 40px;
	height: 40px;
	padding: var(--sp-2);
	background: none;
	border: none;
	cursor: pointer;
	border-radius: var(--radius-sm);
	transition: background var(--transition);
}

.nav-toggle:hover {
	background: var(--c-surface);
}

.nav-toggle__bar {
	display: block;
	width: 100%;
	height: 2px;
	background: var(--c-text);
	border-radius: 2px;
	transition: transform 200ms ease, opacity 200ms ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
	opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

/* Prevent body scroll while mobile menu is open */
html.menu-open {
	overflow: hidden;
}

/* Mobile nav open state */
.primary-nav.is-open {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	position: absolute;
	top: var(--header-h);
	left: 0;
	right: 0;
	background: var(--c-bg);
	border-bottom: 1px solid var(--c-border);
	padding: var(--sp-4) var(--container-pad) var(--sp-6);
	gap: var(--sp-2);
	z-index: 99;
	box-shadow: var(--shadow);
}

.primary-nav.is-open .nav-list {
	flex-direction: column;
	align-items: flex-start;
	width: 100%;
	gap: 0;
}

.primary-nav.is-open .nav-list li {
	width: 100%;
}

.primary-nav.is-open .nav-list li a {
	width: 100%;
	padding: var(--sp-3) var(--sp-4);
	font-size: var(--text-base);
	border-radius: var(--radius);
}

.primary-nav.is-open .nav-cta {
	margin-left: 0;
	width: 100%;
	font-size: var(--text-base);
	padding: 0.75rem 1.5rem;
	justify-content: center;
	margin-top: var(--sp-2);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
	padding-top: var(--sp-16);
	padding-bottom: var(--sp-14);
	position: relative;
	overflow: hidden;
}

/* Shared base for both decorative blobs */
.hero::before,
.hero::after {
	content: '';
	position: absolute;
	border-radius: 50%;
	pointer-events: none;
	z-index: 0;
}

/* Primary blob — top-right, blue only; calm B2B tone */
.hero::before {
	top: -140px;
	right: -120px;
	width: 580px;
	height: 580px;
	background: radial-gradient(
		circle at 38% 38%,
		rgba(31, 106, 199, 0.07) 0%,
		rgba(31, 106, 199, 0.03) 55%,
		transparent 100%
	);
}

/* Secondary blob — bottom-left, very subtle blue */
.hero::after {
	bottom: -100px;
	left: -80px;
	width: 380px;
	height: 380px;
	background: radial-gradient(
		circle at 62% 62%,
		rgba(31, 106, 199, 0.04) 0%,
		transparent 70%
	);
}

.hero__inner {
	position: relative;
	z-index: 1;
}

.hero__content {
	max-width: 620px;
}

.hero__visual {
	display: none; /* shown only at ≥ 1024px */
}

/* ============================================================
   HERO CARD
   ============================================================ */
.hero-card {
	background: var(--c-white);
	border: 1px solid var(--c-border);
	border-radius: var(--radius-lg);
	padding: var(--sp-8) var(--sp-6);
	box-shadow: var(--shadow);
	position: relative;
	overflow: hidden;
	width: 100%;
}

/* Solid accent bar at top — structured, not decorative */
.hero-card::before {
	content: '';
	position: absolute;
	inset: 0 0 auto 0;
	height: 3px;
	background: var(--c-accent);
}

/* Workflow diagram — three process nodes connected by arrows */
.hero-card__flow {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: var(--sp-5);
}

.hero-card__flow-node {
	width: 26px;
	height: 26px;
	border-radius: var(--radius-sm);
	background: var(--c-accent-light);
	border: 1.5px solid rgba(31, 106, 199, 0.22);
	flex-shrink: 0;
}

.hero-card__flow-node--active {
	background: var(--c-accent);
	border-color: var(--c-accent);
}

.hero-card__flow-connector {
	flex: 1;
	height: 1.5px;
	background: var(--c-border);
	position: relative;
}

.hero-card__flow-connector::after {
	content: '';
	position: absolute;
	right: -1px;
	top: 50%;
	transform: translateY(-50%);
	width: 0;
	height: 0;
	border-left: 5px solid var(--c-border);
	border-top: 3px solid transparent;
	border-bottom: 3px solid transparent;
}

.hero-card__label {
	font-size: var(--text-sm);
	font-weight: 700;
	color: var(--c-text);
	letter-spacing: 0.01em;
	margin-bottom: var(--sp-4);
}

.hero-card__list {
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: var(--sp-2);
}

.hero-card__list li {
	display: flex;
	align-items: center;
	gap: var(--sp-2);
	font-size: var(--text-sm);
	color: var(--c-text-muted);
	line-height: 1.4;
}

.hero-card__list li::before {
	content: '';
	flex-shrink: 0;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--c-accent);
	opacity: 0.7;
}

.hero__title {
	font-size: clamp(var(--text-3xl), 5.5vw, var(--text-5xl));
	line-height: 1.1;
	letter-spacing: -0.025em;
	margin-bottom: var(--sp-6);
}

.hero__lead {
	font-size: var(--text-lg);
	color: var(--c-text-muted);
	line-height: 1.75;
	margin-bottom: var(--sp-8);
	max-width: 60ch;
}

.hero__buttons {
	margin-bottom: var(--sp-6);
}

.hero__note {
	font-size: var(--text-sm);
	color: var(--c-text-muted);
	padding-top: var(--sp-2);
	border-top: 1px solid var(--c-border);
	max-width: 52ch;
}

/* ============================================================
   EXPERTISE
   ============================================================ */
.expertise-grid {
	display: grid;
	gap: var(--sp-6);
	grid-template-columns: 1fr;
}

.expertise-card {
	background: var(--c-white);
	border: 1px solid var(--c-border);
	border-radius: var(--radius-lg);
	padding: var(--sp-6) var(--sp-6) var(--sp-6);
	transition:
		box-shadow var(--transition),
		border-color var(--transition),
		transform var(--transition);
}

.expertise-card:hover {
	box-shadow: var(--shadow);
	border-color: var(--c-accent);
	transform: translateY(-2px);
}

/* Larger heading improves card hierarchy */
.expertise-card__title {
	font-size: var(--text-lg);
	font-weight: 700;
	margin-bottom: var(--sp-3);
}

.expertise-card__text {
	font-size: var(--text-sm);
	color: var(--c-text-muted);
	line-height: 1.65;
	max-width: 100%;
}

/* ============================================================
   PROFILE / VALUE
   ============================================================ */
.profile__content {
	display: grid;
	gap: var(--sp-6);
	max-width: 680px;
	border-left: 3px solid var(--c-accent);
	padding-left: var(--sp-8);
}

.profile__text {
	font-size: var(--text-lg);
	color: var(--c-text-muted);
	line-height: 1.75;
	max-width: 62ch;
}

/* ============================================================
   FOR WHOM
   ============================================================ */
.for-whom__content {
	max-width: 680px;
}

.for-whom__text {
	font-size: var(--text-lg);
	color: var(--c-text-muted);
	line-height: 1.75;
	margin-bottom: var(--sp-8);
}

.for-whom__list {
	display: flex;
	flex-direction: column;
	gap: var(--sp-4);
}

.for-whom__list li {
	display: flex;
	align-items: flex-start;
	gap: var(--sp-3);
	font-size: var(--text-lg);
	color: var(--c-text-muted);
	line-height: 1.6;
}

.for-whom__list li::before {
	content: '';
	display: block;
	width: 6px;
	height: 6px;
	min-width: 6px;
	border-radius: 50%;
	background: var(--c-accent);
	margin-top: 0.6em;
	flex-shrink: 0;
}

/* ============================================================
   WORKING METHOD
   ============================================================ */
.method-steps {
	display: grid;
	gap: var(--sp-8);
	grid-template-columns: 1fr;
}

/* Mobile: number sits left of text */
.method-step {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: var(--sp-5);
	align-items: start;
}

.method-step__number {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	min-width: 44px;
	background: var(--c-accent-light);
	color: var(--c-accent);
	font-size: var(--text-base);
	font-weight: 800;
	border-radius: 50%;
	line-height: 1;
}

.method-step__title {
	font-size: var(--text-lg);
	font-weight: 700;
	margin-bottom: var(--sp-2);
}

.method-step__text {
	font-size: var(--text-base);
	color: var(--c-text-muted);
	line-height: 1.65;
	max-width: 100%;
}

/* ============================================================
   AVAILABILITY CTA
   ============================================================ */
.availability-cta {
	background: linear-gradient(135deg, var(--c-accent) 0%, var(--c-secondary) 100%);
	padding-block: var(--sp-12);
}

.availability-cta__inner {
	max-width: 680px;
}

.availability-cta__title {
	font-size: clamp(var(--text-2xl), 4vw, var(--text-4xl));
	color: var(--c-white);
	line-height: 1.15;
	letter-spacing: -0.02em;
	margin-bottom: var(--sp-6);
}

/* Full white passes WCAG AA on #2563eb (contrast ≥ 4.5:1) */
.availability-cta__text {
	font-size: var(--text-lg);
	color: rgba(255, 255, 255, 0.92);
	line-height: 1.7;
	margin-bottom: var(--sp-4);
	max-width: 56ch;
}

.availability-cta__buttons {
	margin-top: var(--sp-6);
}

/* ============================================================
   CONTACT CTA
   ============================================================ */
.contact-cta {
	padding-block: var(--sp-14);
	background: var(--c-bg);
	border-top: 1px solid var(--c-border);
}

.contact-cta__inner {
	max-width: 680px;
}

.contact-cta__title {
	font-size: clamp(var(--text-2xl), 4vw, var(--text-4xl));
	letter-spacing: -0.02em;
	margin-bottom: var(--sp-6);
}

.contact-cta__text {
	font-size: var(--text-lg);
	color: var(--c-text-muted);
	line-height: 1.75;
	margin-bottom: var(--sp-8);
	max-width: 56ch;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
	background: var(--c-dark);
	/* Bumped from 0.65 → 0.80 for WCAG-compliant contrast on dark background */
	color: rgba(255, 255, 255, 0.80);
	padding-block: var(--sp-16) var(--sp-8);
}

.footer-grid {
	display: grid;
	gap: var(--sp-12);
	margin-bottom: var(--sp-12);
}

.footer-brand {
	padding-top: var(--sp-2);
}

.footer-brand__name {
	font-size: var(--text-xl);
	font-weight: 800;
	color: var(--c-white);
	letter-spacing: -0.04em;
	margin-bottom: var(--sp-3);
}

.footer-brand__tagline {
	font-size: var(--text-sm);
	line-height: 1.65;
	max-width: 36ch;
}

/* Use a CSS variable, not a magic number */
.footer-col__title {
	font-size: var(--text-xs);
	font-weight: 700;
	color: var(--c-white);
	text-transform: uppercase;
	letter-spacing: 0.1em;
	margin-bottom: var(--sp-4);
}

.footer-contact-list,
.footer-legal-list {
	display: flex;
	flex-direction: column;
	gap: var(--sp-2);
}

.footer-contact-list li,
.footer-legal-list li {
	font-size: var(--text-sm);
	line-height: 1.55;
}

.footer-contact-list a,
.footer-legal-list a {
	color: rgba(255, 255, 255, 0.80);
	text-decoration: none;
	transition: color var(--transition);
}

.footer-contact-list a:hover,
.footer-legal-list a:hover {
	color: var(--c-white);
}

/* Cookie-instellingen link — matches other legal links regardless of Complianz global styles */
.footer-legal-list .cmplz-manage-consent {
	color: rgba(255, 255, 255, 0.80);
	text-decoration: none;
	transition: color var(--transition);
	background: none;
	border: none;
	padding: 0;
	font-size: inherit;
	cursor: pointer;
}

.footer-legal-list .cmplz-manage-consent:hover {
	color: var(--c-white);
}

/* Hide Complianz floating manage-consent tab — cookie settings accessible via footer */
.cmplz-manage-consent-container {
	display: none !important;
}

/* Dark-background context (footer): faint white */
.site-footer .placeholder {
	color: rgba(255, 255, 255, 0.35);
	font-style: italic;
}

/* Light-background context (contact sidebar): muted dark text */
.contact-sidebar .placeholder {
	color: var(--c-text-muted);
	font-style: italic;
}

.footer-bottom {
	padding-top: var(--sp-8);
	border-top: 1px solid rgba(255, 255, 255, 0.10);
	display: flex;
	flex-wrap: wrap;
	gap: var(--sp-4);
	justify-content: space-between;
	align-items: center;
}

/* Bumped from 0.35 → 0.55 for legibility */
.footer-bottom__copy {
	font-size: var(--text-xs);
	color: rgba(255, 255, 255, 0.55);
}

/* ============================================================
   PAGE TEMPLATE
   ============================================================ */
.page-content {
	padding-block: var(--sp-20);
}

.entry-header {
	margin-bottom: var(--sp-10);
}

.entry-title {
	font-size: clamp(var(--text-3xl), 5vw, var(--text-4xl));
	letter-spacing: -0.02em;
	line-height: 1.15;
}

.entry-body {
	max-width: 680px;
}

.entry-body h2 {
	font-size: var(--text-2xl);
	margin-top: var(--sp-10);
	margin-bottom: var(--sp-4);
}

.entry-body h3 {
	font-size: var(--text-xl);
	margin-top: var(--sp-8);
	margin-bottom: var(--sp-3);
}

.entry-body p {
	margin-bottom: var(--sp-5);
	line-height: 1.75;
	max-width: 68ch;
}

.entry-body ul,
.entry-body ol {
	margin-bottom: var(--sp-5);
	padding-left: var(--sp-6);
}

.entry-body ul { list-style: disc; }
.entry-body ol { list-style: decimal; }

.entry-body li {
	margin-bottom: var(--sp-2);
	line-height: 1.65;
}

.entry-body a      { color: var(--c-accent); }
.entry-body strong { font-weight: 700; }

/* ============================================================
   FORM STYLES — ready for plugin integration
   ============================================================ */
.contact-form-wrap {
	max-width: 600px;
	margin-top: var(--sp-10);
}

.contact-form-wrap input[type="text"],
.contact-form-wrap input[type="email"],
.contact-form-wrap input[type="tel"],
.contact-form-wrap textarea,
.contact-form-wrap select {
	width: 100%;
	padding: 0.75rem 1rem;
	font-family: var(--font);
	font-size: var(--text-base);
	color: var(--c-text);
	background: var(--c-bg);
	border: 1.5px solid var(--c-border);
	border-radius: var(--radius);
	transition: border-color var(--transition), box-shadow var(--transition);
	appearance: none;
	-webkit-appearance: none;
}

.contact-form-wrap input:focus,
.contact-form-wrap textarea:focus,
.contact-form-wrap select:focus {
	outline: none;
	border-color: var(--c-accent);
	box-shadow: 0 0 0 3px rgba(31, 106, 199, 0.15);
}

.contact-form-wrap textarea {
	min-height: 140px;
	resize: vertical;
}

.contact-form-wrap label {
	display: block;
	font-size: var(--text-sm);
	font-weight: 600;
	margin-bottom: var(--sp-2);
	color: var(--c-text);
}

.contact-form-wrap .form-field,
.contact-form-wrap .gfield,
.contact-form-wrap .wpcf7-form-control-wrap {
	margin-bottom: var(--sp-5);
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.page-contact {
	padding-block: var(--sp-16) var(--sp-20);
}

/* Header block with intro text */
.contact-header {
	max-width: 780px;
	margin-bottom: var(--sp-12);
	padding-bottom: var(--sp-10);
	border-bottom: 1px solid var(--c-border);
}

.contact-header__title {
	font-size: clamp(var(--text-3xl), 5vw, var(--text-4xl));
	letter-spacing: -0.02em;
	line-height: 1.15;
	margin-bottom: var(--sp-6);
}

.contact-header__intro p {
	font-size: var(--text-lg);
	color: var(--c-text-muted);
	line-height: 1.75;
	margin-bottom: var(--sp-4);
	max-width: 65ch;
}

.contact-header__intro p:last-child {
	margin-bottom: 0;
}

/* Two-column grid: form left, sidebar right */
.contact-body {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--sp-10);
	align-items: start;
}

/* ---- Form column ---- */
.contact-main__title {
	font-size: var(--text-2xl);
	letter-spacing: -0.01em;
	margin-bottom: var(--sp-6);
	padding-bottom: var(--sp-5);
	border-bottom: 1px solid var(--c-border);
}

/* Helper text between the section title and the form */
.contact-form-helper {
	font-size: var(--text-base);
	color: var(--c-text-muted);
	margin-bottom: var(--sp-6);
	max-width: 52ch;
}

/* Dashed placeholder box — visible until a form plugin shortcode is added */
.contact-form-placeholder {
	padding: var(--sp-12) var(--sp-8);
	background: var(--c-surface);
	border: 1.5px dashed var(--c-border);
	border-radius: var(--radius-lg);
	text-align: center;
}

.contact-form-placeholder p {
	font-size: var(--text-base);
	color: var(--c-text-muted);
	max-width: 100%;
}

/* Remove the generic form-wrap top-margin so helper text spacing alone governs */
.page-contact .contact-form-wrap {
	margin-top: 0;
}

/* ---- Sidebar column ---- */
.contact-sidebar {
	background: var(--c-surface);
	border: 1px solid var(--c-border);
	border-radius: var(--radius-lg);
	padding: var(--sp-8);
}

.contact-sidebar__title {
	font-size: var(--text-lg);
	font-weight: 700;
	margin-bottom: var(--sp-6);
	padding-bottom: var(--sp-5);
	border-bottom: 1px solid var(--c-border);
	display: flex;
	align-items: center;
	gap: var(--sp-3);
}

/* Accent bar left of sidebar title — mirrors the profile section treatment */
.contact-sidebar__title::before {
	content: '';
	display: block;
	width: 3px;
	height: 1.1em;
	background: var(--c-accent);
	border-radius: 2px;
	flex-shrink: 0;
}

.contact-details {
	display: flex;
	flex-direction: column;
	gap: var(--sp-6);
	margin-bottom: var(--sp-8);
}

.contact-detail__label {
	display: block;
	font-size: var(--text-xs);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.09em;
	color: var(--c-text-muted);
	margin-bottom: var(--sp-1);
}

.contact-detail__value {
	display: block;
	font-size: var(--text-base);
	font-weight: 500;
	color: var(--c-text);
}

.contact-detail__value a {
	color: var(--c-accent);
	text-decoration: none;
}

.contact-detail__value a:hover {
	text-decoration: underline;
}

.contact-company {
	padding-top: var(--sp-6);
	border-top: 1px solid var(--c-border);
}

.contact-company__name {
	font-size: var(--text-sm);
	font-weight: 700;
	color: var(--c-text);
	margin-bottom: var(--sp-2);
	max-width: 100%;
}

.contact-company__meta {
	font-size: var(--text-sm);
	color: var(--c-text-muted);
	line-height: 2;
	max-width: 100%;
}

/* Desktop: two-column layout, sidebar sticky under the header */
@media (min-width: 768px) {
	.contact-body {
		grid-template-columns: 1fr 300px;
		gap: var(--sp-16);
	}

	.contact-sidebar {
		position: sticky;
		top: calc(var(--header-h) + var(--sp-6));
	}
}

/* ============================================================
   FLUENT FORMS
   ============================================================

   Scope: .fluentform (the <form> element Fluent Forms outputs).
   The generic .contact-form-wrap rules above provide a base layer;
   these rules target FF-specific classes and correct their defaults.

   !important is used only on the submit button colors because Fluent
   Forms can write inline style="" attributes from its form builder that
   would otherwise override class-based rules.
   ============================================================ */

/* Strip any box/padding FF adds to its outer wrapper */
.fluentform-form-container {
	padding: 0 !important;
	border: none !important;
	box-shadow: none !important;
	background: transparent !important;
}

/* Inherit the theme font everywhere inside the form */
.fluentform,
.fluentform * {
	font-family: var(--font);
}

/* ---- Field groups ---- */
.ff-el-group {
	margin-bottom: var(--sp-4); /* 16px — tighter than generic sp-5 */
}

/* ---- Labels ---- */
.ff-el-input--label {
	margin-bottom: 0; /* reset any FF default wrapper margin */
}

.ff-el-input--label label {
	display: block;
	font-size: var(--text-sm);
	font-weight: 600;
	color: var(--c-text);
	margin-bottom: 6px;
	line-height: 1.4;
}

/* Required asterisk — red, not accent blue, for clearer semantics */
.ff-el-req {
	color: #dc2626;
	margin-left: 2px;
	font-weight: 700;
	font-size: 0.85em;
	vertical-align: middle;
}

/* ---- Text, email, tel inputs and textarea ---- */
.fluentform .ff-el-form-control {
	display: block;
	width: 100%;
	padding: 0.75rem 0.875rem; /* 12px 14px */
	font-size: var(--text-base);
	color: var(--c-text);
	background: var(--c-bg);
	border: 1.5px solid var(--c-border);
	border-radius: var(--radius);
	line-height: 1.5;
	transition: border-color var(--transition), box-shadow var(--transition);
	appearance: none;
	-webkit-appearance: none;
}

.fluentform .ff-el-form-control::placeholder {
	color: var(--c-text-muted);
	opacity: 1; /* Firefox normalisation */
}

.fluentform .ff-el-form-control:focus {
	outline: none;
	border-color: var(--c-accent);
	box-shadow: 0 0 0 3px rgba(31, 106, 199, 0.15);
}

/* :focus-visible so mouse users don't see the ring; keyboard users do */
.fluentform .ff-el-form-control:focus:not(:focus-visible) {
	box-shadow: none;
	border-color: var(--c-accent);
}

.fluentform textarea.ff-el-form-control {
	min-height: 120px;
	resize: vertical;
}

/* ---- Field-level error state ---- */
.ff-el-group.ff-el-is-error .ff-el-form-control {
	border-color: #dc2626;
	box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.10);
}

.ff-el-group.ff-el-is-error .ff-el-form-control:focus {
	box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.18);
}

/* ---- Inline validation messages ---- */
.ff-el-group .error,
.ff-el-error-message {
	display: block;
	margin-top: var(--sp-1); /* 4px — tight to the input, not a new paragraph */
	font-size: var(--text-sm);
	color: #dc2626;
	line-height: 1.45;
}

/* ---- Checkbox ---- */
/* Fluent Forms wraps each option in .ff-el-form-check */
.ff-el-form-check {
	display: flex;
	align-items: flex-start;
	gap: var(--sp-2); /* 8px — compact but readable */
	cursor: pointer;
}

/* Space between stacked checkbox options */
.ff-el-form-check + .ff-el-form-check {
	margin-top: var(--sp-2);
}

.ff-el-form-check-input[type="checkbox"] {
	width: 18px;
	height: 18px;
	min-width: 18px;
	margin-top: 2px; /* optical alignment with first line of label text */
	background: var(--c-bg);
	border: 1.5px solid var(--c-border);
	border-radius: var(--radius-sm);
	appearance: none;
	-webkit-appearance: none;
	cursor: pointer;
	flex-shrink: 0;
	transition: background var(--transition), border-color var(--transition);
}

.ff-el-form-check-input[type="checkbox"]:checked {
	background-color: var(--c-accent);
	border-color: var(--c-accent);
	/* SVG checkmark, URL-encoded, no external request */
	background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12.207 4.793a1 1 0 0 1 0 1.414l-5 5a1 1 0 0 1-1.414 0l-2-2a1 1 0 0 1 1.414-1.414L6.5 9.086l4.293-4.293a1 1 0 0 1 1.414 0z'/%3E%3C/svg%3E");
	background-size: 11px 11px;
	background-position: center;
	background-repeat: no-repeat;
}

.ff-el-form-check-input[type="checkbox"]:focus-visible {
	outline: 2px solid var(--c-accent);
	outline-offset: 2px;
	border-radius: 3px;
}

/* The label text next to a checkbox */
.ff-el-form-check-label {
	font-size: var(--text-sm);
	font-weight: 400; /* checkbox labels are normal weight, unlike field labels */
	color: var(--c-text-muted);
	line-height: 1.55;
	cursor: pointer;
}

.ff-el-form-check-label a {
	color: var(--c-accent);
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* ---- Submit button — matches .btn--primary ---- */
.ff_submit_btn_wrapper {
	margin-top: var(--sp-2); /* 8px — sits close to the last field */
}

.fluentform .ff-btn-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--sp-2);
	padding: 0.75rem 1.75rem;
	font-size: var(--text-base);
	font-weight: 600;
	line-height: 1;
	/* !important overrides inline style="" the FF form builder may inject */
	color: var(--c-white) !important;
	background: var(--c-accent) !important;
	border: 2px solid var(--c-accent) !important;
	border-radius: var(--radius);
	cursor: pointer;
	text-decoration: none;
	white-space: nowrap;
	transition: background var(--transition), border-color var(--transition);
}

.fluentform .ff-btn-submit:hover {
	background: var(--c-accent-dark) !important;
	border-color: var(--c-accent-dark) !important;
}

.fluentform .ff-btn-submit:focus-visible {
	outline: 2px solid var(--c-accent);
	outline-offset: 3px;
}

/* Disabled / loading state during AJAX submission */
.fluentform .ff-btn-submit:disabled,
.fluentform .ff-btn-submit.ff-btn-loading {
	opacity: 0.65;
	cursor: not-allowed;
	pointer-events: none;
}

/* ---- Success message (shown after successful submission) ---- */
.ff-message-success {
	padding: var(--sp-6) var(--sp-8);
	background: #f0fdf4;
	border: 1px solid #bbf7d0;
	border-left: 4px solid #16a34a;
	border-radius: var(--radius);
	color: #15803d;
	font-size: var(--text-base);
	line-height: 1.65;
}

.ff-message-success p {
	max-width: 100%;
	margin-bottom: 0;
	color: inherit;
}

/* ---- Server-side error / failed submission ---- */
.ff-message-error,
.ff_errors_response {
	padding: var(--sp-6) var(--sp-8);
	background: #fef2f2;
	border: 1px solid #fecaca;
	border-left: 4px solid #dc2626;
	border-radius: var(--radius);
	color: #b91c1c;
	font-size: var(--text-base);
	line-height: 1.65;
}

.ff-message-error p,
.ff_errors_response p {
	max-width: 100%;
	margin-bottom: 0;
	color: inherit;
}

/* ============================================================
   WORDPRESS UTILITY CLASSES
   ============================================================ */
.alignleft   { float: left;  margin-right: var(--sp-6); margin-bottom: var(--sp-4); }
.alignright  { float: right; margin-left:  var(--sp-6); margin-bottom: var(--sp-4); }
.aligncenter { display: block; margin-inline: auto; margin-bottom: var(--sp-4); }

.wp-caption      { max-width: 100%; }
.wp-caption-text { font-size: var(--text-sm); color: var(--c-text-muted); margin-top: var(--sp-2); }

/* ============================================================
   RESPONSIVE — mobile-first
   ============================================================ */

/* Small (≥ 480px) */
@media (min-width: 480px) {
	.expertise-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* Medium (≥ 640px) */
@media (min-width: 640px) {
	.site-logo__img {
		max-height: 48px;
	}

	.method-steps {
		grid-template-columns: repeat(2, 1fr);
	}

	.footer-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* Large (≥ 1024px) */
@media (min-width: 1024px) {
	/* Restore generous section padding on large screens */
	.section {
		padding-block: var(--sp-20);
	}

	.hero {
		padding-top: var(--sp-24);
		padding-bottom: var(--sp-20);
	}

	.hero__inner {
		display: grid;
		grid-template-columns: 1fr 300px;
		gap: var(--sp-12);
		align-items: center;
	}

	.hero__content {
		max-width: none;
	}

	.hero__visual {
		display: flex;
		align-items: center;
		justify-content: flex-end;
	}

	.availability-cta,
	.contact-cta {
		padding-block: var(--sp-16);
	}

	.nav-toggle {
		display: none;
	}

	.primary-nav {
		display: flex;
	}

	.expertise-grid {
		grid-template-columns: repeat(3, 1fr);
	}

	/* 4-column method steps: stack number above text within each cell */
	.method-steps {
		grid-template-columns: repeat(4, 1fr);
		gap: var(--sp-6);
	}

	/* Single-column grid inside each step stacks number → body vertically.
	   align-content: start pins rows to the top so headings stay level
	   even when the outer grid stretches steps to match the tallest one. */
	.method-step {
		grid-template-columns: 1fr;
		gap: var(--sp-4);
		border-top: 2px solid var(--c-border);
		padding-top: var(--sp-6);
		align-content: start;
	}

	.footer-grid {
		grid-template-columns: 2fr 1fr 1fr;
	}
}

/* XL (≥ 1280px) */
@media (min-width: 1280px) {
	:root {
		--container-pad: 2rem;
	}
}
