/* ===== SPAICO — CSS Reset & Variables ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:        #0b1d3a;
  --navy-mid:    #14305e;
  --blue:        #1565d8;
  --blue-light:  #2e82ff;
  --orange:      #e8590c;
  --orange-light:#ff7630;
  --gray-bg:     #f2f5fb;
  --gray-border: #dde4f0;
  --gray-muted:  #8493ab;
  --text:        #1a2340;
  --text-light:  #4a5672;
  --white:       #ffffff;
  --shadow-sm:   0 2px 8px rgba(11,29,58,.08);
  --shadow-md:   0 6px 24px rgba(11,29,58,.12);
  --shadow-lg:   0 16px 48px rgba(11,29,58,.16);
  --radius:      10px;
  --radius-lg:   16px;
  --transition:  .25s ease;
}

html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: 'Inter','Segoe UI',system-ui,sans-serif; color: var(--text); background: var(--white); line-height: 1.65; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ===== TYPOGRAPHY ===== */
h1,h2,h3,h4 { font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.2rem; }

.section-label {
  display: inline-block; font-size: .75rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--orange); margin-bottom: .75rem;
}
.section-title { margin-bottom: 1rem; }
.section-sub { color: var(--text-light); font-size: 1.05rem; max-width: 620px; margin-bottom: 3rem; }

/* ===== LAYOUT ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
section { padding: 80px 0; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .85rem 1.75rem; border-radius: 8px; font-weight: 600;
  font-size: .95rem; cursor: pointer; border: none; transition: var(--transition); white-space: nowrap;
}
.btn-primary { background: var(--orange); color: var(--white); }
.btn-primary:hover { background: var(--orange-light); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-secondary { background: rgba(255,255,255,.12); color: var(--white); border: 1.5px solid rgba(255,255,255,.35); }
.btn-secondary:hover { background: rgba(255,255,255,.22); }
.btn-outline { background: transparent; color: var(--blue); border: 1.5px solid var(--blue); }
.btn-outline:hover { background: var(--blue); color: var(--white); }

/* ===== NAVBAR ===== */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: var(--navy); border-bottom: 1px solid rgba(255,255,255,.08);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; padding: 0 1.5rem; max-width: 1200px; margin: 0 auto;
}
.nav-logo { display: flex; align-items: center; gap: .5rem; color: var(--white); flex-direction: column; align-items: flex-start; justify-content: center; }
.nav-logo-img { height: 32px; width: auto; display: block; filter: brightness(0) saturate(0) invert(1); }
.logo-mark {
  width: 38px; height: 38px; background: var(--orange); border-radius: 8px;
  display: grid; place-items: center; font-weight: 900; font-size: 1rem; color: var(--white); flex-shrink: 0;
}
.logo-text { font-weight: 700; font-size: 1.15rem; color: var(--white); }
.logo-sub { font-size: .65rem; color: rgba(255,255,255,.5); letter-spacing: .05em; display: block; }
.nav-links { display: flex; list-style: none; gap: .25rem; }
.nav-links a {
  display: flex; align-items: center; gap: .35rem; padding: .5rem .85rem;
  border-radius: 6px; color: rgba(255,255,255,.75); font-size: .9rem; font-weight: 500; transition: var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--white); background: rgba(255,255,255,.1); }
.nav-links a svg { width: 15px; height: 15px; opacity: .7; }
.nav-cta { display: flex; align-items: center; gap: .75rem; }
.nav-phone { color: rgba(255,255,255,.7); font-size: .85rem; font-weight: 500; }
.nav-phone strong { color: var(--white); display: block; font-size: .95rem; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: .5rem; background: none; border: none; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--white); border-radius: 2px; transition: var(--transition); }

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, rgba(11,29,58,.96) 0%, rgba(20,48,94,.92) 60%, rgba(26,46,92,.90) 100%),
              url('pictures/hero-bg.webp') center/cover no-repeat;
  color: var(--white); padding: 100px 0 80px; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-inner {
  position: relative; z-index: 1; max-width: 1200px; margin: 0 auto; padding: 0 1.5rem;
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(232,89,12,.2); border: 1px solid rgba(232,89,12,.4);
  color: #ff9a6c; padding: .35rem .9rem; border-radius: 100px;
  font-size: .8rem; font-weight: 600; letter-spacing: .05em; margin-bottom: 1.5rem;
}
.hero h1 { margin-bottom: 1.25rem; }
.hero h1 span { color: var(--orange-light); }
.hero-sub { font-size: 1.1rem; color: rgba(255,255,255,.7); margin-bottom: 2.5rem; line-height: 1.7; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3rem; }
.hero-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.stat-card {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius); padding: 1.25rem;
}
.stat-value { font-size: 2rem; font-weight: 800; color: var(--white); line-height: 1; margin-bottom: .25rem; }
.stat-value span { color: var(--orange-light); }
.stat-label { font-size: .8rem; color: rgba(255,255,255,.55); line-height: 1.4; }
.hero-visual { display: flex; flex-direction: column; gap: 1rem; }
.hero-card {
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-lg); padding: 1.5rem; backdrop-filter: blur(10px);
}
.hero-card-title { font-size: .8rem; font-weight: 600; color: rgba(255,255,255,.5); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 1rem; }
.partner-logos { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }
.partner-logo-badge {
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.15);
  padding: .4rem .9rem; border-radius: 6px; font-weight: 700; font-size: .85rem;
  color: rgba(255,255,255,.85); letter-spacing: .02em;
}
.coverage-pills { display: flex; gap: .5rem; flex-wrap: wrap; }
.pill {
  background: rgba(21,101,216,.3); border: 1px solid rgba(21,101,216,.4);
  color: #7ab8ff; padding: .3rem .75rem; border-radius: 100px; font-size: .8rem; font-weight: 500;
}
.hero-image-wrap { margin-bottom: 1.5rem; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid rgba(255,255,255,.12); box-shadow: var(--shadow-lg); }
.hero-image { width: 100%; height: auto; display: block; filter: brightness(0.9) contrast(1.1); transform: scale(1.02); transition: transform 0.5s; }
.hero-image:hover { transform: scale(1.05); }

/* ===== ABOUT ===== */
.about { background: var(--gray-bg); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.about-text p { color: var(--text-light); margin-bottom: 1rem; line-height: 1.8; }
.about-highlights { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2rem; }
.highlight-item { background: var(--white); border: 1px solid var(--gray-border); border-radius: var(--radius); padding: 1.25rem; border-left: 3px solid var(--orange); }
.highlight-item h4 { font-size: .9rem; margin-bottom: .35rem; }
.highlight-item p { font-size: .82rem; color: var(--text-light); }
.about-cards { display: flex; flex-direction: column; gap: 1rem; }
.about-status-card {
  background: var(--white); border: 1px solid var(--gray-border); border-radius: var(--radius-lg);
  padding: 1.5rem; box-shadow: var(--shadow-sm); display: flex; gap: 1rem; align-items: flex-start;
}
.status-icon { width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; font-size: 1.1rem; }
.status-icon.blue { background: #e8f0fe; }
.status-icon.orange { background: #fef3ea; }
.status-icon.green { background: #e8f5e9; }
.status-icon.purple { background: #f3e8fd; }
.status-body h4 { font-size: .95rem; margin-bottom: .3rem; }
.status-body p { font-size: .82rem; color: var(--text-light); line-height: 1.5; }

/* ===== PRODUCTS ===== */
.products { background: var(--white); }
.products-tabs { display: flex; gap: .5rem; margin-bottom: 2.5rem; flex-wrap: wrap; }
.tab-btn {
  display: flex; align-items: center; gap: .5rem; padding: .65rem 1.25rem;
  border-radius: 8px; font-size: .9rem; font-weight: 600; cursor: pointer;
  border: 1.5px solid var(--gray-border); background: var(--white); color: var(--text-light); transition: var(--transition);
}
.tab-btn:hover { border-color: var(--blue); color: var(--blue); }
.tab-btn.active { background: var(--navy); border-color: var(--navy); color: var(--white); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.product-category { display: grid; grid-template-columns: 1fr 1.4fr; gap: 3rem; align-items: start; }
.product-category.reverse { grid-template-columns: 1.4fr 1fr; }
.product-category.reverse .product-info { order: 2; }
.product-category.reverse .product-showcase { order: 1; }
.product-info h3 { font-size: 1.6rem; margin-bottom: 1rem; }
.product-info p { color: var(--text-light); margin-bottom: 1.5rem; line-height: 1.8; }
.product-features { display: flex; flex-direction: column; gap: .6rem; margin-bottom: 2rem; }
.feature-item { display: flex; align-items: flex-start; gap: .75rem; font-size: .92rem; color: var(--text-light); }
.feature-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--orange); margin-top: .55rem; flex-shrink: 0; }
.brand-tags { display: flex; gap: .5rem; flex-wrap: wrap; }
.brand-tag {
  background: var(--gray-bg); border: 1px solid var(--gray-border);
  padding: .4rem .9rem; border-radius: 6px; font-size: .82rem; font-weight: 700;
  color: var(--navy-mid); letter-spacing: .03em;
}
.product-showcase { background: var(--gray-bg); border-radius: var(--radius-lg); padding: 2rem; border: 1px solid var(--gray-border); }
.product-photo-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: .75rem; margin-bottom: 1.5rem;
}
.prod-thumb {
  width: 100%; aspect-ratio: 1/1; object-fit: contain;
  background: var(--white); border-radius: var(--radius); border: 1px solid var(--gray-border);
  padding: .75rem;
}
.product-img { width: 100%; border-radius: var(--radius); object-fit: cover; margin-bottom: 1.5rem; }
.product-img-contain { width: 100%; border-radius: var(--radius); object-fit: contain; margin-bottom: 1.5rem; background: var(--white); padding: 1rem; }
.showcase-title { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gray-muted); margin-bottom: 1.5rem; }
.spec-grid { display: flex; flex-direction: column; gap: .75rem; }
.spec-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: .6rem .75rem; background: var(--white); border-radius: 8px;
  border: 1px solid var(--gray-border); font-size: .88rem;
}
.spec-label { color: var(--text-light); }
.spec-value { font-weight: 600; color: var(--text); }
.bench-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1.5rem; }
.bench-stat { background: var(--white); border: 1px solid var(--gray-border); border-radius: 10px; padding: 1.25rem; text-align: center; }
.bench-stat-value { font-size: 1.8rem; font-weight: 800; color: var(--navy); line-height: 1; }
.bench-stat-value span { color: var(--orange); }
.bench-stat-label { font-size: .78rem; color: var(--text-light); margin-top: .3rem; }
.bench-features { display: flex; flex-direction: column; gap: .6rem; }
.bench-feature {
  display: flex; align-items: center; gap: .6rem; font-size: .88rem; color: var(--text-light);
  background: var(--white); padding: .6rem .9rem; border-radius: 8px; border: 1px solid var(--gray-border);
}
.epowertrain-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; }
.ep-card {
  background: var(--white); border: 1px solid var(--gray-border); border-radius: var(--radius);
  padding: 1.5rem; box-shadow: var(--shadow-sm); transition: var(--transition);
  display: flex; flex-direction: column;
}
.ep-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.ep-icon { width: 44px; height: 44px; border-radius: 10px; background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%); display: grid; place-items: center; font-size: 1.2rem; margin-bottom: 1rem; }
.ep-card h4 { font-size: .95rem; margin-bottom: .5rem; }
.ep-card p { font-size: .82rem; color: var(--text-light); line-height: 1.6; margin-bottom: .75rem; }
.ep-more { display: inline-block; font-size: .8rem; font-weight: 600; color: var(--blue); text-decoration: none; margin-top: auto; }
.ep-more:hover { text-decoration: underline; }

/* ===================================================================
   SERVICE LOCATOR (Original)
   ================================================================= */
.service-locator { padding: 0; background: var(--gray-bg); }

.locator-controls {
  background: var(--navy);
  color: var(--white);
  padding: 3rem;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  box-shadow: var(--shadow-md);
  margin-bottom: 2px;
}
.locator-controls-inner { max-width: 1200px; margin: 0 auto; }
.locator-controls .section-label { color: var(--blue); margin-bottom: .5rem; display: block; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; font-size: .85rem; }
.locator-controls h2 { font-size: 2rem; margin-bottom: 1rem; color: var(--white); }
.locator-controls p { color: #a4b4cb; font-size: 1.05rem; margin-bottom: 2rem; max-width: 700px; }

.locator-search-row { display: flex; gap: 1rem; margin-bottom: 2rem; }
.search-input-wrap { flex: 1; position: relative; display: flex; align-items: center; }
.search-input-wrap svg { position: absolute; left: 1rem; width: 20px; height: 20px; color: var(--gray-muted); }
.locator-input { font-family: inherit; width: 100%; padding: 1rem 1rem 1rem 3rem; border-radius: var(--radius); border: none; font-size: 1rem; background: var(--white); outline: none; transition: 0.3s ease; }
.locator-input:focus { box-shadow: 0 0 0 3px rgba(21,101,216,0.3); }
.search-suggest-panel {
  position: absolute;
  top: calc(100% + .55rem);
  left: 0;
  right: 0;
  z-index: 25;
  background: rgba(255,255,255,.98);
  border: 1px solid rgba(11,29,58,.1);
  border-radius: 18px;
  box-shadow: 0 20px 40px rgba(4,17,34,.14);
  overflow: hidden;
  display: none;
}
.search-suggest-panel.active { display: block; }
.suggestion-item {
  width: 100%;
  border: none;
  background: transparent;
  text-align: left;
  padding: .95rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  transition: var(--transition);
}
.suggestion-item + .suggestion-item { border-top: 1px solid rgba(11,29,58,.08); }
.suggestion-item:hover, .suggestion-item.is-active { background: rgba(21,101,216,.06); }
.suggestion-copy { display: flex; align-items: center; gap: .8rem; }
.suggestion-pin {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(21,101,216,.12), rgba(239,108,0,.16));
  color: var(--blue);
  display: grid;
  place-items: center;
  font-size: .95rem;
  font-weight: 800;
}
.suggestion-text strong {
  display: block;
  color: var(--navy);
  font-size: .95rem;
}
.suggestion-text span {
  display: block;
  color: var(--text-light);
  font-size: .8rem;
  margin-top: .1rem;
}
.suggestion-count {
  color: var(--orange);
  font-size: .76rem;
  font-weight: 800;
  white-space: nowrap;
}

.btn-locate { font-family: inherit; background: var(--blue); color: var(--white); border: none; padding: 0 1.5rem; border-radius: var(--radius); font-weight: 600; cursor: pointer; display: flex; align-items: center; gap: .5rem; transition: 0.3s ease; white-space: nowrap; }
.btn-locate:hover { background: var(--blue-dark); }
.btn-locate svg { width: 18px; height: 18px; }

.locator-options { display: flex; gap: 2rem; align-items: center; flex-wrap: wrap; background: rgba(255,255,255,0.05); padding: 1rem; border-radius: var(--radius); }
.opt-group { display: flex; align-items: center; gap: 1rem; }
.opt-label { font-size: .85rem; color: #a4b4cb; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }

.opt-pills { display: flex; gap: .5rem; }
.opt-pill { font-family: inherit; background: transparent; border: 1px solid rgba(255,255,255,0.2); color: var(--white); padding: .4rem 1rem; border-radius: 100px; cursor: pointer; font-size: .9rem; transition: 0.3s ease; }
.opt-pill:hover { border-color: rgba(255,255,255,0.5); }
.opt-pill.active { background: var(--white); color: var(--navy); border-color: var(--white); }

.provider-btns, .view-btns { display: flex; gap: .5rem; }
.provider-btn, .view-btn { font-family: inherit; display: flex; align-items: center; gap: .5rem; background: transparent; border: 1px solid rgba(255,255,255,0.2); color: var(--white); padding: .4rem 1rem; border-radius: 100px; cursor: pointer; font-size: .9rem; transition: 0.3s ease; }
.provider-btn:hover, .view-btn:hover { border-color: rgba(255,255,255,0.5); }
.provider-btn.active, .view-btn.active { background: rgba(255,255,255,0.1); border-color: var(--white); }

.opt-divider { width: 1px; height: 30px; background: rgba(255,255,255,0.1); }

.geo-bar { display: none; margin-top: 1rem; color: var(--blue); font-size: .9rem; align-items: center; gap: .5rem; font-weight: 600; }
.geo-bar.visible { display: flex; }
.spinner { width: 18px; height: 18px; border: 2px solid rgba(255,255,255,0.2); border-top-color: var(--blue); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.locator-split { display: grid; grid-template-columns: 2fr 1fr; gap: 2px; }
.map-panel { background: #e8edf5; display: flex; flex-direction: column; width: 100%; border-radius: 0 0 0 var(--radius-lg); overflow: hidden; }
.locator-map-shell {
  position: relative;
  flex: 1;
  min-height: 500px;
  background:
    radial-gradient(circle at 12% 18%, rgba(21,101,216,.18), transparent 30%),
    radial-gradient(circle at 88% 84%, rgba(239,108,0,.16), transparent 26%),
    linear-gradient(180deg, #f1f6fe 0%, #e6eef8 100%);
}
.locator-map { width: 100%; height: 100%; min-height: 500px; }
.map-focus-card {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 500;
  width: min(320px, calc(100% - 36px));
  padding: 1rem 1.05rem;
  border-radius: 18px;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(11,29,58,.08);
  box-shadow: 0 20px 36px rgba(6,23,42,.12);
  backdrop-filter: blur(10px);
}
.map-focus-eyebrow {
  display: inline-block;
  margin-bottom: .35rem;
  color: var(--blue);
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 800;
}
.map-focus-card strong {
  display: block;
  color: var(--navy);
  font-size: 1rem;
  line-height: 1.3;
}
.map-focus-card p {
  margin: .35rem 0 0;
  color: var(--text-light);
  font-size: .83rem;
  line-height: 1.55;
}
.map-footer-bar { display: flex; align-items: center; justify-content: space-between; padding: .55rem .9rem; background: var(--white); border-top: 1px solid var(--gray-border); flex-shrink: 0; }
.map-footer-label { display: flex; align-items: center; gap: .4rem; font-size: .75rem; color: var(--gray-muted); font-weight: 500; }
.map-open-link { display: inline-flex; align-items: center; gap: .4rem; background: var(--blue); color: var(--white); border-radius: 6px; padding: .3rem .8rem; font-size: .78rem; font-weight: 600; transition: var(--transition); }
.map-open-link:hover { background: var(--blue-light); }

.locator-sidebar { background: var(--white); border-radius: 0 0 var(--radius-lg) 0; display: flex; flex-direction: column; overflow: hidden; max-height: 500px; }
.sidebar-header { padding: 1rem 1.5rem; border-bottom: 1px solid var(--gray-border); background: #f8fafc; }
.sidebar-count { font-size: .9rem; color: var(--text-light); }
.sidebar-list { overflow-y: auto; flex: 1; }
.sidebar-empty { padding: 3rem; text-align: center; color: var(--text-light); }
.sidebar-empty svg { width: 40px; height: 40px; margin-bottom: 1rem; opacity: 0.5; }

.partner-row { padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--gray-border); cursor: pointer; transition: 0.3s ease; }
.partner-row:hover { background: #fdfdfd; }
.partner-row-head { display: flex; justify-content: flex-start; align-items: flex-start; }
.partner-row-info { flex: 1; }
.city-dot { width: 8px; height: 8px; background: var(--blue); border-radius: 50%; margin-top: 6px; margin-right: 12px; }
.partner-row-city { font-size: .75rem; color: var(--text-light); text-transform: uppercase; font-weight: 800; letter-spacing: 1px; margin-bottom: .25rem; }
.partner-row-name { font-size: 1.15rem; color: var(--navy); font-weight: 800; margin-bottom: .25rem; line-height: 1.3; font-family: inherit; }
.partner-row-phone { font-size: .9rem; color: var(--blue); font-weight: 600; }
.partner-dist { font-size: .8rem; color: var(--orange); font-weight: 700; white-space: nowrap; margin-left: 1rem; }

.partner-chevron { width: 20px; height: 20px; color: var(--gray-muted); transition: 0.3s ease; margin-left: 1rem; }
.partner-row.open .partner-chevron { transform: rotate(180deg); color: var(--blue); }

.partner-detail { max-height: 0; overflow: hidden; opacity: 0; transition: all 0.4s ease; padding-left: 20px; }
.partner-row.open .partner-detail { max-height: 300px; opacity: 1; padding-top: 1rem; }

.detail-row { display: flex; align-items: flex-start; gap: .75rem; margin-bottom: .75rem; font-size: .9rem; color: var(--text); }
.detail-row svg { width: 16px; height: 16px; color: var(--blue); margin-top: 2px; flex-shrink: 0; }
.detail-row a { color: var(--text); text-decoration: none; transition: 0.3s ease; }
.detail-row a:hover { color: var(--blue); text-decoration: underline; }

.detail-actions { display: flex; gap: .5rem; margin-top: 1rem; }
.detail-action { display: flex; align-items: center; gap: .4rem; padding: .4rem .75rem; background: var(--gray-bg); border-radius: 6px; font-size: .8rem; font-weight: 600; color: var(--navy); text-decoration: none; transition: 0.3s ease; }
.detail-action:hover { background: #e2e8f0; color: var(--blue); }

.custom-marker {
  width: 18px;
  height: 18px;
  background: linear-gradient(180deg, #ff8c52 0%, #ef6c00 100%);
  border: 3px solid rgba(255,255,255,.96);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  box-shadow: 0 8px 24px rgba(239,108,0,.32);
}
.custom-marker::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: rgba(255,255,255,.94);
}
.custom-marker.is-highlight {
  width: 22px;
  height: 22px;
  box-shadow: 0 0 0 10px rgba(21,101,216,.12), 0 12px 28px rgba(21,101,216,.26);
  background: linear-gradient(180deg, #2c82ff 0%, #1565d8 100%);
}
.user-location-marker {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #1565d8;
  border: 3px solid rgba(255,255,255,.96);
  box-shadow: 0 0 0 8px rgba(21,101,216,.14);
}
.leaflet-container {
  font-family: inherit;
  color: var(--text);
}
.leaflet-control-zoom {
  border: none !important;
  box-shadow: 0 14px 24px rgba(6,23,42,.16) !important;
  border-radius: 16px !important;
  overflow: hidden;
}
.leaflet-control-zoom a {
  width: 36px !important;
  height: 36px !important;
  line-height: 34px !important;
  color: var(--navy) !important;
}
.leaflet-popup-content-wrapper {
  border-radius: 18px;
  box-shadow: 0 22px 40px rgba(6,23,42,.18);
}
.leaflet-popup-content {
  margin: 1rem 1rem .95rem;
  min-width: 220px;
}
.map-popup h4 {
  margin: 0 0 .35rem;
  font-size: 1rem;
  color: var(--navy);
}
.map-popup .popup-city {
  display: inline-block;
  margin-bottom: .45rem;
  color: var(--orange);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.map-popup p {
  margin: 0 0 .45rem;
  font-size: .83rem;
  line-height: 1.5;
  color: var(--text-light);
}
.map-popup a {
  color: var(--blue);
  font-weight: 700;
}

.locator-fulllist { display: none; padding: 3rem 1.5rem; background: var(--white); border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
.locator-fulllist.active { display: block; }
.fulllist-count { font-size: 1.1rem; color: var(--text-light); margin-bottom: 2rem; }
.fulllist-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }

.full-card { background: var(--white); border: 1px solid var(--gray-border); border-radius: var(--radius-lg); padding: 1.5rem; box-shadow: 0 4px 12px rgba(0,0,0,0.02); transition: 0.3s ease; }
.full-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: rgba(21,101,216,0.3); }
.full-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.city-tag { background: var(--gray-bg); padding: .25rem .75rem; border-radius: 100px; font-size: .8rem; font-weight: 600; color: var(--navy); }
.dist-tag { font-size: .85rem; color: var(--orange); font-weight: 700; background: rgba(239,108,0,0.1); padding: .25rem .75rem; border-radius: 100px; }
.full-card-name { font-size: 1.25rem; font-weight: 700; color: var(--navy); margin-bottom: 1.5rem; line-height: 1.3; }
.full-card-contacts .crow { display: flex; align-items: flex-start; gap: .75rem; margin-bottom: .75rem; font-size: .9rem; color: var(--text); }
.full-card-contacts .crow svg { width: 16px; height: 16px; color: var(--blue); margin-top: 2px; flex-shrink: 0; }
.full-card-contacts .crow a { color: var(--text); text-decoration: none; transition: 0.3s ease; }
.full-card-contacts .crow a:hover { color: var(--blue); }

@media (max-width: 1024px) {
  .locator-split { grid-template-columns: 1fr; }
  .locator-sidebar { max-height: 400px; border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
  .map-panel { min-height: 400px; border-radius: 0; }
  .map-focus-card { top: 14px; left: 14px; width: min(300px, calc(100% - 28px)); }
}

@media (max-width: 768px) {
  .locator-controls { padding: 2rem 1.5rem; }
  .locator-search-row { flex-direction: column; }
  .locator-options { flex-direction: column; align-items: stretch; gap: 1rem; }
  .opt-divider { display: none; }
  .opt-pills { flex-wrap: wrap; }
  .locator-map, .locator-map-shell { min-height: 420px; }
  .map-footer-bar { flex-direction: column; align-items: flex-start; gap: .65rem; }
  .map-open-link { width: 100%; justify-content: center; }
}

.city-selector {
  margin-bottom: 2rem;
}

.city-select-wrap {
  position: relative;
  max-width: 300px;
}

.city-select-wrap svg {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--gray-muted);
  pointer-events: none;
}

.city-select {
  font-family: inherit;
  width: 100%;
  padding: 0.8rem 2.5rem 0.8rem 3rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  color: var(--white);
  font-size: 0.95rem;
  outline: none;
  appearance: none;
  cursor: pointer;
  transition: 0.3s ease;
}

.city-select:focus {
  border-color: var(--blue);
  background: rgba(255, 255, 255, 0.1);
}

.city-select option {
  color: var(--navy);
  background: var(--white);
}

.city-select-wrap::after {
  content: "▼";
  position: absolute;
  right: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.5);
  pointer-events: none;
}

.quick-cities {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.quick-city {
  font-family: inherit;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.8);
  padding: 0.4rem 1rem;
  border-radius: 100px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: 0.3s ease;
}

.quick-city:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.4);
}

.quick-city.active {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}

/* ===== CONTACTS ===== */
.contacts { background: var(--white); }
.contacts-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 3rem; align-items: start; }
.team-cards { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 2rem; }
.team-card {
  background: var(--gray-bg); border: 1px solid var(--gray-border);
  border-radius: var(--radius-lg); padding: 1.5rem; display: flex; gap: 1.25rem; align-items: center;
}
.avatar {
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  display: grid; place-items: center; font-size: 1.1rem; font-weight: 800; color: var(--white); flex-shrink: 0;
}
.team-info h4 { font-size: 1rem; margin-bottom: .2rem; }
.team-role { font-size: .8rem; color: var(--text-light); margin-bottom: .6rem; }
.team-contacts-mini { display: flex; flex-direction: column; gap: .25rem; }
.team-contact-item { display: flex; align-items: center; gap: .5rem; font-size: .85rem; color: var(--blue); }
.team-contact-item svg { width: 13px; height: 13px; }
.office-info { background: var(--gray-bg); border: 1px solid var(--gray-border); border-radius: var(--radius-lg); padding: 1.5rem; }
.office-info h4 { font-size: 1rem; margin-bottom: 1rem; }
.office-rows { display: flex; flex-direction: column; gap: .75rem; }
.office-row { display: flex; align-items: flex-start; gap: .75rem; font-size: .9rem; }
.office-row-icon { width: 32px; height: 32px; background: var(--white); border-radius: 8px; display: grid; place-items: center; flex-shrink: 0; border: 1px solid var(--gray-border); font-size: .9rem; }
.office-row-body strong { display: block; font-size: .82rem; color: var(--text); }
.office-row-body span { font-size: .82rem; color: var(--text-light); }
.office-link { color: var(--blue); text-decoration: underline; }
.office-note { margin-top: 1rem; font-size: .8rem; color: var(--text-light); line-height: 1.6; }
.contact-form-card { background: var(--gray-bg); border: 1px solid var(--gray-border); border-radius: var(--radius-lg); padding: 2rem; }
.contact-form-card h3 { font-size: 1.2rem; margin-bottom: .5rem; }
.contact-form-card p { font-size: .88rem; color: var(--text-light); margin-bottom: 1.5rem; }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: .4rem; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: .7rem 1rem; border: 1.5px solid var(--gray-border);
  border-radius: 8px; font-size: .9rem; font-family: inherit; color: var(--text); background: var(--white); outline: none; transition: var(--transition);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(21,101,216,.1); }
.form-group textarea { resize: vertical; min-height: 100px; }
.form-note { font-size: .78rem; color: var(--text-light); margin-top: .5rem; }
.form-check-group { margin-bottom: .75rem; }
.form-check-label { display: flex; align-items: flex-start; gap: .6rem; font-size: .84rem; color: var(--text-light); cursor: pointer; line-height: 1.5; }
.form-check-label input[type="checkbox"] { margin-top: .15rem; flex-shrink: 0; accent-color: var(--blue); width: 15px; height: 15px; cursor: pointer; }
.privacy-link { color: var(--blue); text-decoration: underline; }
.form-status { min-height: 1.25rem; margin-top: .8rem; font-size: .82rem; font-weight: 600; color: var(--navy-mid); }
.form-status.is-success { color: #12724f; }
.form-status.is-error { color: #b43c27; }
.request-preview {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid rgba(21,101,216,.18);
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f4f8ff 100%);
}
.request-preview-head {
  display: flex;
  justify-content: space-between;
  gap: .75rem;
  flex-wrap: wrap;
  margin-bottom: .5rem;
  font-size: .85rem;
}
.request-preview-head strong { color: var(--navy); }
.request-preview-head span { color: var(--text-light); }
.request-preview-subject {
  font-size: .83rem;
  color: var(--navy-mid);
  font-weight: 700;
  margin-bottom: .65rem;
}
.request-preview textarea {
  width: 100%;
  min-height: 180px;
  padding: .9rem 1rem;
  border: 1px solid var(--gray-border);
  border-radius: 10px;
  resize: vertical;
  background: #fff;
  color: var(--text);
  font: inherit;
  line-height: 1.6;
}
.request-preview-actions { margin-top: .85rem; }
.contact-actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1rem; }
.contact-action-secondary {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .65rem .95rem; border-radius: 8px; border: 1px solid var(--gray-border);
  background: var(--white); color: var(--navy); font-size: .85rem; font-weight: 600;
}
.contact-action-secondary:hover { border-color: var(--blue); color: var(--blue); }

/* ===== BRANDS STRIP ===== */
.brands-strip {
  background: var(--white);
  border-top: 1px solid var(--gray-border);
  border-bottom: 1px solid var(--gray-border);
  padding: 0;
  overflow: hidden;
}
.brands-strip img {
  width: 100%; max-width: 900px; display: block; margin: 0 auto;
  object-fit: contain;
}

/* ===== PRODUCTION SECTION ===== */
.production { background: var(--navy); color: var(--white); padding: 80px 0; }
.production-inner { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.production h2 { color: var(--white); margin-bottom: .75rem; }
.production > .production-inner > p { color: rgba(255,255,255,.6); margin-bottom: 2.5rem; font-size: 1rem; }
.production-grid {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 1.5rem; margin-bottom: 1.5rem;
}
.prod-photo {
  border-radius: var(--radius-lg); overflow: hidden; position: relative;
}
.prod-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.prod-photo:hover img { transform: scale(1.04); }
.prod-photo-tall { grid-row: span 2; }
.prod-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(11,29,58,.85));
  padding: 1.5rem 1.25rem .9rem;
  font-size: .82rem; color: rgba(255,255,255,.8); font-weight: 500;
}

/* ===== CITY SELECTOR BAR ===== */
.city-selector-bar {
  display: flex; align-items: center; gap: .75rem;
  flex-wrap: wrap; margin-bottom: 1.25rem;
}
.city-select {
  padding: .5rem 1rem; border-radius: 8px;
  border: 1.5px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.1); color: var(--white);
  font-size: .88rem; font-family: inherit; font-weight: 500;
  outline: none; cursor: pointer; transition: var(--transition);
  appearance: none; padding-right: 2rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.6)' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .6rem center; background-size: 14px;
}
.city-select:focus { border-color: var(--orange); }
.city-select option { background: var(--navy); color: var(--white); }
.quick-cities { display: flex; gap: .35rem; flex-wrap: wrap; }
.quick-city {
  padding: .28rem .7rem; border-radius: 100px;
  font-size: .78rem; font-weight: 600; cursor: pointer;
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.07); color: rgba(255,255,255,.65);
  transition: var(--transition); font-family: inherit;
}
.quick-city:hover { border-color: rgba(255,255,255,.45); color: var(--white); }
.quick-city.active { background: var(--orange); border-color: var(--orange); color: var(--white); }

/* ===== FOOTER ===== */
footer { background: var(--navy); color: rgba(255,255,255,.65); padding: 3rem 0 2rem; }
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem; padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,.08); margin-bottom: 2rem; }
.footer-brand p { font-size: .85rem; line-height: 1.7; margin-top: 1rem; max-width: 280px; }
.footer-col h5 { font-size: .85rem; font-weight: 700; color: var(--white); letter-spacing: .05em; text-transform: uppercase; margin-bottom: 1rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: .5rem; }
.footer-col ul a { font-size: .85rem; color: rgba(255,255,255,.55); transition: var(--transition); }
.footer-col ul a:hover { color: var(--white); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; font-size: .8rem; flex-wrap: wrap; gap: .5rem; }
.footer-logo { display: flex; align-items: center; gap: .6rem; color: var(--white); margin-bottom: .75rem; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-visual { display: none; }
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .product-category { grid-template-columns: 1fr; gap: 2rem; }
  .product-category.reverse .product-info { order: 0; }
  .product-category.reverse .product-showcase { order: 0; }
  .contacts-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .locator-split { grid-template-columns: 1fr; height: auto; }
  .locator-sidebar { height: 360px; border-left: none; border-top: 3px solid var(--orange); }
}

@media (max-width: 768px) {
  section { padding: 60px 0; }
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .nav-links.open {
    display: flex; flex-direction: column; position: fixed;
    top: 68px; left: 0; right: 0; background: var(--navy);
    padding: 1rem; border-bottom: 1px solid rgba(255,255,255,.1); z-index: 99;
  }
  .hero { padding: 60px 0 50px; }
  .hero-stats { grid-template-columns: repeat(2,1fr); }
  .about-highlights { grid-template-columns: 1fr; }
  .epowertrain-grid { grid-template-columns: 1fr; }
  .locator-search-row { flex-direction: column; }
  .btn-locate { align-self: flex-start; }
  .locator-options { gap: .75rem; }
  .opt-divider { display: none; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .fulllist-grid { grid-template-columns: 1fr; }
}

/* ===== UTILITIES ===== */
.text-center { text-align: center; }
.text-center .section-sub { margin-left: auto; margin-right: auto; }
.hidden { display: none !important; }
.fade-up { opacity: 0; transform: translateY(24px); transition: opacity .5s ease, transform .5s ease; }
.fade-up.visible { opacity: 1; transform: none; }

/* ===== PRODUCT IMAGES ===== */
.product-img {
  width: 100%; border-radius: var(--radius-lg);
  object-fit: cover; display: block;
  margin-bottom: 1.25rem;
  max-height: 280px;
  background: #f0f0f0;
}
.product-img-contain {
  width: 100%; border-radius: var(--radius-lg);
  object-fit: contain; display: block;
  margin-bottom: 1.25rem;
  max-height: 260px;
  background: var(--gray-bg);
  padding: 1.5rem;
  border: 1px solid var(--gray-border);
}

/* ===== BRAND COMPATIBILITY STRIP ===== */
.brands-strip {
  background: var(--navy);
  padding: 0;
  overflow: hidden;
}
.brands-strip-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 1.5rem;
  display: grid; grid-template-columns: 300px 1fr;
  align-items: stretch; min-height: 220px;
}
.brands-strip-label {
  display: flex; flex-direction: column; justify-content: center;
  padding: 2rem 2rem 2rem 0; border-right: 1px solid rgba(255,255,255,.1);
}
.brands-strip-label .section-label { color: #ff9a6c; }
.brands-strip-label h3 { color: var(--white); font-size: 1.3rem; margin-bottom: .5rem; }
.brands-strip-label p { color: rgba(255,255,255,.55); font-size: .85rem; line-height: 1.6; }
.brands-photo-wrap {
  overflow: hidden; position: relative;
}
.brands-photo-wrap img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  display: block;
  filter: contrast(1.05) brightness(.95);
}

/* ===== MANUFACTURING SECTION ===== */
.manufacturing { background: var(--gray-bg); padding: 80px 0; }
.manufacturing-grid {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem; align-items: center;
}
.manufacturing-photos {
  display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 200px 200px; gap: .75rem;
}
.mfg-photo {
  border-radius: var(--radius); overflow: hidden; position: relative;
}
.mfg-photo img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .4s ease;
}
.mfg-photo:hover img { transform: scale(1.04); }
.mfg-photo.tall { grid-row: span 2; }
.mfg-stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2rem;
}
.mfg-stat {
  background: var(--white); border: 1px solid var(--gray-border);
  border-radius: var(--radius); padding: 1.25rem; text-align: center;
  border-top: 3px solid var(--orange);
}
.mfg-stat-value { font-size: 2rem; font-weight: 800; color: var(--navy); line-height: 1; margin-bottom: .25rem; }
.mfg-stat-label { font-size: .78rem; color: var(--text-light); }
