/* ==========================================================================
   Tree Kings Florida — mobile-first stylesheet
   Palette: real brand colors sourced from treekingsfl.com (near-black +
   vivid green), see NOTES.md "Branding update" for source/old values.
   Type: Fraunces (serif, headings) + Inter (sans, body/UI)
   ========================================================================== */

:root {
  --forest-950: #191a1f;
  --forest-900: #22242a;
  --forest-800: #1d4a28;
  --forest-700: #1a6b2b;
  --forest-600: #167a2b;
  --gold-500: #2fae3c;
  --gold-400: #37ca37;
  --gold-100: #d9f5db;
  --cream-100: #f7faf7;
  --cream-200: #eef3ee;
  --ink-900: #1b1d21;
  --ink-700: #4a534e;
  --white: #ffffff;

  --font-serif: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --radius-md: 10px;
  --radius-lg: 18px;
  --shadow-card: 0 12px 30px -14px rgba(25, 26, 31, 0.35);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink-900);
  background: var(--cream-100);
  font-size: 16px;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--forest-950);
  line-height: 1.15;
  margin: 0 0 0.5em;
}
p { margin: 0 0 1em; }
a { color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--gold-500);
  color: var(--forest-950);
  padding: 12px 20px;
  z-index: 200;
  font-weight: 600;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  font-family: var(--font-sans);
  font-weight: 600;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.85em 1.4em;
  min-height: 44px;
  border: 2px solid transparent;
  cursor: pointer;
  font-size: 1rem;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-lg { padding: 1em 1.8em; font-size: 1.05rem; }

.btn-primary {
  background: var(--gold-500);
  color: var(--forest-950);
  box-shadow: 0 8px 20px -8px rgba(47, 174, 60, 0.6);
}
.btn-primary:hover { background: var(--gold-400); }

.btn-ghost {
  background: transparent;
  color: var(--forest-950);
  border-color: var(--forest-800);
}
.btn-ghost:hover { background: rgba(29, 74, 40, 0.08); }

.btn-ghost-light {
  background: transparent;
  color: var(--cream-100);
  border-color: rgba(247, 250, 247, 0.6);
}
.btn-ghost-light:hover { background: rgba(247, 250, 247, 0.12); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--cream-100);
  border-bottom: 1px solid rgba(29, 74, 40, 0.12);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  min-height: 44px;
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--forest-900);
  color: var(--gold-400);
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}
.logo {
  height: 44px;
  width: auto;
  max-width: 15vw;
  object-fit: contain;
  flex-shrink: 0;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--forest-950);
}
.brand-tagline {
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gold-500);
  font-weight: 600;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid rgba(29, 74, 40, 0.25);
  border-radius: 8px;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 0 auto;
  background: var(--forest-950);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.primary-nav {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: min(320px, 85vw);
  background: var(--forest-950);
  padding: 5.5rem 1.75rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  transform: translateX(100%);
  transition: transform 0.25s ease;
  z-index: 90;
}
.primary-nav.open { transform: translateX(0); }
.primary-nav ul {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.primary-nav a {
  text-decoration: none;
  color: var(--cream-100);
  font-weight: 600;
  font-size: 1.1rem;
  display: block;
  padding: 0.85rem 0.25rem;
  min-height: 44px;
  border-bottom: 1px solid rgba(247, 250, 247, 0.1);
}
.primary-nav .nav-call {
  width: 100%;
  text-align: center;
}

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .primary-nav {
    position: static;
    height: auto;
    width: auto;
    background: transparent;
    padding: 0;
    flex-direction: row;
    align-items: center;
    gap: 1.75rem;
    transform: none;
  }
  .primary-nav ul {
    flex-direction: row;
    gap: 1.75rem;
  }
  .primary-nav a {
    color: var(--ink-900);
    font-size: 0.95rem;
    padding: 0.5rem 0.1rem;
    border-bottom: none;
  }
  .primary-nav a:hover { color: var(--forest-700); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: radial-gradient(circle at 15% 15%, var(--forest-700), var(--forest-950) 65%);
  color: var(--cream-100);
  overflow: hidden;
}
.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background-image:
    radial-gradient(circle at 85% 20%, rgba(55, 202, 55, 0.18) 0%, transparent 45%),
    repeating-linear-gradient(115deg, rgba(55, 202, 55, 0.05) 0px, rgba(55, 202, 55, 0.05) 2px, transparent 2px, transparent 34px);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 3.25rem 1.25rem 3rem;
}
.eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gold-400);
  margin-bottom: 0.9rem;
}
.eyebrow-dark { color: var(--forest-600); }
.hero h1 {
  color: var(--white);
  font-size: clamp(2rem, 6vw, 3.4rem);
  max-width: 16ch;
  margin-bottom: 0.65em;
}
.hero-sub {
  font-size: 1.1rem;
  max-width: 56ch;
  color: var(--gold-100);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin: 1.75rem 0 2.25rem;
}
.hero .btn-ghost {
  color: var(--cream-100);
  border-color: rgba(247, 250, 247, 0.55);
}
.hero .btn-ghost:hover { background: rgba(247, 250, 247, 0.1); }

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  border-top: 1px solid rgba(247, 250, 247, 0.18);
  padding-top: 1.5rem;
}
.trust-stat { display: flex; flex-direction: column; }
.trust-number {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--white);
}
.trust-number .star { color: var(--gold-400); font-size: 1.1rem; margin-left: 0.15em; }
.trust-label {
  font-size: 0.78rem;
  color: var(--gold-100);
  letter-spacing: 0.03em;
}
.trust-div {
  width: 1px;
  height: 34px;
  background: rgba(247, 250, 247, 0.2);
}

/* ---------- Info strip ---------- */
.strip {
  background: var(--gold-500);
  color: var(--forest-950);
}
.strip-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.7rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  justify-content: center;
}
.strip-item { display: inline-flex; align-items: center; gap: 0.4em; text-decoration: none; }
.strip-icon { font-size: 0.95rem; }

/* ---------- Sections ---------- */
.section { padding: 3.5rem 0; }
.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}
.section-lead {
  max-width: 62ch;
  color: var(--ink-700);
  font-size: 1.05rem;
}
.section h2 {
  font-size: clamp(1.6rem, 4vw, 2.3rem);
  max-width: 22ch;
}

/* ---------- Services ---------- */
.services { background: var(--cream-100); }
.services-grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
.service-card {
  background: var(--white);
  border: 1px solid rgba(29, 74, 40, 0.1);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
}
.service-icon {
  font-size: 1.75rem;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--forest-800);
  margin-bottom: 1rem;
}
.service-card h3 { font-size: 1.2rem; margin-bottom: 0.4em; }
.service-card p { color: var(--ink-700); margin-bottom: 0; font-size: 0.98rem; }
.service-card-cta {
  background: var(--forest-950);
  color: var(--cream-100);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.service-card-cta h3 { color: var(--white); }
.service-card-cta p { color: var(--gold-100); }
.service-card-cta .btn { margin-top: 0.5rem; align-self: flex-start; }

@media (min-width: 640px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- About ---------- */
.about { background: var(--cream-200); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.25rem;
  align-items: center;
}
.about-copy p { color: var(--ink-700); }
.about-points {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.about-points li {
  padding-left: 1.6rem;
  position: relative;
  color: var(--ink-900);
}
.about-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold-500);
}
.about-visual {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.about-pattern {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, var(--forest-800), var(--forest-950)),
    repeating-linear-gradient(45deg, rgba(55, 202, 55, 0.12) 0, rgba(55, 202, 55, 0.12) 2px, transparent 2px, transparent 26px);
}

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

/* ---------- Testimonials / gallery ---------- */
.gallery { background: var(--forest-950); color: var(--cream-100); }
.gallery .eyebrow-dark { color: var(--gold-400); }
.gallery h2 { color: var(--white); }
.gallery .section-lead { color: var(--gold-100); }

.tc-wrap { margin-top: 2rem; max-width: 720px; }
.tc-card {
  background: var(--forest-900);
  border: 1px solid rgba(55, 202, 55, 0.25);
  border-radius: var(--radius-lg);
  padding: 2rem;
  min-height: 200px;
}
.tc-stars { color: var(--gold-400); font-size: 1.1rem; letter-spacing: 0.15em; display: block; margin-bottom: 0.75rem; }
.tc-quote {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--cream-100);
  line-height: 1.5;
}
.tc-source { color: var(--gold-100); font-size: 0.9rem; margin-bottom: 0; }
.tc-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 1.25rem;
}
.tc-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(55, 202, 55, 0.4);
  background: transparent;
  color: var(--cream-100);
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tc-arrow:hover { background: rgba(55, 202, 55, 0.15); }
.tc-dots { display: flex; gap: 0.5rem; }
.tc-dot {
  width: 12px;
  height: 12px;
  min-width: 12px;
  min-height: 12px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--gold-400);
  background: transparent;
  cursor: pointer;
  position: relative;
}
.tc-dot::after {
  content: "";
  position: absolute;
  inset: -14px;
}
.tc-dot.active { background: var(--gold-400); }
.noscript-note { color: var(--gold-100); }
.noscript-note a { color: var(--gold-400); }

/* ---------- Service area ---------- */
.areas { background: var(--cream-100); }
.areas-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 1.75rem 0 2rem;
}
.area-chip {
  background: var(--white);
  border: 1px solid rgba(29, 74, 40, 0.18);
  color: var(--forest-800);
  padding: 0.55rem 1rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
}
.map-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(29, 74, 40, 0.15);
}
.map-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--forest-800), var(--forest-950));
  color: var(--cream-100);
  text-align: center;
}
.cta-band-inner { display: flex; flex-direction: column; align-items: center; }
.cta-band h2 { color: var(--white); max-width: 24ch; }
.cta-band p { color: var(--gold-100); max-width: 50ch; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; justify-content: center; margin-top: 0.5rem; }

/* ---------- Contact ---------- */
.contact { background: var(--cream-200); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
.contact-list { margin-top: 1.75rem; display: flex; flex-direction: column; gap: 1rem; }
.contact-row dt {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--forest-600);
  font-weight: 700;
  margin-bottom: 0.2rem;
}
.contact-row dd {
  margin: 0;
  font-size: 1.05rem;
  color: var(--ink-900);
}
.contact-row a { text-decoration: none; color: var(--forest-800); font-weight: 600; }
.contact-row a:hover { text-decoration: underline; }

.contact-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.form-row { display: flex; flex-direction: column; gap: 0.4rem; }
.form-row label { font-weight: 600; font-size: 0.92rem; color: var(--ink-900); }
.form-row input,
.form-row select,
.form-row textarea {
  font-family: var(--font-sans);
  font-size: 1rem;
  padding: 0.75em 0.85em;
  border-radius: var(--radius-md);
  border: 1px solid rgba(29, 74, 40, 0.25);
  background: var(--cream-100);
  min-height: 44px;
}
.form-row textarea { min-height: 100px; resize: vertical; }
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: 2px solid var(--gold-500);
  outline-offset: 1px;
}
.form-submit { margin-top: 0.4rem; width: 100%; }

@media (min-width: 860px) {
  .contact-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--forest-950);
  color: var(--gold-100);
  padding: 2.75rem 0 1.75rem;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}
.footer-brand { display: flex; align-items: center; gap: 0.85rem; }
.footer-name {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--white);
  font-weight: 700;
  margin: 0;
}
.footer-tagline { font-size: 0.78rem; color: var(--gold-400); margin: 0; text-transform: uppercase; letter-spacing: 0.05em; }
.footer-details p { margin: 0 0 0.4rem; font-size: 0.92rem; }
.footer-details a { color: var(--gold-100); text-decoration: underline; }
.footer-legal {
  border-top: 1px solid rgba(247, 250, 247, 0.12);
  padding-top: 1.25rem;
  font-size: 0.82rem;
  color: rgba(217, 245, 219, 0.7);
}

@media (min-width: 700px) {
  .footer-inner { flex-direction: row; justify-content: space-between; align-items: flex-start; }
  .footer-legal { border-top: none; padding-top: 0; }
}
