/* ==========================================================================
   ClearVue Pressure Wash — stylesheet
   CLIENT-VARIABLE: colors below are matched to the supplied ClearVue logo
   (sky blue #3EA9CC on dark navy #0B2338). Swap these two tokens for a
   different client's brand colors.
   ========================================================================== */

:root {
  --navy: #0B2338;
  --navy-2: #123049;
  --sky: #3EA9CC;
  --sky-dark: #2B87A6;
  --sky-light: #E7F5FA;
  --ink: #101820;
  --slate: #52626E;
  --bg: #FFFFFF;
  --bg-alt: #F4F9FB;
  --border: #DEE7EC;
  --success-bg: #EAF7EF;
  --success-text: #1E7A46;
  --error-bg: #FCEAEA;
  --error-text: #B23A3A;
  --radius: 10px;
  --max-width: 1160px;
  --font-heading: 'Poppins', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

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

a { color: var(--sky-dark); }
a:hover { color: var(--navy); }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 16px;
}

h2 { font-size: clamp(26px, 3.5vw, 36px); }
h3 { font-size: 20px; }

p { margin: 0 0 16px; color: var(--slate); }

.section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); }

.section-head { max-width: 700px; margin: 0 auto 48px; text-align: center; }
.section-head .eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sky-dark);
  margin-bottom: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn-primary { background: var(--sky); color: #fff; }
.btn-primary:hover { background: var(--sky-dark); color: #fff; transform: translateY(-1px); }
.btn-outline { background: transparent; border-color: rgba(255,255,255,.5); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--navy-2); color: #fff; }

/* ---------- Header ---------- */
.site-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 12px rgba(0,0,0,.15);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
  gap: 16px;
}
.brand { display: flex; align-items: center; }
.brand img { height: 54px; width: auto; }

.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a {
  color: #EAF4F8;
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  white-space: nowrap;
}
.main-nav a:hover { color: var(--sky); }

.header-actions { display: flex; align-items: center; gap: 16px; }
.header-phone {
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.header-phone:hover { color: var(--sky); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 26px;
  cursor: pointer;
  padding: 4px 8px;
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff;
  padding: 88px 0 96px;
  text-align: center;
}
.hero .eyebrow {
  color: var(--sky);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 13px;
  margin-bottom: 18px;
  display: inline-block;
}
.hero h1 {
  color: #fff;
  font-size: clamp(32px, 5vw, 52px);
  max-width: 820px;
  margin: 0 auto 20px;
}
.hero p.lead {
  color: #C9DCE6;
  max-width: 640px;
  margin: 0 auto 34px;
  font-size: 18px;
}
.hero-ctas { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.about-facts {
  display: grid;
  gap: 18px;
}
.fact {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
}
.fact strong { display: block; color: var(--navy); font-family: var(--font-heading); margin-bottom: 4px; }

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.service-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
}
.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--sky-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--sky-dark);
}

/* ---------- How it works ---------- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.step-card { text-align: center; padding: 12px; }
.step-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  font-size: 18px;
}

/* ---------- SMS section ---------- */
.sms-panel {
  background: var(--navy);
  color: #fff;
  border-radius: 16px;
  padding: 48px;
}
.sms-panel h2 { color: #fff; }
.sms-panel .eyebrow { color: var(--sky); }
.sms-list { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 16px; }
.sms-list li {
  display: flex;
  gap: 14px;
  color: #D9E7EE;
  font-size: 15px;
  line-height: 1.6;
}
.sms-list li strong { color: #fff; }
.sms-bullet {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--sky);
  color: var(--navy);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

/* ---------- Contact / Form ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 48px;
  align-items: start;
}
.contact-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}
.contact-card h3 { margin-bottom: 18px; }
.contact-line { display: flex; gap: 12px; margin-bottom: 14px; font-size: 15px; color: var(--ink); }
.contact-line a { color: var(--ink); text-decoration: none; }
.contact-line a:hover { color: var(--sky-dark); }

.form-wrap {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  color: var(--navy);
  margin-bottom: 6px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 15px;
  font-family: var(--font-body);
  color: var(--ink);
  background: #fff;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--sky);
  box-shadow: 0 0 0 3px rgba(62,169,204,.18);
}
.field textarea { resize: vertical; min-height: 110px; }

.consent-block {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 18px 20px;
  margin: 8px 0 20px;
}
.consent-check { display: flex; gap: 12px; align-items: flex-start; }
.consent-check input[type="checkbox"] {
  margin-top: 4px;
  width: 18px;
  height: 18px;
  flex: none;
  accent-color: var(--sky-dark);
}
.consent-check label { font-size: 14px; color: var(--ink); line-height: 1.55; }
.consent-links { font-size: 13px; margin-top: 10px; color: var(--slate); }
.consent-links a { font-weight: 600; }
.consent-note {
  font-size: 13px;
  color: var(--slate);
  font-style: italic;
  margin: 4px 0 0;
}

/* Honeypot — hidden from sighted users and screen readers, but present for bots */
.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  display: none;
  padding: 14px 16px;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 18px;
}
.form-status.success { display: block; background: var(--success-bg); color: var(--success-text); }
.form-status.error { display: block; background: var(--error-bg); color: var(--error-text); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: #C9DCE6;
  padding: 56px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.footer-brand img { height: 46px; margin-bottom: 14px; }
.footer-col h4 {
  color: #fff;
  font-family: var(--font-heading);
  font-size: 14px;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.footer-col a, .footer-col p { color: #C9DCE6; font-size: 14px; text-decoration: none; display: block; margin-bottom: 8px; }
.footer-col a:hover { color: var(--sky); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  font-size: 13px;
  color: #8FA8B6;
}

/* ---------- Legal pages ---------- */
.legal-content {
  max-width: 820px;
  margin: 0 auto;
  padding: 64px 24px 96px;
}
.legal-content h1 { font-size: 34px; }
.legal-content .effective-date { color: var(--slate); font-size: 14px; margin-bottom: 40px; }
.legal-content h2 { font-size: 21px; margin-top: 40px; }
.legal-content p, .legal-content li { color: var(--ink); }
.legal-content ul { padding-left: 22px; }
.legal-content .exact-clause {
  background: var(--bg-alt);
  border-left: 4px solid var(--sky);
  padding: 18px 22px;
  border-radius: 6px;
  font-style: italic;
}
.sms-terms-box {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px;
  background: var(--bg-alt);
}
.sms-terms-box dt { font-weight: 700; color: var(--navy); margin-top: 18px; }
.sms-terms-box dt:first-child { margin-top: 0; }
.sms-terms-box dd { margin: 4px 0 0; color: var(--ink); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .about-grid,
  .contact-grid { grid-template-columns: 1fr; }
  .services-grid,
  .steps-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy-2);
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 24px;
    gap: 4px;
    display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 10px 0; width: 100%; }
  .header-inner { padding: 12px 16px; gap: 10px; }
  .brand img { height: 40px; }
  .header-phone-label { display: none; }
  .header-actions .btn-outline { display: none; }
}
