/* Tree Care Match - Cincinnati | High-Converting Local Service Site */
:root {
  --primary: #1a5f2a;
  --primary-dark: #0f3d1a;
  --accent: #e8a317;
  --accent-hover: #d4920f;
  --text: #1a1a1a;
  --text-light: #555;
  --bg: #f8faf8;
  --white: #ffffff;
  --danger: #c0392b;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --radius: 10px;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--text);
  line-height: 1.6;
  background: var(--bg);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }

.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
  background: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  gap: 16px;
}
.logo {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo span { color: var(--accent); }
.nav { display: flex; gap: 22px; align-items: center; }
.nav a { font-weight: 500; color: var(--text); font-size: 0.95rem; }
.nav a:hover { color: var(--primary); }
.phone-btn {
  background: var(--primary);
  color: white !important;
  padding: 10px 18px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.2s;
}
.phone-btn:hover { background: var(--primary-dark); }
.mobile-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; }

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: white;
  padding: 70px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-content { position: relative; z-index: 1; max-width: 700px; }
.hero h1 {
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
}
.hero p { font-size: 1.15rem; opacity: 0.95; margin-bottom: 28px; max-width: 540px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.05rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-primary { background: var(--accent); color: #111; }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn-outline { background: transparent; color: white; border: 2px solid rgba(255,255,255,0.7); }
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: white; }
.btn-danger { background: var(--danger); color: white; }
.btn-danger:hover { background: #a93226; }

/* Trust bar */
.trust-bar {
  background: var(--white);
  padding: 22px 0;
  border-bottom: 1px solid #e8ebe8;
}
.trust-items {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px 40px;
  text-align: center;
}
.trust-item { font-size: 0.95rem; font-weight: 600; color: var(--text-light); display: flex; align-items: center; gap: 8px; }
.trust-item strong { color: var(--primary); }

/* Sections */
section { padding: 60px 0; }
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--primary-dark);
}
.section-sub { color: var(--text-light); margin-bottom: 36px; max-width: 600px; }
.bg-white { background: var(--white); }
.bg-light { background: var(--bg); }

/* Services grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid #eef1ee;
}
.service-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0,0,0,0.1); }
.service-card h3 { font-size: 1.2rem; margin-bottom: 10px; color: var(--primary-dark); }
.service-card p { font-size: 0.95rem; color: var(--text-light); margin-bottom: 16px; }
.service-card a { font-weight: 600; font-size: 0.95rem; }

/* Location chips */
.zip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.zip-chip {
  background: #e8f5e9;
  color: var(--primary-dark);
  padding: 8px 14px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
}

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 50px 0;
  text-align: center;
}
.cta-band h2 { font-size: 1.8rem; margin-bottom: 12px; }
.cta-band p { opacity: 0.9; margin-bottom: 24px; }

/* Form */
.form-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  max-width: 520px;
  margin: 0 auto;
}
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.9rem; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d0d5d0;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
}
.form-group textarea { min-height: 100px; resize: vertical; }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,95,42,0.15);
}

/* FAQ */
.faq-item {
  background: var(--white);
  border-radius: var(--radius);
  margin-bottom: 12px;
  border: 1px solid #e8ebe8;
  overflow: hidden;
}
.faq-q {
  padding: 18px 20px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fafcfa;
}
.faq-a {
  padding: 0 20px 18px;
  color: var(--text-light);
  display: none;
}
.faq-item.open .faq-a { display: block; }
.faq-item.open .faq-q { background: #e8f5e9; }

/* Footer */
.site-footer {
  background: #0f2a14;
  color: #c8d6c8;
  padding: 50px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}
.footer-grid h4 { color: white; margin-bottom: 14px; font-size: 1.05rem; }
.footer-grid a { display: block; color: #a8bda8; margin-bottom: 8px; font-size: 0.95rem; }
.footer-grid a:hover { color: white; }
.footer-bottom {
  border-top: 1px solid #1e3d24;
  padding-top: 20px;
  text-align: center;
  font-size: 0.9rem;
  color: #7a947a;
}

/* Service page specific */
.page-hero {
  background: var(--primary-dark);
  color: white;
  padding: 50px 0 40px;
}
.page-hero h1 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); margin-bottom: 10px; }
.breadcrumb { font-size: 0.9rem; opacity: 0.85; margin-bottom: 12px; }
.breadcrumb a { color: #b8e0b8; }
.content-wrap { display: grid; grid-template-columns: 1fr 340px; gap: 40px; padding: 50px 0; }
.content-main h2 { font-size: 1.45rem; margin: 28px 0 12px; color: var(--primary-dark); }
.content-main p, .content-main li { margin-bottom: 12px; color: var(--text-light); }
.content-main ul { padding-left: 20px; margin-bottom: 20px; }
.sidebar-sticky { position: sticky; top: 90px; }
.sidebar-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  border: 1px solid #eef1ee;
}
.sidebar-card h3 { font-size: 1.15rem; margin-bottom: 14px; color: var(--primary-dark); }

/* Answer-first box for AEO */
.answer-box {
  background: #e8f5e9;
  border-left: 4px solid var(--primary);
  padding: 18px 20px;
  border-radius: 0 8px 8px 0;
  margin: 20px 0;
  font-size: 1.05rem;
}
.answer-box strong { color: var(--primary-dark); }

/* Responsive */
@media (max-width: 900px) {
  .content-wrap { grid-template-columns: 1fr; }
  .sidebar-sticky { position: static; }
  .nav { display: none; }
  .nav.open { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: white; padding: 20px; box-shadow: var(--shadow); }
  .mobile-toggle { display: block; }
}
@media (max-width: 600px) {
  .hero { padding: 50px 0 60px; }
  .header-inner { flex-wrap: wrap; }
  .phone-btn { font-size: 0.9rem; padding: 8px 14px; }
}
/* ---- Images & fix-up additions ---- */
.hero.has-photo {
  background:
    linear-gradient(100deg, rgba(15,61,26,0.94) 0%, rgba(15,61,26,0.82) 45%, rgba(15,61,26,0.35) 100%),
    url('/images/hero.jpg') center / cover no-repeat,
    linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  padding: 90px 0 100px;
}
.hero.has-photo::before { display: none; }
.service-card.has-img { padding: 0 0 22px; overflow: hidden; }
.service-card.has-img .card-img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; margin-bottom: 18px; }
.service-card.has-img h3, .service-card.has-img p, .service-card.has-img a { padding: 0 22px; display: block; }
.content-figure { margin: 8px 0 24px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.content-figure img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.alert-box { background: #fdecea; border-left: 4px solid var(--danger); padding: 16px 20px; border-radius: 0 8px 8px 0; margin: 20px 0; color: #5a1d17; }
.content-main a { text-decoration: underline; text-underline-offset: 2px; }
.content-main .faq-list { margin-top: 8px; }
.content-main .faq-a { color: var(--text-light); }
.side-link { display: block; margin-bottom: 8px; }
.side-note { margin-bottom: 14px; font-size: 0.95rem; color: #555; }
.btn-block { width: 100%; justify-content: center; margin-bottom: 12px; }
.btn-ghost { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-ghost:hover { background: #e8f5e9; }
.footer-disclosure { font-size: 0.82rem; color: #7a947a; max-width: 820px; margin: 0 auto 20px; text-align: center; line-height: 1.5; }
a:focus-visible, button:focus-visible, .faq-q:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
@media (max-width: 600px) { .hero.has-photo { padding: 60px 0 70px; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
.logo, .nav a, .phone-btn { white-space: nowrap; }
.nav { gap: 18px; }
@media (max-width: 1100px) { .nav { display: none; } .nav.open { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: white; padding: 20px; box-shadow: var(--shadow); } .mobile-toggle { display: block; } }
.mobile-call-bar { display: none; }
@media (max-width: 900px) {
  .mobile-call-bar { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 1001; background: var(--accent); color: #111 !important; text-align: center; font-weight: 800; font-size: 1.1rem; padding: 14px 16px calc(14px + env(safe-area-inset-bottom, 0px)); box-shadow: 0 -4px 16px rgba(0,0,0,0.15); }
  body { padding-bottom: 64px; }
}
