:root {
  --font-heading: "Aptos Display", "Segoe UI", Arial, sans-serif;
  --font-body: "Aptos", "Segoe UI", Arial, sans-serif;
  --blue: #183094;
  --blue-dark: #10172a;
  --line: #6d7fca;
  --slate: #cbd5e1;
  --vellum: #f8f8f8;
  --ink: #111827;
  --muted: #526071;
  --accent: #d8a928;
}

html { scroll-behavior: smooth; }

body {
  min-width: 320px;
  background: var(--vellum);
  color: #273142;
  font-size: 16px;
  line-height: 1.7;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .24;
  z-index: -1;
  background-image: linear-gradient(rgba(24, 48, 148, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(24, 48, 148, .08) 1px, transparent 1px);
  background-size: 32px 32px;
}

h1, h2, h3, h4 { color: var(--ink); font-family: var(--font-heading); letter-spacing: -.025em; line-height: 1.08; }
h1 { font-size: 32px; }
h2 { font-size: 26px; }
h3, h4 { font-size: 22px; }
p, li, a, button, input, textarea { font-size: 16px; }

@media (min-width: 768px) {
  h1 { font-size: clamp(52px, 6vw, 76px); }
  h2 { font-size: clamp(34px, 4vw, 52px); }
  h3, h4 { font-size: 24px; }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 248, 248, .94);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(24, 48, 148, .22);
}

.logo-mark {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--blue);
  color: #fff;
  border: 2px solid var(--line);
  box-shadow: inset 0 0 0 4px rgba(255,255,255,.12);
}

.logo-text { font-family: var(--font-heading); font-size: 20px; font-weight: 800; color: var(--ink); letter-spacing: -.02em; }
.nav-link { color: #243047; font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.nav-link:hover { color: var(--blue); }

.header-phone-desktop { display: none !important; }
.mobile-menu-button { display: inline-flex !important; }
.desktop-nav { display: none !important; }
.mobile-menu { display: none; }
.mobile-menu.is-open { display: block; }

@media (min-width: 768px) {
  .header-phone-desktop { display: inline-flex !important; }
  .mobile-menu-button, .mobile-menu { display: none !important; }
  .desktop-nav { display: flex !important; }
}

.btn-blue, .btn-gold, .header-phone-desktop, .mobile-menu-phone {
  align-items: center;
  justify-content: center;
  gap: .55rem;
  border: 1px solid transparent;
  font-weight: 900;
  letter-spacing: .015em;
  transition: transform .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}

.btn-blue { background: var(--blue); color: #fff; box-shadow: 8px 8px 0 rgba(24, 48, 148, .16); }
.btn-blue:hover { background: var(--blue-dark); color: #fff; transform: translate(-2px, -2px); box-shadow: 12px 12px 0 rgba(24, 48, 148, .19); }
.btn-gold { background: var(--accent); color: #111827; box-shadow: 8px 8px 0 rgba(216,169,40,.22); }
.btn-gold:hover { background: #efc64b; color: #111827; transform: translate(-2px, -2px); }

.hero {
  position: relative;
  min-height: 760px;
  overflow: hidden;
  color: #fff;
  background: #10172a;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(9, 16, 38, .92) 0%, rgba(24, 48, 148, .78) 46%, rgba(9, 16, 38, .42) 100%), url('../images/hero-technician.png') center/cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .28;
  background-image: linear-gradient(rgba(255,255,255,.14) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.14) 1px, transparent 1px);
  background-size: 40px 40px;
}

.hero-content { position: relative; z-index: 2; }
.hero h1, .dark-section h2, .dark-section h3, .hero h2, .hero h3 { color: #fff; }
.hero p, .dark-section p, .dark-section li { color: #e7edf7; }
.stars { color: var(--accent); font-size: 26px; letter-spacing: .08em; }

.gallery-badges img {
  width: auto;
  height: 52px;
  object-fit: contain;
  border: 1px solid rgba(255,255,255,.55);
  background: rgba(255,255,255,.9);
  padding: 5px;
}

.hero-panel {
  background: rgba(248,248,248,.13);
  border: 1px solid rgba(255,255,255,.32);
  backdrop-filter: blur(14px);
  box-shadow: 18px 18px 0 rgba(255,255,255,.08);
}

.hero-panel li { color: #fff; }
.tick { color: var(--accent); font-weight: 900; }
.blueprint-label { color: var(--blue); font-weight: 900; text-transform: uppercase; letter-spacing: .14em; font-size: 12px; }
.dark-section .blueprint-label { color: #dbe4ff; }
.section-pad { padding: 72px 0; }

.section-title::after {
  content: "";
  display: block;
  width: 72px;
  height: 6px;
  margin-top: 18px;
  background: repeating-linear-gradient(90deg, var(--accent), var(--accent) 10px, transparent 10px, transparent 16px);
}

.section-title.centered::after { margin-left: auto; margin-right: auto; }
.blueprint-card, .service-card, .review-card, .estimate-card {
  background: #fff;
  border: 1px solid rgba(24, 48, 148, .18);
  box-shadow: 10px 10px 0 rgba(109, 127, 202, .16);
}

.blueprint-card:hover, .service-card:hover {
  border-color: var(--blue);
  box-shadow: 12px 12px 0 rgba(24, 48, 148, .18);
}

.service-card { position: relative; overflow: hidden; }
.service-card::before {
  content: attr(data-number);
  position: absolute;
  top: 14px;
  right: 16px;
  color: rgba(24, 48, 148, .12);
  font-size: 44px;
  line-height: 1;
  font-weight: 900;
}

.icon-box {
  width: 58px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  background: #eef2ff;
  border: 1px solid var(--line);
}

.two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}

@media (min-width: 900px) {
  .two-col { grid-template-columns: minmax(0, 65%) minmax(280px, 35%); }
  .two-col.reverse { grid-template-columns: minmax(280px, 35%) minmax(0, 65%); }
}

.photo-frame {
  position: relative;
  border: 1px solid rgba(24,48,148,.28);
  background: #fff;
  padding: 10px;
  box-shadow: 14px 14px 0 rgba(24,48,148,.13);
}
.photo-frame img { display: block; width: 100%; height: auto; object-fit: cover; }
.photo-frame::before, .photo-frame::after {
  content: "";
  position: absolute;
  width: 28px;
  height: 28px;
  border-color: var(--blue);
  border-style: solid;
}
.photo-frame::before { top: -8px; left: -8px; border-width: 2px 0 0 2px; }
.photo-frame::after { right: -8px; bottom: -8px; border-width: 0 2px 2px 0; }

.dark-section { background: #10172a; color: #e7edf7; }
.dark-card { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); color: #fff; }
.dark-card p, .dark-card li { color: #e7edf7; }

.review-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 88%;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 6px 6px 24px;
  scrollbar-width: thin;
}
.review-card { scroll-snap-align: start; min-height: 285px; }
@media (min-width: 900px) { .review-track { grid-auto-columns: calc((100% - 36px) / 3); } }

.map-wrap iframe { width: 100%; height: 450px; border: 0; filter: grayscale(.25) contrast(1.05); }

.mobile-sticky-call {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  background: #10172a;
  color: #fff;
  padding: 12px 14px calc(12px + env(safe-area-inset-bottom));
  transform: translateY(120%);
  opacity: 0;
  transition: opacity .24s ease, transform .24s ease;
  border-top: 2px solid var(--accent);
}
.mobile-sticky-call.is-visible { transform: translateY(0); opacity: 1; }
.mobile-sticky-call a { color: #fff; background: var(--blue); display: flex; justify-content: center; align-items: center; min-height: 48px; font-weight: 900; white-space: nowrap; }
@media (max-width: 767px) { .mobile-sticky-call { display: block !important; } body { padding-bottom: 72px; } }
@media (min-width: 768px) { .mobile-sticky-call { display: none !important; } }

.fade-grid { animation: gridFade .8s ease both; }
.dimension-in { animation: dimensionIn .65s ease both; }
@keyframes gridFade { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes dimensionIn { from { opacity: 0; clip-path: inset(0 100% 0 0); } to { opacity: 1; clip-path: inset(0 0 0 0); } }

.footer { background: #0f172a; color: #dbe5f2; }
.footer a { color: #fff; }
.footer h2, .footer h3 { color: #fff; }
.footer p, .footer li { color: #dbe5f2; font-size: 14px; }

@media (max-width: 767px) {
  .section-pad { padding: 52px 0; }
  .hero { min-height: 820px; }
  .hero-panel { box-shadow: 8px 8px 0 rgba(255,255,255,.08); }
  .gallery-badges img { height: 44px; }
}
