.contents-quad {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.contents-quad a {
  display: block;
  background: #fff;
  border: 1px solid rgba(10,22,40,.08);
  border-radius: 16px;
  overflow: hidden;
  color: #0a1628;
  box-shadow: 0 8px 24px rgba(10,22,40,.06);
}
.contents-quad img { width: 100%; height: 160px; object-fit: cover; display: block; }
.contents-quad div, .contents-quad > a { }
.contents-quad a > div,
.section--alt .contents-quad a,
.contents-quad a strong { }
.contents-quad a { padding: 0; }
.contents-quad > a:not(:has(img)) { padding: 18px 18px 16px; }
.contents-quad a > strong,
.contents-quad h3 { display: block; padding: 12px 14px 0; font-size: 1.15rem; }
.contents-quad > a:not(:has(img)) > strong { padding: 0; }
.contents-quad a > span,
.contents-quad p { display: block; padding: 6px 14px 8px; color: #475569; font-size: .95rem; }
.contents-quad > a:not(:has(img)) > span { padding: 6px 0 0; }
.contents-quad em { display: block; padding: 0 14px 14px; font-style: normal; font-weight: 700; color: #c2410c; }
@media (max-width: 700px) {
  .contents-quad { grid-template-columns: 1fr; }
  .contents-quad img { height: 140px; }
}

/* Conversion bar — always one tap from a call */
.convert-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1100;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 8px;
  padding: 10px 12px max(10px, env(safe-area-inset-bottom));
  background: rgba(7, 16, 29, 0.94);
  backdrop-filter: blur(16px);
  box-shadow: 0 -10px 32px rgba(0,0,0,.28);
}
.convert-bar__call,
.convert-bar__cb {
  min-height: 48px;
  border-radius: 999px;
  border: 0;
  font-family: Outfit, system-ui, sans-serif;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.15;
}
.convert-bar__call {
  background: linear-gradient(135deg, #ff8a2b, #f06a0a);
  color: #fff;
}
.convert-bar__call span { font-weight: 600; font-size: 12px; opacity: .95; }
.convert-bar__cb {
  background: #fff;
  color: #0a1628;
  font-size: 15px;
}
body { padding-bottom: 78px; }
@media (min-width: 769px) {
  .mobile-cta { display: none !important; }
}
.cb-sheet {
  position: fixed;
  inset: 0;
  background: rgba(4, 11, 20, 0.45);
  z-index: 1200;
  display: grid;
  place-items: end center;
  padding: 16px 16px max(16px, env(safe-area-inset-bottom));
}
.cb-sheet[hidden] { display: none !important; }
.cb-sheet__card {
  width: min(420px, 100%);
  background: #fff;
  color: #0a1628;
  border-radius: 20px;
  padding: 22px 20px 18px;
  position: relative;
  box-shadow: 0 24px 60px rgba(4,11,20,.28);
}
.cb-sheet__card h2 { margin: 4px 0 8px; font-size: 1.45rem; }
.cb-sheet__card p { color: #475569; margin-bottom: 12px; }
.cb-sheet__card label { display: block; font-size: 13px; font-weight: 600; margin: 10px 0; }
.cb-sheet__card input {
  width: 100%;
  margin-top: 4px;
  padding: 10px 12px;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  font: inherit;
}
.cb-sheet__x {
  position: absolute;
  top: 10px;
  right: 12px;
  border: 0;
  background: #f1f5f9;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 22px;
  cursor: pointer;
}
.cb-sheet__phone { display: block; text-align: center; margin-top: 12px; font-weight: 700; color: #c2410c; }

/* Mobile-first overlays, a11y, and resolution safety */

.skip-link {
  position: absolute;
  left: 8px;
  top: -40px;
  background: #fff;
  color: #0a1628;
  padding: 8px 12px;
  z-index: 2000;
  border-radius: 8px;
}
.skip-link:focus { top: 8px; }

.jcc-hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }

.nav .menu,
.nav .nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav .menu a,
.nav .nav-list a { display: block; }

/* Desktop: inline nav. Mobile row was overflowing the viewport. */
@media (min-width: 1024px) {
  .nav .menu,
  .nav .nav-list {
    display: flex;
    align-items: center;
    gap: 0.1rem;
  }
}

.areas-list a {
  display: inline-block;
  margin: 0.25rem 0.35rem 0.25rem 0;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.65rem;
}
.cities-grid a {
  display: block;
  padding: 0.85rem 1rem;
  min-height: 44px;
  border: 1px solid rgba(10, 22, 40, 0.1);
  border-radius: 12px;
  background: #fff;
  font-weight: 600;
  color: #0a1628;
}
.cities-grid a:hover { border-color: #f06a0a; }

.jcc-faq {
  border-top: 1px solid #ebe6de;
  padding: 1rem 0;
}
.jcc-faq summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 1.05rem;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.jcc-faq p { margin-top: 0.6rem; color: #475569; }

img, video { max-width: 100%; height: auto; }

/* Kill sideways scroll — overflowing fixed nav was shifting the page left */
html, body {
  max-width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
  overscroll-behavior-x: none;
}
body.nav-open { overflow: hidden; }

/* Phones */
@media (max-width: 767px) {
  html { -webkit-text-size-adjust: 100%; }
  h1 { font-size: clamp(1.85rem, 8.4vw, 2.4rem); }
  h2 { font-size: clamp(1.45rem, 6.4vw, 1.85rem); }
  .hero--cinematic { min-height: auto; padding: 2.25rem 0 2.75rem; }
  .hero__grid,
  .container { width: min(100% - 1.5rem, var(--container)); }
  .hero__ctas { flex-direction: column; align-items: stretch; }
  .hero__ctas .btn { width: 100%; }
  .hero__proof--glass li { min-width: calc(50% - 0.5rem); }
  .hero__card { margin-top: 0.5rem; }
  .story-band__grid,
  .why-grid,
  .service-hero-grid,
  .areas-panel,
  .contact-layout { grid-template-columns: 1fr !important; }
  .bento-card--lg { grid-column: auto; }
  .mobile-cta { display: block; }
  .btn, .nav a, .cities-grid a { min-height: 44px; }
  .emergency-bar { height: auto; min-height: 42px; padding: 0.4rem 0; }
  .emergency-bar__inner { font-size: 0.78rem; padding: 0 0.5rem; }
  .header-estimate { display: none !important; }
  .logo { min-width: 0; gap: 0.5rem; }
  .logo__mark { width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0; }
  .logo__name { font-size: 0.95rem; }
  .header__inner { gap: 0.4rem; min-width: 0; }
}

/* Small phones */
@media (max-width: 380px) {
  .header__actions .btn--primary { padding: 0.65rem 0.85rem; font-size: 0.85rem; }
  .logo__tag { display: none; }
}

/* Tablets */
@media (min-width: 768px) and (max-width: 1023px) {
  .hero__grid { grid-template-columns: 1fr; }
}

/* Large desktops */
@media (min-width: 1400px) {
  :root { --container: 1240px; }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  .hero__img, .btn--glow, .emergency-bar__pulse { animation: none !important; }
}

/* Safe areas (notched phones) */
@supports (padding: max(0px)) {
  .emergency-bar { padding-left: max(0px, env(safe-area-inset-left)); padding-right: max(0px, env(safe-area-inset-right)); }
  .mobile-cta { padding-bottom: max(10px, env(safe-area-inset-bottom)); }
}

.final-cta__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(4,11,20,.88), rgba(4,11,20,.55));
}

/* Service pages — photo + process */
.svc-split {
  display: grid;
  gap: 2.25rem;
  align-items: start;
}
@media (min-width: 900px) {
  .svc-split { grid-template-columns: 1.05fr 0.95fr; gap: 3rem; align-items: center; }
}
.svc-photos {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 0.75rem;
}
.svc-photos figure { margin: 0; }
.svc-photos img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 22px;
  box-shadow: 0 18px 40px rgba(4, 11, 20, 0.14);
}
.svc-photos figure:first-child img { height: 280px; }
@media (max-width: 640px) {
  .svc-photos { grid-template-columns: 1fr; }
  .svc-photos img,
  .svc-photos figure:first-child img { height: 200px; }
}

.svc-result {
  display: grid;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 900px) {
  .svc-result { grid-template-columns: 1fr 1fr; gap: 3rem; }
}
.svc-result__shot { margin: 0; }
.svc-result__shot img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(4, 11, 20, 0.16);
}
.svc-result__shot figcaption {
  margin-top: 0.85rem;
}
.svc-result__shot p { color: #64748b; margin-top: 0.25rem; }

.svc-steps { list-style: none; margin: 1.25rem 0 1.5rem; padding: 0; display: grid; gap: 1rem; }
.svc-steps li { display: flex; gap: 0.85rem; align-items: flex-start; }
.svc-steps__num {
  flex-shrink: 0;
  font-family: Outfit, system-ui, sans-serif;
  font-weight: 800;
  color: #f06a0a;
  font-size: 0.95rem;
  padding-top: 0.15rem;
}
.svc-steps strong { display: block; color: #0a1628; }
.svc-steps p { margin: 0.15rem 0 0; color: #475569; }

.svc-related {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
}
@media (min-width: 720px) {
  .svc-related { grid-template-columns: repeat(3, 1fr); }
}
.svc-related a {
  display: block;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(10, 22, 40, 0.08);
  color: #0a1628;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(4, 11, 20, 0.06);
}
.svc-related img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  display: block;
}
.svc-related span { display: block; padding: 0.75rem 0.9rem; }
.svc-related a:hover { border-color: #f06a0a; }
