/* =========================================================
   MFB Detailing — car detailing
   Clean, simple, light. Shared across all pages.
   ========================================================= */

:root {
  /* MFB Detailing — cool neutral base (white + soft blue-gray) + deep navy accent */
  --ink: #17212d;          /* deep slate — primary text (cool near-black) */
  --slate: #56616f;        /* cool gray — secondary text */
  --slate-light: #8b95a1;  /* cool light gray — muted / tertiary */
  --line: #e3e8ee;         /* cool light — rules & borders */
  --bg: #ffffff;           /* white — page & cards */
  --bg-soft: #eef2f7;      /* light blue-gray — soft sections */
  --dark: #16273d;         /* Navy Deep — dark bands & footer */

  --accent: #28415f;       /* Navy — primary accent (CTAs, icon, confirming moments) */
  --accent-dark: #16273d;  /* Navy Deep — hovers & depth */
  --accent-soft: #dce7f2;  /* light navy tint — fills & tags */

  --font-head: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", monospace;

  --radius: 5px;
  --radius-sm: 3px;
  --shadow: 0 1px 2px rgba(22, 39, 61, .06), 0 10px 28px rgba(22, 39, 61, .08);
  --maxw: 1080px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 700; line-height: 1.2; margin: 0 0 .5em; }
p { margin: 0 0 1rem; }
ul { margin: 0; padding: 0; list-style: none; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }
.section { padding: 4.5rem 0; }
.section--soft { background: var(--bg-soft); }
.center { text-align: center; }
.section-head { max-width: 600px; margin: 0 auto 2.5rem; }
.center .section-head { text-align: center; }
.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: .6rem;
}
.section-title { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.section-lead { color: var(--slate); font-size: 1.05rem; margin-bottom: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .95rem;
  padding: .75rem 1.5rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-dark); }
.btn--outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--outline:hover { border-color: var(--accent); color: var(--accent-dark); }
.btn--lg { padding: .9rem 1.8rem; font-size: 1rem; }
.btn--block { width: 100%; justify-content: center; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: flex; align-items: center; }
.brand__name {
  font-family: var(--font-head); font-weight: 700; font-size: 1.2rem;
  letter-spacing: -.02em; color: var(--ink); line-height: 1;
}
.brand__name small {
  display: block; font-family: var(--font-mono); font-size: .58rem; font-weight: 400;
  letter-spacing: .26em; text-transform: uppercase; color: var(--accent); margin-top: 5px;
}
.nav__links { display: flex; align-items: center; gap: .25rem; }
.nav__links a {
  color: var(--slate);
  font-family: var(--font-head); font-weight: 500; font-size: .95rem;
  padding: .5rem .8rem; border-radius: 7px;
  transition: color .15s ease, background .15s ease;
}
.nav__links a:hover { color: var(--ink); }
.nav__links a.is-active { color: var(--accent-dark); }
.nav__cta { margin-left: .5rem; color: #fff !important; }
.nav__cta:hover { color: #fff !important; }
.nav__toggle {
  display: none; background: none; border: 0; cursor: pointer;
  width: 42px; height: 42px; flex-direction: column; justify-content: center; gap: 5px;
}
.nav__toggle span { display: block; height: 2px; width: 22px; background: var(--ink); border-radius: 2px; }

/* ---------- Hero ---------- */
.hero { background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.hero__inner {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 3rem;
  align-items: center;
  padding-block: 4.5rem;
}
.hero__tag {
  display: inline-block;
  font-family: var(--font-head); font-weight: 600; font-size: .8rem;
  color: var(--accent-dark); background: var(--accent-soft);
  padding: .35rem .85rem; border-radius: 999px; margin-bottom: 1.25rem;
}
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.2rem); letter-spacing: -.01em; margin-bottom: 1rem; }
.hero h1 .accent { color: var(--accent-dark); }
.hero__lead { font-size: 1.15rem; color: var(--slate); max-width: 480px; margin-bottom: 1.75rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* Page hero (interior pages) — simple centered band */
.page-hero { background: var(--bg-soft); border-bottom: 1px solid var(--line); text-align: center; }
.page-hero__inner { padding-block: 3.25rem; }
.page-hero h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: .5rem; }
.page-hero h1 .accent { color: var(--accent-dark); }
.page-hero p { color: var(--slate); font-size: 1.05rem; max-width: 540px; margin: 0 auto; }

/* ---------- Feature row ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.feature { text-align: center; padding: 0 .5rem; }
.feature .ico {
  width: 48px; height: 48px; margin: 0 auto .75rem;
  border-radius: 50%; background: var(--accent-soft); color: var(--accent-dark);
  display: grid; place-items: center; font-size: 1.3rem;
}
.feature h3 { font-size: 1.05rem; margin-bottom: .25rem; }
.feature p { color: var(--slate); font-size: .92rem; margin-bottom: 0; }

/* ---------- Cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.card:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.card h3 { font-size: 1.15rem; margin-bottom: .35rem; }
.card p { color: var(--slate); margin-bottom: 0; font-size: .95rem; }
.card__num { font-family: var(--font-mono); font-weight: 700; color: var(--accent); font-size: .8rem; letter-spacing: .02em; }

/* ---------- Pricing ---------- */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; align-items: stretch; }
.price-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  display: flex; flex-direction: column;
  position: relative;
}
.price-card--featured { border-color: var(--accent); border-width: 1.5px; }
.price-card__badge {
  position: absolute; top: -11px; left: 1.75rem;
  background: var(--accent); color: #fff;
  font-family: var(--font-mono); font-weight: 700; font-size: .62rem; letter-spacing: .1em; text-transform: uppercase;
  padding: .28rem .7rem; border-radius: var(--radius-sm);
}
.price-card h3 { font-size: 1.2rem; margin-bottom: .2rem; }
.price-card__sub { color: var(--slate-light); font-size: .88rem; margin-bottom: .9rem; }
.price-card__price { font-family: var(--font-mono); font-weight: 700; font-size: 1.8rem; color: var(--ink); line-height: 1; }
.price-card__price small { font-size: .8rem; font-weight: 500; color: var(--slate); }
.price-card__meta { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .05em; text-transform: uppercase; color: var(--slate-light); margin-top: .45rem; }
.feature-list { margin: 1.1rem 0 1.6rem; flex: 1; }
.feature-list li { display: flex; gap: .6rem; padding: .4rem 0; color: var(--slate); font-size: .93rem; }
.feature-list li::before { content: "✓"; color: var(--accent-dark); font-weight: 700; }
.feature-list li.feature-list__head {
  color: var(--ink); font-family: var(--font-mono); font-weight: 700;
  font-size: .7rem; letter-spacing: .09em; text-transform: uppercase;
  padding: .9rem 0 .25rem;
}
.feature-list li.feature-list__head:first-child { padding-top: 0; }
.feature-list li.feature-list__head::before { content: none; }

/* ---------- Add-ons ---------- */
.addons { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 2.5rem; }
.addons--3 { grid-template-columns: repeat(3, 1fr); }
.addon {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: .7rem .25rem; border-bottom: 1px solid var(--line);
}
.addon .price { font-family: var(--font-head); font-weight: 600; color: var(--accent-dark); }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.gallery__item {
  position: relative; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 4/3; border: 1px solid var(--line);
}
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.gallery__item:hover img { transform: scale(1.05); }
.gallery__item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1.4rem .85rem .7rem;
  background: linear-gradient(transparent, rgba(22, 32, 43, .8));
  color: #fff; font-family: var(--font-head); font-weight: 500; font-size: .88rem;
}

/* ---------- Forms ---------- */
.split { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2.5rem; align-items: start; }
.panel { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem; }

/* Service-area map embed */
.map-embed { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--dark); }
.map-embed iframe { display: block; width: 100%; height: 580px; border: 0; }
@media (max-width: 640px) { .map-embed iframe { height: 520px; } }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-family: var(--font-head); font-weight: 600; font-size: .85rem; }
.field label .req { color: var(--accent-dark); }
.field input, .field select, .field textarea {
  font-family: var(--font-body); font-size: 1rem;
  padding: .7rem .85rem;
  border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(40, 65, 95, .18);
}
.field textarea { resize: vertical; min-height: 110px; }
.form-note { font-size: .85rem; color: var(--slate-light); margin-top: .25rem; }
.form-result { display: none; margin-top: 1rem; color: var(--accent-dark); font-weight: 600; }

/* Contact info list */
.info-row { display: flex; gap: .85rem; padding: .9rem 0; border-bottom: 1px solid var(--line); }
.info-row:last-child { border-bottom: 0; }
.info-row .ico {
  flex: 0 0 38px; width: 38px; height: 38px; border-radius: 9px;
  background: var(--accent-soft); color: var(--accent-dark);
  display: grid; place-items: center; font-size: 1.1rem;
}
.info-row .label { font-family: var(--font-head); font-weight: 600; font-size: .92rem; }
.info-row .value { color: var(--slate); font-size: .92rem; }
.info-row .value a:hover { color: var(--accent-dark); }


/* ---------- CTA band ---------- */
.cta { background: var(--accent); color: #fff; border-radius: var(--radius); padding: 2.75rem; text-align: center; }
.cta h2 { color: #fff; font-size: clamp(1.5rem, 2.5vw, 2rem); }
.cta p { color: #c2cdd6; max-width: 460px; margin: 0 auto 1.5rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: #97a6b2; padding: 3rem 0 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
.site-footer h4 { color: #fff; font-size: .95rem; font-family: var(--font-head); margin-bottom: .8rem; }
.site-footer a { color: #97a6b2; transition: color .15s; }
.site-footer a:hover { color: #fff; }
.footer-links li { padding: .25rem 0; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding-top: 1.25rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; font-size: .85rem;
}

/* ---------- Brand mark (4-point shine) + display weight ---------- */
.brand { gap: .55rem; }
.brand::before {
  content: "";
  flex: 0 0 auto;
  width: 22px; height: 22px;
  background: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2032%2032'%3E%3Cpath%20d='M16,1C17,11,21,15,31,16C21,17,17,21,16,31C15,21,11,17,1,16C11,15,15,11,16,1Z'%20fill='%2328415f'/%3E%3C/svg%3E") center/contain no-repeat;
}
.site-footer .brand::before {
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2032%2032'%3E%3Cpath%20d='M16,1C17,11,21,15,31,16C21,17,17,21,16,31C15,21,11,17,1,16C11,15,15,11,16,1Z'%20fill='%23f5f2ea'/%3E%3C/svg%3E");
}
.hero h1, .page-hero h1 { font-weight: 800; }

/* ---------- Line icons (Lucide set, 1.5px stroke — navy glyph on mist tile) ---------- */
.icon { display: inline-block; vertical-align: middle; }
.ico svg { width: 50%; height: 50%; }
.btn svg { width: 18px; height: 18px; flex: 0 0 auto; }
.ghost .ico svg { width: 26px; height: 26px; }

/* ---------- Graphic objects: dot-grid field + shine on the navy CTA ---------- */
.cta { position: relative; overflow: hidden; }
.cta > * { position: relative; z-index: 1; }
.cta::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, .12) 1.4px, transparent 1.5px);
  background-size: 18px 18px;
  -webkit-mask-image: linear-gradient(115deg, #000 26%, transparent 70%);
          mask-image: linear-gradient(115deg, #000 26%, transparent 70%);
}
.cta::after {
  content: ""; position: absolute; right: -26px; top: -26px;
  width: 148px; height: 148px; opacity: .14; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2032%2032'%3E%3Cpath%20d='M16,1C17,11,21,15,31,16C21,17,17,21,16,31C15,21,11,17,1,16C11,15,15,11,16,1Z'%20fill='%23ffffff'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero__inner { grid-template-columns: 1fr; gap: 2rem; padding-block: 3rem; }
  .hero .ba { order: -1; }
  .grid-3, .price-grid { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav__links {
    position: absolute; top: 66px; left: 0; right: 0;
    flex-direction: column; align-items: stretch;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: .5rem 1.25rem 1rem; gap: .15rem;
    transform: translateY(-130%); transition: transform .26s ease; z-index: -1;
  }
  .nav__links.is-open { transform: translateY(0); }
  .nav__links a { padding: .75rem .5rem; }
  .nav__cta { margin: .4rem 0 0; text-align: center; background: var(--accent); }
  .nav__toggle { display: flex; }
  .features, .grid-3, .price-grid, .gallery, .addons, .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta { padding: 2rem 1.25rem; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; transition: none !important; }
}

/* =========================================================
   Before / after slider
   ========================================================= */
.ba {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  user-select: none;
  touch-action: pan-y;
  cursor: ew-resize;
  --pos: 50%;
}
.ba__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  pointer-events: none;
  -webkit-user-drag: none;
}
.ba__before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba__line {
  position: absolute; top: 0; bottom: 0;
  left: var(--pos); width: 2px; margin-left: -1px;
  background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.12);
  pointer-events: none;
}
.ba__handle {
  position: absolute; top: 50%; left: var(--pos);
  transform: translate(-50%, -50%);
  width: 38px; height: 38px; border-radius: 50%;
  background: #fff; color: var(--ink);
  display: grid; place-items: center;
  font-size: .95rem; font-weight: 700;
  box-shadow: 0 2px 10px rgba(0,0,0,.28);
  pointer-events: none;
}
.ba__label {
  position: absolute; top: .7rem;
  font-family: var(--font-mono); font-weight: 700; font-size: .62rem;
  letter-spacing: .1em; text-transform: uppercase;
  color: #fff; background: rgba(20,16,12,.74);
  padding: .24rem .55rem; border-radius: var(--radius-sm);
  pointer-events: none;
}
.ba__label--before { left: .7rem; }
.ba__label--after { right: .7rem; }

/* =========================================================
   3D tilt
   ========================================================= */
.tilt {
  transition: transform .18s ease;
  transform-style: preserve-3d;
  will-change: transform;
}

/* =========================================================
   Gallery sections + divider + coming soon
   ========================================================= */
.gallery-section__head { display: flex; align-items: baseline; gap: .75rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.gallery-section__head h2 { font-size: 1.4rem; margin: 0; }
.gallery-section__head span { color: var(--slate); font-size: .95rem; }

.gallery-divider { height: 1px; background: var(--line); border: 0; margin: 3rem 0 2.5rem; }

.gallery__item { cursor: zoom-in; }
.gallery__item .zoom-ico {
  position: absolute; top: .6rem; right: .6rem; z-index: 2;
  width: 30px; height: 30px; border-radius: 8px;
  background: rgba(22,32,43,.55); color: #fff;
  display: grid; place-items: center; font-size: .95rem;
  opacity: 0; transition: opacity .15s; pointer-events: none;
}
.gallery__item:hover .zoom-ico { opacity: 1; }

/* before/after pairs — two per row so each pair sits side by side */
.gallery--pairs { grid-template-columns: repeat(2, 1fr); }

.ghost {
  border: 1.5px dashed var(--line); border-radius: var(--radius);
  aspect-ratio: 4 / 3; display: grid; place-items: center; text-align: center;
  color: var(--slate-light); background: var(--bg-soft);
  font-family: var(--font-head); font-weight: 600; font-size: .92rem; padding: 1rem;
}
.ghost .ico { display: block; font-size: 1.5rem; margin-bottom: .35rem; opacity: .55; }

/* =========================================================
   Lightbox
   ========================================================= */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(11,16,21,.93);
  display: none; align-items: center; justify-content: center; padding: 2rem;
}
.lightbox.is-open { display: flex; }
.lightbox__img {
  max-width: 92vw; max-height: 86vh;
  border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,.5); object-fit: contain;
}
.lightbox__caption {
  position: absolute; bottom: 1.1rem; left: 0; right: 0; text-align: center;
  color: #e8edf1; font-family: var(--font-head); font-weight: 500; font-size: .95rem;
}
.lightbox__close, .lightbox__nav {
  position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; cursor: pointer;
  border-radius: 50%; width: 46px; height: 46px; font-size: 1.6rem; line-height: 1;
  display: grid; place-items: center; transition: background .15s;
}
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255,255,255,.26); }
.lightbox__close { top: 1.25rem; right: 1.25rem; font-size: 1.9rem; }
.lightbox__prev { left: 1.25rem; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 1.25rem; top: 50%; transform: translateY(-50%); }

@media (max-width: 640px) {
  .gallery--pairs { grid-template-columns: 1fr; }
  .lightbox__nav { width: 40px; height: 40px; }
  .lightbox__prev { left: .5rem; }
  .lightbox__next { right: .5rem; }

  /* --- mobile polish: tighter rhythm, balanced controls --- */
  .section { padding-block: 3.25rem; }
  .page-hero__inner { padding-block: 2.5rem; }
  .section-head { margin-bottom: 1.75rem; }
  .hero__inner { gap: 1.75rem; }
  .hero h1 { font-size: 2.05rem; }
  .hero__lead { font-size: 1.05rem; margin-bottom: 1.5rem; }
  .hero__actions { gap: .6rem; }
  .hero__actions .btn { flex: 1 1 0; justify-content: center; padding-left: .9rem; padding-right: .9rem; }
  .features { gap: 1.5rem; max-width: 360px; margin-inline: auto; }
  .gallery { gap: 1rem; }
  .footer-grid { gap: 1.75rem; }
}
