/* ============================================
   Landing page + live reviews (layered on style.css)
   ============================================ */

/* Anchors land below the fixed 76px header */
[id] { scroll-margin-top: 92px; }
#quote, .wizard-card { scroll-margin-top: 92px; }

.btn-sm { padding: 10px 18px; min-height: 42px; font-size: 13px; }
.header-book { display: none; }
@media (min-width: 768px) { .header-book { display: inline-flex; } }

.main-nav a[aria-current="page"] { color: var(--text); }
.main-nav a[aria-current="page"]::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--accent);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-5);
}
.cta-row .btn svg { width: 18px; height: 18px; }
@media (max-width: 479px) { .cta-row .btn { width: 100%; } }

.center-actions { display: flex; justify-content: center; margin-top: var(--space-6); }

.container.narrow { max-width: 860px; }

/* ---------- Hero ---------- */
.lp-hero .hero-copy h1 .chrome-text { display: block; }
.lp-hero .trust-row { list-style: none; gap: var(--space-4) var(--space-5); }

.rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(10, 11, 12, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 8px 16px 8px 8px;
  font-size: 13.5px;
  font-weight: 600;
  transition: border-color 200ms var(--ease), background 200ms var(--ease);
}
.rating-badge:hover { border-color: var(--chrome-2); background: rgba(255,255,255,0.06); }
.rating-badge .stars { color: #ffc94d; letter-spacing: 1px; }
.rating-badge .rating-sep { color: var(--text-faint); }

.g-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 50%;
  background: #fff; color: #4285f4;
  font-family: Arial, sans-serif; font-weight: 700; font-size: 15px;
  flex-shrink: 0;
}
.g-mark.small { width: 22px; height: 22px; font-size: 13px; }

/* ---------- Live dot ---------- */
.live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6);
  animation: livePulse 2s infinite;
}
.eyebrow .live-dot + * { margin-left: 0; }
.eyebrow:has(.live-dot)::before { display: none; }
@keyframes livePulse {
  0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.55); }
  70% { box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

/* ---------- Review cards ---------- */
.reviews-strip { padding: var(--space-8) 0; background: var(--bg-elevated); }

.review-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}
@media (min-width: 768px) { .review-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .review-grid { grid-template-columns: repeat(3, 1fr); } }
.review-grid.is-fallback { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }

.review-card {
  background: var(--bg-elevated-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  min-width: 0;
}
.page-reviews .review-card { background: var(--bg-elevated); }

.review-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.review-author { display: flex; align-items: center; gap: 12px; min-width: 0; }
a.review-author:hover .name { text-decoration: underline; }
.review-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.review-meta { display: flex; flex-direction: column; min-width: 0; }
.review-meta .name { font-weight: 700; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.review-meta .when { font-size: 12.5px; color: var(--text-faint); }

.review-card .stars { color: #ffc94d; letter-spacing: 2px; font-size: 16px; }
.review-card .quote { font-size: 15px; line-height: 1.7; color: var(--text); overflow-wrap: anywhere; }
.review-card .quote.muted { color: var(--text-muted); font-style: italic; }
.review-card.clamped .quote {
  display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden;
}
.review-card.clamped.expanded .quote { display: block; -webkit-line-clamp: unset; }
.read-more {
  align-self: flex-start; background: none; border: none; padding: 4px 0;
  color: var(--accent); font-weight: 700; font-size: 13.5px; cursor: pointer;
}

.review-fallback { align-items: center; text-align: center; }

.review-card.skeleton {
  min-height: 210px;
  background:
    linear-gradient(100deg, transparent 30%, rgba(255,255,255,0.05) 50%, transparent 70%) var(--bg-elevated-2);
  background-size: 200% 100%;
  animation: shimmer 1.4s linear infinite;
}
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- How it works ---------- */
.how-it-works { padding: var(--space-8) 0; background: var(--bg-elevated); }
.steps-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: 1fr; gap: var(--space-4);
  counter-reset: none;
}
@media (min-width: 768px) { .steps-grid { grid-template-columns: repeat(3, 1fr); } }
.step-card {
  background: var(--bg-elevated-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
}
.step-num {
  font-family: var(--font-display);
  font-size: 2.6rem;
  line-height: 1;
  background: linear-gradient(160deg, #ffffff 0%, #8b939d 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.step-card h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin-top: var(--space-3);
}
.step-card p { color: var(--text-muted); margin-top: var(--space-2); }

/* ---------- FAQ ---------- */
.faq { padding: var(--space-8) 0; }
.faq-list { display: flex; flex-direction: column; gap: var(--space-3); }
.faq-item {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0 var(--space-4);
  transition: border-color 200ms var(--ease);
}
.faq-item[open] { border-color: var(--border-strong); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: var(--space-4) 0;
  font-weight: 700;
  font-size: 1.05rem;
  display: flex; justify-content: space-between; align-items: center; gap: var(--space-3);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; font-size: 1.5rem; line-height: 1; color: var(--accent);
  transition: transform 200ms var(--ease); flex-shrink: 0;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { color: var(--text-muted); padding-bottom: var(--space-4); }

/* Alternate backgrounds after FAQ */
.lp-hero ~ .service-area, #main .service-area { background: var(--bg-elevated); }

/* ---------- Final CTA ---------- */
.final-cta { padding: var(--space-8) 0; }
.final-cta-card {
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: var(--space-7) var(--space-4);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(188,214,236,0.14), transparent 65%),
    var(--bg-elevated);
  box-shadow: var(--shadow-glow);
}
.final-cta-card .cta-row { justify-content: center; }

/* ---------- Reviews page ---------- */
.reviews-hero {
  padding: 140px 0 var(--space-6);
  background: radial-gradient(ellipse at 20% 0%, rgba(188,214,236,0.12), transparent 60%);
}
.page-title { font-size: clamp(2.8rem, 7vw, 4.6rem); }
.rating-summary {
  display: flex; align-items: center; gap: var(--space-4);
  margin-top: var(--space-5);
}
.rating-big {
  font-family: var(--font-display);
  font-size: clamp(4.5rem, 12vw, 6.5rem);
  line-height: 0.9;
  background: linear-gradient(160deg, #ffffff 0%, #aab1ba 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stars-lg { color: #ffc94d; font-size: 1.6rem; letter-spacing: 3px; }
.rating-meta { color: var(--text-muted); margin-top: 4px; }
.rating-meta b { color: var(--text); }
.rating-updated { color: var(--text-faint); font-size: 13px; margin-top: 2px; }

.reviews-list { padding: var(--space-6) 0 var(--space-8); }
.toolbar { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-bottom: var(--space-4); }
.toolbar .field-label { margin: 0; }
.toolbar select { width: auto; min-width: 170px; }
.reviews-note { margin-top: var(--space-5); text-align: center; color: var(--text-faint); font-size: 14px; }
.reviews-note a { color: var(--accent); font-weight: 600; }

.leave-review { padding-top: 0; background: transparent; }

/* Leave room for the mobile sticky bar */
@media (max-width: 1023px) { body { padding-bottom: 76px; } }

/* Fixes */
.ba-figure { margin: 0; }                     /* browser default figure margin was shrinking before/after photos */
.sticky-cta .btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.sticky-cta .btn { white-space: nowrap; padding-left: 16px; padding-right: 16px; }
@media (min-width: 1024px) {
  .lp-hero [data-scroll-quote] { display: none; } /* wizard sits right beside the copy on desktop */
  .lp-hero .hero-copy h1 { font-size: clamp(3rem, 5.2vw, 4.6rem); }
}
h1.page-title {
  font-family: var(--font-display);
  text-transform: uppercase;
  line-height: 1;
  letter-spacing: 0.01em;
  color: var(--chrome-1);
  margin-top: var(--space-2);
}
.toolbar select {
  background: var(--bg-elevated);
  color: var(--text);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  font: inherit;
  font-size: 14px;
}

/* ---------- Animated hero ambience ---------- */
.lp-hero .hero-bg { overflow: hidden; }
.lp-hero .hero-bg img {
  transform-origin: 30% 55%;
  animation: heroDrift 28s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes heroDrift {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to   { transform: scale(1.12) translate3d(-1.5%, -1%, 0); }
}
.hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0; transition: opacity 900ms var(--ease);
}
.hero-bg.has-video .hero-video { opacity: 1; }
.hero-bg.has-video img { opacity: 0; transition: opacity 900ms var(--ease); }
.hero-fx {
  position: absolute; inset: 0; z-index: 1;
  pointer-events: none;
  mix-blend-mode: normal;
}
/* keep the copy and quote form above the effects */
.lp-hero .container { z-index: 3; }
@media (prefers-reduced-motion: reduce) {
  .lp-hero .hero-bg img { animation: none; }
}

/* Package "learn more" */
.pkg-more { margin-top: var(--space-3); border-top: 1px solid var(--border); padding-top: var(--space-3); }
.pkg-more summary {
  cursor: pointer; list-style: none; font-weight: 700; font-size: 13.5px; color: var(--accent);
  display: flex; align-items: center; gap: 6px;
}
.pkg-more summary::-webkit-details-marker { display: none; }
.pkg-more summary::after { content: '+'; font-size: 1.1rem; transition: transform 200ms var(--ease); }
.pkg-more[open] summary::after { transform: rotate(45deg); }
.pkg-more p { font-size: 13.5px; color: var(--text-muted); margin-top: 10px; line-height: 1.6; }
.pkg-more p b { color: var(--text); }
.pkg-more .pkg-note { font-size: 12.5px; color: var(--text-faint); }
/* keep the tier cards' feature lists aligned */
.service-card ul.features { flex: 0 0 auto; }
.service-card .pkg-more { margin-top: auto; }
.service-card .pkg-more + .btn { margin-top: var(--space-4); }
.field-label .opt { font-weight: 500; color: var(--text-faint); }

/* ===== Dedicated booking (/book) and confirmation (/booked) pages ===== */
.funnel-page .funnel-main { padding-top: 72px; }
.funnel-page .quote-section { min-height: calc(100vh - 72px); }
.booked-wrap { max-width: 640px; text-align: center; }
.booked-summary { text-align: left; margin: 28px 0; }
.booked-steps { text-align: left; margin: 28px auto; padding-left: 1.25em; display: grid; gap: 14px; color: var(--text-muted); line-height: 1.55; }
.booked-steps b { color: var(--text, inherit); }
.booked-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 8px; }

/* ---------- Local pages (Towson ceramic / detailing, maintenance plans) ---------- */
.local-hero { padding-bottom: var(--space-5); }
.local-section { padding: var(--space-6) 0; border-top: 1px solid var(--border); }
.local-section .section-title { font-size: clamp(1.8rem, 5vw, 2.6rem); margin-bottom: var(--space-3); }
.local-two { display: grid; gap: var(--space-5); }
@media (min-width: 900px) { .local-two { grid-template-columns: 1fr 1fr; } }
.price-table-wrap { overflow-x: auto; border: 1px solid var(--border-strong); border-radius: var(--radius-md); margin: var(--space-4) 0 var(--space-3); }
.price-table { width: 100%; border-collapse: collapse; min-width: 480px; font-size: 15px; }
.price-table th, .price-table td { padding: 14px 12px; border-bottom: 1px solid var(--border); text-align: right; vertical-align: top; }
.price-table thead th { background: var(--bg-elevated-2); font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); }
.price-table thead th span { display: block; text-transform: none; letter-spacing: 0; color: var(--accent-strong); }
.price-table th[scope="row"] { text-align: left; font-weight: 700; }
.price-table th[scope="row"] a { color: var(--text); }
.price-table th[scope="row"] span { display: block; font-weight: 400; font-size: 13px; color: var(--text-muted); margin-top: 2px; }
.price-table td { font-family: var(--font-display); font-size: 1.3rem; color: var(--accent-strong); white-space: nowrap; }
.price-table tbody tr:last-child > * { border-bottom: none; }
.price-table thead th:first-child { text-align: left; }
@media (max-width: 600px) {
  .price-table { min-width: 0; font-size: 14px; }
  .price-table th, .price-table td { padding: 12px 6px; }
  .price-table th[scope="row"] { padding-left: 12px; }
  .price-table td { font-size: 1.05rem; }
  .price-table td:last-child, .price-table thead th:last-child { padding-right: 12px; }
  .price-table thead th { font-size: 11px; letter-spacing: 0.03em; }
}

/* Service area page: county cards */
.area-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 20px; }
.area-card { padding: 20px; border: 1px solid var(--border, rgba(255,255,255,.12)); border-radius: 16px; background: var(--surface, rgba(255,255,255,.03)); display: flex; flex-direction: column; gap: 6px; }
.area-card h3 { margin: 0; font-size: 1.15rem; }
.area-card p { margin: 0; color: var(--text-muted, #a7a9ad); }
.area-card a { font-weight: 600; margin-top: 4px; }

/* Checklists on the local / service pages (style.css only styled them inside pricing cards,
   so the check icons rendered at full width and pushed each line far apart) */
.local-section ul.features { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.local-section ul.features li { display: flex; gap: 12px; align-items: flex-start; color: var(--text); line-height: 1.5; }
.local-section ul.features svg { flex: none; width: 20px; height: 20px; margin-top: 2px; stroke: var(--accent, currentColor); }

/* Phone carousels: let each card be as tall as its own content (short packages no longer
   stretch to match the longest ceramic card) */
@media (max-width: 767px) {
  .services-grid, .addon-grid { align-items: flex-start; }
}
/* Bigger tap targets for in-text links on the service pages */
.area-card a { display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- Fleet & commercial page ---------- */
.fleet-form { margin-top: var(--space-4); }
.fleet-form .hp { position: absolute; left: -9999px; }
.fleet-services { display: flex; flex-wrap: wrap; gap: 10px; }
.fleet-services > legend { width: 100%; }
.fleet-services label { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1px solid var(--border-strong); border-radius: 999px; cursor: pointer; color: var(--text); }
.fleet-services input { accent-color: var(--accent, #fff); width: 18px; height: 18px; }
.fleet-form.is-sent .field-row, .fleet-form.is-sent .field-group, .fleet-form.is-sent button { display: none; }
.fleet-done { margin-top: var(--space-3); font-weight: 600; }
.fleet-band { padding: var(--space-6) 0; }


/* ---------- Services bar (under the main header) ---------- */
.service-bar { border-top: 1px solid var(--border); }
.service-bar .container {
  display: flex; align-items: center; justify-content: flex-start; gap: 6px; height: 44px;
  overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 28px), transparent);
  -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 28px), transparent);
}
.service-bar .container::-webkit-scrollbar { display: none; }
.service-bar a {
  flex: none; display: inline-flex; align-items: center; min-height: 32px; padding: 0 14px;
  border-radius: 999px; font-size: 13px; font-weight: 600; letter-spacing: 0.02em; white-space: nowrap;
  color: var(--text-muted); transition: color 200ms var(--ease), background 200ms var(--ease);
}
.service-bar a:hover { color: var(--text); background: rgba(255,255,255,0.06); }
.service-bar a[aria-current="page"] { color: var(--text); background: rgba(255,255,255,0.1); }
@media (min-width: 1024px) {
  .service-bar .container { justify-content: center; mask-image: none; -webkit-mask-image: none; gap: 10px; }
}
/* Make room for the taller header */
.has-service-bar .reviews-hero { padding-top: 184px; }
.has-service-bar .chapter { padding-top: 120px; }
.has-service-bar [id] { scroll-margin-top: 136px; }
.has-service-bar .mobile-nav { inset: 121px 0 0 0; }
/* Phones: keep the homepage hero clear of the services bar */
@media (max-width: 767px) {
  .has-service-bar .chapter { padding-bottom: 92px; padding-top: 128px; }
  .has-service-bar .chapter .rating-badge { margin-bottom: var(--space-3); }
  .has-service-bar .chapter .display { font-size: clamp(2.4rem, 12vw, 3.1rem); }
  .has-service-bar .chapter .stage-lede { font-size: 16px; line-height: 1.5; }
}

.price-table td .pt-sub { display: block; font-family: var(--font-body); font-size: 12px; color: var(--text-muted); margin-top: 2px; }
