/* Hernandez Bros Tree Service - palette sampled from the logo artwork */
:root {
  /* Client palette */
  --emerald:       #668059;
  --olive:         #71815A;
  --mochi:         #91A573;
  --greenhorn:     #B3CB8E;
  --morris:        #C0D8AD;

  /* Ink stays the logo's charcoal: the greens are all too light to read at
     body size (charcoal on white is 11.8:1, emerald on white only 4.4:1). */
  --charcoal:      #2f3a37;
  --ink:           #232c2a;
  --muted:         #5d6a66;

  --paper:         #ffffff;
  --rule:          var(--greenhorn);
  --radius:        12px;
  --wrap:          1120px;
  --wrap-wide:     1560px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .brand-text strong, .btn, .svc-num {
  font-family: Oswald, "Arial Narrow", Impact, system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: .01em;
  text-transform: uppercase;
  line-height: 1.1;
  margin: 0;
}

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

a { color: var(--emerald); }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 24px;
}

/* Header and footer run wider than the reading column. */
.wrap-wide { max-width: var(--wrap-wide); padding-inline: 40px; }

.eyebrow {
  font-family: Oswald, sans-serif;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .78rem;
  color: var(--muted);
  margin: 0 0 6px;
}

.section-head {
  border-bottom: 2px solid var(--emerald);
  padding-bottom: 14px;
  margin-bottom: 6px;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1.05rem;
  border: 2px solid transparent;
  transition: background-color .12s ease, border-color .12s ease, color .12s ease;
  white-space: nowrap;
}
.btn svg { width: 20px; height: 20px; fill: currentColor; flex: none; }

.btn-primary   { background: var(--emerald); color: #fff; }
.btn-primary:hover { background: var(--olive); }
.btn-secondary { background: var(--charcoal); color: #fff; }
.btn-secondary:hover { background: #3d4a46; }
.btn-ghost     { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.1); }
.btn-call      { background: var(--emerald); color: #fff; padding: 10px 16px; font-size: .95rem; }
.btn-call:hover { background: var(--olive); }

/* ---------- top bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--greenhorn);
  border-bottom: 1px solid rgba(47,58,55,.16);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); }
.brand img { width: 44px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong { font-size: 1.12rem; }
.brand-text small {
  font-family: Oswald, sans-serif;
  text-transform: uppercase;
  letter-spacing: .17em;
  font-size: .64rem;
  /* charcoal on greenhorn is 6.7:1; the greens are far too light on each other */
  color: #3f4c48;
}
.topnav { display: flex; align-items: center; gap: 28px; }
.topnav > a:not(.btn) {
  font-family: Oswald, sans-serif;
  text-transform: uppercase;
  font-size: .88rem;
  letter-spacing: .06em;
  color: var(--charcoal);
  text-decoration: none;
}
.topnav > a:not(.btn):hover { color: var(--emerald); }

/* ---------- hero ---------- */
.hero { padding: 52px 0 64px; }
.hero-inner { text-align: center; }
.hero-logo { width: min(760px, 100%); margin: 0 auto 32px; }
.hero h1 {
  font-size: clamp(1.7rem, 4.4vw, 2.9rem);
  max-width: 28ch;
  margin: 0 auto 16px;
  text-wrap: balance;
  color: var(--charcoal);
}
.lede {
  max-width: 62ch;
  margin: 0 auto 30px;
  color: var(--muted);
  font-size: 1.06rem;
}
.calls { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.badges {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 26px;
  margin: 32px 0 0;
  padding: 0;
  font-family: Oswald, sans-serif;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: .8rem;
  color: var(--charcoal);
}
.badges li { display: flex; align-items: center; gap: 9px; }
.badges li::before {
  content: "";
  width: 8px; height: 8px;
  background: var(--mochi);
  flex: none;
}

/* ---------- services ---------- */
/* A ruled list, not a grid of boxes: the number and the name carry it. */
.services { padding: 20px 0 56px; }
.services .wrap {
  background: var(--morris);
  border-radius: var(--radius);
  padding: 42px 46px 26px;
}
.services h2 { font-size: clamp(1.9rem, 3.8vw, 2.6rem); color: var(--charcoal); }
.services .eyebrow { color: #3f4c48; }
.services .section-head { border-bottom-color: rgba(47,58,55,.35); }

.svc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 64px;
}
.svc-list li {
  display: grid;
  grid-template-columns: 2.6rem 1fr;
  column-gap: 18px;
  align-items: baseline;
  padding: 26px 0 24px;
  border-bottom: 1px solid rgba(47,58,55,.22);
}
.svc-num {
  font-size: .95rem;
  color: #46554f;
  letter-spacing: .06em;
}
.svc-list h3 { font-size: 1.3rem; color: var(--charcoal); margin-bottom: 7px; }
.svc-list p {
  grid-column: 2;
  margin: 0;
  color: #3f4c48;
  font-size: .98rem;
  line-height: 1.55;
  max-width: 44ch;
}

/* ---------- footer ---------- */
.footer {
  background: var(--greenhorn);
  color: #3f4c48;
  padding: 40px 0 44px;
  font-size: .95rem;
}
.footer-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: flex-start;
  padding-left: 64px;
}
.footer img { width: 52px; height: auto; }
.footer-text { margin-right: auto; }
.footer strong {
  color: var(--charcoal);
  font-family: Oswald, sans-serif;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.footer p { margin: 3px 0 0; }
.footer a { color: var(--charcoal); text-decoration: underline; text-underline-offset: 2px; }
.footer a:hover { color: #1e2725; }

/* ---------- feedback modal ---------- */
.btn-outline {
  background: transparent;
  color: var(--charcoal);
  border-color: rgba(47,58,55,.4);
  font-size: .95rem;
  padding: 10px 18px;
  cursor: pointer;
}
.btn-outline:hover { border-color: var(--emerald); color: var(--emerald); }

.modal { position: fixed; inset: 0; z-index: 60; display: flex; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(35,44,42,.55); }
.modal-card {
  position: relative;
  margin: auto;
  width: min(520px, calc(100% - 32px));
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  background: var(--paper);
  border-radius: var(--radius);
  padding: 34px 32px 30px;
}
.modal-card h2 { font-size: 1.5rem; color: var(--charcoal); }
.modal-lede { margin: 8px 0 22px; color: var(--muted); font-size: .97rem; }
.modal-x {
  position: absolute;
  top: 10px; right: 14px;
  background: none;
  border: 0;
  font-size: 1.8rem;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
}
.modal-x:hover { color: var(--charcoal); }

.modal-card label {
  display: block;
  margin-bottom: 16px;
  font-family: Oswald, sans-serif;
  text-transform: uppercase;
  font-size: .74rem;
  letter-spacing: .13em;
  color: var(--charcoal);
}
.modal-card input,
.modal-card textarea {
  display: block;
  width: 100%;
  margin-top: 7px;
  padding: 11px 13px;
  border: 1px solid var(--mochi);
  border-radius: 8px;
  background: var(--paper);
  font: inherit;
  font-size: 1rem;
  text-transform: none;
  letter-spacing: normal;
  color: var(--ink);
}
.modal-card input:focus,
.modal-card textarea:focus { outline: 2px solid var(--emerald); outline-offset: 1px; border-color: var(--emerald); }
.modal-card textarea { resize: vertical; }

.form-status { margin: 0 0 14px; font-size: .94rem; min-height: 1.3em; color: var(--muted); }
.form-status.is-ok { color: var(--emerald); }
.form-status.is-error { color: #a3302a; }

.modal-actions { display: flex; justify-content: flex-end; gap: 12px; }

/* ---------- sticky mobile call bar ---------- */
.callbar { display: none; }

@media (max-width: 900px) {
  .svc-list { grid-template-columns: 1fr; column-gap: 0; }
  .svc-list p { max-width: none; }
}

@media (max-width: 640px) {
  body { font-size: 17px; padding-bottom: 68px; }   /* room for the call bar */
  .wrap, .wrap-wide { padding-inline: 20px; }
  .topnav > a:not(.btn) { display: none; }
  .services .wrap { padding: 30px 22px 16px; border-radius: 10px; }
  .hero { padding: 32px 0 48px; }
  .hero-logo { margin-bottom: 26px; }
  .calls .btn { flex: 1 1 100%; justify-content: center; }
  .footer-inner { padding-left: 0; }
  .callbar {
    display: flex;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 40;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px;
    background: var(--emerald);
    color: #fff;
    text-decoration: none;
    font-family: Oswald, sans-serif;
    text-transform: uppercase;
    letter-spacing: .05em;
    font-size: 1.05rem;
  }
  .callbar svg { width: 20px; height: 20px; fill: currentColor; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
