/* Joliet Tree Care — shared stylesheet. Plain CSS, no framework. */
:root {
  --green: #14532d;
  --green-2: #1b6b3a;
  --green-dark: #0d351e;
  --lime: #65a30d;
  --lime-dark: #4d7c0f;
  --cream: #faf8f2;
  --ink: #212a24;
  --muted: #5c665f;
  --line: #e6e1d6;
  --card: #ffffff;
  --amber: #b45309;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 17px;
}

a { color: var(--green-2); }
a:hover { color: var(--green); }

/* Visible keyboard focus: dark lime ring on light surfaces, pale lime on dark surfaces. */
:focus-visible { outline: 3px solid var(--lime-dark); outline-offset: 2px; }
.site-header :focus-visible, .hero :focus-visible, .cta-band :focus-visible, .site-footer :focus-visible { outline-color: #d9f99d; }

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

h1, h2, h3 { line-height: 1.25; color: var(--green-dark); }
h2 { font-size: 1.7rem; margin: 0 0 16px; }
h3 { font-size: 1.2rem; margin: 0 0 8px; }
p { margin: 0 0 16px; }
ul, ol { margin: 0 0 16px; padding-left: 22px; }
li { margin-bottom: 8px; }

.wrap { max-width: 1060px; margin: 0 auto; padding: 0 20px; }
section { padding: 44px 0; }
section.tight { padding: 28px 0; }

/* ---------- Header ---------- */
.site-header { background: var(--green-dark); color: #fff; }
.header-inner {
  max-width: 1060px; margin: 0 auto; padding: 16px 20px;
  display: flex; align-items: center; gap: 8px 20px; flex-wrap: wrap;
}
.logo {
  display: flex; align-items: center; gap: 12px;
  font-size: 1.35rem; font-weight: 800; color: #fff; text-decoration: none;
  letter-spacing: -0.01em; white-space: nowrap;
}
.logo svg { flex: none; }
.logo small { display: block; font-size: 0.72rem; font-weight: 600; color: #a7c9ae; letter-spacing: 0.06em; text-transform: uppercase; }
.main-nav { display: flex; flex-wrap: wrap; gap: 2px; order: 3; width: 100%; }
.main-nav a {
  color: #d7e8d9; text-decoration: none; padding: 8px 12px;
  border-radius: 6px; font-size: 0.95rem; font-weight: 600;
}
.main-nav a:hover, .main-nav a.active { background: rgba(255, 255, 255, 0.14); color: #fff; }
.phone-btn {
  background: var(--lime-dark); color: #fff; font-weight: 700;
  padding: 12px 16px; border-radius: 999px; white-space: nowrap; font-size: 0.95rem;
  text-decoration: none; margin-left: auto;
}
.phone-btn:hover { background: #3f6212; color: #fff; }

/* Phone links keep the surrounding text color instead of the default link green. */
.call-line a, footer a[href^="tel:"] { color: inherit; text-decoration: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--green) 0%, var(--green-2) 100%);
  color: #fff; padding: 52px 0 48px;
}
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(16, 52, 28, 0.80), rgba(16, 52, 28, 0.72)); }
.hero .wrap { position: relative; z-index: 1; }
.hero h1 { color: #fff; margin: 0 0 16px; font-size: 2.35rem; line-height: 1.15; }
.hero p.lede { color: #e5f2e7; font-size: 1.12rem; max-width: 660px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; align-items: center; }
.hero .call-line { font-size: 1.15rem; font-weight: 700; color: #fff; }
.hero .call-line strong { color: #d9f99d; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; background: var(--lime-dark); color: #fff;
  padding: 12px 24px; border-radius: 999px; font-weight: 700; text-decoration: none;
  border: 2px solid var(--lime-dark);
}
.btn:hover { background: #3f6212; border-color: #3f6212; color: #fff; }
.btn-ghost { background: transparent; border: 2px solid #fff; color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.15); border-color: #fff; color: #fff; }
.btn-dark { background: var(--green); border-color: var(--green); }
.btn-dark:hover { background: var(--green-dark); border-color: var(--green-dark); }

/* ---------- Trust bar ---------- */
.trust-bar { background: #fff; border-bottom: 1px solid var(--line); padding: 20px 0; }
.trust-bar ul {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px 16px;
  font-weight: 600; color: var(--green-dark); font-size: 0.98rem; text-align: center;
}
.trust-bar li { margin: 0; }
.trust-bar li::before { content: "\2713  "; color: var(--lime); font-weight: 800; }

/* ---------- Cards ---------- */
.cards {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px; margin-top: 8px;
}
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 20px; display: flex; flex-direction: column; overflow: hidden;
}
.card-img { display: block; width: calc(100% + 40px); height: 180px; object-fit: cover; border-radius: 12px 12px 0 0; margin: -20px -20px 16px; }
.card h3 { margin-top: 0; }
.card p { color: var(--muted); flex: 1; }
.card a.more { font-weight: 700; text-decoration: none; }
.card a.more:hover { text-decoration: underline; }

/* Featured service: Tree Removal is the core job, so it spans the full row
   with a horizontal image-left layout instead of a fourth identical card. */
.card.featured {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: minmax(240px, 34%) 1fr;
  padding: 0;
}
.card.featured .card-img {
  grid-row: 1 / 4;
  width: 100%; height: 100%; min-height: 220px; object-fit: cover;
  margin: 0; border-radius: 12px 0 0 12px;
}
.card.featured h3 { padding: 20px 20px 0; }
.card.featured p { padding: 0 20px; }
.card.featured a.more { padding: 0 20px 20px; }

/* ---------- Checklists ---------- */
.checks { list-style: none; padding: 0; }
.checks li { padding-left: 28px; position: relative; margin-bottom: 12px; }
.checks li::before {
  content: "\2713"; position: absolute; left: 0; top: 1px;
  color: var(--lime); font-weight: 800;
}

/* ---------- Steps ---------- */
.steps {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px; counter-reset: step; margin-top: 8px;
}
.step {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 20px; position: relative;
}
.step::before {
  counter-increment: step; content: counter(step);
  display: inline-block; width: 36px; height: 36px; line-height: 36px; text-align: center;
  border-radius: 50%; background: var(--green); color: #fff; font-weight: 800; margin-bottom: 12px;
}
.step h3 { margin: 0 0 6px; }
.step p { color: var(--muted); margin: 0; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--green-dark); color: #fff; text-align: center;
  padding: 48px 0; border-radius: 0;
}
.cta-band h2 { color: #fff; margin-bottom: 10px; }
.cta-band p { color: #cfe3d2; max-width: 620px; margin: 0 auto 20px; }
.cta-band .call-line { font-size: 1.25rem; font-weight: 700; margin-bottom: 18px; }
.cta-band .call-line strong { color: #d9f99d; }

/* ---------- Town list ---------- */
.towns { columns: 2; column-gap: 32px; }
.towns li { break-inside: avoid; }
.town-block { margin-bottom: 28px; }
.town-block h3 { margin-bottom: 4px; }

/* ---------- FAQ ---------- */
.faq-item { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 16px 20px; margin-bottom: 16px; }
.faq-item h3 { margin: 0 0 6px; font-size: 1.08rem; }
.faq-item p { margin: 0; color: var(--muted); }

/* ---------- Forms ---------- */
.form-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 24px; max-width: 640px;
}
.form-card label { display: block; font-weight: 700; margin: 16px 0 8px; }
.form-card label:first-child { margin-top: 0; }
.form-card input[type="text"], .form-card input[type="tel"], .form-card input[type="email"],
.form-card select, .form-card textarea {
  width: 100%; padding: 12px; font-size: 1rem; font-family: inherit;
  border: 1px solid #c9c4b8; border-radius: 8px; background: #fff; color: var(--ink);
}
.form-card textarea { min-height: 110px; resize: vertical; }
.form-card button {
  margin-top: 20px; cursor: pointer; font-size: 1rem;
}
.form-note { font-size: 0.92rem; color: var(--muted); margin-top: 16px; }
.req { color: #b91c1c; }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-dark); color: #cfe3d2; padding: 40px 0 28px; font-size: 0.95rem; }
.footer-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px; max-width: 1060px; margin: 0 auto; padding: 0 20px;
}
.site-footer h3 { color: #fff; font-size: 1rem; margin: 0 0 10px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #cfe3d2; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-bottom {
  max-width: 1060px; margin: 28px auto 0; padding: 20px 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.15); color: #9db8a2; font-size: 0.88rem;
}
.photo-credit { margin: 8px 0 0; font-size: 0.82rem; color: #8aa892; }

/* ---------- Misc ---------- */
.lede { font-size: 1.12rem; color: var(--muted); }
.callout {
  background: #fff7e6; border: 1px solid #f0d9a8; border-left: 4px solid var(--amber);
  border-radius: 8px; padding: 16px 20px; margin: 20px 0;
}
.callout p { margin: 0; }
.alt { background: #fff; }
.section-head { max-width: 680px; }

@media (max-width: 900px) {
  .trust-bar ul { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero h1 { font-size: 1.85rem; }
  .hero { padding: 38px 0 34px; }
  section { padding: 32px 0; }
  .header-inner { gap: 8px 12px; }
  .main-nav { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; mask-image: linear-gradient(to right, #000 85%, transparent 100%); -webkit-mask-image: linear-gradient(to right, #000 85%, transparent 100%); }
  .main-nav::-webkit-scrollbar { display: none; }
  .main-nav a { flex: none; }
  .towns { columns: 1; }
  .trust-bar ul { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .card.featured { grid-column: auto; display: flex; padding: 20px; }
  .card.featured .card-img { width: calc(100% + 40px); height: 180px; min-height: 0; margin: -20px -20px 16px; border-radius: 12px 12px 0 0; }
  .card.featured h3, .card.featured p, .card.featured a.more { padding: 0; }
}
