
:root{
  --bg:#05070b;
  --panel:#0b1220;
  --text:#f1f5f9;
  --muted:#94a3b8;
  --accent:#14b8ff;
}

*{box-sizing:border-box}
body{
  margin:0;
  font-family:system-ui,-apple-system,Segoe UI,Roboto;
  background:var(--bg);
  color:var(--text);
}

.container{width:min(1100px,92%);margin:auto}

.header{
  position:sticky;top:0;
  background:rgba(5,7,11,.8);
  backdrop-filter:blur(10px);
  border-bottom:1px solid #111827;
}
.header-row{
  display:flex;align-items:center;justify-content:space-between;
  padding:14px 0;
}
.logo{height:42px}

.nav a{
  margin-left:18px;
  text-decoration:none;
  color:var(--muted);
  font-weight:600;
}
.nav a:hover{color:var(--text)}
.nav .cta{color:var(--accent)}

.hero{
  padding:90px 0;
  background:
    radial-gradient(600px 300px at 20% -10%, rgba(20,184,255,.25), transparent 60%),
    var(--bg);
}
.hero-grid{
  display:grid;
  grid-template-columns:1.2fr .8fr;
  gap:40px;
}
.hero h1{
  font-size:clamp(2.5rem,4vw,3.5rem);
  line-height:1.05;
}
.hero h1 span{color:var(--accent)}
.lead{color:var(--muted);max-width:520px}

.hero-actions{margin-top:24px;display:flex;gap:14px}

.btn-primary{
  padding:14px 20px;
  background:linear-gradient(135deg,#14b8ff,#3b82f6);
  color:#020617;
  font-weight:800;
  border-radius:14px;
  text-decoration:none;
}
.btn-secondary{
  padding:14px 20px;
  border:1px solid #1e293b;
  border-radius:14px;
  text-decoration:none;
  color:var(--text);
}

.hero-card{
  background:var(--panel);
  padding:24px;
  border-radius:18px;
  border:1px solid #1e293b;
}
.hero-card input, .hero-card select{
  width:100%;
  margin-top:10px;
  padding:12px;
  background:#020617;
  border:1px solid #1e293b;
  color:var(--text);
  border-radius:12px;
}
#price{margin-top:14px;font-size:1.6rem;color:var(--accent)}

.section{padding:70px 0}
.section.dark{background:#020617;border-top:1px solid #111827;border-bottom:1px solid #111827}

.service-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:18px;
}
.service{
  background:var(--panel);
  padding:22px;
  border-radius:16px;
  border:1px solid #1e293b;
}

.process-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:22px;
}
.process-grid span{
  color:var(--accent);
  font-weight:900;
  font-size:1.2rem;
}

.quote-box{text-align:center}
.footer{
  border-top:1px solid #111827;
  padding:28px 0;
}
.footer-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
}
.footer-logo{height:32px}

@media(max-width:900px){
  .hero-grid,.service-grid,.process-grid{
    grid-template-columns:1fr;
  }
}

/* Estimate card fields */
.field{display:block;margin-top:12px}
.field span{display:block;color:var(--muted);font-weight:700;font-size:.9rem;margin-bottom:6px}
.two{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:2px}
.tiny{margin:10px 0 0;color:var(--muted);font-size:.9rem;line-height:1.35}
@media(max-width:900px){
  .two{grid-template-columns:1fr}
}

/* Estimate button UI */
.estimate-form .group{margin-top:16px}
.estimate-form .label{
  color:var(--muted);
  font-weight:800;
  font-size:.9rem;
  margin-bottom:8px;
}
.btn-group{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}
.opt{
  padding:10px 14px;
  border-radius:999px;
  border:1px solid #1e293b;
  background:#020617;
  color:var(--text);
  font-weight:700;
  cursor:pointer;
  transition:.15s;
}
.opt:hover{border-color:var(--accent)}
.opt.active{
  background:linear-gradient(135deg,#14b8ff,#3b82f6);
  color:#020617;
  border-color:transparent;
}

/* Estimate hint */
.hint{margin-bottom:14px;color:var(--muted);font-size:.86rem;margin-top:6px;line-height:1.25}

/* Modal */
.modal{position:fixed;inset:0;display:none;z-index:999}
.modal.show{display:block}
.modal-backdrop{position:absolute;inset:0;background:rgba(0,0,0,.65)}
.modal-panel{
  position:relative;
  width:min(520px, 92vw);
  margin:10vh auto;
  background:var(--panel);
  border:1px solid #1e293b;
  border-radius:18px;
  padding:18px;
}
.modal-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.modal-head h4{margin:0}
.modal-x{
  width:40px;height:40px;border-radius:12px;
  border:1px solid #1e293b;background:#020617;color:var(--text);
  font-size:22px;cursor:pointer;
}
.modal-sub{margin:10px 0 0;color:var(--muted);line-height:1.4}
.modal-body{margin-top:14px}
.modal-label{display:block;color:var(--muted);font-weight:800;font-size:.9rem}
.modal-label input{
  width:100%;margin-top:8px;padding:12px;
  background:#020617;border:1px solid #1e293b;color:var(--text);
  border-radius:12px;
}
.modal-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:14px}

/* Inline driveway area reveal */
.driveway-inline[hidden]{display:none}
.driveway-inline{
  margin-top:14px;
  padding-top:12px;
  border-top:1px solid #1e293b;
}

/* Before / After slider */
.slider-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:22px;
}
.ba-card{
  background:var(--panel);
  padding:18px;
  border-radius:18px;
  border:1px solid #1e293b;
}
.ba-card h3{margin:0 0 12px}
.ba-slider{
  position:relative;
  overflow:hidden;
  border-radius:14px;
}
.ba-slider img{
  display:block;
  width:100%;
  height:auto;
}
.after-wrap{
  position:absolute;
  inset:0;
  width:50%;
  overflow:hidden;
}
.ba-slider input[type=range]{
  position:absolute;
  inset:auto 0 14px 0;
  width:100%;
}
@media(max-width:900px){
  .slider-grid{grid-template-columns:1fr}
}

/* Before/After badges + handle */
.badge{
  position:absolute;
  top:12px;
  padding:8px 10px;
  border-radius:999px;
  font-weight:800;
  font-size:.85rem;
  border:1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(6px);
  background: rgba(2,6,23,.55);
}
.badge.before{left:12px;color:var(--text)}
.badge.after{right:12px;color:var(--text)}
.handle{
  position:absolute;
  top:0; bottom:0;
  left:50%;
  width:2px;
  background: rgba(255,255,255,.75);
  box-shadow: 0 0 0 6px rgba(20,184,255,.10);
  transform: translateX(-1px);
  pointer-events:none;
}
.ba-slider input[type=range]{
  appearance:none;
  height:28px;
  background:transparent;
  cursor:ew-resize;
}
.ba-slider input[type=range]::-webkit-slider-thumb{
  appearance:none;
  width:22px;height:22px;
  border-radius:50%;
  border:1px solid rgba(255,255,255,.25);
  background: linear-gradient(135deg,#14b8ff,#3b82f6);
  box-shadow: 0 10px 30px rgba(20,184,255,.25);
}
.ba-slider input[type=range]::-moz-range-thumb{
  width:22px;height:22px;border-radius:50%;
  border:1px solid rgba(255,255,255,.25);
  background: linear-gradient(135deg,#14b8ff,#3b82f6);
}

/* Reviews slider */
.reviews{
  display:grid;
  grid-template-columns: 48px 1fr 48px;
  gap: 12px;
  align-items:center;
}
.rbtn{
  width:48px;height:48px;border-radius:14px;
  border:1px solid #1e293b;
  background:#020617;
  color:var(--text);
  font-size:26px;
  cursor:pointer;
}
.review-track{
  display:flex;
  overflow:hidden;
  scroll-behavior:smooth;
  border-radius:18px;
  border:1px solid #1e293b;
  background: rgba(255,255,255,.02);
}
.review{
  min-width:100%;
  padding:22px;
}
.review p{margin:10px 0 0;color:var(--text);line-height:1.6}
.stars{color:var(--accent);font-weight:900;letter-spacing:.12em}
.who{margin-top:12px;color:var(--muted);font-weight:800}
.dots{
  margin-top:14px;
  display:flex;
  justify-content:center;
  gap:8px;
}
.dot{
  width:10px;height:10px;border-radius:999px;
  border:1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.06);
  cursor:pointer;
}
.dot.active{
  background: var(--accent);
  border-color: transparent;
}
.center{text-align:center}
@media(max-width:900px){
  .reviews{grid-template-columns: 40px 1fr 40px}
  .rbtn{width:40px;height:40px;border-radius:12px}
}

/* Quote spacing */
.quote-intro{
  margin-bottom:28px;
}

/* Side-by-side before/after */
.ba-sbs{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}
.ba-sbs figure{
  margin:0;
  position:relative;
  overflow:hidden;
  border-radius:14px;
  border:1px solid #1e293b;
}
.ba-sbs img{
  width:100%;
  height:auto;
  display:block;
}
.ba-sbs figcaption{
  position:absolute;
  bottom:10px;
  left:10px;
  background:rgba(2,6,23,.7);
  padding:6px 10px;
  border-radius:999px;
  font-size:.85rem;
  font-weight:800;
}
@media(max-width:800px){
  .ba-sbs{grid-template-columns:1fr}
}

/* fills without zoom animation */
  display:block;
}
.ba-compare .img.before{z-index:1}
.ba-compare .img.after{
  z-index:2;
  width:50%;
  overflow:hidden;
}
.ba-compare .tag{
  position:absolute;
  top:12px;
  left:12px;
  background:rgba(2,6,23,.7);
  border:1px solid rgba(255,255,255,.18);
  padding:6px 10px;
  border-radius:999px;
  font-weight:800;
  font-size:.85rem;
  backdrop-filter: blur(6px);
}
.ba-compare .img.after .tag{left:auto; right:12px}

.ba-compare .scrubber{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  opacity:0; /* invisible but draggable */
  cursor:ew-resize;
  z-index:4;
}
.ba-compare .divider{
  position:absolute;
  top:0; bottom:0;
  left:50%;
  width:2px;
  background:rgba(255,255,255,.8);
  z-index:3;
  transform: translateX(-1px);
}
.ba-compare .knob{
  position:absolute;
  top:50%;
  left:50%;
  transform: translate(-50%,-50%);
  width:40px;
  height:40px;
  border-radius:999px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:900;
  border:1px solid rgba(255,255,255,.25);
  background:linear-gradient(135deg,#14b8ff,#3b82f6);
  color:#020617;
  box-shadow: 0 12px 30px rgba(20,184,255,.25);
}
/* Set a nice aspect ratio */
.ba-compare::before{
  content:"";
  display:block;
  padding-top:58%;
}

/* sets natural height */
  opacity:0;     /* invisible but keeps layout */
  pointer-events:none;
}
.ba-compare .layer{
  position:absolute;
  inset:0;
}
.ba-compare .layer img{
  width:100%;
  height:100%;
  display:block;
  object-fit:contain;   /* <-- shows whole photo */
  background:#020617;   /* letterbox if needed */
}
.ba-compare .after{
  width:50%;
  overflow:hidden;
}
.ba-compare .tag{
  position:absolute;
  top:12px;
  background:rgba(2,6,23,.7);
  border:1px solid rgba(255,255,255,.18);
  padding:6px 10px;
  border-radius:999px;
  font-weight:800;
  font-size:.85rem;
  backdrop-filter: blur(6px);
}
.ba-compare .tag.left{left:12px}
.ba-compare .tag.right{right:12px}

.ba-compare .scrubber{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  opacity:0; /* invisible but draggable */
  cursor:ew-resize;
  z-index:4;
}
.ba-compare .divider{
  position:absolute;
  top:0; bottom:0;
  left:50%;
  width:2px;
  background:rgba(255,255,255,.8);
  z-index:3;
  transform: translateX(-1px);
  pointer-events:none;
}
.ba-compare .knob{
  position:absolute;
  top:50%;
  left:50%;
  transform: translate(-50%,-50%);
  width:40px;
  height:40px;
  border-radius:999px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:900;
  border:1px solid rgba(255,255,255,.25);
  background:linear-gradient(135deg,#14b8ff,#3b82f6);
  color:#020617;
  box-shadow: 0 12px 30px rgba(20,184,255,.25);
}

/* controls height */
  max-height: 420px;             /* prevents "too big" */
  margin: 0 auto;
}
@media(max-width:900px){
  .ba-compare{ max-height: 320px; }
}
.ba-compare .layer{ position:absolute; inset:0; }
.ba-compare .layer img{
  width:100% !important;
  height:100% !important;
  display:block;
  object-fit: contain !important; /* shows whole photo, no zoom/crop */
  background:#020617;            /* letterbox if needed */
  transform:none !important;
}
.ba-compare .after{ width:50%; overflow:hidden; }

.ba-compare .tag{
  position:absolute;
  top:12px;
  background:rgba(2,6,23,.7);
  border:1px solid rgba(255,255,255,.18);
  padding:6px 10px;
  border-radius:999px;
  font-weight:800;
  font-size:.85rem;
  backdrop-filter: blur(6px);
}
.ba-compare .tag.left{left:12px}
.ba-compare .tag.right{right:12px}

.ba-compare .scrubber{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  opacity:0; /* invisible but draggable */
  cursor:ew-resize;
  z-index:4;
}
.ba-compare .divider{
  position:absolute;
  top:0; bottom:0;
  left:50%;
  width:2px;
  background:rgba(255,255,255,.8);
  z-index:3;
  transform: translateX(-1px);
  pointer-events:none;
}
.ba-compare .knob{
  position:absolute;
  top:50%;
  left:50%;
  transform: translate(-50%,-50%);
  width:40px;
  height:40px;
  border-radius:999px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:900;
  border:1px solid rgba(255,255,255,.25);
  background:linear-gradient(135deg,#14b8ff,#3b82f6);
  color:#020617;
  box-shadow: 0 12px 30px rgba(20,184,255,.25);
}

/* Cleaning-wipe compare (whole photo visible, no crop/zoom) */

.ba-wipe .base{
  display:block;
  width:100%;
  height:auto;        /* natural aspect ratio -> whole photo visible */
}
.ba-wipe .after{
  position:absolute;
  inset:0;
  width:100%;
  /* reveal will be controlled by clip-path in JS */
  clip-path: inset(0 50% 0 0);
}
.ba-wipe .after img{
  display:block;
  width:100%;
  height:100%;
  object-fit:contain; /* never crop */
  background:#020617; /* letterbox if needed */
  transform: translate(0px, 0px) scale(1); /* alignment controls update this */
}
.ba-wipe .labels{
  position:absolute;
  inset:0;
  pointer-events:none;
}
.ba-wipe .tag{
  position:absolute;
  top:12px;
  background:rgba(2,6,23,.7);
  border:1px solid rgba(255,255,255,.18);
  padding:6px 10px;
  border-radius:999px;
  font-weight:800;
  font-size:.85rem;
  backdrop-filter: blur(6px);
}
.ba-wipe .tag.left{left:12px}
.ba-wipe .tag.right{right:12px}

.ba-wipe .scrubber{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  opacity:0;
  cursor:ew-resize;
  z-index:4;
}
.ba-wipe .divider{
  position:absolute;
  top:0; bottom:0;
  left:50%;
  width:2px;
  background:rgba(255,255,255,.85);
  z-index:3;
  transform: translateX(-1px);
  pointer-events:none;
}
.ba-wipe .knob{
  position:absolute;
  top:50%;
  left:50%;
  transform: translate(-50%,-50%);
  width:40px;
  height:40px;
  border-radius:999px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:900;
  border:1px solid rgba(255,255,255,.25);
  background:linear-gradient(135deg,#14b8ff,#3b82f6);
  color:#020617;
  box-shadow: 0 12px 30px rgba(20,184,255,.25);
}
/* subtle "clean edge" glow */
.ba-wipe .edge{
  position:absolute;
  top:0; bottom:0;
  left:50%;
  width:14px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(20,184,255,.20), transparent);
  z-index:2;
  pointer-events:none;
}

.align-toggle{
  margin-top:14px;
  width:100%;
  padding:12px 14px;
  border-radius:14px;
  border:1px solid #1e293b;
  background:#020617;
  color:var(--text);
  font-weight:800;
  cursor:pointer;
}
.align{
  margin-top:12px;
  padding:14px;
  border:1px solid #1e293b;
  border-radius:14px;
  background: rgba(255,255,255,.02);
}
.align-row{
  display:grid;
  grid-template-columns: 140px 1fr;
  gap:12px;
  align-items:center;
  margin-top:10px;
}
.align-row label{color:var(--muted);font-weight:800;font-size:.9rem}
.align-row input[type=range]{width:100%}
@media(max-width:700px){
  .align-row{grid-template-columns:1fr}
}

/* Smaller footprint for compare */



.ba-wipe .base{
  max-height: inherit;
}

/* Correct aspect ratio – compact but natural */


.ba-wipe .base{
  width: 100%;
  height: auto;         /* natural ratio */
}

.ba-wipe .layer img{
  width: 100%;
  height: auto;         /* prevent stretching */
  object-fit: contain;  /* safety */
}

/* Header always on top */
header{
  position: sticky;
  top: 0;
  z-index: 9999;
  background: rgba(2,6,23,.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Compare slider stacking */


/* Ensure all before/after panels are same size */
.before-after-grid,
.ba-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap:24px;
  justify-items:center;
}



/* Unified before/after panel sizing */
.ba-wipe{
  position:relative;
  width:100%;
  max-width:360px;
  margin:0 auto;
  border-radius:14px;
  overflow:hidden;
  border:1px solid #1e293b;
  background:#020617;
}

/* Side-by-side before/after panels */
.ba-pair{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap:28px;
  justify-items:center;
  margin-top:32px;
}

/* Before/After layout (reset) */
.ba-pair{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap:28px;
  justify-items:center;
  margin-top:24px;
}

.ba-card{
  width:100%;
  max-width:360px;
}

/* Cleaning-wipe compare panels */
.ba-wipe{
  position:relative;
  width:100%;
  max-width:360px;
  border-radius:14px;
  overflow:hidden;
  border:1px solid #1e293b;
  background:#020617;
  margin:0 auto;
  aspect-ratio: 4 / 5; /* makes all panels same visual height */
}

.ba-wipe .base{
  width:100%;
  height:100%;
  display:block;
  object-fit:contain;   /* whole photo visible */
  background:#020617;
}

.ba-wipe .after{
  position:absolute;
  inset:0;
  width:100%;
  clip-path: inset(0 50% 0 0);
}

.ba-wipe .after img{
  width:100%;
  height:100%;
  display:block;
  object-fit:contain;
  background:#020617;
  transform: translate(0px,0px) scale(1);
}

.ba-wipe .labels{position:absolute; inset:0; pointer-events:none;}
.ba-wipe .tag{
  position:absolute;
  top:12px;
  background:rgba(2,6,23,.7);
  border:1px solid rgba(255,255,255,.18);
  padding:6px 10px;
  border-radius:999px;
  font-weight:800;
  font-size:.85rem;
  backdrop-filter: blur(6px);
}
.ba-wipe .tag.left{left:12px}
.ba-wipe .tag.right{right:12px}

.ba-wipe .scrubber{
  position:absolute; inset:0;
  width:100%; height:100%;
  opacity:0;
  cursor:ew-resize;
  z-index:4;
}

.ba-wipe .divider{
  position:absolute;
  top:0; bottom:0;
  left:50%;
  width:2px;
  background:rgba(255,255,255,.85);
  z-index:3;
  transform: translateX(-1px);
  pointer-events:none;
}
.ba-wipe .knob{
  position:absolute;
  top:50%;
  left:50%;
  transform: translate(-50%,-50%);
  width:40px;
  height:40px;
  border-radius:999px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:900;
  border:1px solid rgba(255,255,255,.25);
  background:linear-gradient(135deg,#14b8ff,#3b82f6);
  color:#020617;
  box-shadow: 0 12px 30px rgba(20,184,255,.25);
}
.ba-wipe .edge{
  position:absolute;
  top:0; bottom:0;
  left:50%;
  width:14px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(20,184,255,.20), transparent);
  z-index:2;
  pointer-events:none;
}

/* Google Reviews embed (dark mode) */
.google-reviews-embed{
  margin-top: 18px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 16px;
  padding: 16px;
  overflow: hidden;
}

.reviews-fallback{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.review-card{
  background: rgba(2,6,23,.65);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 14px;
  padding: 14px;
}

.review-card .stars{
  letter-spacing: 1px;
  font-weight: 900;
  margin-bottom: 8px;
}

.review-card p{
  margin: 0 0 10px;
  color: rgba(226,232,240,.95);
  line-height: 1.45;
}

.review-card .who{
  font-size: .9rem;
  color: rgba(148,163,184,.95);
}

.reviews-note{
  margin-top: 10px;
  font-size: .95rem;
  color: rgba(148,163,184,.95);
}

@media (max-width: 560px){
/* FIX: weird left gap on estimate panel (mobile only) */
.estimate,
.estimate-wrap,
.estimate-panel,
.estimate-card {
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.estimate .container,
.estimate-wrap .container {
  padding-left: 16px !important;
  padding-right: 16px !important;
}

  .google-reviews-embed{ padding: 14px; }
  .reviews-fallback{ grid-template-columns: 1fr; }
}


/* FIX: estimate card alignment (Safari/desktop) */
.hero-grid{
  align-items: start;
  justify-items: stretch;
}
.hero-card#estimate{
  width: 100%;
  justify-self: stretch;
  margin-left: 0 !important;
}



/* ===== Layout stabilization: results then estimate ===== */
.hero-grid.hero-grid--single{ grid-template-columns: 1fr !important; }
#estimate .hero-card{ max-width: 760px; margin: 0 auto; }
@media(max-width: 560px){
  #estimate .hero-card{ max-width: 100%; }
}
