/**
 * Modern homepage redesign for Lemmony Agency child theme.
 * Restyles existing content into a 2026-agency look: card-based
 * sections, sticky glass header, hover motion, deliberate layouts per
 * device (mobile / tablet / desktop each get their own rules below,
 * not just fluid scaling). Loosely inspired by a Tailwind reference
 * mockup the client shared (glass panels, uppercase tracked "kicker"
 * labels, gradient-border hover cards) — adapted to this theme's own
 * classes and color values, not copied 1:1.
 *
 * Loaded site-wide (header, type, buttons, footer are shared by every
 * page). Homepage-only sections are targeted through hand-added classes
 * (jd-services-row, jd-testimonials-row, jd-aprovecha-banner,
 * jd-quicknav-row, jd-stats-wrap, jd-hero-glow) on the front-page
 * content, so those rules simply don't match anywhere else.
 */

/* ---------------------------------------------------------------
 * Design tokens
 * --------------------------------------------------------------- */
:root {
	--jd-radius: 1.5rem;
	--jd-radius-sm: 1rem;
	--jd-shadow: 0 4px 24px rgba(20, 20, 20, 0.06);
	--jd-shadow-hover: 0 20px 40px rgba(20, 20, 20, 0.12);
	--jd-border: 1px solid rgba(20, 20, 20, 0.07);
	/* The site's real brand accent is applied as inline hex on content
	 * (buttons/headings), not through the theme.json "primary" palette
	 * slot (which resolves to an unused green) - use the real values. */
	--jd-accent: #ce8282;
	--jd-accent-tint: rgba(206, 130, 130, 0.12);
	--jd-accent-2: #a86842;
}

/* ---------------------------------------------------------------
 * Global polish
 * --------------------------------------------------------------- */
html {
	scroll-behavior: smooth;
}

/* Warm cream page background (reference mockup) instead of flat
 * white, so the floating header and cards have somewhere to visibly
 * float above. */
body {
	background: #fbf7f4 !important;
}

body h1,
body h2,
body h3,
body .jd-hero-typed,
body .wp-block-lemmony-companion-counter {
	font-family: "Playfair Display", var(--wp--preset--font-family--plus-jakarta), serif;
	font-weight: 600;
}

body a:focus-visible,
body button:focus-visible,
body .wp-block-button__link:focus-visible {
	outline: 2px solid var(--jd-accent);
	outline-offset: 3px;
}

body .wp-block-button__link {
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

body .wp-block-button__link:hover {
	transform: translateY(-3px);
	box-shadow: var(--jd-shadow-hover);
}

/* Uppercase, letter-spaced "kicker" labels (the small line that sits
 * above a big section heading, e.g. "Es AHORA") — matches the tracked
 * eyebrow-label convention from the reference mockup. */
body .jd-kicker,
body .jd-hero-glow > .wp-block-heading:first-of-type {
	text-transform: uppercase;
	letter-spacing: 0.15em;
	font-weight: 700;
}

body .jd-kicker::before {
	content: "";
	display: inline-block;
	width: 0.5rem;
	height: 0.5rem;
	border-radius: 50%;
	background: var(--jd-accent);
	margin-right: 0.5rem;
	vertical-align: middle;
	animation: jd-pulse 1.8s ease-in-out infinite;
}

@keyframes jd-pulse {
	0%,
	100% {
		opacity: 1;
		transform: scale(1);
	}
	50% {
		opacity: 0.4;
		transform: scale(1.4);
	}
}

@media (prefers-reduced-motion: reduce) {
	body .jd-kicker::before {
		animation: none;
	}
}

/* ---------------------------------------------------------------
 * Floating glass-pill header (inspired by the client's reference
 * mockup): inset from the viewport edges, fully rounded, floating
 * above the page instead of a full-width bar.
 *
 * `fixed`, not `sticky` — tried sticky first (it's normally the
 * safer choice), but this theme renders the header inside a
 * wrapper that only contains the header itself, with no extra
 * height for it to travel through, so sticky had nowhere to "stick"
 * and just scrolled away with the page. Fixed takes it out of flow
 * entirely instead, so `body main` below carries a compensating
 * top margin sized to the header's actual (compact) height.
 * --------------------------------------------------------------- */
body .site-header {
	position: fixed;
	top: 1rem;
	left: 1rem;
	right: 1rem;
	z-index: 100;
	max-width: 1400px;
	margin: 0 auto;
	border-radius: 9999px;
	background: rgba(255, 255, 255, 0.85);
	backdrop-filter: blur(16px) saturate(160%);
	-webkit-backdrop-filter: blur(16px) saturate(160%);
	box-shadow: 0 10px 40px rgba(20, 20, 20, 0.1), 0 0 0 1px rgba(20, 20, 20, 0.04);
}

body .site-header .wp-block-group {
	padding-top: 0.5rem !important;
	padding-bottom: 0.5rem !important;
}

body .site-header img {
	max-height: 42px;
	width: auto;
}

body main {
	margin-top: 8rem !important;
}

body .site-header .wp-block-navigation-item > .wp-block-navigation-item__content {
	position: relative;
}

body .site-header .wp-block-navigation-item > .wp-block-navigation-item__content::after {
	content: "";
	position: absolute;
	left: 0;
	right: 100%;
	bottom: -4px;
	height: 2px;
	background: var(--jd-accent);
	border-radius: 2px;
	transition: right 0.25s ease;
}

body .site-header .wp-block-navigation-item:hover > .wp-block-navigation-item__content::after {
	right: 0;
}

body .site-header .custom-logo-link,
body .site-header .wp-block-site-logo img {
	transition: transform 0.3s ease;
}

body .site-header .custom-logo-link:hover,
body .site-header .wp-block-site-logo:hover img {
	transform: scale(1.04);
}

/* ---------------------------------------------------------------
 * Mobile menu overlay — core was rendering the open panel squashed
 * to ~58px tall (its content wants ~425px, but something in the
 * fixed-pill header context was collapsing the container height),
 * so it showed as a tiny scrollable box instead of a real dropdown.
 * Setting all four offsets (top/left/right/bottom) with height:auto
 * forces the browser to size it from those instead, which fixes the
 * collapse — and doubles as a chance to give it a real design
 * instead of the bare list core falls back to.
 * --------------------------------------------------------------- */
body .wp-block-navigation__responsive-container.is-menu-open {
	position: fixed !important;
	top: 5rem !important;
	left: 1rem !important;
	right: 1rem !important;
	bottom: auto !important;
	height: calc(100vh - 6.5rem) !important;
	max-height: calc(100dvh - 6.5rem) !important;
	overflow: hidden !important;
	background: rgba(255, 255, 255, 0.98) !important;
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	border-radius: 1.75rem !important;
	box-shadow: 0 24px 60px rgba(20, 20, 20, 0.18);
	z-index: 200;
}

body .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-close {
	height: 100%;
	min-height: 0;
	display: flex;
	flex-direction: column;
}

body .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-dialog {
	height: 100%;
	min-height: 0;
	flex: 1 1 0%;
	display: flex;
	flex-direction: column;
}

body .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	flex: 1 1 0%;
	min-height: 0;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior: contain;
	padding: 1.75rem 1.5rem;
	justify-content: flex-start !important;
	gap: 0.25rem;
}

body .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
	width: 100%;
	border-bottom: 1px solid rgba(20, 20, 20, 0.06);
}

body .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item:last-child {
	border-bottom: none;
}

body .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	padding: 0.9rem 0.25rem !important;
	font-family: "Playfair Display", serif;
	font-size: 1.15rem;
	font-weight: 600;
	color: var(--jd-accent-2);
}

body .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container {
	background: var(--jd-accent-tint);
	border-radius: 0.75rem;
	margin-bottom: 0.5rem;
}

body .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	font-family: inherit;
	font-size: 1rem;
	font-weight: 500;
	color: var(--jd-accent);
	padding-left: 1.25rem !important;
}

body .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close {
	background: var(--jd-accent-tint);
	border-radius: 50%;
}

/* ---------------------------------------------------------------
 * Service cards (.jd-services-row, added to the two homepage
 * columns rows that hold Branding/Agendas/Diseño Web/Redes
 * Sociales/Asesorías) — card body plus a gradient-border glow that
 * fades in on hover (the reference mockup's "cyber-border" trick).
 * --------------------------------------------------------------- */
body .jd-services-row {
	display: grid !important;
	gap: var(--wp--preset--spacing--30, 1.5rem);
	justify-content: center;
}

body .jd-services-row > .wp-block-column {
	flex-basis: auto !important;
	width: auto !important;
}

body .jd-services-row > .wp-block-column > .wp-block-group {
	position: relative;
	height: 100%;
	background: var(--wp--preset--color--background);
	border: var(--jd-border);
	border-radius: var(--jd-radius);
	box-shadow: var(--jd-shadow);
	padding: var(--wp--preset--spacing--40, 2rem) var(--wp--preset--spacing--30, 1.5rem);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	transition: transform 0.15s ease-out, box-shadow 0.3s ease;
	transform-style: preserve-3d;
	will-change: transform;
}

body .jd-services-row > .wp-block-column > .wp-block-group::before {
	content: "";
	position: absolute;
	inset: -1px;
	z-index: -1;
	border-radius: calc(var(--jd-radius) + 1px);
	background: linear-gradient(135deg, var(--jd-accent), transparent, var(--jd-accent-2));
	opacity: 0;
	transition: opacity 0.4s ease;
}

body .jd-services-row > .wp-block-column > .wp-block-group:hover {
	box-shadow: var(--jd-shadow-hover);
}

body .jd-services-row > .wp-block-column > .wp-block-group:hover::before {
	opacity: 1;
}

body .jd-services-row .wp-block-lemmony-companion-icon .lemmony-icon-wrapper {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 3.5rem;
	height: 3.5rem;
	border-radius: 50%;
	background: var(--jd-accent-tint);
	margin-bottom: 0.5rem;
}

body .jd-services-row .wp-block-lemmony-companion-icon svg {
	color: var(--jd-accent);
	width: 1.5rem;
	height: 1.5rem;
}

body .jd-services-row .wp-block-buttons {
	padding-top: var(--wp--preset--spacing--30, 1.5rem);
}

/* ---------------------------------------------------------------
 * Testimonial cards (.jd-testimonials-row)
 * --------------------------------------------------------------- */
body .jd-testimonials-row {
	display: grid !important;
	gap: var(--wp--preset--spacing--30, 1.5rem);
	justify-content: center;
}

body .jd-testimonials-row > .wp-block-column {
	flex-basis: auto !important;
	width: auto !important;
}

body .jd-testimonials-row > .wp-block-column > .wp-block-group {
	position: relative;
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: center;
	background: var(--wp--preset--color--background);
	border: var(--jd-border);
	border-radius: var(--jd-radius);
	box-shadow: var(--jd-shadow);
	padding: var(--wp--preset--spacing--50, 2.5rem) var(--wp--preset--spacing--30, 1.5rem) var(--wp--preset--spacing--30, 1.5rem);
	transition: transform 0.15s ease-out, box-shadow 0.3s ease;
	transform-style: preserve-3d;
	will-change: transform;
}

body .jd-testimonials-row > .wp-block-column > .wp-block-group:hover {
	box-shadow: var(--jd-shadow-hover);
}

body .jd-testimonials-row > .wp-block-column > .wp-block-group:hover::before {
	opacity: 1;
}

body .jd-testimonials-row > .wp-block-column > .wp-block-group::before {
	content: "\201C";
	position: absolute;
	top: 0.5rem;
	left: var(--wp--preset--spacing--30, 1.5rem);
	font-family: Georgia, "Times New Roman", serif;
	font-size: 4rem;
	line-height: 1;
	color: var(--jd-accent);
	opacity: 0.35;
}

body .jd-testimonials-row img {
	border-radius: 50%;
}

/* Avatar + name/company row: was left-aligned, center it as a group
 * in the middle of the card instead. */
body .jd-testimonials-row .wp-block-columns {
	justify-content: center;
}

body .jd-testimonials-row .wp-block-columns > .wp-block-column {
	flex-grow: 0;
}

body .jd-testimonials-row .wp-block-columns h3,
body .jd-testimonials-row .wp-block-columns p {
	text-align: center;
}

/* ---------------------------------------------------------------
 * Stats band — bigger, bolder numbers
 * --------------------------------------------------------------- */
body .has-midground-alt-2-background-color h2 {
	font-size: var(--wp--preset--font-size--large-plus);
}

/* ---------------------------------------------------------------
 * Hero aurora glow — animated soft gradient blobs behind the hero
 * (.jd-hero-glow was added to the hero's own wrapping group, which
 * already carries a solid background color; this layers motion on
 * top of it without touching any images/content). Also fades from
 * white at the top so the header→hero boundary reads as one
 * continuous surface instead of a hard color-stop line.
 * --------------------------------------------------------------- */
body .jd-hero-glow {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	background: linear-gradient(
		to bottom,
		#fbf7f4 0%,
		var(--wp--preset--color--midground-alt2, #f2fbf7) 12rem
	) !important;
}

body .jd-hero-glow .jd-aurora-blob {
	position: absolute;
	z-index: -1;
	border-radius: 50%;
	filter: blur(60px);
	opacity: 0.35;
	pointer-events: none;
}

body .jd-hero-glow .jd-aurora-blob-a {
	width: 32rem;
	height: 32rem;
	top: -12rem;
	right: -8rem;
	background: radial-gradient(circle at center, var(--jd-accent), transparent 70%);
	animation: jd-drift-a 18s ease-in-out infinite alternate;
}

body .jd-hero-glow .jd-aurora-blob-b {
	width: 26rem;
	height: 26rem;
	bottom: -10rem;
	left: -6rem;
	background: radial-gradient(circle at center, var(--jd-accent-2), transparent 70%);
	animation: jd-drift-b 22s ease-in-out infinite alternate;
}

@keyframes jd-drift-a {
	from {
		transform: translate(0, 0) scale(1);
	}
	to {
		transform: translate(-2rem, 3rem) scale(1.15);
	}
}

@keyframes jd-drift-b {
	from {
		transform: translate(0, 0) scale(1);
	}
	to {
		transform: translate(3rem, -2rem) scale(1.1);
	}
}

@media (prefers-reduced-motion: reduce) {
	body .jd-hero-glow .jd-aurora-blob {
		animation: none;
	}
}

/* ---------------------------------------------------------------
 * Cursor spotlight — a soft light that follows the pointer, layered
 * on top of the hero glow and the parallax CTA image. JS writes
 * --jd-mx/--jd-my per mousemove; this just paints them. Fine-pointer
 * only (skipped entirely on touch by the JS).
 * --------------------------------------------------------------- */
body .jd-hero-glow,
body .lemmony-parallax {
	position: relative;
}

body .jd-hero-glow::after,
body .lemmony-parallax::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	opacity: 0;
	transition: opacity 0.4s ease;
	background: radial-gradient(
		320px circle at var(--jd-mx, 50%) var(--jd-my, 50%),
		rgba(255, 255, 255, 0.35),
		transparent 70%
	);
	pointer-events: none;
}

body .jd-hero-glow.jd-spotlight-active::after,
body .lemmony-parallax.jd-spotlight-active::after {
	opacity: 1;
}

body .lemmony-parallax::after {
	background: radial-gradient(
		280px circle at var(--jd-mx, 50%) var(--jd-my, 50%),
		rgba(255, 255, 255, 0.22),
		transparent 70%
	);
}

/* ---------------------------------------------------------------
 * Hero typed subtitle
 * --------------------------------------------------------------- */
body .jd-hero-typed {
	margin-top: 0.5rem;
	color: var(--jd-accent);
	font-weight: 700;
}

body .jd-hero-typed .lemmony-typing-prefix {
	color: var(--wp--preset--color--body, #2c2c2c);
	font-weight: 400;
}

/* ---------------------------------------------------------------
 * Animated stat counters (CountUp.js, already shipped by the parent
 * theme but unused until now — just needed the right markup/class).
 * --------------------------------------------------------------- */
body .wp-block-lemmony-companion-counter {
	font-weight: 800;
	color: var(--jd-accent);
}

/* ---------------------------------------------------------------
 * Portfolio gallery — soft corners + hover zoom
 * --------------------------------------------------------------- */
body .wp-block-gallery .wp-block-image {
	overflow: hidden;
	border-radius: var(--jd-radius-sm);
}

body .wp-block-gallery .wp-block-image img {
	transition: transform 0.5s ease;
}

body .wp-block-gallery .wp-block-image:hover img {
	transform: scale(1.06);
}

/* ---------------------------------------------------------------
 * "Aprovecha" workshop banner — was plain white, breaking the flow
 * between the hero and the tinted "Es AHORA" section below it. Now
 * a bold brand-gradient panel that visually bridges the two.
 * --------------------------------------------------------------- */
body .jd-aprovecha-banner {
	background: linear-gradient(120deg, var(--jd-accent) 0%, var(--jd-accent-2) 100%);
	position: relative;
	overflow: hidden;
}

body .jd-aprovecha-banner::before {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(60% 120% at 90% 0%, rgba(255, 255, 255, 0.18), transparent 60%);
	pointer-events: none;
}

body .jd-aprovecha-banner,
body .jd-aprovecha-banner p,
body .jd-aprovecha-banner h1,
body .jd-aprovecha-banner h2,
body .jd-aprovecha-banner h3 {
	color: #fff !important;
}

body .jd-aprovecha-banner .wp-block-button__link {
	background-color: #fff !important;
	color: var(--jd-accent) !important;
}

body .jd-aprovecha-banner .wp-block-button__link:hover {
	background-color: rgba(255, 255, 255, 0.9) !important;
}

/* ---------------------------------------------------------------
 * Portfolio banner image + stats (.jd-stats-wrap) — now alignfull;
 * restore breathing room now that it spans the full viewport.
 * --------------------------------------------------------------- */
body .jd-stats-wrap {
	padding-left: clamp(1.5rem, 5vw, 4rem);
	padding-right: clamp(1.5rem, 5vw, 4rem);
}

body .jd-stats-wrap .wp-block-image img {
	border-radius: var(--jd-radius);
}

/* Center the "+100 clientes / +200 estrategias" row instead of the
 * space-between layout it inherited (icon hugging one side, number
 * hugging the other). */
body .jd-stats-wrap .is-content-justification-space-between,
body .jd-stats-wrap .is-layout-flex {
	justify-content: center !important;
	text-align: center;
	gap: 0.75rem;
}

body .jd-stats-wrap > .wp-block-columns {
	justify-content: center;
	text-align: center;
}

/* Curtain-reveal instead of a plain fade: the section stays visible
 * (no blank-white wait) but clipped to a thin center strip, then
 * opens outward like a theater curtain once scrolled into view.
 * Reuses the theme's own reveal trigger (.animation-inited/.animate)
 * — just points --lemmony-animation-name at this keyframe instead of
 * one of the theme's built-in fades (set on the element itself). */
body .jd-stats-wrap.animation-inited {
	opacity: 1 !important;
	clip-path: inset(0 50% 0 50%);
}

@keyframes jdCurtainOpen {
	from {
		clip-path: inset(0 50% 0 50%);
	}
	to {
		clip-path: inset(0 0 0 0);
	}
}

@media (prefers-reduced-motion: reduce) {
	body .jd-stats-wrap.animation-inited {
		opacity: 1 !important;
		clip-path: inset(0 0 0 0);
	}
}

/* ---------------------------------------------------------------
 * Quick-nav row (Acerca de Mí / Servicios / Testimonios / FAQ) —
 * centered, card-ified to match the rest of the redesign instead of
 * reading like plain inline links.
 * --------------------------------------------------------------- */
body .jd-quicknav-row {
	justify-content: center;
}

body .jd-quicknav-row > .wp-block-column {
	flex-basis: auto !important;
	width: auto !important;
	max-width: 220px;
}

body .jd-quicknav-row > .wp-block-column > .wp-block-group {
	position: relative;
	background: var(--wp--preset--color--background);
	border-radius: var(--jd-radius-sm);
	padding: 1.75rem 1.25rem 1.5rem;
	text-align: center;
	transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
	box-shadow: var(--jd-shadow);
	overflow: hidden;
}

body .jd-quicknav-row > .wp-block-column > .wp-block-group::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: linear-gradient(90deg, var(--jd-accent), var(--jd-accent-2));
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.3s ease;
}

body .jd-quicknav-row > .wp-block-column > .wp-block-group:hover {
	transform: translateY(-6px);
	box-shadow: var(--jd-shadow-hover);
}

body .jd-quicknav-row > .wp-block-column > .wp-block-group:hover::before {
	transform: scaleX(1);
}

body .jd-quicknav-row .wp-block-lemmony-companion-icon {
	color: var(--jd-accent);
}

body .jd-quicknav-row h2,
body .jd-quicknav-row h3,
body .jd-quicknav-row p {
	font-weight: 700;
}

/* ---------------------------------------------------------------
 * "Algunos logos diseñados a clientes" — was a space-between row
 * (text on one edge, logo strip on the other); center both instead.
 * --------------------------------------------------------------- */
body .jd-logos-row {
	flex-direction: column;
	justify-content: center !important;
	align-items: center;
	text-align: center;
	gap: 1.5rem;
}

/* The logos image block carries WordPress's own fixed "content
 * width" container class, which was winning over its flex parent
 * and holding it at ~700px regardless of viewport — the single
 * biggest cause of horizontal scroll on narrow screens. Force it
 * fluid. */
body .jd-logos-row figure,
body .jd-logos-row img {
	max-width: 100% !important;
	width: auto !important;
	height: auto;
}

/* ---------------------------------------------------------------
 * Footer — same brand-gradient treatment as the "Aprovecha" banner
 * for visual consistency, with clearer vertical rhythm between the
 * CTA / logo+social / copyright blocks instead of them all reading
 * as one dense stack.
 * --------------------------------------------------------------- */
.site-footer .has-custom-color-1-background-color {
	background: linear-gradient(135deg, var(--jd-accent) 0%, var(--jd-accent-2) 100%) !important;
	padding-top: 4rem !important;
	padding-bottom: 3rem !important;
}

.site-footer .wp-block-separator {
	opacity: 0.3;
	margin-top: 3rem !important;
	margin-bottom: 3rem !important;
}

.site-footer .wp-block-social-links .wp-social-link {
	background: rgba(255, 255, 255, 0.15) !important;
	transition: transform 0.25s ease, background 0.25s ease;
}

.site-footer .wp-block-social-links .wp-social-link:hover {
	background: rgba(255, 255, 255, 0.3) !important;
	transform: translateY(-3px);
}

.site-footer .wp-block-buttons .wp-block-button__link {
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.site-footer .wp-block-buttons .wp-block-button__link:hover {
	transform: translateY(-3px);
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

/* =================================================================
 * Deliberate per-device layouts (own template per breakpoint, not
 * just fluid scaling)
 * ================================================================= */

/* ---- Mobile: up to 599px ---- */
@media (max-width: 599px) {
	body .jd-services-row,
	body .jd-testimonials-row {
		grid-template-columns: 1fr;
	}

	body .jd-services-row > .wp-block-column > .wp-block-group {
		padding: var(--wp--preset--spacing--30, 1.5rem);
	}

	body .jd-quicknav-row > .wp-block-column {
		max-width: 100%;
		flex-basis: 100% !important;
	}

	.site-header {
		backdrop-filter: blur(10px);
		-webkit-backdrop-filter: blur(10px);
	}
}

/* ---- Tablet: 600px to 1024px ---- */
@media (min-width: 600px) and (max-width: 1024px) {
	body .jd-services-row,
	body .jd-testimonials-row {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* ---- Desktop: 1025px and up ---- */
@media (min-width: 1025px) {
	/* Fixed (not 1fr) column widths so justify-content:center on the
	 * grid can actually center a short row — the services content is
	 * split across two separate rows (3 items, then 2), and that
	 * second row should sit centered instead of hugging the left. */
	body .jd-services-row {
		grid-template-columns: repeat(3, minmax(0, 340px));
	}

	body .jd-testimonials-row {
		grid-template-columns: repeat(3, minmax(0, 340px));
	}
}
