/* Apex Electric Services — site styles
   Dark navy base, cobalt accents, logo gold highlights. */
:root {
  --ink: #0b1526;
  --navy-950: #050b17;
  --navy-900: #081225;
  --navy-800: #0d1b35;
  --navy-700: #142648;
  --navy-600: #1c3260;
  --cobalt: #0047ab;
  --cobalt-600: #003c91;
  --cobalt-400: #2f6fe0;
  --cobalt-50: #eef3fb;
  --gold: #e3c23b;
  --gold-300: #f0d86e;
  --gold-600: #b99b1d;
  --text: #364359;
  --muted: #66728a;
  --line: #e3e8f0;
  --line-dark: rgba(255, 255, 255, .09);
  --on-dark: #aebbd2;
  --bg: #ffffff;
  --bg-soft: #f5f7fb;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(11, 21, 38, .06), 0 2px 8px rgba(11, 21, 38, .05);
  --shadow: 0 12px 32px -14px rgba(11, 21, 38, .28);
  --shadow-lg: 0 30px 60px -24px rgba(5, 11, 23, .55);
  --wrap: 1140px;
  --head: "Plus Jakarta Sans", "Helvetica Neue", Arial, sans-serif;
  --body: "Inter", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 16px/1.65 var(--body); -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--cobalt); text-underline-offset: 3px; }
a:hover { color: var(--cobalt-600); }
h1, h2, h3, h4 { font-family: var(--head); color: var(--ink); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.022em; }
h1 { font-size: clamp(2.25rem, 4.6vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 3vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--gold); color: var(--ink); padding: 10px 16px; border-radius: 8px; font-weight: 700; }
.skip:focus { left: 12px; }
.gold { color: var(--gold); }
.dark { background: var(--navy-900); color: var(--on-dark); }
.dark h1, .dark h2, .dark h3, .dark h4 { color: #fff; }

/* ---------- Eyebrow / buttons ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 14px;
  font: 700 .74rem/1 var(--head); letter-spacing: .16em; text-transform: uppercase; color: var(--cobalt);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--gold); }
.dark .eyebrow { color: var(--gold); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 22px; border-radius: 10px; border: 1.5px solid transparent; cursor: pointer;
  font: 700 .95rem/1 var(--head); letter-spacing: -.005em; text-decoration: none;
  transition: transform .15s, background .15s, box-shadow .15s, color .15s, border-color .15s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: var(--ink); box-shadow: 0 8px 22px -10px rgba(227, 194, 59, .75); }
.btn-gold:hover { background: var(--gold-300); color: var(--ink); }
.btn-cobalt { background: var(--cobalt); color: #fff; box-shadow: 0 8px 22px -12px rgba(0, 71, 171, .9); }
.btn-cobalt:hover { background: var(--cobalt-600); color: #fff; }
.btn-line { border-color: rgba(255, 255, 255, .22); color: #fff; background: rgba(255, 255, 255, .03); }
.btn-line:hover { border-color: rgba(255, 255, 255, .5); background: rgba(255, 255, 255, .07); color: #fff; }
.btn-outline { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-outline:hover { border-color: var(--cobalt); color: var(--cobalt); }

/* ---------- Top bar + header ---------- */
.topbar { background: var(--navy-950); color: #8796b3; font-size: .82rem; border-bottom: 1px solid var(--line-dark); }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; height: 38px; }
.topbar .l { display: flex; gap: 22px; align-items: center; }
.topbar .l span { display: inline-flex; align-items: center; gap: 7px; }
.topbar svg { width: 14px; height: 14px; color: var(--gold); }
.topbar a { color: #e6ecf7; text-decoration: none; font-weight: 600; }
.topbar a:hover { color: var(--gold); }
@media (max-width: 760px) { .topbar .hide-sm { display: none !important; } }

.header { position: sticky; top: 0; z-index: 50; background: rgba(8, 18, 37, .94); backdrop-filter: saturate(1.3) blur(12px); border-bottom: 1px solid var(--line-dark); transition: box-shadow .2s; }
.header.scrolled { box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .6); }
.header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 90px; }
.brand img { height: 65px; width: auto; }
.nav { display: flex; align-items: center; gap: 2px; }
.nav a { padding: 9px 14px; border-radius: 8px; color: #d5deee; text-decoration: none; font: 600 .93rem/1 var(--head); }
.nav a:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.nav a[aria-current="page"] { color: #fff; }
.nav a[aria-current="page"]::after { content: ""; display: block; height: 2px; background: var(--gold); margin-top: 6px; border-radius: 2px; }
.nav .btn { margin-left: 12px; padding: 12px 18px; color: var(--ink); }
.nav .btn:hover { background: var(--gold-300); color: var(--ink); }
.menu-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: #fff; }
.menu-toggle svg { width: 26px; height: 26px; }
@media (max-width: 940px) {
  .header .wrap { height: 74px; }
  .brand img { height: 54px; }
  .menu-toggle { display: block; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; display: none; flex-direction: column; align-items: stretch;
    background: var(--navy-900); border-bottom: 1px solid var(--line-dark); padding: 10px 20px 20px; box-shadow: var(--shadow-lg); }
  .nav.open { display: flex; }
  .nav a { padding: 14px 8px; font-size: 1rem; border-bottom: 1px solid var(--line-dark); border-radius: 0; }
  .nav a[aria-current="page"]::after { display: none; }
  .nav a[aria-current="page"] { color: var(--gold); }
  .nav .btn { margin: 14px 0 0; padding: 15px; border: 0; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--navy-900); color: var(--on-dark); isolation: isolate; }
.hero-bg {
  position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(100deg, rgba(5, 11, 23, .96) 0%, rgba(8, 18, 37, .88) 45%, rgba(8, 18, 37, .55) 100%),
    var(--photo, none) center / cover no-repeat,
    radial-gradient(800px 480px at 88% 10%, rgba(47, 111, 224, .38), transparent 62%),
    radial-gradient(600px 420px at 70% 110%, rgba(0, 71, 171, .35), transparent 60%),
    var(--navy-900);
}
.hero-grid {
  position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 56px 56px; mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 75%);
}
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; padding-top: 76px; padding-bottom: 84px; }
.hero h1 { color: #fff; margin-bottom: 18px; }
.hero .lede { font-size: 1.1rem; color: #c3cee2; max-width: 34em; margin-bottom: 28px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.trust { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 36px; padding-top: 26px; border-top: 1px solid var(--line-dark); }
.trust-item { display: flex; align-items: center; gap: 10px; color: #dfe6f3; font-size: .88rem; font-weight: 600; line-height: 1.25; }
.trust-item svg { width: 20px; height: 20px; color: var(--gold); flex: none; }
.trust-item small { display: block; color: #8796b3; font-weight: 500; font-size: .78rem; }

/* Glass estimate card */
.quote-card {
  position: relative; background: rgba(255, 255, 255, .97); border-radius: var(--radius-lg); padding: 28px;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, .6) inset; color: var(--text);
}
.quote-card::before { content: ""; position: absolute; left: 28px; right: 28px; top: 0; height: 3px; background: linear-gradient(90deg, var(--gold), var(--cobalt-400)); border-radius: 0 0 3px 3px; }
.dark .quote-card h2, .quote-card h2 { font-size: 1.35rem; margin-bottom: 4px; color: var(--ink); }
.quote-card .sub { color: var(--muted); font-size: .9rem; margin-bottom: 18px; }
.quote-card .form-grid { gap: 12px; }
.quote-card textarea { min-height: 84px; }
.quote-card .btn { width: 100%; margin-top: 14px; padding: 15px; }
.quote-card .fine { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: .8rem; color: var(--muted); margin: 12px 0 0; }
.quote-card .fine svg { width: 14px; height: 14px; color: #1f9d55; }

@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; padding-top: 52px; padding-bottom: 60px; }
}
@media (max-width: 520px) { .hero-cta .btn { flex: 1 1 100%; } .quote-card { padding: 22px 18px; } }

.page-hero .wrap { display: block; padding-top: 60px; padding-bottom: 64px; }
.page-hero h1 { font-size: clamp(2rem, 4vw, 2.9rem); max-width: 18em; }
.page-hero .lede { margin-bottom: 0; }
.crumbs { font-size: .84rem; color: #8796b3; margin-bottom: 18px; }
.crumbs a { color: #dfe6f3; text-decoration: none; }
.crumbs a:hover { color: var(--gold); }

/* ---------- Credential bar ---------- */
.creds { background: #fff; border-bottom: 1px solid var(--line); }
.creds .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.cred { display: flex; align-items: center; gap: 12px; padding: 20px 18px; border-left: 1px solid var(--line); }
.cred:first-child { border-left: 0; padding-left: 0; }
.cred .ico { width: 40px; height: 40px; border-radius: 10px; background: var(--cobalt-50); color: var(--cobalt); display: grid; place-items: center; flex: none; }
.cred .ico svg { width: 20px; height: 20px; }
.cred small { display: block; font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.cred strong { font: 700 .98rem/1.3 var(--head); color: var(--ink); }
a.cred { text-decoration: none; }
a.cred:hover strong { color: var(--cobalt); }
@media (max-width: 900px) {
  .creds .wrap { grid-template-columns: 1fr 1fr; }
  .cred { padding: 16px 10px; border-left: 0; border-bottom: 1px solid var(--line); }
  .cred:first-child { padding-left: 10px; }
}

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section.soft { background: var(--bg-soft); }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head p { font-size: 1.05rem; color: var(--muted); margin: 0; }
.dark .section-head p { color: var(--on-dark); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.section-head.row > div { max-width: 600px; }
@media (max-width: 700px) { .section { padding: 64px 0; } .section-head { margin-bottom: 30px; } }

/* ---------- Bento services ---------- */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tile {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px;
  display: flex; flex-direction: column; text-decoration: none; color: var(--text); overflow: hidden;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #cfd9ea; color: var(--text); }
.tile .ico { width: 44px; height: 44px; border-radius: 11px; background: var(--navy-800); color: var(--gold); display: grid; place-items: center; margin-bottom: 18px; }
.tile .ico svg { width: 22px; height: 22px; }
.tile h3 { margin-bottom: 8px; }
.tile p { color: var(--muted); font-size: .94rem; margin: 0 0 16px; }
.tile .go { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font: 700 .86rem var(--head); color: var(--cobalt); }
.tile .go svg { width: 15px; height: 15px; transition: transform .15s; }
.tile:hover .go svg { transform: translateX(3px); }
.tile.feature { grid-row: span 2; color: var(--on-dark); border: 0; padding: 32px; justify-content: flex-end; min-height: 440px;
  background:
    linear-gradient(180deg, rgba(8, 18, 37, .15) 0%, rgba(8, 18, 37, .92) 70%),
    var(--photo, none) center / cover no-repeat,
    radial-gradient(500px 400px at 80% 0%, rgba(47, 111, 224, .5), transparent 60%),
    linear-gradient(160deg, var(--navy-700), var(--navy-900));
}
.tile.feature::before { content: ""; position: absolute; right: -40px; top: 26px; width: 250px; height: 300px; opacity: var(--mark-opacity, .14); background: url("../img/apex-mark.svg") no-repeat center / contain; }
.tile.feature h3 { color: #fff; font-size: 1.6rem; letter-spacing: -.02em; }
.tile.feature p { color: #c3cee2; font-size: 1rem; }
.tile.feature .ico { background: var(--gold); color: var(--ink); }
.tile.feature .go { color: var(--gold); margin-top: 8px; }
.tile.feature:hover { color: var(--on-dark); }
.tile.wide { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 22px; }
.tile.wide .ico { margin: 0; }
.tile.wide h3 { margin: 0 0 4px; }
.tile.wide p { margin: 0; }
.tile.wide .go { margin: 0 0 0 auto; white-space: nowrap; }
@media (max-width: 700px) { .tile.wide { flex-direction: column; align-items: flex-start; } .tile.wide .go { margin: 12px 0 0; } }
.tile.accent { background: linear-gradient(135deg, var(--cobalt), var(--cobalt-600)); border: 0; color: #d9e4f7; }
.tile.accent h3 { color: #fff; }
.tile.accent p { color: #c8d7f1; }
.tile.accent .ico { background: rgba(255, 255, 255, .12); }
.tile.accent .go { color: var(--gold); }
.tile.accent:hover { color: #d9e4f7; }
@media (max-width: 940px) { .bento { grid-template-columns: 1fr 1fr; } .tile.feature { grid-column: span 2; grid-row: auto; min-height: 340px; } }
@media (max-width: 620px) { .bento { grid-template-columns: 1fr; } .tile.feature { grid-column: auto; } }

/* ---------- Process ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: step; }
.step { position: relative; padding: 28px 26px; border: 1px solid var(--line-dark); border-radius: var(--radius-lg); background: rgba(255, 255, 255, .025); }
.step .n { font: 800 .8rem/1 var(--head); color: var(--gold); letter-spacing: .12em; margin-bottom: 18px; display: flex; align-items: center; gap: 12px; }
.step .n::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(227, 194, 59, .5), transparent); }
.step h3 { margin-bottom: 8px; }
.step p { margin: 0; font-size: .95rem; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 56px; border-top: 1px solid var(--line-dark); }
.stat { padding: 28px 20px 0; border-left: 1px solid var(--line-dark); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat strong { display: block; font: 800 2.4rem/1 var(--head); letter-spacing: -.03em; color: #fff; margin-bottom: 8px; }
.stat strong em { font-style: normal; color: var(--gold); }
.stat > span { font-size: .88rem; }
@media (max-width: 820px) { .stats { grid-template-columns: 1fr 1fr; } .stat { padding: 22px 12px 0; } .stat:nth-child(3) { border-left: 0; padding-left: 0; } }

/* ---------- Split / about ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 40px; } }
.visual {
  position: relative; border-radius: 22px; min-height: 460px; overflow: hidden; box-shadow: var(--shadow-lg);
  background:
    linear-gradient(180deg, transparent 50%, rgba(5, 11, 23, .55)),
    var(--photo, none) center / cover no-repeat,
    radial-gradient(420px 360px at 70% 20%, rgba(47, 111, 224, .55), transparent 65%),
    linear-gradient(155deg, var(--navy-700), var(--navy-950));
}
.visual .mark { position: absolute; left: 50%; top: 44%; transform: translate(-50%, -50%); width: 46%; opacity: var(--mark-opacity, 1); filter: drop-shadow(0 24px 40px rgba(0, 0, 0, .5)); }
.float {
  position: absolute; background: #fff; border-radius: 14px; padding: 14px 16px; box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 12px; font-size: .84rem; color: var(--muted); line-height: 1.3;
}
.float strong { display: block; font: 800 1rem/1.2 var(--head); color: var(--ink); }
.float .ico { width: 40px; height: 40px; border-radius: 10px; background: var(--gold); color: var(--ink); display: grid; place-items: center; flex: none; }
.float .ico svg { width: 20px; height: 20px; }
.float.a { left: 20px; bottom: 20px; }
.float.b { right: 20px; top: 20px; }
.ticks { list-style: none; padding: 0; margin: 22px 0 28px; display: grid; gap: 14px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; }
.ticks .ico { width: 26px; height: 26px; border-radius: 50%; background: var(--cobalt-50); color: var(--cobalt); display: grid; place-items: center; flex: none; margin-top: 1px; }
.ticks .ico svg { width: 14px; height: 14px; }
.ticks strong { color: var(--ink); }
.dark .ticks .ico { background: rgba(227, 194, 59, .14); color: var(--gold); }
.dark .ticks strong { color: #fff; }

/* ---------- Owner ---------- */
.owner { display: grid; grid-template-columns: 280px 1fr; gap: 0; border-radius: 22px; overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.owner-side { background: linear-gradient(160deg, var(--navy-800), var(--navy-950)); padding: 36px 28px; text-align: center; color: var(--on-dark); display: flex; flex-direction: column; justify-content: center; }
.owner-side img { width: 110px; margin: 0 auto 18px; }
.owner-side h3 { color: #fff; margin-bottom: 2px; }
.owner-side p { font-size: .88rem; margin: 0; color: var(--gold); font-weight: 600; }
.owner-body { padding: 40px 44px; }
.owner-body blockquote { margin: 0; font-size: 1.06rem; line-height: 1.75; color: var(--text); }
.owner-body .sig { margin-top: 20px; font: 700 1rem var(--head); color: var(--ink); }
.owner-body .sig span { display: block; font: 500 .86rem var(--body); color: var(--muted); }
@media (max-width: 800px) { .owner { grid-template-columns: 1fr; } .owner-body { padding: 30px 24px; } }

/* ---------- Reviews ---------- */
.reviews { display: grid; grid-template-columns: 1fr 1fr 300px; gap: 16px; align-items: stretch; }
@media (max-width: 980px) { .reviews { grid-template-columns: 1fr 1fr; } .bbb-card { grid-column: span 2; } }
@media (max-width: 680px) { .reviews { grid-template-columns: 1fr; } .bbb-card { grid-column: auto; } }
.review { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; display: flex; flex-direction: column; }
.stars { display: flex; gap: 2px; color: var(--gold-600); margin-bottom: 14px; }
.stars svg { width: 17px; height: 17px; }
.review p { color: var(--text); font-size: .98rem; }
.review footer { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--navy-800); color: var(--gold); display: grid; place-items: center; font: 700 .85rem var(--head); flex: none; }
.review cite { font-style: normal; font-weight: 700; color: var(--ink); display: block; font-size: .95rem; }
.review small { color: var(--muted); font-size: .82rem; }

/* ---------- BBB ---------- */
.bbb {
  display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: inherit;
  border-radius: 12px; padding: 10px 14px 10px 10px; background: #fff; border: 1px solid var(--line);
}
.bbb .seal { width: 46px; height: 46px; border-radius: 9px; background: #005a78; color: #fff; display: grid; place-items: center; font: 800 .95rem/1 var(--head); letter-spacing: -.02em; flex: none; }
.bbb .txt { line-height: 1.2; }
.bbb strong { display: block; font: 800 .92rem var(--head); color: var(--ink); }
.bbb small { font-size: .78rem; color: var(--muted); }
.bbb:hover { border-color: #005a78; }
.bbb-card { background: linear-gradient(160deg, var(--navy-800), var(--navy-950)); border-radius: var(--radius-lg); padding: 28px; color: var(--on-dark); display: flex; flex-direction: column; gap: 12px; }
.bbb-card .grade { font: 800 3.4rem/1 var(--head); color: #fff; letter-spacing: -.04em; }
.bbb-card .grade span { color: var(--gold); }
.bbb-card h3 { color: #fff; margin: 0; }
.bbb-card p { font-size: .92rem; margin: 0; }
.bbb-card .bbb { background: rgba(255, 255, 255, .05); border-color: var(--line-dark); margin-top: auto; }
.bbb-card .bbb strong { color: #fff; }
.bbb-card .bbb small { color: #8796b3; }

/* ---------- FAQ ---------- */
.faq-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; }
@media (max-width: 860px) { .faq-wrap { grid-template-columns: 1fr; gap: 28px; } }
.faq { display: grid; gap: 10px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 0 22px; transition: border-color .2s, box-shadow .2s; }
.faq details[open] { border-color: #cfd9ea; box-shadow: var(--shadow-sm); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 34px 18px 0; position: relative; font: 700 1rem/1.4 var(--head); color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 2px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--cobalt); border-bottom: 2px solid var(--cobalt); transform: rotate(45deg); transition: transform .2s, margin .2s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq .answer { padding-bottom: 20px; color: var(--muted); font-size: .96rem; }
.faq .answer p:last-child { margin: 0; }
.faq .answer ul { padding-left: 18px; margin: 0; }
.faq .answer li { margin-bottom: 6px; }
.faq .answer strong { color: var(--ink); }

/* ---------- CTA ---------- */
.cta { position: relative; overflow: hidden; border-radius: 22px; padding: 52px 56px; display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
  background: radial-gradient(600px 300px at 90% 0%, rgba(47, 111, 224, .45), transparent 60%), linear-gradient(135deg, var(--navy-800), var(--navy-950)); color: var(--on-dark); }
.cta::after { content: ""; position: absolute; right: 30%; bottom: -60px; width: 200px; height: 240px; opacity: .06; background: url("../img/apex-mark.svg") no-repeat center / contain; }
.cta h2 { color: #fff; margin-bottom: 6px; }
.cta p { margin: 0; font-size: 1.04rem; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; position: relative; z-index: 1; }
@media (max-width: 620px) { .cta { padding: 36px 24px; } .cta-actions .btn { flex: 1 1 100%; } }

/* ---------- Services detail ---------- */
.svc-nav { position: sticky; top: 90px; z-index: 20; background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.svc-nav .wrap { display: flex; gap: 6px; overflow-x: auto; padding-top: 10px; padding-bottom: 10px; scrollbar-width: none; }
.svc-nav a { white-space: nowrap; padding: 8px 14px; border-radius: 999px; font: 600 .86rem var(--head); color: var(--text); text-decoration: none; border: 1px solid var(--line); }
.svc-nav a:hover { border-color: var(--cobalt); color: var(--cobalt); }
@media (max-width: 940px) { .svc-nav { top: 74px; } }
.svc { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding: 56px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 150px; }
.svc:last-child { border-bottom: 0; }
.svc:nth-child(even) .svc-card { order: -1; }
.svc h2 { font-size: 1.75rem; }
.svc-card { border-radius: var(--radius-lg); padding: 28px; background: var(--bg-soft); border: 1px solid var(--line); }
.svc-card .ico { width: 48px; height: 48px; border-radius: 12px; background: var(--navy-800); color: var(--gold); display: grid; place-items: center; margin-bottom: 18px; }
.svc-card .ico svg { width: 24px; height: 24px; }
.svc-card h3 { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.svc-card ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; }
.svc-card li { display: flex; gap: 8px; align-items: flex-start; font-size: .94rem; color: var(--ink); }
.svc-card li svg { width: 16px; height: 16px; color: var(--cobalt); flex: none; margin-top: 4px; }
@media (max-width: 820px) { .svc { grid-template-columns: 1fr; gap: 24px; padding: 44px 0; } .svc:nth-child(even) .svc-card { order: 0; } }
@media (max-width: 480px) { .svc-card ul { grid-template-columns: 1fr; } }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 520px) { .form-grid { grid-template-columns: 1fr; } }
label { display: block; font-weight: 600; color: var(--ink); font-size: .84rem; margin-bottom: 6px; }
label .req { color: #c0392b; }
input, select, textarea {
  width: 100%; font: 400 .96rem/1.4 var(--body); color: var(--ink); background: #f7f9fc;
  border: 1px solid #d8e0ec; border-radius: 9px; padding: 12px 13px; transition: border-color .15s, box-shadow .15s, background .15s;
}
textarea { min-height: 130px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--cobalt); background: #fff; box-shadow: 0 0 0 3px rgba(0, 71, 171, .14); }
.hp { position: absolute; left: -5000px; }
.alert { border-radius: 10px; padding: 12px 14px; margin-bottom: 16px; font-weight: 600; font-size: .92rem; }
.alert.err { background: #fdecea; color: #922; border: 1px solid #f5c2bd; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1.2fr .8fr; gap: 32px; align-items: start; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }
.form-card { background: #fff; border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.form-card .btn { width: 100%; margin-top: 16px; padding: 16px; }
.form-card .note { font-size: .84rem; color: var(--muted); margin: 12px 0 0; }
@media (max-width: 520px) { .form-card { padding: 26px 18px; } }
.info-card { border-radius: var(--radius-lg); overflow: hidden; background: var(--navy-900); color: var(--on-dark); box-shadow: var(--shadow); }
.info-card .top { padding: 28px; }
.info-card h3 { color: #fff; margin-bottom: 16px; }
.info-row { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-top: 1px solid var(--line-dark); text-decoration: none; color: var(--on-dark); }
a.info-row:hover strong { color: var(--gold); }
.info-row .ico { width: 36px; height: 36px; border-radius: 9px; background: rgba(255, 255, 255, .06); color: var(--gold); display: grid; place-items: center; flex: none; }
.info-row .ico svg { width: 17px; height: 17px; }
.info-row small { display: block; font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #8796b3; }
.info-row strong { color: #fff; font-weight: 600; font-size: .98rem; word-break: break-word; }
.map { border: 0; width: 100%; height: 240px; display: block; filter: grayscale(.2) contrast(1.05); }

/* ---------- Footer ---------- */
.footer { background: var(--navy-950); color: #8796b3; font-size: .9rem; }
.footer .wrap { padding-top: 64px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.1fr 1.3fr; gap: 36px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer .logo { height: 70px; width: auto; margin-bottom: 16px; }
.footer h4 { color: #fff; font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 16px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.footer a { color: #cdd6e6; text-decoration: none; }
.footer a:hover { color: var(--gold); }
.footer .tag { font-style: italic; color: var(--gold); margin-bottom: 18px; }
.footer .bbb { background: rgba(255, 255, 255, .04); border-color: var(--line-dark); }
.footer .bbb strong { color: #fff; }
.footer .bbb small { color: #8796b3; }
.social { display: flex; gap: 8px; margin-top: 16px; }
.social a { width: 36px; height: 36px; border-radius: 9px; border: 1px solid var(--line-dark); display: grid; place-items: center; }
.social a:hover { border-color: var(--gold); }
.social svg { width: 17px; height: 17px; }
.footer-bottom { margin-top: 52px; padding: 20px 0; border-top: 1px solid var(--line-dark); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .8rem; }

/* ---------- Mobile call bar ---------- */
.callbar { display: none; }
@media (max-width: 700px) {
  body { padding-bottom: 64px; }
  .callbar { display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; box-shadow: 0 -8px 24px -10px rgba(0, 0, 0, .4); }
  .callbar a { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 18px 10px; font: 700 .96rem/1 var(--head); text-decoration: none; }
  .callbar svg { width: 18px; height: 18px; }
  .callbar .call { background: var(--gold); color: var(--ink); }
  .callbar .est { background: var(--navy-900); color: #fff; }
}

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ---------- Our Work ---------- */
.work-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: #fff; color: var(--text); font: 600 .88rem/1 var(--head); transition: border-color .15s, background .15s, color .15s;
}
.chip span { font: 600 .74rem/1 var(--body); color: var(--muted); background: var(--bg-soft); border-radius: 999px; padding: 3px 7px; }
.chip:hover { border-color: var(--cobalt); color: var(--cobalt); }
.chip.active { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
.chip.active span { background: rgba(255, 255, 255, .12); color: var(--gold); }

.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 980px) { .work-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .work-grid { grid-template-columns: 1fr; } }
.work { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.work:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.work[hidden] { display: none; }
.work-img { position: relative; display: block; width: 100%; aspect-ratio: 4 / 3; padding: 0; border: 0; cursor: zoom-in; background: var(--navy-800); overflow: hidden; }
.work-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.work:hover .work-img img { transform: scale(1.04); }
.work-img .zoom { position: absolute; right: 12px; bottom: 12px; width: 36px; height: 36px; border-radius: 50%; background: rgba(8, 18, 37, .75); color: #fff; display: grid; place-items: center; opacity: 0; transition: opacity .2s; }
.work-img .zoom svg { width: 16px; height: 16px; transform: rotate(-45deg); }
.work:hover .zoom, .work-img:focus-visible .zoom { opacity: 1; }
.work-body { padding: 18px 20px 20px; }
.work-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.work-tags span { font: 700 .68rem/1 var(--head); letter-spacing: .08em; text-transform: uppercase; color: var(--cobalt); background: var(--cobalt-50); padding: 5px 8px; border-radius: 6px; }
.work h3 { margin-bottom: 4px; }
.work-sub { font-size: .86rem; color: var(--muted); font-weight: 600; margin: 0 0 8px; }
.work-desc { font-size: .93rem; color: var(--text); margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.work-none { text-align: center; color: var(--muted); padding: 30px 0; }
.work-empty { max-width: 520px; margin: 0 auto; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 44px 32px; }
.work-empty .ico { width: 56px; height: 56px; border-radius: 14px; background: var(--navy-800); color: var(--gold); display: grid; place-items: center; margin: 0 auto 18px; }
.work-empty .ico svg { width: 26px; height: 26px; }
.work-empty p { color: var(--muted); }

.lightbox { width: min(1100px, 94vw); max-height: 92vh; padding: 0; border: 0; border-radius: var(--radius-lg); background: #fff; overflow: hidden; box-shadow: var(--shadow-lg); }
.lightbox::backdrop { background: rgba(5, 11, 23, .82); backdrop-filter: blur(4px); }
.lightbox figure { margin: 0; display: grid; grid-template-columns: 1.6fr 1fr; max-height: 92vh; }
.lb-img { background: var(--navy-950); display: grid; place-items: center; min-height: 320px; }
.lb-img img { max-width: 100%; max-height: 92vh; object-fit: contain; }
.lightbox figcaption { padding: 34px 30px; overflow-y: auto; }
.lb-title { font-size: 1.45rem; }
.lb-desc { color: var(--text); white-space: pre-line; }
.lb-close, .lb-nav { position: absolute; z-index: 2; border: 0; cursor: pointer; background: rgba(8, 18, 37, .7); color: #fff; border-radius: 50%; width: 42px; height: 42px; display: grid; place-items: center; font: 400 1.8rem/1 var(--body); }
.lb-close { top: 12px; right: 12px; background: var(--bg-soft); color: var(--ink); font-size: 1.6rem; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { left: calc(61.5% - 54px); top: 50%; transform: translateY(-50%); }
.lb-close:hover, .lb-nav:hover { filter: brightness(1.15); }
@media (max-width: 820px) {
  .lightbox figure { grid-template-columns: 1fr; overflow-y: auto; }
  .lb-img img { max-height: 60vh; }
  .lightbox figcaption { padding: 22px 20px 26px; }
  .lb-prev, .lb-next { top: 30vh; }
  .lb-next { left: auto; right: 12px; }
}

.footer .credit { color: #cdd6e6; text-decoration: underline; text-decoration-color: rgba(227, 194, 59, .5); }
.footer .credit:hover { color: var(--gold); }
