/* =========================================================
   KAWARTHA POWER WASH — STYLESHEET
   Organized in sections: variables, base, header, hero,
   about, services, process, contact, footer, responsive.
   ========================================================= */

/* ---------- 1. DESIGN TOKENS (change these to re-theme the whole site) ---------- */
:root {
  --ink: #132A3A;        /* deep slate navy - headings, header bg */
  --ink-2: #1F3B4D;       /* slightly lighter navy - gradients */
  --paper: #F5F7F6;       /* page background */
  --white: #FFFFFF;
  --teal: #0E7C86;        /* water-teal accent - links, icons */
  --teal-dark: #0B5F67;
  --sun: #FFC53D;         /* hi-vis yellow - call to action only */
  --sun-dark: #E6A91E;
  --slate: #55666F;       /* secondary body text */
  --line: #DCE3E1;        /* borders / dividers */

  --font-head: 'Barlow Semi Condensed', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  --radius: 10px;
  --shadow: 0 10px 30px rgba(19, 42, 58, 0.10);
  --header-h: 76px;
}

/* ---------- 2. RESET & BASE ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h); /* keeps section headings clear of sticky header */
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0.2px;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.25rem; font-weight: 700; }

p { color: var(--slate); }

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

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 10px;
}

.center { text-align: center; margin-left: auto; margin-right: auto; }
section h2.center { margin-bottom: 44px; }

/* ---------- 3. BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn-cta {
  background: var(--sun);
  color: var(--ink);
}
.btn-cta:hover { background: var(--sun-dark); box-shadow: var(--shadow); }

.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,0.5);
  color: var(--white);
}
.btn-outline:hover { border-color: var(--white); }

.btn-lg { padding: 15px 28px; font-size: 1rem; }
.btn-block { width: 100%; }

/* ---------- 4. HEADER / NAV ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(19, 42, 58, 0.92);
  backdrop-filter: blur(6px);
  z-index: 100;
  transition: box-shadow 0.2s ease;
}
.site-header.scrolled { box-shadow: 0 6px 24px rgba(0,0,0,0.18); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--white);
  white-space: nowrap;
}
.logo span { color: var(--sun); }

.main-nav { display: flex; }
.nav-list { display: flex; gap: 32px; list-style: none; }
.nav-link {
  color: rgba(255,255,255,0.82);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 8px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.nav-link:hover, .nav-link.active { color: var(--white); border-color: var(--sun); }

.header-actions { display: flex; align-items: center; gap: 18px; }
.phone-link {
  font-family: var(--font-mono);
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px; height: 34px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ---------- 5. HERO ---------- */
.hero {
  background: linear-gradient(160deg, var(--ink) 0%, var(--ink-2) 100%);
  padding: calc(var(--header-h) + 60px) 0 80px;
  color: var(--white);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.hero-sub { color: rgba(255,255,255,0.78); max-width: 46ch; margin: 18px 0 30px; font-size: 1.05rem; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 28px; }
.hero-trust {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: rgba(255,255,255,0.7);
}

/* Signature element: before/after drag reveal */
.reveal-card { display: flex; flex-direction: column; gap: 12px; }
.reveal {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  user-select: none;
  cursor: ew-resize;
}
.reveal-after, .reveal-before {
  position: absolute;
  inset: 0;
}
/* Placeholder "photos" made from CSS gradients — swap for real photos, see images/README.txt */
.reveal-after {
  background: linear-gradient(135deg, #d9e6e4 0%, #eef3f2 100%);
}
.reveal-after::after {
  content: "";
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(115deg, rgba(14,124,134,0.08) 0 3px, transparent 3px 14px);
}
.reveal-before {
  width: 50%;
  background: linear-gradient(135deg, #6b5a45 0%, #8a7a5f 60%, #a89a7e 100%);
  border-right: 3px solid var(--white);
}
.reveal-before::after {
  content: "";
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(100deg, rgba(0,0,0,0.12) 0 2px, transparent 2px 10px);
}
.reveal-tag {
  position: absolute;
  top: 14px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(19,42,58,0.75);
  color: var(--white);
}
.reveal-tag-before { left: 14px; }
.reveal-tag-after { right: 14px; }

.reveal-handle {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 40px;
  margin-left: -20px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.reveal-handle-grip {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--sun);
  color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(0,0,0,0.3);
}
.reveal-caption {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: rgba(255,255,255,0.6);
}

/* ---------- 6. ABOUT ---------- */
.about { padding: 90px 0; }
.about-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 56px;
  align-items: start;
}
.about-copy p { margin-top: 14px; max-width: 54ch; }

.stat-grid {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.stat {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.stat-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.9rem;
  font-weight: 600;
  color: var(--teal);
}
.stat-label { font-size: 0.85rem; color: var(--slate); }

/* ---------- 7. SERVICES ---------- */
.services { padding: 90px 0; background: var(--white); }
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.service-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.service-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.service-icon {
  width: 48px; height: 48px;
  color: var(--teal);
  margin-bottom: 16px;
}
.service-card h3 { margin-bottom: 8px; }
.service-card p { font-size: 0.92rem; }

/* ---------- 8. PROCESS ---------- */
.process { padding: 90px 0; }
.process-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}
.process-list li { display: flex; flex-direction: column; gap: 10px; }
.process-num {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--sun-dark);
  background: var(--ink);
  color: var(--sun);
  width: 34px; height: 34px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.process-list h3 { margin-bottom: 4px; font-size: 1.1rem; }
.process-list p { font-size: 0.9rem; }

/* ---------- 9. CONTACT ---------- */
.contact { padding: 90px 0; background: var(--white); }
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
}
.contact-info p { max-width: 42ch; margin-top: 12px; }
.info-list { list-style: none; margin: 24px 0; display: flex; flex-direction: column; gap: 10px; font-size: 0.95rem; }
.service-area {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 20px;
  margin-top: 8px;
}
.service-area h3 { font-size: 1rem; margin-bottom: 8px; }
.service-area p { font-size: 0.88rem; }

.contact-form {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
}
.form-row { margin-bottom: 18px; }
.form-row-split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 6px; }
input, select, textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--white);
  color: var(--ink);
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--teal);
  outline-offset: 1px;
}
.form-status {
  margin-top: 14px;
  font-size: 0.9rem;
  font-weight: 600;
  min-height: 1.2em;
}
.form-status.success { color: var(--teal-dark); }

/* ---------- 10. FOOTER ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,0.7); padding: 40px 0; }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.logo-footer { font-size: 1.2rem; }
.footer-nav { list-style: none; display: flex; gap: 22px; }
.footer-nav a { color: rgba(255,255,255,0.7); font-size: 0.9rem; }
.footer-nav a:hover { color: var(--white); }
.footer-fine { width: 100%; font-size: 0.8rem; color: rgba(255,255,255,0.45); text-align: center; margin-top: 10px; }

/* ---------- 11. RESPONSIVE (mobile-first breakpoints) ---------- */
@media (max-width: 900px) {
  .hero-inner, .about-inner, .contact-inner { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .process-list { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--ink);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .main-nav.open { max-height: 320px; }
  .nav-list { flex-direction: column; gap: 0; padding: 10px 24px 20px; }
  .nav-link { display: block; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .nav-toggle { display: flex; }
  .phone-link { display: none; }
  .header-actions .btn-cta { display: none; } /* keep header tidy on mobile; CTA still in hero */

  .stat-grid { grid-template-columns: 1fr 1fr; }
  .service-grid { grid-template-columns: 1fr; }
  .process-list { grid-template-columns: 1fr; }
  .form-row-split { grid-template-columns: 1fr; }
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
