/*
Theme Name: MRV Theme
Theme URI: https://mrvtidisttech.com
Author: MRV
Version: 4.3.3
Description: Custom theme for MRV – Authorized IT Distributor.
*/

/* ── Reset & Tokens ── */
:root {
  --mrv-primary: #f59e0b;
  --mrv-primary-hover: #d97706;
  --mrv-accent: #0d9488;
  --mrv-accent-light: #e6f6f5;
  --mrv-accent-dark: #0a7a70;
  --mrv-bg-dark: #061212;
  --mrv-bg-darker: #040f0f;
  --mrv-text: #0f172a;
  --mrv-muted: #64748b;
  --mrv-border: #e2e8f0;
  --mrv-radius: 12px;
  --mrv-radius-lg: 16px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  color: var(--mrv-text);
  background: #f8fafc;
  line-height: 1.6;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }

.site-wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ── Buttons ── */
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 11px 22px; border-radius: 10px; font-weight: 600; font-size: 14px; border: none; cursor: pointer; transition: all .2s ease; line-height: 1.4; }
.btn-primary { background: var(--mrv-primary); color: #fff; }
.btn-primary:hover { background: var(--mrv-primary-hover); }
.btn-accent { background: var(--mrv-accent); color: #fff; }
.btn-accent:hover { background: var(--mrv-accent-dark); }
.btn-secondary { border: 1.5px solid var(--mrv-border); color: var(--mrv-text); background: #fff; }
.btn-secondary:hover { border-color: var(--mrv-accent); color: var(--mrv-accent); }
.btn-ghost { border: 1.5px solid rgba(255,255,255,.3); color: #fff; background: transparent; }
.btn-ghost:hover { border-color: rgba(255,255,255,.6); background: rgba(255,255,255,.08); }
.btn-sm { padding: 7px 14px; font-size: 13px; border-radius: 8px; }
.btn-link { background: none; border: none; color: var(--mrv-muted); font-weight: 500; font-size: 14px; padding: 0; }
.btn-link:hover { color: var(--mrv-accent); }

/* ── Top bar ── */
.topbar { background: var(--mrv-bg-dark); border-bottom: 1px solid rgba(255,255,255,.06); font-size: 12px; color: #94a3b8; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; padding-top: 8px; padding-bottom: 8px; }
.topbar-left { display: flex; gap: 20px; }
.topbar-left a { display: inline-flex; align-items: center; gap: 6px; color: #94a3b8; transition: color .2s; }
.topbar-left a:hover { color: #fff; }
.topbar-right { display: flex; align-items: center; gap: 6px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: 11px; color: #94a3b8; }

/* ── Header ── */
.site-header { background: #fff; border-bottom: 1px solid var(--mrv-border); position: sticky; top: 0; z-index: 100; }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; padding-bottom: 14px; gap: 24px; }

.site-logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-icon { display: flex; }
.logo-text { display: flex; flex-direction: column; }
.logo-name { font-size: 20px; font-weight: 800; color: var(--mrv-text); line-height: 1.1; }
.logo-tagline { font-size: 8px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--mrv-muted); line-height: 1.3; }

/* Nav */
.main-nav { flex: 1; display: flex; justify-content: center; }
.nav-menu { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.nav-menu .menu-item > a { display: inline-flex; align-items: center; gap: 4px; padding: 8px 14px; font-size: 14px; font-weight: 500; color: var(--mrv-text); border-radius: 8px; transition: all .15s; }
.nav-menu .menu-item > a:hover,
.nav-menu .current-menu-item > a { color: var(--mrv-accent); background: var(--mrv-accent-light); }
.chevron-down { transition: transform .2s; }

/* Dropdowns */
.nav-menu .has-dropdown { position: relative; }
.nav-menu .sub-menu { display: none; position: absolute; top: 100%; left: 0; min-width: 200px; background: #fff; border: 1px solid var(--mrv-border); border-radius: var(--mrv-radius); box-shadow: 0 12px 32px rgba(15,23,42,.1); padding: 6px; z-index: 50; list-style: none; }
.nav-menu .has-dropdown:hover > .sub-menu { display: block; }
.nav-menu .has-dropdown:hover .chevron-down { transform: rotate(180deg); }
.nav-menu .sub-menu li a { display: block; padding: 8px 14px; font-size: 13px; color: var(--mrv-text); border-radius: 8px; }
.nav-menu .sub-menu li a:hover { background: var(--mrv-accent-light); color: var(--mrv-accent); }

/* Header actions */
.header-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.header-search-btn { background: none; border: 1px solid var(--mrv-border); border-radius: 10px; padding: 8px 10px; cursor: pointer; display: flex; align-items: center; color: var(--mrv-muted); transition: all .15s; }
.header-search-btn:hover { border-color: var(--mrv-accent); color: var(--mrv-accent); }
.btn-header-cta { white-space: nowrap; }

/* Search overlay */
.search-overlay { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--mrv-border); padding: 14px 0; box-shadow: 0 8px 24px rgba(0,0,0,.08); z-index: 40; }
.search-overlay.open { display: block; }
.search-overlay form { display: flex; gap: 10px; align-items: center; }
.search-input { flex: 1; padding: 10px 16px; border: 1.5px solid var(--mrv-border); border-radius: 10px; font-size: 15px; font-family: inherit; outline: none; }
.search-input:focus { border-color: var(--mrv-accent); }
.search-close { background: none; border: none; font-size: 24px; cursor: pointer; color: var(--mrv-muted); padding: 4px 8px; }

/* Mobile toggle */
.mobile-toggle { display: none; background: none; border: none; cursor: pointer; padding: 6px; flex-direction: column; gap: 4px; }
.mobile-toggle span { display: block; width: 22px; height: 2px; background: var(--mrv-text); border-radius: 2px; transition: all .2s; }

/* ── Section helpers ── */
.section { padding: 72px 0; }
.section-kicker { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--mrv-accent); margin-bottom: 6px; }
.section-head h2 { font-size: 32px; font-weight: 800; line-height: 1.2; margin: 0; }
.section-head p.section-desc { margin: 8px 0 0; color: var(--mrv-muted); font-size: 15px; }
.section-head-inline { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.section-head.center { text-align: center; margin-bottom: 32px; }

/* ── Hero ── */
.home-hero { position: relative; color: #fff; background-color: var(--mrv-bg-dark); background-size: cover; background-position: center; overflow: hidden; }
.hero-slide { display: none; padding: 90px 0 80px; min-height: 440px; background-size: cover; background-position: center; }
.hero-slide.active { display: block; }
.hero-slide::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6,18,18,.92) 0%, rgba(6,18,18,.72) 40%, rgba(6,18,18,.15) 100%); }
.hero-content { position: relative; z-index: 2; max-width: 560px; }
.hero-badge { display: inline-flex; align-items: center; gap: 6px; background: rgba(13,148,136,.2); border: 1px solid rgba(13,148,136,.4); color: #5eead4; padding: 6px 14px; border-radius: 999px; font-size: 12px; font-weight: 600; margin-bottom: 16px; }
.hero-content h1 { font-size: 48px; font-weight: 800; line-height: 1.08; margin: 0 0 8px; }
.hero-content > p { color: #cbd5e1; font-size: 16px; margin: 0 0 24px; line-height: 1.6; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-dots { position: relative; z-index: 2; display: flex; gap: 8px; margin-top: 28px; }
.hero-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.3); border: none; cursor: pointer; padding: 0; transition: background .2s; }
.hero-dot.active { background: var(--mrv-accent); width: 28px; border-radius: 5px; }

/* ── Brand Partners ── */
.home-brands { background: #fff; }
.brand-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 24px; }
.brand-card { display: flex; flex-direction: column; background: #fff; border: 1.5px solid var(--mrv-border); border-radius: var(--mrv-radius-lg); padding: 24px; transition: all .25s ease; }
.brand-card:hover { border-color: var(--mrv-accent); transform: translateY(-3px); box-shadow: 0 10px 32px rgba(13,148,136,.1); }
.brand-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 16px; font-weight: 800; color: #fff; margin-bottom: 14px; }
.brand-icon-hp { background: #0096D6; }
.brand-icon-ac { background: #83B81A; }
.brand-icon-dl { background: #007DB8; }
.brand-icon-nm { background: #E84118; }
.brand-card h3 { font-size: 16px; font-weight: 700; margin: 0 0 4px; }
.brand-card .brand-cat { color: var(--mrv-muted); font-size: 13px; margin: 0 0 12px; }
.brand-card .brand-link { font-size: 13px; font-weight: 600; color: var(--mrv-accent); display: inline-flex; align-items: center; gap: 4px; margin-top: auto; }
.brand-card:hover .brand-link { gap: 8px; }

/* ── Featured Products ── */
.section-products { background: #f3f8f8; }
.grid-products { display: grid; grid-template-columns: repeat(auto-fit, 273px); gap: 20px; align-items: start; justify-content: center; }

/* Product card */
.mrv-product-card { background: #fff; border: 1.5px solid var(--mrv-border); border-radius: var(--mrv-radius-lg); overflow: hidden; display: flex; flex-direction: column; transition: all .25s ease; aspect-ratio: 1 / 1; align-self: start; width: 273px; }
.mrv-product-card:hover { border-color: var(--mrv-accent); box-shadow: 0 8px 24px rgba(13,148,136,.08); transform: translateY(-2px); }
.mrv-product-thumb { position: relative; display: block; width: 100%; flex: 1 1 0; min-height: 0; background: #f1f5f9; overflow: hidden; }
.mrv-product-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.mrv-product-thumb-fallback { position: absolute; inset: 0; width: 100%; height: 100%; display: grid; place-items: center; font-size: 36px; font-weight: 800; color: var(--mrv-accent); background: var(--mrv-accent-light); }
.mrv-product-featured-badge { position: absolute; top: 10px; left: 10px; padding: 4px 10px; border-radius: 6px; font-size: 11px; font-weight: 700; background: var(--mrv-primary); color: #fff; }
.mrv-product-content { padding: 16px; display: flex; flex-direction: column; flex: 1 1 0; min-height: 0; overflow: hidden; width: 270px; max-width: 100%; box-sizing: border-box; }
.mrv-product-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 600; }
.badge-brand { background: var(--mrv-accent-light); color: var(--mrv-accent); }
.badge-cat { background: #f1f5f9; color: var(--mrv-muted); }
.mrv-product-title { margin: 0 0 6px; font-size: 15px; font-weight: 700; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.mrv-product-title a { color: var(--mrv-text); }
.mrv-product-title a:hover { color: var(--mrv-accent); }
.mrv-product-desc { margin: 0 0 12px; color: var(--mrv-muted); font-size: 13px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mrv-product-footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.mrv-product-price { font-size: 15px; font-weight: 700; color: var(--mrv-accent); margin: 0; }
.mrv-product-view { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; color: var(--mrv-text); padding: 6px 14px; border: 1.5px solid var(--mrv-border); border-radius: 8px; transition: all .2s; }
.mrv-product-view:hover { border-color: var(--mrv-accent); color: var(--mrv-accent); }

/* ── Why Choose MRV ── */
.home-why { background: #fff; position: relative; }
.why-header { position: relative; text-align: center; margin-bottom: 40px; }
.why-big-number { font-size: 120px; font-weight: 900; color: #f1f5f9; line-height: 1; position: absolute; top: -30px; left: 50%; transform: translateX(-50%); z-index: 0; pointer-events: none; }
.why-header .section-kicker, .why-header h2, .why-header p { position: relative; z-index: 1; }
.why-header h2 { font-size: 32px; font-weight: 800; margin: 4px 0 8px; }
.why-header p { color: var(--mrv-muted); font-size: 15px; }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; align-items: stretch; }
.why-card { background: #f8fafb; border: 1.5px solid var(--mrv-border); border-radius: var(--mrv-radius-lg); padding: 28px 20px; text-align: center; transition: all .25s; display: flex; flex-direction: column; align-items: center; }
.why-card:hover { border-color: var(--mrv-accent); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(13,148,136,.06); }
.why-icon { width: 52px; height: 52px; border-radius: 14px; background: var(--mrv-accent-light); display: grid; place-items: center; margin: 0 auto 16px; color: var(--mrv-accent); }
.why-card h3 { font-size: 15px; font-weight: 700; margin: 0 0 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; width: 100%; }
.why-card p { font-size: 13px; color: var(--mrv-muted); margin: 0; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; width: 100%; }

/* ── Brand Carousel / Logo strip ── */
.logo-strip { background: linear-gradient(135deg, #e2eff4 0%, #eaf5f9 100%); border-top: 1px solid #cde3ec; border-bottom: 1px solid #cde3ec; padding: 48px 0 52px; }
.logo-strip .section-head { text-align: center; margin-bottom: 36px; }
.logo-strip .section-head .section-kicker { color: var(--mrv-accent); }
.logo-strip .section-head p.section-desc { font-size: 14px; color: #64748b; margin: 6px 0 0; }
.logo-track-wrap { overflow: hidden; width: 100%; }
.logo-track { display: flex; align-items: center; gap: 0; animation: marquee 32s linear infinite; width: max-content; }
.logo-track:hover { animation-play-state: paused; }
.logo-item { flex-shrink: 0; width: 150px !important; height: 85px !important; display: flex; align-items: center; justify-content: center; overflow: hidden !important; border: 1.5px solid transparent; border-radius: 16px; margin: 0 10px; background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,0.07); transition: border-color .25s, box-shadow .25s; text-decoration: none; }
.logo-item:hover { border-color: var(--mrv-accent); box-shadow: 0 6px 20px rgba(41,75,85,.14); }
.logo-item img { width: 120px !important; height: 65px !important; max-width: none !important; object-fit: contain !important; display: block !important; filter: grayscale(100%) opacity(.65); transition: filter .3s; }
.logo-item:hover img { filter: grayscale(0%) opacity(1); }
.logo-item-name { font-size: 13px; font-weight: 700; color: #94a3b8; letter-spacing: .06em; text-transform: uppercase; transition: color .25s; }
.logo-item:hover .logo-item-name { color: var(--mrv-accent); }

@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── CTA ── */
.home-cta { background: var(--mrv-bg-dark); color: #fff; }
.cta-panel { text-align: center; max-width: 680px; margin: 0 auto; }
.cta-badge { display: inline-flex; align-items: center; gap: 6px; background: rgba(13,148,136,.15); border: 1px solid rgba(13,148,136,.35); color: #5eead4; padding: 6px 16px; border-radius: 999px; font-size: 12px; font-weight: 600; margin-bottom: 20px; }
.cta-panel h2 { font-size: 38px; font-weight: 800; line-height: 1.15; margin: 0 0 12px; }
.cta-panel p { color: #94a3b8; font-size: 16px; margin: 0 0 28px; line-height: 1.6; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ── Footer (redesigned) ── */
.site-footer { background: var(--mrv-bg-darker); color: #b0bfce; font-size: 14px; }

/* Top section */
.footer-top { padding: 64px 0 48px; }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.4fr; gap: 48px; align-items: start; }

/* Col 1 — Brand */
.footer-brand-col { text-align: left; }
.footer-logo-block { display: flex !important; justify-content: flex-start !important; align-items: flex-start !important; margin-bottom: 18px; }
.footer-logo-block img { display: block !important; object-fit: contain; margin: 0 !important; flex-shrink: 0; }
.footer-about-text { font-size: 13px; color: #94a3b8; line-height: 1.7; margin: 0 0 20px; max-width: 300px; }
.footer-badge-images { display: flex; align-items: center; gap: 12px; margin-top: 8px; flex-wrap: nowrap; }
.footer-badge-img { object-fit: contain; display: block; flex-shrink: 0; }

/* Col 2 & 3 — Links */
.footer-links-col {}
.footer-col-heading { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #fff; margin: 0 0 20px; padding-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,.07); }
.footer-links-list { list-style: none; margin: 0; padding: 0; }
.footer-links-list li { margin-bottom: 2px; }
.footer-links-list a { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: #94a3b8; padding: 5px 0; transition: color .15s, gap .15s; text-decoration: none; }
.footer-links-list a::before { content: ''; width: 4px; height: 4px; border-radius: 50%; background: #334155; flex-shrink: 0; transition: background .15s; }
.footer-links-list a:hover { color: #e2e8f0; }
.footer-links-list a:hover::before { background: var(--mrv-accent); }

/* Col 4 — Contact */
.footer-contact-col {}
.footer-contact-item { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px; font-size: 13.5px; color: #94a3b8; }
.footer-contact-icon { width: 34px; height: 34px; border-radius: 10px; background: rgba(41,75,85,.3); color: var(--mrv-accent); display: grid; place-items: center; flex-shrink: 0; }
.footer-contact-item a { color: #94a3b8; text-decoration: none; transition: color .15s; }
.footer-contact-item a:hover { color: var(--mrv-accent); }
.footer-address-item span { line-height: 1.55; }

/* Social row */
.footer-social-row { margin-top: 22px; }
.footer-social-label { display: block; font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #64748b; margin-bottom: 10px; }
.footer-social-icons { display: flex; flex-wrap: wrap; gap: 8px; }
.footer-social-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.07); color: #94a3b8; transition: background .2s, color .2s, border-color .2s; text-decoration: none; }
.footer-social-icon svg { width: 16px; height: 16px; }
.footer-social-icon:hover { background: var(--mrv-accent); border-color: var(--mrv-accent); color: #fff; }
.footer-social-icon--linkedin:hover  { background: #0a66c2; border-color: #0a66c2; }
.footer-social-icon--facebook:hover  { background: #1877f2; border-color: #1877f2; }
.footer-social-icon--twitter:hover   { background: #000;    border-color: #000; }
.footer-social-icon--instagram:hover { background: linear-gradient(135deg,#f58529,#dd2a7b,#8134af); border-color: #dd2a7b; }
.footer-social-icon--youtube:hover   { background: #ff0000; border-color: #ff0000; }
.footer-social-icon--whatsapp:hover  { background: #25d366; border-color: #25d366; }

/* Divider */
.footer-divider { padding: 0; }
.footer-divider-line { height: 1px; background: linear-gradient(90deg, transparent, rgba(255,255,255,.08) 20%, rgba(255,255,255,.08) 80%, transparent); }

/* Bottom bar */
.footer-bottom { padding: 18px 0; }
.footer-bottom-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.footer-copyright { font-size: 12px; color: #64748b; }
.footer-bottom-nav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-bottom-nav a { font-size: 12px; color: #64748b; text-decoration: none; transition: color .15s; }
.footer-bottom-nav a:hover { color: #94a3b8; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .brand-grid, .why-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .hero-content h1 { font-size: 38px; }
  .cta-panel h2 { font-size: 30px; }
}

@media (max-width: 768px) {
  .topbar-right { display: none; }
  .mobile-toggle { display: flex; }
  .main-nav { position: fixed; top: 0; right: -300px; width: 280px; height: 100vh; background: #fff; box-shadow: -4px 0 24px rgba(0,0,0,.1); flex-direction: column; padding: 70px 20px 20px; z-index: 200; transition: right .3s ease; }
  .main-nav.open { right: 0; }
  .nav-menu { flex-direction: column; gap: 0; }
  .nav-menu .menu-item > a { padding: 12px 0; border-bottom: 1px solid var(--mrv-border); }
  .nav-menu .sub-menu { position: static; box-shadow: none; border: none; padding: 0 0 0 16px; display: block; }
  .header-actions .btn-header-cta { display: none; }
  .section-head-inline { flex-direction: column; align-items: flex-start; }
  .hero-slide { padding: 60px 0; min-height: auto; }
}

@media (max-width: 640px) {
  .section { padding: 48px 0; }
  .brand-grid, .why-grid { grid-template-columns: 1fr; }
  .hero-content h1 { font-size: 32px; }
  .cta-panel h2 { font-size: 26px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom-inner { flex-direction: column; gap: 10px; text-align: center; }
  .footer-bottom-nav { justify-content: center; }
  .why-big-number { font-size: 80px; top: -16px; }
}

/* ═══════════════════════════════════════
   Page Hero (About / Contact)
   ═══════════════════════════════════════ */
.page-hero { background: var(--mrv-bg-dark); color: #fff; padding: 52px 0 48px; }
.page-hero h1 { font-size: 40px; font-weight: 800; margin: 6px 0 8px; line-height: 1.15; }
.page-hero p { color: #94a3b8; font-size: 16px; margin: 0; }

/* ═══════════════════════════════════════
   Stats Bar (About)
   ═══════════════════════════════════════ */
.stats-bar { background: #0a1e1e; color: #fff; padding: 40px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat-item { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.stat-icon { color: var(--mrv-accent); margin-bottom: 4px; }
.stat-number { font-size: 40px; font-weight: 800; line-height: 1.1; }
.stat-label { font-size: 14px; color: #94a3b8; }

/* ═══════════════════════════════════════
   About – Our Story + Brands
   ═══════════════════════════════════════ */
.about-story { background: #fff; }
.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.story-header { position: relative; margin-bottom: 20px; }
.story-big-number { font-size: 110px; font-weight: 900; color: #f1f5f9; line-height: 1; position: absolute; top: -36px; left: -8px; z-index: 0; pointer-events: none; }
.story-header .section-kicker, .story-header h2 { position: relative; z-index: 1; }
.story-header h2 { font-size: 30px; font-weight: 800; margin: 4px 0 0; }
.story-content p { color: var(--mrv-muted); font-size: 15px; line-height: 1.7; margin: 0 0 14px; }

.about-brands-card { background: #f8fafb; border: 1.5px solid var(--mrv-border); border-radius: var(--mrv-radius-lg); padding: 28px; }
.about-brands-card h3 { font-size: 20px; font-weight: 700; margin: 0 0 20px; }
.about-brands-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.about-brand-item { display: flex; align-items: flex-start; gap: 12px; background: #fff; border: 1px solid var(--mrv-border); border-radius: var(--mrv-radius); padding: 16px; }
.about-brand-icon { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; font-size: 14px; font-weight: 800; color: #fff; flex-shrink: 0; }
.about-brand-icon-hp { background: #0096D6; }
.about-brand-icon-ac { background: #83B81A; }
.about-brand-icon-dl { background: #007DB8; }
.about-brand-icon-nm { background: #E84118; }
.about-brand-item strong { font-size: 15px; display: block; margin-bottom: 2px; }
.about-brand-item p { font-size: 12px; color: var(--mrv-muted); margin: 0; }
.about-brands-section { background: #f8fafc; }

/* ═══════════════════════════════════════
   Contact Page
   ═══════════════════════════════════════ */
.contact-section { background: #f8fafc; }
.contact-grid { display: grid; grid-template-columns: 380px 1fr; gap: 40px; align-items: start; }
.contact-info h2 { font-size: 24px; font-weight: 800; margin: 0 0 28px; }
.contact-info-item { display: flex; gap: 14px; margin-bottom: 24px; }
.contact-info-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--mrv-accent-light); color: var(--mrv-accent); display: grid; place-items: center; flex-shrink: 0; }
.contact-info-item strong { font-size: 15px; display: block; margin-bottom: 2px; }
.contact-info-item p { font-size: 14px; color: var(--mrv-muted); margin: 0; }

.contact-form-card { background: #fff; border: 1.5px solid var(--mrv-border); border-radius: var(--mrv-radius-lg); padding: 32px; }
.contact-form-card h2 { font-size: 24px; font-weight: 700; margin: 0 0 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; color: var(--mrv-text); }
.form-group .req { color: #ef4444; }
.form-group input,
.form-group textarea { width: 100%; padding: 10px 14px; border: 1.5px solid var(--mrv-border); border-radius: 10px; font-size: 14px; font-family: inherit; outline: none; transition: border-color .15s; background: #fff; }
.form-group input:focus,
.form-group textarea:focus { border-color: var(--mrv-accent); }
.form-group textarea { resize: vertical; min-height: 100px; }
.btn-submit { width: 100%; padding: 14px; font-size: 15px; border-radius: 10px; justify-content: center; }


/* ═══════════════════════════════════════
   Responsive (About + Contact)
   ═══════════════════════════════════════ */
@media (max-width: 1024px) {
  .story-grid, .contact-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .stat-number { font-size: 30px; }
  .form-row { grid-template-columns: 1fr; }
  .page-hero h1 { font-size: 30px; }
  .about-brands-grid { grid-template-columns: 1fr; }
  .story-big-number { font-size: 70px; }
}

/* ── Contact Map ── */
.contact-map { width: 100%; line-height: 0; }
.contact-map iframe { width: 100%; height: 400px; border: 0; display: block; }

/* ═══════════════════════════════════════
   Careers Page — Professional Redesign
   ═══════════════════════════════════════ */

/* ── Career Hero ── */
.career-hero { background: var(--mrv-bg-dark); color: #fff; padding: 140px 0 56px; position: relative; overflow: hidden; }
.career-hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 80% 60% at 70% 50%, rgba(41,75,85,.5) 0%, transparent 70%); pointer-events: none; }
.career-hero-inner { position: relative; z-index: 2; display: flex; align-items: flex-start; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.career-hero-content { max-width: 580px; }
.career-hero-kicker { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); color: #94a3b8; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; padding: 6px 14px; border-radius: 999px; margin-bottom: 18px; }
.career-hero-content h1 { font-size: 48px; font-weight: 900; line-height: 1.08; margin: 0 0 14px; }
.career-hero-content p { font-size: 16px; color: #94a3b8; line-height: 1.65; margin: 0 0 28px; max-width: 480px; }
.career-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.career-hero-stats { display: flex; gap: 32px; align-self: center; flex-wrap: wrap; }
.career-stat { text-align: center; padding: 20px 24px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); border-radius: var(--mrv-radius); }
.career-stat-num { display: block; font-size: 32px; font-weight: 900; color: var(--mrv-primary); line-height: 1; }
.career-stat-label { display: block; font-size: 12px; color: #94a3b8; margin-top: 4px; white-space: nowrap; }

/* ── Why Join Us — 4 Cards ── */
.career-why { background: #f8fafc; }
.career-why-head { text-align: center; margin-bottom: 40px; }
.career-why-head .section-kicker { margin-bottom: 6px; display: block; }
.career-why-head h2 { font-size: 30px; font-weight: 800; margin: 4px 0 8px; }
.career-why-head p { color: var(--mrv-muted); font-size: 15px; margin: 0; }
.career-why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.career-why-card { background: #fff; border: 1.5px solid var(--mrv-border); border-radius: var(--mrv-radius-lg); padding: 28px 22px; transition: all .25s ease; }
.career-why-card:hover { border-color: var(--mrv-accent); transform: translateY(-3px); box-shadow: 0 10px 28px rgba(0,0,0,.07); }
.career-why-icon { width: 52px; height: 52px; border-radius: 14px; background: var(--mrv-accent-light); color: var(--mrv-accent); display: grid; place-items: center; margin-bottom: 16px; }
.career-why-card h3 { font-size: 16px; font-weight: 800; margin: 0 0 8px; color: var(--mrv-text); }
.career-why-card p { font-size: 13px; color: var(--mrv-muted); margin: 0; line-height: 1.6; }

/* ── Open Positions Section ── */
.career-jobs { background: #fff; }
.career-jobs-head { margin-bottom: 32px; }
.career-jobs-head .section-kicker { display: block; margin-bottom: 4px; }
.career-jobs-head h2 { font-size: 30px; font-weight: 800; margin: 0; }

/* ── Career Job Cards Grid ── */
.career-jobs-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

.cjob-card { background: #fff; border: 1.5px solid var(--mrv-border); border-radius: var(--mrv-radius-lg); overflow: hidden; display: flex; flex-direction: column; transition: all .25s ease; }
.cjob-card:hover { border-color: var(--mrv-accent); box-shadow: 0 10px 32px rgba(0,0,0,.08); transform: translateY(-3px); }
.cjob-card--featured { border-color: var(--mrv-primary); }
.cjob-card--featured:hover { box-shadow: 0 10px 36px rgba(245,158,11,.15); }

.cjob-featured-stripe { display: flex; align-items: center; gap: 7px; background: linear-gradient(90deg, var(--mrv-primary), #e08b05); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 8px 20px; }

.cjob-card-inner { padding: 24px; display: flex; flex-direction: column; flex: 1; }

.cjob-header { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 16px; }
.cjob-icon-wrap { width: 50px; height: 50px; border-radius: 14px; background: var(--mrv-accent-light); color: var(--mrv-accent); display: grid; place-items: center; flex-shrink: 0; }
.cjob-icon-wrap--featured { background: #fef3c7; color: var(--mrv-primary); }
.cjob-title-block { flex: 1; }
.cjob-title { font-size: 18px; font-weight: 800; margin: 0 0 7px; line-height: 1.25; color: var(--mrv-text); }
.cjob-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.cjob-badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.cjob-badge--new { background: linear-gradient(135deg,#3b82f6,#8b5cf6); color: #fff; }
.cjob-badge--hot { background: linear-gradient(135deg,var(--mrv-primary),#ef4444); color: #fff; }

.cjob-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.cjob-pill { display: inline-flex; align-items: center; gap: 5px; background: #f1f5f9; color: var(--mrv-muted); font-size: 13px; font-weight: 500; padding: 5px 11px; border-radius: 8px; }
.cjob-pill svg { flex-shrink: 0; }
.cjob-pill--salary { background: #ecfdf5; color: #059669; }
.cjob-pill--date { background: #eff6ff; color: #3b82f6; }

.cjob-desc { font-size: 14px; color: var(--mrv-muted); line-height: 1.65; margin-bottom: 20px; flex: 1; }

.cjob-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 18px; border-top: 1px solid var(--mrv-border); margin-top: auto; flex-wrap: wrap; }
.cjob-apply-btn { gap: 8px; }
.cjob-posted { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--mrv-muted); }

/* ── Empty State ── */
.career-empty { text-align: center; padding: 72px 24px; }
.career-empty-icon { color: #cbd5e1; margin-bottom: 20px; display: flex; justify-content: center; }
.career-empty h3 { font-size: 22px; font-weight: 800; margin: 0 0 10px; }
.career-empty p { color: var(--mrv-muted); font-size: 15px; max-width: 420px; margin: 0 auto 24px; line-height: 1.65; }

/* ── CTA Strip ── */
.career-cta-strip { background: var(--mrv-bg-dark); padding: 48px 0; }
.career-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.career-cta-inner h3 { font-size: 22px; font-weight: 800; color: #fff; margin: 0 0 6px; }
.career-cta-inner p { color: #94a3b8; font-size: 15px; margin: 0; }

/* ── Careers Responsive ── */
@media (max-width: 1024px) {
  .career-why-grid { grid-template-columns: repeat(2, 1fr); }
  .career-hero-stats { gap: 16px; }
}
@media (max-width: 768px) {
  .career-hero-inner { flex-direction: column; }
  .career-hero-content h1 { font-size: 36px; }
  .career-jobs-grid { grid-template-columns: 1fr; }
  .career-cta-inner { flex-direction: column; text-align: center; }
}
@media (max-width: 640px) {
  .career-why-grid { grid-template-columns: 1fr; }
  .career-hero { padding-top: 120px; }
  .career-hero-content h1 { font-size: 28px; }
  .cjob-title { font-size: 16px; }
}

/* ═══════════════════════════════════════
   Job Manager Pages (Apply Form / Listings)
   page-109.php template
   ═══════════════════════════════════════ */

.jobman-hero { padding-bottom: 36px !important; }
.jobman-hero .section-kicker { display: block; margin-bottom: 6px; }
.jobman-hero h1 { margin: 4px 0 8px; }
.jobman-hero p { color: #94a3b8; font-size: 16px; margin: 0 0 16px; }
.jobman-back-link { display: inline-flex; align-items: center; gap: 6px; color: #94a3b8; font-size: 14px; font-weight: 500; transition: color .15s; }
.jobman-back-link:hover { color: #fff; }

.jobman-content-section { background: #f8fafc; }

/* ── Apply Layout ── */
.jobman-apply-layout { display: grid; grid-template-columns: 300px 1fr; gap: 32px; align-items: start; }

/* ── Sidebar ── */
.jobman-apply-sidebar { position: sticky; top: 112px; display: flex; flex-direction: column; gap: 18px; }

.jobman-job-summary-card { background: #fff; border: 1.5px solid var(--mrv-border); border-radius: var(--mrv-radius-lg); padding: 22px; }
.jobman-job-summary-title { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px; color: var(--mrv-accent); }
.jobman-job-summary-title h3 { font-size: 16px; font-weight: 800; margin: 0; color: var(--mrv-text); line-height: 1.3; }
.jobman-job-summary-meta { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.jobman-job-summary-meta li { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--mrv-muted); }
.jobman-job-summary-meta svg { flex-shrink: 0; color: var(--mrv-accent); }
.jobman-job-summary-desc strong { display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--mrv-muted); margin-bottom: 6px; }
.jobman-job-summary-desc p { font-size: 13px; color: var(--mrv-muted); line-height: 1.6; margin: 0; }

.jobman-apply-tips { background: #fff; border: 1.5px solid var(--mrv-border); border-radius: var(--mrv-radius-lg); padding: 18px 20px; }
.jobman-apply-tips h4 { display: flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 700; margin: 0 0 12px; color: var(--mrv-text); }
.jobman-apply-tips h4 svg { color: var(--mrv-accent); flex-shrink: 0; }
.jobman-apply-tips ul { margin: 0; padding: 0 0 0 16px; display: flex; flex-direction: column; gap: 6px; }
.jobman-apply-tips li { font-size: 13px; color: var(--mrv-muted); line-height: 1.5; }

/* ── Form Card ── */
.jobman-apply-form-card { background: #fff; border: 1.5px solid var(--mrv-border); border-radius: var(--mrv-radius-lg); padding: 32px; }

/* Style the plugin-generated form content */
.jobman-apply-form-card p { font-size: 14px; color: var(--mrv-muted); margin: 0 0 20px; line-height: 1.6; }
.jobman-apply-form-card p a { color: var(--mrv-accent); font-weight: 600; }
.jobman-apply-form-card p a:hover { text-decoration: underline; }
.jobman-apply-form-card h3 { font-size: 15px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; color: var(--mrv-muted); margin: 28px 0 12px; padding-bottom: 8px; border-bottom: 1.5px solid var(--mrv-border); }
.jobman-apply-form-card h3:first-child { margin-top: 0; }

/* Table → grid layout */
.job-apply-table { width: 100%; border-collapse: collapse; margin-bottom: 4px; }
.job-apply-table tr { display: flex; flex-direction: column; margin-bottom: 14px; }
.job-apply-table th { font-size: 13px; font-weight: 600; color: var(--mrv-text); padding: 0 0 5px; border: none; }
.job-apply-table td { padding: 0; border: none; }
.job-apply-table td.th { display: none; }

/* Inputs */
.job-apply-table input[type="text"],
.job-apply-table input[type="email"],
.job-apply-table input[type="tel"],
.job-apply-table textarea { width: 100%; padding: 10px 14px; border: 1.5px solid var(--mrv-border); border-radius: 10px; font-size: 14px; font-family: inherit; outline: none; color: var(--mrv-text); background: #fff; transition: border-color .15s; box-sizing: border-box; }
.job-apply-table input[type="text"]:focus,
.job-apply-table input[type="email"]:focus,
.job-apply-table input[type="tel"]:focus,
.job-apply-table textarea:focus { border-color: var(--mrv-accent); box-shadow: 0 0 0 3px rgba(41,75,85,.08); }
.job-apply-table textarea { min-height: 90px; resize: vertical; }

/* Radio & checkbox */
.job-apply-table input[type="radio"],
.job-apply-table input[type="checkbox"] { accent-color: var(--mrv-accent); width: 15px; height: 15px; margin-right: 6px; cursor: pointer; }

/* File upload */
.job-apply-table input[type="file"] { width: 100%; padding: 8px 12px; border: 1.5px dashed var(--mrv-border); border-radius: 10px; font-size: 13px; font-family: inherit; cursor: pointer; background: #f8fafc; transition: border-color .15s; }
.job-apply-table input[type="file"]:hover { border-color: var(--mrv-accent); }

/* Submit row */
.job-apply-table .submit { margin-top: 8px; }
.job-apply-table .submit input[type="submit"],
.job-apply-table .button-primary { display: inline-flex; align-items: center; justify-content: center; padding: 13px 32px; background: var(--mrv-accent); color: #fff; border: none; border-radius: 10px; font-size: 15px; font-weight: 700; cursor: pointer; transition: background .2s; font-family: inherit; width: 100%; }
.job-apply-table .submit input[type="submit"]:hover,
.job-apply-table .button-primary:hover { background: var(--mrv-accent-dark); }

/* Success / error message */
.jobman-message { background: #ecfdf5; border: 1.5px solid #6ee7b7; border-radius: 10px; padding: 18px 20px; font-size: 15px; font-weight: 500; color: #065f46; margin-bottom: 0; }
.jobman-error { background: #fef2f2; border: 1px solid #fca5a5; border-radius: 8px; padding: 10px 14px; font-size: 13px; color: #991b1b; margin-top: 8px; }

/* Generic content */
.jobman-generic-content { max-width: 900px; }
.jobman-generic-content table { width: 100%; border-collapse: collapse; margin-bottom: 24px; }
.jobman-generic-content table th,
.jobman-generic-content table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--mrv-border); font-size: 14px; }
.jobman-generic-content table th { font-weight: 700; color: var(--mrv-muted); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; background: #f8fafc; }
.jobman-generic-content h3 { font-size: 18px; font-weight: 800; margin: 0 0 14px; }

/* ── Apply Page Responsive ── */
@media (max-width: 960px) { .jobman-apply-layout { grid-template-columns: 1fr; } .jobman-apply-sidebar { position: static; } }
@media (max-width: 640px) { .jobman-apply-form-card { padding: 20px; } }

/* ── Updated Header: no topbar, bigger logo, taller, transparent→white scroll ── */
.topbar { display: none !important; }

.site-header {
  background: transparent;
  border-bottom: 1px solid rgba(255,255,255,.1);
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.header-inner { padding-top: 18px; padding-bottom: 18px; }

/* Scrolled state: solid white */
.site-header.scrolled {
  background: #fff;
  border-bottom-color: var(--mrv-border);
  box-shadow: 0 2px 16px rgba(0,0,0,.06);
}

/* Transparent state text colors */
.site-header:not(.scrolled) .logo-name { color: #fff; }
.site-header:not(.scrolled) .logo-tagline { color: rgba(255,255,255,.6); }
.site-header:not(.scrolled) .nav-menu .menu-item > a { color: rgba(255,255,255,.85); }
.site-header:not(.scrolled) .nav-menu .menu-item > a:hover,
.site-header:not(.scrolled) .nav-menu .current-menu-item > a { color: #fff; background: rgba(255,255,255,.1); }
.site-header:not(.scrolled) .mobile-toggle span { background: #fff; }

/* Bigger logo */
.logo-icon svg { width: 48px; height: 48px; }
.logo-name { font-size: 24px; font-weight: 800; }
.logo-tagline { font-size: 9px; letter-spacing: .13em; }
.site-logo { gap: 12px; }

/* Banner starts exactly below the fixed header — driven by dynamic-css.php */
.home-hero { margin-top: var(--mrv-header-height, 154px); padding-top: 0; }
.page-hero { padding-top: 120px; }

/* Remove search button styles (no longer in DOM but just in case) */
.header-search-btn { display: none !important; }

/* ── Empty state (brands/products) ── */
.empty-state { text-align: center; padding: 60px 20px; }
.empty-state-icon { color: var(--mrv-muted); margin-bottom: 16px; }
.empty-state h3 { font-size: 20px; margin: 0 0 8px; }
.empty-state p { color: var(--mrv-muted); font-size: 15px; margin: 0 0 20px; max-width: 400px; margin-left: auto; margin-right: auto; }

/* ── Products archive layout ── */
.products-layout { display: grid; grid-template-columns: 260px 1fr; gap: 28px; align-items: start; }
.filter-sidebar { background: #fff; border: 1.5px solid var(--mrv-border); border-radius: var(--mrv-radius-lg); padding: 20px; position: sticky; top: 96px; }
.filter-sidebar h3 { margin: 0 0 16px; font-size: 18px; }
.filter-sidebar select, .filter-sidebar input[type="search"] { width: 100%; padding: 10px 14px; border: 1.5px solid var(--mrv-border); border-radius: 10px; font-size: 14px; font-family: inherit; outline: none; background: #fff; }
.filter-sidebar select:focus, .filter-sidebar input:focus { border-color: var(--mrv-accent); }
.products-count { color: var(--mrv-muted); font-size: 14px; margin: 0 0 16px; }
.products-main .grid-products { grid-template-columns: repeat(3, 1fr); }

/* ── About: Why Us section ── */
.about-why-us { background: #f8fafc; }
.why-us-header { position: relative; text-align: center; margin-bottom: 28px; }
.why-us-big-number { font-size: 110px; font-weight: 900; color: #e8edf2; line-height: 1; position: absolute; top: -36px; left: 50%; transform: translateX(-50%); z-index: 0; pointer-events: none; }
.why-us-header .section-kicker, .why-us-header h2 { position: relative; z-index: 1; }
.why-us-header h2 { font-size: 30px; font-weight: 800; margin: 4px 0 0; }
.why-us-content { max-width: 960px; margin: 0 auto; }
.why-us-content p { font-size: 15px; line-height: 1.8; color: var(--mrv-muted); margin: 0 0 16px; text-align: justify; }

/* ── About: Our Policy section ── */
.about-policy { background: #fff; }
.policy-grid { display: grid; grid-template-columns: 280px 1fr; gap: 48px; align-items: center; }
.policy-visual { text-align: center; }
.policy-icon-block { width: 140px; height: 140px; background: #eef7f7; border-radius: 20px; display: grid; place-items: center; margin: 0 auto 14px; color: var(--mrv-accent); }
.policy-label { font-size: 18px; font-weight: 800; color: var(--mrv-text); text-transform: uppercase; letter-spacing: .05em; }
.policy-content h2 { font-size: 28px; font-weight: 900; margin: 4px 0 16px; }
.policy-quote { margin: 0; padding: 0; border: none; font-size: 16px; line-height: 1.75; color: var(--mrv-muted); font-style: italic; }

/* ── Responsive additions ── */
@media (max-width: 1024px) {
  .products-layout { grid-template-columns: 1fr; }
  .filter-sidebar { position: static; }
  .products-main .grid-products { grid-template-columns: repeat(2, 1fr); }
  .policy-grid { grid-template-columns: 1fr; text-align: center; }
}
@media (max-width: 640px) {
  .products-main .grid-products { grid-template-columns: 1fr; }
  .why-us-big-number { font-size: 70px; }
}

/* ── Enhanced Navigation (overridden by CUSTOM OVERRIDES below) ── */
.btn-header-cta { font-size: 14px; font-weight: 700; padding: 10px 22px; }

/* ── Office Locations ── */
.offices-section { background: #fff; }
.offices-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.office-card { background: #f8fafb; border: 1.5px solid var(--mrv-border); border-radius: var(--mrv-radius-lg); padding: 0; overflow: hidden; transition: all .25s; position: relative; }
.office-card:hover { border-color: var(--mrv-accent); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(13,148,136,.08); }
.office-card-primary { border-color: var(--mrv-accent); background: #f0fdf9; }
.office-card-badge { position: absolute; top: 12px; right: 12px; background: var(--mrv-accent); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 6px; }
.office-card-header { display: flex; align-items: center; gap: 10px; padding: 20px 24px 0; color: var(--mrv-accent); }
.office-card-header h3 { font-size: 20px; font-weight: 800; margin: 0; color: var(--mrv-accent); }
.office-card-body { padding: 14px 24px 24px; }
.office-company { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--mrv-muted); margin: 0 0 8px; }
.office-card-body > p { font-size: 14px; color: var(--mrv-text); line-height: 1.6; margin: 0 0 12px; }
.office-detail { font-size: 14px; color: var(--mrv-text); margin-bottom: 6px; }
.office-detail strong { color: var(--mrv-text); }
.office-detail a { color: var(--mrv-accent); }
.office-detail a:hover { text-decoration: underline; }

/* ── Map improvements ── */
.contact-map { position: relative; }
.map-wrapper { position: relative; border-top: 4px solid var(--mrv-accent); }
.map-wrapper iframe { width: 100%; height: 450px; display: block; border: 0; filter: saturate(.85) contrast(1.05); }

/* ── Responsive offices ── */
@media (max-width: 1024px) { .offices-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .offices-grid { grid-template-columns: 1fr; } }

/* ── Logo image (final sizes in CUSTOM OVERRIDES below) ── */
.logo-icon { display: none !important; }
.logo-name { display: none !important; }

/* ── Hero slider arrows ── */
.hero-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 5; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.25); background: rgba(0,0,0,.25); color: #fff; display: grid; place-items: center; cursor: pointer; backdrop-filter: blur(4px); transition: all .2s; }
.hero-arrow:hover { background: rgba(0,0,0,.5); border-color: rgba(255,255,255,.5); }
.hero-arrow-prev { left: 20px; }
.hero-arrow-next { right: 20px; }

/* ── Taller hero for banners (padding overridden by CUSTOM OVERRIDES below) ── */
.hero-slide { min-height: 520px !important; }

/* ── Inner pages: pad first section to clear fixed 97px header ── */
.page .section:first-of-type,
.tax-mrv_brand .section:first-of-type,
.post-type-archive-mrv_product .section:first-of-type,
.page .stats-bar:first-of-type,
.page .career-section:first-of-type,
.page .contact-section:first-of-type { padding-top: var(--mrv-header-height, 154px) !important; }

/* ═══════════════════════════════════════
   CUSTOM OVERRIDES  (consolidated – single source of truth)
   ═══════════════════════════════════════ */

/* ─── Header shell ─── */
.site-header {
  background: #fff !important;
  border-bottom: 1px solid var(--mrv-border) !important;
  position: fixed !important;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: background .3s, box-shadow .3s, border-color .3s;
}
.site-header.scrolled {
  background: #fff !important;
  border-bottom-color: var(--mrv-border) !important;
  box-shadow: 0 2px 16px rgba(0,0,0,.06);
}

/* ─── Header inner: height & padding driven by dynamic-css.php (Customizer) ─── */
.header-inner {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 24px !important;
}

/* ─── Logo: logo+tagline block beside 30-years badge ─── */
.site-logo {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 12px !important;
  flex-shrink: 0 !important;
  text-decoration: none !important;
}
.logo-brand {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 4px !important;
}
.logo-icon { display: none !important; }
.logo-text { display: none !important; }
.logo-name { display: none !important; }
/* width/height driven by dynamic-css.php (MRV Settings → Logo) */
.logo-img {
  object-fit: contain !important;
  display: block !important;
  flex-shrink: 0 !important;
}
/* width driven by dynamic-css.php */
.logo-years {
  height: auto !important;
  flex-shrink: 0 !important;
  display: block !important;
}
.logo-tagline {
  display: block !important;
  font-size: 8.5px !important;
  font-weight: 700 !important;
  letter-spacing: .14em !important;
  text-transform: uppercase !important;
  white-space: nowrap !important;
  text-align: center !important;
  line-height: 1 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* ─── Logo + tagline colour per scroll state ─── */
.site-header:not(.scrolled) .logo-tagline { color: #244854 !important; }
.site-header.scrolled .logo-tagline        { color: #244854 !important; }

/* ─── Navigation: items right-aligned ─── */
.main-nav {
  flex: 1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
}
.nav-menu {
  display: flex !important;
  align-items: center !important;   /* all <li> at the same vertical midpoint */
  flex-wrap: nowrap !important;
  gap: 2px !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
/* Every top-level item is a centred flex cell */
.nav-menu > .menu-item {
  display: flex !important;
  align-items: center !important;
}
/* Every top-level link is a flex row – text + optional chevron always centred */
.nav-menu .menu-item > a {
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
  padding: 8px 13px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  border-radius: 8px !important;
  letter-spacing: -.01em !important;
  -webkit-font-smoothing: antialiased !important;
}
.nav-menu .menu-item > a .chevron-down {
  display: block;
  flex-shrink: 0;
}

/* ─── Nav link colours per scroll state (desktop only) ─── */
@media (min-width: 769px) {
  .site-header:not(.scrolled) .nav-menu .menu-item > a             { color: #244854 !important; }
  .site-header:not(.scrolled) .nav-menu .menu-item > a:hover,
  .site-header:not(.scrolled) .nav-menu .current-menu-item > a      { color: #244854 !important; background: rgba(27,67,50,.08) !important; }
  .site-header.scrolled .nav-menu .menu-item > a                    { color: #244854 !important; }
  .site-header.scrolled .nav-menu .menu-item > a:hover,
  .site-header.scrolled .nav-menu .current-menu-item > a            { color: #244854 !important; background: rgba(27,67,50,.08) !important; }
}
.site-header:not(.scrolled) .mobile-toggle span                   { background: #244854 !important; }

/* ─── Footer: white background + dark green text & icons ─── */
.site-footer,
.site-footer .footer-top { background: #fff !important; }
.site-footer .footer-bottom { background: #244854 !important; }
.site-footer { color: #244854 !important; }
.footer-divider-line { background: rgba(27,67,50,.12) !important; }
.footer-col-heading { color: #244854 !important; border-bottom-color: rgba(27,67,50,.15) !important; }
.footer-about-text { color: #244854 !important; }
.footer-links-list a { color: #244854 !important; }
.footer-links-list a::before { background: rgba(27,67,50,.25) !important; }
.footer-links-list a:hover { color: #244854 !important; }
.footer-links-list a:hover::before { background: #244854 !important; }
.footer-contact-item { color: #244854 !important; }
.footer-contact-item a { color: #244854 !important; }
.footer-contact-item a:hover { color: #244854 !important; }
.footer-contact-icon { background: rgba(27,67,50,.1) !important; color: #244854 !important; }
.footer-social-label { color: #244854 !important; }
.footer-social-icon { background: rgba(27,67,50,.06) !important; border-color: rgba(27,67,50,.18) !important; color: #244854 !important; }
.footer-copyright { color: #fff !important; }
.footer-bottom-nav a { color: #fff !important; }
.footer-bottom-nav a:hover { color: rgba(255,255,255,.75) !important; }

/* ── Single Product Page ── */
.product-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
@media (max-width: 768px) { .product-detail-grid { grid-template-columns: 1fr; } }
.product-price { font-weight: 700; color: var(--mrv-accent); font-size: 18px; margin: 8px 0; }
.product-stock { font-size: 14px; font-weight: 600; margin: 4px 0; }
.product-stock.in-stock { color: #047857; }
.product-stock.out-of-stock { color: #b91c1c; }
.product-back-link { font-size: 14px; color: var(--mrv-muted); margin-bottom: 20px; }
.product-back-link:hover { color: var(--mrv-accent); }

/* --- HERO CAROUSEL --- */
.home-hero {
  position: relative !important;
  overflow: hidden !important;
  background: #0b1616 !important;
  color: #fff;
  padding: 0 !important;
  margin: 0 !important;
  margin-top: 112px !important;  /* push below fixed 112px header */
}

/* Slides: display none/block, background on the slide itself */
.hero-slide {
  display: none !important;
  position: relative !important;
  min-height: 640px !important;
  padding: 0 !important;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  overflow: hidden !important;
}
.hero-slide.active {
  display: block !important;
}

/* Ken Burns on the hero-bg child */
.hero-bg {
  position: absolute !important;
  inset: -4% !important;          /* 4% bleed on all sides so scale(1) never shows edges */
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  z-index: 0 !important;
  animation: none;
  transform-origin: center center !important;
}
.hero-slide.active .hero-bg {
  animation: heroKenBurns 12s ease-out forwards !important;
}
@keyframes heroKenBurns {
  0%   { transform: scale(1.04); }
  100% { transform: scale(1.10); }
}

/* Dark gradient overlay */
.hero-slide::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important; left: 0 !important; right: 0 !important; bottom: 0 !important;
  background: linear-gradient(90deg, rgba(6,18,18,.85) 0%, rgba(6,18,18,.6) 45%, rgba(6,18,18,.1) 100%) !important;
  z-index: 1 !important;
}

/* Content wrapper – hero section already starts below header, just add breathing room */
.hero-slide .site-wrap {
  position: relative !important;
  z-index: 2 !important;
  display: flex !important;
  align-items: center !important;
  min-height: 640px !important;
  padding-top: 60px !important;
  padding-bottom: 60px !important;
}
.hero-content {
  position: relative !important;
  z-index: 2 !important;
  max-width: 560px !important;
}

/* Hide dots */
.hero-dots { display: none !important; }

/* Arrows */
.hero-arrow { top: 55% !important; z-index: 10 !important; }

/* --- Inner pages: offset for fixed 112px header (same across all templates) --- */
.page-hero { padding-top: 148px !important; padding-bottom: 48px !important; }
.single-mrv_product .section:first-of-type { padding-top: 128px !important; }

/* ═══════════════════════════════════════
   MOBILE NAV & RESPONSIVENESS FIXES
   ═══════════════════════════════════════ */

/* ── Nav overlay backdrop ── */
.nav-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 190; }
.nav-overlay.open { display: block; }
body.nav-open { overflow: hidden; }

/* ── Hamburger → X animation ── */
.mobile-toggle span { transition: transform .25s ease, opacity .2s ease; }
.mobile-toggle.active span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.mobile-toggle.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.mobile-toggle.active span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ── Nav close button (hidden on desktop) ── */
.nav-close { display: none; }

@media (max-width: 768px) {
  /* Close button inside nav panel */
  .nav-close {
    display: flex; align-items: center; justify-content: center;
    position: absolute; top: 16px; right: 16px;
    width: 36px; height: 36px; border-radius: 8px;
    border: 1.5px solid var(--mrv-border);
    background: #f8fafc; color: var(--mrv-text);
    font-size: 20px; line-height: 1; cursor: pointer; z-index: 10;
  }
  .nav-close:hover { border-color: var(--mrv-accent); color: var(--mrv-accent); }

  /* Submenu accordion: hidden by default, shown when .open */
  .nav-menu .sub-menu { display: none !important; }
  .nav-menu .sub-menu.open { display: block !important; }

  /* Accordion toggle button */
  .sub-toggle {
    background: none; border: none; padding: 6px 10px; cursor: pointer;
    color: var(--mrv-muted); font-size: 18px; line-height: 1;
    display: flex; align-items: center; transition: transform .2s;
  }
  .sub-toggle.open { transform: rotate(180deg); }

  /* Layout: link + toggle button on same row */
  .nav-menu .has-dropdown { display: flex; flex-wrap: wrap; align-items: center; border-bottom: 1px solid var(--mrv-border); }
  .nav-menu .has-dropdown > a { flex: 1; border-bottom: none !important; }
  .nav-menu .has-dropdown > .sub-menu { width: 100%; }

  /* Hero height: reduce for tablet */
  .hero-slide { min-height: 480px !important; }
  .hero-slide .site-wrap { min-height: 480px !important; padding-top: 50px !important; }

  /* Decorative big numbers: reduce at tablet */
  .why-big-number { font-size: 90px; top: -20px; }
  .why-us-big-number { font-size: 80px; top: -24px; }
  .story-big-number { font-size: 80px; top: -24px; }
}

@media (max-width: 640px) {
  /* Hero height: reduce further on phones */
  .hero-slide { min-height: 360px !important; }
  .hero-slide .site-wrap { min-height: 360px !important; padding-top: 40px !important; }

  /* Map iframe: shorter on phones */
  .map-wrapper iframe, .contact-map iframe { height: 260px !important; }
}

/* ── Career table: horizontal scroll on small screens ── */
.job-listing { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ── Mobile nav: force dark text regardless of header scroll state ── */
@media (max-width: 768px) {
  .site-header:not(.scrolled) .nav-menu .menu-item > a,
  .site-header.scrolled .nav-menu .menu-item > a { color: var(--mrv-text) !important; }
  .site-header:not(.scrolled) .nav-menu .menu-item > a:hover,
  .site-header:not(.scrolled) .nav-menu .current-menu-item > a,
  .site-header.scrolled .nav-menu .menu-item > a:hover,
  .site-header.scrolled .nav-menu .current-menu-item > a { color: var(--mrv-accent) !important; background: var(--mrv-accent-light) !important; }
  .nav-menu .sub-menu li a { color: var(--mrv-text) !important; }
}

/* ── Mobile nav layout: override desktop CUSTOM OVERRIDES ── */
@media (max-width: 768px) {
  /* Fix panel: column, stretch items, start from top, scroll if overflow */
  .main-nav {
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
  }

  /* Fix nav-menu: full width column list */
  .nav-menu {
    flex-direction: column !important;
    width: 100% !important;
    flex-wrap: wrap !important;
    gap: 0 !important;
    align-items: stretch !important;
  }

  /* Fix nav-menu items: full width */
  .nav-menu > .menu-item {
    width: 100% !important;
    display: block !important;
  }

  /* Fix nav links: visible dark text, full width */
  .nav-menu .menu-item > a {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    color: var(--mrv-text) !important;
    padding: 12px 0 !important;
    border-bottom: 1px solid var(--mrv-border) !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    white-space: normal !important;
    line-height: 1.4 !important;
  }

  /* Active/hover state in mobile nav */
  .nav-menu .menu-item > a:hover,
  .nav-menu .current-menu-item > a {
    color: var(--mrv-accent) !important;
    background: var(--mrv-accent-light) !important;
    border-radius: 8px !important;
    padding-left: 10px !important;
  }

  /* Sub-menu links */
  .nav-menu .sub-menu li a {
    color: var(--mrv-text) !important;
    font-size: 14px !important;
    padding: 8px 0 !important;
  }
}

/* ═══════════════════════════════════════
   Single Product — ACF Redesign
   ═══════════════════════════════════════ */

/* ── Breadcrumb ────────────────────────────────────────────── */
.product-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 13px;
  color: var(--mrv-muted);
  margin-bottom: 28px;
}
.product-breadcrumb a {
  color: var(--mrv-muted);
  transition: color .15s;
}
.product-breadcrumb a:hover {
  color: var(--mrv-accent);
}
.product-breadcrumb-sep {
  color: var(--mrv-border);
  user-select: none;
}
.product-breadcrumb-current {
  color: var(--mrv-text);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 340px;
}

/* ── Image card (left column) ─────────────────────────────── */
.product-image-card {
  background: #fff;
  border: 1.5px solid var(--mrv-border);
  border-radius: var(--mrv-radius-lg);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  padding: 24px;
}
.product-detail-img {
  width: 100%;
  height: auto;
  max-height: 460px;
  object-fit: contain;
  border-radius: calc(var(--mrv-radius) - 4px);
  display: block;
}
.product-image-fallback {
  width: 100%;
  min-height: 280px;
  display: grid;
  place-items: center;
  font-size: 56px;
  font-weight: 800;
  color: var(--mrv-accent);
  background: var(--mrv-accent-light);
  border-radius: var(--mrv-radius);
}

/* ── Right-column info pane ───────────────────────────────── */
.product-detail-info {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ── Badges row ───────────────────────────────────────────── */
.product-detail-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.badge-featured {
  background: #dcfce7;
  color: #15803d;
}

/* ── Title ────────────────────────────────────────────────── */
.product-detail-title {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.2;
  margin: 0;
  color: var(--mrv-text);
}

/* ── Stock badge ──────────────────────────────────────────── */
.product-stock-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  width: fit-content;
}
.product-stock-badge--instock {
  background: var(--mrv-accent-light);
  color: var(--mrv-accent);
}
.product-stock-badge--outofstock {
  background: #fee2e2;
  color: #b91c1c;
}

/* ── Price ────────────────────────────────────────────────── */
.product-detail-price {
  font-size: 26px;
  font-weight: 800;
  color: var(--mrv-accent);
  margin: 0;
  line-height: 1.2;
}

/* ── Short description ────────────────────────────────────── */
.product-detail-desc {
  color: var(--mrv-muted);
  font-size: 15px;
  line-height: 1.7;
  margin: 0;
}

/* ── Specifications section ───────────────────────────────── */
.product-specs-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.product-specs-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--mrv-accent);
  margin: 0;
}
.product-specs-card {
  background: #fff;
  border: 1.5px solid var(--mrv-border);
  border-radius: var(--mrv-radius);
  overflow: hidden;
}
.product-specs-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--mrv-border);
}
.product-specs-row:last-child {
  border-bottom: none;
}
.product-specs-row:nth-child(even) {
  background: #f8fafc;
}
.product-specs-key {
  font-size: 13px;
  font-weight: 700;
  color: var(--mrv-text);
  min-width: 130px;
  flex-shrink: 0;
}
.product-specs-val {
  font-size: 13px;
  color: var(--mrv-muted);
  line-height: 1.5;
}

/* ── Action buttons ───────────────────────────────────────── */
.product-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 768px) {
  .product-breadcrumb-current { max-width: 200px; }
  .product-detail-title { font-size: 22px; }
  .product-detail-price { font-size: 22px; }
  .product-image-card { min-height: 220px; padding: 16px; }
}
@media (max-width: 640px) {
  .product-detail-actions { flex-direction: column; }
  .product-detail-actions .btn { width: 100%; justify-content: center; }
  .product-specs-key { min-width: 100px; }
}

/* ═══════════════════════════════════════
   Locations Split Layout (Contact Page)
   ═══════════════════════════════════════ */
.locations-split-section { background: #f8fafc; padding-bottom: 0 !important; }
.locations-split {
  display: grid;
  grid-template-columns: 360px 1fr;
  border: 1.5px solid var(--mrv-border);
  border-radius: var(--mrv-radius-lg);
  overflow: hidden;
  margin-top: 28px;
}

/* Left: scrollable location list */
.locations-list {
  max-height: 540px;
  overflow-y: auto;
  background: #fff;
  border-right: 1.5px solid var(--mrv-border);
  scrollbar-width: thin;
  scrollbar-color: var(--mrv-border) transparent;
}
.locations-list::-webkit-scrollbar { width: 4px; }
.locations-list::-webkit-scrollbar-thumb { background: var(--mrv-border); border-radius: 4px; }

.loc-card {
  padding: 18px 22px;
  border-bottom: 1px solid var(--mrv-border);
  cursor: pointer;
  transition: background .15s, border-left-color .15s;
  border-left: 3px solid transparent;
  position: relative;
}
.loc-card:last-child { border-bottom: none; }
.loc-card:hover { background: #f0fdf9; border-left-color: var(--mrv-accent); }
.loc-card.active { background: var(--mrv-accent-light); border-left-color: var(--mrv-accent); }
.loc-card-badge {
  position: absolute; top: 14px; right: 14px;
  background: var(--mrv-accent); color: #fff;
  font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 4px;
}
.loc-name {
  font-size: 14px; font-weight: 700; color: var(--mrv-text);
  margin: 0 0 5px; line-height: 1.3; padding-right: 70px;
}
.loc-address {
  font-size: 13px; color: var(--mrv-muted);
  line-height: 1.5; margin: 0 0 10px;
}
.loc-phone {
  display: flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 700; color: var(--mrv-accent); margin-bottom: 8px;
}
.loc-phone a { color: var(--mrv-accent); }
.loc-phone a:hover { text-decoration: underline; }
.loc-phone svg { flex-shrink: 0; }
.loc-view-link {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 12px; font-weight: 600; color: var(--mrv-accent);
}
.loc-view-link:hover { text-decoration: underline; }

/* Right: map panel */
.locations-map { position: relative; min-height: 540px; }
.locations-map iframe {
  width: 100%; height: 100%; min-height: 540px;
  display: block; border: 0;
  filter: saturate(.85) contrast(1.05);
}

/* Responsive */
@media (max-width: 860px) {
  .locations-split { grid-template-columns: 1fr; }
  .locations-list { max-height: 320px; border-right: none; border-bottom: 1.5px solid var(--mrv-border); }
  .locations-map, .locations-map iframe { min-height: 320px; }
}
@media (max-width: 480px) {
  .locations-map, .locations-map iframe { min-height: 260px; }
}

/* ═══════════════════════════════════════════════════════════════
   MOBILE RESPONSIVENESS OVERHAUL  — v3.8.0
   Fixes: hamburger placement · hero slider · button centering ·
          career CV upload · all-page layout issues
   ════════════════════════════════════════════════════════════ */

/* ── FIX 1: Button text — always centred inside the button ── */
/* Root cause: inline-flex without justify-content means text is
   left-aligned when a button gets width:100%. */
.btn { justify-content: center !important; }

/* ── FIX 2: Header — reduce height on mobile ── */
@media (max-width: 768px) {
  /* Header shell: 64 px tall (was 112 px) */
  .header-inner {
    height: 64px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    justify-content: flex-start !important; /* logo left, toggle right via margin */
  }

  /* Logo image: scale down to fit 64 px mobile header (8:3 ratio) */
  .logo-img {
    width: 106px !important;
    height: 40px !important;
  }
  .logo-years {
    width: 40px !important;
  }
  .logo-tagline {
    font-size: 7px !important;
    letter-spacing: .11em !important;
  }

  /* Desktop CTA button: hide entirely so it doesn't take flex space */
  .header-actions { display: none !important; }

  /* ── FIX 2a: Hamburger — right-align, 44 × 44 touch target ── */
  .mobile-toggle {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    margin-left: auto !important;   /* push to the far right */
    flex-shrink: 0 !important;
    width: 44px !important;
    height: 44px !important;
    border-radius: 8px !important;
    background: rgba(27,67,50,.08) !important;
    border: 1.5px solid rgba(27,67,50,.2) !important;
    padding: 0 !important;
  }
  /* Scrolled state: same styling (header is always white) */
  .site-header.scrolled .mobile-toggle {
    background: rgba(27,67,50,.08) !important;
    border-color: rgba(27,67,50,.2) !important;
  }
  .site-header.scrolled .mobile-toggle span { background: #244854 !important; }
  .mobile-toggle span { width: 22px !important; height: 2px !important; }

  /* ── FIX 2b: Nav panel z-index ──
     .main-nav is a child of .site-header (z-index:1000 stacking context).
     position:fixed does NOT escape that stacking context for paint order.
     So .main-nav's z-index is only relative to OTHER children of site-header.
     The overlay MUST stay below site-header (< 1000) so the nav items
     (painted within the 1000-level context) are above it and clickable. */
  .main-nav    { z-index: 200 !important; }   /* within site-header ctx — fine */
  .nav-overlay { z-index: 999 !important; }   /* below site-header (1000) ✓ */

  /* Offset home hero for 64 px header (was 112 px) */
  .home-hero { margin-top: 64px !important; }

  /* Offset fixed inner-page sections for 64 px header */
  .page-hero { padding-top: 100px !important; padding-bottom: 40px !important; }
  .career-hero { padding-top: 96px !important; }
  .page .section:first-of-type,
  .tax-mrv_brand .section:first-of-type,
  .post-type-archive-mrv_product .section:first-of-type,
  .page .stats-bar:first-of-type,
  .page .contact-section:first-of-type { padding-top: 80px !important; }
  .single-mrv_product .section:first-of-type { padding-top: 84px !important; }
}

/* ── FIX 3: Hero slider — images & layout on mobile ── */
@media (max-width: 768px) {
  /* Reduce height on tablets */
  .hero-slide            { min-height: 460px !important; }
  .hero-slide .site-wrap { min-height: 460px !important; padding-top: 44px !important; }

  /* Shift BG position toward top so faces/subjects stay visible on portrait */
  .hero-slide, .hero-bg { background-position: 65% top !important; }

  /* Slightly heavier overlay for mobile readability */
  .hero-slide::before {
    background: linear-gradient(
      155deg,
      rgba(6,18,18,.92) 0%,
      rgba(6,18,18,.72) 50%,
      rgba(6,18,18,.25) 100%
    ) !important;
  }

  /* Hero content: full width so text never overflows viewport */
  .hero-content { max-width: 100% !important; }
  .hero-content h1 { font-size: 32px !important; line-height: 1.15 !important; }
  .hero-content > p { font-size: 15px !important; margin-bottom: 20px !important; }

  /* Move arrows slightly inward on tablets */
  .hero-arrow-prev { left: 10px !important; }
  .hero-arrow-next { right: 10px !important; }
}

@media (max-width: 480px) {
  /* Phones: shorter hero */
  .hero-slide            { min-height: 320px !important; }
  .hero-slide .site-wrap { min-height: 320px !important; padding-top: 30px !important; }

  /* Smaller heading on phones */
  .hero-content h1 { font-size: 26px !important; }
  .hero-content > p { font-size: 14px !important; margin-bottom: 16px !important; }
  .hero-badge { font-size: 11px !important; padding: 5px 12px !important; }

  /* Stack hero buttons full-width on phones */
  .hero-actions {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
  }
  .hero-actions .btn { width: 100% !important; }

  /* Hide slider arrows — swipe / dots are enough on phones */
  .hero-arrow { display: none !important; }
}

/* ── FIX 4: Career hero stats — 3-column grid on small screens ── */
@media (max-width: 768px) {
  .career-hero-inner { gap: 28px !important; }
}
@media (max-width: 640px) {
  /* Force stats into a neat 3-col grid that fits any phone width */
  .career-hero-stats {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 10px !important;
    width: 100% !important;
    flex-wrap: unset !important;
  }
  .career-stat { padding: 12px 8px !important; }
  .career-stat-num   { font-size: 22px !important; }
  .career-stat-label { font-size: 10px !important; white-space: normal !important; }

  /* Career hero title + actions */
  .career-hero-content h1 { font-size: 28px !important; }
  .career-hero-actions {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
  }
  .career-hero-actions .btn { width: 100% !important; }
  .career-hero { padding-top: 88px !important; }
}

/* ── FIX 5: Career page — "Upload your CV" label + file input ── */

/* Ensure table header labels always wrap and stay fully visible */
.job-apply-table th {
  white-space: normal !important;
  word-break: break-word !important;
  max-width: 100% !important;
}
/* Show plugin-generated td.th duplicate labels (hidden by base rule)
   for the file-upload row on small screens where the th may be absent */
@media (max-width: 640px) {
  .job-apply-table td.th { display: block !important; font-size: 13px !important; font-weight: 600 !important; padding: 0 0 5px !important; color: var(--mrv-text) !important; }
}
/* File input: prevent text overflow, better tap target */
.job-apply-table input[type="file"] {
  min-width: 0 !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  white-space: normal !important;
  overflow: hidden !important;
}
@media (max-width: 640px) {
  .job-apply-table input[type="file"] {
    font-size: 12px !important;
    padding: 12px 10px !important;
    line-height: 1.4 !important;
  }
  .jobman-apply-form-card { padding: 18px 16px !important; }
}

/* ── FIX 6: CTA strip — stack & centre buttons on mobile ── */
@media (max-width: 640px) {
  .cta-actions {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
  }
  .cta-actions .btn { width: 100% !important; }
  .cta-panel h2 { font-size: 26px !important; }
  .cta-panel p  { font-size: 14px !important; }
}
@media (max-width: 480px) {
  .cta-panel h2 { font-size: 22px !important; }
}

/* ── FIX 7: Career bottom CTA — fix alignment on mobile ── */
@media (max-width: 640px) {
  .career-cta-inner { text-align: center !important; justify-content: center !important; }
  .career-cta-inner .btn { width: 100% !important; max-width: 280px !important; }
}

/* ── FIX 8: About page — decorative numbers off-screen fix ── */
@media (max-width: 480px) {
  .story-big-number,
  .why-big-number,
  .why-us-big-number { display: none !important; }
}

/* ── FIX 9: Contact page — form padding on phones ── */
@media (max-width: 480px) {
  .contact-form-card { padding: 18px 16px !important; }
  .form-row { grid-template-columns: 1fr !important; }
}

/* ── FIX 10: Logo carousel — scale items on narrow phones ── */
@media (max-width: 480px) {
  .logo-item {
    width: 110px !important;
    height: 64px !important;
    margin: 0 6px !important;
    border-radius: 12px !important;
  }
  .logo-item img {
    width: 88px !important;
    height: 44px !important;
  }
}

/* ── FIX 11: Single product page — action buttons on mobile ── */
@media (max-width: 480px) {
  .product-detail-actions { flex-direction: column !important; align-items: stretch !important; }
  .product-detail-actions .btn { width: 100% !important; }
}

/* ── FIX 12: Footer bottom — stack on narrow phones ── */
@media (max-width: 480px) {
  .footer-bottom-inner { flex-direction: column !important; gap: 10px !important; text-align: center !important; }
  .footer-bottom-nav { justify-content: center !important; flex-wrap: wrap !important; gap: 12px !important; }
}

/* ── FIX 13: Page hero — font size on phones ── */
@media (max-width: 480px) {
  .page-hero h1  { font-size: 26px !important; }
  .page-hero p   { font-size: 14px !important; }
  .section-head h2 { font-size: 22px !important; }
}

/* ── FIX 14: Why-grid — 2 cols on tablet, 1 on phone ── */
@media (min-width: 481px) and (max-width: 768px) {
  .why-grid { grid-template-columns: repeat(2, 1fr) !important; }
}

/* ── FIX 15: General section padding on small phones ── */
@media (max-width: 480px) {
  .section { padding: 40px 0 !important; }
  .site-wrap { padding-left: 16px !important; padding-right: 16px !important; }
  .about-story-v2,
  .about-why-v2,
  .about-commitment-v2 { padding-left: 20px !important; padding-right: 20px !important; }
}

/* ── FIX 16: Products page — filter usable on mobile ── */
@media (max-width: 768px) {
  .filter-sidebar { margin-bottom: 20px !important; }
}

/* ── FIX 17: About stats bar — prevent cut-off on phones ── */
@media (max-width: 480px) {
  .stats-bar { padding: 28px 0 !important; }
  .stat-number { font-size: 28px !important; }
  .stat-label  { font-size: 12px !important; }
}

/* ── FIX 18: Topbar — hide on all mobile (safety net) ── */
@media (max-width: 768px) {
  .topbar { display: none !important; }
}

/* ═══════════════════════════════════════════════════════════════
   About Page — Modern UI (v2 refined)  |  Who We Are • Why Choose • Commitment
   ═══════════════════════════════════════════════════════════════ */

/* Shared kicker / heading helpers for the v2 sections */
.about-v2 .sec-kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--mrv-accent);
  background: var(--mrv-accent-light);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.about-v2 .sec-title {
  font-size: 34px;
  font-weight: 900;
  margin: 0 0 12px;
  line-height: 1.15;
  letter-spacing: -.01em;
  color: var(--mrv-text);
}
.about-v2 .sec-sub {
  font-size: 16px;
  color: var(--mrv-muted);
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.6;
}
.about-v2 .sec-center { text-align: center; }

/* ── 1. Who We Are ─────────────────────────────────────────── */
.about-story-v2 {
  background: #ffffff;
  padding: 80px 20px;
  position: relative;
  overflow: clip;
}
.about-story-v2::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 8% 10%, rgba(13,148,136,.06), transparent 35%),
    radial-gradient(circle at 95% 90%, rgba(245,158,11,.05), transparent 40%);
  pointer-events: none;
}
.story-v2-wrap {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: start;
}
.story-v2-aside {
  position: sticky;
  top: var(--mrv-header-height, 121px);
  align-self: start;
}
.story-v2-bignum {
  font-size: 120px;
  font-weight: 900;
  color: var(--mrv-accent);
  line-height: 1;
  letter-spacing: -.04em;
  background: linear-gradient(135deg, var(--mrv-accent) 0%, var(--mrv-accent-dark) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0 0 6px;
}
.story-v2-estab {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--mrv-muted);
  margin-bottom: 22px;
}
.story-v2-meta {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}
.story-v2-meta-item {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  background: #f8fafc;
  border: 1px solid var(--mrv-border);
  border-radius: var(--mrv-radius);
}
.story-v2-meta-item .dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--mrv-accent);
  flex-shrink: 0;
}
.story-v2-meta-item span { font-size: 14px; color: var(--mrv-text); font-weight: 500; }
.story-v2-body p {
  font-size: 16px;
  line-height: 1.8;
  color: #334155;
  margin: 0 0 18px;
}
.story-v2-body p.lead {
  font-size: 19px;
  line-height: 1.7;
  color: var(--mrv-text);
  font-weight: 500;
  border-left: 3px solid var(--mrv-accent);
  padding-left: 18px;
  margin-bottom: 24px;
}
.story-v2-body p.lead::first-letter {
  font-size: 45px;
  font-weight: 00;
  color: var(--mrv-accent);
  float: left;
  line-height: 1;
  padding: 4px 10px 0 0;
  font-family: inherit;
}
article {
  width: 100%;
}

.drop-cap::first-letter {
  -webkit-initial-letter: 4;
          initial-letter: 4;
  color: orange;
  font-weight: bold;
  margin-right: .75em;
}
.story-v2-callout {
  margin-top: 6px;
  padding: 20px 22px;
  background: linear-gradient(135deg, var(--mrv-accent-light) 0%, #f8fafc 100%);
  border: 1px solid rgba(13,148,136,.18);
  border-radius: var(--mrv-radius-lg);
}
.story-v2-callout strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--mrv-accent-dark);
  margin-bottom: 6px;
}
.story-v2-callout p {
  margin: 0;
  color: var(--mrv-text);
  font-size: 15.5px;
  line-height: 1.65;
  font-weight: 500;
}

/* ── 2. Why Choose MRV ─────────────────────────────────────── */
.about-why-v2 {
  background: #f8fafc;
  padding: 80px 20px;
  position: relative;
  border-top: 1px solid var(--mrv-border);
}
.why-v2-wrap { max-width: 1200px; margin: 0 auto; }
.why-v2-head { text-align: center; margin-bottom: 48px; }
.why-v2-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}
.why-v2-card {
  background: #fff;
  border: 1px solid transparent;
  outline: 1px solid var(--mrv-border);
  outline-offset: -1px;
  border-radius: var(--mrv-radius-lg);
  padding: 28px 24px;
  transition: transform .25s ease, box-shadow .25s ease, outline-color .25s ease;
  position: relative;
  overflow: hidden;
}
.why-v2-card::before {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--mrv-accent), var(--mrv-primary));
  opacity: 0;
  transition: opacity .25s ease;
}
.why-v2-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(13,148,136,.10);
  outline-color: transparent;
}
.why-v2-card:hover::before { opacity: 1; }
.why-v2-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--mrv-accent-light);
  color: var(--mrv-accent);
  display: grid; place-items: center;
  margin-bottom: 18px;
  font-size: 22px;
  font-weight: 800;
}
.why-v2-card h3 {
  font-size: 17px;
  font-weight: 800;
  margin: 0 0 10px;
  color: var(--mrv-text);
  line-height: 1.3;
}
.why-v2-card p {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--mrv-muted);
  margin: 0;
}

/* ── 3. Our Commitment ─────────────────────────────────────── */
.about-commitment-v2 {
  padding: 80px 20px;
  background:
    radial-gradient(circle at 20% 20%, rgba(13,148,136,.25), transparent 45%),
    radial-gradient(circle at 80% 80%, rgba(245,158,11,.15), transparent 45%),
    linear-gradient(135deg, #061212 0%, #0a2a27 60%, #0d3d38 100%);
  color: #e2f5f3;
  position: relative;
  overflow: hidden;
}
.about-commitment-v2::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: .5;
  pointer-events: none;
}
.commitment-v2-wrap {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 56px;
  align-items: start;
}
.commitment-v2-head .sec-kicker {
  color: #a7efe1;
  background: rgba(167,239,225,.14);
}
.commitment-v2-head .sec-title { color: #ffffff; font-size: 34px; }
.commitment-v2-head p.intro {
  color: #cbd5e1;
  font-size: 16px;
  line-height: 1.7;
  margin: 0 0 18px;
}
.commitment-v2-quote {
  margin-top: 26px;
  padding: 22px 24px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.12);
  border-left: 4px solid var(--mrv-primary);
  border-radius: var(--mrv-radius);
  backdrop-filter: blur(8px);
  font-size: 16px;
  line-height: 1.65;
  color: #ffffff;
}
.commitment-v2-quote strong {
  color: #fff;
  display: block;
  margin-top: 8px;
  font-weight: 700;
  font-size: 17px;
  line-height: 1.5;
}

.commitment-v2-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}
.commitment-v2-item {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 18px 20px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--mrv-radius);
  transition: all .2s ease;
}
.commitment-v2-item:hover {
  background: rgba(255,255,255,.08);
  border-color: rgba(125,211,196,.35);
  transform: translateX(4px);
}
.commitment-v2-check {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--mrv-accent) 0%, #14b8a6 100%);
  color: #fff;
  display: grid; place-items: center;
  font-size: 14px;
  font-weight: 800;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(13,148,136,.35);
}
.commitment-v2-item p {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: #e2e8f0;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .story-v2-wrap { grid-template-columns: 1fr; gap: 32px; }
  .story-v2-aside { position: static; }
  .commitment-v2-wrap { grid-template-columns: 1fr; gap: 36px; }
  .commitment-v2-head .sec-title { font-size: 30px; }
}
@media (max-width: 640px) {
  .about-story-v2,
  .about-why-v2,
  .about-commitment-v2 { padding: 56px 24px; }
  .about-v2 .sec-title { font-size: 26px; }
  .story-v2-bignum { font-size: 88px; }
  .story-v2-estab { font-size: 11px; letter-spacing: .12em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .story-v2-body p.lead { font-size: 17px; }
  .story-v2-body p.lead::first-letter { font-size: 38px; }
  .commitment-v2-head .sec-title { font-size: 26px; }
  .about-commitment-v2::after { opacity: .25; background-size: 20px 20px; }
}
