:root {
  --bg: #0c1116;
  --panel: #121820;
  --txt: #e7eef7;
  --muted: #a8b3c4;
  --brand: #37c4a7;
  --accent: #4ad3ff;
  --ring: #56c1ff55;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--txt); font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif; }
a { color: var(--accent); text-decoration: none; }
.container { width: min(1100px, 92vw); margin: 0 auto; padding: 2.5rem 0; }

.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 0;
}

.brand {
  display: flex;
  align-items: center;
  flex: 1 1 0;
  min-width: 0;
}

.logo {
  display: block;
  height: 100px;
  width: auto;
  object-fit: contain;
}

.tagline {
  margin: 0 0 0 2.5rem;
  color: var(--muted);
  font-size: 1.15rem;
  line-height: 1.3;
  display: flex;
  align-items: center;
  height: 100%;
  flex: 1 1 0;
}

.cta-btn {
  margin-left: 2.5rem;
}

.cta-btn { display: inline-block; padding: .9rem 1.2rem; border-radius: 10px; background: linear-gradient(90deg,var(--brand),var(--accent)); color: #001018; font-weight: 700; border: none; cursor: pointer; }
.cta-btn:hover { filter: brightness(1.05); }

.hidden { display:none; }
.video-wrap { aspect-ratio:16/9; }

.value h2, .services h2, .form h2, .trust h2, .faq h2, .replacement h2 { font-size: clamp(22px, 3vw, 30px); margin-bottom: .75rem; }
.bullets { margin: .5rem 0 0; padding-left: 1rem; line-height: 1.6; }
.fineprint { color: var(--muted); margin-top: .75rem; font-size: .95rem; }

.trust .carousel { background: var(--panel); border: 1px solid #1e2630; border-radius: 14px; padding: 1rem; min-height: 140px; display: grid; place-items: center; overflow: hidden; position: relative; }
.slide { opacity: 0; transform: translateY(10px); transition: opacity .4s, transform .4s; position: absolute; inset: 0; padding: 1.25rem; display: grid; place-content: center; text-align: center; }
.slide.active { opacity: 1; transform: translateY(0); position: absolute; }
.review-text { font-size: 1.05rem; line-height: 1.6; }
.review-meta { margin-top: .5rem; color: var(--muted); font-size: .95rem; }

.service-card { background: var(--panel); border: 1px solid #1e2630; border-radius: 14px; padding: 1rem; }
.price { font-weight: 700; margin-top: .75rem; }

.form form { background: var(--panel); border: 1px solid #1e2630; border-radius: 14px; padding: 1rem; }
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .9rem; }
.grid .span2 { grid-column: 1 / -1; }
label { display: grid; gap: .4rem; font-size: .95rem; }
input, select, textarea { background: #0e151c; border: 1px solid #1e2630; color: var(--txt); border-radius: 10px; padding: .7rem .8rem; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--ring); border-color: transparent; }
button.cta-btn { margin-top: .5rem; }
#form-status { margin-top: .75rem; color: var(--muted); min-height: 1.2em; }

.contact-inline { color: var(--muted); margin-top: .75rem; }

.faq details { background: var(--panel); border: 1px solid #1e2630; border-radius: 12px; padding: .75rem 1rem; margin: .6rem 0; }
.faq summary { cursor: pointer; font-weight: 600; }

.footer { border-top: 1px solid #1e2630; color: var(--muted); padding: 1.5rem 0 3rem; }

.img-caption {
  text-align: center;
  color: var(--muted);
  font-size: 0.98rem;
  margin-top: 0.4em;
  cursor: pointer;
}

.modal-overlay {
  position: fixed;
  z-index: 9999;
  inset: 0;
  background: rgba(12,17,22,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.modal-content {
  position: relative;
  max-width: 96vw;
  max-height: 92vh;
  background: none;
  border-radius: 12px;
  box-shadow: 0 8px 32px #000a;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.modal-content img {
  max-width: 96vw;
  max-height: 80vh;
  border-radius: 10px;
  background: #fff;
}
.modal-close {
  position: absolute;
  top: 0.5em;
  right: 0.7em;
  background: #222c;
  color: #fff;
  border: none;
  font-size: 2rem;
  line-height: 1;
  border-radius: 50%;
  width: 2.2rem;
  height: 2.2rem;
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.modal-close:hover,
.modal-close:focus {
  background: #000e;
}
.modal-caption {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 1.08rem;
  text-align: center;
  max-width: 90vw;
  word-break: break-word;
}

.examples {
  width: min(1100px, 92vw);
  margin: 0 auto;
  padding: 2.5rem 0;
}

.examples h2 {
  font-size: clamp(22px, 3vw, 30px);
  margin-bottom: .75rem;
}

.examples figure {
  background: var(--panel);
  border: 1px solid #1e2630;
  border-radius: 14px;
  padding: 1rem;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.examples img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}

.examples .img-caption {
  text-align: center;
  color: var(--muted);
  font-size: 0.98rem;
  margin-top: 0.4em;
  cursor: pointer;
}

.map-block {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

#map {
  width: 100%;
  max-width: 600px;
  min-width: 280px;
  aspect-ratio: 1 / 1;
  background: #eee;
  display: block;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
  }
}

@media (max-width: 500px) {
  .services-grid {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(4, 1fr);
  }
}

@media (max-width: 800px) {
  .grid { grid-template-columns: 1fr; }
  .hero {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .brand {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }
  .tagline {
    margin: 0.5rem 0 0 0;
    font-size: 1.05rem;
    width: 100%;
    order: 2;
  }
  .cta-btn {
    margin-left: 0;
    margin-top: 0.5rem;
    width: 100%;
    text-align: center;
  }
}

/* Mobile spacing & tap targets */
@media (max-width: 480px) {
  .container { padding: 1.5rem 0; }
  .cta-btn { padding: 1rem 1.1rem; font-size: 1rem; }
  input, select, textarea { padding: .9rem 1rem; }
}

/* Bigger tap targets + visible focus */
button, a, input, select, textarea { min-height: 44px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Optional: make header CTA sticky on small screens */
@media (max-width: 640px) {
  header .cta-btn { position: sticky; top: .5rem; z-index: 10; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .slide { transition: none !important; }
}

/* SMS opt-in checkbox and label inline */
#sms_opt_in,
.sms-opt-label {
  display: inline-block;
  vertical-align: middle;
  margin: 0;
}
.sms-opt-label {
  margin-left: 0.5em;
  font-weight: normal;
  cursor: pointer;
}
