/**
 * Jalpa Machinery — Main Stylesheet
 * Design system per project spec: palette #0F2A48 / #C97652, Mona Sans type scale.
 */

/* ============================================================
   1. DESIGN TOKENS
   ============================================================ */
:root {
	--blue: #0F2A48;
	--blue-800: #16375c;
	--blue-700: #1d4573;
	--rust: #C97652;        /* brand — large/decorative text & graphics, or on dark */
	--rust-dark: #A85638;   /* interactive bg with white text (AA 5.1:1) */
	--rust-darker: #8C4A30; /* interactive hover */
	--rust-text: #9C5330;   /* small rust text on light (AA 5.6:1) */
	--rust-light: #E2926F;  /* rust on dark navy backgrounds (AA) */
	--white: #ffffff;
	--gray-50: #f8f8f8;
	--gray-100: #f5f5f5;
	--gray-200: #ececec;
	--gray-300: #cccccc;
	--gray-500: #666666;
	--gray-700: #333333;
	--ink: #1a1a1a;
	--green: #27AE60;
	--red: #E74C3C;

	--font: 'Mona Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
	--mono: 'Courier New', monospace;

	--container: 1600px;
	--radius: 8px;
	--radius-sm: 4px;
	--shadow: 0 2px 8px rgba(15, 42, 72, 0.10);
	--shadow-lg: 0 14px 40px rgba(15, 42, 72, 0.16);
	--transition: 0.25s ease;
	--header-h: 92px;
}

/* ============================================================
   2. RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
	margin: 0;
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.6;
	color: var(--gray-700);
	background: var(--white);
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--rust-text); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--rust-darker); }

/* Keyboard focus visibility (WCAG 2.4.7) */
:focus-visible { outline: 3px solid var(--rust-dark); outline-offset: 2px; border-radius: 2px; }
.hero :focus-visible, .excellence :focus-visible, .cta-band :focus-visible, .page-hero :focus-visible, .site-footer :focus-visible { outline-color: var(--rust-light); }
h1, h2, h3, h4 { font-family: var(--font); color: var(--blue); line-height: 1.2; margin: 0 0 0.5em; font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; }
p { margin: 0 0 1rem; }
ul { margin: 0; padding: 0; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section--tight { padding: 56px 0; }
.section-divider { border: 0; height: 1px; background: #d0d0d0; margin: 0; width: 100%; }
.text-center { text-align: center; }
.eyebrow {
	display: inline-block;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	font-size: 0.8rem;
	font-weight: 700;
	color: var(--rust-text);
	margin-bottom: 12px;
}
/* Eyebrows on dark backgrounds need the lighter rust for contrast */
.hero-slide .eyebrow, .excellence .eyebrow, .cta-band .eyebrow, .page-hero .eyebrow { color: var(--rust-light); }
.section-head { max-width: 720px; margin: 0 auto 48px; }
.section-head p { color: var(--gray-500); font-size: 1.1rem; margin: 0; }
.lead { font-size: 1.15rem; color: var(--gray-500); }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Skip link */
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--blue); color: #fff; padding: 10px 16px; z-index: 1000; }
.skip-link:focus { left: 8px; top: 8px; color: #fff; }

/* ============================================================
   3. BUTTONS
   ============================================================ */
.btn {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 14px 28px; border-radius: var(--radius-sm);
	font-weight: 600; font-size: 1rem; cursor: pointer;
	border: 2px solid transparent; transition: all var(--transition);
	line-height: 1; text-align: center;
}
.btn--primary { background: var(--rust-dark); color: #fff; border-color: var(--rust-dark); }
.btn--primary:hover { background: var(--rust-darker); border-color: var(--rust-darker); color: #fff; transform: translateY(-2px); }
.btn--blue { background: var(--blue); color: #fff; border-color: var(--blue); }
.btn--blue:hover { background: var(--blue-700); color: #fff; transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--blue); border-color: var(--gray-300); }
.btn--ghost:hover { border-color: var(--blue); background: var(--blue); color: #fff; }
.btn--outline-white { background: transparent; color: #fff; border-color: rgba(255,255,255,0.6); }
.btn--outline-white:hover { background: #fff; color: var(--blue); }
.btn--sm { padding: 10px 18px; font-size: 0.9rem; }
.btn--lg { padding: 17px 40px; font-size: 1.1rem; }

/* ============================================================
   3b. TOP ANNOUNCEMENT BAR
   ============================================================ */
.top-bar { background: var(--blue); color: rgba(255,255,255,0.82); font-size: 0.85rem; }
.top-bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 42px; }
.top-bar-tag { margin: 0; letter-spacing: 0.02em; }
.top-bar-contact { display: flex; gap: 26px; }
.top-bar-contact a { color: rgba(255,255,255,0.82); display: inline-flex; align-items: center; gap: 7px; font-weight: 500; }
.top-bar-contact a:hover { color: var(--rust-light); }
.top-bar-contact svg { opacity: 0.9; flex: none; }
@media (max-width: 768px) {
	.top-bar-tag { display: none; }
	.top-bar-inner { justify-content: center; min-height: 38px; }
	.top-bar-contact { gap: 18px; font-size: 0.8rem; flex-wrap: wrap; justify-content: center; }
}

/* ============================================================
   4. HEADER
   ============================================================ */
.site-header {
	position: sticky; top: 0; z-index: 100;
	background: var(--white);
	box-shadow: 0 1px 0 rgba(0,0,0,0.06);
	transition: box-shadow var(--transition);
}
.site-header.is-scrolled { box-shadow: var(--shadow); }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.site-branding img, .site-branding .logo-img { max-height: 70px; width: auto; }
.site-branding .logo-text { font-weight: 800; color: var(--blue); font-size: 1.2rem; line-height: 1.1; }
.site-branding .logo-text span { color: var(--rust); }

.main-nav { margin-left: auto; }
.main-nav ul { display: flex; align-items: center; gap: 4px; list-style: none; }
.main-nav a { color: var(--blue); font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; padding: 10px 14px; border-radius: var(--radius-sm); display: block; }
.main-nav a:hover, .main-nav .current-menu-item > a { color: var(--rust); }
.main-nav li { position: relative; }
.main-nav .sub-menu, .main-nav .dropdown {
	position: absolute; top: 100%; left: 0; min-width: 240px;
	background: #fff; box-shadow: var(--shadow-lg); border-radius: var(--radius);
	padding: 8px; list-style: none; display: block;
	opacity: 0; visibility: hidden; transform: translateY(8px);
	transition: all var(--transition); z-index: 30;
}
.main-nav li:hover > .sub-menu, .main-nav li:hover > .dropdown,
.main-nav li:focus-within > .sub-menu, .main-nav li:focus-within > .dropdown {
	opacity: 1; visibility: visible; transform: translateY(0);
}
.main-nav .sub-menu a, .main-nav .dropdown a { padding: 10px 14px; font-weight: 500; text-transform: none; letter-spacing: normal; border-radius: var(--radius-sm); }
.main-nav .sub-menu a:hover, .main-nav .dropdown a:hover { background: var(--gray-100); }
.has-children > a::after { content: "▾"; margin-left: 6px; font-size: 0.75em; opacity: 0.7; }
/* Caret for standard dropdown parents (e.g. Resources) */
.main-nav .menu-item-has-children:not(.has-mega) > a::after { content: "▾"; margin-left: 6px; font-size: 0.75em; opacity: 0.7; }
/* Dropdown items with a leading icon (Resources menu) */
.main-nav .sub-menu a { display: flex; align-items: center; gap: 10px; }
.main-nav .sub-menu .menu-ico { display: inline-flex; align-items: center; color: var(--gray-500); flex: 0 0 auto; transition: color var(--transition); }
.main-nav .sub-menu .menu-ico svg { display: block; }
.main-nav .sub-menu a:hover .menu-ico, .main-nav .sub-menu a:focus .menu-ico { color: var(--rust); }

/* Products mega-menu (category cards) */
.header-inner { position: relative; }
.main-nav .has-mega { position: static; }
.main-nav .has-mega > a::after { content: "▾"; margin-left: 6px; font-size: 0.75em; opacity: 0.7; }
.main-nav .has-mega .mega-menu {
	position: absolute; top: 100%; left: 0; right: 0; z-index: 40;
	background: #fff; box-shadow: var(--shadow-lg);
	border-radius: 0 0 var(--radius) var(--radius);
	border-top: 3px solid var(--rust);
	opacity: 0; visibility: hidden; transform: translateY(8px);
	transition: all var(--transition);
}
.main-nav .has-mega:hover .mega-menu,
.main-nav .has-mega:focus-within .mega-menu {
	opacity: 1; visibility: visible; transform: translateY(0);
}
/* Invisible bridge so the cursor can travel from link to panel without a gap. */
.main-nav .has-mega .mega-menu::before {
	content: ""; position: absolute; left: 0; right: 0; top: -26px; height: 26px;
}
.mega-menu-inner { padding: 26px 24px 30px; }
.mega-eyebrow {
	margin: 0 0 16px; font-size: 0.72rem; font-weight: 700;
	text-transform: uppercase; letter-spacing: 0.12em; color: var(--rust-text);
}
.mega-grid { display: grid; grid-template-columns: repeat(var(--mega-cols, 4), 1fr); gap: 22px; }
.main-nav .mega-card {
	display: block; padding: 0; text-transform: none; letter-spacing: normal;
	font-weight: 400; color: var(--blue); border-radius: 0;
}
.main-nav .mega-card:hover { background: none; color: var(--rust-text); }
.mega-card-media {
	display: block; aspect-ratio: 4 / 3; overflow: hidden;
	border-radius: var(--radius); background: var(--gray-100);
}
.mega-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s ease; }
.mega-card:hover .mega-card-media img { transform: scale(1.06); }
.mega-card-title { display: block; margin-top: 12px; font-weight: 700; font-size: 0.98rem; color: var(--blue); }
.mega-card:hover .mega-card-title { color: var(--rust-text); }
.mega-card-count { display: block; margin-top: 2px; font-size: 0.8rem; color: var(--gray-500); }
.mega-foot { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--gray-200); }
.main-nav .mega-foot .mega-all {
	display: inline-block; padding: 0; font-weight: 700; text-transform: none;
	letter-spacing: normal; color: var(--rust-text);
}
.main-nav .mega-foot .mega-all:hover { color: var(--rust-darker); }
@media (min-width: 769px) and (max-width: 1100px) {
	.mega-grid { grid-template-columns: repeat(3, 1fr) !important; }
}

.header-actions { display: flex; align-items: center; gap: 14px; }
.header-search { display: flex; align-items: center; position: relative; }
.header-search input {
	border: 1px solid var(--gray-300); border-radius: 999px; padding: 9px 42px 9px 16px;
	font-size: 0.9rem; width: 170px; transition: width var(--transition), border var(--transition);
}
.header-search input:focus { outline: none; width: 210px; border-color: var(--rust); }
.header-search-btn {
	position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
	width: 32px; height: 32px; padding: 0; border: none; background: transparent;
	display: flex; align-items: center; justify-content: center;
	color: var(--gray-500); border-radius: 50%; cursor: pointer;
	transition: color var(--transition), background var(--transition);
}
.header-search-btn:hover, .header-search-btn:focus-visible { color: var(--rust); background: var(--gray-100); }
.header-search-btn svg { display: block; }

.menu-toggle {
	display: none; background: none; border: none; cursor: pointer;
	width: 44px; height: 44px; flex-direction: column; gap: 5px; justify-content: center; align-items: center;
}
.menu-toggle span { width: 24px; height: 2px; background: var(--blue); border-radius: 2px; transition: all var(--transition); }
.menu-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   5. HERO CAROUSEL
   ============================================================ */
.hero { position: relative; overflow: hidden; background: var(--blue); }
.hero-track { display: flex; transition: transform 0.7s cubic-bezier(0.65,0,0.35,1); }
.hero-slide {
	min-width: 100%; position: relative; min-height: 560px;
	display: flex; align-items: center;
	background-image: var(--hero-bg);
	background-size: cover; background-position: center;
}
.hero-slide::before {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(100deg, rgba(15,42,72,0.92) 0%, rgba(15,42,72,0.72) 45%, rgba(15,42,72,0.35) 100%);
}
.hero-slide-content { position: relative; z-index: 2; max-width: 640px; color: #fff; padding: 60px 0; }
.hero-slide .hero-title { color: #fff; margin-bottom: 18px; font-size: clamp(2rem, 5vw, 3rem); font-weight: 700; line-height: 1.2; }
.hero-slide p { font-size: 1.25rem; color: rgba(255,255,255,0.9); margin-bottom: 30px; }
.hero-dots { position: absolute; bottom: 26px; left: 0; right: 0; display: flex; justify-content: center; gap: 10px; z-index: 3; }
.hero-dots button { width: 12px; height: 12px; border-radius: 50%; border: none; background: rgba(255,255,255,0.45); cursor: pointer; transition: all var(--transition); padding: 0; }
.hero-dots button.is-active { background: var(--rust); transform: scale(1.25); }
.hero-arrow {
	position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
	width: 48px; height: 48px; border-radius: 50%; border: none; cursor: pointer;
	background: rgba(255,255,255,0.15); color: #fff; font-size: 1.4rem;
	display: flex; align-items: center; justify-content: center; transition: background var(--transition);
}
.hero-arrow:hover { background: var(--rust); }
.hero-arrow--prev { left: 24px; }
.hero-arrow--next { right: 24px; }

/* Hero event banner slide — pre-composed artwork, shown whole (no scrim/overlay).
   Cream fill matches the banner's own background so any letterbox blends in. */
.hero-slide--banner { padding: 0; background: #f4ecdf; }
.hero-slide--banner::before { display: none; }
.hero-banner-link { display: block; width: 100%; }
.hero-banner-img { display: block; width: 100%; height: auto; margin: 0 auto; }
/* When the banner is the only slide, let the hero height follow the artwork. */
.hero--single .hero-slide--banner { min-height: 0; }

/* ============================================================
   6. STATS / TRUST BAR
   ============================================================ */
.stats { background: var(--gray-100); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { text-align: center; padding: 16px; }
.stat-icon { color: var(--rust); margin: 0 auto 12px; width: 44px; height: 44px; }
.stat-num { font-size: 2.6rem; font-weight: 800; color: var(--blue); line-height: 1; }
.stat-label { color: var(--gray-500); font-size: 0.95rem; margin-top: 6px; }

/* ============================================================
   6b. CLIENT LOGO MARQUEE
   ============================================================ */
.logo-band { background: var(--white); padding-top: 48px; padding-bottom: 48px; }
.logo-band-title {
	text-align: center; text-transform: uppercase; letter-spacing: 0.12em;
	font-size: 0.85rem; font-weight: 700; color: var(--gray-500); margin-bottom: 30px;
}
.logo-marquee {
	overflow: hidden;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.logo-track {
	display: flex; align-items: center; gap: 41px; width: max-content;
	animation: logo-scroll 90s linear infinite;
	/* Promote to a dedicated GPU layer so the grayscale logos are rasterised
	   once and the strip is composited (not repainted) each frame — keeps the
	   scroll smooth now that the logos are larger. */
	will-change: transform;
	backface-visibility: hidden;
	transform: translateZ(0);
}
.logo-marquee:hover .logo-track,
.logo-marquee:focus-within .logo-track { animation-play-state: paused; }
/* Sized to the logos' native resolution (~150px sources) so they stay crisp
   on standard and 2x/retina screens instead of upscaling into a blur. */
.logo-item { flex: none; display: flex; align-items: center; justify-content: center; height: 142px; }
.logo-item img {
	height: 142px; width: auto; max-width: 384px; object-fit: contain;
	image-rendering: -webkit-optimize-contrast;
}
@keyframes logo-scroll { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-50%, 0, 0); } }
@media (prefers-reduced-motion: reduce) {
	.logo-track { animation: none; flex-wrap: wrap; justify-content: center; gap: 48px; width: auto; }
	.logo-item[aria-hidden="true"] { display: none; }
}

/* ============================================================
   7. TWO-COLUMN (ABOUT)
   ============================================================ */
.split { display: grid; grid-template-columns: 49.5% 50.5%; gap: 56px; align-items: center; }
.split-media img, .split-media .media-fill {
	border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 100%; aspect-ratio: 16/10; object-fit: cover;
}
.media-fill {
	background: linear-gradient(135deg, var(--blue) 0%, var(--rust) 130%);
	display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.9);
	font-size: 3rem; font-weight: 800; letter-spacing: 0.05em;
}
.split-body h2 { margin-top: 6px; }
.split-body .sub { font-size: 1.2rem; color: var(--gray-500); margin-bottom: 18px; }

/* ============================================================
   8. PRODUCT CARDS
   ============================================================ */
.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.card-grid--3 { grid-template-columns: repeat(3, 1fr); }
.product-card {
	background: #fff; border-radius: var(--radius);
	overflow: hidden; display: flex; flex-direction: column; transition: all var(--transition);
	/* Flat by default — border + shadow appear on hover only.
	   Transparent border reserves the space so nothing shifts on hover. */
	box-shadow: none;
	border: 1px solid transparent;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--gray-200); }
.product-card-media {
	aspect-ratio: 4/3;
	background: #fff;
	display: flex; align-items: center; justify-content: center; color: var(--blue);
	position: relative; overflow: hidden; padding: 14px;
}
.product-card-media svg { width: 64px; height: 64px; opacity: 0.55; }
/* contain = show the whole product photo (no cropping) */
.product-card-media img { width: 100%; height: 100%; object-fit: contain; }
.product-card-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.product-cat { font-size: 0.78rem; font-weight: 700; color: var(--rust-text); text-transform: uppercase; letter-spacing: 0.06em; }
.product-card h3 { font-size: 1.15rem; margin: 6px 0 8px; }
.product-card p { color: var(--gray-500); font-size: 0.92rem; margin-bottom: 16px; flex: 1; }
.product-card-actions { display: flex; gap: 8px; }
.product-card-actions .btn { flex: 1; justify-content: center; }

/* ============================================================
   9. WHY CHOOSE
   ============================================================ */
.why { background: linear-gradient(180deg, rgba(15,42,72,0.06), var(--white)); }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.value-card { background: #fff; border-radius: var(--radius); padding: 32px 24px; text-align: center; box-shadow: var(--shadow); transition: transform var(--transition); }
.value-card:hover { transform: translateY(-4px); }
.value-icon {
	width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%;
	background: rgba(201,118,82,0.12); color: var(--rust);
	display: flex; align-items: center; justify-content: center;
}
.value-icon svg { width: 32px; height: 32px; }
.value-card p { color: var(--gray-500); margin: 0; }

/* ============================================================
   10. TESTIMONIALS
   ============================================================ */
.testi-viewport { overflow: hidden; }
.testi-track { display: flex; transition: transform 0.6s ease; }
.testi-card {
	min-width: calc((100% - 56px) / 3); margin-right: 28px;
	background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius);
	padding: 30px; box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.testi-stars { color: #f5a623; font-size: 1.1rem; margin-bottom: 14px; letter-spacing: 2px; }
.testi-quote { font-size: 1rem; color: var(--gray-700); font-style: italic; margin-bottom: 20px; flex: 1; }
.testi-author { font-weight: 700; color: var(--blue); }
.testi-meta { font-size: 0.88rem; color: var(--gray-500); }
/* Testimonials archive — static grid (reuses .testi-card visuals) */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.testi-grid .testi-card { min-width: 0; margin-right: 0; }
@media (max-width: 1024px) { .testi-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .testi-grid { grid-template-columns: 1fr; } }

.carousel-nav { display: flex; justify-content: center; gap: 12px; margin-top: 36px; }
.carousel-nav button {
	width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--gray-300);
	background: #fff; color: var(--blue); cursor: pointer; font-size: 1.1rem; transition: all var(--transition);
}
.carousel-nav button:hover { background: var(--blue); color: #fff; border-color: var(--blue); }

/* ============================================================
   11. MANUFACTURING EXCELLENCE
   ============================================================ */
.excellence { background: linear-gradient(120deg, var(--blue) 0%, var(--blue-800) 55%, var(--blue-700) 100%); color: #fff; }
.excellence h2 { color: #fff; }
.excellence-grid { display: grid; grid-template-columns: 60% 40%; gap: 56px; align-items: center; }
.excellence p { color: rgba(255,255,255,0.85); }
.cert-list { list-style: none; margin: 24px 0 28px; }
.cert-list li { padding: 8px 0 8px 30px; position: relative; color: rgba(255,255,255,0.9); }
.cert-list li::before { content: "✓"; position: absolute; left: 0; color: var(--rust-light); font-weight: 800; }
.meter { margin-bottom: 22px; }
.meter-top { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 0.95rem; }
.meter-track { height: 8px; border-radius: 999px; background: rgba(255,255,255,0.25); overflow: hidden; }
.meter-fill { height: 100%; width: 0; border-radius: 999px; background: var(--rust); transition: width 1.4s cubic-bezier(0.4,0,0.2,1); }

/* ============================================================
   12. RESOURCES
   ============================================================ */
.resources { background: var(--gray-100); }
.resource-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform var(--transition); }
.resource-card:hover { transform: translateY(-4px); }
.resource-media { aspect-ratio: 16/10; background: linear-gradient(135deg, var(--blue), var(--rust)); }
.resource-body { padding: 22px; }
.resource-tag { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; color: var(--rust-text); letter-spacing: 0.06em; }
.resource-card h3 { font-size: 1.15rem; margin: 8px 0; }
.resource-card p { color: var(--gray-500); font-size: 0.92rem; }
.resource-date { font-size: 0.82rem; color: var(--gray-300); }

/* ============================================================
   13. CTA BANNER
   ============================================================ */
.cta-band { background: var(--blue); color: #fff; text-align: center; position: relative; overflow: hidden; }
.cta-band::after {
	content: ""; position: absolute; inset: 0; opacity: 0.08;
	background-image: radial-gradient(circle at 20% 30%, #fff 1px, transparent 1px), radial-gradient(circle at 70% 70%, #fff 1px, transparent 1px);
	background-size: 44px 44px;
}
.cta-band > .container { position: relative; z-index: 2; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.9); font-size: 1.2rem; max-width: 640px; margin: 0 auto 28px; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.cta-phone { margin-top: 18px; color: rgba(255,255,255,0.85); }
.cta-phone a { color: #fff; font-weight: 700; }
/* HOMEPAGE V2 — JMA office photo behind the bottom CTA band, with parallax.
   Navy overlay (0.86–0.9) keeps the centered white text readable. */
[data-home-version="v2"] .cta-band {
	background:
		linear-gradient(rgba(9, 26, 45, 0.86) 0%, rgba(9, 26, 45, 0.90) 100%),
		url('../images/excellence-office.webp');
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	background-attachment: fixed; /* parallax */
}
/* Parallax is janky on touch devices — pin to normal scroll there and for reduced-motion. */
@media (max-width: 820px) {
	[data-home-version="v2"] .cta-band { background-attachment: scroll; }
}
@media (prefers-reduced-motion: reduce) {
	[data-home-version="v2"] .cta-band { background-attachment: scroll; }
}

/* ============================================================
   14. FOOTER
   ============================================================ */
.site-footer { background: var(--ink); color: rgba(255,255,255,0.8); }
.footer-top { padding: 64px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.4fr; gap: 40px; }
.footer-col h4 { color: #fff; font-size: 1rem; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 18px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: rgba(255,255,255,0.8); }
.footer-col a:hover { color: var(--rust); }
.footer-brand .logo-text { color: #fff; font-weight: 800; font-size: 1.3rem; }
.footer-brand .logo-text span { color: var(--rust); }
.footer-logo { display: inline-block; margin-bottom: 14px; }
.footer-logo img { max-height: 74px; width: auto; filter: brightness(0) invert(1); }
.footer-tag { margin: 14px 0 18px; color: rgba(255,255,255,0.65); }
.footer-contact li { display: flex; gap: 8px; }
.social-row { display: flex; gap: 12px; margin-top: 18px; }
.social-row a {
	width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,0.08);
	display: flex; align-items: center; justify-content: center; color: #fff;
}
.social-row a:hover { background: var(--rust); }
.social-row svg { width: 18px; height: 18px; }
.office-block { margin-bottom: 18px; font-size: 0.92rem; line-height: 1.5; }
.office-block strong { color: #fff; display: block; margin-bottom: 4px; }
.footer-bottom { background: #000; padding: 16px 0; }
.footer-bottom .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 0.85rem; }
.footer-bottom a { color: rgba(255,255,255,0.7); }
.footer-legal { display: flex; gap: 18px; }

/* Floating quote button */
.quote-fab {
	position: fixed; right: 22px; bottom: 22px; z-index: 90;
	background: var(--rust-dark); color: #fff; border-radius: 999px; padding: 14px 22px;
	box-shadow: var(--shadow-lg); font-weight: 700; display: inline-flex; gap: 8px; align-items: center;
}
.quote-fab:hover { background: var(--rust-darker); color: #fff; transform: translateY(-2px); }

/* ============================================================
   15. INNER PAGE HEADER
   ============================================================ */
.page-hero { background: linear-gradient(120deg, var(--blue), var(--blue-700)); color: #fff; padding: 64px 0; text-align: center; }
.page-hero h1 { color: #fff; }
.page-hero .breadcrumb { color: rgba(255,255,255,0.75); font-size: 0.9rem; }
.page-hero .breadcrumb a { color: rgba(255,255,255,0.9); }

/* Contact page */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; }
.info-card { background: var(--gray-100); border-radius: var(--radius); padding: 24px; margin-bottom: 20px; }
.info-card h3 { font-size: 1.1rem; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; color: var(--gray-700); margin-bottom: 6px; }
.field input, .field textarea, .field select {
	width: 100%; padding: 12px 14px; border: 1px solid var(--gray-300); border-radius: var(--radius-sm); font-family: inherit; font-size: 1rem;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--rust); border-color: var(--rust); }

/* FAQ accordion */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item { border: 1px solid var(--gray-200); border-radius: var(--radius); margin-bottom: 14px; background: #fff; overflow: hidden; }
.faq-item summary {
	list-style: none; cursor: pointer; padding: 20px 24px; font-weight: 700; color: var(--blue);
	display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 1.05rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.5rem; color: var(--rust-text); flex: none; transition: transform var(--transition); }
.faq-item[open] summary::after { content: "–"; }
.faq-item .faq-answer { padding: 0 24px 22px; color: var(--gray-500); }

/* Spec tables */
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table th, .spec-table td { text-align: left; padding: 12px 14px; vertical-align: top; border-bottom: 1px solid var(--gray-200); }
.spec-table th { color: var(--blue); font-weight: 700; width: 40%; }
.spec-table td { color: var(--gray-500); }
.spec-table--full th { width: 30%; }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }

/* Feature list */
.feature-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 28px; margin: 0; }
.feature-list li { position: relative; padding-left: 30px; color: var(--gray-700); }
.feature-list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--rust); font-weight: 800; }
@media (max-width: 640px) { .feature-list { grid-template-columns: 1fr; } }

/* Reveal on scroll — only hidden when JS is present (progressive enhancement) */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ============================================================
   16. RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
	.stats-grid, .why-grid { grid-template-columns: repeat(2, 1fr); }
	.card-grid { grid-template-columns: repeat(2, 1fr); }
	.testi-card { min-width: calc((100% - 28px) / 2); }
	.footer-grid { grid-template-columns: repeat(2, 1fr); }
	.excellence-grid, .split, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
}
.nav-sub-toggle { display: none; }
.mobile-nav-extra { display: none; }
@media (max-width: 768px) {
	:root { --header-h: 76px; }
	.section { padding: 56px 0; }
	.menu-toggle { display: flex; }
	.header-actions { margin-left: auto; }
	.header-search { display: none; }
	.main-nav {
		position: fixed; inset: var(--header-h) 0 0 auto; width: min(84vw, 340px);
		background: #fff; box-shadow: var(--shadow-lg); padding: 20px;
		transform: translateX(100%); transition: transform var(--transition); overflow-y: auto; margin: 0;
	}
	.main-nav.is-open { transform: translateX(0); }
	.main-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
	/* Submenus / mega-menu become an accordion — collapsed until the row is opened. */
	.main-nav .sub-menu, .main-nav .dropdown, .main-nav .has-mega .mega-menu {
		position: static; transform: none; box-shadow: none; min-width: 0;
		opacity: 1; visibility: visible; display: none;
	}
	.main-nav .sub-menu, .main-nav .dropdown { padding-left: 12px; }
	.main-nav .has-mega .mega-menu { border: 0; border-radius: 0; }
	.main-nav .is-expanded > .sub-menu, .main-nav .is-expanded > .dropdown, .main-nav .is-expanded > .mega-menu { display: block; }
	.main-nav .has-mega .mega-menu::before { display: none; }
	/* Caret toggle at the right edge of each parent row. */
	.main-nav .menu-item-has-children, .main-nav .has-mega { position: relative; }
	.main-nav .menu-item-has-children > a, .main-nav .has-mega > a { padding-right: 52px; }
	.nav-sub-toggle { display: flex; align-items: center; justify-content: center; position: absolute; top: 0; right: 0; width: 48px; height: 48px; padding: 0; background: none; border: 0; color: var(--blue); cursor: pointer; }
	.nav-sub-toggle svg { transition: transform .2s ease; }
	.main-nav .is-expanded > .nav-sub-toggle svg { transform: rotate(180deg); }
	/* Contact actions at the foot of the mobile drawer. */
	.mobile-nav-extra { display: flex; flex-direction: column; gap: 14px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--gray-200); }
	.mobile-nav-extra .btn { width: 100%; justify-content: center; text-transform: none; letter-spacing: normal; }
	.mobile-nav-extra .btn--primary, .mobile-nav-extra .btn--primary:hover { color: #fff; }
	.mobile-nav-extra .mobile-nav-contact { display: inline-flex; align-items: center; gap: 10px; color: var(--blue); font-weight: 600; text-transform: none; letter-spacing: normal; }
	.mobile-nav-extra .mobile-nav-contact svg { color: var(--rust); flex: 0 0 auto; }
	.mobile-nav-extra .mobile-nav-contact:hover { color: var(--rust); }
	.mega-menu-inner { padding: 8px 0 4px; }
	.mega-eyebrow { margin-bottom: 10px; }
	.mega-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 14px; }
	.mega-card-media { aspect-ratio: 16 / 10; }
	.mega-card-title { font-size: 0.9rem; margin-top: 8px; }
	.mega-foot { margin-top: 14px; padding-top: 12px; }
	.header-actions .btn { display: none; }
	.hero-slide { min-height: 440px; background-image: var(--hero-bg-m, var(--hero-bg)); }
	.hero-arrow { display: none; }
}
@media (max-width: 560px) {
	.stats-grid { grid-template-columns: repeat(2, 1fr); }
	.why-grid, .card-grid, .footer-grid { grid-template-columns: 1fr; }
	.testi-card { min-width: 100%; margin-right: 0; }
	.footer-bottom .container { flex-direction: column; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
	* { animation: none !important; scroll-behavior: auto !important; }
	.reveal { opacity: 1; transform: none; }
	.hero-track, .testi-track, .meter-fill { transition: none; }
}

/* Product archive pagination: touch targets, visible focus and responsive wrapping. */
.product-pagination{margin-top:48px;padding-top:32px;border-top:1px solid var(--gray-300);text-align:center}
.product-pagination-summary{margin:0 0 20px;color:var(--gray-700)}
.product-pagination-nav,.pagination-numbers{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:8px}
.product-pagination-nav{gap:16px}
.product-pagination-nav .page-numbers,.pagination-direction{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-width:48px;min-height:48px;padding:10px 16px;border:1px solid var(--gray-300);border-radius:var(--radius);background:var(--white);color:var(--blue);font-weight:600;line-height:1.4;text-decoration:none}
.product-pagination-nav a:hover{background:var(--gray-100);border-color:var(--blue);color:var(--blue)}
.product-pagination-nav a:focus-visible{outline:3px solid var(--rust-dark);outline-offset:3px}
.product-pagination-nav .current{background:var(--blue);border-color:var(--blue);color:var(--white);font-weight:800}
.product-pagination-nav .dots{min-width:24px;padding-inline:0;border-color:transparent;background:transparent}
.pagination-direction.is-disabled{background:var(--gray-100);color:var(--gray-500);border-color:var(--gray-200)}
.product-pagination-position{margin:16px 0 0;font-size:.875rem;color:var(--gray-500)}
@media(max-width:600px){.product-pagination-nav{display:grid;grid-template-columns:1fr 1fr;gap:16px 12px}.pagination-numbers{grid-column:1/-1;grid-row:1}.pagination-direction{width:100%}.product-pagination-nav .page-numbers{padding-inline:12px}.product-pagination{margin-top:32px}}

/* Category navigation is real links, shared by paginated and filtered listings. */
.product-category-nav{display:flex;flex-wrap:wrap;gap:12px;justify-content:center;margin-bottom:40px}
.product-category-nav .btn{min-height:48px;white-space:normal;text-align:center;justify-content:center}
.product-category-nav a[aria-current="page"]{text-decoration:underline;text-underline-offset:4px}
@media(max-width:480px){.product-category-nav{gap:8px}.product-category-nav .btn{flex:1 1 140px}}

/* Product listing SEO / AEO / CRO content blocks (category + /products/) */
.section--bordered { border-top: 1px solid var(--gray-200); }
.section--muted { background: var(--gray-50); }
.cat-prose { max-width: 860px; margin: 0 auto 44px; color: var(--gray-500); font-size: 1.06rem; line-height: 1.75; }
.cat-prose p { margin: 0 0 16px; }
.cat-prose p:last-child { margin-bottom: 0; }
.cat-cta { margin-top: 0; }

/* Awards & Recognition (About page) */
.awards-section { background: var(--gray-50); }
.awards-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 22px; margin: 0 auto;
}
@media (max-width: 860px) { .awards-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .awards-grid { grid-template-columns: 1fr; max-width: 320px; } }
.award-card {
	background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius);
	overflow: hidden; display: flex; flex-direction: column;
	box-shadow: var(--shadow); transition: transform var(--transition), box-shadow var(--transition);
}
.award-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.award-media {
	background: #fff; padding: 22px; height: 230px;
	display: flex; align-items: center; justify-content: center;
	border-bottom: 1px solid var(--gray-100);
}
.award-media img { max-height: 100%; width: auto; max-width: 100%; object-fit: contain; }
.award-placeholder { display: flex; color: var(--rust); opacity: 0.45; }
.award-body { padding: 20px 22px 24px; text-align: center; }
.award-body h3 { font-size: 1.05rem; margin: 0 0 8px; color: var(--blue); line-height: 1.3; }
.award-body p { font-size: 0.9rem; color: var(--gray-500); margin: 0; line-height: 1.6; }
@media (max-width: 600px) { .award-media { height: 200px; } }

/* Certification badges (About page, on dark .excellence band) */
.cert-badges { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 8px; }
.cert-badge {
	background: #fff; border-radius: var(--radius); padding: 30px 20px 26px;
	text-align: center; box-shadow: var(--shadow-lg);
	transition: transform var(--transition);
}
.cert-badge:hover { transform: translateY(-4px); }
.cert-badge-mark { display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.cert-badge-mark svg { width: 82px; height: 82px; }
.cert-badge h3 { color: var(--blue); font-size: 1.02rem; margin: 0 0 8px; }
.cert-badge p { color: var(--gray-500); font-size: 0.86rem; line-height: 1.55; margin: 0; }
@media (max-width: 860px) { .cert-badges { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .cert-badges { grid-template-columns: 1fr; max-width: 320px; margin-left: auto; margin-right: auto; } }
/* HOMEPAGE V2 — cert badges inside the "Built In-House" column: 2×2 + spacing before the CTA */
[data-home-version="v2"] .excellence .cert-badges { grid-template-columns: repeat(2, 1fr); margin: 12px 0 28px; }
[data-home-version="v2"] .excellence .cert-badge-mark svg { width: 66px; height: 66px; }
@media (max-width: 520px) { [data-home-version="v2"] .excellence .cert-badges { grid-template-columns: 1fr; } }

/* Team member cards (About page) — full 3:4 portrait photos */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; max-width: 940px; margin: 0 auto; }
.team-card {
	background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius);
	overflow: hidden; box-shadow: var(--shadow);
	transition: transform var(--transition), box-shadow var(--transition);
}
.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.team-photo { aspect-ratio: 3 / 4; background: var(--gray-100); overflow: hidden; }
.team-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.team-photo-ph { display: flex; align-items: center; justify-content: center; height: 100%; color: var(--gray-300); }
.team-info { padding: 20px 18px 22px; text-align: center; }
.team-info h3 { color: var(--blue); font-size: 1.18rem; margin: 0 0 4px; }
.team-info p { color: var(--rust-text); font-weight: 600; font-size: 0.95rem; margin: 0; }
@media (max-width: 760px) { .team-grid { grid-template-columns: repeat(2, 1fr); max-width: 520px; } }
@media (max-width: 440px) { .team-grid { grid-template-columns: 1fr; max-width: 300px; } }

/* Team section — soft blue-gray band */
.team-section { background: #dbe3ee; }
.team-section .section-head p { color: var(--gray-700); }

/* Vision & Mission — full-width image bands (About page) */
.vm-band {
	position: relative; overflow: hidden;
	background-size: cover; background-position: center; background-color: var(--blue);
	background-attachment: fixed; /* parallax: background stays put while content scrolls over it */
	min-height: 620px; display: flex; align-items: center;
}
.vm-band::before { content: ""; position: absolute; inset: 0; z-index: 0; }
.vm-band .container { position: relative; z-index: 1; width: 100%; }
.vm-content { max-width: 560px; padding: 48px 0; }
.vm-content .eyebrow { color: var(--rust-light); margin-bottom: 10px; }
.vm-content h2 { color: #fff; font-size: clamp(1.8rem, 3.5vw, 2.5rem); margin: 0 0 16px; display: flex; align-items: center; gap: 12px; }
.vm-content h2 svg { color: var(--rust-light); flex: none; }
.vm-content p { color: rgba(255,255,255,0.93); font-size: 1.12rem; line-height: 1.75; margin: 0; }
.vm-vision::before { background: linear-gradient(90deg, rgba(15,42,72,0.95) 0%, rgba(15,42,72,0.82) 44%, rgba(15,42,72,0.30) 100%); }
.vm-mission::before { background: linear-gradient(270deg, rgba(38,22,14,0.95) 0%, rgba(38,22,14,0.82) 44%, rgba(38,22,14,0.26) 100%); }
.vm-mission .vm-content { margin-left: auto; text-align: right; }
.vm-mission h2 { justify-content: flex-end; }
@media (max-width: 820px) {
	.vm-band { background-attachment: scroll; min-height: 460px; } /* fixed bg is janky on mobile */
	.vm-content, .vm-mission .vm-content { max-width: none; text-align: left; padding: 48px 0; }
	.vm-mission h2 { justify-content: flex-start; }
	.vm-vision::before { background: linear-gradient(180deg, rgba(15,42,72,0.86), rgba(15,42,72,0.94)); }
	.vm-mission::before { background: linear-gradient(180deg, rgba(38,22,14,0.86), rgba(38,22,14,0.94)); }
}

/* Category showcase (homepage) — image tiles with overlaid title/subtext/CTA + zoom-on-hover */
.cat-showcase { background: var(--gray-50); }
.cat-showcase-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.cat-card {
	position: relative; display: flex; flex-direction: column; justify-content: flex-end;
	min-height: 499px; border-radius: var(--radius); overflow: hidden;
	background: var(--blue); box-shadow: var(--shadow); color: #fff;
	transition: transform var(--transition), box-shadow var(--transition);
}
.cat-card:hover, .cat-card:focus-visible { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.cat-card-media { position: absolute; inset: 0; z-index: 0; }
.cat-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.cat-card-ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.28); }
.cat-card::after {
	content: ""; position: absolute; inset: 0; z-index: 1;
	background: linear-gradient(to top, rgba(11,28,50,0.95) 0%, rgba(11,28,50,0.72) 40%, rgba(11,28,50,0.42) 70%, rgba(11,28,50,0.34) 100%);
}
.cat-card:hover .cat-card-media img, .cat-card:focus-visible .cat-card-media img { transform: scale(1.09); }
.cat-card-content { position: relative; z-index: 2; padding: 26px 24px 28px; }
.cat-card-content h3 { color: #fff; font-size: 1.3rem; margin: 0 0 6px; }
.cat-card-content p { color: rgba(255,255,255,0.85); font-size: 0.92rem; line-height: 1.5; margin: 0 0 14px; }
.cat-card-cta { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--rust-light); }
.cat-card-cta svg { transition: transform var(--transition); }
.cat-card:hover .cat-card-cta svg, .cat-card:focus-visible .cat-card-cta svg { transform: translateX(5px); }
@media (max-width: 900px) { .cat-showcase-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .cat-showcase-grid { grid-template-columns: 1fr; } .cat-card { min-height: 348px; } }

/* ============================================================
   HOMEPAGE V2 — INTRO BILLBOARD (Apple-style, centered on white)
   Only rendered on the V2 homepage (template-parts/home/v2.php).
   ============================================================ */
.home-intro {
	background: var(--white);
	text-align: center;
	padding: clamp(56px, 9vw, 120px) 0 10px;
}
.home-intro-inner {
	max-width: 900px;
	margin: 0 auto;
}
.home-intro-eyebrow {
	display: inline-block;
	font-size: 0.9rem;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--rust-text);
	margin-bottom: clamp(14px, 2vw, 22px);
}
.home-intro-title {
	color: var(--blue);
	font-size: clamp(2.3rem, 5.6vw, 4.25rem);
	line-height: 1.06;
	letter-spacing: -0.022em;
	font-weight: 700;
	margin: 0 auto clamp(16px, 2.4vw, 26px);
	max-width: 15ch;
}
.home-intro-sub {
	color: var(--gray-500);
	font-size: clamp(1.1rem, 1.9vw, 1.5rem);
	line-height: 1.5;
	font-weight: 400;
	max-width: 640px;
	margin: 0 auto;
}
.home-intro-cta { margin-top: clamp(22px, 3vw, 34px); }

/* HOMEPAGE — stats band on rust (#a85638) with light icons/text (v1 + v2) */
[data-home-version] .stats { background: #a85638; }
[data-home-version] .stat-icon { color: #fff; }
[data-home-version] .stat-num { color: #fff; }
[data-home-version] .stat-label { color: rgba(255, 255, 255, 0.85); }

/* HOMEPAGE V2 — Apple-style horizontal category card rail */
.cat-rail-section { background: #e9eff7; } /* soft light tint of brand navy #0F2A48 */
.cat-rail {
	--rail-pad: max(24px, calc((100vw - 1600px) / 2 + 24px));
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x mandatory;
	scroll-padding-left: var(--rail-pad);
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	margin-top: 12px;
}
.cat-rail::-webkit-scrollbar { display: none; }
.cat-rail:focus-visible { outline: 3px solid var(--rust-dark); outline-offset: -3px; }
.cat-rail-track {
	display: flex;
	gap: 24px;
	width: max-content;
	padding: 10px var(--rail-pad);
}
.cat-rail-card {
	flex: 0 0 auto;
	width: min(655px, 82vw);
	scroll-snap-align: start;
	display: block;
	text-decoration: none;
	color: inherit;
}
.cat-rail-media {
	position: relative;
	aspect-ratio: 655 / 445;
	border-radius: 26px;
	overflow: hidden;
	background: #fff;
	box-shadow: 0 18px 44px rgba(15, 42, 72, 0.14);
	transition: transform var(--transition), box-shadow var(--transition);
}
.cat-rail-card:hover .cat-rail-media,
.cat-rail-card:focus-visible .cat-rail-media {
	transform: translateY(-4px);
	box-shadow: 0 26px 60px rgba(15, 42, 72, 0.22);
}
.cat-rail-media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}
.cat-rail-card:hover .cat-rail-media img,
.cat-rail-card:focus-visible .cat-rail-media img { transform: scale(1.04); }
.cat-rail-ph {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--blue);
}
.cat-rail-caption { padding: 20px 4px 0; }
.cat-rail-caption h3 {
	font-size: 1.3rem;
	color: var(--blue);
	margin: 0 0 6px;
}
.cat-rail-caption p {
	margin: 0 0 13px;
	font-size: 1rem;
	line-height: 1.5;
	color: var(--gray-500);
	max-width: 92%;
}
.cat-rail-cta {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-weight: 700;
	font-size: 0.85rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--rust-text);
}
.cat-rail-cta svg { transition: transform var(--transition); }
.cat-rail-card:hover .cat-rail-cta svg,
.cat-rail-card:focus-visible .cat-rail-cta svg { transform: translateX(5px); }
.cat-rail-nav {
	display: flex;
	gap: 14px;
	justify-content: center;
	margin-top: 36px;
}
.cat-rail-arrow {
	width: 46px;
	height: 46px;
	border: none;
	border-radius: 50%;
	background: var(--gray-200);
	color: var(--blue);
	font-size: 1.55rem;
	line-height: 1;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: background var(--transition), opacity var(--transition);
}
.cat-rail-arrow:hover { background: var(--gray-300); }
.cat-rail-arrow:disabled { opacity: 0.35; cursor: default; }
@media (max-width: 768px) {
	.cat-rail-card { width: 84vw; }
	.cat-rail-caption p { font-size: 1rem; }
}

/* HOMEPAGE V2 — Liquid Glass brand gradient behind the "Why Choose" section.
   White value cards keep their own contrast; only the heading needs to go light. */
[data-home-version="v2"] .section.why {
	background-color: var(--blue);
	background-image: url('../images/liquid-glass-brand.svg');
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}
[data-home-version="v2"] .section.why .eyebrow { color: var(--rust-light); }
[data-home-version="v2"] .section.why .section-head h2 {
	color: #fff;
	text-shadow: 0 1px 14px rgba(9, 26, 45, 0.4);
}

/* ============================================================
   ANNOUNCEMENT / PROMO — global top bar + homepage spotlight band
   ============================================================ */
/* Slim, dismissible top bar (site-wide, above the header) */
.promo-bar {
	background: var(--blue);
	color: #fff;
	font-size: 0.92rem;
	position: relative;
	z-index: 200;
}
.promo-bar-inner {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	min-height: 44px;
	padding: 9px 44px 9px 24px;
	position: relative;
}
.promo-bar-text {
	margin: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 12px;
}
.promo-badge {
	background: var(--rust-dark);
	color: #fff;
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	padding: 3px 10px;
	border-radius: 999px;
	white-space: nowrap;
}
.promo-bar-heading { font-weight: 500; }
.promo-bar-cta {
	color: #fff;
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 3px;
	white-space: nowrap;
}
.promo-bar-cta:hover { color: var(--rust-light); }
.promo-bar-close {
	position: absolute;
	right: 10px;
	top: 50%;
	transform: translateY(-50%);
	background: none;
	border: none;
	color: rgba(255, 255, 255, 0.8);
	font-size: 1.4rem;
	line-height: 1;
	cursor: pointer;
	padding: 4px 9px;
}
.promo-bar-close:hover { color: #fff; }
@media (max-width: 640px) {
	.promo-bar-inner { justify-content: flex-start; }
	.promo-bar-text { justify-content: flex-start; font-size: 0.85rem; gap: 8px; }
}

/* Homepage spotlight band (above the stats) */
.promo-band {
	position: relative;
	background: var(--blue);
	color: #fff;
	padding: 60px 0;
	text-align: center;
}
.promo-band--image { background-size: cover; background-position: center; background-repeat: no-repeat; }
.promo-band-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(9, 26, 45, 0.55), rgba(9, 26, 45, 0.72)); }
.promo-band > .container { position: relative; z-index: 2; }
.promo-band-content { max-width: 720px; margin: 0 auto; }
.promo-band-label { color: var(--rust-light); }
.promo-band h2 { color: #fff; font-size: clamp(1.7rem, 3.4vw, 2.6rem); line-height: 1.14; margin: 0 0 0.5rem; }
.promo-band p { color: rgba(255, 255, 255, 0.9); font-size: 1.15rem; line-height: 1.55; margin: 0 auto 26px; max-width: 620px; }

/* ============================================================
   HOMEPAGE V2 — SCROLL-EXPAND "WHO WE ARE" (Apple-style)
   Contained rounded card that expands to full-bleed on scroll.
   Base = static full-width media block (no-JS / reduced-motion);
   JS adds .is-scrollfx to enable the scroll-scrubbed expansion.
   ============================================================ */
.reveal-expand { background: var(--white); }
.reveal-expand-sticky { position: relative; }
.reveal-expand-frame {
	position: relative;
	width: 100%;
	height: clamp(440px, 82vh, 940px);
	margin: 0 auto;
	overflow: hidden;
	background: var(--blue);
}
.reveal-expand-media {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.reveal-expand-scrim {
	position: absolute;
	inset: 0;
	background: linear-gradient(0deg, rgba(9, 26, 45, 0.88) 0%, rgba(9, 26, 45, 0.55) 26%, rgba(9, 26, 45, 0.12) 54%, rgba(9, 26, 45, 0) 78%);
}
.reveal-expand-copy {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	z-index: 2;
	padding-bottom: clamp(36px, 6vh, 84px);
}
.reveal-expand-text {
	max-width: 780px;
	margin: 0 auto;
	color: #fff;
	text-align: center;
}
.reveal-expand-text .eyebrow { color: var(--rust-light); }
.reveal-expand-text h2 {
	color: #fff;
	font-size: clamp(1.9rem, 3.4vw, 3rem);
	line-height: 1.1;
	letter-spacing: -0.015em;
	margin: 0 0 0.5rem;
}
.reveal-expand-text .lead {
	font-size: clamp(1.1rem, 1.8vw, 1.35rem);
	color: rgba(255, 255, 255, 0.95);
	margin: 0 0 1.1rem;
	font-weight: 500;
}
.reveal-expand-text p { color: rgba(255, 255, 255, 0.88); line-height: 1.65; margin: 0 0 0.9rem; }
.reveal-expand-text .btn { margin-top: 12px; }

/* Enhanced: scroll-scrubbed expansion (JS-driven via --p: 0 → 1). */
.reveal-expand.is-scrollfx .reveal-expand-track { height: 160vh; }
.reveal-expand.is-scrollfx .reveal-expand-sticky {
	position: sticky;
	top: 0;
	height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}
.reveal-expand.is-scrollfx .reveal-expand-frame {
	--p: 0;
	width: calc(80% + 20% * var(--p));
	height: calc(68vh + 32vh * var(--p));
	border-radius: calc(30px * (1 - var(--p)));
	box-shadow: 0 40px 90px rgba(15, 42, 72, calc(0.30 * (1 - var(--p))));
	will-change: width, height, border-radius;
}
.reveal-expand.is-scrollfx .reveal-expand-text {
	opacity: calc(0.15 + 0.85 * var(--p));
	transform: translateY(calc(26px * (1 - var(--p))));
	will-change: opacity, transform;
}

@media (max-width: 768px) {
	.reveal-expand-frame { height: clamp(420px, 76vh, 760px); }
	.reveal-expand.is-scrollfx .reveal-expand-frame { width: calc(88% + 12% * var(--p)); }
	.reveal-expand-text h2 { font-size: clamp(1.7rem, 6vw, 2.2rem); }
}

@media (prefers-reduced-motion: reduce) {
	/* No scroll scrubbing — show the media block statically, text fully visible. */
	.reveal-expand.is-scrollfx .reveal-expand-track { height: auto; }
	.reveal-expand.is-scrollfx .reveal-expand-sticky { position: relative; height: auto; display: block; }
	.reveal-expand.is-scrollfx .reveal-expand-frame { width: 100%; height: clamp(440px, 82vh, 940px); border-radius: 0; }
	.reveal-expand.is-scrollfx .reveal-expand-text { opacity: 1; transform: none; }
}
