/* ===================================================================
   Top Notch Tree Service — Ad Landing Page Design System
   =================================================================== */

:root {
  --green-950: #0f2417;
  --green-900: #143521;
  --green-800: #1c4a2c;
  --green-700: #245c37;
  --green-600: #2e8b45;
  --green-500: #37a352;
  --green-100: #e7f3ea;
  --gold: #dfb76a;
  --gold-dark: #b5893a;
  --ink: #16241a;
  --gray-700: #47554d;
  --gray-500: #6b7a70;
  --gray-300: #c9d2cb;
  --cream: #faf8f2;
  --white: #ffffff;
  --shadow-sm: 0 1px 2px rgba(15, 36, 23, 0.08);
  --shadow-md: 0 8px 24px rgba(15, 36, 23, 0.12);
  --shadow-lg: 0 20px 50px rgba(15, 36, 23, 0.18);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --container: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: hidden; }
body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}
h1, h2, h3, h4 {
  font-family: "Poppins", "Inter", sans-serif;
  color: var(--green-950);
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 700;
}
p { margin: 0 0 1em; color: var(--gray-700); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 64px 0; }
.section-alt { background: var(--cream); }
.section-dark { background: var(--green-950); color: var(--white); }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark p { color: rgba(255,255,255,0.78); }

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 12px;
}
.section-dark .eyebrow { color: var(--gold); }

.section-head { max-width: 640px; margin: 0 auto 40px; text-align: center; }
.section-head h2 { font-size: clamp(28px, 4vw, 38px); }
.section-head p { font-size: 17px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, color .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn-primary {
  background: var(--green-600);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--green-700); box-shadow: var(--shadow-md); }
.btn-gold {
  background: var(--gold);
  color: var(--green-950);
  box-shadow: var(--shadow-sm);
}
.btn-gold:hover { background: var(--gold-dark); color: var(--white); }
.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,0.5);
  color: var(--white);
}
.btn-outline:hover { background: rgba(255,255,255,0.12); border-color: var(--white); }
.btn-outline-dark {
  background: transparent;
  border-color: var(--green-700);
  color: var(--green-800);
}
.btn-outline-dark:hover { background: var(--green-900); color: var(--white); }
.btn-block { width: 100%; }
.btn-lg { padding: 16px 32px; font-size: 16px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(20,53,33,0.08);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
  gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 42px; width: auto; }
.brand-name {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--green-950);
  line-height: 1.2;
}
.brand-name { min-width: 0; }
.brand-name span { display: block; font-size: 11px; font-weight: 600; color: var(--gray-500); letter-spacing: 0.04em; white-space: nowrap; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-call {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--green-950);
  color: var(--white);
  font-weight: 700;
  font-size: 14px;
}
.header-call:hover { background: var(--green-800); }
.header-call svg { width: 16px; height: 16px; flex-shrink: 0; }

/* Hero */
.hero {
  position: relative;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  background-color: var(--green-950);
}
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(10,20,14,0.92) 0%, rgba(10,20,14,0.55) 45%, rgba(10,20,14,0.25) 75%, rgba(10,20,14,0.1) 100%),
    linear-gradient(to right, rgba(10,20,14,0.55) 0%, rgba(10,20,14,0.1) 55%, transparent 100%);
}
.hero-content {
  position: relative;
  padding: 64px 0 40px;
  color: var(--white);
}
.hero-kicker {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(15,36,23,0.5);
  border: 1px solid rgba(223,183,106,0.4);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.hero h1 {
  color: var(--white);
  font-size: clamp(34px, 5.2vw, 58px);
  max-width: 720px;
  margin-bottom: 18px;
}
.hero-sub {
  color: rgba(255,255,255,0.9);
  font-size: 18px;
  max-width: 560px;
  margin-bottom: 28px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 8px; }

/* Stat bar */
.stat-bar {
  position: relative;
  z-index: 2;
  background: var(--white);
  border-top: 1px solid rgba(20,53,33,0.06);
}
.stat-bar .container { padding-top: 0; padding-bottom: 0; }
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: -1px;
}
.stat-item {
  text-align: center;
  padding: 22px 12px;
  border-right: 1px solid rgba(20,53,33,0.08);
}
.stat-item:last-child { border-right: none; }
.stat-item .num { font-size: 20px; font-weight: 800; color: var(--green-600); font-family: "Poppins", sans-serif; }
.stat-item .cap { font-size: 12px; color: var(--gray-500); font-weight: 600; margin-top: 4px; }

/* Checklist */
.checklist { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.check-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 600;
  color: var(--ink);
  font-size: 15px;
}
.check-item svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--green-600);
  margin-top: 2px;
}
.section-dark .check-item { color: var(--white); }
.section-dark .check-item svg { color: var(--gold); }

/* Cards / grids */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid rgba(20,53,33,0.08);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s ease, transform .2s ease;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--green-100);
  color: var(--green-600);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.card-icon svg { width: 26px; height: 26px; }
.card h3 { font-size: 19px; margin-bottom: 8px; }
.card p { font-size: 15px; margin-bottom: 0; }

/* Trust panel with background photo */
.trust-panel {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  color: var(--white);
  min-height: 420px;
  display: flex;
  align-items: center;
}
.trust-panel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.trust-panel::after {
  content: "";
  position: absolute; inset: 0;
  z-index: 1;
  background: linear-gradient(120deg, rgba(15,36,23,0.94) 0%, rgba(15,36,23,0.82) 45%, rgba(15,36,23,0.55) 100%);
}
.trust-panel-content { position: relative; z-index: 2; padding: 44px; max-width: 520px; }
.trust-panel .eyebrow { color: var(--gold); }
.trust-panel h2 { color: var(--white); font-size: clamp(24px, 3vw, 32px); }
.trust-panel .checklist { grid-template-columns: 1fr; margin: 22px 0 28px; }
.trust-panel .check-item { color: var(--white); }
.trust-panel .check-item svg { color: var(--gold); }

/* Two-column layout */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }

/* Process steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 8px; }
.step-num {
  font-family: "Poppins", sans-serif;
  font-size: 15px;
  font-weight: 800;
  color: var(--white);
  background: var(--green-600);
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.step h3 { font-size: 19px; }

/* Service area pills */
.pill-grid { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.pill {
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid rgba(20,53,33,0.14);
  font-weight: 600;
  font-size: 14px;
  color: var(--green-800);
}

/* FAQ accordion */
.faq { max-width: 760px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid rgba(20,53,33,0.12);
  padding: 6px 0;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 4px;
  font-weight: 700;
  font-size: 16px;
  color: var(--green-950);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .plus {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--green-100);
  color: var(--green-700);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  font-weight: 700;
  transition: transform .2s ease, background .2s ease;
}
.faq-item[open] summary .plus { background: var(--green-600); color: var(--white); transform: rotate(45deg); }
.faq-item p { padding: 0 4px 18px; font-size: 15px; }

/* Final CTA banner */
.cta-banner {
  background: linear-gradient(120deg, var(--green-950), var(--green-800));
  color: var(--white);
  text-align: center;
  padding: 64px 0;
}
.cta-banner h2 { color: var(--white); font-size: clamp(26px, 4vw, 36px); }
.cta-banner p { color: rgba(255,255,255,0.82); font-size: 17px; max-width: 560px; margin-left: auto; margin-right: auto; }
.cta-banner .hero-actions { justify-content: center; }

/* Estimate / contact section */
.estimate-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 28px; }
.estimate-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(20,53,33,0.1);
  box-shadow: var(--shadow-md);
  padding: 40px;
}
.estimate-card.dark {
  background: var(--green-950);
  color: var(--white);
  border: none;
}
.estimate-card.dark h3 { color: var(--white); }
.estimate-card.dark p { color: rgba(255,255,255,0.78); }
.estimate-list { margin: 20px 0 28px; }
.estimate-list li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 15px; color: var(--gray-700);
  margin-bottom: 10px;
}
.estimate-card.dark .estimate-list li { color: rgba(255,255,255,0.85); }
.estimate-list svg { width: 18px; height: 18px; color: var(--green-600); margin-top: 3px; flex-shrink: 0; }
.estimate-card.dark .estimate-list svg { color: var(--gold); }
.big-phone {
  font-family: "Poppins", sans-serif;
  font-size: 30px;
  font-weight: 800;
  color: var(--white);
  display: block;
  margin: 14px 0 22px;
}
.address-block { display: flex; align-items: center; gap: 6px; font-size: 14px; color: rgba(255,255,255,0.7); margin-top: 22px; }
.address-block svg { width: 15px; height: 15px; flex-shrink: 0; }

/* Footer */
.site-footer {
  background: var(--green-950);
  color: rgba(255,255,255,0.7);
  padding: 48px 0 24px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  margin-bottom: 24px;
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { height: 40px; }
.footer-brand-name { color: var(--white); font-weight: 700; font-family: "Poppins", sans-serif; }
.footer-links { display: flex; gap: 32px; flex-wrap: wrap; }
.footer-col h4 { color: var(--white); font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 12px; }
.footer-col a, .footer-col span { display: block; font-size: 14px; color: rgba(255,255,255,0.65); margin-bottom: 8px; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 13px; color: rgba(255,255,255,0.5);
}
.footer-bottom a { color: rgba(255,255,255,0.6); }
.footer-bottom a:hover { color: var(--gold); }

/* Mobile sticky CTA */
.mobile-cta {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 60;
  background: var(--white);
  border-top: 1px solid rgba(20,53,33,0.12);
  box-shadow: 0 -8px 24px rgba(15,36,23,0.12);
  padding: 10px 14px;
  gap: 10px;
}
.mobile-cta .btn { flex: 1; padding: 13px 10px; font-size: 14px; }

/* Utility */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }

/* Responsive */
@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .estimate-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item { border-bottom: 1px solid rgba(20,53,33,0.08); }
}
@media (max-width: 640px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .section { padding: 44px 0; }
  .header-call .label { display: none; }
  .header-call { padding: 10px 12px; }
  .mobile-cta { display: flex; }
  body { padding-bottom: 74px; }
  .hero { min-height: 520px; }
  .trust-panel-content { padding: 28px; }
  .checklist { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .brand-name span { display: none; }
}

/* Estimate modal */
.estimate-modal { display: none; position: fixed; inset: 0; z-index: 1000; }
.estimate-modal.is-open { display: block; }
.estimate-modal-overlay { position: absolute; inset: 0; background: rgba(10, 20, 15, 0.6); }
.estimate-modal-panel {
  position: relative;
  margin: 5vh auto;
  width: 92%;
  max-width: 640px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 8px;
}
.estimate-modal-panel iframe { min-height: 70vh; display: block; }
.estimate-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: rgba(0,0,0,0.08);
  color: var(--green-950);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  z-index: 1;
}
.estimate-modal-close:hover { background: rgba(0,0,0,0.16); }
body.modal-open { overflow: hidden; }
