/* NextWash — vanilla one-page */

:root {
  --color-bg: #0c0c0c;
  --color-surface: #141414;
  --color-surface-2: #1a1a1a;
  --color-primary: #1a5276;
  --color-primary-l: #2e86c1;
  --color-gray: #7f8c8d;
  --color-text: #f0ede8;
  --color-muted: #888888;
  --color-border: #252525;
  --color-error: #c0392b;
  --font-heading: "Barlow Condensed", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --header-h: 64px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--color-text);
  background-color: var(--color-bg);
  position: relative;
  min-height: 100vh;
}

/* Subtle grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-primary-l);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.ba-handle:focus-visible {
  outline: 2px solid var(--color-primary-l);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: min(1120px, 100% - 2rem);
  margin-inline: auto;
}

/* ——— Header ——— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  background: rgba(12, 12, 12, 0.92);
  transition: background 0.35s var(--ease-out), border-color 0.35s var(--ease-out), backdrop-filter 0.35s var(--ease-out);
}

.site-header.is-scrolled {
  background: rgba(12, 12, 12, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--color-border);
}

.header-inner {
  width: min(1120px, 100% - 2rem);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-link:hover {
  text-decoration: none;
  opacity: 0.9;
}

.logo-img {
  height: 40px;
  width: auto;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  background: var(--color-surface-2);
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  margin-inline: auto;
  background: var(--color-text);
  transition: transform 0.25s ease, opacity 0.2s ease;
}

body.nav-open .nav-toggle .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

body.nav-open .nav-toggle .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

body.nav-open .nav-toggle .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-list a {
  color: var(--color-text);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.nav-list a:hover {
  color: var(--color-primary-l);
  text-decoration: none;
}

.btn-nav-cta {
  flex-shrink: 0;
}

.nav-close {
  display: none;
}

@media (max-width: 639px) {
  .nav-toggle {
    display: flex;
    z-index: 1002;
  }

  .nav-close {
    display: flex;
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    line-height: 1;
    color: var(--color-text);
    background: var(--color-surface-2);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    cursor: pointer;
    z-index: 1003;
  }

  .site-nav {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    background: rgba(12, 12, 12, 0.97);
    padding: 2rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s var(--ease-out), visibility 0.3s;
    z-index: 1001;
  }

  body.nav-open .site-nav {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav-list {
    flex-direction: column;
    gap: 1.25rem;
  }

  .nav-list a {
    font-size: 1.25rem;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.08em;
  }

  .btn-nav-cta {
    margin-top: 0.5rem;
  }
}

/* ——— Buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.25rem;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: 4px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.12s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--color-primary-l);
  color: #fff;
  border-color: var(--color-primary-l);
}

.btn-primary:hover {
  background: #2471a3;
  border-color: #2471a3;
  text-decoration: none;
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-primary-l);
}

.btn-ghost:hover {
  background: rgba(46, 134, 193, 0.12);
  text-decoration: none;
  color: var(--color-text);
}

.link-btn {
  background: none;
  border: 0;
  padding: 0;
  color: var(--color-primary-l);
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
}

.link-btn:hover {
  color: var(--color-text);
}

/* ——— Hero ——— */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--header-h) + 2rem) 1rem 5rem;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  background: var(--color-surface) url("assets/hero.jpg") center / cover no-repeat;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 44rem;
}

.hero-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 1rem;
}

.hero-sub {
  margin: 0 0 2rem;
  font-size: 1.1rem;
  color: var(--color-muted);
  font-weight: 400;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.hero-animate {
  opacity: 0;
  transform: translateY(20px);
  animation: heroIn 0.85s var(--ease-out) forwards;
}

.hero-title.hero-animate {
  animation-delay: 0.08s;
}

.hero-sub.hero-animate {
  animation-delay: 0.22s;
}

.hero-ctas.hero-animate {
  animation-delay: 0.38s;
}

@keyframes heroIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-badge {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 2;
  margin: 0;
  padding: 0.5rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-text);
  background: rgba(20, 20, 20, 0.85);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  max-width: min(320px, calc(100% - 2rem));
}

@media (max-width: 639px) {
  .hero-badge {
    right: 50%;
    transform: translateX(50%);
    text-align: center;
  }
}

/* ——— Sections ——— */
.section {
  padding: 4.5rem 0;
}

.section-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: center;
  margin: 0 0 2.5rem;
}

.section-title-left {
  text-align: left;
}

/* ——— Reveal ——— */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ——— Services ——— */
.section-services {
  border-top: 1px solid var(--color-border);
}

.services-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

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

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  position: relative;
  padding: 1.75rem 1.5rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  transition: transform 0.25s var(--ease-out), border-color 0.25s ease, box-shadow 0.25s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-primary-l);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.service-card.is-popular {
  border-color: var(--color-primary-l);
}

.service-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  font-size: 0.65rem;
  font-weight: 700;
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.5rem;
  background: var(--color-primary-l);
  color: #fff;
  border-radius: 3px;
}

.service-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 1rem;
  color: var(--color-primary-l);
}

.service-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.35rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 0.75rem;
}

.service-desc {
  margin: 0 0 1rem;
  color: var(--color-muted);
  font-size: 0.95rem;
}

.service-price {
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 1.25rem;
}

.service-card .btn {
  width: 100%;
}

/* ——— Before / After ——— */
.section-ba {
  border-top: 1px solid var(--color-border);
}

.ba-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
  max-width: 42rem;
  margin-inline: auto;
}

.before-after-slider {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  cursor: ew-resize;
  border: 1px solid var(--color-border);
  touch-action: none;
  --ba-split: 50%;
}

.before-after-slider.is-dragging {
  cursor: grabbing;
}

.ba-before {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.ba-before img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.ba-after {
  position: absolute;
  inset: 0;
  z-index: 1;
  clip-path: inset(0 0 0 var(--ba-split));
  pointer-events: none;
}

.ba-after img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.ba-label {
  position: absolute;
  top: 0.65rem;
  z-index: 2;
  font-size: 0.65rem;
  font-weight: 700;
  font-family: var(--font-heading);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.5rem;
  background: rgba(12, 12, 12, 0.75);
  border: 1px solid var(--color-border);
  border-radius: 3px;
  color: var(--color-text);
}

.ba-before .ba-label {
  left: 0.65rem;
}

.ba-after .ba-label {
  right: 0.65rem;
}

.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--ba-split);
  width: 44px;
  margin-left: -22px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: ew-resize;
  background: transparent;
  border: 0;
  padding: 0;
}

.ba-handle::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  transform: translateX(-50%);
  background: #fff;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
}

.ba-handle-grip {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-surface);
  border: 2px solid #fff;
  color: var(--color-text);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  pointer-events: none;
}

.ba-arrows {
  display: block;
  color: var(--color-text);
}

/* ——— Zone ——— */
.section-zone {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
}

.zone-layout {
  display: grid;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 900px) {
  .zone-layout {
    grid-template-columns: 1fr 1.1fr;
    gap: 3rem;
  }
}

.zone-intro {
  color: var(--color-muted);
  margin: 0 0 1.25rem;
}

.zone-list {
  margin: 0 0 1.5rem;
  padding-left: 1.25rem;
  color: var(--color-text);
}

.zone-list li {
  margin-bottom: 0.35rem;
}

.zone-note {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-muted);
}

.zone-map-wrap {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  min-height: 280px;
}

.zone-map {
  display: block;
  width: 100%;
  height: min(400px, 50vh);
  border: 0;
}

/* ——— Contact ——— */
.section-contact {
  border-top: 1px solid var(--color-border);
}

.contact-layout {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 900px) {
  .contact-layout {
    grid-template-columns: 1fr 1.1fr;
    gap: 3rem;
  }
}

.contact-lead {
  color: var(--color-muted);
  margin: 0 0 1.5rem;
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.contact-list li {
  margin-bottom: 1rem;
}

.contact-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}

.contact-icon-svg {
  flex-shrink: 0;
  display: flex;
  color: var(--color-primary-l);
}

.contact-row-social {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.25rem;
}

.contact-social-link {
  display: flex;
  color: var(--color-muted);
  transition: color 0.2s ease;
}

.contact-social-link:hover {
  color: var(--color-primary-l);
  text-decoration: none;
}

.contact-social-svg {
  width: 26px;
  height: 26px;
}

.contact-form {
  background: var(--color-surface);
  padding: 1.75rem;
  border-radius: 8px;
  border: 1px solid var(--color-border);
}

.form-row {
  display: grid;
  gap: 1rem;
}

@media (min-width: 480px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

.field {
  margin-bottom: 1rem;
}

.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.35rem;
  color: var(--color-text);
}

.req {
  color: var(--color-primary-l);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  font: inherit;
  color: var(--color-text);
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  transition: border-color 0.2s ease;
}

.field textarea {
  resize: vertical;
  min-height: 100px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--color-primary-l);
}

.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea {
  border-color: var(--color-error);
}

.field-error {
  display: block;
  min-height: 1.25rem;
  font-size: 0.8rem;
  color: var(--color-error);
  margin-top: 0.25rem;
}

.btn-submit {
  width: 100%;
  margin-top: 0.5rem;
}

.form-success {
  margin: 1rem 0 0;
  padding: 0.75rem;
  background: rgba(46, 134, 193, 0.15);
  border: 1px solid var(--color-primary);
  border-radius: 4px;
  color: var(--color-text);
  font-size: 0.95rem;
}

.form-error-global {
  margin: 1rem 0 0;
  color: var(--color-error);
  font-size: 0.95rem;
}

/* ——— Footer ——— */
.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 3rem 0;
  background: var(--color-bg);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
}

.footer-logo {
  height: 34px;
  width: auto;
  margin-inline: auto;
}

.footer-tagline {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.95rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 1.5rem;
}

.footer-nav a {
  color: var(--color-text);
  font-size: 0.9rem;
}

.footer-nav a:hover {
  color: var(--color-primary-l);
  text-decoration: none;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.social-link {
  display: flex;
  color: var(--color-muted);
  transition: color 0.2s ease;
}

.social-link:hover {
  color: var(--color-primary-l);
  text-decoration: none;
}

.social-svg {
  width: 22px;
  height: 22px;
}

.footer-copy {
  margin: 0;
  font-size: 0.85rem;
  color: var(--color-muted);
  max-width: 36rem;
  line-height: 1.6;
}

/* ——— Legal dialog ——— */
.legal-dialog {
  max-width: min(520px, 100% - 2rem);
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-surface);
  color: var(--color-text);
}

.legal-dialog::backdrop {
  background: rgba(0, 0, 0, 0.75);
}

.legal-dialog-inner {
  padding: 1.75rem;
}

.legal-dialog h2 {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 1rem;
  font-size: 1.35rem;
}

.legal-dialog p {
  margin: 0 0 1rem;
  color: var(--color-muted);
  font-size: 0.95rem;
}

.legal-close {
  margin-top: 0.5rem;
}
