/* ─── Gerardo's Tree Services — Shared Stylesheet ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --green-900: #0f1f0f;
  --green-800: #1a3019;
  --green-700: #2a5228;
  --green-600: #3a7236;
  --green-500: #4d9649;
  --green-400: #70bf6b;
  --green-100: #e4f2e3;
  --green-50:  #f1faf0;
  --amber:     #d4890a;
  --amber-light: #fef3d0;
  --white:     #ffffff;
  --gray-900:  #111827;
  --gray-700:  #374151;
  --gray-500:  #6b7280;
  --gray-300:  #d1d5db;
  --gray-200:  #e5e7eb;
  --gray-100:  #f3f4f6;
  --gray-50:   #fafafa;
  --font-body: 'Inter', -apple-system, sans-serif;
  --font-display: 'Fraunces', Georgia, serif;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,.10);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.14);
  --max-w: 1160px;
}
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--gray-900);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  padding-bottom: 72px; /* mobile sticky cta */
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ─── Buttons ─── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 22px; border-radius: var(--radius-sm);
  font-family: var(--font-body); font-weight: 600; font-size: 14px;
  cursor: pointer; border: none; transition: all .2s; white-space: nowrap;
}
.btn--primary { background: var(--green-700); color: var(--white); }
.btn--primary:hover { background: var(--green-800); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn--amber { background: var(--amber); color: var(--white); }
.btn--amber:hover { background: #b8760a; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn--outline { background: transparent; color: var(--green-700); border: 2px solid var(--green-700); }
.btn--outline:hover { background: var(--green-50); }
.btn--ghost { background: rgba(255,255,255,.12); color: var(--white); border: 1px solid rgba(255,255,255,.25); }
.btn--ghost:hover { background: rgba(255,255,255,.2); }
.btn--lg { padding: 14px 28px; font-size: 16px; border-radius: var(--radius-md); }
.btn--full { width: 100%; }

/* ─── Emergency Bar ─── */
.emergency-bar {
  background: var(--green-900); color: var(--white);
  text-align: center; padding: 9px 20px; font-size: 13px; font-weight: 500;
}
.emergency-bar a { color: #fbbf24; font-weight: 700; }

/* ─── Nav ─── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
  padding: 0 20px;
}
.nav__inner {
  max-width: var(--max-w); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 66px; gap: 16px;
}
.nav__logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 16px; color: var(--green-800);
  flex-shrink: 0;
}
.nav__logo img { width: 48px; height: 48px; border-radius: 8px; object-fit: contain; }
.nav__logo-text { display: none; }
.nav__logo-text span { display: block; font-size: 11px; font-weight: 500; color: var(--gray-500); }
.nav__links {
  display: none; gap: 24px; align-items: center;
}
.nav__links a {
  font-size: 14px; font-weight: 500; color: var(--gray-700);
  transition: color .2s; padding: 4px 0;
  border-bottom: 2px solid transparent;
}
.nav__links a:hover, .nav__links a.active { color: var(--green-700); border-bottom-color: var(--green-600); }
.nav__right { display: flex; align-items: center; gap: 12px; }
.nav__phone { display: none; font-size: 14px; font-weight: 700; color: var(--green-700); }
.nav__hamburger {
  display: flex; flex-direction: column; gap: 5px; cursor: pointer;
  padding: 4px; background: none; border: none;
}
.nav__hamburger span { display: block; width: 22px; height: 2px; background: var(--gray-700); border-radius: 2px; transition: all .2s; }

/* Mobile menu */
.mobile-menu {
  display: none; position: fixed; inset: 0; z-index: 99;
  background: var(--white); padding: 80px 24px 24px;
  flex-direction: column; gap: 4px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-size: 20px; font-weight: 600; padding: 14px 0;
  border-bottom: 1px solid var(--gray-100); color: var(--gray-900);
}
.mobile-menu a:hover { color: var(--green-700); }
.mobile-menu__close {
  position: absolute; top: 18px; right: 20px;
  font-size: 28px; background: none; border: none; cursor: pointer; color: var(--gray-700);
}
.mobile-menu__cta { margin-top: 24px; }

/* ─── Page Hero (inner pages) ─── */
.page-hero {
  background: linear-gradient(135deg, var(--green-900) 0%, var(--green-800) 100%);
  padding: 60px 20px; text-align: center;
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: url("https://images.unsplash.com/photo-1542601906990-b4d3fb778b09?w=1200&q=60") center/cover;
  opacity: .12;
}
.page-hero__inner { position: relative; z-index: 1; max-width: 680px; margin: 0 auto; }
.page-hero__label {
  font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--green-400); margin-bottom: 12px;
}
.page-hero__title {
  font-family: var(--font-display);
  font-size: clamp(30px, 6vw, 48px);
  font-weight: 700; color: var(--white); line-height: 1.1;
  margin-bottom: 14px;
}
.page-hero__sub {
  font-size: 16px; color: rgba(255,255,255,.7); line-height: 1.6;
}

/* ─── Section ─── */
.section { padding: 60px 20px; }
.section--alt { background: var(--gray-50); }
.section--dark { background: var(--green-900); color: var(--white); }
.section__inner { max-width: var(--max-w); margin: 0 auto; }
.section__label {
  font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--green-600); margin-bottom: 10px;
}
.section--dark .section__label { color: var(--green-400); }
.section__title {
  font-family: var(--font-display);
  font-size: clamp(26px, 5vw, 40px);
  font-weight: 700; line-height: 1.15; margin-bottom: 14px; text-wrap: pretty;
}
.section__body {
  font-size: 16px; color: var(--gray-500); line-height: 1.7; max-width: 560px;
}
.section--dark .section__body { color: rgba(255,255,255,.65); }
.section__header { margin-bottom: 36px; }

/* ─── CTA Strip ─── */
.cta-strip {
  background: linear-gradient(135deg, var(--green-900) 0%, var(--green-700) 100%);
  padding: 52px 20px; text-align: center;
}
.cta-strip__title {
  font-family: var(--font-display);
  font-size: clamp(24px, 5vw, 38px); color: var(--white); margin-bottom: 12px; font-weight: 700;
}
.cta-strip__sub { font-size: 16px; color: rgba(255,255,255,.7); margin-bottom: 28px; line-height: 1.5; }
.cta-strip__actions { display: flex; flex-direction: column; gap: 12px; max-width: 360px; margin-inline: auto; }

/* ─── Footer ─── */
.footer { background: #0a160a; color: rgba(255,255,255,.55); padding: 52px 20px 28px; }
.footer__inner { max-width: var(--max-w); margin: 0 auto; }
.footer__top { display: grid; grid-template-columns: 1fr; gap: 36px; margin-bottom: 40px; }
.footer__logo { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.footer__logo img { width: 56px; height: 56px; border-radius: 8px; object-fit: contain; }
.footer__logo-name { font-size: 16px; font-weight: 700; color: var(--white); }
.footer__desc { font-size: 13px; line-height: 1.6; }
.footer__pay { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.footer__pay-chip { font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 99px; background: rgba(255,255,255,.08); color: rgba(255,255,255,.6); }
.footer__col-title { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.35); margin-bottom: 14px; }
.footer__links { display: flex; flex-direction: column; gap: 10px; }
.footer__links a { font-size: 14px; transition: color .2s; }
.footer__links a:hover { color: var(--white); }
.footer__divider { border: none; border-top: 1px solid rgba(255,255,255,.07); margin-bottom: 20px; }
.footer__bottom { font-size: 12px; color: rgba(255,255,255,.3); text-align: center; }

/* ─── Sticky Mobile CTA ─── */
.sticky-cta {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 90;
  background: var(--white); border-top: 1px solid var(--gray-200);
  padding: 10px 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  box-shadow: 0 -4px 20px rgba(0,0,0,.1);
}

/* ─── Animations ─── */
@media (prefers-reduced-motion: no-preference) {
  .fade-up { opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .5s ease; }
  .fade-up.visible { opacity: 1; transform: none; }
}

/* ─── SVG inline helpers ─── */
.btn svg, .emergency-bar svg, .nav svg { vertical-align: middle; flex-shrink: 0; }
.testimonial-card__stars svg,
.hero__trust-item svg { vertical-align: middle; }
.testimonial-card__stars { display: flex; gap: 2px; align-items: center; color: var(--amber); margin-bottom: 14px; }
.stat-item__value svg { vertical-align: middle; }

/* ─── Desktop overrides ─── */
@media (min-width: 768px) {
  body { padding-bottom: 0; }
  .nav__links { display: flex; }
  .nav__phone { display: block; }
  .nav__hamburger { display: none; }
  .sticky-cta { display: none; }
  .cta-strip__actions { flex-direction: row; }
  .cta-strip__actions .btn { flex: 1; }
  .footer__top { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .footer__bottom { text-align: left; }
}
@media (min-width: 1024px) {
  .section { padding: 80px 20px; }
}
