/* ============================================================
   XO Power Washing — styles
   ============================================================ */

:root {
  --c-primary: #0B3B5C;
  --c-primary-2: #0f4e78;
  --c-accent: #29B6F6;
  --c-accent-2: #7FD3FF;
  --c-surface: #F6F9FC;
  --c-surface-2: #EEF3F8;
  --c-surface-blue: #E6EEF7;
  --c-surface-cream: #FBF6EE;
  --c-text: #1A2332;
  --c-muted: #5A6A7A;
  --c-card: #ffffff;
  --c-line: #e2e8ef;

  --shadow-sm: 0 1px 2px rgba(16, 36, 60, .06), 0 1px 3px rgba(16, 36, 60, .06);
  --shadow-md: 0 6px 16px rgba(16, 36, 60, .08), 0 2px 4px rgba(16, 36, 60, .06);
  --shadow-lg: 0 20px 40px -12px rgba(16, 36, 60, .25);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;

  --nav-h: 76px;
  --nav-h-scrolled: 60px;

  --ease-out: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--c-text);
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--c-primary); text-decoration: none; }
a:hover { color: var(--c-accent); }

h1, h2, h3, h4, h5 {
  font-family: 'Poppins', 'Inter', sans-serif;
  color: var(--c-text);
  line-height: 1.15;
  margin: 0 0 .6em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.25rem, 5vw + 1rem, 4.25rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 2.4vw + 1rem, 2.75rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }

p { margin: 0 0 1em; }
.muted { color: var(--c-muted); }

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

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: #fff; color: var(--c-primary);
  padding: 10px 14px; border-radius: 0 0 8px 0;
  font-weight: 600; z-index: 1000;
}
.skip-link:focus { left: 0; outline: 3px solid var(--c-accent); }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600; font-size: .95rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .2s var(--ease-out), box-shadow .25s var(--ease-out), background .2s, color .2s;
  text-decoration: none;
  white-space: nowrap;
}
.btn--lg { padding: 16px 30px; font-size: 1rem; }

.btn--primary {
  background: linear-gradient(135deg, var(--c-accent) 0%, var(--c-primary) 100%);
  color: #fff;
  box-shadow: var(--shadow-md);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: #fff;
}
.btn--ghost {
  background: rgba(255,255,255,.1);
  color: #fff;
  border-color: rgba(255,255,255,.6);
  backdrop-filter: blur(6px);
}
.btn--ghost:hover {
  background: rgba(255,255,255,.95);
  color: var(--c-primary);
  transform: translateY(-2px);
}

/* ============================================================
   Nav
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  transition: height .3s var(--ease-out), background .3s, box-shadow .3s, backdrop-filter .3s;
  background: transparent;
}
.nav.is-scrolled {
  height: var(--nav-h-scrolled);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  box-shadow: 0 1px 0 rgba(16, 36, 60, .08);
}
.nav__inner {
  height: 100%;
  display: flex; align-items: center; gap: 24px;
  justify-content: space-between;
}
.nav__brand {
  display: flex; align-items: center; gap: 10px;
  color: #fff; font-family: 'Poppins', sans-serif; font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: .02em;
  text-decoration: none;
}
.nav__brand em { font-style: normal; font-weight: 600; opacity: .9; font-size: .92em; }
.nav.is-scrolled .nav__brand { color: var(--c-primary); }
.nav__logo-mark { display: inline-flex; }
.nav__logo-img {
  height: 52px;
  width: auto;
  display: block;
  transition: height .3s var(--ease-out), filter .3s;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.25));
}
.nav.is-scrolled .nav__logo-img {
  height: 42px;
  filter: none;
}
@media (max-width: 768px) {
  .nav__logo-img { height: 44px; }
  .nav.is-scrolled .nav__logo-img { height: 38px; }
  .nav__logo-text { display: none; }
}

.nav__links {
  display: flex; gap: 4px;
  margin-left: auto; margin-right: 8px;
}
.nav__links a {
  position: relative;
  padding: 10px 14px;
  color: #fff;
  font-weight: 500; font-size: .95rem;
  border-radius: 8px;
  transition: color .2s, background .2s;
}
.nav.is-scrolled .nav__links a { color: var(--c-text); }
.nav__links a:hover { color: var(--c-accent); background: rgba(255,255,255,.08); }
.nav.is-scrolled .nav__links a:hover { background: var(--c-surface-2); }
.nav__links a.is-active::after {
  content: ''; position: absolute; left: 14px; right: 14px; bottom: 4px;
  height: 2px; background: var(--c-accent); border-radius: 2px;
}

.nav__cta { display: flex; align-items: center; gap: 12px; }
.nav__phone {
  display: inline-flex; align-items: center; gap: 8px;
  color: #fff; font-weight: 600;
  padding: 8px 4px;
}
.nav.is-scrolled .nav__phone { color: var(--c-primary); }
.nav__phone:hover { color: var(--c-accent); }

.nav__toggle {
  display: none;
  background: transparent; border: 0; cursor: pointer;
  width: 42px; height: 42px;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
  padding: 0;
}
.nav__toggle span {
  width: 22px; height: 2px; background: #fff; border-radius: 2px;
  transition: transform .25s, opacity .2s, background .2s;
}
.nav.is-scrolled .nav__toggle span { background: var(--c-primary); }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__mobile {
  position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  background: #fff;
  box-shadow: var(--shadow-md);
  display: flex; flex-direction: column; gap: 4px;
  padding: 14px 5% 22px;
  transform: translateY(-10px); opacity: 0; pointer-events: none;
  transition: transform .25s var(--ease-out), opacity .2s;
}
.nav.is-scrolled .nav__mobile { top: var(--nav-h-scrolled); }
.nav__mobile[data-open="true"] { transform: translateY(0); opacity: 1; pointer-events: auto; }
.nav__mobile a {
  color: var(--c-text);
  padding: 12px 8px;
  border-bottom: 1px solid var(--c-line);
  font-weight: 500;
}
.nav__mobile a.btn { border: 0; margin-top: 10px; color: #fff; }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center;
  color: #fff;
  overflow: hidden;
  padding-top: var(--nav-h);
}
.hero__image {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  background-color: var(--c-primary);
  z-index: 0;
  transform: scale(1.05);
  animation: heroZoom 18s ease-out forwards;
}
@keyframes heroZoom { to { transform: scale(1); } }

.hero__overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(11,59,92,.55) 0%, rgba(11,59,92,.35) 40%, rgba(11,59,92,.85) 100%),
    radial-gradient(1000px 500px at 20% 30%, rgba(41,182,246,.3), transparent 60%);
  z-index: 1;
}
.hero__inner {
  position: relative; z-index: 2;
  padding: 60px 0 110px;
}
.hero__eyebrow {
  text-transform: uppercase; letter-spacing: .22em;
  font-size: .8rem; font-weight: 600;
  color: var(--c-accent-2);
  margin-bottom: 16px;
}
.hero__title {
  color: #fff;
  margin-bottom: 20px;
}
.hero__title span {
  background: linear-gradient(120deg, var(--c-accent-2), #fff 60%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__lede {
  font-size: clamp(1rem, 1vw + .6rem, 1.2rem);
  max-width: 620px;
  color: rgba(255,255,255,.92);
  margin-bottom: 32px;
}
.hero__cta {
  display: flex; gap: 14px; flex-wrap: wrap;
  margin-bottom: 44px;
}
.hero__badges {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; gap: 10px 18px;
  font-size: .9rem; color: rgba(255,255,255,.9);
}
.hero__badges li {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  backdrop-filter: blur(4px);
}
.hero__badges span { color: var(--c-accent-2); }

.hero__scroll {
  position: absolute; bottom: 26px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 26px; height: 40px;
  border: 2px solid rgba(255,255,255,.5);
  border-radius: 20px;
  display: flex; justify-content: center; padding-top: 6px;
}
.hero__scroll span {
  width: 3px; height: 8px; border-radius: 2px;
  background: #fff;
  animation: scrollTick 1.8s infinite;
}
@keyframes scrollTick {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(12px); opacity: 0; }
  100% { opacity: 0; }
}

/* ============================================================
   Sections
   ============================================================ */
.section {
  padding: clamp(70px, 10vw, 120px) 0;
  position: relative;
}
/* Section-by-section palette: each shift is small but clearly felt */
.services { background: #ffffff; }
.about    { background: linear-gradient(180deg, var(--c-surface) 0%, var(--c-surface-blue) 100%); }
.area     { background: var(--c-primary); color: #fff; }
.reviews  { background: var(--c-surface-cream); }
.contact  { background: linear-gradient(180deg, #ffffff 0%, var(--c-surface) 100%); }

/* Dark section (service area) — invert text + chip colors */
.area .section__title { color: #fff; }
.area .section__kicker { color: var(--c-accent-2); }
.area .section__sub { color: rgba(255,255,255,.82); }
.area .chips li {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.18);
  color: #fff;
  backdrop-filter: blur(4px);
}
.area .chips li:hover {
  background: var(--c-accent);
  color: var(--c-primary);
  border-color: transparent;
}
.section__head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}
.section__kicker {
  text-transform: uppercase; letter-spacing: .22em;
  font-size: .78rem; font-weight: 700;
  color: var(--c-accent);
  margin: 0 0 12px;
}
.section__title { margin-bottom: 14px; }
.section__sub { color: var(--c-muted); font-size: 1.05rem; margin: 0; }

/* Services */
.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.card {
  background: var(--c-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--c-line);
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
  display: flex; flex-direction: column;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.card__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--c-surface-2);
}
.card__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s var(--ease-out);
}
.card:hover .card__media img { transform: scale(1.06); }
.card__media--icon {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #E8F6FE, #D3EAFC);
}
.card__body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card__body h3 { margin: 0; }
.card__body p { margin: 0 0 14px; color: var(--c-muted); }
.card__cta {
  margin-top: auto;
  font-weight: 600;
  color: var(--c-primary);
  align-self: flex-start;
  position: relative;
}
.card__cta::after {
  content: ''; display: block; height: 2px; width: 0;
  background: var(--c-accent);
  transition: width .25s var(--ease-out);
}
.card__cta:hover { color: var(--c-accent); }
.card__cta:hover::after { width: 100%; }

/* About */
.about__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
}
.usps {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 18px;
}
.usps li {
  display: flex; gap: 16px; align-items: flex-start;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  box-shadow: var(--shadow-sm);
}
.usps__icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #E8F6FE, #D3EAFC);
  border-radius: 12px;
  font-size: 1.3rem;
}
.usps h4 { margin: 0 0 4px; font-size: 1rem; }
.usps p { margin: 0; color: var(--c-muted); font-size: .95rem; }

/* Area chips */
.chips {
  list-style: none; padding: 0;
  display: flex; flex-wrap: wrap; gap: 10px;
  justify-content: center;
  max-width: 820px; margin: 0 auto;
}
.chips li {
  padding: 10px 18px;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: 999px;
  font-weight: 500;
  color: var(--c-primary);
  box-shadow: var(--shadow-sm);
  transition: transform .2s var(--ease-out), background .2s, color .2s;
}
.chips li:hover {
  transform: translateY(-2px);
  background: var(--c-primary);
  color: #fff;
}

/* Reviews */
.reviews__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 60px;
}
.review {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-md);
  padding: 24px 26px;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 10px;
}
.review.is-new { animation: pop .45s var(--ease-out); border-color: var(--c-accent); }
@keyframes pop { from { transform: scale(.96); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.review__stars {
  color: #F5B301;
  letter-spacing: 2px;
  font-size: 1.05rem;
}
.review__text { color: var(--c-text); margin: 0; font-size: 1rem; line-height: 1.55; }
.review__meta { color: var(--c-muted); font-size: .9rem; margin-top: auto; }
.review__meta strong { color: var(--c-primary); font-weight: 600; }

.reviews__form-wrap {
  max-width: 680px; margin: 0 auto;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow-md);
}
.reviews__form-wrap h3 { margin-bottom: 6px; font-size: 1.4rem; }

/* Forms */
.form { display: grid; gap: 16px; }
.form__row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.form__field { display: flex; flex-direction: column; gap: 6px; }
.form__field span {
  font-size: .85rem; font-weight: 600; color: var(--c-text);
}
.form__field input,
.form__field select,
.form__field textarea {
  font: inherit; color: var(--c-text);
  padding: 12px 14px;
  border: 1.5px solid var(--c-line);
  border-radius: var(--radius-sm);
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
  width: 100%;
}
.form__field input:focus,
.form__field select:focus,
.form__field textarea:focus {
  outline: 0;
  border-color: var(--c-accent);
  box-shadow: 0 0 0 4px rgba(41, 182, 246, .18);
}
.form__field textarea { resize: vertical; min-height: 100px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.form__rating legend { font-size: .85rem; font-weight: 600; padding: 0; margin-bottom: 6px; }
.form__rating { border: 0; padding: 0; margin: 0; }
.stars {
  display: inline-flex; flex-direction: row-reverse; gap: 2px;
}
.stars input { position: absolute; opacity: 0; pointer-events: none; }
.stars label {
  cursor: pointer;
  font-size: 2rem;
  color: #d3dae2;
  transition: color .15s, transform .15s;
  line-height: 1;
}
.stars label:hover,
.stars label:hover ~ label,
.stars input:checked ~ label { color: #F5B301; }
.stars input:focus-visible + label { outline: 2px solid var(--c-accent); outline-offset: 2px; border-radius: 4px; }

.form__status { margin: 0; font-size: .9rem; min-height: 1.2em; }
.form__status.is-ok { color: #2E8540; }
.form__status.is-err { color: #C0392B; }

/* Contact layout */
.contact__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 56px;
  align-items: start;
}
.contact__info {
  background: linear-gradient(160deg, var(--c-primary) 0%, #133f62 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 34px 32px;
  box-shadow: var(--shadow-lg);
  position: sticky; top: calc(var(--nav-h) + 24px);
}
.contact__info h3 { color: #fff; margin-bottom: 20px; }
.contact__row {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,.1);
  color: #fff;
}
.contact__row:last-child { border-bottom: 0; }
.contact__ico {
  flex-shrink: 0;
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.1);
  border-radius: 10px;
}
.contact__row small { display: block; color: var(--c-accent-2); font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 2px; }
.contact__row strong { font-weight: 600; font-size: 1.02rem; }
a.contact__row:hover strong { color: var(--c-accent-2); }

/* Footer */
.footer {
  background: var(--c-primary);
  color: rgba(255,255,255,.82);
  padding-top: 60px;
}
.footer a { color: #fff; }
.footer a:hover { color: var(--c-accent-2); }
.footer__inner {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer__brand {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 1.3rem; color: #fff;
  margin-bottom: 8px;
}
.footer__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.footer__cols h5 {
  color: #fff; font-size: .85rem;
  text-transform: uppercase; letter-spacing: .15em;
  margin-bottom: 12px;
}
.footer__cols p { margin: 0 0 4px; font-size: .95rem; }
.footer__bar {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 20px 0;
  text-align: center;
  font-size: .85rem;
}

/* Toast */
.toast {
  position: fixed;
  left: 50%; bottom: 28px;
  transform: translate(-50%, 120%);
  background: #1A2332;
  color: #fff;
  padding: 14px 22px;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  font-weight: 500;
  z-index: 200;
  transition: transform .35s var(--ease-out), opacity .2s;
  max-width: 92%;
  opacity: 0;
}
.toast.is-visible { transform: translate(-50%, 0); opacity: 1; }
.toast.is-error { background: #C0392B; }

/* ============================================================
   Reveal animations
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .about__grid,
  .contact__grid,
  .footer__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .contact__info { position: static; }
  .footer__cols { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav__phone span { display: none; }
  .nav__toggle { display: flex; }
  .hero { min-height: 90vh; }
  .hero__inner { padding: 40px 0 90px; }
  .form__row { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: 1fr 1fr; gap: 20px; }
  .reviews__form-wrap { padding: 26px 22px; }
}

@media (max-width: 480px) {
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { width: 100%; }
  .footer__cols { grid-template-columns: 1fr; }
}

/* Motion-safe */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__image { animation: none; }
  .hero__scroll span { animation: none; }
  * { transition-duration: .001ms !important; animation-duration: .001ms !important; }
}
