/* ============================================
   Salish Pest Services — stylesheet
   Palette: Salish Sea greens, driftwood neutrals
   ============================================ */

:root {
  --forest: #1b4332;
  --pine: #2d6a4f;
  --fern: #40916c;
  --sage: #74c69d;
  --mist: #d8f3dc;
  --sea: #17414a;
  --cream: #fafaf6;
  --paper: #ffffff;
  --ink: #1a2420;
  --muted: #55685f;
  --line: #dde7e0;
  --amber: #c98a2d;
  --radius: 10px;
  --shadow: 0 2px 12px rgba(27, 67, 50, 0.08);
  --shadow-lg: 0 8px 32px rgba(27, 67, 50, 0.14);
  --font-head: "Fraunces", Georgia, serif;
  --font-body: "Archivo", "Helvetica Neue", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

img { max-width: 100%; display: block; }
a { color: var(--pine); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--sage); outline-offset: 2px; }

h1, h2, h3, h4 { font-family: var(--font-head); color: var(--forest); line-height: 1.15; font-weight: 600; }
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); letter-spacing: -0.01em; }
h3 { font-size: 1.25rem; }

p { text-wrap: pretty; }

.container { width: min(1120px, 92%); margin-inline: auto; }

/* ---------- Header ---------- */
header.site {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
  box-shadow: var(--shadow);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.9rem 0; gap: 1rem;
}
.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; }
.brand-logo { width: 62px; height: 62px; border-radius: 50%; flex-shrink: 0; }
.brand-name { font-family: var(--font-head); font-size: 1.35rem; font-weight: 700; color: var(--forest); line-height: 1.05; }
.brand-tag { font-size: 0.72rem; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; }

nav.links { display: flex; align-items: center; gap: 1.6rem; }
nav.links a { text-decoration: none; color: var(--ink); font-weight: 500; font-size: 0.95rem; }
nav.links a:hover, nav.links a.active { color: var(--pine); }
nav.links a.nav-cta {
  background: var(--pine); color: #fff; padding: 0.6rem 1.2rem;
  border-radius: 999px; font-weight: 600;
}
nav.links a.nav-cta:hover { background: var(--forest); }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line);
  border-radius: 8px; padding: 0.5rem 0.65rem; cursor: pointer;
  font-size: 1.1rem; color: var(--forest);
}

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(116, 198, 157, 0.25), transparent 60%),
    linear-gradient(180deg, var(--mist) 0%, var(--cream) 100%);
  padding: 4.5rem 0 3.5rem;
}
.hero .container { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 3rem; align-items: center; }
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--paper); border: 1px solid var(--line);
  color: var(--pine); font-weight: 600; font-size: 0.85rem;
  padding: 0.35rem 0.9rem; border-radius: 999px; margin-bottom: 1.2rem;
}
.hero .eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--fern); }
.hero h1 { margin-bottom: 1.1rem; }
.hero h1 em { font-style: normal; color: var(--fern); }
.hero .lede { font-size: 1.15rem; color: var(--muted); max-width: 34rem; margin-bottom: 1.8rem; }
.hero .actions { display: flex; gap: 0.9rem; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.85rem 1.6rem; border-radius: 999px;
  font-weight: 600; font-size: 1rem; text-decoration: none;
  border: 2px solid transparent; cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  min-height: 44px;
}
.btn-primary { background: var(--pine); color: #fff; }
.btn-primary:hover { background: var(--forest); }
.btn-ghost { border-color: var(--pine); color: var(--pine); background: transparent; }
.btn-ghost:hover { background: var(--mist); }
.btn-light { background: var(--paper); color: var(--forest); border-color: var(--line); }
.btn-light:hover { border-color: var(--sage); }

.hero-card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 16px; padding: 1.6rem; box-shadow: var(--shadow-lg);
}
.hero-card h3 { margin-bottom: 0.9rem; font-size: 1.1rem; }
.hero-card ul { list-style: none; display: grid; gap: 0.7rem; }
.hero-card li { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.95rem; color: var(--ink); }
.hero-card li::before { content: "✓"; color: var(--fern); font-weight: 700; flex-shrink: 0; }
.hero-card .free-tag {
  display: inline-block; margin-top: 1.1rem; background: var(--mist); color: var(--forest);
  font-weight: 700; font-size: 0.85rem; padding: 0.4rem 0.9rem; border-radius: 8px;
}

/* ---------- Sections ---------- */
section { padding: 3.8rem 0; }
section.tight { padding: 2.6rem 0; }
.section-head { max-width: 44rem; margin-bottom: 2.2rem; }
.section-head .kicker {
  color: var(--fern); font-weight: 700; font-size: 0.82rem;
  text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.5rem;
}
.section-head p { color: var(--muted); margin-top: 0.7rem; font-size: 1.05rem; }

.bg-paper { background: var(--paper); border-block: 1px solid var(--line); }
.bg-forest { background: var(--forest); color: var(--mist); }
.bg-forest h2, .bg-forest h3 { color: #fff; }
.bg-forest p { color: var(--mist); }
.bg-forest .kicker { color: var(--sage); }

/* ---------- Service grid ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.2rem; }
.svc-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem; transition: box-shadow 0.15s, transform 0.15s;
}
.svc-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.svc-card h3 { margin-bottom: 0.5rem; font-size: 1.15rem; }
.svc-card p { color: var(--muted); font-size: 0.93rem; }
.svc-card .price-line { margin-top: 0.9rem; font-weight: 600; color: var(--pine); font-size: 0.92rem; }

/* ---------- Pricing tables ---------- */
.price-note {
  background: var(--mist); border: 1px solid var(--sage); border-radius: var(--radius);
  padding: 1rem 1.3rem; color: var(--forest); font-size: 0.95rem; margin-bottom: 2rem;
}
.price-note strong { font-weight: 700; }

table.prices {
  width: 100%; border-collapse: collapse; background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; margin-bottom: 2.4rem;
}
table.prices caption {
  caption-side: top; text-align: left; font-family: var(--font-head);
  font-size: 1.25rem; font-weight: 600; color: var(--forest); padding: 1rem 1.2rem 0.3rem;
}
table.prices th, table.prices td { padding: 0.85rem 1.2rem; text-align: left; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
table.prices th { background: var(--mist); color: var(--forest); font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; }
table.prices tr:last-child td { border-bottom: none; }
table.prices td.num { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--pine); white-space: nowrap; }
table.prices .price-main { display: block; font-weight: 700; color: var(--forest); }
table.prices .price-sub { display: block; font-weight: 600; color: var(--muted); font-size: 0.85rem; margin-top: 0.45rem; line-height: 1.3; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.4rem; counter-reset: step; }
.step { position: relative; padding-top: 0.4rem; }
.step .n {
  counter-increment: step;
  width: 40px; height: 40px; border-radius: 50%; background: var(--forest); color: var(--sage);
  display: grid; place-items: center; font-family: var(--font-head); font-weight: 700;
  font-size: 1.15rem; margin-bottom: 0.8rem;
}
.step .n::before { content: counter(step); }
.step h3 { font-size: 1.1rem; margin-bottom: 0.4rem; }
.step p { color: var(--muted); font-size: 0.93rem; }
.bg-forest .step p { color: var(--mist); }

/* ---------- Employee-owned band ---------- */
.eo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center; }
.eo-grid .btn-primary { background: var(--sage); color: var(--forest); }
.eo-grid .btn-primary:hover { background: #fff; }

/* ---------- Service area ---------- */
.area-list { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.4rem; list-style: none; }
.area-list li {
  background: var(--paper); border: 1px solid var(--line); color: var(--ink);
  padding: 0.45rem 1rem; border-radius: 999px; font-size: 0.9rem; font-weight: 500;
}

/* ---------- FAQ ---------- */
details.faq {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.1rem 1.4rem; margin-bottom: 0.8rem;
}
details.faq summary { font-weight: 600; cursor: pointer; color: var(--forest); list-style: none; position: relative; padding-right: 2rem; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; position: absolute; right: 0; top: 0; font-size: 1.3rem; color: var(--fern); }
details.faq[open] summary::after { content: "–"; }
details.faq p { margin-top: 0.7rem; color: var(--muted); font-size: 0.95rem; }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; padding: 4rem 0; }
.cta-band h2 { margin-bottom: 0.8rem; }
.cta-band p { max-width: 36rem; margin: 0 auto 1.8rem; }
.cta-band .actions { display: flex; gap: 0.9rem; justify-content: center; flex-wrap: wrap; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
.contact-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; }
.contact-card h3 { margin-bottom: 1rem; }
.contact-card dl { display: grid; grid-template-columns: auto 1fr; gap: 0.5rem 1.2rem; font-size: 0.95rem; }
.contact-card dt { font-weight: 700; color: var(--muted); }
.contact-card dd { color: var(--ink); }
.placeholder { color: var(--amber); font-style: italic; }

/* ---------- Footer ---------- */
footer.site { background: var(--sea); color: #b8cfd4; padding: 3rem 0 1.5rem; font-size: 0.92rem; }
footer.site a { color: var(--sage); text-decoration: none; }
footer.site a:hover { text-decoration: underline; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
.foot-grid h4 { color: #fff; font-family: var(--font-body); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.9rem; }
.foot-grid ul { list-style: none; display: grid; gap: 0.45rem; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 1.3rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: 0.82rem; }

/* ---------- Page hero (interior pages) ---------- */
.page-hero { background: linear-gradient(180deg, var(--mist), var(--cream)); padding: 3rem 0 2.2rem; }
.page-hero .kicker { color: var(--fern); font-weight: 700; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.5rem; }
.page-hero p.lede { color: var(--muted); max-width: 42rem; margin-top: 0.8rem; font-size: 1.08rem; }

/* ---------- Prose ---------- */
.prose h2 { margin: 2rem 0 0.8rem; }
.prose h3 { margin: 1.5rem 0 0.6rem; }
.prose p { margin-bottom: 1rem; color: var(--muted); }
.prose ul { margin: 0 0 1rem 1.4rem; color: var(--muted); }
.prose li { margin-bottom: 0.4rem; }
.prose strong { color: var(--ink); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
  .eo-grid, .contact-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav-toggle { display: block; }
  nav.links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; padding: 1rem 4%;
    gap: 0.9rem; box-shadow: var(--shadow-lg);
  }
  nav.links.open { display: flex; }
  nav.links a { padding: 0.5rem 0; min-height: 44px; display: flex; align-items: center; }
  nav.links a.nav-cta { justify-content: center; }
  table.prices th, table.prices td { padding: 0.7rem 0.8rem; font-size: 0.88rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .svc-card:hover { transform: none; }
  * { transition: none !important; }
}
