/*
Theme Name: D'MET Laboratory
Theme URI: https://www.dmetlab.com/
Author: D'MET Laboratory
Description: Custom theme for D'MET LABORATORY — a metallurgical testing lab (mechanical, chemical & metallurgical testing of metals). Clean, professional, no plugins. All visitor-facing copy is editable in Appearance → Customize → DMET Content.
Version: 1.1.0
Requires at least: 6.4
Requires PHP: 8.0
License: Proprietary
Text Domain: dmet
*/

/* =========================================================================
   Design tokens
   ====================================================================== */
:root {
	--red: #e01f26;
	--red-700: #b2121b;
	--red-050: #fdecec;
	--ink: #14181f;
	--ink-800: #1c222b;
	--slate: #48545f;
	--muted: #6a7682;
	--line: #e4e8ee;
	--line-2: #eef1f5;
	--bg: #ffffff;
	--bg-alt: #f5f7fa;
	--bg-steel: #eceff4;
	--white: #ffffff;

	--font-head: "Sora", system-ui, sans-serif;
	--font-body: "Inter", system-ui, sans-serif;
	--font-mono: "IBM Plex Mono", ui-monospace, monospace;

	--wrap: 1160px;
	--radius: 14px;
	--radius-sm: 9px;
	--shadow: 0 1px 2px rgba(20,24,31,.06), 0 12px 30px rgba(20,24,31,.07);
	--shadow-lg: 0 24px 60px rgba(20,24,31,.14);
	--t: .25s ease;
}

/* =========================================================================
   Base
   ====================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: var(--font-body);
	color: var(--slate);
	background: var(--bg);
	line-height: 1.65;
	font-size: 16.5px;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-decoration: none; transition: color var(--t); }
a:hover { color: var(--red-700); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.15; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1rem; }
::selection { background: var(--red); color: #fff; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }
.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px,1px,1px,1px); white-space: nowrap;
}
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 12px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 1000; }

.icon, .ic { width: 1.25em; height: 1.25em; flex: none; }

/* =========================================================================
   Buttons
   ====================================================================== */
.btn {
	display: inline-flex; align-items: center; gap: .5em;
	font-family: var(--font-head); font-weight: 600; font-size: .96rem;
	padding: .8em 1.4em; border-radius: 999px; border: 1.5px solid transparent;
	cursor: pointer; transition: transform var(--t), background var(--t), color var(--t), border-color var(--t);
	white-space: nowrap;
}
.btn .ic { width: 1.1em; height: 1.1em; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--red); color: #fff; border-color: var(--red); box-shadow: 0 10px 24px rgba(224,31,38,.28); }
.btn-primary:hover { background: var(--red-700); color: #fff; border-color: var(--red-700); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { color: var(--ink); border-color: var(--ink); }
.btn-light { background: #fff; color: var(--ink); border-color: #fff; }
.btn-light:hover { color: var(--red-700); }
.btn-ghost--light { color: #fff; border-color: rgba(255,255,255,.4); }
.btn-ghost--light:hover { color: #fff; border-color: #fff; background: rgba(255,255,255,.08); }

/* =========================================================================
   Eyebrow + section heads
   ====================================================================== */
.eyebrow {
	display: inline-flex; align-items: center; gap: .55em;
	font-family: var(--font-mono); font-size: .76rem; font-weight: 600;
	letter-spacing: .14em; text-transform: uppercase; color: var(--red);
	margin: 0 0 .9rem;
}
.eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px var(--red-050); }
.eyebrow--light { color: #ff9ca0; }
.eyebrow--light .eyebrow-dot { background: #ff9ca0; box-shadow: 0 0 0 4px rgba(255,255,255,.08); }

.section { padding: 84px 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--ink); color: #c4ccd6; }
.section-dark .section-title { color: #fff; }
.section-head { max-width: 680px; margin: 0 auto 48px; text-align: center; }
.section-title { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
.section-sub { color: var(--muted); font-size: 1.05rem; margin: 0; }

/* =========================================================================
   Grids + reveal
   ====================================================================== */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* =========================================================================
   Top bar + header
   ====================================================================== */
.topbar { background: var(--ink); color: #aeb8c2; font-size: .83rem; }
.topbar-inner { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; min-height: 40px; padding-top: 6px; padding-bottom: 6px; }
.topbar-item { display: inline-flex; align-items: center; gap: .5em; color: #aeb8c2; }
.topbar-item .ic { width: 15px; height: 15px; color: var(--red); }
a.topbar-item:hover { color: #fff; }
.topbar-hours { margin-left: auto; }

.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.92); backdrop-filter: saturate(180%) blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-logo { width: 48px; height: 48px; border-radius: 10px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--font-head); font-weight: 800; color: var(--ink); font-size: 1.12rem; letter-spacing: .01em; }
.brand-tag { font-size: .72rem; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }

.primary-nav { display: flex; align-items: center; gap: 28px; }
.nav-list { display: flex; align-items: center; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav-list a { font-family: var(--font-head); font-weight: 600; font-size: .96rem; color: var(--ink); position: relative; padding: 6px 0; }
.nav-list a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 2px; background: var(--red); transition: width var(--t); }
.nav-list a:hover::after, .nav-list .current-menu-item > a::after { width: 100%; }
.nav-list .current-menu-item > a { color: var(--red); }
.nav-cta { padding-top: .6em; padding-bottom: .6em; }

.nav-toggle { display: none; background: none; border: 0; color: var(--ink); cursor: pointer; padding: 6px; }
.nav-toggle .ic-open, .nav-toggle .ic-close { width: 28px; height: 28px; }
.nav-toggle .ic-close { display: none; }
.nav-toggle[aria-expanded="true"] .ic-open { display: none; }
.nav-toggle[aria-expanded="true"] .ic-close { display: block; }

/* =========================================================================
   Hero
   ====================================================================== */
.hero { position: relative; overflow: hidden; background: linear-gradient(170deg, #0f141a 0%, #1c232d 60%, #232c38 100%); color: #d8dee6; padding: 96px 0 104px; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px); background-size: 46px 46px; mask-image: radial-gradient(120% 90% at 70% 10%, #000 20%, transparent 75%); }
.hero-scan { position: absolute; left: 0; right: 0; top: 0; height: 160px; background: linear-gradient(180deg, rgba(224,31,38,.16), transparent); animation: scan 7s ease-in-out infinite; }
@keyframes scan { 0%,100% { transform: translateY(-20%); opacity: .5; } 50% { transform: translateY(380%); opacity: 1; } }
.hero-inner { position: relative; max-width: 820px; }
.hero .eyebrow { color: #ff9ca0; }
.hero .eyebrow-dot { background: var(--red); box-shadow: 0 0 0 4px rgba(224,31,38,.18); }
.hero-title { color: #fff; font-size: clamp(2.2rem, 5.4vw, 3.9rem); font-weight: 800; margin-bottom: .35em; }
.hero-title .accent { color: var(--red); display: inline; }
.hero-text { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: #b9c2cc; max-width: 640px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 22px; }
.hero-note { display: inline-flex; align-items: center; gap: .6em; font-size: .9rem; color: #93a0ac; margin: 0; }
.hero-note .ic { color: #ff9ca0; }

/* =========================================================================
   Stats band
   ====================================================================== */
.stats-band { background: var(--ink-800); border-top: 3px solid var(--red); }
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); }
.stat { text-align: center; padding: 30px 16px; color: #c4ccd6; border-right: 1px solid rgba(255,255,255,.07); }
.stat:last-child { border-right: 0; }
.stat-num { display: block; font-family: var(--font-head); font-weight: 800; font-size: clamp(1.5rem, 3vw, 2.1rem); color: #fff; }
.stat-label { font-size: .85rem; color: #93a0ac; letter-spacing: .02em; }

/* =========================================================================
   Cards / services (home)
   ====================================================================== */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); transition: transform var(--t), box-shadow var(--t), border-color var(--t); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: #d7dde6; }
.card-icon { display: inline-grid; place-items: center; width: 54px; height: 54px; border-radius: 13px; background: var(--red-050); color: var(--red); margin-bottom: 18px; }
.card-icon .ic { width: 26px; height: 26px; }
.card-icon--lg { width: 64px; height: 64px; }
.card-title { font-size: 1.28rem; }
.card-intro { color: var(--muted); font-size: .97rem; }
.check-list { list-style: none; margin: 16px 0 20px; padding: 0; display: grid; gap: 10px; }
.check-list li { display: flex; align-items: flex-start; gap: .6em; font-size: .96rem; color: var(--slate); }
.check-list .ic { color: var(--red); width: 18px; height: 18px; margin-top: 3px; }
.card-link { display: inline-flex; align-items: center; gap: .4em; font-family: var(--font-head); font-weight: 600; font-size: .92rem; }
.card-link .ic { width: 16px; height: 16px; transition: transform var(--t); }
.card-link:hover .ic { transform: translateX(4px); }

/* =========================================================================
   Industries
   ====================================================================== */
.industry-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: transform var(--t), box-shadow var(--t), border-color var(--t); }
.industry-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--red); }
.ind-icon { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 11px; background: var(--bg-steel); color: var(--ink); margin-bottom: 14px; }
.ind-icon .ic { width: 23px; height: 23px; }
.industry-card:hover .ind-icon { background: var(--red); color: #fff; }
.ind-title { font-size: 1.08rem; margin-bottom: .3em; }
.ind-text { color: var(--muted); font-size: .92rem; margin: 0; }

/* =========================================================================
   Why choose us
   ====================================================================== */
.why-wrap { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: start; }
.why-intro .section-title { text-align: left; }
.why-list { display: grid; gap: 14px; }
.why-item { display: flex; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow); }
.why-icon { display: inline-grid; place-items: center; width: 48px; height: 48px; flex: none; border-radius: 12px; background: var(--red-050); color: var(--red); }
.why-icon .ic { width: 24px; height: 24px; }
.why-title { font-size: 1.1rem; margin-bottom: .25em; }
.why-text { margin: 0; color: var(--muted); font-size: .95rem; }

/* =========================================================================
   Process (dark)
   ====================================================================== */
.process-step { position: relative; padding: 28px 26px; border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius); background: rgba(255,255,255,.02); }
.process-num { font-family: var(--font-mono); font-weight: 600; font-size: 2.2rem; color: var(--red); display: block; margin-bottom: 10px; }
.process-title { color: #fff; font-size: 1.22rem; }
.process-text { color: #9aa6b2; margin: 0; }

/* =========================================================================
   Clients
   ====================================================================== */
.client-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.client-chip { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 10px 20px; font-family: var(--font-head); font-weight: 600; font-size: .92rem; color: var(--ink); box-shadow: var(--shadow); }
.section-alt .client-chip { background: #fff; }

/* =========================================================================
   CTA band
   ====================================================================== */
.cta-band { background: linear-gradient(120deg, var(--red) 0%, var(--red-700) 100%); color: #fff; padding: 64px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-title { color: #fff; font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: .2em; }
.cta-text { color: rgba(255,255,255,.9); margin: 0; max-width: 560px; }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* =========================================================================
   Page hero (interior)
   ====================================================================== */
.page-hero { background: var(--ink); color: #c4ccd6; padding: 70px 0 60px; border-bottom: 3px solid var(--red); }
.page-hero .eyebrow { color: #ff9ca0; }
.page-title { color: #fff; font-size: clamp(1.9rem, 4vw, 2.9rem); margin-bottom: .25em; }
.page-lead { color: #a9b4bf; font-size: 1.08rem; max-width: 640px; margin: 0; }
.page-hero--404 { padding: 90px 0; }

/* =========================================================================
   Services (full)
   ====================================================================== */
.services-full { display: grid; gap: 28px; }
.service-block { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow); }
.service-block-head { display: flex; gap: 20px; align-items: center; margin-bottom: 22px; padding-bottom: 22px; border-bottom: 1px solid var(--line-2); }
.service-block-title { font-size: 1.5rem; margin: 0; }
.service-block-intro { margin: .25em 0 0; color: var(--muted); }
.test-list { gap: 16px 28px; }
.test-item { display: flex; gap: 14px; align-items: flex-start; }
.test-bullet { display: inline-grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 8px; background: var(--red-050); color: var(--red); }
.test-bullet .ic { width: 17px; height: 17px; }
.test-name { font-size: 1.04rem; margin: 0 0 .15em; }
.test-detail { margin: 0; color: var(--muted); font-size: .93rem; }

/* =========================================================================
   About
   ====================================================================== */
.about-grid { display: grid; grid-template-columns: 1.4fr 0.9fr; gap: 48px; align-items: start; }
.about-main > p, .about-body p { font-size: 1.06rem; color: var(--slate); }
.about-body p { margin: 0 0 1.1rem; }
.values { display: grid; gap: 14px; margin: 30px 0 0; }
.value { display: flex; gap: 16px; align-items: flex-start; }
.value h3 { font-size: 1.08rem; margin: 0 0 .2em; }
.value p { margin: 0; color: var(--muted); font-size: .95rem; }
.about-side { position: sticky; top: 100px; }
.profile-card { background: var(--ink); color: #c4ccd6; border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-lg); }
.profile-head { color: #fff; font-size: 1.3rem; padding-bottom: 14px; border-bottom: 1px solid rgba(255,255,255,.12); }
.profile-list { margin: 18px 0 24px; display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; }
.profile-list dt { font-family: var(--font-mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: #8b97a3; align-self: start; padding-top: 3px; }
.profile-list dd { margin: 0; color: #e4e8ee; font-size: .95rem; }
.profile-cta { width: 100%; justify-content: center; }
.entry-content { color: var(--slate); }
.entry-content h2, .entry-content h3 { margin-top: 1.4em; }

/* =========================================================================
   Gallery + lightbox
   ====================================================================== */
.gallery-note { color: var(--muted); text-align: center; margin: 0 auto 28px; max-width: 620px; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gallery-item { position: relative; display: block; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #fff; aspect-ratio: 4 / 3; box-shadow: var(--shadow); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 16px; color: #fff; font-size: .9rem; font-weight: 600; background: linear-gradient(0deg, rgba(10,12,16,.82), transparent); }
.gallery-item--ph { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; background: linear-gradient(145deg, var(--bg-steel), #fff); }
.gallery-item--ph .ph-icon { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 14px; background: #fff; color: var(--red); box-shadow: var(--shadow); }
.gallery-item--ph .ph-icon .ic { width: 30px; height: 30px; }
.gallery-item--ph .gallery-cap { position: static; background: none; color: var(--ink); text-align: center; }

.lightbox { position: fixed; inset: 0; z-index: 1000; display: none; align-items: center; justify-content: center; background: rgba(8,10,14,.92); padding: 32px; }
.lightbox.open { display: flex; }
.lightbox-figure { margin: 0; max-width: 90vw; max-height: 86vh; text-align: center; }
.lightbox-img { max-width: 90vw; max-height: 78vh; border-radius: 10px; margin: 0 auto; }
.lightbox-cap { color: #e4e8ee; margin-top: 12px; font-size: .95rem; }
.lightbox-close { position: absolute; top: 20px; right: 24px; background: none; border: 0; color: #fff; cursor: pointer; }
.lightbox-close .ic { width: 34px; height: 34px; }

/* =========================================================================
   Contact + form
   ====================================================================== */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: start; }
.contact-sub { font-size: 1.4rem; }
.contact-list { list-style: none; margin: 18px 0 24px; padding: 0; display: grid; gap: 20px; }
.contact-list li { display: flex; gap: 16px; }
.ci-icon { display: inline-grid; place-items: center; width: 46px; height: 46px; flex: none; border-radius: 12px; background: var(--red-050); color: var(--red); }
.ci-label { display: block; font-family: var(--font-mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 2px; }
.contact-list address { font-style: normal; color: var(--slate); }

.contact-form-wrap { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow-lg); }
.form-intro { color: var(--muted); margin-top: -.3em; }
.enquiry-form { display: grid; gap: 16px; margin-top: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; }
.field > span { font-family: var(--font-head); font-weight: 600; font-size: .86rem; color: var(--ink); }
.field input, .field textarea { font-family: var(--font-body); font-size: 1rem; color: var(--ink); padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--bg-alt); transition: border-color var(--t), background var(--t); width: 100%; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--red); background: #fff; box-shadow: 0 0 0 4px var(--red-050); }
.field textarea { resize: vertical; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.enquiry-form .btn { justify-self: start; margin-top: 4px; }

.form-alert { display: flex; align-items: center; gap: .6em; padding: 14px 18px; border-radius: var(--radius-sm); font-size: .95rem; margin-bottom: 16px; border-left: 4px solid; }
.form-alert--ok { background: #ecfbf0; color: #176b36; border-color: #1f9d4e; }
.form-alert--ok .ic { color: #1f9d4e; }
.form-alert--warn { background: #fff7e8; color: #8a5a00; border-color: #d99500; }
.form-alert--err { background: var(--red-050); color: var(--red-700); border-color: var(--red); }

/* =========================================================================
   Footer
   ====================================================================== */
.site-footer { background: var(--ink); color: #9aa6b2; padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.4fr; gap: 40px; padding-bottom: 44px; }
.brand--footer .brand-name { color: #fff; }
.brand--footer .brand-tag { color: #8b97a3; }
.footer-about { margin-top: 16px; font-size: .95rem; color: #8b97a3; max-width: 340px; }
.footer-head { color: #fff; font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; font-family: var(--font-mono); font-weight: 600; margin-bottom: 16px; }
.footer-links { list-style: none; margin: 0 0 0; padding: 0; display: grid; gap: 10px; }
.footer-links a { color: #aeb8c2; font-size: .96rem; }
.footer-links a:hover { color: #fff; }
.footer-contact { font-style: normal; display: grid; gap: 12px; margin-bottom: 18px; }
.fc-row { display: flex; gap: 10px; color: #aeb8c2; font-size: .95rem; align-items: flex-start; }
.fc-row .ic { color: var(--red); width: 18px; height: 18px; margin-top: 3px; flex: none; }
a.fc-row:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); }
.footer-bottom-inner { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 20px 0; font-size: .85rem; color: #8b97a3; }
.footer-bottom p { margin: 0; }

/* =========================================================================
   Misc
   ====================================================================== */
.post-grid .post-thumb { display: block; border-radius: var(--radius-sm); overflow: hidden; margin-bottom: 14px; }
.post-meta { font-family: var(--font-mono); font-size: .8rem; color: var(--muted); margin: -.4em 0 .6em; }
.pagination { margin-top: 32px; text-align: center; }
.pagination .page-numbers { display: inline-block; padding: 8px 14px; border: 1px solid var(--line); border-radius: 8px; margin: 0 3px; color: var(--ink); }
.pagination .current { background: var(--red); color: #fff; border-color: var(--red); }

/* =========================================================================
   Responsive
   ====================================================================== */
@media (max-width: 1000px) {
	.grid-4 { grid-template-columns: repeat(2, 1fr); }
	.why-wrap, .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
	.about-side { position: static; }
}
@media (max-width: 860px) {
	.topbar-hours { display: none; }
	.nav-toggle { display: inline-flex; }
	.primary-nav {
		position: fixed; inset: 0 0 0 auto; width: min(320px, 82vw);
		background: #fff; flex-direction: column; align-items: stretch; justify-content: flex-start;
		gap: 0; padding: 88px 24px 24px; box-shadow: var(--shadow-lg);
		transform: translateX(100%); transition: transform var(--t); z-index: 90;
	}
	.primary-nav.open { transform: none; }
	.nav-list { flex-direction: column; align-items: stretch; gap: 0; }
	.nav-list li { border-bottom: 1px solid var(--line-2); }
	.nav-list a { display: block; padding: 14px 0; }
	.nav-cta { margin-top: 18px; justify-content: center; }
	.stats-grid { grid-template-columns: repeat(2, 1fr); }
	.stat:nth-child(2) { border-right: 0; }
	.stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid rgba(255,255,255,.07); }
}
@media (max-width: 680px) {
	.section { padding: 60px 0; }
	.grid-2, .grid-3, .grid-4, .test-list, .field-row { grid-template-columns: 1fr; }
	.gallery-grid { grid-template-columns: repeat(2, 1fr); }
	.cta-inner { flex-direction: column; align-items: flex-start; }
	.service-block { padding: 24px; }
	.service-block-head { flex-direction: column; align-items: flex-start; gap: 14px; }
	.wrap { padding: 0 16px; }
}
@media (max-width: 440px) {
	.gallery-grid { grid-template-columns: 1fr; }
	.brand-tag { display: none; }
}

/* =========================================================================
   Reduced motion
   ====================================================================== */
@media (prefers-reduced-motion: reduce) {
	* { animation: none !important; scroll-behavior: auto !important; }
	.reveal { opacity: 1; transform: none; transition: none; }
	.btn:hover, .card:hover, .industry-card:hover { transform: none; }
}
