/* Alpha Pacific Electric Co., Inc. — site styles */
:root {
  --red: #DA1F3A;
  --red-dark: #B5152D;
  --red-tint: #FDEEF0;
  --warm: #FBF4F5;
  --ink: #1A1A1D;
  --text: #3D3D42;
  --muted: #6B6B72;
  --line: #E6E6EA;
  --bg-soft: #F6F6F7;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--text); background: #fff; line-height: 1.6; font-size: 16px; }
h1, h2, h3, h4, h5 { font-family: Barlow, Inter, sans-serif; color: var(--ink); line-height: 1.15; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* Shared bits */
.eyebrow { font-family: Barlow, sans-serif; font-weight: 700; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--red); display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 28px; height: 3px; background: var(--red); }
.btn { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; padding: 14px 26px; border-radius: 4px; transition: background .2s, color .2s, border-color .2s; border: 2px solid transparent; cursor: pointer; font-family: inherit; white-space: nowrap; }
.btn-red { background: var(--red); color: #fff; } .btn-red:hover { background: var(--red-dark); }
.btn-ghost { border-color: #CFCFD6; color: var(--ink); background: #fff; } .btn-ghost:hover { border-color: var(--red); color: var(--red); }
.btn-outline { border-color: var(--red); color: var(--red); } .btn-outline:hover { background: var(--red); color: #fff; }
.ph { background: repeating-linear-gradient(45deg, #EDEDEF 0 12px, #F3F3F5 12px 24px); border: 1px solid var(--line); border-radius: 6px; display: grid; place-items: center; color: var(--muted); font-size: 13px; text-align: center; padding: 16px; }
.ph.dark { background: repeating-linear-gradient(45deg, #EDEDEF 0 12px, #F3F3F5 12px 24px); }
/* Real photos: fill the placeholder's shape and crop neatly */
.has-img { position: relative; overflow: hidden; display: block !important; padding: 0 !important; border: 0 !important; background: var(--bg-soft) !important; }
.has-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.person .photo.has-img img { object-position: center 25%; } /* keep faces in frame */
.logo-row .has-img { background: #fff !important; border: 1px solid var(--line) !important; }
.logo-row .has-img img { object-fit: contain; padding: 10px 14px; }
section.block { padding: 100px 0; }
.soft { background: var(--bg-soft); }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: 48px; flex-wrap: wrap; }
.sec-head h2 { font-size: clamp(30px, 3.6vw, 42px); font-weight: 700; margin-top: 12px; max-width: 640px; }
.sec-head p { max-width: 440px; color: var(--muted); }
.review { background: #FFF8DB; color: #5A4A00; font-size: 13px; text-align: center; padding: 8px 16px; border-bottom: 1px solid #F0E3A0; }

/* Top bar */
.topbar { background: var(--red); color: #fff; font-size: 13px; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 16px; padding-top: 9px; padding-bottom: 9px; flex-wrap: wrap; }
.topbar span { display: inline-flex; align-items: center; gap: 6px; margin-right: 22px; }
.topbar svg { width: 14px; height: 14px; color: #fff; opacity: .9; }

/* Header */
header.site { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; height: 80px; gap: 24px; position: relative; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo-mark { width: 48px; height: 48px; background: var(--red); color: #fff; font-family: Barlow; font-weight: 800; font-size: 17px; display: grid; place-items: center; border-radius: 4px; flex: none; }
.logo-text strong { display: block; font-family: Barlow; font-weight: 700; font-size: 18px; color: var(--ink); line-height: 1.1; white-space: nowrap; }
.logo-text small { font-size: 11px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
nav.main { display: flex; gap: 28px; font-weight: 500; font-size: 15px; color: var(--ink); }
nav.main a { position: relative; padding: 6px 0; white-space: nowrap; }
nav.main a.active, nav.main a:hover { color: var(--red); }
nav.main a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--red); }
nav.main .nav-cta { display: none; }
.menu-btn { display: none; background: none; border: 0; cursor: pointer; padding: 6px; }
.menu-btn svg { width: 28px; height: 28px; }

/* Home hero */
.hero { background: radial-gradient(900px 520px at 88% 10%, rgba(218,31,58,.12), transparent 60%), linear-gradient(180deg, #FFFFFF 0%, var(--warm) 100%); color: var(--ink); position: relative; overflow: hidden; }
.hero::before, .page-hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(26,26,29,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(26,26,29,.045) 1px, transparent 1px); -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%); mask-image: linear-gradient(90deg, transparent, #000 60%); background-size: 48px 48px; }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; padding-top: 88px; padding-bottom: 96px; }
.hero h1 { color: var(--ink); font-size: clamp(40px, 5.4vw, 64px); font-weight: 800; margin: 18px 0 22px; letter-spacing: -.01em; }
.hero h1 em, .page-hero h1 em { font-style: normal; color: var(--red); }
.hero p.lead { font-size: 18px; color: var(--text); max-width: 540px; margin-bottom: 34px; }
.hero .ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-visual { position: relative; }
.hero-visual .ph { aspect-ratio: 4/4.4; }
.hero-badge { position: absolute; left: -28px; bottom: 36px; background: var(--red); color: #fff; padding: 20px 24px; border-radius: 4px; box-shadow: 0 18px 36px rgba(218,31,58,.28); }
.hero-badge b { font-family: Barlow; font-size: 44px; font-weight: 800; line-height: 1; display: block; }
.hero-badge span { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; opacity: .9; }

/* Inner page hero */
.page-hero { background: radial-gradient(800px 400px at 92% 0%, rgba(218,31,58,.12), transparent 60%), linear-gradient(180deg, #FFFFFF 0%, var(--warm) 100%); color: var(--ink); position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.page-hero .wrap { position: relative; padding-top: 64px; padding-bottom: 72px; }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 22px; }
.crumbs a:hover { color: var(--red); }
.crumbs span { margin: 0 8px; }
.page-hero h1 { color: var(--ink); font-size: clamp(36px, 4.6vw, 54px); font-weight: 800; margin: 14px 0 16px; max-width: 760px; }
.page-hero p { color: var(--text); font-size: 18px; max-width: 640px; }

/* Stats */
.stats { background: #fff; position: relative; z-index: 2; }
.stats .grid { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: -52px; background: #fff; box-shadow: 0 18px 50px rgba(20,20,30,.12); border-radius: 6px; overflow: hidden; }
.stat { padding: 30px 28px; border-right: 1px solid var(--line); } .stat:last-child { border-right: 0; }
.stat b { font-family: Barlow; font-weight: 800; font-size: 40px; color: var(--red); line-height: 1; display: block; }
.stat span { font-size: 14px; color: var(--muted); }

/* Cards */
.products { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 30px 26px; position: relative; transition: border-color .2s, box-shadow .2s, transform .2s; display: flex; flex-direction: column; }
a.card:hover { border-color: var(--red); box-shadow: 0 14px 34px rgba(218,31,58,.10); transform: translateY(-3px); }
.ico { width: 54px; height: 54px; border-radius: 4px; background: var(--red-tint); color: var(--red); display: grid; place-items: center; margin-bottom: 22px; flex: none; }
.ico svg { width: 28px; height: 28px; }
.card h3 { font-size: 21px; font-weight: 700; margin-bottom: 8px; }
.card p { font-size: 14.5px; color: var(--muted); flex: 1; }
.card .more { margin-top: 18px; font-size: 14px; font-weight: 600; color: var(--red); }
.card.feature { background: var(--red); border-color: var(--red); color: #fff; }
.card.feature h3, .card.feature .more { color: #fff; }
.card.feature p { color: rgba(255,255,255,.85); }
.card.feature .ico { background: rgba(255,255,255,.15); color: #fff; }
.tag { position: absolute; top: 18px; right: 18px; background: #fff; color: var(--red); font-size: 11px; font-weight: 700; letter-spacing: .08em; padding: 4px 9px; border-radius: 3px; text-transform: uppercase; }
.tag.red { background: var(--red); color: #fff; }

/* EV band (home) */
.ev { background: var(--warm); color: var(--ink); position: relative; overflow: hidden; }
.ev::after { content: ""; position: absolute; right: -160px; top: -160px; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(218,31,58,.12), transparent 70%); }
.ev .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.ev h2 { color: var(--ink); font-size: clamp(32px, 4vw, 48px); font-weight: 800; margin: 14px 0 20px; }
.ev p { color: var(--text); margin-bottom: 30px; font-size: 17px; }
.ev .ph { aspect-ratio: 16/11; margin-top: 28px; }
.steps { display: grid; gap: 14px; }
.step { display: grid; grid-template-columns: 56px 1fr; gap: 18px; background: #fff; border: 1px solid var(--line); box-shadow: 0 6px 18px rgba(26,26,29,.04); border-radius: 6px; padding: 20px 22px; }
.step .n { width: 56px; height: 56px; border-radius: 4px; background: var(--red); display: grid; place-items: center; font-family: Barlow; font-weight: 800; font-size: 22px; color: #fff; }
.step h4 { color: var(--ink); font-size: 19px; margin-bottom: 4px; }
.step p { margin: 0; font-size: 14.5px; color: var(--muted); }

/* Why (home) */
.why { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: center; }
.why .ph { aspect-ratio: 4/4.2; }
.why-img { position: relative; }
.why-img .quote { position: absolute; right: -24px; bottom: -24px; background: var(--red); color: #fff; padding: 26px 28px; max-width: 300px; border-radius: 4px; font-family: Barlow; font-size: 20px; font-weight: 600; line-height: 1.3; }
.pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 30px 34px; margin-top: 34px; }
.pillar { border-top: 3px solid var(--red); padding-top: 18px; }
.pillar h4 { font-size: 20px; margin-bottom: 6px; }
.pillar p { font-size: 14.5px; color: var(--muted); }
.why h2 { font-size: clamp(30px, 3.6vw, 42px); margin: 12px 0 16px; }

/* Projects */
.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.proj { background: #fff; border-radius: 6px; overflow: hidden; border: 1px solid var(--line); }
.proj .ph { aspect-ratio: 16/10; border: 0; border-radius: 0; }
.ph.tile { background: radial-gradient(400px 220px at 85% 0%, rgba(218,31,58,.14), transparent 65%), linear-gradient(135deg, #FFFFFF, var(--red-tint)); border: 0; border-bottom: 1px solid var(--line); color: var(--ink); display: grid; place-content: center; justify-items: center; gap: 14px; }
.tile-ico { width: 64px; height: 64px; border-radius: 50%; background: var(--red); display: grid; place-items: center; }
.tile-ico svg { width: 32px; height: 32px; color: #fff; }
.tile-label { font-family: Barlow, sans-serif; font-weight: 700; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.logo-row.partners { grid-template-columns: repeat(3, 1fr); }
.logo-row.partners div { height: 96px; border: 1px solid var(--line); background: #fff; font-family: Barlow, sans-serif; font-weight: 700; font-size: 17px; color: var(--ink); text-align: center; padding: 12px 18px; line-height: 1.25; }
.proj .body { padding: 24px 24px 26px; }
.meta { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--red); }
.proj h3 { font-size: 21px; margin: 8px 0; }
.proj p { font-size: 14.5px; color: var(--muted); }

/* Logos */
.logos { padding: 56px 0; border-bottom: 1px solid var(--line); }
.logos p { text-align: center; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 26px; font-weight: 600; }
.logo-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.logo-row div { height: 56px; border: 1px dashed #D5D5DA; border-radius: 4px; display: grid; place-items: center; font-size: 12px; color: #A0A0A8; }

/* Products page: category rows */
.cat { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; padding: 72px 0; border-bottom: 1px solid var(--line); }
.cat:last-child { border-bottom: 0; }
.cat.flip .cat-media { order: 2; }
.cat .ph { aspect-ratio: 4/3; }
.cat h2 { font-size: clamp(28px, 3.2vw, 38px); margin: 12px 0 14px; }
.cat p { color: var(--muted); margin-bottom: 22px; }
.chips { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; margin-bottom: 28px; }
.chips li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--ink); font-weight: 500; }
.chips li::before { content: ""; width: 8px; height: 8px; background: var(--red); border-radius: 2px; margin-top: 8px; flex: none; }
.jump { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 30px; }
.jump a { font-size: 14px; font-weight: 600; color: var(--ink); background: #fff; border: 1px solid var(--line); padding: 8px 16px; border-radius: 40px; }
.jump a:hover { background: var(--red); border-color: var(--red); color: #fff; }

/* EV page */
.models { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.model { border: 1px solid var(--line); border-radius: 6px; overflow: hidden; display: flex; flex-direction: column; background: #fff; }
.model .ph { aspect-ratio: 4/3.2; border: 0; border-radius: 0; }
.model .body { padding: 26px; display: flex; flex-direction: column; flex: 1; }
.model .kw { font-family: Barlow; font-weight: 800; font-size: 44px; color: var(--red); line-height: 1; }
.model .kw small { font-size: 18px; color: var(--muted); font-weight: 600; margin-left: 4px; }
.model h3 { font-size: 22px; margin: 8px 0 10px; }
.model p { font-size: 14.5px; color: var(--muted); margin-bottom: 18px; }
.spec { border-top: 1px solid var(--line); margin-bottom: 22px; }
.spec div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.spec dt { color: var(--muted); }
.spec dd { color: var(--ink); font-weight: 600; text-align: right; }
.model .btn { margin-top: auto; justify-content: center; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
table.compare { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 640px; }
table.compare th, table.compare td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--line); }
table.compare thead th { background: var(--red); color: #fff; font-family: Barlow; font-size: 16px; letter-spacing: .02em; }
table.compare tbody th { color: var(--muted); font-weight: 500; width: 26%; }
table.compare tbody tr:last-child td, table.compare tbody tr:last-child th { border-bottom: 0; }
.note { display: grid; grid-template-columns: 54px 1fr; gap: 20px; background: var(--red-tint); border-left: 4px solid var(--red); border-radius: 4px; padding: 24px 26px; margin-top: 32px; }
.note .ico { margin: 0; background: #fff; }
.note h4 { font-size: 19px; margin-bottom: 6px; }
.note p { font-size: 15px; color: var(--text); }

/* Services page */
.services { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.svc { border: 1px solid var(--line); border-radius: 6px; padding: 36px 34px; background: #fff; display: grid; grid-template-columns: 54px 1fr; gap: 22px; }
.svc .ico { margin: 0; }
.svc .num { font-family: Barlow; font-weight: 700; font-size: 13px; letter-spacing: .12em; color: var(--red); }
.svc h3 { font-size: 23px; margin: 4px 0 10px; }
.svc p { color: var(--muted); font-size: 15px; margin-bottom: 16px; }
.svc ul { list-style: none; display: grid; gap: 8px; }
.svc li { font-size: 14.5px; color: var(--ink); display: flex; gap: 10px; }
.svc li::before { content: "✓"; color: var(--red); font-weight: 700; }
.quals { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: center; }
.quals h2 { font-size: clamp(30px, 3.6vw, 42px); margin: 12px 0 16px; }
.quals p { color: var(--muted); }
.qual-list { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.qual { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 22px; }
.qual b { display: block; font-family: Barlow; font-size: 18px; color: var(--ink); margin-bottom: 4px; }
.qual span { font-size: 14px; color: var(--muted); }

/* Team page */
.mission { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.mission blockquote { font-family: Barlow; font-size: clamp(26px, 3vw, 36px); font-weight: 600; color: var(--ink); line-height: 1.25; border-left: 4px solid var(--red); padding-left: 28px; }
.mission p { color: var(--muted); font-size: 17px; }
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.person { background: #fff; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; display: flex; flex-direction: column; }
.person .photo { aspect-ratio: 1/1; background: linear-gradient(160deg, #FFFFFF, var(--red-tint)); display: grid; place-items: center; position: relative; }
.person .photo span { width: 120px; height: 120px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; font-family: Barlow; font-weight: 800; font-size: 40px; }
.person .photo small { position: absolute; bottom: 14px; font-size: 12px; color: var(--muted); }
.person .body { padding: 26px; }
.person .role { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--red); }
.person h3 { font-size: 24px; margin: 6px 0 4px; }
.person .cred { font-size: 14px; color: var(--ink); font-weight: 600; margin-bottom: 12px; }
.person p { font-size: 14.5px; color: var(--muted); }

/* Contact page */
.contact-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 32px; align-items: start; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 40px; box-shadow: 0 18px 50px rgba(20,20,30,.06); }
.form-card h2 { font-size: 30px; margin-bottom: 8px; }
.form-card > p { color: var(--muted); margin-bottom: 28px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 600; color: var(--ink); }
.field label i { color: var(--red); font-style: normal; }
.field input, .field select, .field textarea { font: inherit; font-size: 15px; padding: 13px 14px; border: 1px solid #D5D5DA; border-radius: 4px; background: #fff; color: var(--ink); width: 100%; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--red); outline-offset: -1px; border-color: var(--red); }
.form-card .btn { margin-top: 24px; }
.form-ok { display: none; margin-top: 18px; padding: 14px 16px; background: #EAF7EE; color: #1E6B35; border-radius: 4px; font-size: 14.5px; }
.info-card { background: linear-gradient(150deg, var(--red) 0%, var(--red-dark) 100%); color: rgba(255,255,255,.9); border-radius: 6px; padding: 36px; }
.info-card h3 { color: #fff; font-size: 24px; margin-bottom: 24px; }
.info-row { display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.18); }
.info-row:last-of-type { border-bottom: 0; }
.info-row .ci { width: 44px; height: 44px; border-radius: 4px; background: rgba(255,255,255,.16); color: #fff; display: grid; place-items: center; }
.info-row .ci svg { width: 20px; height: 20px; }
.info-row small { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.72); }
.info-row b { color: #fff; font-weight: 600; word-break: break-word; }
.map { margin-top: 32px; border-radius: 6px; overflow: hidden; border: 1px solid var(--line); height: 380px; }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* CTA */
.cta { background: linear-gradient(120deg, var(--red) 0%, var(--red-dark) 100%); color: #fff; }
.cta .wrap { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center; padding-top: 80px; padding-bottom: 80px; }
.cta h2 { color: #fff; font-size: clamp(30px, 3.8vw, 44px); font-weight: 800; margin-bottom: 14px; }
.cta p { color: rgba(255,255,255,.88); font-size: 17px; }
.cta-box { background: #fff; color: var(--text); border-radius: 6px; padding: 28px; }
.cta-box a.line { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cta-box .ci { width: 40px; height: 40px; border-radius: 4px; background: var(--red-tint); color: var(--red); display: grid; place-items: center; flex: none; }
.cta-box .ci svg { width: 20px; height: 20px; }
.cta-box small { display: block; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.cta-box b { color: var(--ink); font-weight: 600; word-break: break-word; }
.cta-box .btn { width: 100%; justify-content: center; margin-top: 18px; }

/* Footer */
footer { background: var(--bg-soft); color: var(--muted); font-size: 14.5px; border-top: 4px solid var(--red); }
footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding: 72px 0 48px; }
footer h5 { color: var(--ink); font-size: 16px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 18px; }
footer ul { list-style: none; display: grid; gap: 10px; }
footer a:hover { color: var(--red); }
footer .logo-text strong { color: var(--ink); }
footer .about { margin-top: 18px; max-width: 320px; }
footer .bottom { border-top: 1px solid var(--line); padding: 20px 0; display: flex; justify-content: space-between; font-size: 13px; flex-wrap: wrap; gap: 8px; }

/* Responsive */
@media (max-width: 1080px) {
  header.site .head-cta { display: none; }
  .menu-btn { display: block; }
  nav.main { display: none; position: absolute; top: 80px; left: 0; right: 0; flex-direction: column; gap: 0; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px rgba(0,0,0,.08); padding: 8px 24px 20px; }
  nav.main.open { display: flex; }
  nav.main a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  nav.main a.active::after { display: none; }
  nav.main .nav-cta { display: flex; justify-content: center; margin-top: 16px; border: 0; color: #fff; }
  nav.main .nav-cta:hover { color: #fff; }
}
@media (max-width: 1024px) {
  .logo-row { grid-template-columns: repeat(3, 1fr); }
  footer .cols { grid-template-columns: 1fr 1fr; }
  .models, .team { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .hero .wrap, .ev .wrap, .why, .cta .wrap, .cat, .quals, .mission, .contact-grid, .services { grid-template-columns: 1fr; }
  .cat.flip .cat-media { order: 0; }
  .cat { gap: 32px; padding: 56px 0; }
  .hero .wrap { padding-top: 64px; padding-bottom: 96px; gap: 40px; }
  .hero-badge { left: 16px; }
  .stats .grid { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .projects { grid-template-columns: 1fr 1fr; }
  .why-img .quote { right: 12px; }
  section.block { padding: 72px 0; }
  .mission { gap: 32px; }
}
@media (max-width: 640px) {
  .models, .team, .qual-list, .projects { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  nav.main { padding: 8px 16px 20px; }
  .products, .pillars, .chips, .fields { grid-template-columns: 1fr; }
  .topbar .hide-sm { display: none; }
  .logo-text small { display: none; }
  .logo-text strong { font-size: 14px; white-space: normal; }
  footer .cols { grid-template-columns: 1fr; }
  .logo-row.partners { grid-template-columns: 1fr; }
  .stat { padding: 22px 18px; }
  .stat b { font-size: 32px; }
  .svc { grid-template-columns: 1fr; padding: 28px 22px; }
  .form-card, .info-card { padding: 26px 20px; }
  .note { grid-template-columns: 1fr; }
}

/* Product galleries */
.gallery { display: grid; gap: 10px; min-width: 0; }
.g-main { position: relative; display: block; width: 100%; aspect-ratio: 4/3; border: 0; padding: 0; border-radius: 6px; overflow: hidden; background: var(--bg-soft); cursor: zoom-in; font: inherit; }
.g-main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: transform .5s ease; } /* whole photo, never cropped */
.g-main:hover img { transform: scale(1.03); }
.gallery.is-empty .g-main { cursor: default; display: grid; }
.gallery.is-empty .g-main small { display: block; margin-top: 6px; color: var(--red); font-weight: 600; }
.g-count { position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px; background: rgba(26,26,29,.72); color: #fff; font-size: 12.5px; font-weight: 600; padding: 6px 10px; border-radius: 4px; }
.g-count svg { width: 15px; height: 15px; }
.g-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.gallery.is-empty .g-thumbs { grid-template-columns: repeat(4, 1fr); }
.g-thumb { position: relative; aspect-ratio: 1; border: 2px solid transparent; padding: 0; border-radius: 4px; overflow: hidden; background: var(--bg-soft); cursor: pointer; transition: border-color .2s, opacity .2s; }
.g-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
button.g-thumb:not(.is-active) { opacity: .75; }
button.g-thumb:hover { opacity: 1; }
.g-thumb.is-active { border-color: var(--red); }
.g-thumbs .ph { padding: 0; cursor: default; }
.g-more { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(26,26,29,.6); color: #fff; font-family: Barlow, sans-serif; font-weight: 700; font-size: 20px; }
.g-caption { font-size: 13.5px; color: var(--muted); }
.g-main:focus-visible, .g-thumb:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }

/* Full-screen photo viewer */
.lb { position: fixed; inset: 0; z-index: 100; background: rgba(18,18,20,.94); display: grid; grid-template-rows: 1fr auto; justify-items: center; align-items: center; padding: 64px 80px 20px; }
.lb[hidden] { display: none; }
.lb img { max-width: 100%; max-height: calc(100vh - 150px); object-fit: contain; border-radius: 4px; user-select: none; }
.lb-bar { color: #fff; font-size: 14px; display: flex; gap: 18px; align-items: baseline; padding-top: 14px; text-align: center; }
.lb-bar .lb-num { font-family: Barlow, sans-serif; font-weight: 700; letter-spacing: .06em; color: rgba(255,255,255,.7); }
.lb button { position: absolute; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; cursor: pointer; transition: background .2s; }
.lb button:hover { background: var(--red); }
.lb button:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.lb button svg { width: 22px; height: 22px; }
.lb-close { top: 14px; right: 14px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) {
  .lb { padding: 64px 12px 20px; }
  .lb-prev, .lb-next { top: auto; bottom: 14px; transform: none; width: 42px; height: 42px; }
  .lb-bar { padding-bottom: 52px; }
  .g-thumbs { gap: 6px; }
}
@media (prefers-reduced-motion: reduce) { .g-main img { transition: none; } }
.lb button[hidden] { display: none; }

/* Products page: Cables section with one gallery per cable type */
.cables-block { padding: 72px 0; }
.cables-head { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: end; margin-bottom: 32px; }
.cables-head h2 { font-size: clamp(28px, 3.2vw, 38px); margin-top: 12px; }
.cables-head p { color: var(--muted); }
.cable-types { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.cable-card { border: 1px solid var(--line); border-radius: 6px; padding: 16px; background: #fff; display: grid; gap: 16px; align-content: start; min-width: 0; }
.cable-card .g-main { aspect-ratio: 16/10; }
.cable-body { padding: 0 6px 6px; }
.cable-body h3 { font-size: 22px; margin-bottom: 6px; }
.cable-body p { font-size: 14.5px; color: var(--muted); }
.cables-cta { margin-top: 32px; }
@media (max-width: 860px) { .cables-head { grid-template-columns: 1fr; gap: 14px; } .cables-block { padding: 56px 0; } }
@media (max-width: 640px) { .cable-types { grid-template-columns: 1fr; } }

/* Five product cards: EV card widens on smaller screens so rows fill evenly */
.products .card { padding: 28px 22px; }
@media (max-width: 1100px) { .products { grid-template-columns: repeat(3, 1fr); } .products .card.feature { grid-column: span 2; } }
@media (max-width: 860px) { .products { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .products { grid-template-columns: 1fr; } .products .card.feature { grid-column: auto; } }
.cables-block { border-bottom: 1px solid var(--line); }

/* "Why APEC" without a photo: intro + quote on the left, four reasons on the right */
.why.no-photo { grid-template-columns: 1fr 1fr; align-items: center; }
.why.no-photo .pillars { margin-top: 0; }
.why-quote { margin-top: 28px; border-left: 4px solid var(--red); padding: 4px 0 4px 20px; font-family: Barlow, sans-serif; font-size: 21px; font-weight: 600; line-height: 1.3; color: var(--ink); }
@media (max-width: 860px) { .why.no-photo .pillars { margin-top: 8px; } }

/* Services page: three service cards side by side */
.services { grid-template-columns: repeat(3, 1fr); }
.services .svc { grid-template-columns: 1fr; padding: 32px 28px; }
@media (max-width: 1024px) { .services { grid-template-columns: 1fr; } .services .svc { grid-template-columns: 54px 1fr; } }
@media (max-width: 560px) { .services .svc { grid-template-columns: 1fr; } }

/* Contact page: call / email options instead of a form */
.contact-options .btn { margin-top: 0; }
.reach { display: grid; gap: 14px; margin: 4px 0 30px; }
.reach-item { display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: 16px; border: 1px solid var(--line); border-radius: 6px; padding: 18px 20px; background: #fff; transition: border-color .2s, box-shadow .2s; }
a.reach-item:hover { border-color: var(--red); box-shadow: 0 10px 26px rgba(218,31,58,.08); }
.reach-item .ci { width: 52px; height: 52px; border-radius: 4px; background: var(--red-tint); color: var(--red); display: grid; place-items: center; }
.reach-item .ci svg { width: 24px; height: 24px; }
.reach-text { min-width: 0; }
.reach-text small { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.reach-text b { display: block; font-family: Barlow, sans-serif; font-size: 22px; color: var(--ink); word-break: break-word; line-height: 1.25; }
.reach-text em { display: block; font-style: normal; font-size: 13.5px; color: var(--muted); }
.reach-actions { display: flex; gap: 8px; }
.copy-email.copied { background: var(--red); color: #fff; }
.include h3 { font-size: 18px; margin-bottom: 10px; }
.include ul { list-style: none; display: grid; gap: 8px; }
.include li { display: flex; gap: 10px; font-size: 15px; color: var(--text); }
.include li::before { content: "✓"; color: var(--red); font-weight: 700; }
@media (max-width: 640px) {
  .reach-item { grid-template-columns: 52px 1fr; }
  .reach-item > .btn, .reach-actions { grid-column: 1 / -1; }
  .reach-item > .btn, .reach-actions .btn { justify-content: center; }
  .reach-actions .btn { flex: 1; }
}
/* Email option: buttons sit under the address so it never breaks mid-word */
.reach-email { grid-template-columns: 52px 1fr; }
.reach-email .reach-actions { grid-column: 2 / -1; }
.reach-text b { word-break: normal; overflow-wrap: anywhere; }
.reach-email .reach-text b { font-size: 20px; }
@media (max-width: 640px) {
  .reach-email .reach-actions { grid-column: 1 / -1; }
  .reach-email .reach-text b { font-size: 16px; }
  .reach-item { padding: 16px; gap: 12px; }
}
@media (max-width: 640px) {
  .reach-item, .reach-email { grid-template-columns: 1fr; }
  .reach-item .ci { display: none; }
}
