/* ===================================
   ARBORIST BATON ROUGE
   Based on local-design base.css.
   Brand: deep forest green + chainsaw orange. Sharp corners, no radius.
   =================================== */

:root {
  --color-primary: #1B4332;
  --color-primary-ink: #ffffff;
  --color-accent: #E76F2E;
  --color-ink: #12261C;
  --color-body: #33403a;
  --color-muted: #6b7671;
  --color-line: #dfe4e1;
  --color-bg: #ffffff;
  --color-bg-alt: #F5F1EA;
  --color-success: #16a34a;
  --color-error: #dc2626;

  --font-heading: 'Montserrat', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --fs-h1: clamp(1.875rem, 3.6vw, 2.875rem);
  --fs-h2: clamp(1.5rem, 2.6vw, 2.125rem);
  --fs-h3: clamp(1.125rem, 1.5vw, 1.3125rem);
  --fs-body: 1rem;
  --fs-small: 0.875rem;

  --s-1: 0.5rem;
  --s-2: 1rem;
  --s-3: 1.5rem;
  --s-4: 2rem;
  --s-5: 3rem;
  --s-6: 4rem;
  --s-7: 6rem;
  --s-8: 8rem;

  --container: 1200px;
  --container-narrow: 800px;
  --header-h: 72px;
  --radius: 0;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--color-body);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}
img, picture, svg, video { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; }
a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
a:hover { text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 900;
  line-height: 1.12;
  color: var(--color-ink);
  letter-spacing: -0.02em;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); font-weight: 800; }
h4 { font-size: 1.125rem; font-weight: 700; }
p + p { margin-top: var(--s-2); }
main ul, main ol { margin-top: var(--s-2); padding-left: 1.25rem; }
main li { margin-bottom: 0.5rem; }

.overline {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--color-accent);
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--s-3);
}
.container-narrow { max-width: var(--container-narrow); }
section { padding-block: var(--s-5); }
@media (min-width: 768px) { section { padding-block: var(--s-6); } }
/* Trust bar and breadcrumbs set their own tighter rhythm. */
section.trust-bar, section.trust-bar + section { }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-1);
  padding: 0.8125rem 1.5rem;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.9375rem;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.btn + .btn { margin-left: var(--s-1); }
.btn-primary { background: var(--color-accent); color: #fff; }
.btn-primary:hover { background: var(--color-ink); }
.btn-secondary { background: transparent; color: var(--color-ink); border-color: var(--color-ink); }
.btn-secondary:hover { background: var(--color-ink); color: #fff; }
.cta-band .btn-secondary { color: #fff; border-color: #fff; }
.cta-band .btn-secondary:hover { background: #fff; color: var(--color-ink); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-line);
  min-height: var(--header-h);
}
.site-header > .container { position: relative; }
.site-header > .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: var(--s-2);
}

/* Brand lockup: two fixed lines that never re-wrap. */
.brand {
  display: flex; align-items: center; gap: 0.5rem;
  text-decoration: none; color: var(--color-ink); flex: none;
}
.brand svg { flex: none; }
.brand-text {
  display: flex; flex-direction: column;
  font-family: var(--font-heading); line-height: 1.02;
  letter-spacing: -0.03em; white-space: nowrap;
}
.brand-text b { font-weight: 900; font-size: 1.0625rem; font-style: normal; }
.brand-text i { font-weight: 700; font-size: 0.8125rem; font-style: normal; color: var(--color-primary); }

/* Nav: Services dropdown + About + Contact. */
.site-header nav a {
  text-decoration: none; font-weight: 600; font-size: 0.9375rem;
  white-space: nowrap;
}
.site-header nav a:hover { color: var(--color-accent); }

.nav-item.has-dropdown { position: relative; }
.dropdown-toggle {
  display: inline-flex; align-items: center; gap: 0.375rem;
  background: none; border: 0; padding: 0; cursor: pointer;
  font-family: var(--font-body); font-weight: 600; font-size: 0.9375rem;
  color: var(--color-ink); white-space: nowrap;
}
.dropdown-toggle:hover { color: var(--color-accent); }
.dropdown-toggle .chev { transition: transform 0.18s; }
.dropdown-toggle[aria-expanded="true"] .chev { transform: rotate(180deg); }

.dropdown {
  display: none;
  position: absolute; top: calc(100% + 12px); left: -1rem;
  min-width: 268px; z-index: 60;
  background: var(--color-bg);
  border: 2px solid var(--color-ink);
  box-shadow: 0 14px 28px rgba(0,0,0,0.14);
  padding: 0.25rem 0;
}
.dropdown a {
  display: block; padding: 0.625rem 1rem;
  font-weight: 600; font-size: 0.9375rem; white-space: nowrap;
  border-left: 3px solid transparent;
}
.dropdown a:hover { background: var(--color-bg-alt); border-left-color: var(--color-accent); color: var(--color-ink); }
/* Hover bridge so the pointer can cross the gap to the panel. */
.has-dropdown::after { content: ''; position: absolute; top: 100%; left: 0; right: 0; height: 14px; }
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown,
.dropdown.open { display: block; }

.header-actions { display: flex; align-items: center; gap: var(--s-1); flex: none; }

.nav-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 4px;
  width: 44px; height: 40px; padding: 0 10px;
  background: transparent; border: 2px solid var(--color-ink); cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; background: var(--color-ink); transition: transform 0.2s, opacity 0.2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Below 1080: whole nav becomes the hamburger panel and the Services
   list sits open inside it, so there is no nested toggle to fight. */
@media (max-width: 1079px) {
  .site-header nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch;
    background: var(--color-bg); border-bottom: 3px solid var(--color-ink);
    padding: var(--s-1) var(--s-3) var(--s-3);
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
    box-shadow: 0 12px 24px rgba(0,0,0,0.12);
  }
  .site-header nav.open { display: flex; }
  .site-header nav > a {
    padding: 0.8125rem 0; border-bottom: 1px solid var(--color-line);
    font-size: 1rem; white-space: normal;
  }
  .has-dropdown::after { display: none; }
  .dropdown-toggle {
    width: 100%; padding: 0.875rem 0 0.5rem;
    font-family: var(--font-heading); font-weight: 800;
    font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em;
    color: var(--color-muted); pointer-events: none;
  }
  .dropdown-toggle .chev { display: none; }
  .dropdown {
    display: block; position: static; min-width: 0;
    border: 0; box-shadow: none; padding: 0;
  }
  .dropdown a {
    padding: 0.8125rem 0; border-left: 0;
    border-bottom: 1px solid var(--color-line);
    font-size: 1rem; white-space: normal;
  }
  .dropdown a:hover { background: none; }
}

@media (min-width: 1080px) {
  .site-header nav { display: flex; gap: var(--s-4); align-items: center; }
  .nav-toggle { display: none; }
}

.header-call {
  display: inline-flex; align-items: center; gap: var(--s-1);
  padding: 0.625rem 1rem; background: var(--color-accent); color: #fff;
  text-decoration: none; font-weight: 800; font-family: var(--font-heading);
  white-space: nowrap; flex: none; font-size: 0.9375rem;
}
.header-call:hover { background: var(--color-ink); }
@media (max-width: 400px) {
  .header-call .call-word { display: none; }
  .header-call { padding: 0.625rem 0.75rem; font-size: 0.875rem; }
}

.hero { background: var(--color-bg-alt); padding-block: var(--s-4); position: relative; }
/* Hero photo. Directional scrim: dark enough for AA text on the left,
   light enough on the right that the photograph actually reads. */
.hero.has-bg {
  background-image:
    linear-gradient(100deg, rgba(12,28,20,0.92) 0%, rgba(12,28,20,0.80) 38%, rgba(12,28,20,0.42) 70%, rgba(12,28,20,0.30) 100%),
    var(--hero-img);
  background-size: cover;
  background-position: center 40%;
}
/* Stacked layout puts the form under the copy, so scrim the whole width. */
@media (max-width: 999px) {
  .hero.has-bg {
    background-image:
      linear-gradient(rgba(12,28,20,0.86), rgba(12,28,20,0.80)),
      var(--hero-img);
  }
}
.hero.has-bg h1 { color: #fff; }
.hero.has-bg .subhead { color: rgba(255,255,255,0.94); }
.hero.has-bg .trust-pill { background: var(--color-accent); color: #fff; }
.hero.has-bg .btn-secondary { color: #fff; border-color: #fff; }
.hero.has-bg .btn-secondary:hover { background: #fff; color: var(--color-ink); }
/* Separate the trust bar from a dark hero above it. */
.hero.has-bg + .trust-bar { background: var(--color-ink); border-top: 3px solid var(--color-accent); }

/* Images */
.img-placeholder {
  display: flex; align-items: center; justify-content: center;
  width: 100%; background: repeating-linear-gradient(45deg, #e8e2d8, #e8e2d8 10px, #ded7cb 10px, #ded7cb 20px);
  border: 2px dashed var(--color-muted); color: var(--color-muted);
  font-size: 0.8125rem; font-weight: 600; text-align: center; padding: var(--s-2);
}
.gallery { display: grid; grid-template-columns: 1fr; gap: var(--s-3); }
@media (min-width: 700px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
.gallery img, .gallery .img-placeholder { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 8 / 5; }

.service-card.has-img { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.service-card .card-img { width: 100%; aspect-ratio: 8 / 5; object-fit: cover; }
.service-card .img-placeholder { border: 0; border-bottom: 2px solid var(--color-line); }
.service-card .card-body { padding: var(--s-3); flex: 1; display: flex; flex-direction: column; }
.service-card .card-body .arrow { margin-top: auto; padding-top: var(--s-2); }
/* Stacked below 1000px: the form needs breathing room under the CTAs. */
.hero .lead-form { margin-top: var(--s-4); }
@media (min-width: 1000px) {
  .hero { padding-block: var(--s-6); }
  /* Centre the copy against the taller form column so the hero reads balanced. */
  .hero .container { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: var(--s-5); align-items: center; }
  .hero .lead-form { margin-top: 0; }
}
.hero h1 { margin-bottom: var(--s-2); }
.hero .subhead { font-size: 1.0625rem; color: var(--color-body); margin-bottom: 0; max-width: 50ch; }
@media (min-width: 768px) { .hero .subhead { font-size: 1.125rem; } }
.hero .trust-pill {
  display: inline-flex; align-items: center; gap: var(--s-1);
  padding: 0.4375rem 0.875rem; background: var(--color-primary); color: #fff;
  font-weight: 700; font-size: 0.8125rem; margin-bottom: var(--s-2);
  letter-spacing: 0.01em;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-3); }
.hero-actions .btn + .btn { margin-left: 0; }
.hero-actions .btn { flex: 1 1 auto; min-width: 0; }
@media (min-width: 480px) { .hero-actions .btn { flex: 0 0 auto; } }

.lead-form { background: var(--color-bg); padding: var(--s-3); border: 3px solid var(--color-ink); }
.lead-form h2 { font-size: 1.25rem; margin-bottom: 0.25rem; }
.lead-form .form-lede { font-size: 0.875rem; color: var(--color-muted); margin-bottom: var(--s-2); }
.lead-form .form-row { display: grid; gap: 0.6875rem; margin-bottom: var(--s-2); }
.lead-form label { display: block; font-weight: 600; font-size: 0.8125rem; margin-bottom: 0.1875rem; }
.lead-form input, .lead-form select, .lead-form textarea {
  width: 100%; padding: 0.5625rem 0.6875rem; border: 2px solid var(--color-line);
  background: #fff; font-size: 0.9375rem;
  font-family: var(--font-body); color: var(--color-ink);
  line-height: 1.4; border-radius: 0;
}
/* Strip native select chrome so it matches the text inputs exactly, then
   draw our own chevron in the brand accent. */
.lead-form select {
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  padding-right: 2.25rem;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23E76F2E' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 12px 8px;
  cursor: pointer;
  /* Match the computed height of a text input exactly. */
  height: calc(0.5625rem * 2 + 1.4 * 0.9375rem + 4px);
}
.lead-form select::-ms-expand { display: none; }
.lead-form input:focus, .lead-form select:focus, .lead-form textarea:focus {
  outline: 2px solid var(--color-accent); outline-offset: 2px; border-color: var(--color-ink);
}
.lead-form input::placeholder, .lead-form textarea::placeholder { color: var(--color-muted); }
.lead-form textarea { min-height: 68px; resize: vertical; }
/* Name and phone sit side by side once there is room. */
@media (min-width: 520px) {
  .lead-form .form-row { grid-template-columns: 1fr 1fr; }
  .lead-form .form-row label:nth-child(3),
  .lead-form .form-row label:nth-child(4),
  .lead-form .form-row label:nth-child(5) { grid-column: 1 / -1; }
}
.lead-form .btn { width: 100%; }
.lead-form .hp { position: absolute; left: -9999px; }
.lead-form .form-note { font-size: 0.8125rem; color: var(--color-muted); margin-top: var(--s-1); text-align: center; }

.trust-bar { background: var(--color-primary); color: #fff; padding-block: var(--s-3); }
.trust-bar ul {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-2); text-align: center;
}
@media (min-width: 900px) { .trust-bar ul { grid-template-columns: repeat(5, 1fr); } }
.trust-bar li { font-weight: 700; font-size: 0.9375rem; margin-bottom: 0; }
.trust-bar li span { display: block; font-size: 0.75rem; color: var(--color-accent); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.25rem; }

.services-grid { display: grid; grid-template-columns: 1fr; gap: var(--s-3); }
@media (min-width: 640px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }
.service-card {
  display: block; padding: var(--s-3); background: var(--color-bg);
  border: 2px solid var(--color-line); text-decoration: none; color: inherit;
  transition: border-color 0.15s, background 0.15s;
}
.service-card:hover { border-color: var(--color-primary); background: var(--color-bg-alt); }
.service-card h3 { margin-bottom: var(--s-1); }
.service-card p { font-size: 0.9375rem; }
.service-card .arrow { display: inline-block; margin-top: var(--s-2); font-weight: 800; color: var(--color-accent); }

.depth-grid { display: grid; grid-template-columns: 1fr; gap: var(--s-3); }
@media (min-width: 700px) { .depth-grid { grid-template-columns: repeat(2, 1fr); } }
.depth-card { padding: var(--s-3); border-left: 4px solid var(--color-accent); background: var(--color-bg-alt); }
.depth-card h3 { margin-bottom: var(--s-1); }
.depth-card p { font-size: 0.9375rem; }
.depth-card .stat { display: block; margin-top: var(--s-2); font-weight: 700; font-size: 0.875rem; color: var(--color-primary); }

.pillars { display: grid; grid-template-columns: 1fr; gap: var(--s-4); }
@media (min-width: 900px) { .pillars { grid-template-columns: repeat(3, 1fr); } }
.pillar h3 { margin-bottom: var(--s-1); }
.pillar .stat { display: block; margin-top: var(--s-2); font-weight: 800; color: var(--color-accent); font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.05em; }

.reviews { background: var(--color-bg-alt); }
.reviews-grid { display: grid; grid-template-columns: 1fr; gap: var(--s-3); }
@media (min-width: 768px) { .reviews-grid { grid-template-columns: repeat(3, 1fr); } }
.review-card { background: #fff; padding: var(--s-3); border: 2px solid var(--color-line); }
.review-card .stars { color: #f59e0b; font-size: 1.125rem; margin-bottom: var(--s-1); letter-spacing: 2px; }
.review-card blockquote { font-style: italic; margin-bottom: var(--s-2); font-size: 0.9375rem; }
.review-card cite { font-style: normal; font-weight: 700; display: block; }
.review-card cite span { display: block; font-weight: 400; font-size: 0.875rem; color: var(--color-muted); }

.faq details { border-bottom: 2px solid var(--color-line); padding-block: var(--s-2); }
.faq summary {
  font-family: var(--font-heading); font-weight: 800; font-size: 1.0625rem;
  cursor: pointer; list-style: none; position: relative; padding-right: 2rem;
  color: var(--color-ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 0; top: -0.15rem; font-size: 1.5rem; color: var(--color-accent); }
.faq details[open] summary::after { content: '\2212'; }
.faq details p { margin-top: var(--s-2); }

.cta-band { background: var(--color-primary); color: #fff; text-align: center; }
.cta-band h2 { color: #fff; margin-bottom: var(--s-2); }
.cta-band p { font-size: 1.0625rem; margin-bottom: var(--s-3); }
.cta-band a { color: #fff; }

.area-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s-1); }
.area-list li { margin: 0; }
.area-list a {
  display: inline-block; padding: 0.5rem 1rem; border: 2px solid var(--color-line);
  text-decoration: none; font-weight: 600; font-size: 0.9375rem;
}
.area-list a:hover { border-color: var(--color-primary); background: var(--color-bg-alt); }

.site-footer { background: var(--color-ink); color: #fff; padding-block: var(--s-5) var(--s-3); font-size: 0.9375rem; }
.site-footer a { color: #fff; }
.site-footer h4 { color: #fff; margin-bottom: var(--s-2); font-size: 0.9375rem; text-transform: uppercase; letter-spacing: 0.06em; }
.site-footer .footer-grid { display: grid; gap: var(--s-4); grid-template-columns: 1fr; }
@media (min-width: 768px) { .site-footer .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.5rem; }
.site-footer .footer-bottom {
  margin-top: var(--s-4); padding-top: var(--s-3);
  border-top: 1px solid rgba(255,255,255,0.15);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--s-2);
  font-size: 0.8125rem; color: rgba(255,255,255,0.7);
}
.licence-badge { display: inline-block; margin-top: var(--s-2); padding: 0.375rem 0.75rem; border: 2px solid var(--color-accent); font-weight: 700; font-size: 0.8125rem; }

.mobile-cta {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
  display: grid; grid-template-columns: 1fr 1fr;
  padding-bottom: env(safe-area-inset-bottom);
  transform: translateY(100%); transition: transform 0.3s ease;
}
.mobile-cta.visible { transform: translateY(0); }
.mobile-cta a {
  padding: 1rem; text-align: center; text-decoration: none; font-weight: 800;
  text-transform: uppercase; font-size: 0.9375rem; font-family: var(--font-heading);
}
.mobile-cta .call { background: var(--color-ink); color: #fff; }
.mobile-cta .quote { background: var(--color-accent); color: #fff; }
@media (min-width: 768px) { .mobile-cta { display: none; } }

.breadcrumbs { padding-block: var(--s-2); font-size: 0.875rem; color: var(--color-muted); border-bottom: 1px solid var(--color-line); }
.breadcrumbs a { color: var(--color-muted); }
.breadcrumbs a:hover { color: var(--color-ink); }
.breadcrumbs span[aria-current] { color: var(--color-ink); font-weight: 600; }

.prose h2 { margin-top: var(--s-4); margin-bottom: var(--s-2); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: var(--s-3); margin-bottom: var(--s-1); }

.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.text-center { text-align: center; }
.mb-3 { margin-bottom: var(--s-3); }
.bg-alt { background: var(--color-bg-alt); }
