/* ==========================================================================
   Evansville Tree Removal — Design System
   Palette: Timber / Forest / Moss / Charcoal / Off-white / Ember
   Type: Archivo (display/UI) + Public Sans (body)
   ========================================================================== */

:root {
  --timber: #14261D;
  --forest: #1E4630;
  --moss: #4E7B54;
  --moss-tint: rgba(78, 123, 84, 0.13);
  --charcoal: #23262A;
  --offwhite: #F6F3EC;
  --card: #FFFDF8;
  --section-alt: #EFEBE0;
  --ember: #C0692B;
  --ember-tint: rgba(192, 105, 43, 0.07);
  --ink: #3E443F;
  --muted: #6B6F6A;
  --faint: #8A8F86;
  --line: rgba(20, 38, 29, 0.14);
  --line-soft: rgba(20, 38, 29, 0.1);

  --font-display: 'Archivo', system-ui, sans-serif;
  --font-body: 'Public Sans', system-ui, sans-serif;

  --container: 1120px;
  --radius: 12px;
  --radius-lg: 18px;
  --radius-btn: 10px;
}

/* -------------------------------------------------------------------- */
/* Reset */
/* -------------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--offwhite);
  font-family: var(--font-body);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, p, ul, ol, dl { margin: 0; }
ul, ol { padding: 0; list-style: none; }
input, textarea, select { font-family: inherit; font-size: inherit; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* -------------------------------------------------------------------- */
/* Type */
/* -------------------------------------------------------------------- */

.eyebrow {
  font: 700 11px/1.3 var(--font-display);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--moss);
}
.eyebrow--light { color: #8FBE97; }

h1, .h1 {
  font: 800 clamp(34px, 5vw, 58px)/1.06 var(--font-display);
  letter-spacing: -0.03em;
  color: var(--timber);
  text-wrap: balance;
}
h2, .h2 {
  font: 800 clamp(28px, 3.4vw, 40px)/1.1 var(--font-display);
  letter-spacing: -0.02em;
  color: var(--timber);
  text-wrap: balance;
}
h3, .h3 {
  font: 700 clamp(20px, 2.2vw, 26px)/1.18 var(--font-display);
  letter-spacing: -0.01em;
  color: var(--timber);
}
h4, .h4 {
  font: 700 16px/1.3 var(--font-display);
  color: var(--timber);
}
p, .body-text {
  font: 400 15px/1.6 var(--font-body);
  color: var(--ink);
  text-wrap: pretty;
}
@media (min-width: 900px) {
  p, .body-text { font-size: 17px; line-height: 1.65; max-width: 62ch; }
}
.lede { font-size: 17px; }
@media (min-width: 900px) { .lede { font-size: 19px; } }

.caption { font: 600 13px var(--font-body); color: var(--faint); }
.on-dark { color: var(--offwhite); }
.on-dark p, .on-dark .body-text { color: rgba(246,243,236,.78); }
.on-dark .eyebrow { color: #8FBE97; }

/* -------------------------------------------------------------------- */
/* Layout */
/* -------------------------------------------------------------------- */

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}
@media (min-width: 640px) { .container { padding: 0 32px; } }
@media (min-width: 1100px) { .container { padding: 0 40px; } }

.section { padding: 48px 0; }
.section--tight { padding: 32px 0; }
.section--alt { background: var(--section-alt); }
.section--dark { background: var(--timber); }
@media (min-width: 900px) { .section { padding: 88px 0; } .section--tight { padding: 56px 0; } }

.stack { display: flex; flex-direction: column; gap: 14px; }
.stack--lg { gap: 24px; }
.grid { display: grid; gap: 16px; }
@media (min-width: 720px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 720px) and (max-width: 1099px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}

/* -------------------------------------------------------------------- */
/* Buttons & pills */
/* -------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 52px;
  padding: 0 24px;
  border-radius: var(--radius-btn);
  font: 700 16px var(--font-display);
  border: none;
  width: 100%;
}
@media (min-width: 560px) { .btn { width: auto; } }
.btn-primary { background: var(--forest); color: var(--offwhite); }
.btn-primary:hover { background: #245839; }
.btn-secondary { background: transparent; color: var(--forest); border: 1.5px solid rgba(30,70,48,.32); }
.btn-secondary:hover { background: rgba(30,70,48,.06); }
.btn-inverse { background: var(--offwhite); color: var(--timber); }
.btn-inverse:hover { background: #fff; }
.btn-ember { background: var(--ember); color: #FFF6EE; }
.btn-ember:hover { background: #a85723; }
.btn-row { display: flex; flex-direction: column; gap: 10px; }
@media (min-width: 560px) { .btn-row { flex-direction: row; } }

.pill-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 999px;
  background: var(--ember); color: #FFF6EE;
  font: 700 13px var(--font-display);
}

.tag {
  display: inline-flex; padding: 7px 13px; border-radius: 999px;
  background: var(--moss-tint); color: var(--forest);
  font: 600 12px var(--font-body);
}
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; }

/* -------------------------------------------------------------------- */
/* Cards */
/* -------------------------------------------------------------------- */

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  padding: 18px;
}
.card h4 { margin-bottom: 6px; }
.card p { font-size: 14px; }

.card-link {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 8px;
  font: 700 13px var(--font-body); color: var(--moss);
}

.photo-well {
  border-radius: var(--radius);
  background: var(--charcoal);
  min-height: 220px;
  display: flex;
  align-items: flex-end;
  padding: 16px;
  color: rgba(246,243,236,.55);
  font: 600 11px/1.4 var(--font-body);
}
@media (min-width: 900px) { .photo-well { min-height: 340px; } }
.photo-well--sm { min-height: 150px; }

.dash-item { display: flex; gap: 11px; }
.dash-item::before {
  content: "\2014";
  color: var(--moss);
  font: 700 15px var(--font-display);
  flex: none;
}
.dash-item p, .dash-item div { font-size: 14px; line-height: 1.55; }
.dash-item b { color: var(--timber); }

.numbered-item { display: flex; gap: 12px; }
.numbered-item .num {
  flex: none; width: 28px; height: 28px; border-radius: 8px;
  background: var(--forest); color: var(--offwhite);
  display: flex; align-items: center; justify-content: center;
  font: 700 13px var(--font-display);
}
.numbered-item--ember .num { background: var(--ember); color: #FFF6EE; }

.data-table { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.data-table .row {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 13px 16px; background: var(--card);
  border-bottom: 1px solid var(--line-soft);
  font-size: 14px;
}
.data-table .row:last-child { border-bottom: none; }
.data-table .row .k { font-weight: 600; color: var(--timber); }
.data-table .row .v { color: var(--muted); text-align: right; font-size: 13px; }

.triage-table .row { gap: 12px; }
.triage-table .label { flex: none; width: 64px; font: 700 13px var(--font-display); }
.triage-table .row:nth-child(1) .label { color: var(--ember); }
.triage-table .row:nth-child(2) .label { color: var(--moss); }
.triage-table .row:nth-child(3) .label { color: var(--faint); }
.triage-table .desc { font-size: 13px; line-height: 1.5; }

.callout {
  border: 1px solid rgba(192,105,43,.3);
  background: var(--ember-tint);
  border-radius: var(--radius);
  padding: 16px;
  display: flex; flex-direction: column; gap: 9px;
}
.callout p { font-size: 14px; }

/* -------------------------------------------------------------------- */
/* Header / nav */
/* -------------------------------------------------------------------- */

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: var(--offwhite);
  border-bottom: 1px solid var(--line-soft);
}
.site-header__row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px;
}
@media (min-width: 640px) { .site-header__row { padding: 14px 32px; } }
@media (min-width: 1100px) { .site-header__row { padding: 16px 40px; max-width: var(--container); margin: 0 auto; } }

.brand { display: flex; align-items: center; gap: 10px; }
.brand__mark {
  flex: none; width: 40px; height: 40px; border-radius: 8px;
  background: var(--forest); color: var(--offwhite);
  display: flex; align-items: center; justify-content: center;
  font: 800 12px var(--font-display); letter-spacing: .04em;
}
.brand__name { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name span:first-child { font: 800 13px var(--font-display); letter-spacing: .02em; color: var(--timber); }
.brand__name span:last-child { font: 600 10px var(--font-display); letter-spacing: .16em; color: var(--moss); }

.desktop-nav { display: none; }
@media (min-width: 900px) {
  .desktop-nav { display: flex; align-items: center; gap: 28px; }
  .desktop-nav a { font: 600 14px var(--font-body); color: var(--timber); }
  .desktop-nav a:hover { color: var(--moss); }
  .desktop-nav .btn { height: 44px; padding: 0 20px; font-size: 14px; }
  .nav-toggle { display: none; }
}

.nav-toggle {
  display: flex; flex-direction: column; gap: 4px; padding: 10px;
  background: none; border: none;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--timber); }
.nav-toggle span:last-child { width: 15px; }

.nav-sheet {
  position: fixed; inset: 0; z-index: 50;
  background: var(--timber);
  display: flex; flex-direction: column;
  padding: 20px;
  transform: translateX(100%);
  transition: transform .28s ease;
}
.nav-sheet.is-open { transform: translateX(0); }
.nav-sheet__top { display: flex; align-items: center; justify-content: space-between; }
.nav-sheet__close { background: none; border: none; color: var(--offwhite); font: 800 24px var(--font-display); line-height: 1; padding: 8px; }
.nav-sheet__links { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.nav-sheet__links a {
  padding: 14px 4px; font: 700 22px var(--font-display); color: var(--offwhite);
  border-bottom: 1px solid rgba(246,243,236,.1);
}
.nav-sheet__links a.is-current { color: #8FBE97; }
.nav-sheet .btn { margin-top: 16px; }
@media (min-width: 900px) { .nav-sheet { display: none !important; } }

.alert-bar {
  background: var(--ember); color: #FFF6EE;
  font: 700 13px var(--font-display);
  text-align: center;
  padding: 10px 16px;
}
.alert-bar a { text-decoration: underline; text-underline-offset: 3px; }

.breadcrumb { font: 500 12px var(--font-body); color: var(--faint); padding: 16px 0 0; }
.breadcrumb span { color: var(--forest); font-weight: 600; }

/* -------------------------------------------------------------------- */
/* Hero */
/* -------------------------------------------------------------------- */

.hero {
  display: flex; flex-direction: column; gap: 24px;
  padding: 32px 0 40px;
}
@media (min-width: 900px) {
  .hero { flex-direction: row; align-items: center; gap: 56px; padding: 64px 0 80px; }
  .hero__copy { flex: 1; }
  .hero__media { flex: 1; }
}
.hero__copy { display: flex; flex-direction: column; gap: 16px; }
.hero__media .photo-well { min-height: 240px; }
@media (min-width: 900px) { .hero__media .photo-well { min-height: 420px; } }

.hero--ember { background: var(--charcoal); color: var(--offwhite); }
.hero--ember .body-text { color: rgba(246,243,236,.78); }

/* -------------------------------------------------------------------- */
/* Sticky mobile CTA bar */
/* -------------------------------------------------------------------- */

.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  padding: 12px 20px 16px;
  background: rgba(246,243,236,.95);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 24px rgba(20,38,29,.1);
  transform: translateY(120%);
  transition: transform .25s ease;
}
.sticky-cta.is-visible { transform: translateY(0); }
.sticky-cta .btn { height: 50px; }
@media (min-width: 900px) { .sticky-cta { display: none; } }

/* -------------------------------------------------------------------- */
/* FAQ accordion */
/* -------------------------------------------------------------------- */

.faq-item {
  border-top: 1px solid var(--line);
  padding: 4px 0;
}
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 14px 0;
  font: 600 15px/1.4 var(--font-body); color: var(--timber);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font: 700 20px var(--font-display); color: var(--moss);
  flex: none;
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item .faq-answer { padding: 0 0 16px; font-size: 14px; line-height: 1.55; }

/* -------------------------------------------------------------------- */
/* Forms */
/* -------------------------------------------------------------------- */

.form-panel {
  border: 1px solid var(--line); border-radius: 14px;
  background: var(--card);
  padding: 20px;
  box-shadow: 0 10px 30px rgba(20,38,29,.06);
  display: flex; flex-direction: column; gap: 18px;
}
@media (min-width: 900px) { .form-panel { padding: 32px; } }

.form-panel--dark {
  background: var(--timber); border: none;
  box-shadow: none;
}
.form-panel--dark label, .form-panel--dark .field-hint { color: rgba(246,243,236,.8); }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font: 600 13px var(--font-body); color: var(--timber); }
.form-panel--dark .field label { color: rgba(246,243,236,.85); }
.field input[type=text],
.field input[type=email],
.field input[type=tel],
.field textarea,
.field select {
  height: 48px; border-radius: 9px; border: 1.5px solid var(--line);
  background: var(--offwhite); padding: 0 14px;
  font: 400 15px var(--font-body); color: var(--timber);
}
.form-panel--dark .field input,
.form-panel--dark .field textarea { background: var(--offwhite); }
.field textarea { height: 100px; padding: 12px 14px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: 2px solid var(--forest); outline-offset: 1px;
}
.field-hint { font: 400 12px var(--font-body); color: var(--muted); }

.choice-row { display: flex; flex-wrap: wrap; gap: 8px; }
.choice-pill {
  padding: 10px 14px; border-radius: 999px; border: 1.5px solid rgba(20,38,29,.2);
  font: 600 13px var(--font-body); color: var(--charcoal); background: transparent;
}
.choice-pill input { position: absolute; opacity: 0; pointer-events: none; }
.choice-pill:has(input:checked) { background: var(--forest); border-color: var(--forest); color: var(--offwhite); }

.radio-option {
  display: flex; gap: 10px; align-items: center; padding: 12px 14px;
  border-radius: 9px; border: 1.5px solid rgba(20,38,29,.18); cursor: pointer;
}
.radio-option:has(input:checked) { border-color: var(--forest); background: rgba(78,123,84,.08); }
.radio-option input { accent-color: var(--forest); width: 18px; height: 18px; }
.radio-option span { font: 600 14px var(--font-body); color: var(--charcoal); }

.file-drop {
  border: 1.5px dashed rgba(30,70,48,.35); border-radius: 9px;
  background: rgba(78,123,84,.06);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  padding: 20px; text-align: center; cursor: pointer; position: relative;
}
.file-drop strong { font: 700 13px var(--font-display); color: var(--forest); }
.file-drop span { font: 400 12px var(--font-body); color: var(--muted); }
.file-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.form-panel--dark .file-drop { border-color: rgba(246,243,236,.35); background: transparent; }
.form-panel--dark .file-drop span { color: rgba(246,243,236,.7); }

.form-status { font: 600 13px var(--font-body); padding: 10px 0 0; }
.form-status[data-state="success"] { color: var(--moss); }
.form-status[data-state="error"] { color: var(--ember); }

.progress-track { display: flex; gap: 8px; }
.progress-track .bar { height: 3px; flex: 1; border-radius: 2px; background: rgba(30,70,48,.18); }
.progress-track .bar.is-active { background: var(--forest); }
.step-label { font: 600 12px var(--font-body); color: var(--faint); }

/* -------------------------------------------------------------------- */
/* Footer */
/* -------------------------------------------------------------------- */

.site-footer { background: var(--timber); color: var(--offwhite); padding: 48px 0 28px; }
.footer-cols { display: flex; flex-wrap: wrap; gap: 32px; margin: 28px 0; }
.footer-col { display: flex; flex-direction: column; gap: 9px; min-width: 140px; }
.footer-col span:first-child { font: 700 10px var(--font-display); letter-spacing: .14em; text-transform: uppercase; color: #8FBE97; margin-bottom: 2px; }
.footer-col a { font: 400 13px var(--font-body); color: rgba(246,243,236,.8); }
.footer-col a:hover { color: #fff; }
.footer-rule { height: 1px; background: rgba(246,243,236,.16); margin: 20px 0; }
.footer-bottom { display: flex; flex-direction: column; gap: 8px; }
.footer-bottom .lead { font: 600 13px/1.5 var(--font-body); color: var(--offwhite); }
.footer-bottom .fine { font: 400 12px/1.5 var(--font-body); color: rgba(246,243,236,.6); }
.footer-bottom .copy { font: 400 12px var(--font-body); color: rgba(246,243,236,.45); }

/* -------------------------------------------------------------------- */
/* Utility spacing */
/* -------------------------------------------------------------------- */

.mt-0 { margin-top: 0; }
.text-center { text-align: center; }
.pad-bottom-sticky { padding-bottom: 92px; }
@media (min-width: 900px) { .pad-bottom-sticky { padding-bottom: 0; } }
