/* ═══════════════════════════════════════════════
   HIGH DESERT PROWASH — Global Stylesheet v2
   Mixed Theme: Dark hero/nav/footer · Light content
   WCAG 2.1 AA Compliant · Mobile First
   ═══════════════════════════════════════════════ */

:root {
  /* Brand */
  --green:          #6e8f48;
  --green-hover:    #5a7538;
  --green-light:    #8FAF6A;
  --green-pale:     #f0f5e9;
  --green-pale-2:   #e4eed6;

  /* Dark surfaces (hero, nav, footer) */
  --dark:           #0f0f0d;
  --dark-2:         #1a1a18;
  --dark-3:         #252523;
  --dark-border:    rgba(143,175,106,0.15);

  /* Light surfaces (content sections) */
  --light-bg:       #ffffff;
  --light-alt:      #f7f8f5;
  --light-border:   #e8ebe2;

  /* Text on dark */
  --text-on-dark:         #f0ede6;
  --text-muted-on-dark:   #a8a59e;

  /* Text on light */
  --text-on-light:        #1a1a18;
  --text-muted-on-light:  #6b7260;

  --white:        #ffffff;
  --shadow-sm:    0 2px 8px rgba(0,0,0,0.08);
  --shadow:       0 4px 20px rgba(0,0,0,0.1);
  --shadow-lg:    0 12px 48px rgba(0,0,0,0.14);
  --radius:       6px;
  --transition:   0.2s ease;
  --font-display: 'Oswald', sans-serif;
  --font-body:    'Source Serif 4', Georgia, serif;
  --max-width:    1160px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--light-bg);
  color: var(--text-on-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── Skip link (WCAG) ── */
.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  background: var(--green);
  color: var(--white);
  padding: 10px 18px;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  z-index: 9999;
  transition: top var(--transition);
}
.skip-link:focus { top: 16px; }

/* ── Focus styles (WCAG) ── */
:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ── Navigation (dark) ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15,15,13,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--dark-border);
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  height: 44px;
}
.nav-logo img {
  height: 44px;
  width: auto;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted-on-dark);
  transition: color var(--transition);
  padding: 4px 0;
  border-bottom: 1.5px solid transparent;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--text-on-dark);
  border-bottom-color: var(--green-light);
}
.nav-cta {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--green);
  color: var(--white) !important;
  padding: 10px 20px;
  border-radius: var(--radius);
  border-bottom: none !important;
  transition: background var(--transition), transform var(--transition);
}
.nav-cta:hover { background: var(--green-hover); transform: translateY(-1px); }

/* Mobile toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--text-on-dark);
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.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); }

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: fixed;
    top: 68px; left: 0; right: 0;
    z-index: 99;
    background: var(--dark-2);
    flex-direction: column;
    padding: 16px 24px 24px;
    gap: 0;
    border-bottom: 1px solid var(--dark-border);
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    padding: 14px 0;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(255,255,255,0.06) !important;
    width: 100%;
  }
  .nav-links a:last-child { border-bottom: none !important; }
  .nav-cta {
    margin-top: 16px;
    text-align: center;
    padding: 14px 20px;
    border-radius: var(--radius);
    border-bottom: none !important;
  }
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 14px 28px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background var(--transition), color var(--transition),
              border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
  line-height: 1;
}
.btn:hover { transform: translateY(-2px); }

/* On dark backgrounds */
.btn-primary {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}
.btn-primary:hover {
  background: var(--green-hover);
  border-color: var(--green-hover);
  box-shadow: 0 6px 20px rgba(110,143,72,0.35);
}
.btn-outline-light {
  background: transparent;
  color: var(--text-on-dark);
  border-color: rgba(240,237,230,0.3);
}
.btn-outline-light:hover {
  border-color: var(--green-light);
  color: var(--green-light);
}

/* On light backgrounds */
.btn-outline-dark {
  background: transparent;
  color: var(--text-on-light);
  border-color: var(--light-border);
}
.btn-outline-dark:hover {
  border-color: var(--green);
  color: var(--green);
}
.btn-primary-dark {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}
.btn-primary-dark:hover {
  background: var(--green-hover);
  border-color: var(--green-hover);
  box-shadow: 0 6px 20px rgba(110,143,72,0.25);
}

/* ── Section layout ── */
.section { padding: 80px 24px; }
.section-inner { max-width: var(--max-width); margin: 0 auto; }

/* On light bg */
.section-label {
  font-family: var(--font-display);
  font-size: 0.68rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 10px;
  display: block;
  font-weight: 500;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-on-light);
  line-height: 1.1;
  margin-bottom: 16px;
}
.section-title span { color: var(--green); }
.section-title.on-dark { color: var(--text-on-dark); }
.section-body {
  font-size: 1.05rem;
  color: var(--text-muted-on-light);
  max-width: 560px;
  line-height: 1.75;
}
.section-body.on-dark { color: var(--text-muted-on-dark); }

/* Green rule */
.rule { width: 40px; height: 2.5px; background: var(--green); margin-bottom: 28px; }
.rule-center { margin-left: auto; margin-right: auto; }

/* ── Light section alternates ── */
.section-light { background: var(--light-bg); }
.section-alt   { background: var(--light-alt); }

/* ── Trust bar ── */
.trust-bar {
  background: var(--dark-3);
  border-top: 1px solid rgba(143,175,106,0.1);
  border-bottom: 1px solid rgba(143,175,106,0.1);
  padding: 18px 24px;
}
.trust-bar-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted-on-dark);
}
.trust-item svg { color: var(--green-light); flex-shrink: 0; }

/* ── Cards on light bg ── */
.card-light {
  background: var(--white);
  border: 1px solid var(--light-border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.card-light:hover {
  border-color: var(--green-light);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

/* ── CTA band (dark) ── */
.cta-band {
  background: var(--dark-2);
  border-top: 1px solid var(--dark-border);
  border-bottom: 1px solid var(--dark-border);
  padding: 72px 24px;
  text-align: center;
}
.cta-band-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-on-dark);
  margin-bottom: 14px;
}
.cta-band-title span { color: var(--green-light); }
.cta-band-body {
  font-size: 1rem;
  color: var(--text-muted-on-dark);
  max-width: 480px;
  margin: 0 auto 36px;
  line-height: 1.7;
}
.cta-band-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ── Footer (dark) ── */
.footer {
  background: var(--dark);
  border-top: 1px solid var(--dark-border);
  padding: 56px 24px 32px;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-logo img {
  height: 52px;
  width: auto;
  margin-bottom: 14px;
}
.footer-tagline { font-size: 0.875rem; color: var(--text-muted-on-dark); line-height: 1.65; }
.footer-heading {
  font-family: var(--font-display);
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--green-light);
  margin-bottom: 16px;
  font-weight: 500;
}
.footer-links li { margin-bottom: 10px; }
.footer-links a {
  font-size: 0.9rem;
  color: var(--text-muted-on-dark);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--text-on-dark); }
.footer-contact-item {
  font-size: 0.9rem;
  color: var(--text-muted-on-dark);
  margin-bottom: 12px;
  line-height: 1.5;
}
.footer-contact-item strong {
  color: var(--text-on-dark);
  display: block;
  font-family: var(--font-display);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 2px;
  font-weight: 500;
}
.footer-contact-item a { color: var(--text-muted-on-dark); transition: color var(--transition); }
.footer-contact-item a:hover { color: var(--green-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.footer-copy { font-size: 0.8rem; color: rgba(168,165,158,0.45); }
.footer-insured {
  font-family: var(--font-display);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(143,175,106,0.55);
}

/* ── Page hero (light pages) ── */
.page-hero {
  background: var(--dark-2);
  padding: 64px 24px 56px;
  border-bottom: 1px solid var(--dark-border);
}
.page-hero .section-title { color: var(--text-on-dark); }
.page-hero .section-body  { color: var(--text-muted-on-dark); }

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up   { animation: fadeUp 0.55s ease both; }
.fade-up-1 { animation-delay: 0.08s; }
.fade-up-2 { animation-delay: 0.18s; }
.fade-up-3 { animation-delay: 0.28s; }
.fade-up-4 { animation-delay: 0.38s; }

/* ── Utilities ── */
.text-green   { color: var(--green); }
.text-center  { text-align: center; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }

@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section { padding: 56px 20px; }
}
@media (max-width: 768px) {
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .trust-bar-inner { gap: 20px; }
}
