/* ==========================================================================
   JJCoding theme — front-end styles
   Built on theme.json tokens. Colours are driven by the --c-* custom
   properties below, which the theme.json palette references, so dark/light
   mode switches everything in one place.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Colour tokens (light = default)
   -------------------------------------------------------------------------- */
:root {
	--c-bg: #f7f8f7;
	--c-surface: #ffffff;
	--c-surface-2: #eef1ef;
	--c-text: #1a1f1c;
	--c-text-muted: #596058;
	--c-border: #e1e6e1;

	--c-accent: #2e8b57;            /* brand Sea Green — fills, borders, marks */
	--c-accent-ink: #1f6e45;        /* accent used as text/buttons (AA on light) */
	--c-accent-hover: #185a38;
	--c-on-accent: #ffffff;
	--c-accent-tint: rgba(46, 139, 87, 0.10);
	--c-accent-2: #17a39a;          /* light sea green (teal) — gradient partner */
	--c-grad: linear-gradient(120deg, var(--c-accent), var(--c-accent-2));
	--c-btn-grad: linear-gradient(120deg, #1f6e45, #12776f);
	--c-glow-1: rgba(46, 139, 87, 0.24);
	--c-glow-2: rgba(32, 178, 170, 0.16);
	--c-danger: #c82a2a;

	--c-header-bg: rgba(247, 248, 247, 0.82);
	--c-shadow-card: 0 1px 2px rgba(16, 32, 24, 0.04), 0 10px 28px rgba(16, 32, 24, 0.06);
	--c-shadow-lift: 0 8px 18px rgba(16, 32, 24, 0.10), 0 22px 48px rgba(16, 32, 24, 0.14);
	--c-grid-line: rgba(26, 31, 28, 0.05);

	color-scheme: light;
}

/* Dark values: applied when the system prefers dark AND the visitor has not
   forced light, or when dark is explicitly chosen via the toggle. */
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--c-bg: #0c0f0d;
		--c-surface: #141814;
		--c-surface-2: #1b211c;
		--c-text: #e9ede9;
		--c-text-muted: #9aa49b;
		--c-border: #273028;

		--c-accent: #46b47a;
		--c-accent-ink: #5fc48e;
		--c-accent-hover: #7ad3a6;
		--c-on-accent: #07120b;
		--c-accent-tint: rgba(70, 180, 122, 0.14);
		--c-accent-2: #3ec9bd;
		--c-grad: linear-gradient(120deg, var(--c-accent), var(--c-accent-2));
		--c-btn-grad: linear-gradient(120deg, #5fc48e, #46c4b4);
		--c-glow-1: rgba(70, 180, 122, 0.20);
		--c-glow-2: rgba(63, 201, 189, 0.16);
		--c-danger: #ff6b6b;

		--c-header-bg: rgba(12, 15, 13, 0.80);
		--c-shadow-card: 0 1px 2px rgba(0, 0, 0, 0.30), 0 10px 28px rgba(0, 0, 0, 0.40);
		--c-shadow-lift: 0 8px 18px rgba(0, 0, 0, 0.45), 0 22px 48px rgba(0, 0, 0, 0.55);
		--c-grid-line: rgba(233, 237, 233, 0.05);

		color-scheme: dark;
	}
}

:root[data-theme="dark"] {
	--c-bg: #0c0f0d;
	--c-surface: #141814;
	--c-surface-2: #1b211c;
	--c-text: #e9ede9;
	--c-text-muted: #9aa49b;
	--c-border: #273028;

	--c-accent: #46b47a;
	--c-accent-ink: #5fc48e;
	--c-accent-hover: #7ad3a6;
	--c-on-accent: #07120b;
	--c-accent-tint: rgba(70, 180, 122, 0.14);
	--c-accent-2: #3ec9bd;
	--c-grad: linear-gradient(120deg, var(--c-accent), var(--c-accent-2));
	--c-btn-grad: linear-gradient(120deg, #5fc48e, #46c4b4);
	--c-glow-1: rgba(70, 180, 122, 0.20);
	--c-glow-2: rgba(63, 201, 189, 0.16);
	--c-danger: #ff6b6b;

	--c-header-bg: rgba(12, 15, 13, 0.80);
	--c-shadow-card: 0 1px 2px rgba(0, 0, 0, 0.30), 0 10px 28px rgba(0, 0, 0, 0.40);
	--c-shadow-lift: 0 8px 18px rgba(0, 0, 0, 0.45), 0 22px 48px rgba(0, 0, 0, 0.55);
	--c-grid-line: rgba(233, 237, 233, 0.05);

	color-scheme: dark;
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */
html {
	scroll-behavior: smooth;
	scroll-padding-top: 5.5rem; /* clear the sticky header on anchor jumps */
}

body {
	background-color: var(--c-bg);
	color: var(--c-text);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

::selection {
	background: var(--c-accent);
	color: var(--c-on-accent);
}

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

:where(img, svg, video) { max-width: 100%; height: auto; }

/* Visible focus for keyboard users everywhere. */
:where(a, button, input, textarea, select, summary, [tabindex]):focus-visible {
	outline: 3px solid var(--c-accent);
	outline-offset: 2px;
	border-radius: 4px;
}

/* Rounded media throughout. */
.wp-block-image img,
figure.wp-block-image > img {
	border-radius: var(--wp--custom--radius--md, 14px);
}

/* --------------------------------------------------------------------------
   3. Buttons & pills
   -------------------------------------------------------------------------- */
.wp-element-button,
.wp-block-button__link {
	background-color: var(--c-accent-ink);
	background-image: var(--c-btn-grad);
	color: var(--c-on-accent);
	border-radius: var(--wp--custom--radius--pill, 999px);
	padding: 0.7em 1.5em;
	font-weight: 600;
	transition: filter 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.wp-element-button:hover,
.wp-block-button__link:hover {
	filter: brightness(1.08) saturate(1.05);
	transform: translateY(-2px);
	box-shadow: var(--c-shadow-card);
	color: var(--c-on-accent);
}

/* Outline button variant (use the "is-style-outline" block style). */
.wp-block-button.is-style-outline .wp-block-button__link {
	background: transparent;
	color: var(--c-accent-ink);
	border: 1.5px solid var(--c-border);
}
.wp-block-button.is-style-outline .wp-block-button__link:hover {
	border-color: var(--c-accent);
	color: var(--c-accent-hover);
	background: var(--c-accent-tint);
}

/* --------------------------------------------------------------------------
   4. Sections & shared bits
   -------------------------------------------------------------------------- */
.jj-section {
	padding-block: var(--wp--preset--spacing--70, 6rem);
	scroll-margin-top: 5rem;
	/* opaque and above the hero, so the hero glow trailing down disappears
	   behind the section that follows it (the stack sets its own background). */
	position: relative;
	z-index: 1;
	background-color: var(--c-bg);
}

.jj-eyebrow {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.78rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--c-accent-ink);
	margin-bottom: 0.35rem;
}

/* Spacing: keep the eyebrow tight to the heading it introduces, everywhere.
   (WordPress' block-gap otherwise pushes the heading a full 1.5rem down.) */
.jj-eyebrow + * { margin-top: 0 !important; }
.jj-heading-block > * + * { margin-top: 0.35rem; }
.jj-about-grid h2,
.jj-contact-intro h2,
.jj-affiliate h2 { margin-top: 0.35rem; margin-bottom: 0.7rem; }

.jj-lead {
	color: var(--c-text-muted);
	font-size: var(--wp--preset--font-size--large, 1.25rem);
	max-width: 44ch;
}

/* --------------------------------------------------------------------------
   5. Header
   -------------------------------------------------------------------------- */
.wp-site-blocks > header,
header.wp-block-template-part {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--c-header-bg);
	backdrop-filter: saturate(140%) blur(10px);
	-webkit-backdrop-filter: saturate(140%) blur(10px);
	border-bottom: 1px solid var(--c-border);
}
.jj-header-inner {
	padding-block: 0.7rem;
}
.jj-header-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
}

/* Accessible skip link + visually-hidden helper */
.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0);
	white-space: nowrap; border: 0;
}
.jj-skip-link:focus {
	position: fixed;
	top: 0.75rem; left: 0.75rem;
	width: auto; height: auto;
	clip: auto; margin: 0;
	z-index: 1000;
	background: var(--c-accent-ink);
	color: var(--c-on-accent);
	padding: 0.6rem 1rem;
	border-radius: var(--wp--custom--radius--md, 14px);
	font-weight: 600;
}
.jj-logo {
	display: inline-flex;
	align-items: center;
	color: var(--c-text);
}
.jj-logo svg {
	height: 30px;
	width: auto;
	display: block;
}
.jj-logo:focus-visible { outline-offset: 4px; }
/* Logo: braces turn lightseagreen on hover, with a smooth transition. */
.jj-logo svg path { transition: fill 0.3s ease; }
.jj-logo:hover svg path[style*="46,139,87"],
.jj-logo:focus-visible svg path[style*="46,139,87"] { fill: lightseagreen !important; }

/* Primary nav */
.jj-nav {
	display: flex;
	gap: 1.4rem;
	align-items: center;
}
.jj-nav a {
	color: var(--c-text);
	text-decoration: none;
	font-size: 0.95rem;
	font-weight: 500;
	position: relative;
	padding-block: 0.3rem;
}
.jj-nav a::after {
	content: "";
	position: absolute;
	left: 0; right: 0; bottom: 0;
	height: 2px;
	background: var(--c-accent);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.2s ease;
}
.jj-nav a:hover { color: var(--c-accent-ink); }
.jj-nav a:hover::after { transform: scaleX(1); }

/* .jj-nav becomes a dropdown panel on mobile — see the mobile-nav block below. */
.jj-header-inner { position: relative; }

/* Language switcher + theme toggle cluster */
.jj-actions {
	display: flex;
	align-items: center;
	gap: 0.6rem;
}

.jj-lang {
	display: inline-flex;
	gap: 0.15rem;
	align-items: center;
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.8rem;
}
.jj-lang a, .jj-lang span {
	color: var(--c-text-muted);
	text-decoration: none;
	padding: 0.2rem 0.4rem;
	border-radius: var(--wp--custom--radius--sm, 8px);
	text-transform: uppercase;
}
.jj-lang a:hover { color: var(--c-text); background: var(--c-surface-2); }
.jj-lang .current-lang,
.jj-lang .lang-item-current span { color: var(--c-accent-ink); font-weight: 700; }
.jj-lang ul { list-style: none; margin: 0; padding: 0; display: inline-flex; gap: 0.15rem; }
.jj-lang li { margin: 0; }
.jj-lang img { display: none; } /* text-only switch; keep it tidy */

/* Theme toggle */
.jj-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: var(--wp--custom--radius--pill, 999px);
	border: 1px solid var(--c-border);
	background: var(--c-surface);
	color: var(--c-text);
	cursor: pointer;
	transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}
.jj-toggle:hover { border-color: var(--c-accent); transform: translateY(-1px); }
.jj-toggle svg { width: 18px; height: 18px; }
.jj-toggle .jj-icon-sun { display: none; }
.jj-toggle .jj-icon-moon { display: block; }
:root[data-theme="dark"] .jj-toggle .jj-icon-sun { display: block; }
:root[data-theme="dark"] .jj-toggle .jj-icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .jj-toggle .jj-icon-sun { display: block; }
	:root:not([data-theme="light"]) .jj-toggle .jj-icon-moon { display: none; }
}

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */
.jj-hero {
	position: relative;
	padding-block: clamp(3.5rem, 8vw, 7rem);
	/* overflow visible so the glow can trail down past the hero and slide
	   behind the next (opaque) section; the glow is clamped horizontally in
	   theme.js so nothing bleeds sideways. */
	overflow: visible;
	/* cursor position for the interactive spotlight (updated by theme.js) */
	--mx: 50%;
	--my: 38%;
}

/* Layered, cursor-reactive background — spans the full section width
   (override the constrained layout's max-width that WP adds to children). */
.jj-hero__bg {
	position: absolute; inset: 0;
	max-width: none;
	width: 100%;
	pointer-events: none;
	overflow: hidden;
}

/* Base faint grid, faded out toward the edges */
.jj-hero__grid {
	position: absolute; inset: 0;
	background-image:
		linear-gradient(var(--c-grid-line) 1px, transparent 1px),
		linear-gradient(90deg, var(--c-grid-line) 1px, transparent 1px);
	background-size: 46px 46px;
	-webkit-mask-image: radial-gradient(ellipse 85% 75% at 50% 0%, #000 40%, transparent 100%);
	mask-image: radial-gradient(ellipse 85% 75% at 50% 0%, #000 40%, transparent 100%);
}

/* Brighter grid revealed only around the cursor */
.jj-hero__gridlit {
	position: absolute; inset: 0;
	background-image:
		linear-gradient(var(--c-accent) 1px, transparent 1px),
		linear-gradient(90deg, var(--c-accent) 1px, transparent 1px);
	background-size: 46px 46px;
	opacity: 0.5;
	-webkit-mask-image: radial-gradient(circle 240px at var(--mx) var(--my), #000 0%, transparent 70%);
	mask-image: radial-gradient(circle 240px at var(--mx) var(--my), #000 0%, transparent 70%);
	transition: opacity 0.3s ease;
}

/* Seagreen -> lightseagreen glow that follows the cursor.
   It is ONE soft blob: theme.js fills it with a short chain of tapering,
   overlapping dots that lag progressively. Stacked, they read as a single
   circle at rest; as the cursor moves they string out along its path and the
   soft overlap + shared blur keep them a single morphing teardrop (round head
   leading, tapering tail). A centred radial is the fallback for touch /
   reduced-motion / no-JS (where the chain never initialises). */
.jj-hero__glow {
	position: absolute;
	inset: 0;
	pointer-events: none;
	filter: blur(11px);
	background: radial-gradient(circle 150px at 50% 40%,
		var(--c-glow-1) 0%, var(--c-glow-2) 46%, transparent 72%);
}
.jj-hero__glow.is-live { background: none; } /* the JS chain takes over */
.jj-hero__dot {
	position: absolute;
	top: 0; left: 0;
	border-radius: 50%;
	background: radial-gradient(circle at 50% 50%,
		var(--c-glow-1) 0%, var(--c-glow-2) 46%, transparent 72%);
	transform: translate(-50%, -50%);
	will-change: transform;
}

.jj-hero__content { position: relative; text-align: center; }
.jj-hero__content .jj-eyebrow { color: var(--c-accent-ink); }
.jj-hero__content .jj-lead { margin-inline: auto; } /* keep centred within the column */
.jj-hero h1 {
	font-size: var(--wp--preset--font-size--xx-large, 3rem);
	margin-inline: auto;
}
.jj-hero .jj-accent {
	background: var(--c-btn-grad); /* darker stops -> stays AA as text */
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
/* keep the accent readable where gradient text isn't supported */
@supports not (background-clip: text) {
	.jj-hero .jj-accent { color: var(--c-accent-ink); }
}

/* --------------------------------------------------------------------------
   7. Stat strip (big numbers)
   -------------------------------------------------------------------------- */
.jj-stats {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
	border-block: 1px solid var(--c-border);
	padding-block: var(--wp--preset--spacing--50, 3rem);
}
.jj-stat { display: flex; align-items: baseline; gap: 0.75rem; }
.jj-stat__num {
	font-family: var(--wp--preset--font-family--mono);
	font-weight: 700;
	font-size: clamp(2.6rem, 6vw, 4rem);
	line-height: 1;
	color: var(--c-text);
	font-variant-numeric: tabular-nums;
}
.jj-stat__label {
	color: var(--c-text-muted);
	font-size: 0.95rem;
	line-height: 1.25;
	max-width: 20ch;
}
@media (max-width: 720px) {
	.jj-stats { grid-template-columns: 1fr; gap: 1rem; }
}

/* When sections are authored as core blocks (page content), neutralise the
   editor's block-gap margins so the grids/flex rows line up as designed. */
.jj-stats > *,
.jj-stat > *,
.jj-grid > *,
.jj-about-grid > *,
.jj-contact-grid > * { margin-block: 0; }
.jj-stat__num, .jj-stat__label { margin: 0; }

/* --------------------------------------------------------------------------
   8. Cards (services) & generic grid
   -------------------------------------------------------------------------- */
.jj-grid { display: grid; gap: 1.25rem; }
.jj-grid--3 { grid-template-columns: repeat(3, 1fr); }
.jj-grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) { .jj-grid--3 { grid-template-columns: 1fr; } .jj-grid--2 { grid-template-columns: 1fr; } }

.jj-card {
	background: var(--c-surface);
	border: 1px solid var(--c-border);
	border-radius: var(--wp--custom--radius--lg, 22px);
	padding: 1.6rem;
	box-shadow: var(--c-shadow-card);
	transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.jj-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--c-shadow-lift);
	border-color: var(--c-accent);
}
.jj-card__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px; height: 48px;
	border-radius: var(--wp--custom--radius--md, 14px);
	background: var(--c-accent-tint);
	color: var(--c-accent-ink);
	font-size: 1.25rem;
	margin-bottom: 1rem;
}
.jj-card h3 { margin: 0 0 0.4rem; font-size: 1.2rem; }
.jj-card p { margin: 0; color: var(--c-text-muted); }

/* --------------------------------------------------------------------------
   9. Stack & tools pills
   -------------------------------------------------------------------------- */
.jj-stack-group { margin-bottom: 1.6rem; }
.jj-stack-group__title {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.72rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--c-text-muted);
	margin-bottom: 0.7rem;
}
.jj-pills { display: flex; flex-wrap: wrap; gap: 0.55rem; }
.jj-pill {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	padding: 0.4rem 0.9rem;
	border: 1px solid var(--c-border);
	border-radius: var(--wp--custom--radius--pill, 999px);
	background: var(--c-surface);
	color: var(--c-text);
	font-size: 0.9rem;
	line-height: 1;
	transition: border-color 0.18s ease, color 0.18s ease, transform 0.18s ease, background 0.18s ease;
}
.jj-pill:hover {
	border-color: var(--c-accent);
	color: var(--c-accent-ink);
	background: var(--c-accent-tint);
	transform: translateY(-2px);
}
.jj-pill i { color: var(--c-accent-ink); font-size: 0.95em; }

/* --------------------------------------------------------------------------
   10. About
   -------------------------------------------------------------------------- */
.jj-about p { max-width: 60ch; color: var(--c-text-muted); }
.jj-about p.jj-eyebrow { color: var(--c-accent-ink); }
.jj-about strong { color: var(--c-text); }
.jj-about-grid {
	display: grid;
	grid-template-columns: 1.6fr 1fr;
	gap: 3rem;
	align-items: start;
}
@media (max-width: 860px) { .jj-about-grid { grid-template-columns: 1fr; gap: 1.8rem; } }
.jj-about-points { list-style: none; margin: 0; padding: 0; }
.jj-about-points li {
	display: flex;
	align-items: flex-start;
	gap: 0.7rem;
	padding: 0.7rem 0;
	border-bottom: 1px solid var(--c-border);
	color: var(--c-text);
}
.jj-about-points li:last-child { border-bottom: 0; }
.jj-about-points i { color: var(--c-accent-ink); margin-top: 0.2rem; }

/* --------------------------------------------------------------------------
   11. Contact + WPForms
   -------------------------------------------------------------------------- */
.jj-contact-grid {
	display: grid;
	grid-template-columns: 1fr 1.1fr;
	gap: 2.5rem;
	align-items: start;
}
@media (max-width: 860px) { .jj-contact-grid { grid-template-columns: 1fr; gap: 1.8rem; } }
.jj-contact-direct {
	display: flex; align-items: center; gap: 0.6rem;
	font-weight: 600; margin-top: 1.4rem;
}
.jj-contact-direct i { color: var(--c-accent-ink); }
.jj-contact-direct a { color: var(--c-text); }
.jj-contact-direct a:hover { color: var(--c-accent-ink); }
.jj-contact-note { color: var(--c-text-muted); margin-top: 0.4rem; }

.jj-contact-card {
	background: var(--c-surface);
	border: 1px solid var(--c-border);
	border-radius: var(--wp--custom--radius--lg, 22px);
	padding: clamp(1.5rem, 4vw, 2.5rem);
	box-shadow: var(--c-shadow-card);
}
.wpforms-container .wpforms-field-label {
	color: var(--c-text);
	font-weight: 600;
	font-size: 0.92rem;
}
.wpforms-container input[type="text"],
.wpforms-container input[type="email"],
.wpforms-container input[type="tel"],
.wpforms-container input[type="url"],
.wpforms-container textarea,
.wpforms-container select {
	background: var(--c-bg);
	color: var(--c-text);
	border: 1px solid var(--c-border);
	border-radius: var(--wp--custom--radius--md, 14px);
	padding: 0.7rem 0.9rem;
	width: 100%;
	transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.wpforms-container input:focus,
.wpforms-container textarea:focus,
.wpforms-container select:focus {
	border-color: var(--c-accent);
	box-shadow: 0 0 0 3px var(--c-accent-tint);
	outline: none;
}
.wpforms-container input::placeholder,
.wpforms-container textarea::placeholder { color: var(--c-text-muted); }
.wpforms-container button[type="submit"],
.wpforms-container .wpforms-submit {
	background: var(--c-accent-ink);
	color: var(--c-on-accent);
	border: none;
	border-radius: var(--wp--custom--radius--pill, 999px);
	padding: 0.7em 1.5em;
	font-family: inherit;
	font-size: 1em;
	line-height: 1.5;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.18s ease, transform 0.18s ease;
}
.wpforms-container .wpforms-submit::first-letter { text-transform: uppercase; }
.wpforms-container button[type="submit"]:hover,
.wpforms-container .wpforms-submit:hover {
	background: var(--c-accent-hover);
	transform: translateY(-2px);
}
/* WPForms layout: reset fieldset chrome, two-column name row, sublabels. */
.wpforms-container fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.wpforms-container legend.wpforms-field-label {
	float: none; width: auto; display: block;
	margin-bottom: 0.4rem; padding: 0;
}
.wpforms-container .wpforms-field { margin: 0 0 1.1rem; padding: 0; }
.wpforms-container .wpforms-field-row { display: flex; gap: 0.9rem; }
.wpforms-container .wpforms-field-row-block { flex: 1 1 0; min-width: 0; margin: 0; width: auto; }
.wpforms-container .wpforms-field-sublabel {
	display: block; margin-top: 0.3rem;
	color: var(--c-text-muted); font-size: 0.78rem; font-weight: 400;
}
.wpforms-container .wpforms-required-label { color: var(--c-danger); margin-left: 0.15rem; }
.wpforms-container .wpforms-field-description {
	color: var(--c-text-muted); font-size: 0.82rem; margin-top: 0.35rem;
}
@media (max-width: 520px) {
	.wpforms-container .wpforms-field-row { flex-direction: column; }
}

.wpforms-container label.wpforms-error { color: var(--c-danger); }
.wpforms-container .wpforms-error-container,
.wpforms-field-container input.wpforms-error,
.wpforms-field-container textarea.wpforms-error { border-color: var(--c-danger); }

/* --------------------------------------------------------------------------
   12. Hosting (affiliate) block
   -------------------------------------------------------------------------- */
.jj-affiliate {
	background: var(--c-surface-2);
	border: 1px solid var(--c-border);
	border-radius: var(--wp--custom--radius--lg, 22px);
	padding: clamp(1.5rem, 4vw, 2.5rem);
}
.jj-affiliate .jj-disclosure {
	font-size: 0.82rem;
	color: var(--c-text-muted);
	border-top: 1px dashed var(--c-border);
	margin-top: 1.2rem;
	padding-top: 1rem;
}

/* --------------------------------------------------------------------------
   13. Footer
   -------------------------------------------------------------------------- */
.wp-site-blocks > footer,
footer.wp-block-template-part {
	background: var(--c-surface);
	border-top: 1px solid var(--c-border);
	color: var(--c-text-muted);
}
.jj-footer a { color: var(--c-text-muted); text-decoration: none; }
.jj-footer a:hover { color: var(--c-accent-ink); }
.jj-footer .jj-logo svg { height: 24px; width: auto; color: var(--c-text); }
.jj-footer small { color: var(--c-text-muted); }

.jj-footer-grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr;
	gap: 2.5rem;
}
@media (max-width: 860px) { .jj-footer-grid { grid-template-columns: 1fr; gap: 1.8rem; } }
.jj-footer-brand p { margin: 0.8rem 0 0; color: var(--c-text-muted); max-width: 34ch; }
.jj-footer-col h3 {
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--c-text);
	margin: 0 0 0.8rem;
}
.jj-footer-col ul { list-style: none; margin: 0; padding: 0; }
.jj-footer-col li { margin: 0 0 0.5rem; line-height: 1.4; }
.jj-footer-copy {
	margin-top: 2.5rem;
	padding-top: 1.2rem;
	border-top: 1px solid var(--c-border);
	text-align: center;
}

/* --------------------------------------------------------------------------
   14. Motion: scroll reveal
   -------------------------------------------------------------------------- */
.jj-reveal {
	transition: opacity 0.6s ease, transform 0.6s ease;
	will-change: opacity, transform;
}
/* Content is visible by default. theme.js adds .jj-pre only to elements that
   start below the fold, so they animate in on scroll — while a no-JS page,
   deferred JS (e.g. LiteSpeed), and the block editor never hide any content. */
.jj-reveal.jj-pre { opacity: 0; transform: translateY(18px); }
.jj-reveal.jj-pre.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after {
		animation-duration: 0.001ms !important;
		transition-duration: 0.001ms !important;
	}
	.jj-reveal, .jj-reveal.jj-pre { opacity: 1; transform: none; }
}

/* ==========================================================================
   15. Work section, video tile, mijn.host logo and form refinements
   ========================================================================== */

/* Email link: no underline (keep the link) */
.jj-contact-direct a { text-decoration: none; }

/* Contact message box: fixed width, resize height only */
.wpforms-container textarea {
	resize: vertical;
	width: 100%;
	max-width: 100%;
	min-height: 130px;
}

/* mijn.host logo in the affiliate block */
.jj-affiliate__logo { margin: 0.4rem 0 0.9rem; }
.jj-affiliate__logo img {
	height: 36px; width: auto; display: block;
	background: #fff;
	padding: 9px 14px;
	border-radius: 12px;
	box-sizing: content-box;
}

/* Work / portfolio grid */
.jj-work-card {
	display: flex;
	flex-direction: column;
	padding: 0;
	overflow: hidden;
	text-decoration: none;
	color: inherit;
}
.jj-work-card__media {
	position: relative;
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: var(--c-surface-2);
}
.jj-work-card__media img {
	width: 100%; height: 100%;
	object-fit: cover;
	border-radius: 0;
	transition: transform 0.4s ease;
	display: block;
}
/* Cards are not links — a quiet lift on hover, no click affordance. */
.jj-work-card { margin: 0; }
.jj-work-card:hover { transform: none; border-color: var(--c-border); box-shadow: var(--c-shadow-card); }
.jj-work-card__body { padding: 1rem 1.2rem 1.2rem; display: flex; flex-direction: column; gap: 0.15rem; margin: 0; }
.jj-work-card__title { font-weight: 700; font-size: 1.1rem; color: var(--c-text); }
.jj-work-card__desc { color: var(--c-text-muted); font-size: 0.9rem; }

/* Video tile — the showcase block of the row */
.jj-work-video {
	position: relative;
	grid-row: span 2;            /* let it stand taller than a single card */
	min-height: 320px;
	margin: 0;
	overflow: hidden;
	border-radius: var(--wp--custom--radius--lg, 22px);
	box-shadow: var(--c-shadow-card);
	border: 1px solid var(--c-border);
}
.jj-work-video .jj-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.jj-work-video__scrim {
	position: absolute; inset: 0;
	background:
		radial-gradient(120% 90% at 100% 0%, rgba(46,139,87,0.35) 0%, transparent 55%),
		linear-gradient(180deg, rgba(5,10,8,0.10) 0%, rgba(5,10,8,0.82) 100%);
}
.jj-work-video__cap {
	position: absolute; inset: auto 0 0 0; z-index: 1;
	padding: 1.4rem;
	color: #fff; display: flex; flex-direction: column; gap: 0.25rem;
}
.jj-work-video__tag {
	align-self: flex-start;
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.85rem; font-weight: 700;
	color: #0a140f;
	background: var(--c-grad);
	padding: 0.2rem 0.55rem;
	border-radius: 8px;
	margin-bottom: 0.4rem;
}
.jj-work-video__cap strong { font-size: 1.3rem; line-height: 1.2; }
.jj-work-video__sub { font-size: 0.92rem; opacity: 0.9; }

/* Equal rows so the tall video tile lines up with two rows of cards */
.jj-work-grid { grid-auto-rows: 1fr; }
.jj-work-card { height: 100%; }
@media (max-width: 860px) {
	.jj-work-video { grid-row: auto; min-height: 220px; }
}

/* Mobile navigation (hamburger) */
.jj-nav-toggle { display: none; }
.jj-nav-toggle .jj-icon-close { display: none; }
.jj-nav-toggle[aria-expanded="true"] .jj-icon-bars { display: none; }
.jj-nav-toggle[aria-expanded="true"] .jj-icon-close { display: block; }

@media (max-width: 860px) {
	.jj-nav-toggle { display: inline-flex; }
	.jj-nav {
		position: absolute;
		top: 100%; left: 0; right: 0;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		background: var(--c-bg);
		border-bottom: 1px solid var(--c-border);
		box-shadow: var(--c-shadow-card);
		padding: 0.25rem 1.25rem 0.75rem;
		transform: translateY(-8px);
		opacity: 0;
		visibility: hidden;
		transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
	}
	.jj-nav.jj-nav--open { transform: none; opacity: 1; visibility: visible; }
	.jj-nav a { padding: 0.8rem 0.2rem; border-bottom: 1px solid var(--c-border); font-size: 1rem; }
	.jj-nav a:last-child { border-bottom: 0; }
	.jj-nav a::after { display: none; }
}
