/* ==========================================================================
   components.css — Reusable UI components
   Lion Digital 2026 Theme
   ========================================================================== */

/* Sitewide mobile body rule. Was previously only in home.css, which loads
   on the homepage only — inner pages inherited the 16px UA default. */
@media (max-width: 768px) {
  body { font-size: 14px; line-height: 1.5; }
}

/* --------------------------------------------------------------------------
   Global brand tokens (must be defined here so they're available on every
   page, including ones with no page-specific CSS — 404, blog, archives).
   -------------------------------------------------------------------------- */
:root,
:root[data-theme="dark"],
:root[data-theme="light"] {
  --red: #FF2C55;
  --black: #0A0A0A;
  --white: #FFFFFF;
  --bg: #FAFAFA;
  --muted: #666666;
  --rule: #111111;
  --ld-text: #0A0A0A;
  --ld-text-muted: #666666;
  --ld-bg: #FAFAFA;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.ld-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	font-weight: 700;
	font-size: 0.9rem;
	padding: 13px 28px;
	border-radius: var(--ld-radius-pill);
	transition: background 0.2s var(--ld-ease), color 0.2s var(--ld-ease),
	            transform 0.15s var(--ld-ease), border-color 0.2s var(--ld-ease),
	            box-shadow 0.2s var(--ld-ease);
	white-space: nowrap;
	line-height: 1;
	cursor: pointer;
}

.ld-btn--primary {
	background: var(--ld-red);
	color: #fff;
}
.ld-btn--primary:hover {
	background: var(--ld-red-dark);
	color: #fff;
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(255, 44, 85, 0.35);
}

.ld-btn--secondary {
	background: transparent;
	color: var(--ld-red);
	border: 2px solid var(--ld-red);
	padding: 11px 26px;
}
.ld-btn--secondary:hover {
	background: var(--ld-red);
	color: #fff;
	transform: translateY(-2px);
}

.ld-btn--ghost {
	background: transparent;
	color: var(--ld-text);
	border: 1px solid var(--ld-border-strong);
	padding: 12px 24px;
}
.ld-btn--ghost:hover {
	border-color: var(--ld-red);
	color: var(--ld-red);
}

.ld-btn--sm {
	font-size: 0.82rem;
	padding: 9px 20px;
}

.ld-btn svg {
	width: 16px;
	height: 16px;
	flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Eyebrow / section labels
   -------------------------------------------------------------------------- */
.ld-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--ld-red);
	background: var(--ld-red-soft);
	padding: 6px 14px;
	border-radius: var(--ld-radius-pill);
	margin-bottom: 1.25rem;
}
.ld-eyebrow__dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--ld-red);
	flex-shrink: 0;
	animation: ld-pulse 2s ease-in-out infinite;
}

@keyframes ld-pulse {
	0%, 100% { opacity: 1; transform: scale(1); }
	50%       { opacity: 0.4; transform: scale(0.7); }
}

/* --------------------------------------------------------------------------
   Section header (centered or left-aligned)
   -------------------------------------------------------------------------- */
.ld-section-header {
	margin-bottom: 3.5rem;
}
.ld-section-header--center {
	text-align: center;
}
.ld-section-header--center .ld-eyebrow {
	margin-left: auto;
	margin-right: auto;
}
.ld-section-header h2 {
	margin-bottom: 1rem;
}
.ld-section-header p {
	font-size: 1.05rem;
	max-width: 600px;
	line-height: 1.7;
}
.ld-section-header--center p {
	margin: 0 auto;
}

/* --------------------------------------------------------------------------
   Cards — generic base
   -------------------------------------------------------------------------- */
.ld-card {
	background: var(--ld-panel);
	border: 1px solid var(--ld-border);
	border-radius: var(--ld-radius-lg);
	padding: 2rem;
	transition: border-color 0.2s var(--ld-ease), box-shadow 0.2s var(--ld-ease),
	            transform 0.2s var(--ld-ease);
}
.ld-card:hover {
	border-color: var(--ld-red);
	box-shadow: var(--ld-shadow-md);
	transform: translateY(-3px);
}

/* --------------------------------------------------------------------------
   Icon badge (for service cards etc.)
   -------------------------------------------------------------------------- */
.ld-icon-badge {
	width: 48px;
	height: 48px;
	border-radius: var(--ld-radius-md);
	background: var(--ld-red-soft);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 1.25rem;
	flex-shrink: 0;
}
.ld-icon-badge svg {
	width: 22px;
	height: 22px;
	color: var(--ld-red);
}

/* --------------------------------------------------------------------------
   Grid helpers
   -------------------------------------------------------------------------- */
.ld-grid-3 {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
}
@media (max-width: 960px) {
	.ld-grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
	.ld-grid-3 { grid-template-columns: 1fr; }
}

.ld-grid-2 {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1.5rem;
}
@media (max-width: 768px) {
	.ld-grid-2 { grid-template-columns: 1fr; }
}

.ld-grid-4 {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1.5rem;
}
@media (max-width: 960px) {
	.ld-grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
	.ld-grid-4 { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   Skip link
   -------------------------------------------------------------------------- */
.screen-reader-text {
	position: absolute !important;
	clip: rect(1px,1px,1px,1px);
	width: 1px;
	height: 1px;
	overflow: hidden;
}
.skip-link:focus {
	position: fixed;
	top: 8px;
	left: 8px;
	clip: auto;
	width: auto;
	height: auto;
	background: var(--ld-red);
	color: #fff;
	padding: 0.6rem 1rem;
	border-radius: var(--ld-radius-sm);
	z-index: 9999;
	font-weight: 700;
	font-size: 0.9rem;
}

/* ─────────────────────────────────────────────────────────
   Canonical section heading style — site-wide.
   ALL CAPS, two-tone (em is red, non-italic), no trailing period.
   Targets every namespaced section heading class.
   ───────────────────────────────────────────────────────── */
.abt-actions-h2, .abt-cta-h2, .abt-hero-h1, .abt-stats-h2,
.blg-cta-h2, .blg-hero-h1,
.case-cta-h2, .case-hero-h1, .case-other-h2,
.cr-apply-cta-h2, .cr-h2, .cr-hero-h1, .cr-join-h2,
.cs-cta-h2, .cs-hero-h1,
.jaf-hero-h1,
.lp-cta-h2, .lp-diff-h2, .lp-eligibility-h2, .lp-h2, .lp-hero-h1,
.mtt-cta-h2, .mtt-h2, .mtt-hero-h1,
.mvv-cta-h2, .mvv-hero-h1, .mvv-pillar-h2, .mvv-values-h2,
.ot-cta-h2, .ot-refs-h2,
.pcal-cta-h2, .pcal-h2, .pcal-hero-h1, .pcal-price-h2,
.pt-cta-h2, .pt-hero-h1,
.rmw-journey-h2,
.spt-cta-h2, .spt-other-h2,
.rv-cta-h2, .rv-hero-h1,
.shp-cta-h2, .shp-grid-h2, .shp-hero-h1,
.sp-body-h2, .sp-cta-h2, .sp-hero-h1, .sp-partners-h2,
.srv-cta-h2, .srv-grid-h2, .srv-hero-h1 {
	text-transform: uppercase;
	letter-spacing: -0.01em;
}

.abt-actions-h2 em, .abt-cta-h2 em, .abt-hero-h1 em, .abt-stats-h2 em,
.blg-cta-h2 em, .blg-hero-h1 em,
.case-cta-h2 em, .case-hero-h1 em, .case-other-h2 em,
.cr-apply-cta-h2 em, .cr-h2 em, .cr-hero-h1 em, .cr-join-h2 em,
.cs-cta-h2 em, .cs-hero-h1 em,
.jaf-hero-h1 em,
.lp-cta-h2 em, .lp-diff-h2 em, .lp-eligibility-h2 em, .lp-h2 em, .lp-hero-h1 em,
.mtt-cta-h2 em, .mtt-h2 em, .mtt-hero-h1 em,
.mvv-cta-h2 em, .mvv-hero-h1 em, .mvv-pillar-h2 em, .mvv-values-h2 em,
.ot-cta-h2 em, .ot-refs-h2 em,
.pcal-cta-h2 em, .pcal-h2 em, .pcal-hero-h1 em, .pcal-price-h2 em,
.pt-cta-h2 em, .pt-hero-h1 em,
.rmw-journey-h2 em,
.spt-cta-h2 em, .spt-other-h2 em,
.rv-cta-h2 em, .rv-hero-h1 em,
.shp-cta-h2 em, .shp-grid-h2 em, .shp-hero-h1 em,
.sp-body-h2 em, .sp-cta-h2 em, .sp-hero-h1 em, .sp-partners-h2 em,
.srv-cta-h2 em, .srv-grid-h2 em, .srv-hero-h1 em {
	font-style: normal !important;
	color: var(--red);
	font-weight: 900;
}

/* ─────────────────────────────────────────────────────────
   Floating checkout pill — appears on every page when cart
   has items. Hidden on /cart/ and /checkout/.
   ───────────────────────────────────────────────────────── */
.ld-floating-cart {
	position: fixed;
	left: 24px;
	bottom: 24px;
	z-index: 9000;
	display: inline-flex;
	align-items: center;
	gap: 14px;
	padding: 14px 22px 14px 16px;
	background: var(--red);
	color: var(--white);
	text-decoration: none;
	border-radius: 999px;
	box-shadow: 0 18px 40px rgba(255, 44, 85, 0.32), 0 4px 10px rgba(0, 0, 0, 0.18);
	transition: transform 0.22s, box-shadow 0.22s, background 0.22s;
	font-family: inherit;
	animation: ld-floating-cart-in 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes ld-floating-cart-in {
	from { transform: translateY(20px); opacity: 0; }
	to   { transform: translateY(0);     opacity: 1; }
}

.ld-floating-cart:hover {
	background: var(--black);
	transform: translateY(-3px);
	box-shadow: 0 22px 48px rgba(0, 0, 0, 0.35), 0 4px 10px rgba(255, 44, 85, 0.3);
}

.ld-floating-cart-bag {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.16);
	flex-shrink: 0;
}

.ld-floating-cart-bag svg { width: 20px; height: 20px; color: var(--white); }

.ld-floating-cart-count {
	position: absolute;
	top: -4px;
	right: -4px;
	min-width: 22px;
	height: 22px;
	padding: 0 6px;
	border-radius: 999px;
	background: var(--white);
	color: var(--red);
	font-size: 11px;
	font-weight: 900;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
	font-variant-numeric: tabular-nums;
}

.ld-floating-cart-text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	line-height: 1.1;
	min-width: 0;
}

.ld-floating-cart-label {
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.75);
}

.ld-floating-cart-meta {
	font-size: 13.5px;
	font-weight: 700;
	color: var(--white);
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.ld-floating-cart-meta .amount,
.ld-floating-cart-meta .woocommerce-Price-amount { color: var(--white); }

.ld-floating-cart-arrow {
	width: 16px;
	height: 16px;
	color: var(--white);
	flex-shrink: 0;
	transition: transform 0.22s;
}

.ld-floating-cart:hover .ld-floating-cart-arrow { transform: translateX(4px); }

@media (max-width: 640px) {
	.ld-floating-cart {
		left: 16px;
		bottom: 16px;
		padding: 12px 18px 12px 12px;
		gap: 10px;
	}
	.ld-floating-cart-bag { width: 38px; height: 38px; }
	.ld-floating-cart-bag svg { width: 18px; height: 18px; }
	.ld-floating-cart-meta { font-size: 12.5px; }
}

/* ─────────────────────────────────────────────────────────
   CANONICAL REVIEWS SECTION (.ld-reviews-*)
   Shared component — see template-parts/reviews-section.php
   Same visual everywhere this is included.
   ───────────────────────────────────────────────────────── */
.ld-reviews { padding: 96px 48px; background: var(--white); }
.ld-reviews-inner { max-width: 1200px; margin: 0 auto; }

.ld-reviews-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 48px;
}

.ld-reviews-h2 {
  font-size: clamp(2rem, 3.6vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 1.05;
  margin: 0;
  color: var(--black);
  text-transform: uppercase;
}
.ld-reviews-h2 em {
  font-style: normal;
  color: var(--red);
  font-weight: 900;
}

.ld-reviews-track {
  list-style: none;
  padding: 4px;
  margin: 0 -4px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 360px;
  gap: 24px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.ld-reviews-track::-webkit-scrollbar { display: none; }

.ld-review {
	position: relative;
	padding: 36px 32px 32px;
	background: var(--bg);
	border: 1px solid #EAEAEA;
	scroll-snap-align: start;
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.ld-review-mark {
	position: absolute;
	top: -16px;
	right: 16px;
	font-family: Georgia, 'Times New Roman', serif;
	font-size: 120px;
	font-weight: 900;
	font-style: italic;
	line-height: 1;
	color: rgba(255,44,85,0.10);
	pointer-events: none;
}

.ld-review-stars { display: inline-flex; gap: 3px; color: #FFC000; margin-bottom: 16px; }
.ld-review-stars svg { width: 18px; height: 18px; }

.ld-review-body { font-size: 15.5px; line-height: 1.65; color: var(--black); margin: 0 0 26px; flex: 1; }

.ld-review-author {
	display: flex;
	align-items: center;
	gap: 14px;
	padding-top: 18px;
	border-top: 1px solid #EAEAEA;
	margin-top: auto;
}

.ld-review-photo {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	overflow: hidden;
	flex-shrink: 0;
	background: var(--white);
	padding: 6px;
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}
.ld-review-photo img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; display: block; }

.ld-review-name {
	display: block;
	font-size: 14px;
	font-weight: 900;
	letter-spacing: -0.01em;
	color: var(--black);
	line-height: 1.2;
}

.ld-review-role {
	display: block;
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--muted);
	line-height: 1.4;
	margin-top: 4px;
}

.ld-reviews-nav { display: inline-flex; gap: 10px; flex-shrink: 0; }
.ld-reviews-arrow {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #D8D8D8;
  background: var(--white);
  color: var(--black);
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.ld-reviews-arrow svg { width: 18px; height: 18px; }
.ld-reviews-arrow:hover { background: var(--red); color: var(--white); border-color: var(--red); }

@media (max-width: 640px) {
  .ld-reviews { padding: 64px 24px; }
  .ld-reviews-track { grid-auto-columns: 88%; }
  .ld-reviews-header { flex-direction: column; align-items: flex-start; gap: 18px; margin-bottom: 32px; }
  .ld-reviews-arrow { width: 36px; height: 36px; border-radius: 6px; }
  .ld-reviews-arrow svg { width: 14px; height: 14px; }
  .ld-review { padding: 24px 20px; }
  .ld-review-mark { top: -10px; right: 12px; }
}

/* Shopping bag icon on Buy Now buttons — shared across all product templates */
.ld-bag-icon {
	width: 16px;
	height: 16px;
	flex-shrink: 0;
	vertical-align: -2px;
}

/* ─────────────────────────────────────────────────────────
   CANONICAL CONTACT FORM SECTION (.ld-contact-*)
   Combined "Get in contact today" CTA + HubSpot form, dark hero with
   inset white form card. Accent (heading <em>, icon, submit button)
   follows var(--red) — overridden per template via body class.
   ───────────────────────────────────────────────────────── */
.ld-contact {
	padding: 96px 48px;
	background: var(--black);
	color: var(--white);
}

.ld-contact-inner {
	max-width: 1200px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
	gap: 64px;
	align-items: center;
	text-align: left;
}

/* Left column wraps the faces + heading; everything before the card */
.ld-contact-inner > .ld-contact-faces,
.ld-contact-inner > .ld-contact-h2 {
	grid-column: 1;
}

/* The form card sits in the right column, spanning both rows so it
   stays vertically centred next to the pitch copy. */
.ld-contact-card {
	grid-column: 2;
	grid-row: 1 / span 2;
	background: var(--white);
	color: var(--black);
	border-radius: 18px;
	padding: 48px 48px 40px;
	text-align: left;
	box-shadow: 0 30px 80px rgba(0,0,0,0.35);
}

/* Team faces */
.ld-contact-faces {
	display: inline-flex;
	margin: 0 0 24px;
	align-self: end;
}
.ld-contact-faces img {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	border: 3px solid var(--black);
	margin-left: -18px;
	object-fit: cover;
	object-position: top center;
	background: color-mix(in srgb, var(--red) 12%, transparent);
	box-shadow: 0 6px 18px rgba(0,0,0,0.45);
}
.ld-contact-faces img:first-child { margin-left: 0; }

/* Canonical CTA heading */
.ld-contact-h2 {
	font-size: clamp(1.8rem, 3.4vw, 2.6rem);
	font-weight: 900;
	letter-spacing: -0.015em;
	line-height: 1.15;
	text-transform: uppercase;
	color: var(--white);
	margin: 0;
	align-self: start;
}
.ld-contact-h2 em {
	font-style: normal;
	color: var(--red);
	font-weight: 900;
}

@media (max-width: 960px) {
	.ld-contact-inner {
		grid-template-columns: 1fr;
		gap: 36px;
		text-align: center;
	}
	.ld-contact-faces { margin: 0 auto 8px; align-self: center; }
	.ld-contact-card { grid-column: 1; grid-row: auto; }
}

.ld-contact-head {
	display: inline-flex;
	align-items: center;
	gap: 16px;
	margin-bottom: 36px;
}

.ld-contact-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border-radius: 12px;
	background: linear-gradient(155deg, color-mix(in srgb, var(--red) 22%, transparent), color-mix(in srgb, var(--red) 6%, transparent));
	border: 1px solid color-mix(in srgb, var(--red) 32%, transparent);
	color: var(--red);
}
.ld-contact-icon svg { width: 24px; height: 24px; }

.ld-contact-title {
	font-size: clamp(1.6rem, 2.6vw, 2rem);
	font-weight: 900;
	letter-spacing: -0.015em;
	text-transform: uppercase;
	color: var(--red);
	margin: 0;
}

.ld-contact-body { width: 100%; }

/* HubSpot form overrides — minimal LION styling on the embed */
.ld-contact-form,
.ld-contact-form .hs-form,
.ld-contact-form form {
	font-family: inherit;
	color: var(--black);
}

.ld-contact-form .hs-form-field {
	margin: 0 0 16px;
}

.ld-contact-form .hs-form-field > label,
.ld-contact-form label.hs-error-msg {
	display: block;
	font-size: 12.5px;
	font-weight: 600;
	color: var(--black);
	margin-bottom: 4px;
	letter-spacing: 0;
}
.ld-contact-form label .hs-form-required { color: var(--red); margin-left: 2px; }

.ld-contact-form .hs-input:not([type="checkbox"]):not([type="radio"]) {
	width: 100%;
	padding: 6px 0;
	font-family: inherit;
	font-size: 14px;
	color: var(--black);
	background: transparent;
	border: 0;
	border-bottom: 1px solid var(--rule);
	border-radius: 0;
	box-sizing: border-box;
	transition: border-color 0.2s;
}
.ld-contact-form .hs-input:not([type="checkbox"]):not([type="radio"]):focus {
	outline: none;
	border-bottom-color: var(--red);
}

.ld-contact-form textarea.hs-input { resize: vertical; min-height: 72px; }

/* Stack the firstname / lastname 2-column row */
.ld-contact-form .form-columns-2 .hs-form-field,
.ld-contact-form .form-columns-2 > .hs-form-field {
	float: none !important;
	width: 100% !important;
	display: block;
}
.ld-contact-form .form-columns-2 .input { margin-right: 0 !important; }

/* Hide the default annualrevenue text/select input — replaced by injected radios.
   Matches legacy `footer.php` rule: `.hs_annualrevenue input:not([type="radio"]) { display: none; }` */
.ld-contact-form .hs_annualrevenue .input > input:not([type="radio"]),
.ld-contact-form .hs_annualrevenue select.hs-input { display: none !important; }
.ld-contact-form .hs_annualrevenue .inputs-list { margin-top: 6px; }

/* Radio / checkbox groups — outlined circle style (matches live) */
.ld-contact-form ul.inputs-list,
.ld-contact-form ul.ld-ar-radios {
	list-style: none;
	padding: 0;
	margin: 4px 0 0;
	display: flex;
	flex-wrap: wrap;
	gap: 8px 20px;
}
.ld-contact-form ul.inputs-list li,
.ld-contact-form ul.ld-ar-radios li {
	margin: 0;
}
.ld-contact-form ul.inputs-list li label,
.ld-contact-form ul.ld-ar-radios li label {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 500;
	font-size: 13px;
	color: var(--black);
	cursor: pointer;
	margin: 0;
}

.ld-contact-form input[type="radio"],
.ld-contact-form input[type="checkbox"] {
	-webkit-appearance: none !important;
	   -moz-appearance: none !important;
	        appearance: none !important;
	width: 15px !important;
	height: 15px !important;
	min-width: 15px !important;
	max-width: 15px !important;
	box-sizing: border-box !important;
	padding: 0 !important;
	margin: 0 !important;
	border: 1.5px solid #9CA3AF !important;
	border-radius: 50% !important;
	background: var(--white) !important;
	flex-shrink: 0 !important;
	cursor: pointer;
	position: relative;
	vertical-align: middle;
	transition: border-color 0.18s, background 0.18s;
}
.ld-contact-form input[type="checkbox"] { border-radius: 4px !important; }
.ld-contact-form input[type="radio"]:hover,
.ld-contact-form input[type="checkbox"]:hover { border-color: var(--red) !important; }
.ld-contact-form input[type="radio"]:checked,
.ld-contact-form input[type="checkbox"]:checked {
	border-color: var(--red) !important;
}
.ld-contact-form input[type="radio"]:checked::after {
	content: "";
	position: absolute;
	inset: 3px;
	border-radius: 50%;
	background: var(--red);
}
.ld-contact-form input[type="checkbox"]:checked::after {
	content: "";
	position: absolute;
	inset: 2px;
	background: var(--red);
	border-radius: 2px;
}

/* Errors */
.ld-contact-form .hs-error-msgs { list-style: none; padding: 0; margin: 6px 0 0; }
.ld-contact-form .hs-error-msgs label { font-size: 13px; color: var(--red); font-weight: 500; }

/* Submit button */
.ld-contact-form .hs-button,
.ld-contact-form input[type="submit"] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 13px 36px;
	min-width: 200px;
	margin-top: 10px;
	font-family: inherit;
	font-size: 12.5px;
	font-weight: 800;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--white);
	background: var(--red);
	border: 0;
	border-radius: 999px;
	cursor: pointer;
	transition: background 0.22s, transform 0.22s, box-shadow 0.22s;
}
.ld-contact-form .hs-button:hover,
.ld-contact-form input[type="submit"]:hover {
	background: var(--black);
	transform: translateY(-2px);
	box-shadow: 0 12px 28px color-mix(in srgb, var(--red) 24%, transparent);
}

/* HubSpot wrapper consistency */
.ld-contact-form .hs-richtext { margin: 0 0 18px; font-size: 14.5px; color: var(--muted); }
.ld-contact-form .submitted-message { font-size: 16px; line-height: 1.6; color: var(--black); }
.ld-contact-form fieldset { max-width: 100% !important; }

@media (max-width: 640px) {
	.ld-contact { padding: 64px 20px; }
	.ld-contact-faces img { width: 52px; height: 52px; margin-left: -14px; border-width: 2px; }
	.ld-contact-h2 { margin-bottom: 32px; }
	.ld-contact-card { padding: 36px 24px 28px; border-radius: 14px; }
	.ld-contact-head { gap: 12px; margin-bottom: 24px; }
	.ld-contact-icon { width: 44px; height: 44px; }
	.ld-contact-icon svg { width: 20px; height: 20px; }
	.ld-contact-form .hs-button { width: 100%; min-width: 0; }
}

/* ─────────────────────────────────────────────────────────
   Case Studies Carousel — rendered by
   template-parts/case-studies-carousel.php. Accent flows from
   each page's --red so per-template overrides "just work".
   ───────────────────────────────────────────────────────── */
.ld-cases { padding: 96px 48px; background: var(--white); border-top: 1px solid var(--rule); }
.ld-cases-inner { max-width: 1200px; margin: 0 auto; }
.ld-cases-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 40px; }
.ld-cases-h2 { font-size: clamp(2rem, 3.6vw, 3rem); font-weight: 900; letter-spacing: -0.01em; line-height: 1.05; margin: 0; color: var(--black); text-transform: uppercase; }
.ld-cases-h2 em { font-style: normal; color: var(--red); font-weight: 900; }
.ld-cases-nav { display: inline-flex; gap: 10px; flex-shrink: 0; }
.ld-cases-arrow { width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid #D8D8D8; background: var(--white); color: var(--black); cursor: pointer; border-radius: 8px; transition: background 0.2s, color 0.2s, border-color 0.2s; }
.ld-cases-arrow svg { width: 18px; height: 18px; }
.ld-cases-arrow:hover { background: var(--red); color: var(--black); border-color: var(--red); }
.ld-cases-track { list-style: none; padding: 0; margin: 0; display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 40px) / 3); gap: 20px; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; padding-bottom: 6px; }
.ld-cases-track::-webkit-scrollbar { display: none; }

.ld-case { position: relative; display: block; aspect-ratio: 3 / 4; min-width: 0; background-color: #0a0a0a; background-size: cover; background-position: center; color: var(--white); text-decoration: none; overflow: hidden; isolation: isolate; scroll-snap-align: start; transition: transform 0.35s ease; border-radius: 4px; }
.ld-case::before { content: ""; position: absolute; inset: 0; background:
  radial-gradient(circle at 30% 10%, color-mix(in srgb, var(--red) 18%, transparent) 0%, transparent 50%),
  linear-gradient(180deg, rgba(10,10,10,0.55) 0%, rgba(10,10,10,0.4) 40%, rgba(10,10,10,0.88) 100%);
  z-index: 1;
}
.ld-case > * { position: relative; z-index: 2; }
.ld-case:hover { transform: translateY(-4px); }

.ld-case-tags { list-style: none; padding: 16px 18px 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; transition: opacity 0.25s ease; }
.ld-case:hover .ld-case-tags { opacity: 0; }
.ld-case-tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; font-size: 10.5px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--white); background: rgba(255,255,255,0.12); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); border-radius: 99px; }
.ld-case-tag-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--red); }
/* Per-service tag-dot colours so tags read at a glance across all carousels. */
.ld-case-tag[data-svc="seo"]            .ld-case-tag-dot { background: #00f0ff; }
.ld-case-tag[data-svc="sem"]            .ld-case-tag-dot { background: #ffc000; }
.ld-case-tag[data-svc="paid"]           .ld-case-tag-dot { background: #ffc000; }
.ld-case-tag[data-svc="paid-search"]    .ld-case-tag-dot { background: #ffc000; }
.ld-case-tag[data-svc="email"]          .ld-case-tag-dot { background: #ff8e3e; }
.ld-case-tag[data-svc="klaviyo"]        .ld-case-tag-dot { background: #ff8b00; }
.ld-case-tag[data-svc="social"]         .ld-case-tag-dot { background: #a100ff; }
.ld-case-tag[data-svc="dev"]            .ld-case-tag-dot { background: #0800b2; }
.ld-case-tag[data-svc="seo-migration"]  .ld-case-tag-dot { background: #25f4ee; }
.ld-case-tag[data-svc="blended-search"] .ld-case-tag-dot { background: #8fec3d; }
.ld-case-tag[data-svc="cro"]            .ld-case-tag-dot { background: #ff2c55; }

.ld-case-content { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 22px 26px; display: flex; flex-direction: column; gap: 14px; transition: opacity 0.3s ease; }
.ld-case:hover .ld-case-content { opacity: 0; }
.ld-case-logo-wrap { width: 84px; height: 84px; border-radius: 50%; background: var(--white); padding: 12px; box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; box-shadow: 0 10px 24px rgba(0,0,0,0.28); }
.ld-case-logo { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; display: block; }
.ld-case-stat { display: flex; flex-direction: column; gap: 4px; }
.ld-case-stat-num { font-size: clamp(2.4rem, 4vw, 3.2rem); font-weight: 900; color: var(--red); letter-spacing: -0.02em; line-height: 1; }
.ld-case-stat-label { font-size: 13.5px; line-height: 1.45; color: rgba(255,255,255,0.85); font-weight: 600; max-width: 90%; }

.ld-case-hover { position: absolute; inset: 0; padding: 32px; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 14px; opacity: 0; transition: opacity 0.3s ease; }
.ld-case:hover .ld-case-hover { opacity: 1; }
.ld-case-hover-title { font-size: clamp(1.6rem, 2.6vw, 2.2rem); font-weight: 900; line-height: 1.05; letter-spacing: -0.01em; text-transform: uppercase; color: var(--white); }
.ld-case-hover-arrow { width: 52px; height: 52px; display: inline-flex; align-items: center; justify-content: center; background: var(--red); color: var(--black); border-radius: 50%; transition: transform 0.3s ease; }
.ld-case-hover-arrow svg { width: 22px; height: 22px; }
.ld-case:hover .ld-case-hover-arrow { transform: rotate(-45deg); }

@media (max-width: 1024px) {
	.ld-cases { padding: 72px 28px; }
	.ld-cases-header { flex-direction: column; align-items: flex-start; }
	.ld-cases-track { grid-auto-columns: calc((100% - 20px) / 2); }
}
@media (max-width: 720px) {
	.ld-cases { padding: 56px 20px; }
	.ld-cases-track { grid-auto-columns: 85%; }
}
