/* ============================================================
   THEME TOKENS — edit this block later to re-theme the whole site
   ============================================================ */
:root {
  /* Timberline — dark PNW outdoors (forest charcoal + warm leather) */
  --color-bg: #161a17;
  --color-bg-alt: #1d231e;
  --surface: #232b24;        /* raised cards/forms */
  --input-bg: #1b211c;
  --header-bg: #0f1310;      /* header + footer */
  --color-text: #eef1ec;
  --color-muted: #a9b3a8;
  --color-accent: #c8843c;
  --color-accent-dark: #a96d2c;
  --color-border: rgba(255, 255, 255, 0.10);

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --maxw: 1080px;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.35), 0 6px 20px rgba(0, 0, 0, 0.30);
}

/* ============================================================
   BASE
   ============================================================ */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

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

h1, h2, h3 { line-height: 1.2; margin: 0 0 0.5em; }

a { color: var(--color-accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--header-bg);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--color-text);
  font-weight: 700;
}
.brand:hover { text-decoration: none; }

.logo-placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--color-accent);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.brand-name { font-size: 1.1rem; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}
.main-nav a { color: var(--color-muted); font-weight: 500; font-size: 0.95rem; }
.main-nav a:hover { color: var(--color-text); text-decoration: none; }

.nav-cta {
  background: var(--color-accent);
  color: #fff !important;
  padding: 8px 16px;
  border-radius: 8px;
}
.nav-cta:hover { background: var(--color-accent-dark); text-decoration: none !important; }

/* Nav dropdown — "States We Serve" */
.nav-dropdown { position: relative; }
.nav-dropdown-toggle {
  background: none;
  border: 0;
  margin: 0;
  padding: 0;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.nav-dropdown-toggle:hover { color: var(--color-text); }
.nav-dropdown-toggle .caret { font-size: 0.7em; transition: transform 0.2s ease; }
.nav-dropdown-toggle[aria-expanded="true"] .caret { transform: rotate(180deg); }
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 170px;
  flex-direction: column;
  gap: 2px;
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  box-shadow: var(--shadow);
  display: none;
}
/* Transparent bridge so hover doesn't drop in the gap */
.nav-dropdown-menu::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}
.nav-dropdown-menu a {
  padding: 9px 14px;
  border-radius: 6px;
  white-space: nowrap;
}
.nav-dropdown-menu a:hover { background: var(--color-bg-alt); color: var(--color-text); }
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu { display: flex; }

/* Hamburger toggle — hidden on desktop, shown on mobile */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 0 auto;
  background: var(--color-text);
  border-radius: 2px;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding: 96px 0 80px;
  background: linear-gradient(180deg, var(--color-bg-alt), var(--color-bg));
  text-align: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-accent);
  margin: 0 0 12px;
}

.hero h1 { font-size: clamp(2.4rem, 5vw, 3.4rem); margin-bottom: 16px; }

.lede {
  max-width: 640px;
  margin: 0 auto 32px;
  font-size: 1.2rem;
  color: var(--color-muted);
}

.service-area {
  font-weight: 600;
  color: var(--color-text);
  margin: 0 0 28px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.15s ease, color 0.15s ease;
}
.btn-primary { background: var(--color-accent); color: #fff; }
.btn-primary:hover { background: var(--color-accent-dark); text-decoration: none; }
.btn-ghost { background: transparent; color: var(--color-text); border-color: var(--color-border); }
.btn-ghost:hover { background: var(--color-bg-alt); text-decoration: none; }

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: 72px 0; }
.section-alt { background: var(--color-bg-alt); }

.section-title {
  font-size: 1.9rem;
  text-align: center;
  margin-bottom: 12px;
}

.section-intro {
  text-align: center;
  color: var(--color-muted);
  max-width: 560px;
  margin: 0 auto 36px;
}

/* ============================================================
   PROMISE CARDS
   ============================================================ */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 32px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.card h3 { font-size: 1.2rem; color: var(--color-accent); }
.card p { margin: 0 0 10px; color: var(--color-muted); }
.card p:last-child { margin-bottom: 0; }
.pricing-note { font-style: italic; font-size: 0.92rem; }
.card-badge {
  display: inline-block;
  margin-top: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(200, 132, 60, 0.15);
  border: 1px solid var(--color-accent);
  color: var(--color-accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.steps {
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  counter-reset: step;
}
.step {
  background: var(--surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  text-align: center;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 14px;
}
.step h3 { font-size: 1.1rem; }
.step p { margin: 0; color: var(--color-muted); }

/* ============================================================
   STATE LANDING PAGES
   ============================================================ */
.prose {
  max-width: 760px;
  margin: 0 auto;
}
.prose p { color: var(--color-muted); margin: 0 0 1.1em; }
.prose p:last-child { margin-bottom: 0; }

.city-list {
  list-style: none;
  padding: 0;
  margin: 28px auto 0;
  max-width: 820px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}
.city-list li {
  background: var(--surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 10px 14px;
  text-align: center;
  font-weight: 600;
  font-size: 0.95rem;
}
.design-note {
  text-align: center;
  color: var(--color-muted);
  font-size: 0.9rem;
  margin: 22px auto 0;
  max-width: 720px;
}

/* County design-temperature table */
.temp-table-wrap { overflow-x: auto; margin: 28px 0 0; }
.temp-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
}
.temp-table th,
.temp-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}
.temp-table thead th {
  background: var(--surface);
  color: var(--color-text);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.temp-table tbody td { color: var(--color-muted); }
.temp-table tbody td.county { color: var(--color-text); font-weight: 600; }
.temp-table .num {
  text-align: center;
  font-weight: 700;
  color: var(--color-text);
  white-space: nowrap;
}
.temp-table tbody tr:last-child td { border-bottom: none; }

/* Service-area cards (home page) */
a.area-card {
  display: block;
  text-decoration: none;
  color: var(--color-text);
  transition: transform 0.15s ease, border-color 0.15s ease;
}
a.area-card:hover {
  transform: translateY(-3px);
  border-color: var(--color-accent);
}
a.area-card h3 { color: var(--color-text); }
a.area-card p { color: var(--color-muted); }
.area-link {
  display: inline-block;
  margin-top: 12px;
  color: var(--color-accent);
  font-weight: 700;
}

/* ============================================================
   WHAT WE NEED
   ============================================================ */
.needs-list {
  list-style: none;
  counter-reset: need;
  padding: 0;
  margin: 32px 0 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.needs-list li {
  counter-increment: need;
  position: relative;
  background: var(--surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 24px 24px 24px 70px;
  box-shadow: var(--shadow);
}
.needs-list li::before {
  content: counter(need);
  position: absolute;
  left: 22px;
  top: 24px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  font-weight: 700;
}
.needs-list h3 { font-size: 1.1rem; margin-bottom: 6px; }
.needs-list p { margin: 0; color: var(--color-muted); }

/* ============================================================
   FAQ
   ============================================================ */
.faq-list {
  max-width: 760px;
  margin: 32px auto 0;
}
.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  margin-bottom: 14px;
  background: var(--surface);
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 600;
  list-style: none;
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 22px;
  font-size: 1.4rem;
  color: var(--color-accent);
  line-height: 1;
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p {
  margin: 0;
  padding: 0 22px 20px;
  color: var(--color-muted);
}

/* ============================================================
   CONFIRMATION MODAL
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(16, 24, 40, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 100;
}
.modal-overlay[hidden] { display: none; }
.modal {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 36px;
  max-width: 420px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow);
}
.modal h3 { font-size: 1.5rem; color: var(--color-accent); }
.modal p { color: var(--color-muted); margin-bottom: 24px; }

/* ============================================================
   SIGN UP FORM
   ============================================================ */
.signup-form {
  max-width: 720px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 24px;
}
.form-grid label {
  display: flex;
  flex-direction: column;
  font-size: 0.9rem;
  font-weight: 600;
  gap: 6px;
}
.form-grid label.full { grid-column: 1 / -1; }

.form-grid input,
.form-grid select,
.form-grid textarea {
  font: inherit;
  font-weight: 400;
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--input-bg);
  color: var(--color-text);
}
.form-grid input:focus,
.form-grid select:focus,
.form-grid textarea:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 1px;
  border-color: var(--color-accent);
}

.form-note {
  margin: 14px 0 0;
  font-size: 0.85rem;
  color: var(--color-muted);
}

/* Honeypot — visually hidden from real users, still in the DOM for bots */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}


/* ============================================================
   EXAMPLE REPORT
   ============================================================ */
.example-report { text-align: center; }

/* ============================================================
   ABOUT / BIOS
   ============================================================ */
.bios {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
  margin-top: 32px;
}
.bio { text-align: center; }
.bio-photo {
  width: 160px;
  height: 160px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--color-bg-alt);
  border: 2px dashed var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-muted);
  font-size: 0.85rem;
  text-align: center;
}
img.bio-photo {
  object-fit: cover;
  border: none;
}
.bio h3 { margin-bottom: 2px; }
.bio-role { color: var(--color-accent); font-weight: 600; margin: 0 0 10px; }
.bio p:last-child { color: var(--color-muted); }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
  margin-top: 24px;
}
.contact-block h3 { font-size: 1.2rem; }
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { padding: 8px 0; border-bottom: 1px solid var(--color-border); }
.contact-list li:last-child { border-bottom: none; }
.contact-list .label {
  display: block;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 4px;
}
.contact-detail {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.contact-loc { color: var(--color-muted); font-size: 0.85rem; }
.contact-list em { color: var(--color-muted); font-size: 0.85rem; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  padding: 28px 0;
  background: var(--header-bg);
  color: var(--color-muted);
  text-align: center;
  font-size: 0.9rem;
}
.site-footer p { margin: 0; }
.footer-areas { margin-bottom: 8px !important; color: var(--color-text); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
/* Mobile navigation: collapse links behind the hamburger */
@media (max-width: 820px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0;
    background: var(--header-bg);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow);
    display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 24px; }
  .main-nav a:hover { background: var(--color-bg-alt); }
  .nav-cta {
    margin: 8px 24px 4px;
    text-align: center;
  }
  /* Dropdown collapses inline within the mobile menu */
  .nav-dropdown { width: 100%; }
  .nav-dropdown-toggle {
    width: 100%;
    justify-content: space-between;
    padding: 12px 24px;
  }
  .nav-dropdown-menu {
    position: static;
    transform: none;
    min-width: 0;
    padding: 0 0 4px;
    background: transparent;
    border: 0;
    box-shadow: none;
  }
  .nav-dropdown-menu::before { display: none; }
  .nav-dropdown:hover .nav-dropdown-menu { display: none; }
  .nav-dropdown.open .nav-dropdown-menu { display: flex; }
  .nav-dropdown-menu a { padding: 10px 40px; }
}

@media (max-width: 640px) {
  .form-grid { grid-template-columns: 1fr; }
  .needs-list { grid-template-columns: 1fr; }
  .hero { padding: 64px 0 56px; }
  .section { padding: 56px 0; }
}
