/* ==========================================================================
   American Tree Care LLC
   Palette: real brand colors pulled from americantreecarefl.com (Elementor
   global kit) — deep navy blue primary + brand green accent, organic/rounded
   Type: Quicksand (headings, rounded organic letterforms) + Inter (body)
   Mobile-first.
   ========================================================================== */

:root {
  --canopy-deep: #14315e;
  --canopy: #1e4684;
  --canopy-mid: #2d5aa0;
  --canopy-light: #6f92c9;
  --canopy-pale: #eaf0f8;
  --amber: #2f7d3d;
  --amber-light: #61ce70;
  --bark: #54595f;
  --cream: #f4f6f9;
  --paper: #ffffff;
  --ink: #1c1f24;
  --ink-soft: #4b5259;
  --border-soft: rgba(20, 49, 94, 0.12);

  --font-head: "Quicksand", "Trebuchet MS", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --radius-lg: 26px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --shadow-soft: 0 16px 36px rgba(20, 49, 94, 0.16);
  --shadow-card: 0 8px 22px rgba(20, 49, 94, 0.10);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: var(--font-head);
  color: var(--canopy-deep);
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 700;
}

h1 { font-size: clamp(2.1rem, 6vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
h3 { font-size: 1.2rem; font-weight: 600; }

p { margin: 0 0 1em; color: var(--ink-soft); }

a {
  color: var(--canopy-mid);
}

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--canopy-deep);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  z-index: 999;
}
.skip-link:focus {
  left: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--amber);
  margin: 0 0 0.6em;
}
.eyebrow.center { text-align: center; }
h2.center, .section-lede.center { text-align: center; }
.section-lede {
  max-width: 640px;
  font-size: 1.05rem;
}
.section-lede.center { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  min-height: 48px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--amber);
  color: #fff;
  box-shadow: var(--shadow-card);
}
.btn-primary:hover { background: #256432; }

.btn-ghost {
  background: transparent;
  color: var(--paper);
  border-color: var(--paper);
}
.btn-ghost:hover { background: var(--paper); color: var(--canopy-deep); }

.hero .btn-ghost {
  color: var(--canopy-deep);
  border-color: var(--canopy-deep);
}
.hero .btn-ghost:hover { background: var(--canopy-deep); color: #fff; }

.btn-lg { padding: 15px 32px; font-size: 1.05rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 245, 238, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-soft);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
  gap: 12px;
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  min-height: 44px;
}

.logo {
  height: 42px;
  width: auto;
  max-height: 42px;
  display: block;
  flex-shrink: 0;
}

.brand-text {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--canopy-deep);
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.brand-sub {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--amber);
}

.main-nav {
  display: none;
}
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 26px;
  margin: 0;
  padding: 0;
}
.main-nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 10px 2px;
}
.main-nav a:hover { color: var(--canopy-mid); }

.header-cta {
  display: none;
  align-items: center;
  gap: 16px;
}
.phone-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: var(--canopy-deep);
  font-weight: 700;
  min-height: 44px;
  white-space: nowrap;
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--canopy-mid);
  background: var(--paper);
  cursor: pointer;
  padding: 0;
}
.menu-toggle-bar {
  width: 20px;
  height: 2px;
  background: var(--canopy-deep);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(2) {
  opacity: 0;
}
.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav panel */
.main-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--cream);
  border-bottom: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
}
.main-nav ul {
  flex-direction: column;
  gap: 0;
  padding: 8px 20px 16px;
}
.main-nav li {
  border-top: 1px solid var(--border-soft);
}
.main-nav a {
  display: block;
  padding: 14px 4px;
  min-height: 44px;
}
.main-nav.is-open { display: block; }

@media (min-width: 900px) {
  .main-nav {
    position: static;
    display: block;
    background: transparent;
    border: none;
    box-shadow: none;
  }
  .main-nav ul {
    flex-direction: row;
    padding: 0;
  }
  .main-nav li { border-top: none; }
  .main-nav a { padding: 10px 2px; }
  .header-cta { display: inline-flex; }
  .menu-toggle { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, var(--canopy-pale) 0%, var(--cream) 60%);
  padding: 44px 0 60px;
}
.hero-canopy {
  position: absolute;
  inset: 0;
  opacity: 0.14;
  pointer-events: none;
}
.hero-inner {
  display: grid;
  gap: 32px;
  align-items: center;
  position: relative;
}
.hero-lede { font-size: 1.08rem; max-width: 54ch; }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 26px 0 22px;
}
.hero-actions.center { justify-content: center; }
.hero-rating {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.hero-stars { color: var(--amber); letter-spacing: 2px; }

.hero-badge {
  display: none;
  position: relative;
  width: 220px;
  height: 220px;
  margin: 0 auto;
  align-items: center;
  justify-content: center;
}
.hero-badge-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  animation: spin 40s linear infinite;
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.hero-badge-inner {
  position: relative;
  width: 168px;
  height: 168px;
  border-radius: 50%;
  background: var(--canopy-deep);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  box-shadow: var(--shadow-soft);
}
.hero-badge-number {
  font-family: var(--font-head);
  font-size: 2.4rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}
.hero-badge-stars {
  color: var(--amber-light);
  font-size: 0.85rem;
  letter-spacing: 2px;
}
.hero-badge-label {
  color: #c9d3e2;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  text-align: center;
  padding: 0 12px;
}

@media (min-width: 860px) {
  .hero-inner {
    grid-template-columns: 1.15fr 0.85fr;
  }
  .hero-badge {
    display: flex;
  }
}

/* ---------- Trust strip ---------- */
.trust-strip {
  background: var(--canopy-deep);
}
.trust-strip-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px 0;
  padding: 26px 0;
  text-align: center;
}
.trust-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 24px;
  min-width: 120px;
}
.trust-number {
  font-family: var(--font-head);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--amber-light);
}
.trust-label {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #c9d3e2;
  font-weight: 700;
}
.trust-divider {
  display: none;
}
@media (min-width: 700px) {
  .trust-divider {
    display: block;
    width: 1px;
    background: rgba(255,255,255,0.16);
  }
}

/* ---------- Sections ---------- */
.section {
  padding: 60px 0;
}
.section-alt {
  background: var(--canopy-pale);
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  gap: 32px;
  align-items: center;
}
.about-art {
  max-width: 240px;
  margin: 0 auto;
  order: -1;
}
.about-points {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: grid;
  gap: 12px;
}
.about-points li {
  position: relative;
  padding-left: 30px;
  font-weight: 700;
  color: var(--canopy-deep);
}
.about-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: var(--amber);
}
@media (min-width: 860px) {
  .about-grid {
    grid-template-columns: 1.2fr 0.8fr;
  }
  .about-art { max-width: 100%; order: 2; }
}

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  gap: 20px;
  margin-top: 40px;
  grid-template-columns: 1fr;
}
.service-card {
  background: var(--paper);
  border-radius: var(--radius-md);
  padding: 26px 22px;
  box-shadow: var(--shadow-card);
  text-align: left;
  border-top: 3px solid var(--amber);
}
.service-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: var(--canopy-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.service-card p { margin-bottom: 0; }
.services-note {
  text-align: center;
  margin-top: 32px;
  color: var(--ink-soft);
  font-weight: 500;
}
@media (min-width: 640px) {
  .services-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Testimonial carousel (React island styles) ---------- */
#testimonial-carousel-root {
  margin-top: 36px;
}
.tc-root {
  max-width: 680px;
  margin: 0 auto;
}
.tc-card {
  background: var(--paper);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  box-shadow: var(--shadow-soft);
  text-align: center;
  min-height: 210px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-bottom: 4px solid var(--amber);
}
.tc-stars {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-bottom: 14px;
}
.tc-quote {
  font-size: 1.15rem;
  color: var(--canopy-deep);
  line-height: 1.55;
  margin: 0 0 14px;
  font-weight: 500;
}
.tc-attribution {
  font-weight: 700;
  color: var(--amber);
  margin: 0;
  font-size: 0.92rem;
}
.tc-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 20px;
}
.tc-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--canopy-mid);
  background: var(--paper);
  color: var(--canopy-deep);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tc-arrow:hover { background: var(--canopy-pale); }
.tc-dots {
  display: flex;
  gap: 10px;
}
.tc-dot {
  width: 12px;
  height: 12px;
  min-width: 12px;
  border-radius: 50%;
  border: none;
  background: #d9dee6;
  cursor: pointer;
  padding: 0;
}
.tc-dot-active {
  background: var(--amber);
}
.tc-fallback blockquote {
  background: var(--paper);
  border-radius: var(--radius-md);
  padding: 20px;
  margin: 0 0 16px;
  box-shadow: var(--shadow-card);
  color: var(--canopy-deep);
  font-weight: 500;
}

/* ---------- CTA band ---------- */
.cta-band-inner {
  text-align: center;
}
.cta-band-inner p {
  max-width: 480px;
  margin: 0 auto 8px;
}

/* ---------- Service area ---------- */
.area-list {
  list-style: none;
  margin: 36px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.area-list li {
  background: var(--paper);
  border: 1.5px solid var(--canopy-mid);
  color: var(--canopy-deep);
  font-weight: 700;
  font-size: 0.92rem;
  padding: 10px 18px;
  border-radius: 999px;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  gap: 40px;
}
.contact-list {
  list-style: none;
  padding: 0;
  margin: 24px 0;
  display: grid;
  gap: 16px;
}
.contact-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink-soft);
  font-weight: 600;
}
.contact-list svg { color: var(--amber); flex-shrink: 0; }
.contact-list a {
  color: var(--ink);
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.contact-list a:hover { color: var(--canopy-mid); }

.map-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.map-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.contact-form-wrap {
  background: var(--paper);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-soft);
}
.contact-form {
  display: grid;
  gap: 14px;
}
.contact-form label {
  font-weight: 700;
  color: var(--canopy-deep);
  font-size: 0.92rem;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid #d9dee6;
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--cream);
  min-height: 44px;
}
.contact-form textarea { min-height: 110px; resize: vertical; }
.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--amber);
  outline-offset: 1px;
}
.contact-form button {
  margin-top: 6px;
  justify-self: start;
}

@media (min-width: 900px) {
  .contact-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--canopy-deep);
  color: #c9d3e2;
  padding: 40px 0 24px;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
}
.footer-brand .brand-text { color: #fff; font-size: 1.1rem; }
.footer-brand p { color: #a3b0c2; margin: 4px 0 0; }
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-contact a {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.footer-contact a:hover { color: var(--amber-light); }
.footer-copyright {
  color: #8592a3;
  font-size: 0.85rem;
  margin: 10px 0 0;
}
@media (min-width: 700px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  .footer-copyright {
    width: 100%;
    text-align: center;
    margin-top: 24px;
  }
}
