/* =========================================================
   NEA Tree Works — Main Stylesheet
   Mobile-first, no web fonts, no frameworks, no JavaScript
   Palette: storm-steel #1c3a5e (primary), amber-gold #e8961e (accent),
            slate-charcoal #2d3748 (body text), warm off-white #f8f7f5
   Distinct from CSRA (forest-green/amber) and Pineywoods (teal/orange)
   ========================================================= */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: #2d3748;
  background: #f8f7f5;
}
img { max-width: 100%; height: auto; display: block; }
a { color: #1c3a5e; text-decoration: underline; }
a:hover { color: #2a5490; }
ul, ol { padding-left: 1.25rem; }

/* --- Sticky Header --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: #1c3a5e;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  height: 68px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.28);
}
.site-header .logo {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  line-height: 1.2;
}
.site-header .logo span { display: block; font-size: 0.7rem; font-weight: 400; opacity: 0.85; }
.header-cta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.header-call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e8961e;
  color: #1a1a1a;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  border-radius: 4px;
  padding: 0.45rem 0.85rem;
  min-height: 44px;
  white-space: nowrap;
  transition: background 0.15s;
}
.header-call:hover { background: #c97e10; color: #1a1a1a; }
.header-call svg { margin-right: 0.35rem; flex-shrink: 0; }

/* --- Body Offset for Fixed Header --- */
body { padding-top: 68px; }

/* --- Hero / Above the Fold --- */
.hero {
  background: linear-gradient(135deg, #1c3a5e 0%, #2a5490 100%);
  color: #fff;
  padding: 2.5rem 1rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #e8961e 0%, #1c3a5e 100%);
  z-index: 2;
}
.hero h1 {
  font-size: clamp(1.5rem, 5vw, 2.4rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 0.6rem;
}
.hero .subhead {
  font-size: 1.05rem;
  opacity: 0.9;
  margin-bottom: 1.5rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e8961e;
  color: #1a1a1a;
  font-weight: 800;
  font-size: 1.15rem;
  text-decoration: none;
  border-radius: 6px;
  padding: 0.85rem 1.75rem;
  min-height: 52px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.22);
  transition: background 0.15s, transform 0.1s;
}
.btn-primary:hover { background: #c97e10; color: #1a1a1a; transform: translateY(-1px); }
.btn-primary svg { margin-right: 0.5rem; }
.hero-note {
  margin-top: 0.85rem;
  font-size: 0.82rem;
  opacity: 0.75;
}

/* --- Trust Bar --- */
.trust-bar {
  background: #fff;
  border-bottom: 1px solid #e0ddd8;
  padding: 0.6rem 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.2rem;
  justify-content: center;
  font-size: 0.82rem;
  color: #555;
}
.trust-bar span { display: flex; align-items: center; gap: 0.3rem; }
.trust-bar svg { color: #1c3a5e; flex-shrink: 0; }

/* --- Main Content --- */
.main-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 2rem 1rem 3rem;
}

/* --- Section Headings --- */
h2 {
  font-size: clamp(1.2rem, 3.5vw, 1.6rem);
  color: #1c3a5e;
  margin: 2rem 0 0.75rem;
  line-height: 1.25;
}
h3 {
  font-size: 1.1rem;
  color: #2d3748;
  margin: 1.5rem 0 0.5rem;
}
p { margin-bottom: 0.9rem; }

/* --- Inline CTA --- */
.inline-cta {
  background: #eef3f9;
  border-left: 4px solid #1c3a5e;
  border-radius: 0 6px 6px 0;
  padding: 1rem 1.25rem;
  margin: 1.75rem 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}
.inline-cta p { margin: 0; font-weight: 600; }
.btn-secondary {
  display: inline-flex;
  align-items: center;
  background: #1c3a5e;
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border-radius: 4px;
  padding: 0.55rem 1.1rem;
  min-height: 44px;
  white-space: nowrap;
  transition: background 0.15s;
}
.btn-secondary:hover { background: #2a5490; color: #fff; }
.btn-secondary svg { margin-right: 0.35rem; }

/* --- Service Cards Grid --- */
.service-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  margin: 1.25rem 0;
}
@media (max-width: 480px) { .service-grid { grid-template-columns: 1fr; } }
.service-card {
  background: #fff;
  border: 1px solid #ddd8d0;
  border-radius: 6px;
  padding: 1rem;
  text-decoration: none;
  color: #2d3748;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.15s, border-color 0.15s;
}
.service-card:hover { border-color: #1c3a5e; box-shadow: 0 2px 10px rgba(28,58,94,0.12); color: #2d3748; }
.service-card strong { color: #1c3a5e; font-size: 1rem; margin-bottom: 0.3rem; display: block; }
.service-card span { font-size: 0.82rem; color: #666; }

/* --- Area List --- */
.area-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin: 1rem 0;
}
@media (max-width: 480px) { .area-list { grid-template-columns: 1fr; } }
.area-list li a {
  display: block;
  background: #fff;
  border: 1px solid #ddd8d0;
  border-radius: 4px;
  padding: 0.6rem 0.85rem;
  text-decoration: none;
  font-weight: 600;
  color: #1c3a5e;
  transition: background 0.12s;
}
.area-list li a:hover { background: #eef3f9; }

/* --- Storm Alert Banner --- */
.storm-banner {
  background: #0d1f35;
  color: #fcd27a;
  border-radius: 6px;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  font-size: 0.93rem;
  line-height: 1.5;
}
.storm-banner strong { color: #e8961e; }

/* --- FAQ / Accordion --- */
.faq-section { margin: 2rem 0; }
.faq-section h2 { margin-bottom: 1rem; }
details {
  background: #fff;
  border: 1px solid #ddd8d0;
  border-radius: 5px;
  margin-bottom: 0.6rem;
  overflow: hidden;
}
details[open] { border-color: #1c3a5e; }
summary {
  padding: 0.85rem 1rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.2rem; color: #1c3a5e; flex-shrink: 0; }
details[open] summary::after { content: "−"; }
.faq-answer { padding: 0 1rem 0.85rem; font-size: 0.95rem; }

/* --- Pricing Table --- */
.price-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin: 1rem 0;
}
.price-table th {
  background: #1c3a5e;
  color: #fff;
  padding: 0.6rem 0.85rem;
  text-align: left;
}
.price-table td {
  padding: 0.55rem 0.85rem;
  border-bottom: 1px solid #e5e1da;
}
.price-table tr:nth-child(even) td { background: #f5f3f0; }
.price-table tr:hover td { background: #eef3f9; }

/* --- Info Box / Callout --- */
.info-box {
  background: #eef3f9;
  border: 1px solid #b0c8e8;
  border-radius: 6px;
  padding: 1rem 1.25rem;
  margin: 1.25rem 0;
  font-size: 0.92rem;
}
.info-box strong { color: #1c3a5e; }

.warning-box {
  background: #fff8e1;
  border: 1px solid #ffe082;
  border-radius: 6px;
  padding: 1rem 1.25rem;
  margin: 1.25rem 0;
  font-size: 0.92rem;
}

/* --- CTA Bottom Section --- */
.cta-section {
  background: #1c3a5e;
  color: #fff;
  text-align: center;
  padding: 2.5rem 1rem;
  margin: 2rem -1rem -3rem;
}
.cta-section h2 { color: #fff; margin-top: 0; }
.cta-section p { opacity: 0.88; margin-bottom: 1.25rem; }

/* --- Footer --- */
.site-footer {
  background: #0d1624;
  color: #bbb;
  font-size: 0.8rem;
  padding: 1.5rem 1rem;
  text-align: center;
  line-height: 1.7;
}
.site-footer a { color: #8aadcc; }
.site-footer a:hover { color: #b8d4e8; }
.footer-disclaimer {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid #222d40;
  font-size: 0.75rem;
  color: #888;
}

/* =========================================================
   NAV — CSS-only, no JavaScript, checkbox-hack mobile menu
   Checkbox #nav-toggle lives just before <header> in HTML;
   CSS general-sibling selector (#nav-toggle:checked ~ header)
   controls the mobile panel.
   ========================================================= */

/* --- Hidden checkbox toggle --- */
#nav-toggle {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

/* --- Hamburger label (mobile only) --- */
.nav-hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  flex-shrink: 0;
  border-radius: 4px;
  transition: background 0.15s;
}
.nav-hamburger:hover,
.nav-hamburger:focus-visible {
  background: rgba(255,255,255,0.1);
  outline: 2px solid #e8961e;
  outline-offset: 1px;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.22s, opacity 0.22s;
  pointer-events: none;
}
/* Animate to X when open */
#nav-toggle:checked ~ .site-header .nav-hamburger span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
#nav-toggle:checked ~ .site-header .nav-hamburger span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
#nav-toggle:checked ~ .site-header .nav-hamburger span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* --- Site header layout --- */
.site-header .logo {
  order: 0;
  flex-shrink: 0;
  min-width: 0;
}
.nav-hamburger {
  order: 1;
}
.site-nav {
  order: 2;
}
.header-cta {
  order: 3;
  flex-shrink: 0;
}

/* Mobile: compact phone CTA */
@media (max-width: 767px) {
  header.site-header {
    padding: 0 0.6rem;
    gap: 0.25rem;
  }
  header.site-header a.header-call {
    font-size: 0.82rem;
    padding: 0.38rem 0.5rem;
    letter-spacing: -0.01em;
    min-height: 40px;
  }
  header.site-header a.header-call svg {
    margin-right: 0.15rem;
    width: 13px;
    height: 13px;
  }
  header.site-header .logo img {
    max-width: 120px;
  }
}

/* --- Nav base (ul reset) --- */
.site-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* ---- MOBILE NAV PANEL ---- */
.site-nav {
  position: fixed;
  top: 68px;
  left: 0;
  right: 0;
  background: #0f2340;
  z-index: 997;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  flex-basis: 0;
}
#nav-toggle:checked ~ .site-header .site-nav {
  max-height: 640px;
}

/* mobile top-level list items */
.site-nav > ul > li {
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

/* mobile top-level links */
.site-nav > ul > li > a {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.88rem 1.1rem;
  color: rgba(255,255,255,0.92);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  transition: background 0.12s, color 0.12s;
}
.site-nav > ul > li > a:hover,
.site-nav > ul > li > a:focus-visible {
  background: rgba(255,255,255,0.06);
  color: #e8961e;
  outline: none;
}
.site-nav > ul > li > a[aria-current="page"] {
  color: #e8961e;
  border-left: 3px solid #e8961e;
  padding-left: calc(1.1rem - 3px);
  background: rgba(232,150,30,0.06);
}

/* mobile dropdown sub-lists */
.site-nav .nav-dropdown {
  background: rgba(0,0,0,0.18);
}
.site-nav .nav-dropdown li a {
  display: block;
  padding: 0.62rem 1.1rem 0.62rem 2rem;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.12s, background 0.12s;
}
.site-nav .nav-dropdown li a:hover,
.site-nav .nav-dropdown li a:focus-visible {
  color: #e8961e;
  background: rgba(255,255,255,0.04);
  outline: none;
}
.site-nav .nav-dropdown li a[aria-current="page"] {
  color: #e8961e;
  font-weight: 700;
}

/* Chevron SVG */
.nav-chevron {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-left: auto;
  transition: transform 0.2s;
  opacity: 0.7;
}

/* ---- DESKTOP NAV (>=768px) ---- */
@media (min-width: 768px) {
  /* reset mobile panel to inline */
  .site-nav {
    position: static;
    max-height: none;
    overflow: visible;
    background: none;
    flex: 1;
    display: flex;
    align-items: stretch;
    justify-content: center;
    transition: none;
  }

  /* hide hamburger on desktop */
  .nav-hamburger {
    display: none;
    margin-left: 0;
  }

  /* horizontal top-level list */
  .site-nav > ul {
    display: flex;
    align-items: stretch;
    gap: 0;
  }
  .site-nav > ul > li {
    border-bottom: none;
    position: relative;
    display: flex;
    align-items: stretch;
  }

  /* desktop top-level links */
  .site-nav > ul > li > a {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0 0.9rem;
    height: 76px;
    font-size: 0.87rem;
    font-weight: 600;
    color: rgba(255,255,255,0.88);
    white-space: nowrap;
    text-decoration: none;
    border-bottom: 3px solid transparent;
    transition: color 0.15s, border-color 0.15s;
    background: none;
  }
  .site-nav > ul > li > a:hover,
  .site-nav > ul > li > a:focus-visible {
    color: #e8961e;
    border-bottom-color: #e8961e;
    background: rgba(255,255,255,0.04);
    outline: none;
  }
  .site-nav > ul > li > a[aria-current="page"] {
    color: #e8961e;
    border-bottom-color: #e8961e;
    border-left: none;
    padding-left: 0.9rem;
    background: none;
  }

  /* parent items with dropdown open on hover / focus-within */
  .site-nav > ul > li:hover > a,
  .site-nav > ul > li:focus-within > a {
    color: #e8961e;
    border-bottom-color: #e8961e;
  }
  .site-nav > ul > li:hover .nav-chevron,
  .site-nav > ul > li:focus-within .nav-chevron {
    transform: rotate(180deg);
    opacity: 1;
  }

  /* desktop dropdown panels */
  .site-nav .nav-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 210px;
    background: #0f2340;
    border-top: 2px solid #e8961e;
    border-radius: 0 0 5px 5px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.35);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.14s, transform 0.14s, visibility 0.14s;
    z-index: 1000;
  }
  .site-nav > ul > li:hover .nav-dropdown,
  .site-nav > ul > li:focus-within .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .site-nav .nav-dropdown li {
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  .site-nav .nav-dropdown li:last-child {
    border-bottom: none;
  }
  .site-nav .nav-dropdown li a {
    display: block;
    padding: 0.65rem 1rem;
    font-size: 0.87rem;
    color: rgba(255,255,255,0.85);
    white-space: nowrap;
    text-decoration: none;
    transition: background 0.12s, color 0.12s;
  }
  .site-nav .nav-dropdown li a:hover,
  .site-nav .nav-dropdown li a:focus-visible {
    background: rgba(255,255,255,0.07);
    color: #e8961e;
    outline: none;
  }
  .site-nav .nav-dropdown li a[aria-current="page"] {
    color: #e8961e;
    font-weight: 700;
    background: rgba(232,150,30,0.07);
  }
}

/* =========================================================
   END NAV
   ========================================================= */

/* --- Desktop header size --- */
@media (min-width: 768px) {
  .site-header { height: 76px; }
  body { padding-top: 76px; }
  .site-header .logo { font-size: 1.2rem; }
  .header-call { font-size: 1.1rem; padding: 0.5rem 1.1rem; }
  .hero { padding: 3.5rem 1rem 3rem; text-align: left; }
  .hero-inner { max-width: 760px; margin-left: auto; margin-right: auto; }
  .hero .subhead { margin-left: 0; margin-right: 0; max-width: 540px; }
  .hero .btn-primary { display: inline-flex; }
  .hero .hero-note { text-align: left; }
}

/* --- Hero inner container --- */
.hero-inner {
  position: relative;
  z-index: 1;
}

/* --- SVG section dividers --- */
.svg-divider {
  display: block;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}
.svg-divider svg { display: block; width: 100%; }

/* --- Service card icon --- */
.card-icon {
  display: block;
  margin-bottom: 0.5rem;
  color: #1c3a5e;
}

/* --- Storm motif banner extra --- */
.storm-motif {
  border-radius: 6px;
  overflow: hidden;
  margin: 1.5rem 0;
}
.storm-motif svg { display: block; }

/* --- Breadcrumb --- */
.breadcrumb {
  font-size: 0.78rem;
  color: #888;
  padding: 0.5rem 0 0;
  margin-bottom: 0.5rem;
}
.breadcrumb a { color: #555; }
.breadcrumb span { color: #aaa; margin: 0 0.3rem; }

/* --- Form --- */
.contact-form {
  background: #fff;
  border: 1px solid #ddd8d0;
  border-radius: 8px;
  padding: 1.5rem;
  margin: 1.5rem 0;
}
.contact-form h3 { margin-top: 0; color: #1c3a5e; }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-weight: 600; margin-bottom: 0.3rem; font-size: 0.9rem; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.6rem 0.85rem;
  border: 1px solid #ccc8c0;
  border-radius: 4px;
  font-size: 1rem;
  font-family: inherit;
  background: #faf9f8;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #1c3a5e;
  background: #fff;
}
.btn-form {
  width: 100%;
  background: #1c3a5e;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.75rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  min-height: 48px;
  transition: background 0.15s;
}
.btn-form:hover { background: #2a5490; }

/* --- Photo figures / image credit --- */
.photo-figure {
  margin: 1.75rem 0;
  border-radius: 6px;
  overflow: hidden;
  line-height: 0;
}
.photo-figure img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px 6px 0 0;
}
.photo-figure figcaption {
  line-height: 1.4;
  background: #eef3f9;
  border: 1px solid #b0c8e8;
  border-top: none;
  border-radius: 0 0 6px 6px;
  padding: 0.4rem 0.75rem;
}
.img-credit {
  font-size: 0.72rem;
  color: #666;
  display: block;
}
.img-credit a { color: #555; }

/* --- Species / List Callout --- */
.checklist {
  list-style: none;
  padding: 0;
}
.checklist li {
  padding: 0.35rem 0 0.35rem 1.6rem;
  position: relative;
}
.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #1c3a5e;
  font-weight: 700;
}

/* --- Stat callout --- */
.stat-callout {
  background: #eef3f9;
  border-left: 4px solid #1c3a5e;
  padding: 1rem 1.2rem;
  margin: 1.5rem 0;
  border-radius: 0 4px 4px 0;
}
.stat-callout p { margin: 0 0 0.4rem; }
.stat-callout p:last-child { margin: 0; }

/* --- Disclosure boxes (about page) --- */
.disclosure-box {
  background: #fff3cd;
  border: 2px solid #f0c040;
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}
.disclosure-box h2 { margin-top: 0; font-size: 1.1rem; color: #7a5a00; }
.recording-box {
  background: #e8f3fc;
  border: 2px solid #6aade8;
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  font-size: 0.9rem;
}
.privacy-section {
  border-top: 2px solid #ddd8d0;
  margin-top: 2.5rem;
  padding-top: 2rem;
}
.privacy-section h2 { color: #2d3748; }

/* Mobile small-screen fine-tunes */
@media screen and (max-width: 430px) {
  .site-header .logo img { max-height: 38px !important; }
  .header-call { font-size: 0.9rem !important; padding: 0.45rem 0.8rem !important; }
}
@media screen and (max-width: 360px) {
  .site-header .logo img { max-height: 30px !important; }
  .header-call { font-size: 0.8rem !important; padding: 0.4rem 0.65rem !important; }
}
