/* ============================================================
   Boise Tree Co. — main stylesheet
   Mobile-first, fast, no frameworks. System font stack only.
   ============================================================ */

:root {
  --green-900: #123f28;
  --green-800: #16502f;
  --green-700: #1d6339;
  --green-100: #e8f3ec;
  --green-50:  #f3f8f5;
  --amber-600: #d97706;
  --amber-500: #f59e0b;
  --amber-700: #b45309;
  --ink: #1f2937;
  --ink-soft: #4b5563;
  --muted: #6b7280;
  --line: #e5e7eb;
  --white: #ffffff;
  --radius: 12px;
  --shadow: 0 10px 25px rgba(18, 63, 40, 0.10);
  --maxw: 1120px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  line-height: 1.65;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

.container { width: min(100% - 2.5rem, var(--maxw)); margin-inline: auto; }

h1, h2, h3 { line-height: 1.25; color: var(--green-900); letter-spacing: -0.01em; }
h1 { font-size: clamp(1.9rem, 5.2vw, 3rem); margin-bottom: 1rem; }
h2 { font-size: clamp(1.45rem, 3.6vw, 2.05rem); margin: 0 0 0.9rem; }
h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
p { margin-bottom: 1rem; }
ul, ol { margin: 0 0 1rem 1.25rem; }
li { margin-bottom: 0.4rem; }
a { color: var(--green-700); }

/* ---------- Top utility bar ---------- */
.topbar {
  background: var(--green-900);
  color: #e7f0ea;
  font-size: 0.85rem;
  padding: 0.45rem 0;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.topbar a { color: #fff; font-weight: 700; text-decoration: none; }
.topbar .hours { display: none; }
@media (min-width: 720px) { .topbar .hours { display: inline; } }

/* ---------- Header ---------- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 0.8rem 0;
}
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.brand svg { width: 40px; height: 40px; flex: none; }
.brand-name { font-weight: 800; color: var(--green-900); font-size: 1.05rem; line-height: 1.2; }
.brand-name small { display: block; font-weight: 500; color: var(--muted); font-size: 0.72rem; letter-spacing: 0.04em; text-transform: uppercase; }

.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.4rem; }
.main-nav a { text-decoration: none; color: var(--ink); font-weight: 600; font-size: 0.95rem; }
.main-nav a:hover { color: var(--green-700); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; font-size: 1.4rem; padding: 0.25rem 0.7rem; cursor: pointer; color: var(--green-900); }

.header-cta { display: flex; gap: 0.6rem; align-items: center; }

@media (max-width: 900px) {
  .main-nav {
    position: fixed; inset: 0 0 0 auto; width: min(80vw, 320px);
    background: var(--white); box-shadow: -8px 0 30px rgba(0,0,0,0.15);
    transform: translateX(105%); transition: transform 0.25s ease;
    padding: 4rem 1.5rem 1.5rem; z-index: 60;
  }
  .main-nav.open { transform: none; }
  .main-nav ul { flex-direction: column; gap: 0.2rem; }
  .main-nav a { display: block; padding: 0.7rem 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav-toggle { display: block; }
  .header-cta .btn-quote { display: none; }
  .nav-close { display: block; position: absolute; top: 1rem; right: 1.2rem; background: none; border: none; font-size: 1.8rem; cursor: pointer; color: var(--ink-soft); }
}
@media (min-width: 901px) { .nav-close { display: none; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; text-decoration: none; font-weight: 700;
  padding: 0.85rem 1.6rem; border-radius: 999px; border: 2px solid transparent;
  transition: transform 0.12s ease, box-shadow 0.12s ease; cursor: pointer;
  text-align: center; font-size: 1rem; line-height: 1.3;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--amber-500); color: #3b2f04; box-shadow: 0 6px 18px rgba(245, 158, 11, 0.35); }
.btn-primary:hover { background: var(--amber-600); color: #fff; }
.btn-call { background: var(--green-700); color: #fff; box-shadow: 0 6px 18px rgba(29, 99, 57, 0.3); }
.btn-call:hover { background: var(--green-800); color: #fff; }
.btn-outline { background: transparent; color: var(--green-800); border-color: var(--green-700); }
.btn-outline:hover { background: var(--green-100); }
.btn-lg { padding: 1.05rem 2.2rem; font-size: 1.1rem; }
.btn .phone-icon { margin-right: 0.35rem; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(245, 158, 11, 0.18), transparent 60%),
    linear-gradient(160deg, var(--green-900) 0%, var(--green-800) 55%, #0f3a24 100%);
  color: #fff; padding: 3.5rem 0 3rem; position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0; opacity: 0.10; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140'%3E%3Cpath d='M70 18 L98 66 H82 L104 104 H36 L58 66 H42 Z' fill='%23ffffff'/%3E%3Crect x='64' y='104' width='12' height='22' fill='%23ffffff'/%3E%3C/svg%3E");
  background-size: 140px 140px;
}
.hero .container { position: relative; z-index: 1; max-width: 760px; }
.hero h1 { color: #fff; }
.hero p.lead { font-size: 1.15rem; color: #dcebe1; max-width: 640px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.8rem; margin: 1.6rem 0 1.2rem; }
.hero-ctas .btn-outline { color: #fff; border-color: rgba(255,255,255,0.6); }
.hero-ctas .btn-outline:hover { background: rgba(255,255,255,0.12); }
.hero-note { font-size: 0.88rem; color: #bcd6c4; }

.hero-compact { padding: 2.5rem 0 2rem; }

/* ---------- Trust strip ---------- */
.trust-strip { background: var(--green-50); border-bottom: 1px solid var(--line); padding: 1rem 0; }
.trust-strip .container { display: flex; flex-wrap: wrap; gap: 0.6rem 2rem; justify-content: center; font-weight: 600; color: var(--green-800); font-size: 0.95rem; }

/* ---------- Sections ---------- */
.section { padding: 3.2rem 0; }
.section-alt { background: var(--green-50); }
.section-intro { max-width: 720px; margin-bottom: 2rem; }
.section-intro p { color: var(--ink-soft); }

.grid-2, .grid-3 { display: grid; gap: 1.4rem; }
@media (min-width: 720px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem; box-shadow: var(--shadow);
}
.card h3 { margin-bottom: 0.6rem; }
.card p { color: var(--ink-soft); font-size: 0.96rem; }
.card a.card-link { font-weight: 700; text-decoration: none; }
.card a.card-link:hover { text-decoration: underline; }

.icon-badge {
  width: 46px; height: 46px; border-radius: 12px; background: var(--green-100);
  display: flex; align-items: center; justify-content: center; font-size: 1.4rem; margin-bottom: 0.8rem;
}

.checklist { list-style: none; margin-left: 0; }
.checklist li { position: relative; padding-left: 1.8rem; margin-bottom: 0.7rem; }
.checklist li::before { content: "✓"; position: absolute; left: 0; color: var(--green-700); font-weight: 800; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(140deg, var(--amber-500), var(--amber-600));
  border-radius: 18px; padding: 2.4rem 2rem; text-align: center; color: #3b2f04;
  box-shadow: 0 14px 34px rgba(217, 119, 6, 0.28);
}
.cta-banner h2 { color: #3b2f04; }
.cta-banner p { font-size: 1.05rem; max-width: 620px; margin: 0 auto 1.4rem; }
.cta-banner .btn { background: var(--green-900); color: #fff; }
.cta-banner .btn:hover { background: #0d3320; }

/* ---------- FAQ ---------- */
.faq details {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  margin-bottom: 0.8rem; padding: 1rem 1.2rem;
}
.faq summary { font-weight: 700; cursor: pointer; color: var(--green-900); list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.3rem; color: var(--amber-600); flex: none; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0.7rem 0 0.3rem; color: var(--ink-soft); }

/* ---------- Reviews placeholder ---------- */
.reviews-placeholder {
  border: 2px dashed var(--line); border-radius: var(--radius);
  background: var(--white); padding: 2.2rem; text-align: center; color: var(--muted);
}
.reviews-placeholder strong { color: var(--ink-soft); display: block; margin-bottom: 0.4rem; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; list-style: none; margin-left: 0; display: grid; gap: 1.2rem; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; position: relative; }
.steps li::before {
  counter-increment: step; content: counter(step);
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.2rem; height: 2.2rem; border-radius: 50%;
  background: var(--green-700); color: #fff; font-weight: 800; margin-bottom: 0.7rem;
}

/* ---------- Service area chips ---------- */
.area-chips { display: flex; flex-wrap: wrap; gap: 0.6rem; list-style: none; margin: 1.2rem 0 0; padding: 0; }
.area-chips a {
  display: inline-block; background: var(--white); border: 1px solid var(--line);
  border-radius: 999px; padding: 0.5rem 1.1rem; text-decoration: none; font-weight: 600; font-size: 0.92rem; color: var(--green-800);
}
.area-chips a:hover { background: var(--green-100); }

/* ---------- Forms ---------- */
.lead-form {
  background: var(--white); border: 1px solid var(--line); border-radius: 16px;
  padding: 2rem; box-shadow: var(--shadow); max-width: 640px; margin: 0 auto;
}
.form-row { display: grid; gap: 1rem; margin-bottom: 1rem; }
@media (min-width: 640px) { .form-row.two { grid-template-columns: 1fr 1fr; } }
label { display: block; font-weight: 700; margin-bottom: 0.35rem; font-size: 0.92rem; }
input[type="text"], input[type="tel"], input[type="email"], select, textarea {
  width: 100%; padding: 0.8rem 0.95rem; border: 1px solid var(--line); border-radius: 10px;
  font-size: 1rem; font-family: inherit; background: #fbfdfc;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--green-700); outline-offset: 1px; border-color: var(--green-700); }
textarea { min-height: 120px; resize: vertical; }
.form-hint { font-size: 0.85rem; color: var(--muted); margin-top: 0.8rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-900); color: #cfdccf; padding: 3rem 0 7rem; font-size: 0.95rem; }
.site-footer .footer-grid { display: grid; gap: 2rem; }
@media (min-width: 720px) { .site-footer .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; } }
.site-footer h3 { color: #fff; font-size: 1rem; margin-bottom: 0.9rem; text-transform: uppercase; letter-spacing: 0.05em; }
.site-footer ul { list-style: none; margin: 0; }
.site-footer a { color: #cfdccf; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer li { margin-bottom: 0.45rem; }
.footer-brand { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.8rem; }
.footer-brand svg { width: 34px; height: 34px; }
.footer-brand span { color: #fff; font-weight: 800; }
.footer-phone { font-size: 1.25rem; font-weight: 800; color: #fff; text-decoration: none; display: inline-block; margin: 0.6rem 0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.15); margin-top: 2.2rem; padding-top: 1.4rem; display: flex; flex-wrap: wrap; gap: 0.6rem 1.6rem; justify-content: space-between; font-size: 0.85rem; color: #9db3a1; }

/* ---------- Sticky mobile call bar ---------- */
.sticky-call {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 55;
  background: rgba(255,255,255,0.98); border-top: 1px solid var(--line);
  padding: 0.6rem 1rem calc(0.6rem + env(safe-area-inset-bottom));
  display: flex; gap: 0.7rem;
}
.sticky-call .btn { flex: 1; padding: 0.8rem 0.5rem; font-size: 0.98rem; }
@media (min-width: 901px) { .sticky-call { display: none; } .site-footer { padding-bottom: 2.2rem; } }

/* ---------- Misc ---------- */
.breadcrumb { font-size: 0.85rem; color: var(--muted); margin-bottom: 1rem; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.alert {
  background: #fef3c7; border: 1px solid #fcd34d; border-radius: var(--radius);
  padding: 1.1rem 1.3rem; margin-bottom: 1.6rem; color: #78350f;
}
.alert strong { display: block; margin-bottom: 0.2rem; }
.prose { max-width: 760px; }
.prose h2 { margin-top: 2.2rem; }
.table-wrap { overflow-x: auto; margin-bottom: 1.4rem; }
table.prices { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
table.prices th, table.prices td { text-align: left; padding: 0.7rem 0.9rem; border-bottom: 1px solid var(--line); }
table.prices th { background: var(--green-50); color: var(--green-900); }
table.prices caption { caption-side: bottom; font-size: 0.82rem; color: var(--muted); padding-top: 0.6rem; text-align: left; }
