/* ==========================================================================
   APEX Power Washing & Paver Sealing
   Single static stylesheet - no build step, no framework.
   ========================================================================== */

:root {
  --navy-900: #05090f;
  --navy-800: #0a1524;
  --navy-700: #101f33;
  --navy-600: #17293f;
  --line: rgba(140, 162, 184, 0.22);

  --blue: #2c9bf0;
  --blue-bright: #4fb4ff;
  --blue-deep: #0b57b0;
  --ink: #0e1a26;
  --body: #4a5b6b;
  --muted: #7d8fa1;
  --white: #ffffff;
  --paper: #f6f9fc;

  --shadow-sm: 0 1px 2px rgba(10, 21, 36, 0.08), 0 2px 8px rgba(10, 21, 36, 0.06);
  --shadow-md: 0 4px 12px rgba(10, 21, 36, 0.1), 0 12px 32px rgba(10, 21, 36, 0.1);
  --shadow-lg: 0 12px 28px rgba(10, 21, 36, 0.14), 0 28px 64px rgba(10, 21, 36, 0.16);

  --radius: 14px;
  --radius-lg: 20px;
  --wrap: 1180px;
  --header-h: 84px;

  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-deep); }

h1, h2, h3, h4 {
  color: var(--ink);
  line-height: 1.14;
  margin: 0 0 0.5em;
  letter-spacing: -0.02em;
  font-weight: 800;
}
h1 { font-size: clamp(2.1rem, 5.4vw, 3.6rem); }
h2 { font-size: clamp(1.75rem, 3.8vw, 2.6rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.35rem); }
p { margin: 0 0 1rem; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section--tint { background: var(--paper); }
.section--dark { background: var(--navy-800); color: #b9c8d6; }
.section--dark h2, .section--dark h3 { color: var(--white); }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue-deep);
  margin-bottom: 0.85rem;
}
.section--dark .eyebrow { color: var(--blue-bright); }

.section-head { max-width: 660px; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { font-size: 1.06rem; margin-bottom: 0; }

.lede { font-size: 1.12rem; }

/* ---------- buttons ------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.95rem 1.7rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease,
    border-color 0.15s ease, color 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid var(--blue-bright); outline-offset: 3px; }

.btn--primary {
  background: linear-gradient(180deg, var(--blue-bright), var(--blue-deep));
  color: var(--white);
  box-shadow: var(--shadow-md);
}
.btn--primary:hover { box-shadow: var(--shadow-lg); }

.btn--ghost {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.55);
  color: var(--white);
  backdrop-filter: blur(6px);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.16); border-color: var(--white); }

.btn--dark { background: var(--navy-800); color: var(--white); }
.btn--dark:hover { background: var(--navy-700); }

.btn--lg { padding: 1.1rem 2.1rem; font-size: 1.08rem; }
.btn--block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.85rem; }

/* ---------- header ------------------------------------------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(5, 9, 15, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}
.header__inner { display: flex; align-items: center; gap: 1.25rem; width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.header__logo { display: flex; align-items: center; margin-right: auto; }
.header__logo img { height: 60px; width: auto; }

.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a {
  color: #cfdcea;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  transition: color 0.15s ease;
}
.nav a:hover { color: var(--white); }

.header__phone {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--white);
  font-weight: 800;
  font-size: 1.05rem;
  text-decoration: none;
  white-space: nowrap;
}
.header__phone:hover { color: var(--blue-bright); }
.header__phone svg { flex: none; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  cursor: pointer;
  color: var(--white);
}
.nav-toggle span {
  display: block;
  width: 20px; height: 2px;
  margin: 4px auto;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- hero --------------------------------------------------------- */
.hero {
  position: relative;
  background: var(--navy-900);
  color: #c6d4e2;
  overflow: hidden;
}
.hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(3.5rem, 7vw, 5.5rem);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 55% at 18% 12%, rgba(44, 155, 240, 0.26), transparent 68%),
    radial-gradient(48% 45% at 88% 78%, rgba(11, 87, 176, 0.3), transparent 70%);
  pointer-events: none;
}
.hero h1 { color: var(--white); }
.hero h1 .accent {
  background: linear-gradient(180deg, #8ad6ff, var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p { font-size: 1.14rem; max-width: 46ch; }
.hero .btn-row { margin-top: 1.9rem; }

.hero__points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.5rem;
  margin: 1.6rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.95rem;
  color: #9db0c4;
}
.hero__points li { display: flex; align-items: center; gap: 0.45rem; }
.hero__points li::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--blue-bright);
  flex: none;
}

/* ---------- before / after slider ---------------------------------------- */
.ba {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--navy-700);
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}
.ba__frame { position: relative; display: block; width: 100%; }
.ba__frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
/* The "after" image is the base layer; "before" sits exactly on top of it and
   is revealed with clip-path. Clipping rather than resizing a narrow wrapper
   keeps both images at identical size and position, so the seam always lines
   up even if the two source photos differ slightly in dimensions. */
.ba__after { position: relative; z-index: 1; }
.ba__before {
  position: absolute;
  inset: 0;
  z-index: 2;
  clip-path: inset(0 50% 0 0);
  will-change: clip-path;
}
.ba__before img { width: 100%; height: 100%; object-fit: cover; }

.ba__handle {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 3;
  width: 3px;
  margin-left: -1.5px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 0 1px rgba(10, 21, 36, 0.28);
  pointer-events: none;
}
.ba__grip {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: var(--shadow-md);
  display: grid;
  place-items: center;
  color: var(--navy-800);
}
.ba__grip::before {
  content: "‹ ›";
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -1px;
}

/* The range input is the real control: keyboard + screen-reader accessible. */
.ba__range {
  position: absolute;
  inset: 0;
  z-index: 4;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
}
.ba__range::-webkit-slider-thumb { -webkit-appearance: none; width: 54px; height: 100vh; }
.ba__range::-moz-range-thumb { width: 54px; height: 100vh; border: 0; background: transparent; }
.ba:focus-within .ba__handle { box-shadow: 0 0 0 3px var(--blue-bright); }

.ba__tag {
  position: absolute;
  bottom: 14px;
  z-index: 3;
  padding: 0.32rem 0.8rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--white);
  background: rgba(5, 9, 15, 0.72);
  backdrop-filter: blur(4px);
  pointer-events: none;
}
.ba__tag--before { left: 14px; }
.ba__tag--after { right: 14px; background: rgba(11, 87, 176, 0.88); }

/* ---------- trust bar ---------------------------------------------------- */
.trust {
  background: var(--navy-700);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.6rem 0;
}
.trust__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.trust__item { display: flex; align-items: center; gap: 0.9rem; justify-content: center; }
.trust__item svg { flex: none; color: var(--blue-bright); }
.trust__item strong { display: block; color: var(--white); font-size: 1rem; letter-spacing: 0.01em; }
.trust__item span { display: block; color: #93a7bc; font-size: 0.83rem; text-transform: uppercase; letter-spacing: 0.09em; }

/* ---------- services ----------------------------------------------------- */
.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 1.4rem; }
.service {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem 1.6rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(44, 155, 240, 0.45); }
.service__icon {
  width: 50px; height: 50px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: linear-gradient(180deg, rgba(79, 180, 255, 0.16), rgba(11, 87, 176, 0.14));
  color: var(--blue-deep);
  margin-bottom: 1.1rem;
}
.service h3 { margin-bottom: 0.7rem; }
.service ul { margin: 0; padding: 0; list-style: none; }
.service li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.45rem;
  font-size: 0.97rem;
}
.service li:last-child { margin-bottom: 0; }
.service li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.62em;
  width: 8px; height: 8px;
  border-radius: 2px;
  background: var(--blue);
  opacity: 0.55;
}
.service li em { font-style: normal; color: var(--muted); font-size: 0.9em; }

/* ---------- gallery ------------------------------------------------------ */
.ba-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 1.75rem; }
.ba-card { display: flex; flex-direction: column; }
.ba-card__meta { padding-top: 0.95rem; }
.ba-card__meta h3 { font-size: 1.08rem; margin-bottom: 0.2rem; }
.ba-card__meta p { margin: 0; font-size: 0.93rem; color: var(--muted); }
.section--dark .ba-card__meta p { color: #8fa3b7; }

.grid-photos { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.1rem; }
.photo {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: var(--navy-700);
  aspect-ratio: 4 / 5;
}
.photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.photo:hover img { transform: scale(1.05); }
.photo figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1.5rem 1rem 0.85rem;
  font-size: 0.87rem;
  font-weight: 600;
  color: var(--white);
  background: linear-gradient(180deg, transparent, rgba(5, 9, 15, 0.86));
}

/* ---------- process ------------------------------------------------------ */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.5rem; counter-reset: step; }
.step { position: relative; padding-top: 3.4rem; }
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: 0; left: 0;
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--blue-bright), var(--blue-deep));
  color: var(--white);
  font-weight: 800;
  font-size: 1.05rem;
  box-shadow: var(--shadow-sm);
}
.step h3 { font-size: 1.1rem; margin-bottom: 0.4rem; }
.step p { font-size: 0.96rem; margin: 0; }

/* ---------- quote form --------------------------------------------------- */
.quote { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }

.form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 3vw, 2.4rem);
  box-shadow: var(--shadow-lg);
  color: var(--body);
}
.field { margin-bottom: 1.05rem; }
.field label {
  display: block;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.38rem;
  letter-spacing: 0.01em;
}
.field .req { color: #d14343; }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.82rem 0.95rem;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.field textarea { min-height: 108px; resize: vertical; }
.field select { appearance: none; background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='%234a5b6b' d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; background-size: 12px; padding-right: 2.6rem; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  background: var(--white);
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(44, 155, 240, 0.16);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.05rem; }

.form-note { font-size: 0.84rem; color: var(--muted); margin: 0.9rem 0 0; text-align: center; }
.form-status { margin: 0 0 1rem; padding: 0.85rem 1rem; border-radius: 10px; font-size: 0.94rem; font-weight: 600; }
.form-status[hidden] { display: none; }
.form-status.is-ok { background: #e6f7ee; color: #15683f; border: 1px solid #a9dfc4; }
.form-status.is-err { background: #fdeaea; color: #9a2727; border: 1px solid #f2b8b8; }
.form-status.is-busy { background: #eaf4fd; color: #14538f; border: 1px solid #b6d9f6; }

/* honeypot - hidden from people, visible to bots */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.contact-list { list-style: none; margin: 1.8rem 0 0; padding: 0; }
.contact-list li { display: flex; gap: 0.9rem; align-items: flex-start; margin-bottom: 1.25rem; }
.contact-list svg { flex: none; color: var(--blue-bright); margin-top: 3px; }
.contact-list strong { display: block; color: var(--white); font-size: 1.02rem; }
.contact-list a { color: var(--blue-bright); text-decoration: none; font-weight: 700; }
.contact-list a:hover { text-decoration: underline; }
.contact-list span { font-size: 0.94rem; }

.areas { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.9rem; padding: 0; list-style: none; }
.areas li {
  padding: 0.34rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  font-size: 0.86rem;
  color: #b9c8d6;
}

/* ---------- footer ------------------------------------------------------- */
.footer { background: var(--navy-900); color: #7d8fa1; padding: 3.2rem 0 2rem; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; margin-bottom: 2.4rem; }
.footer img { height: 116px; width: auto; margin-bottom: 1rem; }
.footer h4 { color: var(--white); font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 1rem; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 0.55rem; font-size: 0.94rem; }
.footer a { color: #93a7bc; text-decoration: none; }
.footer a:hover { color: var(--blue-bright); }
.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.86rem;
}

/* ---------- sticky mobile call bar --------------------------------------- */
.callbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 70;
  display: none;
  gap: 0.6rem;
  padding: 0.6rem 0.75rem calc(0.6rem + env(safe-area-inset-bottom));
  background: rgba(5, 9, 15, 0.96);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.callbar .btn { flex: 1; padding: 0.85rem 1rem; font-size: 0.98rem; }

/* ---------- responsive --------------------------------------------------- */
@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; }
  .quote { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .trust__grid { grid-template-columns: 1fr; }
  .trust__item { justify-content: flex-start; }
}

@media (max-width: 760px) {
  :root { --header-h: 70px; }
  body { font-size: 16px; }

  .header__logo img { height: 44px; }
  .header__phone span { display: none; }
  .nav-toggle { display: block; }

  .nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 1.25rem 1.25rem;
    background: rgba(5, 9, 15, 0.98);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: none;
  }
  .nav[data-open="true"] { display: flex; }
  .nav a { padding: 0.85rem 0; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }

  .callbar { display: flex; }
  body { padding-bottom: 72px; }

  .field-row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; }
  .ba__grip { width: 40px; height: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .photo:hover img { transform: none; }
  .btn:hover, .service:hover { transform: none; }
}

@media print {
  .header, .callbar, .btn, .nav-toggle { display: none !important; }
  body { color: #000; }
}
