/* ============================================================
   Best Handyman Tucson — Interactive Project Map  (v2 redesign)
   Dark navy + brand orange. Real Mapbox basemap, explorer panel.
   Orange sampled from the logo star: #ED6C17.
   ============================================================ */

:root {
  --navy-deep: #0f2033;
  --navy: #13273d;
  --surface: #1a3049;
  --surface-2: #21395530;
  --line: rgba(255, 255, 255, 0.10);
  --line-strong: rgba(255, 255, 255, 0.16);
  --orange: #ed6c17;
  --orange-deep: #c9570f;
  --orange-soft: rgba(237, 108, 23, 0.14);
  --cream: #f5f1e8;
  --steel: #9db0c2;
  --card: #fdfcf9;
  --card-ink: #16293d;
  --card-muted: #55636f;
  --card-line: rgba(22, 41, 61, 0.12);
  --green: #62a06a;
  --shadow: 0 14px 40px rgba(4, 10, 18, 0.45);
  --radius: 16px;
  --font-sans: "Familjen Grotesk", "Trebuchet MS", system-ui, sans-serif;
  --font-hand: "Caveat", "Segoe Script", cursive;
  --header-h: 68px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--cream);
  background: var(--navy-deep);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--steel); }
h1, h2, h3, h4 { line-height: 1.12; margin: 0 0 0.5em; }
[hidden] { display: none !important; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 22px; }

/* ---------------- header ---------------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 1200;
  height: var(--header-h);
  display: flex; align-items: center;
  background: rgba(15, 32, 51, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { width: 100%; display: flex; align-items: center; gap: 18px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--cream); }
.brand img { height: 46px; width: auto; }
.brand span { font-weight: 700; font-size: 1.02rem; }
.main-nav { display: flex; gap: 22px; margin-left: auto; }
.main-nav a { text-decoration: none; color: var(--steel); font-weight: 600; font-size: 0.95rem; transition: color 0.15s; }
.main-nav a:hover { color: var(--cream); }
.header-phone { text-decoration: none; font-weight: 700; color: var(--cream); white-space: nowrap; }

.btn {
  display: inline-block; border: 0; cursor: pointer; text-decoration: none;
  font-family: var(--font-sans); font-weight: 700; font-size: 1rem;
  padding: 13px 24px; border-radius: 10px; transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: var(--orange); color: #fff;
  box-shadow: 0 6px 20px rgba(237, 108, 23, 0.35);
}
.btn-primary:hover { background: var(--orange-deep); box-shadow: 0 8px 26px rgba(237, 108, 23, 0.45); }
.btn-ghost {
  background: transparent; color: var(--cream); border: 1.5px solid var(--line-strong);
}
.btn-ghost:hover { border-color: var(--cream); }
.btn-sm { padding: 9px 16px; font-size: 0.9rem; border-radius: 8px; }

/* ---------------- hero ---------------- */
.hero { padding: calc(var(--header-h) + 22px) 0 32px; background:
  radial-gradient(1100px 480px at 55% 0%, rgba(38, 66, 97, 0.5), transparent 60%),
  var(--navy-deep);
}
.hero-grid {
  display: grid; grid-template-columns: 1fr;
  gap: 18px;
}
.hero-copy { max-width: none; }
.hero-copy .kicker { font-size: clamp(1.85rem, 3.8vw, 3rem); line-height: 1.02; margin-bottom: 14px; }
.hero-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 48px; flex-wrap: wrap; }
.hero-row .hero-title { margin: 0; }
.hero-actions { flex: 0 1 460px; display: flex; flex-direction: column; align-items: flex-start; }
.kicker {
  font-family: var(--font-hand); color: var(--orange); font-size: 1.45rem;
  display: block; margin-bottom: 4px;
}
.hero-title {
  font-size: clamp(2.1rem, 4.2vw, 3.1rem); letter-spacing: -0.015em;
  color: var(--cream); font-weight: 800;
}
.hero-title .accent { color: var(--orange); }
.hero-sub { color: var(--steel); font-size: 1.08rem; max-width: none; margin: 0 0 18px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.trust-line { display: flex; align-items: center; gap: 8px; color: var(--steel); font-weight: 600; font-size: 0.95rem; }
.trust-line svg { width: 18px; height: 18px; fill: var(--orange); flex-shrink: 0; }

/* ---------------- map ---------------- */
.hero-map {
  position: relative; height: min(660px, calc(100svh - var(--header-h) - 90px));
  min-height: 480px;
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow);
  background: var(--navy);
  container-type: inline-size;
}
#map { position: absolute; inset: 0; }
#map canvas { outline: none; }
.mapboxgl-ctrl-top-right, .maplibregl-ctrl-top-right { top: 10px; right: 10px; }
.mapboxgl-ctrl-group, .maplibregl-ctrl-group {
  background: var(--surface) !important; border-radius: 10px !important;
  box-shadow: 0 4px 14px rgba(0,0,0,0.4) !important;
}
.mapboxgl-ctrl-group button, .maplibregl-ctrl-group button { background: transparent !important; }
.mapboxgl-ctrl-group button + button, .maplibregl-ctrl-group button + button { border-top: 1px solid var(--line) !important; }
.mapboxgl-ctrl-icon { filter: invert(0.9); }
.maplibregl-ctrl-group button .maplibregl-ctrl-zoom-in-icon,
.maplibregl-ctrl-group button .maplibregl-ctrl-zoom-out-icon { filter: invert(0.9); }

/* map markers (HTML markers, shared by mapbox/maplibre) */
.mk { cursor: pointer; }
.mk-area {
  position: relative;
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(26, 48, 73, 0.94);
  border: 2.5px solid rgba(245, 241, 232, 0.85);
  color: var(--cream); font: 800 1.05rem var(--font-sans);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
  transition: transform 0.15s, background 0.15s, border-color 0.15s;
}
.mk:hover .mk-area, .mk.is-active .mk-area {
  background: var(--orange); border-color: #fff; transform: scale(1.12);
}
.mk-neigh .mk-area { width: 36px; height: 36px; font-size: 0.9rem; border-width: 2px; background: rgba(33, 57, 85, 0.92); }
.mk-label {
  position: absolute; top: calc(100% + 6px); left: 50%; transform: translateX(-50%);
  background: rgba(10, 22, 36, 0.92); color: var(--cream);
  font: 600 0.76rem var(--font-sans); letter-spacing: 0.02em;
  padding: 3px 10px; border-radius: 999px; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity 0.15s;
}
.mk:hover .mk-label, .mk.is-active .mk-label { opacity: 1; }
.mk-fav {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--fc, var(--surface));
  border: 2px solid rgba(255, 255, 255, 0.9);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  transition: transform 0.15s;
}
.mk:hover .mk-fav, .mk.is-active .mk-fav { transform: scale(1.18); }
.mk-fav svg { width: 15px; height: 15px; fill: #fff; }
.mk--food .mk-fav { --fc: #c0563b; }
.mk--historic .mk-fav { --fc: #8a6a9b; }
.mk--parks .mk-fav { --fc: #4e7a4f; }
.mk--business .mk-fav { --fc: #2e6e6a; }
.mk--landmarks .mk-fav { --fc: #c98a2c; }
/* zoomed-out: hide detail markers — unless they belong to the selected area */
.zoom-far .mk-neigh, .zoom-far .mk-favwrap { display: none; }
.zoom-far .mk.force-show { display: block; }

/* filter chips over the map */
.map-filters {
  position: absolute; z-index: 30; left: 14px; right: 64px; bottom: 14px;
  display: flex; gap: 8px; flex-wrap: wrap;
}
.chip {
  border: 1px solid var(--line-strong); cursor: pointer;
  background: rgba(15, 32, 51, 0.85); color: var(--cream);
  backdrop-filter: blur(6px);
  font-family: var(--font-sans); font-weight: 600; font-size: 0.85rem;
  padding: 8px 14px; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 7px;
  transition: all 0.15s; white-space: nowrap;
}
.chip .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--c, var(--steel)); }
.chip[aria-pressed="true"] { background: var(--orange); border-color: var(--orange); color: #fff; }
.chip[aria-pressed="true"] .dot { background: #fff; }
.chip:hover { transform: translateY(-1px); }

.map-reset {
  position: absolute; z-index: 30; right: 14px; bottom: 14px;
  background: rgba(15, 32, 51, 0.85); border: 1px solid var(--line-strong); border-radius: 10px;
  width: 42px; height: 42px; cursor: pointer; backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
}
.map-reset svg { width: 20px; height: 20px; fill: var(--cream); }
.map-reset:hover { border-color: var(--cream); }

/* ---------------- explorer panel (slides over the map) ---------------- */
.explorer {
  position: absolute; z-index: 40; top: 14px; left: 14px; bottom: 14px;
  width: min(380px, calc(100% - 28px));
  background: var(--card); color: var(--card-ink);
  border-radius: 14px; box-shadow: var(--shadow);
  display: flex; flex-direction: column;
  transform: translateX(calc(-100% - 30px));
  transition: transform 0.32s cubic-bezier(0.2, 0.8, 0.25, 1);
}
.explorer.open { transform: translateX(0); }
.explorer-head {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 14px; border-bottom: 1px solid var(--card-line);
}
.exp-back {
  border: none; background: none; cursor: pointer; padding: 6px 8px;
  font: 700 0.86rem var(--font-sans); color: var(--orange-deep);
  display: inline-flex; align-items: center; gap: 4px; border-radius: 8px;
}
.exp-back:hover { background: var(--orange-soft); }
.explorer-head .spacer { flex: 1; }
.exp-close {
  border: none; background: rgba(22, 41, 61, 0.08); color: var(--card-ink);
  width: 32px; height: 32px; border-radius: 50%; cursor: pointer; font-size: 1rem; line-height: 1;
}
.explorer-body { padding: 16px 18px 18px; overflow-y: auto; flex: 1; overscroll-behavior: contain; }
.explorer-cta { padding: 12px 16px; border-top: 1px solid var(--card-line); }
.explorer-cta .btn { width: 100%; text-align: center; }
.explorer-handle { display: none; }

.exp-eyebrow {
  display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--orange-deep);
  background: var(--orange-soft); padding: 4px 10px; border-radius: 999px; margin: 0 6px 8px 0;
}
.exp-eyebrow--muted { color: var(--card-muted); background: rgba(22, 41, 61, 0.07); }
.explorer-body h3 { font-size: 1.3rem; color: var(--card-ink); margin: 0 0 4px; }
.explorer-body .exp-sub { color: var(--card-muted); font-size: 0.93rem; margin: 0 0 14px; }
.explorer-body p { color: #3d4c5c; font-size: 0.95rem; }

.exp-section {
  margin: 18px 0 0;
}
.exp-section > h4 {
  font-size: 0.78rem; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--card-muted); margin: 0 0 8px;
  display: flex; align-items: center; gap: 8px;
}
.exp-section > h4 .sdot { width: 9px; height: 9px; border-radius: 50%; background: var(--c, var(--orange)); }
.exp-list { list-style: none; margin: 0; padding: 0; }
.exp-list li { margin-bottom: 8px; }
.exp-row {
  width: 100%; display: flex; gap: 11px; align-items: center; text-align: left; cursor: pointer;
  background: #fff; border: 1px solid var(--card-line); border-radius: 11px;
  padding: 9px 11px; font-family: var(--font-sans); color: var(--card-ink);
  transition: border-color 0.15s, transform 0.15s;
}
.exp-row:hover { border-color: var(--orange); transform: translateX(2px); }
.exp-row img { width: 52px; height: 52px; object-fit: cover; border-radius: 8px; flex-shrink: 0; background: #e8e4da; }
.exp-row .noimg {
  width: 52px; height: 52px; border-radius: 8px; flex-shrink: 0;
  background: var(--orange-soft); color: var(--orange-deep);
  display: flex; align-items: center; justify-content: center;
}
.exp-row .noimg svg { width: 22px; height: 22px; fill: currentColor; }
.exp-row strong { display: block; font-size: 0.95rem; line-height: 1.25; }
.exp-row small { color: var(--card-muted); font-size: 0.8rem; }
.exp-row .go { margin-left: auto; color: var(--orange); font-weight: 800; }

/* detail view inside explorer */
.exp-hero { margin: -16px -18px 14px; }
.exp-hero img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.explorer-body blockquote {
  margin: 12px 0; padding: 12px 16px; background: rgba(22, 41, 61, 0.06);
  border-left: 3px solid var(--orange); border-radius: 0 10px 10px 0;
  font-style: italic; color: #3d4c5c;
}
.explorer-body .why {
  background: var(--orange-soft); border-left: 3px solid var(--orange);
  border-radius: 0 10px 10px 0; padding: 10px 14px; margin: 12px 0;
}
.explorer-body .why strong { font-family: var(--font-hand); font-size: 1.25rem; color: var(--orange-deep); display: block; }
.privacy-note { color: var(--card-muted); font-size: 0.83rem; font-style: italic; }
.exp-link { color: var(--orange-deep); font-weight: 700; text-decoration: none; }
.exp-link:hover { text-decoration: underline; }

/* before/after + gallery (in explorer detail) */
.ba-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 10px; }
.ba-pair figure { margin: 0; position: relative; }
.ba-pair img, .gallery img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px;
  border: 1px solid var(--card-line); background: #e8e4da;
}
.ba-pair figcaption {
  position: absolute; top: 8px; left: 8px;
  background: var(--card-ink); color: #fff; font-size: 0.7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em; padding: 3px 9px; border-radius: 999px;
}
.ba-pair figure.after figcaption { background: var(--green); }
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 0 0 12px; }
.zoomable { cursor: zoom-in; }

/* restore tab when panel is hidden */
.explorer-restore {
  position: absolute; z-index: 35; top: 14px; left: 14px;
  border: 1px solid var(--line-strong); background: rgba(15, 32, 51, 0.88);
  color: var(--cream); font: 700 0.88rem var(--font-sans);
  padding: 10px 16px; border-radius: 999px; cursor: pointer; backdrop-filter: blur(6px);
}
.explorer-restore:hover { border-color: var(--cream); }

/* narrow map column (small desktop): panel becomes a bottom sheet inside the map */
@container (max-width: 619px) {
  .explorer {
    top: auto; left: 0; right: 0; bottom: 0; width: 100%;
    max-height: 68%; border-radius: 18px 18px 0 0;
    transform: translateY(110%);
  }
  .explorer.open { transform: translateY(0); }
  .explorer-handle {
    display: block; width: 44px; height: 5px; border-radius: 99px;
    background: var(--card-line); margin: 9px auto 0; flex-shrink: 0;
  }
  .explorer-restore { top: auto; bottom: 64px; left: 12px; }
  .map-filters {
    left: 0; right: 0; padding: 0 12px;
    flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .map-filters::-webkit-scrollbar { display: none; }
  .map-reset { bottom: 64px; }
}

/* ---------------- page sections ---------------- */
.section { padding: 72px 0; }
.section-tint { background: var(--navy); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section .kicker { font-size: 1.5rem; }
.section h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); color: var(--cream); letter-spacing: -0.01em; }
.section .lede { color: var(--steel); max-width: 640px; margin-bottom: 34px; font-size: 1.04rem; }
.section-head-row { display: flex; align-items: end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.view-all { color: var(--orange); font-weight: 700; text-decoration: none; white-space: nowrap; }
.view-all:hover { text-decoration: underline; }

/* white project cards (mockup style) */
.card-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.proj-card {
  background: var(--card); color: var(--card-ink);
  border-radius: 14px; overflow: hidden; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform 0.18s, box-shadow 0.18s;
  display: flex; flex-direction: column; text-align: left;
  font-family: var(--font-sans); padding: 0;
}
.proj-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.proj-thumb { aspect-ratio: 4 / 3; background: #223a54; overflow: hidden; }
.proj-thumb img { width: 100%; height: 100%; object-fit: cover; }
.proj-thumb .thumb-fallback {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  color: rgba(245, 241, 232, 0.5);
}
.proj-thumb .thumb-fallback svg { width: 42px; height: 42px; fill: currentColor; }
.proj-card .proj-body { padding: 14px 16px 16px; }
.proj-card .cat {
  font-size: 0.7rem; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--orange-deep); display: block; margin-bottom: 4px;
}
.proj-card h3 { font-size: 1.05rem; margin: 0 0 2px; color: var(--card-ink); }
.proj-card .area { color: var(--card-muted); font-size: 0.88rem; }

/* dark cards (areas, favorites) */
.dark-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 20px; display: flex; flex-direction: column;
  transition: transform 0.18s, border-color 0.18s;
}
.dark-card:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.dark-card h3 { font-size: 1.1rem; color: var(--cream); margin-bottom: 6px; }
.dark-card p { color: var(--steel); font-size: 0.93rem; margin: 0 0 12px; flex: 1; }
.dark-card .card-link {
  font-weight: 700; font-size: 0.92rem; color: var(--orange); text-decoration: none;
  cursor: pointer; background: none; border: none; padding: 0; text-align: left; font-family: var(--font-sans);
}
.dark-card .card-link:hover { text-decoration: underline; }
.dark-card .card-thumb {
  margin: -20px -20px 14px; border-radius: 14px 14px 0 0; overflow: hidden;
  aspect-ratio: 16 / 9; background: #223a54;
}
.dark-card .card-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* trust badges */
.trust-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.trust-item { display: flex; gap: 14px; align-items: flex-start; }
.trust-item .ticon {
  width: 46px; height: 46px; border-radius: 50%; flex-shrink: 0;
  border: 1.5px solid var(--orange); color: var(--orange);
  display: flex; align-items: center; justify-content: center;
}
.trust-item .ticon svg { width: 22px; height: 22px; fill: currentColor; }
.trust-item strong { display: block; color: var(--cream); font-size: 1.02rem; margin-bottom: 2px; }
.trust-item span { color: var(--steel); font-size: 0.9rem; }

/* services */
.svc-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.svc {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 15px 16px;
}
.svc svg { width: 25px; height: 25px; fill: var(--orange); flex-shrink: 0; margin-top: 2px; }
.svc strong { display: block; color: var(--cream); }
.svc span { color: var(--steel); font-size: 0.88rem; }

/* why us */
.why-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.why-item { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.why-item .num { font-family: var(--font-hand); font-size: 2rem; color: var(--orange); line-height: 1; }
.why-item h3 { font-size: 1.05rem; margin: 6px 0 4px; color: var(--cream); }
.why-item p { color: var(--steel); font-size: 0.92rem; margin: 0; }

/* serving-areas strip */
.area-strip {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 28px; display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
}
.area-strip .strip-icon { color: var(--orange); flex-shrink: 0; }
.area-strip .strip-icon svg { width: 30px; height: 30px; fill: currentColor; }
.area-strip .strip-copy { flex: 1; min-width: 260px; }
.area-strip strong { color: var(--cream); display: block; font-size: 1.08rem; margin-bottom: 6px; }
.area-pills { display: flex; flex-wrap: wrap; gap: 6px 4px; }
.area-pills button {
  background: none; border: none; cursor: pointer; padding: 3px 8px;
  font: 600 0.9rem var(--font-sans); color: var(--steel); border-radius: 999px;
}
.area-pills button:hover { color: var(--orange); background: var(--orange-soft); }

/* FAQ */
.faq { max-width: 780px; }
.faq details {
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  padding: 0 20px; margin-bottom: 12px;
}
.faq summary {
  cursor: pointer; font-weight: 700; color: var(--cream); padding: 16px 30px 16px 0; font-size: 1.02rem;
  list-style: none; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 2px; top: 50%; transform: translateY(-50%);
  font-size: 1.4rem; color: var(--orange); font-weight: 400;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 16px; color: var(--steel); }

/* ---------------- estimate / contact form (same as the main site) ---------------- */
.contact { padding: 80px 0; background: #0F2340; font-family: 'Inter', sans-serif; }
.contact .container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact .section-tag {
  display: inline-block; text-transform: uppercase; letter-spacing: 0.1em;
  font-size: 0.8rem; font-weight: 700; color: #F59E4B; margin-bottom: 12px;
}
.contact-info h2 { font-family: 'DM Serif Display', serif; font-weight: 400; font-size: 2.2rem; margin-bottom: 16px; color: #fff; }
.contact-info-text { font-size: 1rem; color: rgba(255,255,255,0.75); line-height: 1.7; margin-bottom: 32px; }
.contact-detail { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 24px; }
.contact-detail-icon {
  width: 44px; height: 44px; background: rgba(232,119,34,0.15); border-radius: 10px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.contact-detail-icon svg { width: 20px; height: 20px; stroke: #E87722; fill: none; stroke-width: 1.5; }
.contact-detail-text strong { display: block; font-size: 0.85rem; color: #fff; margin-bottom: 2px; }
.contact-detail-text span { font-size: 0.9rem; color: rgba(255,255,255,0.7); }
.contact-detail-text a { color: #F59E4B; text-decoration: none; }
.contact-form-wrapper {
  background: #fff; border-radius: 16px; padding: 40px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2); font-family: 'Inter', sans-serif;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 0.82rem; font-weight: 600; color: #0F2340; text-transform: uppercase; margin-bottom: 6px; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 14px 16px; border: 1px solid rgba(15,35,64,0.12); border-radius: 8px;
  font-size: 16px; color: #0F2340; background: #fff; font-family: 'Inter', sans-serif;
  transition: border-color 0.2s ease, box-shadow 0.2s ease; -webkit-appearance: none;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none; border-color: #E87722; box-shadow: 0 0 0 3px rgba(232,119,34,0.1);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group select {
  appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23718096' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.form-checkbox { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 20px; }
.form-checkbox input[type="checkbox"] { width: 18px; height: 18px; margin-top: 3px; flex-shrink: 0; accent-color: #E87722; }
.form-checkbox label { font-size: 0.78rem; color: #718096; line-height: 1.5; }
.form-checkbox label a { color: #E87722; text-decoration: underline; }
.form-submit {
  width: 100%; padding: 16px 32px; background: #E87722; color: #fff; font-weight: 600;
  font-size: 1rem; border: none; border-radius: 8px; cursor: pointer;
  font-family: 'Inter', sans-serif; transition: background 0.3s ease;
}
.form-submit:hover { background: #D06A1E; }
.form-submit:disabled { opacity: 0.7; cursor: not-allowed; }

/* footer — shared site footer (matches the rest of besthandymantucson.com) */
.footer {
  background: #091829; color: rgba(255,255,255,0.7);
  padding: 80px 0 0; font-family: 'Inter', sans-serif;
}
.footer .container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.footer-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 40px; margin-bottom: 48px; text-align: center;
}
.footer-brand { display: flex; flex-direction: column; align-items: center; text-align: center; }
.footer-brand img { height: 56px; width: auto; margin-bottom: 12px; }
.footer-brand-name { font-family: 'DM Serif Display', serif; font-size: 1.3rem; color: #fff; margin-bottom: 12px; }
.footer-brand p { font-size: 0.85rem; line-height: 1.6; }
.footer-social { display: flex; gap: 12px; margin-top: 16px; flex-wrap: wrap; justify-content: center; }
.footer-social a {
  width: 48px; height: 48px; background: rgba(255,255,255,0.06); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.7);
  transition: background 0.3s ease, transform 0.2s ease;
}
.footer-social a:hover { background: #E87722; transform: translateY(-3px); }
.footer-social a svg { width: 20px; height: 20px; fill: currentColor; }
.footer h4 { font-family: 'DM Serif Display', serif; font-size: 1rem; color: #fff; margin-bottom: 20px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 0.88rem; color: rgba(255,255,255,0.5); text-decoration: none; transition: color 0.2s ease; }
.footer-links a:hover { color: #E87722; }
.footer-links span { font-size: 0.85rem; color: rgba(255,255,255,0.55); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08); padding: 24px 0; text-align: center; font-size: 0.8rem;
}
.footer-bottom a { color: rgba(255,255,255,0.7); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-social { justify-content: center; }
  .footer { padding: 60px 0 0; }
}

/* sticky mobile CTA */
.sticky-cta { position: fixed; z-index: 1300; left: 12px; right: 12px; bottom: 12px; display: none; gap: 10px; }
.sticky-cta .btn { flex: 1; text-align: center; padding: 15px; font-size: 1.02rem; border-radius: 12px; }
.sticky-cta .btn-call { flex: 0 0 auto; background: var(--surface); border: 1px solid var(--line-strong); color: var(--cream); display: flex; align-items: center; }

/* lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 2000; display: none;
  align-items: center; justify-content: center;
  background: rgba(5, 11, 18, 0.94); padding: 24px;
}
.lightbox.open { display: flex; }
.lightbox .lb-img {
  max-width: 94vw; max-height: 88vh; width: auto; height: auto;
  border-radius: 8px; box-shadow: 0 16px 50px rgba(0, 0, 0, 0.6);
  cursor: zoom-out; background: var(--surface);
}
.lb-close, .lb-prev, .lb-next {
  position: absolute; border: none; cursor: pointer; color: #fff;
  background: rgba(245, 241, 232, 0.14); border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s; line-height: 1;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: rgba(245, 241, 232, 0.3); }
.lb-close { top: 18px; right: 18px; width: 46px; height: 46px; font-size: 1.3rem; }
.lb-prev, .lb-next { top: 50%; transform: translateY(-50%); width: 54px; height: 54px; font-size: 2.2rem; }
.lb-prev { left: 16px; }
.lb-next { right: 16px; }

/* ---------------- mobile ---------------- */
@media (max-width: 900px) {
  .main-nav { display: none; }
  .header-phone { margin-left: auto; }
  .site-header .btn { display: none; }
  .brand span { display: none; }
  .brand img { height: 42px; }

  .hero { padding-top: calc(var(--header-h) + 26px); padding-bottom: 40px; }
  .hero-grid { grid-template-columns: 1fr; gap: 18px; }
  .hero-row { flex-direction: column; align-items: flex-start; gap: 16px; }
  .hero-actions { flex-basis: auto; }
  .hero-sub { max-width: none; }
  .hero-map { height: 70svh; min-height: 440px; }

  .mapboxgl-ctrl-top-right, .maplibregl-ctrl-top-right { display: none; } /* pinch zoom is native */

  .map-filters {
    left: 0; right: 0; bottom: 12px; padding: 0 12px;
    flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .map-filters::-webkit-scrollbar { display: none; }
  .chip { padding: 10px 15px; font-size: 0.9rem; }
  .map-reset { bottom: 64px; }

  /* explorer becomes a bottom sheet */
  .explorer {
    top: auto; left: 0; right: 0; bottom: 0; width: 100%;
    max-height: 68%; border-radius: 18px 18px 0 0;
    transform: translateY(110%);
  }
  .explorer.open { transform: translateY(0); }
  .explorer-handle {
    display: block; width: 44px; height: 5px; border-radius: 99px;
    background: var(--card-line); margin: 9px auto 0; flex-shrink: 0;
  }
  .explorer-restore { top: auto; bottom: 64px; left: 12px; }
  .exp-hero { margin-top: -16px; }

  .sticky-cta { display: flex; }
  .section { padding: 52px 0; }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .contact { padding: 60px 0; }
  .contact-form-wrapper { padding: 24px; }
  .area-strip { padding: 20px; }

  .lb-prev, .lb-next { top: auto; bottom: 22px; transform: none; width: 48px; height: 48px; }
  .lb-prev { left: 24px; }
  .lb-next { right: 24px; }
  .lb-close { top: 14px; right: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .explorer, .proj-card, .dark-card, .chip, .mk-area, .mk-fav { transition: none; }
}
