/* ============================================================================
   Mobile Detailer Directory — GENERATED tenant sites.
   Adapted from admin.escalation.tech/templates/car-detailing-v1/tpl/assets/
   css/site.css. Same aesthetic vocabulary (car-*), namespaced sd-* here so
   it never collides with anything a tenant might paste later. Palette is
   driven by --brand which is set inline per-request from the tenant's
   theme_color / brand_color.
   ============================================================================ */

:root {
  --brand:         #1e3a8a;
  --brand-deep:    #0f2454;
  --brand-soft:    #dbeafe;
  --brand-splash:  #38bdf8;
  --brand-ink:     #ffffff;
  --sd-ink:        #0b1120;
  --sd-ink-2:      #334155;
  --sd-mute:       #64748b;
  --sd-line:       rgba(15,23,42,.10);
  --sd-paper:      #f8fafc;
  --sd-panel:      #ffffff;
  --sd-max:        1120px;
  --sd-shadow:     0 8px 24px rgba(15,23,42,.09);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--sd-paper);
  color: var(--sd-ink);
  font: 400 16px/1.6 system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-deep); }

h1, h2, h3, h4 {
  font-weight: 700; letter-spacing: -.015em;
  line-height: 1.15; margin: 0 0 .6rem; color: var(--sd-ink);
}
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.15rem; }
p  { margin: 0 0 1rem; }

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

/* Topbar */
.sd-top {
  background: rgba(255,255,255,.94);
  position: sticky; top: 0; z-index: 20;
  border-bottom: 1px solid var(--sd-line);
  backdrop-filter: saturate(1.4) blur(8px);
}
.sd-top__inner {
  max-width: var(--sd-max); margin: 0 auto; padding: 12px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
}
.sd-brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 17px; letter-spacing: -.01em;
  color: var(--sd-ink) !important; text-decoration: none !important;
}
.sd-brand__mark {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-deep), var(--brand));
  color: #fff; display: inline-flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 16px;
}
.sd-nav { display: flex; align-items: center; gap: 4px; }
.sd-nav a {
  color: var(--sd-ink-2); text-decoration: none;
  font-weight: 600; font-size: 14px; padding: 8px 12px;
  border-radius: 8px;
}
.sd-nav a:hover { color: var(--brand-deep); background: var(--sd-paper); }
.sd-nav a.is-cta {
  background: var(--brand); color: #fff; padding: 10px 16px;
}
.sd-nav a.is-cta:hover { background: var(--brand-deep); color: #fff; }

@media (max-width: 640px) {
  .sd-nav { gap: 0; }
  .sd-nav a { padding: 8px 8px; font-size: 13px; }
  .sd-nav a:not(.is-cta):not(.sd-nav__home) { display: none; }
}

/* Buttons */
.sd-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 22px; border-radius: 999px;
  font: 700 15px/1 inherit; letter-spacing: .01em;
  border: 2px solid transparent; cursor: pointer;
  text-decoration: none !important; color: var(--sd-ink);
  transition: transform .1s, background .18s, border-color .18s, color .18s, box-shadow .18s;
}
.sd-btn:active { transform: translateY(1px); }
.sd-btn--primary {
  background: linear-gradient(135deg, var(--brand-deep), var(--brand));
  color: #fff !important; border-color: transparent;
  box-shadow: 0 6px 18px rgba(0,0,0,.18);
}
.sd-btn--primary:hover { box-shadow: 0 10px 24px rgba(0,0,0,.22); color: #fff !important; }
.sd-btn--ghost { background: transparent; color: #fff !important; border-color: rgba(255,255,255,.6); }
.sd-btn--ghost:hover { background: rgba(255,255,255,.12); color: #fff !important; }
.sd-btn--outline { background: transparent; color: var(--brand-deep) !important; border-color: var(--brand-deep); }
.sd-btn--outline:hover { background: var(--brand-deep); color: #fff !important; }
.sd-btn--big { padding: 16px 28px; font-size: 16px; }

/* Hero */
.sd-hero {
  position: relative;
  background:
    radial-gradient(1200px 500px at 90% 10%, rgba(255,255,255,.10), transparent 60%),
    radial-gradient(700px 400px at 10% 90%, rgba(255,255,255,.06), transparent 60%),
    linear-gradient(180deg, var(--brand-deep) 0%, var(--brand) 100%);
  color: #fff;
  padding: 72px 20px 56px;
  overflow: hidden;
}
.sd-hero__inner { max-width: var(--sd-max); margin: 0 auto; position: relative; z-index: 1; }
.sd-hero__badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.10); color: #fff;
  padding: 6px 14px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  font-weight: 700; margin-bottom: 22px;
}
.sd-hero h1 { color: #fff; max-width: 22ch; margin-bottom: 16px; }
.sd-hero__sub {
  color: rgba(255,255,255,.85); max-width: 56ch;
  font-size: 1.08rem; margin-bottom: 26px;
}
.sd-hero__cta { display: flex; gap: 10px; flex-wrap: wrap; }
.sd-hero__meta {
  margin-top: 24px; font-size: 13px; color: rgba(255,255,255,.75);
  display: flex; gap: 20px; flex-wrap: wrap;
}
.sd-hero__meta span::before {
  content: "✓"; color: #4ade80; font-weight: 900; margin-right: 6px;
}

/* Sections */
.sd-section { padding: 56px 20px; }
.sd-section--panel { background: #fff; }
.sd-eyebrow {
  color: var(--brand); font-size: 12px; letter-spacing: .16em;
  text-transform: uppercase; font-weight: 800; margin-bottom: 6px;
}

/* Services grid */
.sd-services {
  display: grid; gap: 18px; margin-top: 28px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.sd-service {
  background: #fff; border: 1px solid var(--sd-line); border-radius: 14px;
  padding: 22px 20px;
  transition: transform .12s, box-shadow .18s, border-color .18s;
}
.sd-service:hover {
  transform: translateY(-2px);
  box-shadow: var(--sd-shadow);
  border-color: var(--brand);
}
.sd-service__icon {
  width: 48px; height: 48px; border-radius: 10px;
  background: var(--brand-soft); color: var(--brand-deep);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 10px;
}
.sd-service h3 { margin: 0 0 4px; }
.sd-service p  { color: var(--sd-ink-2); font-size: .95rem; margin: 0 0 10px; }
.sd-service__price {
  font-weight: 700; color: var(--brand-deep); font-size: 1rem;
}
.sd-service__price small { color: var(--sd-mute); font-weight: 500; font-size: 12px; margin-left: 4px; }

/* Sparse / contact-for-pricing state */
.sd-empty {
  background: var(--sd-paper); border: 1px dashed var(--sd-line);
  border-radius: 14px; padding: 32px 24px; text-align: center;
  color: var(--sd-mute);
}
.sd-empty h3 { color: var(--sd-ink); margin-bottom: 8px; }

/* Contact / area block */
.sd-area {
  display: grid; gap: 14px; margin-top: 22px;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .sd-area { grid-template-columns: repeat(3, 1fr); } }
.sd-area__card {
  background: #fff; border: 1px solid var(--sd-line); border-radius: 12px;
  padding: 22px 20px;
}
.sd-area__card strong { display: block; color: var(--brand-deep); margin-bottom: 6px; }
.sd-area__card p, .sd-area__card a { color: var(--sd-ink-2); font-size: .95rem; margin: 0; }

/* Form */
.sd-form {
  background: #fff; border: 1px solid var(--sd-line); border-radius: 16px;
  padding: 28px 26px; box-shadow: var(--sd-shadow);
  max-width: 640px;
}
.sd-field { margin-bottom: 16px; }
.sd-field > label > span:first-child {
  display: block; font-weight: 600; font-size: 13.5px; color: var(--sd-ink);
  margin-bottom: 6px;
}
.sd-input, .sd-select, .sd-textarea {
  width: 100%; padding: 12px 14px;
  border: 1.5px solid var(--sd-line); border-radius: 8px; background: #fff;
  font: 400 15px/1.4 inherit; color: var(--sd-ink);
  transition: border-color .12s, box-shadow .12s;
}
.sd-textarea { min-height: 100px; resize: vertical; }
.sd-input:focus, .sd-select:focus, .sd-textarea:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(0,0,0,.06);
}
.sd-row-2 { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .sd-row-2 { grid-template-columns: 1fr 1fr; } }

.sd-msg { padding: 12px 16px; border-radius: 8px; font-size: 14px; margin-bottom: 16px; }
.sd-msg--err { background: #fef2f2; color: #991b1b; border-left: 3px solid #ef4444; }
.sd-msg--ok  { background: #ecfdf5; color: #065f46; border-left: 3px solid #10b981; }

/* Gallery */
.sd-gallery {
  display: grid; gap: 16px; margin-top: 24px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.sd-gallery__item {
  background: #fff; border: 1px solid var(--sd-line);
  border-radius: 12px; overflow: hidden;
}
.sd-gallery__item img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.sd-gallery__item figcaption {
  padding: 10px 14px; font-size: 13px; color: var(--sd-ink-2);
}

/* Footer */
.sd-footer {
  background: var(--sd-ink); color: rgba(255,255,255,.75);
  padding: 40px 20px 24px; margin-top: 40px;
}
.sd-footer__inner {
  max-width: var(--sd-max); margin: 0 auto;
  display: grid; gap: 22px; grid-template-columns: 1fr;
}
@media (min-width: 720px) { .sd-footer__inner { grid-template-columns: 2fr 1fr 1fr; } }
.sd-footer h4 {
  color: #fff; font-size: 12px; letter-spacing: .12em;
  text-transform: uppercase; margin-bottom: 10px;
}
.sd-footer a { color: #cbd5e1; text-decoration: none; }
.sd-footer a:hover { color: #fff; }
.sd-footer__brand { color: #fff; font-weight: 800; font-size: 1.15rem; margin-bottom: 4px; }
.sd-footer__legal {
  max-width: var(--sd-max); margin: 26px auto 0; padding: 14px 0 0;
  border-top: 1px solid rgba(255,255,255,.10);
  color: rgba(255,255,255,.5); font-size: 12px;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}

/* Office reuses the same shell but neutralized */
.sd-office-flash {
  padding: 12px 16px; border-radius: 8px; margin-bottom: 16px;
  border: 1px solid transparent;
}
.sd-office-flash--ok  { background: #ecfdf5; border-color: #a7f3d0; color: #065f46; }
.sd-office-flash--err { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
