/* ===========================
   Detail Pro Collective
   Brand: charcoal + gold
   =========================== */

:root {
  --bg: #141414;
  --bg-alt: #1c1c1e;
  --card: #212123;
  --gold: #d4af37;
  --gold-dark: #b8952e;
  --text: #f5f5f3;
  --text-muted: #a9a9ac;
  --border: #2d2d30;
  --radius: 10px;
  --max-width: 1140px;
  --font-head: 'Poppins', sans-serif;
  --font-body: 'Montserrat', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
}

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-dark); }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.25;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */
header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.brand svg { flex-shrink: 0; }
.brand span.accent { color: var(--gold); }

nav ul {
  list-style: none;
  display: flex;
  gap: 32px;
  align-items: center;
}

nav a {
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

nav a:hover, nav a.active { color: var(--gold); }

.nav-cta {
  background: var(--gold);
  color: #141414 !important;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 700;
}
.nav-cta:hover { background: var(--gold-dark); color: #141414 !important; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.6rem;
  cursor: pointer;
}

@media (max-width: 780px) {
  nav.primary-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
  }
  nav.primary-nav.open { display: block; }
  nav.primary-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 8px 0;
  }
  nav.primary-nav li { width: 100%; }
  nav.primary-nav a {
    display: block;
    padding: 14px 24px;
  }
  .nav-toggle { display: block; }
}

/* ---------- Hero ---------- */
.hero {
  padding: 90px 0 70px;
  text-align: center;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
}

.hero .eyebrow {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin-bottom: 18px;
}

.hero p {
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto 32px;
  font-size: 1.05rem;
}

.btn-row { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  border: 2px solid var(--gold);
  transition: all 0.15s ease;
}

.btn-primary { background: var(--gold); color: #141414; }
.btn-primary:hover { background: var(--gold-dark); border-color: var(--gold-dark); color: #141414; }

.btn-outline { background: transparent; color: var(--gold); }
.btn-outline:hover { background: var(--gold); color: #141414; }

/* ---------- Section generic ---------- */
section { padding: 70px 0; }
.section-alt { background: var(--bg-alt); }

.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.section-head .eyebrow {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 12px; }
.section-head p { color: var(--text-muted); }

/* ---------- Service cards (home teaser) ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
@media (max-width: 860px) { .grid-3 { grid-template-columns: 1fr; } }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.card img { width: 100%; height: 200px; object-fit: cover; display: block; }
.card-body { padding: 22px; }
.card-body h3 { font-size: 1.15rem; margin-bottom: 10px; }
.card-body p { color: var(--text-muted); font-size: 0.92rem; margin-bottom: 14px; }

/* ---------- Services list (services page) ---------- */
.service-list { display: flex; flex-direction: column; gap: 18px; }
.service-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  flex-wrap: wrap;
}
.service-row .info { flex: 1; min-width: 240px; }
.service-row h3 { font-size: 1.15rem; margin-bottom: 6px; }
.service-row .meta { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.04em; }
.service-row p.desc { color: var(--text-muted); font-size: 0.92rem; }
.service-row .price {
  font-family: var(--font-head);
  color: var(--gold);
  font-weight: 700;
  font-size: 1.3rem;
  white-space: nowrap;
  align-self: center;
}

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.gallery-grid img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}
@media (max-width: 700px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Testimonials ---------- */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 860px) { .testimonial-grid { grid-template-columns: 1fr; } }
.testimonial {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
}
.testimonial p.quote { color: var(--text-muted); font-size: 0.94rem; margin-bottom: 16px; }
.testimonial .author { font-family: var(--font-head); font-weight: 700; color: var(--gold); font-size: 0.9rem; }

/* ---------- Forms ---------- */
form.card-form {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  max-width: 620px;
  margin: 0 auto;
}
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.field input[type=text],
.field input[type=tel],
.field input[type=email],
.field textarea,
.field select {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 12px 14px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
}
.field textarea { resize: vertical; min-height: 100px; }
.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.checkbox-grid label {
  display: flex;
  align-items: center;
  gap: 8px;
  text-transform: none;
  font-size: 0.92rem;
  color: var(--text);
}
.radio-row { display: flex; gap: 24px; align-items: center; }
.radio-row label { display: flex; align-items: center; gap: 8px; text-transform: none; color: var(--text); font-size: 0.92rem; }

/* ---------- Two column ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }
.two-col img { width: 100%; border-radius: var(--radius); }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--gold);
  color: #141414;
  text-align: center;
  padding: 50px 24px;
  border-radius: var(--radius);
}
.cta-band h2 { color: #141414; margin-bottom: 10px; }
.cta-band p { color: #3a3a3a; margin-bottom: 22px; }
.cta-band .btn-primary { background: #141414; color: var(--gold); border-color: #141414; }
.cta-band .btn-primary:hover { background: #000; }

/* ---------- Footer ---------- */
footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 40px 0 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}
footer .brand { justify-content: center; margin-bottom: 12px; }
footer .foot-links { display: flex; gap: 20px; justify-content: center; margin: 14px 0; flex-wrap: wrap; }
footer .foot-links a { color: var(--text-muted); font-size: 0.85rem; }
footer .foot-links a:hover { color: var(--gold); }

/* ---------- Placeholder notice (dev only) ---------- */
.setup-note {
  background: #3a2f10;
  border: 1px solid var(--gold);
  color: #f0dca0;
  font-size: 0.82rem;
  padding: 10px 16px;
  border-radius: 6px;
  margin-bottom: 20px;
}

/* ---------- Exit-intent offer popup ---------- */
.offer-open, .offer-open body { overflow: hidden; }
.offer-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.offer-overlay.is-visible { opacity: 1; }
.offer-modal {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-top: 3px solid var(--gold);
  border-radius: 16px;
  padding: 40px 32px 28px;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
  transform: translateY(12px) scale(0.97);
  transition: transform 0.25s ease;
}
.offer-overlay.is-visible .offer-modal { transform: none; }
.offer-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: none;
  border: 0;
  border-radius: 50%;
  color: var(--text-muted);
  cursor: pointer;
}
.offer-close:hover { color: var(--text); background: var(--border); }
.offer-badge {
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--gold);
  color: #141414;
}
.offer-modal h2 { font-size: 1.7rem; margin-bottom: 8px; }
.offer-lead { color: var(--text-muted); font-size: 1.02rem; margin-bottom: 22px; }
.offer-lead strong { color: var(--gold); }
.offer-terms {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 24px;
}
.offer-terms h3 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin-bottom: 10px;
}
.offer-terms ul { list-style: none; display: grid; gap: 6px; font-size: 0.92rem; }
.offer-terms li::before { content: "\2713"; color: var(--gold); font-weight: 700; margin-right: 8px; }
.offer-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.offer-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 16px;
  border-radius: 999px;
  white-space: nowrap;
}
.offer-modal :focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.offer-fine { margin-top: 16px; font-size: 0.78rem; color: var(--text-muted); }
@media (max-width: 520px) {
  .offer-modal { padding: 36px 20px 22px; }
  .offer-modal h2 { font-size: 1.4rem; }
  .offer-actions { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .offer-overlay, .offer-modal { transition: none; }
}

/* ---------- Google reviews carousel ---------- */
.reviews-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 12px;
  margin: -20px 0 32px;
  text-align: center;
}
.reviews-summary strong { font-family: var(--font-head); font-size: 1.15rem; }
.reviews-count { flex-basis: 100%; color: var(--text-muted); font-size: 0.92rem; }
.review-stars { display: inline-flex; gap: 2px; color: var(--gold); }
.review-stars svg { width: 16px; height: 16px; fill: currentColor; }
.reviews-summary .review-stars svg { width: 22px; height: 22px; }

.reviews-carousel { position: relative; }
.reviews-track {
  list-style: none;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 48px) / 3);
  column-gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 4px 2px 8px;
}
.reviews-track::-webkit-scrollbar { display: none; }
.reviews-track:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; border-radius: var(--radius); }
@media (max-width: 960px) { .reviews-track { grid-auto-columns: calc((100% - 24px) / 2); } }
@media (max-width: 640px) { .reviews-track { grid-auto-columns: 88%; column-gap: 14px; } }

.review-card {
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 26px 24px 20px;
}
.review-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.review-avatar {
  flex: none;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #141414;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.15rem;
}
.review-avatar { position: relative; overflow: hidden; }
.review-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.review-name { font-family: var(--font-head); font-weight: 600; margin-bottom: 2px; }
.review-text {
  color: var(--text-muted);
  font-size: 0.93rem;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 7;
  overflow: hidden;
  margin-bottom: 18px;
}
.review-card.expanded .review-text { -webkit-line-clamp: unset; }
.review-more {
  align-self: flex-start;
  margin: -12px 0 18px;
  background: none;
  border: 0;
  padding: 2px 0;
  color: var(--gold);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}
.review-more[hidden] { display: none; }
.review-source {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.8rem;
}
.review-source svg { width: 18px; height: 18px; }

.reviews-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-alt);
  color: var(--gold);
  font-size: 1.8rem;
  line-height: 1;
  padding-bottom: 4px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}
.reviews-nav:hover { border-color: var(--gold); }
.reviews-nav.prev { left: -22px; }
.reviews-nav.next { right: -22px; }
@media (max-width: 1200px) { .reviews-nav.prev { left: -6px; } .reviews-nav.next { right: -6px; } }
@media (max-width: 640px) { .reviews-nav { display: none; } }

.reviews-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 24px;
  font-size: 0.9rem;
}
.reviews-pause {
  background: none;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 16px;
  color: var(--text-muted);
  font: inherit;
  font-size: 0.8rem;
  cursor: pointer;
}
.reviews-pause:hover { color: var(--text); border-color: var(--text-muted); }
