/* ==========================================================================
   DallasTek — base styles. Mobile-first, no framework, no page builder CSS.
   ========================================================================== */

:root {
	/* Sampled directly from the logo file (dallastek.png) */
	--navy: #004c94;
	--navy-2: #00396f;
	--blue: #004c94;
	--blue-dark: #003868;
	--red: #ca012f;
	--red-dark: #9c0124;
	--ink: #1c2430;
	--muted: #3d4a63;
	--line: #e1e6f0;
	--bg-soft: #eef2fb;
	--white: #ffffff;
	--navy-deep: #063663;
	--navy-deepest: #052a50;
	--radius: 10px;
	--max: 1200px;
	--font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--font-head: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--font-body);
	color: var(--ink);
	background: var(--white);
	font-size: 16px;
	line-height: 1.65;
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--red); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--navy); line-height: 1.2; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2rem, 4vw + 1rem, 3.25rem); font-weight: 800; }
h2 { font-weight: 800; }
h2 { font-size: clamp(1.6rem, 2.4vw + 1rem, 2.4rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; color: var(--ink); }
em { font-style: normal; color: var(--red); }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }

.sr-only {
	position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.dt-wrap { max-width: var(--max); margin: 0 auto; padding-inline: 20px; }

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex; align-items: center; gap: .5em;
	padding: .85em 1.6em; border-radius: 999px; font-weight: 600;
	font-family: var(--font-head); font-size: .95rem;
	transition: transform .15s ease, background .15s ease, color .15s ease;
}
.btn-primary { background: var(--red); color: var(--white); }
.btn-primary:hover { background: var(--navy); color: var(--white); transform: translateY(-2px); }
.btn-quiet { background: transparent; color: var(--navy); border: 1px solid var(--line); }
.btn-quiet:hover { border-color: var(--red); color: var(--red); }

/* ---------- Ticker ---------- */
.dt-ticker { background: var(--navy); text-align: center; padding: 10px 16px; }
.dt-ticker a { color: rgba(255,255,255,.85); font-size: .9rem; }
.dt-ticker a:hover { color: var(--white); }
.dt-ticker strong { color: var(--white); margin-right: .4em; }

/* ---------- Header ---------- */
/* backdrop-filter lives on ::before (not directly on .site-header) because
   filter/backdrop-filter on an element creates a new containing block for
   position:fixed descendants — with it on .site-header directly, the mobile
   nav panel (#site-nav, position:fixed, a descendant of .site-header) was
   being pinned to .site-header's own ~118px box instead of the viewport. */
.site-header { border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; isolation: isolate; }
.site-header::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: rgba(255,255,255,.97);
	backdrop-filter: saturate(180%) blur(6px); -webkit-backdrop-filter: saturate(180%) blur(6px);
	transition: background .2s ease;
}
.dt-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 16px; }
.site-logo { display: flex; align-items: center; }
.site-logo img, .site-logo .custom-logo { max-height: 40px; width: auto; }
.site-logo span { font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; color: var(--navy); }
.dt-footer-brand .site-logo img { max-height: 40px; filter: brightness(0) invert(1); }

.site-nav { flex: 1; }
.nav-list { display: flex; gap: 28px; justify-content: center; flex-wrap: wrap; }
.nav-list a { color: var(--ink); font-weight: 500; font-size: .97rem; }
.nav-list a:hover, .nav-list .current-menu-item > a { color: var(--red); }

/* Dropdown submenus (e.g. "Our Services" -> Managed IT, Cloud Computing, ...) */
.nav-list li.menu-item-has-children { position: relative; }
.nav-list .menu-item-has-children > a { position: relative; padding-right: 15px; }
/* Uses ::before (not ::after) because .nav-list a::after is already the
   hover-underline effect — positioned on the right via `right:0`, not flex,
   so it doesn't collide with that pseudo-element. */
.nav-list .menu-item-has-children > a::before {
	content: ""; position: absolute; right: 0; top: 45%; width: 7px; height: 7px;
	border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor;
	transform: translateY(-60%) rotate(45deg); transition: transform .2s ease;
}
.nav-list .menu-item-has-children:hover > a::before,
.nav-list .menu-item-has-children:focus-within > a::before { transform: translateY(-30%) rotate(-135deg); }
.nav-list .sub-menu {
	position: absolute; top: 100%; left: 0; z-index: 60; min-width: 220px;
	background: var(--white); border: 1px solid var(--line); border-radius: 10px;
	box-shadow: 0 16px 34px rgba(11,34,74,.14); padding: 8px; margin-top: 12px;
	opacity: 0; visibility: hidden; transform: translateY(6px);
	transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}
.nav-list .menu-item-has-children:hover > .sub-menu,
.nav-list .menu-item-has-children:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-list .sub-menu li { width: 100%; }
.nav-list .sub-menu a {
	display: block; padding: .65em .8em; border-radius: 7px; font-size: .92rem; white-space: nowrap;
}
.nav-list .sub-menu a:hover { background: var(--bg-soft); color: var(--red); }
.nav-list .sub-menu a::after { display: none; }

.dt-header-actions { display: flex; align-items: center; gap: 18px; }
.dt-header-phone { display: flex; flex-direction: column; line-height: 1.2; text-align: right; }
.dt-header-phone-label { font-size: .75rem; color: var(--muted); }
.dt-header-phone-number { font-weight: 600; color: var(--navy); }
.dt-header-phone:hover .dt-header-phone-number { color: var(--red); }

.nav-toggle {
	display: none; flex-direction: column; justify-content: center; gap: 5px;
	width: 40px; height: 40px; background: none; border: 1px solid var(--line); border-radius: 8px;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--navy); margin-inline: auto; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { padding: 18px 0; font-size: .85rem; color: var(--muted); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumbs li { display: flex; align-items: center; gap: 6px; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--red); }

/* ---------- Sections / eyebrow / headings ---------- */
.section { padding-block: clamp(48px, 7vw, 96px); }
.section--tight-top { padding-top: 0; }
.section--tight-top h2 { margin-bottom: 20px; }
.section-heading { max-width: 720px; margin-bottom: 40px; }
.section-heading p { color: var(--muted); font-size: 1.05rem; }
.section-heading.light-heading h2, .section-heading.light-heading .eyebrow { color: var(--white); }
.section-heading.light-heading p { color: rgba(255,255,255,.72); }

.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .8rem; color: var(--red); margin-bottom: 14px; }
.eyebrow span { display: inline-block; width: 24px; height: 2px; background: var(--red); }

/* ---------- Hero ---------- */
.hero {
	position: relative; overflow: hidden; isolation: isolate; padding-top: 64px;
	background-color: var(--white);
}
.hero::before {
	/* Sized larger than the section (not inset:0) so the float animation's
	   translate+scale never slides an edge into view — overflow:hidden on
	   .hero clips the overscan. */
	content: ""; position: absolute; inset: -15%; z-index: -1; pointer-events: none;
	background-image:
		radial-gradient(circle, rgba(0,76,148,.12) 1.4px, transparent 1.6px),
		radial-gradient(560px circle at 88% -10%, rgba(0,76,148,.18), transparent 70%),
		radial-gradient(460px circle at -6% 108%, rgba(202,1,47,.14), transparent 70%);
	background-size: 24px 24px, auto, auto;
	background-repeat: repeat, no-repeat, no-repeat;
	-webkit-mask-image: linear-gradient(180deg, #000 15%, #000 62%, transparent 90%);
	mask-image: linear-gradient(180deg, #000 15%, #000 62%, transparent 90%);
}
.hero.hero-center::before {
	background-image:
		radial-gradient(circle, rgba(0,76,148,.12) 1.4px, transparent 1.6px),
		radial-gradient(560px circle at 50% -10%, rgba(0,76,148,.16), transparent 70%),
		radial-gradient(460px circle at 50% 118%, rgba(202,1,47,.13), transparent 70%);
}
.hero .dt-wrap, .hero-band { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; padding-bottom: 56px; }
.hero-copy p { font-size: 1.1rem; color: var(--muted); max-width: 46ch; }
.hero-actions { margin-top: 8px; }
.hero-media { position: relative; perspective: 1000px; }

/* Compact inline quick-capture form beside the main hero CTA */
.hero-quick-form { margin-top: 18px; max-width: 420px; }
.hero-quick-form > p { font-size: .85rem; color: var(--muted); margin-bottom: 8px; }
.hero-quick-form .wpcf7-form { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-quick-form .wpcf7-form p { flex: 1 1 200px; margin: 0; }
.hero-quick-form .wpcf7-form p:has(input[type="submit"]) { flex: 0 0 auto; }
.hero-quick-form input[type="email"] { margin: 0; }
.hero-quick-form .wpcf7-submit { width: auto; white-space: nowrap; padding-inline: 1.5em; }
.hero-quick-form .wpcf7-response-output { flex-basis: 100%; }
.hero-media img, .hero-media .dt-ph { border-radius: var(--radius); }
.hero-band { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.hero-band-inner { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; padding-block: 28px; }
.hero-stat { text-align: center; border-left: 1px solid var(--line); }
.hero-stat:first-child, .hero-stat:nth-child(3) { border-left: 0; }
.hero-stat strong { display: block; font-family: var(--font-head); font-size: 1.9rem; font-weight: 800; color: var(--navy); }
.hero-stat span { font-size: .85rem; color: var(--muted); }

/* ---------- Intro ---------- */
.intro { position: relative; overflow: hidden; text-align: center; }
.intro::before {
	content: ""; position: absolute; top: -140px; left: 50%; transform: translateX(-50%);
	width: 640px; height: 480px; border-radius: 50%; pointer-events: none;
	background: radial-gradient(circle, rgba(0,76,148,.08), transparent 70%);
}
.intro .dt-wrap { position: relative; z-index: 1; }

.industries { position: relative; overflow: hidden; background: var(--bg-soft); }
.industries::before {
	content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .7;
	background-image: linear-gradient(135deg, rgba(0,76,148,.05) 25%, transparent 25%, transparent 50%, rgba(0,76,148,.05) 50%, rgba(0,76,148,.05) 75%, transparent 75%, transparent);
	background-size: 48px 48px;
}
.industries::after {
	content: ""; position: absolute; top: -100px; right: -100px; width: 380px; height: 380px; border-radius: 50%;
	background: radial-gradient(circle, rgba(202,1,47,.09), transparent 70%); pointer-events: none;
}
.industries .dt-wrap { position: relative; z-index: 1; }
.intro .section-heading { margin-inline: auto; }

/* ---------- Industries ---------- */
/* Looping carousel: track duplicated in the template, animated via keyframes, paused on hover/focus. */
.industry-carousel {
	overflow: hidden; margin-inline: -20px; padding-inline: 20px;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.industry-track {
	display: flex; gap: 16px; width: max-content;
	animation: dt-industry-scroll 32s linear infinite;
}
.industry-carousel:hover .industry-track, .industry-carousel:focus-within .industry-track { animation-play-state: paused; }
@keyframes dt-industry-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.industry-card {
	position: relative; isolation: isolate;
	flex: 0 0 auto; width: 176px;
	display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center;
	padding: 28px 16px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--navy);
	font-weight: 600; background: var(--white); box-shadow: 0 2px 10px rgba(11,34,74,.05);
	transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.industry-card:hover { border-color: var(--red); color: var(--red); transform: translateY(-4px); box-shadow: 0 12px 24px rgba(216,31,33,.15); }
.industry-icon {
	display: flex; align-items: center; justify-content: center; width: 56px; height: 56px;
	border-radius: 50%; background: var(--bg-soft); color: var(--blue);
}
.industry-card:hover .industry-icon { background: #fdeeee; color: var(--red); }
.industry-icon img { width: 28px; height: 28px; object-fit: contain; }
.industry-label { font-size: .95rem; }

@media (prefers-reduced-motion: reduce) {
	.industry-track { animation: none; }
	.industry-carousel { overflow-x: auto; }
}

/* ---------- Services ---------- */
.service-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.service-card { position: relative; isolation: isolate; background: var(--white); border-radius: var(--radius); padding: 28px; border: 1px solid var(--line); border-top: 3px solid var(--blue); box-shadow: 0 4px 16px rgba(11,34,74,.06); transition: transform .15s ease, box-shadow .15s ease; }
.service-card:hover { transform: translateY(-4px); box-shadow: 0 16px 30px rgba(11,34,74,.12); border-top-color: var(--red); }
.service-card p { color: var(--muted); }
.card-link { font-weight: 600; color: var(--navy); }
.card-link:hover { color: var(--red); }

/* Cursor-follow spotlight glow — position set from JS via --mx/--my as the pointer moves. */
.service-card::after, .why-item::after, .cta-form-card::after, .industry-card::after {
	content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; opacity: 0;
	background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(202,1,47,.14), transparent 60%);
	transition: opacity .3s ease;
}
.service-card:hover::after, .why-item:hover::after, .cta-form-card:hover::after, .industry-card:hover::after { opacity: 1; }

/* ---------- Why (dark) / reusable dark section ---------- */
.why-dark, .section-dark {
	position: relative; overflow: hidden;
	background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 55%, var(--navy-deepest) 100%);
}
.why-dark::before, .section-dark::before {
	content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
	background-image: radial-gradient(circle, rgba(255,255,255,.12) 1.4px, transparent 1.6px);
	background-size: 26px 26px;
	-webkit-mask-image: radial-gradient(circle at 30% 20%, #000, transparent 75%);
	mask-image: radial-gradient(circle at 30% 20%, #000, transparent 75%);
}
.why-dark::after, .section-dark::after {
	content: ""; position: absolute; width: 460px; height: 460px; border-radius: 50%; pointer-events: none;
	background: radial-gradient(circle, rgba(202,1,47,.2), transparent 70%); top: -140px; right: -100px;
}
.why-dark .dt-wrap, .section-dark .dt-wrap { position: relative; z-index: 1; }
.why-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
.why-item { position: relative; isolation: isolate; background: var(--white); border-top: 3px solid var(--red); border-radius: 8px; padding: 24px; box-shadow: 0 2px 10px rgba(11,34,74,.05); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.why-index { font-family: var(--font-head); font-weight: 700; font-size: 1.5rem; color: var(--red); }
.why-item h3 { color: var(--navy); margin-top: 8px; }
.why-item p { color: var(--muted); }

.why-dark .why-item {
	background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-top: 3px solid var(--red);
	box-shadow: 0 20px 40px rgba(0,0,0,.25); backdrop-filter: blur(6px);
}
.why-dark .why-item::after { background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.12), transparent 60%); }
.why-dark .why-item:hover { transform: translateY(-6px); border-color: rgba(202,1,47,.45); box-shadow: 0 24px 50px rgba(202,1,47,.2); }
.why-dark .why-index { color: #ff5f7a; }
.why-dark .why-item h3 { color: var(--white); }
.why-dark .why-item p { color: rgba(255,255,255,.65); }

/* ---------- CTA band: hero-style lead capture (light tint, not a bold block) ---------- */
.cta-band {
	position: relative; overflow: hidden;
	background-color: #fdeeee;
	background-image: radial-gradient(circle, rgba(202,1,47,.08) 1.4px, transparent 1.6px);
	background-size: 22px 22px;
}
.cta-band::before {
	content: ""; position: absolute; width: 480px; height: 480px; border-radius: 50%;
	background: radial-gradient(circle, rgba(202,1,47,.09), transparent 70%);
	right: -120px; top: -160px; pointer-events: none;
}
.cta-band::after {
	content: ""; position: absolute; width: 360px; height: 360px; border-radius: 50%;
	background: radial-gradient(circle, rgba(0,76,148,.07), transparent 70%);
	left: -110px; bottom: -140px; pointer-events: none;
}
.cta-band-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr; gap: 44px; align-items: start; }
.cta-form-card { position: relative; isolation: isolate; }

.cta-badge {
	display: inline-flex; align-items: center; gap: 8px; background: var(--white);
	border: 1px solid rgba(202,1,47,.2); color: var(--red-dark); padding: .5em 1em; border-radius: 999px;
	font-size: .8rem; font-weight: 600; margin-bottom: 18px;
}
.cta-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: #16a34a; box-shadow: 0 0 0 3px rgba(22,163,74,.18); }

.cta-copy h2 { color: var(--navy); }
.cta-copy p { color: var(--muted); font-size: 1.08rem; }
.cta-benefits { margin-top: 24px; display: flex; flex-direction: column; gap: 14px; }
.cta-benefits li { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 500; }
.cta-benefits svg { color: #16a34a; flex-shrink: 0; }

.cta-form-card { background: var(--white); border-radius: 16px; padding: 28px; box-shadow: 0 20px 44px rgba(202,1,47,.12); }
.cta-form-card h3 { margin-bottom: 4px; }
.cta-form-card > p { color: var(--muted); margin-bottom: 16px; font-size: .92rem; }

/* CF7 wraps each [tag] line in its own <p> via wpautop — grid those directly. */
.wpcf7-form { display: grid; grid-template-columns: 1fr; gap: 12px; }
.wpcf7-form p { margin: 0; }
.wpcf7-form br { display: none; }
.wpcf7-form label { display: block; font-size: .85rem; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
/* Fields that should always span both columns, regardless of field count/order. */
.wpcf7-form p:has(textarea), .wpcf7-form p:has(input[type="submit"]) { grid-column: 1 / -1; }
.wpcf7-form input[type="text"], .wpcf7-form input[type="email"], .wpcf7-form input[type="tel"],
.wpcf7-form select, .wpcf7-form textarea {
	display: block; width: 100%; padding: .7em .85em; border: 1px solid var(--line);
	border-radius: 8px; font-family: inherit; font-size: .92rem; color: var(--ink); background: var(--white);
	transition: border-color .15s ease, box-shadow .15s ease;
}
.wpcf7-form input:focus, .wpcf7-form select:focus, .wpcf7-form textarea:focus {
	outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,76,148,.12);
}
.wpcf7-form textarea { resize: vertical; min-height: 64px; }
.wpcf7-submit {
	width: 100%; background: var(--red); color: var(--white); border: none; padding: .85em 1.4em;
	border-radius: 8px; font-weight: 700; font-size: .96rem; cursor: pointer; transition: background .15s ease;
}
.wpcf7-submit:hover { background: var(--navy); }
.wpcf7-spinner { margin: 8px auto 0; display: block; }
.wpcf7-not-valid-tip { color: var(--red); font-size: .78rem; margin-top: 3px; font-weight: 500; }
.wpcf7-response-output { grid-column: 1 / -1; margin: 4px 0 0 !important; border-radius: 8px !important; font-size: .85rem; padding: .6em .8em !important; }

/* ==========================================================================
   Interior pages — reusable sections (About, Staffing, IT Solutions, Contact)
   ========================================================================== */

/* Compact hero variant for interior pages: same dot-grid/blob background as
   the home hero, less vertical padding, optional single-column centered copy. */
.hero--compact { padding-bottom: 8px; }
.hero--compact .hero-grid { padding-bottom: 48px; }
.hero-center { max-width: 760px; margin-inline: auto; text-align: center; }
.hero-center .hero-copy p { max-width: 60ch; margin-inline: auto; }
.hero-center .hero-actions { display: flex; justify-content: center; }

.feature-list { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.feature-list li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink); font-weight: 500; }
.feature-list svg { color: #16a34a; flex-shrink: 0; margin-top: 3px; }

/* Service bento: one "spotlight" card (with the placeholder/photo panel)
   plus icon-led mini cards — an asymmetric grid instead of a repeated
   image/text zig-zag, and it degrades gracefully to any item count. */
.feature-icon {
	display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
	width: 48px; height: 48px; border-radius: 13px; margin-bottom: 16px;
	background: linear-gradient(135deg, var(--blue), var(--navy-2)); color: var(--white);
	box-shadow: 0 10px 20px rgba(0,76,148,.25);
}

.feature-bento { display: flex; flex-direction: column; gap: 20px; }
/* flex-wrap (not CSS grid) so a leftover single card on the last row grows
   to fill the row instead of sitting stranded next to empty space. */
.feature-minis { display: flex; flex-wrap: wrap; gap: 20px; }

.feature-spot {
	position: relative; isolation: isolate; overflow: hidden;
	display: grid; grid-template-columns: 1fr; gap: 28px; align-items: center;
	background: var(--white); border: 1px solid var(--line); border-radius: 20px;
	padding: 32px; box-shadow: 0 20px 44px rgba(11,34,74,.08);
}
.feature-spot::after {
	content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; opacity: 0;
	background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), rgba(0,76,148,.08), transparent 60%);
	transition: opacity .3s ease;
}
.feature-spot:hover::after { opacity: 1; }
.feature-spot-media .dt-ph, .feature-spot-media img { min-height: 220px; border-radius: 14px; }
.feature-spot-copy p { color: var(--muted); font-size: 1.05rem; margin: 0; }

.feature-mini {
	flex: 1 1 260px;
	position: relative; isolation: isolate;
	background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 28px;
	box-shadow: 0 4px 16px rgba(11,34,74,.05); transition: transform .2s ease, box-shadow .2s ease;
}
.feature-mini:hover { transform: translateY(-4px); box-shadow: 0 16px 30px rgba(11,34,74,.1); }
.feature-mini::after {
	content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; opacity: 0;
	background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), rgba(202,1,47,.12), transparent 60%);
	transition: opacity .3s ease;
}
.feature-mini:hover::after { opacity: 1; }
.feature-mini .feature-icon { width: 42px; height: 42px; border-radius: 11px; }
.feature-mini p { color: var(--muted); margin: 0; }

@media (min-width: 780px) {
	.feature-spot { grid-template-columns: 1.1fr .9fr; padding: 40px; }
}

/* Numbered step / process cards — dark (default) or light (.on-light) variant */
.step-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
.step-card {
	position: relative; isolation: isolate;
	background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: 12px;
	padding: 28px; backdrop-filter: blur(6px); transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.step-card .step-num {
	display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px;
	border-radius: 50%; background: rgba(202,1,47,.18); color: #ff5f7a; font-weight: 800;
	font-family: var(--font-head); margin-bottom: 16px;
}
.step-card h3 { color: var(--white); }
.step-card p { color: rgba(255,255,255,.65); margin: 0; }
.step-card::after {
	content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; opacity: 0;
	background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.12), transparent 60%);
	transition: opacity .3s ease;
}
.step-card:hover::after { opacity: 1; }
.step-card:hover { transform: translateY(-6px); border-color: rgba(202,1,47,.45); box-shadow: 0 24px 50px rgba(202,1,47,.2); }

.step-card.on-light { background: var(--white); border-color: var(--line); box-shadow: 0 4px 16px rgba(11,34,74,.06); }
.step-card.on-light h3 { color: var(--navy); }
.step-card.on-light p { color: var(--muted); }
.step-card.on-light .step-num { background: #fdeeee; color: var(--red); }
.step-card.on-light::after { background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(202,1,47,.14), transparent 60%); }
.step-card.on-light:hover { box-shadow: 0 16px 30px rgba(11,34,74,.12); }
@media (min-width: 780px) { .step-grid { grid-template-columns: repeat(3, 1fr); } }

/* Tag chip groups (domain expertise, tech stack) */
.tag-group { margin-bottom: 28px; }
.tag-group h3 { font-size: 1.05rem; color: var(--navy); margin-bottom: 14px; }
.tag-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.tag-chip {
	background: var(--white); border: 1px solid var(--line); color: var(--muted);
	padding: .5em 1em; border-radius: 999px; font-size: .88rem; font-weight: 600;
	transition: border-color .15s ease, color .15s ease, transform .15s ease;
}
.tag-chip:hover { border-color: var(--red); color: var(--red); transform: translateY(-2px); }

/* Contact info cards + map embed */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.contact-card {
	position: relative; isolation: isolate;
	display: flex; gap: 16px; align-items: flex-start; background: var(--white);
	border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
	box-shadow: 0 4px 16px rgba(11,34,74,.05); transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.contact-card:hover { transform: translateY(-4px); box-shadow: 0 16px 30px rgba(11,34,74,.1); border-color: rgba(202,1,47,.25); }
.contact-card::after {
	content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; opacity: 0;
	background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 50%), rgba(202,1,47,.12), transparent 60%);
	transition: opacity .3s ease;
}
.contact-card:hover::after { opacity: 1; }
.contact-card .contact-icon { flex-shrink: 0; width: 46px; height: 46px; border-radius: 50%; background: var(--bg-soft); color: var(--blue); display: flex; align-items: center; justify-content: center; }
.contact-card h3 { font-size: 1rem; margin-bottom: 4px; }
.contact-card p, .contact-card address { color: var(--muted); font-size: .95rem; font-style: normal; margin: 0; }
.contact-card a { color: var(--muted); }
.contact-card a:hover { color: var(--red); }
@media (min-width: 640px) { .contact-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); } }

/* Contact page: info cards live inside the hero itself (same background,
   no seam) — this just adds the closing bottom padding the hero lacks. */
.contact-grid-wrap { position: relative; z-index: 1; padding-bottom: clamp(48px, 7vw, 96px); }

/* Contact page: form + map split */
.contact-split { position: relative; overflow: hidden; background: var(--bg-soft); }
.contact-split::before {
	content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%; pointer-events: none;
	background: radial-gradient(circle, rgba(202,1,47,.08), transparent 70%); left: -120px; bottom: -140px;
}
.contact-split .dt-wrap { position: relative; z-index: 1; }
.contact-split-inner { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: stretch; }
.contact-split .cta-form-card { margin: 0; }
.map-card {
	background: var(--white); border-radius: 16px; padding: 28px;
	box-shadow: 0 20px 44px rgba(0,76,148,.1); display: flex; flex-direction: column;
}
.map-card h3 { margin-bottom: 4px; }
.map-card > p { color: var(--muted); margin-bottom: 16px; font-size: .92rem; }
.map-card .map-frame { flex: 1; border-color: var(--line); }
.map-card .map-frame iframe { height: 100%; min-height: 280px; }
@media (min-width: 860px) {
	.contact-split-inner { grid-template-columns: 1.05fr .95fr; }
	.map-card, .contact-split .cta-form-card { height: 100%; }
}

/* Services hub: icon-grid tiles linking out to each service subpage */
.services-grid { display: flex; flex-wrap: wrap; gap: 20px; }
.service-tile {
	flex: 1 1 260px; position: relative; isolation: isolate;
	display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line);
	border-radius: 16px; padding: 28px; box-shadow: 0 4px 16px rgba(11,34,74,.05);
	transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.service-tile:hover { transform: translateY(-4px); box-shadow: 0 16px 30px rgba(11,34,74,.1); border-color: rgba(0,76,148,.25); }
.service-tile::after {
	content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; opacity: 0;
	background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(0,76,148,.08), transparent 60%);
	transition: opacity .3s ease;
}
.service-tile:hover::after { opacity: 1; }
.service-tile h3 { margin-bottom: 6px; }
.service-tile p { color: var(--muted); margin: 0 0 16px; flex: 1; }
.service-tile .card-link { margin-top: auto; }
.service-tile:hover .card-link { color: var(--red); }

/* Careers page: job listing cards */
.job-grid { display: flex; flex-direction: column; gap: 20px; }
.job-card {
	position: relative; isolation: isolate;
	background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--blue);
	border-radius: var(--radius); padding: 28px; box-shadow: 0 4px 16px rgba(11,34,74,.05);
	transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.job-card:hover { transform: translateY(-3px); box-shadow: 0 16px 30px rgba(11,34,74,.1); border-left-color: var(--red); }
.job-card::after {
	content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; opacity: 0;
	background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), rgba(0,76,148,.06), transparent 60%);
	transition: opacity .3s ease;
}
.job-card:hover::after { opacity: 1; }
.job-card h3 { margin-bottom: 6px; }
.job-card > p.job-body { color: var(--muted); margin-bottom: 16px; }
.job-meta { display: flex; flex-wrap: wrap; gap: 14px 28px; margin-bottom: 18px; }
.job-meta li { display: flex; align-items: flex-start; gap: 8px; font-size: .88rem; color: var(--muted); max-width: 46ch; }
.job-meta svg { flex-shrink: 0; margin-top: 2px; color: var(--blue); }

/* Referral bonus callout */
.callout-banner {
	display: flex; flex-wrap: wrap; align-items: center; gap: 16px; justify-content: space-between;
	background: #fdeeee; border: 1px solid rgba(202,1,47,.2); border-radius: var(--radius);
	padding: 22px 26px; margin-top: 32px;
}
.callout-banner h3 { color: var(--red-dark); font-size: 1.05rem; margin-bottom: 4px; }
.callout-banner p { color: var(--ink); margin: 0; font-size: .95rem; }

/* Centered standalone form card (Careers application form) */
.form-centered { max-width: 640px; margin-inline: auto; }
.form-centered .cta-form-card { margin: 0; }

.map-frame { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: 0 4px 16px rgba(11,34,74,.06); }
.map-frame iframe { display: block; width: 100%; height: 340px; border: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: rgba(255,255,255,.75); }

.dt-footer-newsletter { border-bottom: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.04); }
.dt-footer-newsletter-inner { display: flex; flex-direction: column; gap: 20px; padding-block: 36px; align-items: flex-start; justify-content: space-between; }
.dt-footer-newsletter h3 { color: var(--white); margin-bottom: 6px; font-size: 1.3rem; }
.dt-footer-newsletter p { color: rgba(255,255,255,.62); margin: 0; }
.newsletter-form { display: flex; gap: 10px; flex-wrap: wrap; width: 100%; }
.newsletter-form input { flex: 1; min-width: 200px; padding: .85em 1em; border: 1px solid rgba(255,255,255,.25); border-radius: 8px; background: rgba(255,255,255,.08); color: var(--white); font-family: inherit; }
.newsletter-form input::placeholder { color: rgba(255,255,255,.5); }
.newsletter-form button { background: var(--red); color: var(--white); border: none; padding: .85em 1.4em; border-radius: 8px; font-weight: 600; white-space: nowrap; }
.newsletter-form button:hover { background: var(--white); color: var(--navy); }

.dt-footer-grid { display: grid; grid-template-columns: 1fr; gap: 36px; padding-block: 56px; }
.dt-footer-grid h3 { color: var(--white); font-size: 1.05rem; margin-bottom: 18px; }
.dt-footer-brand .site-logo { margin-bottom: 18px; }
.dt-footer-brand p { color: rgba(255,255,255,.6); }
.dt-footer-brand .site-logo span { color: var(--white); }
.dt-footer-col ul.dt-footer-links { margin: 0; }
.dt-footer-links { display: flex; flex-direction: column; gap: 10px; }
.dt-footer-links a { color: rgba(255,255,255,.75); }
.dt-footer-links a:hover { color: var(--white); }
.dt-footer-contact p.has-icon { display: flex; align-items: flex-start; gap: 8px; margin: 0 0 .6em; color: rgba(255,255,255,.75); }
.dt-footer-contact p.has-icon svg { flex-shrink: 0; margin-top: 3px; color: var(--red); }
.dt-footer-contact a { color: rgba(255,255,255,.85); }
.footer-cta { margin-top: 16px; font-size: .85rem; padding: .8em 1.4em; }

.dt-social { display: flex; gap: 10px; margin-top: 16px; }
.dt-social a {
	display: flex; align-items: center; justify-content: center; width: 36px; height: 36px;
	border-radius: 50%; background: rgba(255,255,255,.08); color: rgba(255,255,255,.8);
	transition: background .15s ease, color .15s ease;
}
.dt-social a:hover { background: var(--red); color: var(--white); }

.dt-footer-bottom { border-top: 1px solid rgba(255,255,255,.12); }
.dt-footer-bottom-inner { display: flex; flex-direction: column; gap: 14px; align-items: center; padding-block: 20px; text-align: center; }
.dt-footer-bottom-inner p { margin: 0; font-size: .85rem; color: rgba(255,255,255,.55); }
.dt-footer-bottom-right { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; justify-content: center; }
.dt-legal-links { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; }
.dt-legal-links a { font-size: .85rem; color: rgba(255,255,255,.55); }
.dt-legal-links a:hover { color: var(--white); }
.back-to-top {
	display: flex; align-items: center; justify-content: center; width: 34px; height: 34px;
	border-radius: 50%; border: 1px solid rgba(255,255,255,.25); color: var(--white); flex-shrink: 0;
}
.back-to-top:hover { background: var(--red); border-color: var(--red); color: var(--white); }

/* ---------- Generic content (blog/search/404 fallback) ---------- */
.generic-content { padding-block: 56px; }

/* ---------- Legal pages (Privacy Policy / Terms of Service) ---------- */
.legal-content { max-width: 760px; }
.legal-content h2 { margin-top: 1.4em; font-size: 1.4rem; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content p { color: var(--muted); }

/* ---------- Motion: scroll-reveal, sticky header, hover polish ---------- */
@media (prefers-reduced-motion: no-preference) {
	.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
	.reveal.is-visible { opacity: 1; transform: translateY(0); }

	.hero::before, .why-dark::after { animation: dt-blob-float 14s ease-in-out infinite; }
	.dt-ph::after { animation: dt-shine 7s ease-in-out infinite; }
	.dt-chip-1 { animation: dt-chip-float 5s ease-in-out infinite; animation-delay: .6s; }
	.dt-chip-2 { animation: dt-chip-float 6s ease-in-out infinite reverse; animation-delay: .9s; }
}

@keyframes dt-blob-float {
	0%, 100% { transform: translate(0, 0) scale(1); }
	50% { transform: translate(-4%, 5%) scale(1.06); }
}
@keyframes dt-blob-float-2 {
	0%, 100% { transform: translate(0, 0) scale(1); }
	50% { transform: translate(5%, -4%) scale(1.08); }
}
@keyframes dt-shine {
	0%, 15% { background-position: -140% 0; }
	60%, 100% { background-position: 140% 0; }
}
@keyframes dt-chip-float {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-8px); }
}

.site-header.is-scrolled { box-shadow: 0 6px 18px rgba(11,34,74,.08); }
.site-header.is-scrolled::before { background: rgba(255,255,255,.98); }

.nav-list a { position: relative; }
.nav-list a::after {
	content: ""; position: absolute; left: 0; right: 100%; bottom: -4px; height: 2px; background: var(--red);
	transition: right .2s ease;
}
.nav-list a:hover::after, .nav-list .current-menu-item > a::after { right: 0; }

.btn-primary, .btn-quiet { transition: transform .15s ease, background .15s ease, color .15s ease, box-shadow .15s ease; }
.btn-primary:hover { box-shadow: 0 10px 22px rgba(202,1,47,.28); }

.card-link span, .hero-actions .btn span { display: inline-block; transition: transform .18s ease; }
.card-link:hover span, .btn:hover span { transform: translateX(4px); }

.industry-icon img, .industry-icon svg { transition: transform .25s ease; }
.industry-card:hover .industry-icon img, .industry-card:hover .industry-icon svg { transform: scale(1.12) rotate(-4deg); }

.hero-media img, .hero-media .dt-ph { transition: transform .25s ease; transform-style: preserve-3d; will-change: transform; }

/* ---------- Placeholder ---------- */
.dt-ph {
	position: relative; overflow: hidden; isolation: isolate;
	background: linear-gradient(135deg, var(--blue), var(--navy-2));
	border-radius: 8px; display: flex; align-items: center; justify-content: center;
	color: rgba(255,255,255,.85); font-size: .7rem; text-align: center; padding: 4px;
}
.dt-ph::before {
	content: ""; position: absolute; inset: 0; z-index: -1; opacity: .7;
	background-image: radial-gradient(circle, rgba(255,255,255,.16) 1.4px, transparent 1.6px);
	background-size: 20px 20px;
}
.dt-ph::after {
	content: ""; position: absolute; inset: -60% -20%; z-index: -1;
	background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.22) 48%, transparent 62%);
	background-size: 200% 100%;
}
.hero-media .dt-ph { min-height: 320px; border-radius: var(--radius); font-size: 1rem; font-weight: 600; }

/* ---------- Floating decorative chips (injected by JS over the hero visual) ---------- */
.dt-floating-chip {
	position: absolute; z-index: 2; display: flex; align-items: center; gap: 8px;
	background: var(--white); color: var(--navy); padding: 10px 16px; border-radius: 12px;
	font-size: .82rem; font-weight: 700; box-shadow: 0 14px 30px rgba(11,34,74,.18);
	opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease;
}
.dt-floating-chip.is-visible { opacity: 1; transform: translateY(0); }
.dt-floating-chip .dot { width: 8px; height: 8px; border-radius: 50%; background: #16a34a; box-shadow: 0 0 0 3px rgba(22,163,74,.2); flex-shrink: 0; }
.dt-chip-1 { top: -16px; left: -16px; }
.dt-chip-2 { bottom: -16px; right: -16px; }
@media (max-width: 560px) { .dt-floating-chip { display: none; } }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
	.site-nav {
		position: fixed; inset: 0 0 0 auto; width: min(320px, 85vw); background: var(--white);
		transform: translateX(100%); transition: transform .25s ease; padding: 90px 28px 28px;
		box-shadow: -8px 0 24px rgba(0,0,0,.08); overflow-y: auto;
	}
	.site-nav.is-open { transform: translateX(0); }
	.nav-list { flex-direction: column; gap: 18px; align-items: flex-start; width: 100%; }
	.nav-toggle { display: flex; }
	.dt-header-phone { display: none; }

	/* Submenus flow inline on mobile instead of hover-popping. */
	.nav-list .menu-item-has-children { width: 100%; }
	.nav-list .sub-menu {
		position: static; opacity: 1; visibility: visible; transform: none;
		box-shadow: none; border: 0; border-left: 2px solid var(--line); border-radius: 0;
		margin: 10px 0 0 4px; padding: 0 0 0 14px; display: flex; flex-direction: column; gap: 10px;
	}
	.nav-list .sub-menu a { padding: 0; font-size: .9rem; color: var(--muted); }
}

@media (min-width: 640px) {
	.why-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 780px) {
	.cta-band-inner { grid-template-columns: 1.1fr 1fr; }
	/* Pairs fields two-per-row; textareas and the submit button stay full-width (see :has() rule above). */
	.wpcf7-form { grid-template-columns: 1fr 1fr; gap: 12px 14px; }
}

@media (min-width: 860px) {
	.hero-grid { grid-template-columns: 1.1fr .9fr; }
	.dt-footer-grid { grid-template-columns: 1.4fr .8fr .8fr 1fr; }
	.dt-footer-newsletter-inner { flex-direction: row; align-items: center; }
	.dt-footer-newsletter-inner > div { max-width: 420px; }
	.newsletter-form { width: auto; max-width: 420px; }
	.dt-footer-bottom-inner { flex-direction: row; justify-content: space-between; text-align: left; }
}

@media (min-width: 960px) {
	.service-grid { grid-template-columns: repeat(3, 1fr); }
	.why-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 1000px) {
	.hero-band-inner { grid-template-columns: repeat(4, 1fr); }
	.hero-stat:nth-child(3) { border-left: 1px solid var(--line); }
	.hero-stat:first-child { border-left: 0; }
}
