/*
Theme Name: Elite Marketing & Media
Theme URI: https://elitemarketingmedia.com
Author: Elite Marketing & Media
Author URI: https://elitemarketingmedia.com
Description: Flagship multi-page theme for Elite Marketing & Media — Wilmington, NC's full-stack marketing agency. Award-level interaction design: count-up stat counters, scroll-reveal choreography, flip team cards, and a marquee capability ticker. Built Customizer-first with embedded local SEO.
Version: 1.4.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: emm-elite
Tags: business, custom-menu, custom-logo, one-column, full-width-template
*/

/* =========================================================
 * 1. DESIGN TOKENS
 * ======================================================= */
:root {
	--primary:        #1E2761;
	--primary-mid:    #293478;
	--primary-deep:   #161D4C;
	--primary-light:  #EEF0F8;
	--accent:         #709AA3;
	--accent-light:   #93B3BA;
	--accent-deep:    #4E727B;
	--amber:          #F5A623;
	--amber-light:    #FFB84D;
	--amber-deep:     #B87A0D;
	--text-dark:      #2D2D2D;
	--text-muted:     #5A6068;
	--text-subtle:    #A9B1D0;
	--surface-warm:   #F7F6F2;
	--surface-light:  #FBFCFD;
	--white:          #FFFFFF;

	--font-display: 'Oswald', 'Arial Narrow', sans-serif;
	--font-body: 'Poppins', 'Helvetica Neue', sans-serif;

	--size-hero: clamp(2.6rem, 6.5vw, 4.8rem);
	--size-h2: clamp(1.9rem, 4vw, 3rem);
	--size-h3: clamp(1.2rem, 2vw, 1.5rem);
	--size-lede: clamp(1.02rem, 1.4vw, 1.2rem);

	--container: 1200px;
	--radius: 10px;
	--shadow-sm: 0 2px 10px rgba(22, 29, 76, 0.08);
	--shadow-md: 0 10px 34px rgba(22, 29, 76, 0.14);
	--shadow-lg: 0 24px 60px rgba(22, 29, 76, 0.22);
	--ease: cubic-bezier(0.22, 1, 0.36, 1);
	--header-h: 76px;
	--utility-h: 38px;
}

/* =========================================================
 * 2. RESET / BASE
 * ======================================================= */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 1rem;
	line-height: 1.7;
	color: var(--text-dark);
	background: var(--surface-light);
	overflow-x: hidden;
}

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

::selection { background: var(--amber); color: var(--primary-deep); }

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-display);
	font-weight: 600;
	line-height: 1.12;
	letter-spacing: 0.01em;
	text-transform: uppercase;
	color: var(--text-dark);
	margin: 0 0 0.6em;
}

h1 { font-size: var(--size-hero); }
h2 { font-size: var(--size-h2); }
h3 { font-size: var(--size-h3); }

p { margin: 0 0 1.2em; }

a { color: var(--accent-deep); text-decoration: none; transition: color 0.25s var(--ease); }
a:hover { color: var(--primary-mid); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible,
select:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
	outline: 3px solid var(--accent);
	outline-offset: 3px;
	border-radius: 2px;
}

ul { padding-left: 1.2em; }

.container {
	width: min(var(--container), calc(100% - 2.5rem));
	margin-inline: auto;
}

.screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px; width: 1px;
	overflow: hidden;
	position: absolute !important;
	word-wrap: normal !important;
}

.skip-link {
	position: absolute;
	left: 1rem; top: -100px;
	z-index: 10000;
	background: var(--primary);
	color: var(--white);
	padding: 0.7rem 1.2rem;
	border-radius: 0 0 6px 6px;
	transition: top 0.2s;
}
.skip-link:focus {
	top: 0;
	clip: auto;
	clip-path: none;
	height: auto; width: auto;
	color: var(--white);
}

/* =========================================================
 * 3. SCROLL PROGRESS
 * ======================================================= */
.scroll-progress {
	position: fixed;
	top: 0; left: 0; right: 0;
	height: 3px;
	z-index: 1300;
	pointer-events: none;
}
.scroll-progress span {
	display: block;
	height: 100%;
	background: linear-gradient(90deg, var(--accent), var(--amber));
	transform: scaleX(0);
	transform-origin: 0 50%;
	will-change: transform;
}

/* =========================================================
 * 4. UTILITY BAR
 * ======================================================= */
.utility-bar {
	background: var(--primary-deep);
	color: var(--text-subtle);
	font-size: 0.78rem;
	letter-spacing: 0.06em;
	position: relative;
	z-index: 1100;
}
.utility-bar-inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
	min-height: var(--utility-h);
	gap: 1rem;
}
.utility-phone {
	color: var(--white);
	font-weight: 600;
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
}
.utility-phone:hover { color: var(--accent-light); }

/* =========================================================
 * 5. HEADER / NAV
 * ======================================================= */
.site-header {
	position: sticky;
	top: 0;
	z-index: 1200;
	background: transparent;
	transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.site-header.scrolled {
	background: rgba(22, 29, 76, 0.96);
	box-shadow: 0 6px 24px rgba(22, 29, 76, 0.35);
	backdrop-filter: blur(8px);
}
.site-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: var(--header-h);
	gap: 2rem;
}
.site-branding .custom-logo { max-height: 56px; width: auto; }
.brand-logo { display: inline-flex; align-items: center; }
.brand-logo img { max-height: 62px; width: auto; display: block; }
.footer-logo-img img { max-height: 84px; width: auto; display: block; margin-bottom: 0.4rem; }
.brand-text {
	font-family: var(--font-display);
	text-transform: uppercase;
	font-size: 1.3rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	color: var(--white);
	white-space: nowrap;
}
.brand-text:hover { color: var(--white); }
.brand-elite { color: var(--accent-light); }
.brand-amp { color: var(--accent-light); font-weight: 400; padding: 0 0.1em; }

.main-navigation ul {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	list-style: none;
	margin: 0;
	padding: 0;
}
.main-navigation li a {
	display: inline-block;
	padding: 0.55rem 0.85rem;
	color: var(--white);
	font-size: 0.85rem;
	font-weight: 500;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	position: relative;
}
.main-navigation li a::after {
	content: "";
	position: absolute;
	left: 0.85rem; right: 0.85rem; bottom: 0.28rem;
	height: 2px;
	background: var(--accent-light);
	transform: scaleX(0);
	transform-origin: 0 50%;
	transition: transform 0.3s var(--ease);
}
.main-navigation li a:hover::after,
.main-navigation li.current-menu-item > a::after { transform: scaleX(1); }

/* Promo Store — distinct accent pill */
.main-navigation li.nav-store > a {
	border: 2px solid var(--amber);
	color: var(--amber);
	border-radius: 999px;
	padding: 0.42rem 1.1rem;
	margin-inline: 0.35rem;
	transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.main-navigation li.nav-store > a::after { display: none; }
.main-navigation li.nav-store > a:hover {
	background: var(--amber);
	color: var(--primary-deep);
}

/* Contact — solid CTA button (accent-deep: 5.2:1 with white, AA) */
.main-navigation li.nav-cta > a {
	background: var(--accent-deep);
	color: var(--white);
	font-weight: 600;
	border-radius: 999px;
	padding: 0.5rem 1.25rem;
	transition: background 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease);
}
.main-navigation li.nav-cta > a::after { display: none; }
.main-navigation li.nav-cta > a:hover {
	background: var(--amber);
	transform: translateY(-2px);
	color: var(--primary-deep);
}

/* Hamburger */
.menu-toggle {
	display: none;
	background: transparent;
	border: 0;
	cursor: pointer;
	padding: 0.6rem;
	z-index: 1250;
	position: relative;
}
.menu-toggle-box { display: block; width: 26px; }
.menu-toggle-bar {
	display: block;
	height: 2px;
	width: 100%;
	background: var(--white);
	margin: 6px 0;
	transition: transform 0.32s var(--ease), opacity 0.25s var(--ease);
	transform-origin: center;
}
.toggled ~ * .menu-toggle-bar { background: var(--white); }
.main-navigation.toggled .menu-toggle-bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.main-navigation.toggled .menu-toggle-bar:nth-child(2) { opacity: 0; }
.main-navigation.toggled .menu-toggle-bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* =========================================================
 * 6. BUTTONS
 * ======================================================= */
.btn {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	font-family: var(--font-body);
	font-weight: 600;
	font-size: 0.95rem;
	letter-spacing: 0.03em;
	padding: 0.85rem 1.9rem;
	border-radius: 999px;
	border: 2px solid transparent;
	cursor: pointer;
	transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), transform 0.25s var(--ease);
	will-change: transform;
}
.btn-lg { padding: 1.05rem 2.4rem; font-size: 1.05rem; }
.btn-sm { padding: 0.6rem 1.3rem; font-size: 0.85rem; }
.btn-accent {
	background: var(--accent-deep); /* 5.2:1 with white text — AA at all sizes */
	color: var(--white);
}
.btn-accent:hover {
	background: var(--amber);
	color: var(--primary-deep);
	box-shadow: 0 12px 30px rgba(245, 166, 35, 0.35);
}
.btn-ghost {
	background: transparent;
	color: var(--white);
	border-color: rgba(255, 255, 255, 0.5);
}
.btn-ghost:hover { border-color: var(--amber); color: var(--amber); }
.btn-navy {
	background: var(--primary);
	color: var(--white);
}
.btn-navy:hover { background: var(--primary-mid); color: var(--white); box-shadow: var(--shadow-md); }
.btn-arrow { transition: transform 0.3s var(--ease); display: inline-block; }
.btn:hover .btn-arrow { transform: translateX(5px); }

/* =========================================================
 * 7. SECTION PRIMITIVES
 * ======================================================= */
.section { padding: clamp(4rem, 9vw, 7.5rem) 0; }
.section-dark { background: var(--primary); color: var(--text-subtle); }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-warm { background: var(--surface-warm); }
.section-tint { background: var(--primary-light); }

.eyebrow {
	font-family: var(--font-body);
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--accent-deep);
	margin-bottom: 0.9rem;
}
.eyebrow::before {
	content: "";
	display: inline-block;
	width: 26px; height: 2px;
	background: var(--accent);
	vertical-align: middle;
	margin-right: 0.7rem;
}
.eyebrow-light, .section-dark .eyebrow { color: var(--accent-light); }

.section-head { max-width: 720px; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.section-head .lede { font-size: var(--size-lede); color: var(--text-muted); }
.section-dark .section-head .lede, .section-head-dark .lede { color: var(--text-subtle); }

.accent-underline {
	background-image: linear-gradient(120deg, rgba(147, 179, 186, 0.35), rgba(112, 154, 163, 0.35));
	background-repeat: no-repeat;
	background-size: 100% 0.32em;
	background-position: 0 88%;
}

/* =========================================================
 * 8. SCROLL REVEAL
 * ======================================================= */
/* Reveal styles only apply when JS is confirmed (html.js) — no-JS users see everything. */
.js .reveal, .js .reveal-group > * {
	opacity: 0;
	transform: translateY(28px);
	transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
	will-change: opacity, transform;
}
.js .reveal.revealed, .js .reveal-group > *.revealed {
	opacity: 1;
	transform: none;
}

/* =========================================================
 * 9. HERO
 * ======================================================= */
.hero {
	position: relative;
	background: linear-gradient(135deg, var(--primary-deep) 0%, var(--primary) 55%, var(--primary-mid) 100%);
	color: var(--white);
	overflow: hidden;
	margin-top: calc(-1 * var(--header-h));
	padding-top: var(--header-h);
}
.hero-home { min-height: 92vh; display: flex; align-items: center; }
.hero-bg {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	z-index: 0;
}
.hero-inner {
	position: relative;
	z-index: 2;
	padding: clamp(5rem, 10vw, 8rem) 0 clamp(4rem, 8vw, 7rem);
}
.hero-kicker {
	font-size: 0.85rem;
	font-weight: 600;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	color: var(--accent-light);
	margin-bottom: 1.4rem;
}
.hero h1 { color: var(--white); max-width: 15ch; }
.hero-home h1 { max-width: 20ch; }
.hero-sub {
	font-size: var(--size-lede);
	color: var(--text-subtle);
	max-width: 54ch;
	margin-bottom: 2.2rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }

.word-rotator {
	color: var(--amber);
	white-space: nowrap;
	transition: opacity 0.26s var(--ease), transform 0.26s var(--ease);
}
.word-rotator.word-out { opacity: 0; transform: translateY(0.4em); }
.word-rotator.word-in { animation: word-in 0.42s var(--ease); }
@keyframes word-in {
	from { opacity: 0; transform: translateY(-0.4em); }
	to { opacity: 1; transform: none; }
}

.hero-scroll-hint {
	position: absolute;
	bottom: 2rem;
	left: 50%;
	transform: translateX(-50%);
	z-index: 2;
	color: var(--text-subtle);
	font-size: 0.72rem;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	text-align: center;
}
.hero-scroll-hint::after {
	content: "";
	display: block;
	width: 1px;
	height: 34px;
	background: linear-gradient(var(--accent-light), transparent);
	margin: 0.6rem auto 0;
	animation: drip 1.8s var(--ease) infinite;
}
@keyframes drip {
	0% { transform: scaleY(0); transform-origin: top; }
	55% { transform: scaleY(1); transform-origin: top; }
	100% { transform: scaleY(0); transform-origin: bottom; }
}

/* Interior page hero */
.hero-page .hero-inner { padding: clamp(6.5rem, 12vw, 9rem) 0 clamp(3.5rem, 6vw, 5rem); }

/* =========================================================
 * 10. STATS BAND
 * ======================================================= */
.stats-band {
	background: var(--primary-deep);
	padding: clamp(3rem, 6vw, 4.5rem) 0;
}
.stats-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 2rem;
}
.stat { text-align: center; }
.stat-number {
	font-family: var(--font-display);
	font-size: clamp(2.6rem, 5vw, 4rem);
	font-weight: 700;
	color: var(--accent-light);
	line-height: 1;
	display: inline-block;
	font-variant-numeric: tabular-nums;
}
.stat-suffix {
	font-family: var(--font-display);
	font-size: clamp(1.6rem, 3vw, 2.4rem);
	font-weight: 600;
	color: var(--accent-light);
}
.stat-label {
	display: block;
	margin-top: 0.5rem;
	color: var(--text-subtle);
	font-size: 0.86rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	font-weight: 500;
}

/* =========================================================
 * 11. MARQUEE
 * ======================================================= */
.marquee {
	overflow: hidden;
	background: var(--accent-deep); /* 5.2:1 with white text — AA */
	padding: 0.9rem 0;
	white-space: nowrap;
}
.marquee-track {
	display: inline-flex;
	animation: marquee 36s linear infinite;
	will-change: transform;
}
.marquee-group { display: inline-flex; align-items: center; }
.marquee span {
	font-family: var(--font-display);
	text-transform: uppercase;
	font-weight: 600;
	font-size: 1.05rem;
	letter-spacing: 0.12em;
	color: var(--white);
	padding: 0 1.1rem;
}
.marquee-dot { color: var(--primary-deep); padding: 0 !important; }
@keyframes marquee {
	from { transform: translateX(0); }
	to { transform: translateX(-50%); }
}

/* =========================================================
 * 12. SERVICE CARDS
 * ======================================================= */
.services-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
}
.service-card {
	background: var(--white);
	border: 1px solid rgba(30, 39, 97, 0.08);
	border-radius: var(--radius);
	padding: 1.8rem 1.6rem 1.4rem;
	box-shadow: var(--shadow-sm);
	transition: box-shadow 0.35s var(--ease), transform 0.35s var(--ease), border-color 0.35s var(--ease);
	position: relative;
	overflow: hidden;
	will-change: transform;
}
.service-card:hover {
	box-shadow: var(--shadow-md);
	border-color: rgba(112, 154, 163, 0.35);
}
.service-card::before {
	content: "";
	position: absolute;
	top: 0; left: 0; right: 0;
	height: 3px;
	background: linear-gradient(90deg, var(--accent), var(--accent-light));
	transform: scaleX(0);
	transform-origin: 0 50%;
	transition: transform 0.4s var(--ease);
}
.service-card:hover::before, .service-card.expanded::before { transform: scaleX(1); }

.service-icon {
	width: 52px; height: 52px;
	border-radius: 12px;
	background: var(--primary-light);
	color: var(--accent-deep);
	display: grid;
	place-items: center;
	margin-bottom: 1.1rem;
	transition: background 0.35s var(--ease), color 0.35s var(--ease), transform 0.35s var(--ease);
}
.service-card:hover .service-icon {
	background: var(--accent);
	color: var(--white);
	transform: rotate(-6deg) scale(1.06);
}
.service-card h3 { font-size: 1.12rem; margin-bottom: 0.4rem; }
.service-card-toggle {
	background: transparent;
	border: 0;
	color: var(--accent-deep);
	font-family: var(--font-body);
	font-weight: 600;
	font-size: 0.83rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	cursor: pointer;
	padding: 0.4rem 0;
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
}
.service-card-toggle::after {
	content: "+";
	font-size: 1.1rem;
	line-height: 1;
	transition: transform 0.3s var(--ease);
}
.service-card-toggle[aria-expanded="true"]::after { transform: rotate(45deg); }
.service-card-detail {
	max-height: 0;
	overflow: hidden;
	visibility: hidden; /* keeps collapsed links out of the tab order & a11y tree */
	transition: max-height 0.45s var(--ease), visibility 0s linear 0.45s;
}
.service-card.expanded .service-card-detail {
	visibility: visible;
	transition: max-height 0.45s var(--ease), visibility 0s;
}
.service-card-detail p {
	color: var(--text-muted);
	font-size: 0.93rem;
	padding-top: 0.6rem;
	margin-bottom: 0.4rem;
}

/* Compact showcase variant (home page) */
.services-showcase { grid-template-columns: repeat(3, 1fr); }
.service-tile {
	background: var(--primary-mid);
	border-radius: var(--radius);
	padding: 1.6rem 1.5rem;
	color: var(--text-subtle);
	transition: background 0.35s var(--ease), transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
	will-change: transform;
	display: block;
}
.service-tile:hover {
	background: var(--accent-deep);
	color: var(--white);
	box-shadow: var(--shadow-lg);
}
.service-tile h3 { color: var(--white); font-size: 1.05rem; margin-bottom: 0.35rem; }
.service-tile p { font-size: 0.88rem; margin: 0; }

/* =========================================================
 * 13. DIFFERENTIATORS
 * ======================================================= */
.diff-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1.5rem;
}
.diff-card {
	background: var(--white);
	border-left: 4px solid var(--accent);
	border-radius: 0 var(--radius) var(--radius) 0;
	padding: 1.9rem 1.8rem;
	box-shadow: var(--shadow-sm);
	transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.diff-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.diff-num {
	font-family: var(--font-display);
	font-size: 2.2rem;
	font-weight: 700;
	color: var(--accent);
	line-height: 1;
	display: block;
	margin-bottom: 0.7rem;
}
.diff-card h3 { font-size: 1.15rem; }
.diff-card p { color: var(--text-muted); font-size: 0.95rem; margin: 0; }

/* =========================================================
 * 14. TEAM CARDS (flip)
 * ======================================================= */
.team-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1.5rem;
}
.team-card { perspective: 1100px; min-height: 340px; position: relative; }
.team-card-inner {
	position: relative;
	width: 100%;
	height: 100%;
	min-height: 340px;
	transform-style: preserve-3d;
	transition: transform 0.65s var(--ease);
}
.team-card.flipped .team-card-inner { transform: rotateY(180deg); }
.team-face {
	position: absolute;
	inset: 0;
	backface-visibility: hidden;
	-webkit-backface-visibility: hidden;
	border-radius: var(--radius);
	padding: 1.6rem 1.4rem;
	display: flex;
	flex-direction: column;
	transition: visibility 0s linear 0.32s; /* swap faces mid-flip; hidden face leaves tab order */
}
.team-back { visibility: hidden; }
.team-card.flipped .team-back { visibility: visible; }
.team-card.flipped .team-front { visibility: hidden; }
.team-front {
	background: var(--white);
	border: 1px solid rgba(30, 39, 97, 0.08);
	box-shadow: var(--shadow-sm);
	align-items: center;
	text-align: center;
	justify-content: center;
}
.team-back {
	background: var(--primary);
	color: var(--text-subtle);
	transform: rotateY(180deg);
	justify-content: center;
	font-size: 0.88rem;
}
.team-back h3 { color: var(--white); font-size: 1rem; margin-bottom: 0.8rem; }
.team-back p { margin-bottom: 0.7rem; }
.team-back strong { color: var(--accent-light); font-weight: 600; }
.team-avatar {
	width: 92px; height: 92px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--primary), var(--accent-deep));
	color: var(--white);
	font-family: var(--font-display);
	font-size: 1.9rem;
	font-weight: 600;
	display: grid;
	place-items: center;
	margin-bottom: 1rem;
}
.team-front h3 { font-size: 1.05rem; margin-bottom: 0.2rem; }
.team-role { color: var(--accent-deep); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 1rem; }
.team-card-flip {
	background: transparent;
	border: 2px solid var(--accent);
	color: var(--accent-deep);
	border-radius: 999px;
	font-family: var(--font-body);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	padding: 0.42rem 1.1rem;
	cursor: pointer;
	transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.team-card-flip:hover { background: var(--accent-deep); border-color: var(--accent-deep); color: var(--white); }
.team-back .team-card-flip { border-color: var(--accent-light); color: var(--accent-light); align-self: flex-start; }
.team-back .team-card-flip:hover { background: var(--accent-light); color: var(--primary-deep); }

/* =========================================================
 * 15. FAQ
 * ======================================================= */
.faq-list { max-width: 800px; }
.faq-item {
	border-bottom: 1px solid rgba(30, 39, 97, 0.12);
	padding: 0.4rem 0;
}
.faq-item summary {
	cursor: pointer;
	font-family: var(--font-display);
	font-size: 1.15rem;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	padding: 1rem 2.4rem 1rem 0;
	list-style: none;
	position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
	content: "+";
	position: absolute;
	right: 0.4rem;
	top: 50%;
	transform: translateY(-50%);
	font-size: 1.5rem;
	color: var(--accent);
	transition: transform 0.3s var(--ease);
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item p { color: var(--text-muted); padding-bottom: 1rem; margin: 0; max-width: 65ch; }

/* =========================================================
 * 16. WORK / CAPABILITY PANELS
 * ======================================================= */
.work-feature {
	display: grid;
	grid-template-columns: 1.1fr 1fr;
	gap: clamp(2rem, 5vw, 4.5rem);
	align-items: center;
	padding: clamp(2.5rem, 5vw, 4rem) 0;
}
.work-feature:nth-child(even) .work-feature-media { order: 2; }
.work-feature-media {
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: var(--shadow-md);
	aspect-ratio: 4 / 3;
	background-size: cover;
	background-position: center;
	position: relative;
}
.work-feature-media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(160deg, rgba(30, 39, 97, 0.25), rgba(30, 39, 97, 0));
}
.work-feature h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.work-feature .work-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.1rem 0 0; padding: 0; list-style: none; }
.work-tags li {
	font-size: 0.74rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--accent-deep);
	background: var(--primary-light);
	border-radius: 999px;
	padding: 0.35rem 0.9rem;
}

/* Browser mockup (pure CSS, shows off front-end craft) */
.browser-mock {
	background: var(--white);
	border-radius: var(--radius);
	box-shadow: var(--shadow-lg);
	overflow: hidden;
	border: 1px solid rgba(30, 39, 97, 0.1);
}
.browser-mock-bar {
	background: var(--primary-light);
	padding: 0.55rem 0.9rem;
	display: flex;
	gap: 0.35rem;
	align-items: center;
}
.browser-mock-bar i {
	width: 9px; height: 9px;
	border-radius: 50%;
	background: rgba(30, 39, 97, 0.25);
	display: inline-block;
}
.browser-mock-bar i:first-child { background: var(--accent); }
.browser-mock-body { aspect-ratio: 16 / 10; background-size: cover; background-position: top center; }

/* =========================================================
 * 17. CTA BAND
 * ======================================================= */
.cta-band {
	background:
		radial-gradient(1200px 500px at 85% -10%, rgba(112, 154, 163, 0.35), transparent 60%),
		linear-gradient(135deg, var(--primary-deep), var(--primary));
	color: var(--white);
	padding: clamp(4.5rem, 9vw, 7rem) 0;
	text-align: center;
}
.cta-band-title { color: var(--white); font-size: clamp(2.2rem, 5vw, 3.6rem); }
.cta-band-actions {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 1rem;
	margin-top: 2.2rem;
}

/* =========================================================
 * 18. CONTACT
 * ======================================================= */
.contact-grid {
	display: grid;
	grid-template-columns: 1.15fr 1fr;
	gap: clamp(2rem, 5vw, 4rem);
	align-items: start;
}
.contact-info-card {
	background: var(--primary);
	color: var(--text-subtle);
	border-radius: var(--radius);
	padding: 2.2rem 2rem;
}
.contact-info-card h3 { color: var(--white); }
.contact-info-card a { color: var(--accent-light); font-weight: 600; }
.contact-info-card a:hover { color: var(--white); }
.contact-line { display: flex; gap: 0.8rem; margin-bottom: 1.1rem; align-items: baseline; }
.contact-line strong { color: var(--white); min-width: 74px; font-weight: 600; }

.emm-form-row { margin-bottom: 1.15rem; }
.emm-form label {
	display: block;
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--text-dark);
	margin-bottom: 0.35rem;
}
.emm-form input, .emm-form textarea,
.wpcf7-form input:not([type="submit"]), .wpcf7-form textarea {
	width: 100%;
	border: 2px solid rgba(30, 39, 97, 0.6); /* 4:1 boundary vs white — 1.4.11 */
	border-radius: 8px;
	background: var(--white);
	font-family: var(--font-body);
	font-size: 1rem;
	color: var(--text-dark);
	padding: 0.8rem 1rem;
	transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.emm-form input:focus, .emm-form textarea:focus,
.wpcf7-form input:focus, .wpcf7-form textarea:focus {
	outline: none;
	border-color: var(--accent);
	box-shadow: 0 0 0 4px rgba(112, 154, 163, 0.15);
}
.wpcf7-form input[type="submit"] {
	background: var(--accent-deep);
	color: var(--white);
	border: 0;
	border-radius: 999px;
	font-family: var(--font-body);
	font-weight: 600;
	font-size: 0.95rem;
	padding: 0.85rem 1.9rem;
	cursor: pointer;
	transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.wpcf7-form input[type="submit"]:hover {
	background: var(--amber);
	color: var(--primary-deep);
	box-shadow: 0 12px 30px rgba(245, 166, 35, 0.35);
}

.map-wrap {
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: var(--shadow-md);
	margin-top: clamp(2.5rem, 5vw, 4rem);
}
.map-wrap iframe { display: block; width: 100%; height: 420px; border: 0; }

#form-notice {
	border-radius: 8px;
	padding: 1rem 1.2rem;
	margin-bottom: 1.4rem;
	font-weight: 500;
}
#form-notice.notice-success { background: rgba(112, 154, 163, 0.12); color: var(--accent-deep); border: 1px solid rgba(112, 154, 163, 0.4); }
#form-notice.notice-error { background: rgba(192, 57, 43, 0.08); color: #A03024; border: 1px solid rgba(192, 57, 43, 0.35); }

/* =========================================================
 * 19. BLOG
 * ======================================================= */
.blog-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.8rem;
}
.post-card {
	background: var(--white);
	border-radius: var(--radius);
	overflow: hidden;
	border: 1px solid rgba(30, 39, 97, 0.08);
	box-shadow: var(--shadow-sm);
	transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
	display: flex;
	flex-direction: column;
}
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.post-card-thumb {
	aspect-ratio: 16 / 9;
	background: linear-gradient(135deg, var(--primary), var(--accent-deep));
	background-size: cover;
	background-position: center;
	display: block;
}
.post-card-body { padding: 1.5rem 1.4rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.post-card .post-meta {
	font-size: 0.76rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--accent-deep);
	margin-bottom: 0.55rem;
}
.post-card h2, .post-card h3 { font-size: 1.15rem; }
.post-card h2 a, .post-card h3 a { color: var(--text-dark); }
.post-card h2 a:hover, .post-card h3 a:hover { color: var(--accent-deep); }
.post-card .post-excerpt { color: var(--text-muted); font-size: 0.92rem; flex: 1; }
.read-more {
	font-weight: 600;
	font-size: 0.85rem;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.single-article { max-width: 760px; margin-inline: auto; }
.single-article .entry-meta {
	font-size: 0.82rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--text-muted);
	margin-bottom: 2rem;
}
.entry-content { font-size: 1.05rem; }
.entry-content h2, .entry-content h3 { margin-top: 1.6em; }
.entry-content a { text-decoration: underline; text-underline-offset: 3px; }
.entry-content img { border-radius: var(--radius); }
.entry-content blockquote {
	border-left: 4px solid var(--accent);
	margin: 1.6em 0;
	padding: 0.4em 0 0.4em 1.4em;
	color: var(--text-muted);
	font-style: italic;
}
.post-navigation .nav-links { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2.5rem; }

.pagination, .nav-links { font-weight: 500; }
.pagination .page-numbers {
	display: inline-block;
	padding: 0.45rem 0.9rem;
	border-radius: 8px;
	background: var(--primary-light);
	color: var(--primary);
	margin-right: 0.3rem;
}
.pagination .page-numbers.current, .pagination .page-numbers:hover { background: var(--accent-deep); color: var(--white); }

/* Comments */
.comments-area { max-width: 760px; margin: 3rem auto 0; }
.comment-list { list-style: none; padding: 0; }
.comment-list .comment { border-bottom: 1px solid rgba(30, 39, 97, 0.1); padding: 1.2rem 0; }
.comment-author { font-weight: 600; }
.comment-metadata { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; }
.comment-form textarea, .comment-form input:not([type="submit"]) {
	width: 100%;
	border: 2px solid rgba(30, 39, 97, 0.6);
	border-radius: 8px;
	padding: 0.7rem 0.9rem;
	font-family: var(--font-body);
}
.comment-form input[type="submit"] {
	background: var(--accent-deep);
	color: var(--white);
	border: 0;
	border-radius: 999px;
	padding: 0.75rem 1.7rem;
	font-weight: 600;
	cursor: pointer;
	font-family: var(--font-body);
}

/* =========================================================
 * 20. 404
 * ======================================================= */
.error-404 { text-align: center; padding: clamp(5rem, 12vw, 9rem) 0; }
.error-404 .error-code {
	font-family: var(--font-display);
	font-size: clamp(6rem, 18vw, 11rem);
	font-weight: 700;
	line-height: 1;
	color: var(--primary-light);
	-webkit-text-stroke: 2px var(--primary);
	display: block;
}
.error-404 .error-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }

/* =========================================================
 * 21. FOOTER
 * ======================================================= */
.site-footer {
	background: var(--primary-deep);
	color: var(--text-subtle);
	font-size: 0.9rem;
}
.footer-grid {
	display: grid;
	grid-template-columns: 1.4fr 1.2fr 0.8fr 1fr;
	gap: 2.5rem;
	padding: clamp(3.5rem, 7vw, 5.5rem) 0 3rem;
}
.footer-logo {
	font-family: var(--font-display);
	font-size: 1.25rem;
	font-weight: 700;
	text-transform: uppercase;
	color: var(--white);
	margin-bottom: 0.4rem;
}
.footer-tagline { color: var(--accent-light); font-weight: 500; margin-bottom: 0.6rem; }
.footer-area { font-size: 0.84rem; }
.footer-heading {
	color: var(--white);
	font-size: 0.9rem;
	letter-spacing: 0.14em;
	margin-bottom: 1.1rem;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.45rem; }
.site-footer a { color: var(--text-subtle); }
.site-footer a:hover { color: var(--accent-light); }
.footer-services { columns: 2; column-gap: 1.6rem; }
.footer-services li { break-inside: avoid; font-size: 0.84rem; }
.footer-store-link {
	display: inline-block;
	margin-top: 0.9rem;
	color: var(--accent-light) !important;
	font-weight: 600;
	border: 1px solid rgba(147, 179, 186, 0.5);
	border-radius: 999px;
	padding: 0.4rem 1rem;
	font-size: 0.82rem;
}
.footer-store-link:hover { background: rgba(147, 179, 186, 0.12); }
.footer-contact { font-style: normal; line-height: 2; margin-bottom: 1.2rem; }
.footer-contact a { color: var(--white); font-weight: 500; }
.footer-social { display: flex; gap: 1rem; margin-top: 1.2rem !important; }
.footer-bottom { border-top: 1px solid rgba(169, 177, 208, 0.15); padding: 1.4rem 0; font-size: 0.8rem; }
.footer-bottom-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.8rem; }
.footer-bottom p { margin: 0; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 1.4rem; }
.footer-legal li { margin: 0; }

/* =========================================================
 * 22. RESPONSIVE
 * ======================================================= */
@media (max-width: 1024px) {
	.services-grid, .services-showcase { grid-template-columns: repeat(2, 1fr); }
	.team-grid { grid-template-columns: repeat(2, 1fr); }
	.blog-grid { grid-template-columns: repeat(2, 1fr); }
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
	.work-feature { grid-template-columns: 1fr; }
	.work-feature:nth-child(even) .work-feature-media { order: 0; }
	.contact-grid { grid-template-columns: 1fr; }
	.diff-grid { grid-template-columns: 1fr; }
}

@media (max-width: 782px) {
	:root { --header-h: 64px; }

	.menu-toggle { display: block; }

	.main-navigation ul#primary-menu, .main-navigation > ul {
		position: fixed;
		inset: 0;
		z-index: 1240;
		flex-direction: column;
		justify-content: center;
		gap: 0.6rem;
		background: linear-gradient(160deg, var(--primary-deep), var(--primary));
		opacity: 0;
		visibility: hidden;
		transform: translateY(-3%);
		transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0.35s;
	}
	.main-navigation.toggled ul#primary-menu, .main-navigation.toggled > ul {
		opacity: 1;
		visibility: visible;
		transform: none;
	}
	.main-navigation li a { font-size: 1.3rem; padding: 0.7rem 1.2rem; }
	.main-navigation li.nav-store > a, .main-navigation li.nav-cta > a { font-size: 1.05rem; }
	body.menu-open { overflow: hidden; }
	.utility-left { display: none; }
	.utility-bar-inner { justify-content: center; }
}

@media (max-width: 600px) {
	.services-grid, .services-showcase, .team-grid, .blog-grid, .stats-grid { grid-template-columns: 1fr; }
	.footer-grid { grid-template-columns: 1fr; gap: 2rem; }
	.footer-services { columns: 1; }
	.hero-home { min-height: 88vh; }
	.hero-actions .btn { width: 100%; justify-content: center; }
	.cta-band-actions .btn { width: 100%; justify-content: center; }
	.footer-bottom-inner { flex-direction: column; text-align: center; }
	.footer-legal { justify-content: center; }
	.map-wrap iframe { height: 320px; }
}

/* =========================================================
 * 23. MOTION CONTROLS
 * ======================================================= */

/* Pause-motion toggle (WCAG 2.2.2 — mechanism to pause auto-playing motion).
   Revealed by JS; stays hidden when prefers-reduced-motion already stops motion. */
.motion-toggle {
	position: fixed;
	left: 1rem;
	bottom: 1rem;
	z-index: 1290;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 2px solid var(--accent-light);
	background: var(--primary-deep);
	color: var(--white);
	cursor: pointer;
	display: grid;
	place-items: center;
	box-shadow: var(--shadow-md);
	transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.motion-toggle:hover { background: var(--primary); border-color: var(--amber); }
.motion-toggle .icon-pause, .motion-toggle .icon-play { display: block; }
.motion-toggle .icon-play,
.motion-toggle[aria-pressed="true"] .icon-pause { display: none; }
.motion-toggle[aria-pressed="true"] .icon-play { display: block; }

/* Paused state — freezes all looping CSS animation */
.motion-paused .marquee-track,
.motion-paused .hero-scroll-hint::after,
.motion-paused .word-rotator { animation-play-state: paused !important; }

/* =========================================================
 * 23b. REDUCED MOTION — all motion collapses to instant states
 * ======================================================= */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
	.js .reveal, .js .reveal-group > * { opacity: 1; transform: none; }
	.marquee-track { animation: none; transform: none; }
	.hero-scroll-hint::after { animation: none; }
	.team-card-inner { transition: none; }
	.team-card.flipped .team-card-inner { transform: rotateY(180deg); }
	.team-face { transition: none; }
	.service-card-detail { transition: none; }
	.motion-toggle { display: none; }
}

/* =========================================================
 * 24. WORDPRESS CORE CLASSES
 * ======================================================= */
.alignleft { float: left; margin: 0.5em 1.5em 1em 0; }
.alignright { float: right; margin: 0.5em 0 1em 1.5em; }
.aligncenter { display: block; margin-inline: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 0.85rem; color: var(--text-muted); text-align: center; padding: 0.4em 0; }
.sticky { display: block; }
.gallery-caption { display: block; }
.bypostauthor { display: block; }
