/* ═══════════════════════════════════════════════════════════
   Rain Dance Landscaping — Shared Site Styles
   To add a new page: link this file + js/site.js, done.
═══════════════════════════════════════════════════════════ */

/* ─── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: 'PT Sans', system-ui, sans-serif; line-height: 1.65; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { background: none; border: none; cursor: pointer; font: inherit; }

/* ─── Design Tokens ─────────────────────────────────────── */
:root {
  --amber:        oklch(71% 0.17 54);
  --amber-dark:   oklch(60% 0.15 54);
  --amber-text:   oklch(17% 0.013 78);   /* dark text on amber — WCAG AA */
  --earth:        oklch(20% 0.018 95);
  --earth-mid:    oklch(30% 0.022 95);
  --cream:        oklch(97% 0.009 78);
  --cream-mid:    oklch(93% 0.011 75);
  --text:         oklch(17% 0.013 78);
  --text-muted:   oklch(46% 0.012 78);
  --on-dark:      oklch(88% 0.008 78);
  --on-dark-dim:  oklch(60% 0.010 78);
  --white:        oklch(99% 0.004 78);
  --display:      'Bebas Neue', 'Arial Narrow', sans-serif;
  --body:         'PT Sans', system-ui, sans-serif;
  --wrap:         1200px;
  --nav-h:        72px;
  --ease:         cubic-bezier(0, 0, 0.2, 1);
  --pad-x:        clamp(20px, 4vw, 48px);
  --pad-y:        clamp(72px, 9vw, 112px);
}

/* ─── Utility ────────────────────────────────────────────── */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.wrap { max-width: var(--wrap); margin: 0 auto; }

/* ─── Buttons ────────────────────────────────────────────── */
.btn-fill {
  display: inline-flex; align-items: center;
  background: var(--amber); color: var(--amber-text);
  font-family: var(--body); font-size: 0.9375rem; font-weight: 700;
  letter-spacing: 0.07em; text-transform: uppercase;
  padding: 14px 30px; border-radius: 4px;
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
}
.btn-fill:hover { background: var(--amber-dark); color: var(--white); }

.btn-ghost {
  display: inline-flex; align-items: center;
  border: 2px solid oklch(72% 0.009 78 / 0.55);
  color: oklch(88% 0.009 78);
  font-family: var(--body); font-size: 0.9375rem; font-weight: 700;
  letter-spacing: 0.07em; text-transform: uppercase;
  padding: 12px 30px; border-radius: 4px;
  transition: border-color 0.15s var(--ease), color 0.15s var(--ease);
}
.btn-ghost:hover { border-color: var(--white); color: var(--white); }

.btn-arrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--body); font-size: 0.8125rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--amber);
  transition: gap 0.15s var(--ease);
}
.btn-arrow span { transition: transform 0.15s var(--ease); }
.btn-arrow:hover { gap: 11px; }
.btn-arrow:hover span { transform: translateX(2px); }

/* ─── Section Labels ─────────────────────────────────────── */
.eyebrow {
  font-family: var(--body);
  font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--amber);
  display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: 12px;
}
.eyebrow::before {
  content: '';
  display: block; width: 20px; height: 2px;
  background: var(--amber); flex-shrink: 0;
}
.section-title {
  font-family: var(--display);
  font-size: clamp(38px, 5.5vw, 58px);
  line-height: 1; letter-spacing: 0.02em;
  color: var(--text);
}

/* ─────────────────────────────────────────────────────────
   NAV
───────────────────────────────────────────────────────── */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--nav-h);
  background: var(--earth);
  display: flex; align-items: center;
  padding: 0 var(--pad-x);
  gap: 24px;
}
.nav-logo { flex-shrink: 0; line-height: 0; }
.nav-logo img { height: 46px; width: auto; }

.nav-links {
  display: flex; align-items: center; gap: 2px;
  margin-left: auto;
}
.nav-links a {
  color: var(--on-dark);
  font-family: var(--body);
  font-size: 0.8125rem; font-weight: 700;
  letter-spacing: 0.07em; text-transform: uppercase;
  padding: 8px 12px; border-radius: 3px;
  transition: color 0.15s var(--ease), background 0.15s var(--ease);
}
.nav-links a:hover,
.nav-links a.is-active { color: var(--white); background: var(--earth-mid); }

.nav-phone {
  flex-shrink: 0;
  display: inline-flex; align-items: center;
  background: var(--amber); color: var(--amber-text);
  font-family: var(--body); font-size: 0.8125rem; font-weight: 700;
  letter-spacing: 0.07em; text-transform: uppercase;
  padding: 9px 18px; border-radius: 4px;
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
}
.nav-phone:hover { background: var(--amber-dark); color: var(--white); }

.nav-ham {
  display: none; margin-left: auto;
  color: var(--on-dark); padding: 6px; border-radius: 3px;
  transition: background 0.15s var(--ease);
}
.nav-ham:hover { background: var(--earth-mid); }
.nav-ham svg { display: block; }

/* mobile drawer */
.nav-drawer {
  position: fixed; top: var(--nav-h); left: 0; right: 0; z-index: 99;
  background: var(--earth);
  padding: 8px 24px 28px;
  border-top: 1px solid var(--earth-mid);
  display: none;
  transform: translateY(-6px); opacity: 0;
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
  pointer-events: none;
}
.nav-drawer.open {
  transform: translateY(0); opacity: 1;
  pointer-events: auto;
}
.nav-drawer li { border-bottom: 1px solid var(--earth-mid); }
.nav-drawer a {
  display: block; padding: 13px 4px;
  color: var(--on-dark); font-size: 0.9375rem; font-weight: 700;
  letter-spacing: 0.07em; text-transform: uppercase;
}
.nav-drawer a.is-active { color: var(--white); }
.nav-drawer .drawer-phone {
  display: block; margin-top: 20px; text-align: center;
  background: var(--amber); color: var(--amber-text);
  font-size: 0.9375rem; font-weight: 700;
  letter-spacing: 0.07em; text-transform: uppercase;
  padding: 14px 24px; border-radius: 4px;
}

/* ─────────────────────────────────────────────────────────
   PAGE HERO (inner pages — not index)
───────────────────────────────────────────────────────── */
.page-hero {
  position: relative;
  padding-top: var(--nav-h);
  background: var(--earth);
  overflow: hidden;
  min-height: clamp(260px, 36vw, 420px);
  display: flex; align-items: flex-end;
}
.page-hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center 40%;
}
.page-hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(
    to bottom,
    oklch(20% 0.018 95 / 0.45) 0%,
    oklch(20% 0.018 95 / 0.82) 100%
  );
}
.page-hero-content {
  position: relative; z-index: 1;
  width: 100%; max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(36px, 5vw, 56px) var(--pad-x);
}
.page-hero-label {
  font-family: var(--body);
  font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--amber);
  display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: 14px;
}
.page-hero-label::before {
  content: '';
  display: block; width: 20px; height: 2px;
  background: var(--amber); flex-shrink: 0;
}
.page-hero-title {
  font-family: var(--display);
  font-size: clamp(44px, 7vw, 80px);
  line-height: 0.95; letter-spacing: 0.02em;
  color: var(--white);
}
.page-hero-sub {
  margin-top: 14px;
  font-size: clamp(0.9375rem, 1.8vw, 1.0625rem);
  color: oklch(80% 0.009 78);
  max-width: 60ch; line-height: 1.65;
}

/* page-hero wave into cream sections */
.page-hero-wave {
  position: absolute; bottom: -1px; left: 0; right: 0;
  line-height: 0; pointer-events: none;
}
.page-hero-wave svg { display: block; width: 100%; }

/* ─────────────────────────────────────────────────────────
   TRUST BAR
───────────────────────────────────────────────────────── */
.trust {
  background: var(--amber);
  padding: 28px var(--pad-x);
}
.trust-inner {
  max-width: var(--wrap); margin: 0 auto;
  display: flex; flex-wrap: wrap;
  align-items: center; justify-content: center;
  gap: 8px 0;
}
.trust-item {
  display: flex; align-items: center;
  font-family: var(--body); font-size: 0.8125rem; font-weight: 700;
  letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--amber-text);
  padding: 6px 28px;
  position: relative;
}
.trust-item + .trust-item::before {
  content: '';
  position: absolute; left: 0; top: 50%;
  transform: translateY(-50%);
  width: 1px; height: 18px;
  background: oklch(17% 0.013 78 / 0.2);
}
.trust-item a { color: inherit; }
.trust-item a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ─────────────────────────────────────────────────────────
   FOOTER
───────────────────────────────────────────────────────── */
.footer {
  background: var(--earth);
  padding: 36px var(--pad-x);
}
.footer-inner {
  max-width: var(--wrap); margin: 0 auto;
  display: flex; flex-wrap: wrap;
  align-items: center; justify-content: space-between;
  gap: 8px 24px;
}
.footer-copy { font-size: 0.875rem; color: var(--on-dark-dim); }
.footer-credit { font-size: 0.8125rem; color: oklch(38% 0.010 78); }

/* ─────────────────────────────────────────────────────────
   SCROLL TO TOP
───────────────────────────────────────────────────────── */
.scroll-top {
  position: fixed; bottom: 24px; right: 24px; z-index: 80;
  width: 42px; height: 42px;
  background: var(--earth); border: 1px solid var(--earth-mid);
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  color: oklch(65% 0.009 78);
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s var(--ease), background 0.15s var(--ease);
}
.scroll-top.visible { opacity: 1; pointer-events: auto; }
.scroll-top:hover { background: var(--earth-mid); }

/* ─────────────────────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links, .nav > .nav-phone { display: none; }
  .nav-ham { display: block; }
  .trust-inner { flex-direction: column; align-items: flex-start; }
  .trust-item { padding: 4px 0; }
  .trust-item + .trust-item::before { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
