/* =====================================================
   Tree Services Maryland — Mobile-first, responsive
   Skeleton: Full-width strip sections + asymmetric grid
   Breakpoints: 320–767 mobile | 768–1024 tablet | 1025+ desktop
   ===================================================== */

:root {
  --color-bark: #1c140f;
  --color-leaf: #2d5016;
  --color-moss: #3d6b24;
  --color-sage: #5a8c3a;
  --color-cream: #f8f5f0;
  --color-sand: #ebe4d9;
  --color-white: #ffffff;
  --color-stump: #4a3728;
  --color-accent: #b8860b;
  --font-head: 'DM Serif Display', Georgia, serif;
  --font-body: 'Source Sans 3', system-ui, sans-serif;
  --tap-min: 44px;
  --radius-sm: 4px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-sm: 0 2px 8px rgba(28, 20, 15, 0.06);
  --shadow-md: 0 6px 24px rgba(28, 20, 15, 0.1);
  --shadow-lg: 0 12px 40px rgba(28, 20, 15, 0.12);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-bark);
  background: var(--color-cream);
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-leaf);
  text-decoration: none;
}

a:hover {
  color: var(--color-moss);
  text-decoration: underline;
}

/* ----- Mobile-first: base (320px–767px) ----- */
.container {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 1rem;
}

.wide-container {
  width: 100%;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ----- Header: minimal + slide-in menu ----- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: transparent;
  color: var(--color-bark);
  transition: background 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
}

.site-header.is-scrolled {
  background: var(--color-bark);
  color: var(--color-cream);
  box-shadow: var(--shadow-md);
}

.site-header a {
  color: inherit;
  text-decoration: none;
}

.site-header a:hover {
  text-decoration: none;
  opacity: 0.9;
}

.site-header.is-scrolled a {
  color: var(--color-cream);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--tap-min);
  padding: 0.75rem 1rem;
  gap: 1rem;
}

.logo {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.site-header.is-scrolled .logo span {
  color: var(--color-accent);
}

.site-header:not(.is-scrolled) .logo span {
  color: var(--color-leaf);
}

.menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: var(--tap-min);
  min-height: var(--tap-min);
  padding: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
  border-radius: var(--radius-sm);
  transition: background 0.2s;
}

.menu-btn:hover {
  background: rgba(0, 0, 0, 0.06);
}

.site-header.is-scrolled .menu-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.menu-btn-icon {
  width: 24px;
  height: 20px;
  position: relative;
}

.menu-btn-icon span {
  display: block;
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.25s, opacity 0.25s;
}

.menu-btn-icon span:nth-child(1) { top: 0; }
.menu-btn-icon span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.menu-btn-icon span:nth-child(3) { bottom: 0; }

.menu-btn[aria-expanded="true"] .menu-btn-icon span:nth-child(1) {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}
.menu-btn[aria-expanded="true"] .menu-btn-icon span:nth-child(2) {
  opacity: 0;
}
.menu-btn[aria-expanded="true"] .menu-btn-icon span:nth-child(3) {
  bottom: 50%;
  transform: translateY(50%) rotate(-45deg);
}

/* Slide-in sidebar overlay */
.sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 300;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.sidebar-backdrop.is-visible {
  opacity: 1;
  visibility: visible;
}

.sidebar-nav {
  position: fixed;
  top: 0;
  right: 0;
  width: min(320px, 85vw);
  height: 100vh;
  background: var(--color-bark);
  color: var(--color-cream);
  z-index: 301;
  padding: 2rem 1.5rem;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
}

.sidebar-nav.is-open {
  transform: translateX(0);
}

.sidebar-nav a {
  color: var(--color-cream);
  display: block;
  padding: 0.75rem 0;
  min-height: var(--tap-min);
  display: flex;
  align-items: center;
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-nav a:hover {
  color: var(--color-accent);
  text-decoration: none;
}

.sidebar-nav ul {
  list-style: none;
}

/* ----- Buttons: tap-friendly (min 44px) ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap-min);
  padding: 0 1.25rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius-md);
  text-align: center;
  cursor: pointer;
  border: none;
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
}

.btn-primary {
  background: var(--color-leaf);
  color: var(--color-white);
}

.btn-primary:hover {
  background: var(--color-moss);
  color: var(--color-white);
  text-decoration: none;
}

.btn-secondary {
  background: var(--color-sand);
  color: var(--color-bark);
}

.btn-secondary:hover {
  background: var(--color-stump);
  color: var(--color-cream);
  text-decoration: none;
}

.btn-accent {
  background: var(--color-accent);
  color: var(--color-bark);
}

.btn-accent:hover {
  background: var(--color-leaf);
  color: var(--color-white);
  text-decoration: none;
}

/* ----- Hero: split grid (mobile = stacked) ----- */
.hero {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(160deg, var(--color-leaf) 0%, var(--color-moss) 50%, var(--color-bark) 100%);
  color: var(--color-cream);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  flex: 1;
  align-items: center;
}

.hero-content {
  padding: 2rem 1rem 2.5rem;
  order: 1;
}

.hero-content h1 {
  font-family: var(--font-head);
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.hero-content .tagline {
  font-size: 1.0625rem;
  opacity: 0.95;
  margin-bottom: 1.5rem;
  max-width: 36ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-visual {
  min-height: 220px;
  background: linear-gradient(135deg, var(--color-moss) 0%, var(--color-stump) 100%);
  order: 0;
  overflow: hidden;
}
.hero-visual img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  display: block;
}
.hero-visual img[src=""],
.hero-visual img:not([src]) {
  display: none;
}

/* Inner page hero (no split visual) */
.hero .wide-container:only-child,
.hero .container {
  padding: 2rem 1rem 2.5rem;
}
.hero .wide-container h1,
.hero .container h1 {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 400;
  margin-bottom: 0.5rem;
}
.hero .wide-container .tagline,
.hero .container .tagline {
  font-size: 1rem;
  opacity: 0.95;
}

/* ----- Sections: full-width strips + asymmetric ----- */
.section {
  padding: 2.5rem 0;
}

.section-strip {
  width: 100%;
  padding: 2.5rem 1rem;
}

.section-strip.dark {
  background: var(--color-bark);
  color: var(--color-cream);
}

.section-strip.dark a {
  color: var(--color-accent);
}

.section-strip.muted {
  background: var(--color-sand);
}

.section-heading {
  font-family: var(--font-head);
  font-size: clamp(1.375rem, 3.5vw, 1.875rem);
  font-weight: 400;
  color: var(--color-bark);
  margin-bottom: 0.75rem;
}

.section-strip.dark .section-heading {
  color: var(--color-cream);
}

.section-sub {
  font-size: 0.9375rem;
  color: var(--color-stump);
  max-width: 42ch;
  margin-bottom: 1.5rem;
}

.section-strip.dark .section-sub {
  color: var(--color-sand);
}

/* Offset cards: different radius + shadow ----- */
.card-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.card {
  background: var(--color-white);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s;
}

.card:nth-child(odd) {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.card:hover {
  box-shadow: var(--shadow-lg);
}

.card h3 {
  font-family: var(--font-head);
  font-size: 1.125rem;
  font-weight: 400;
  color: var(--color-leaf);
  margin-bottom: 0.5rem;
}

.card p {
  font-size: 0.9375rem;
  color: var(--color-stump);
  margin-bottom: 1rem;
}

.card .btn {
  margin-top: 0.25rem;
}

/* Split block 40/60 ----- */
.split-block {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: center;
}

.split-content {
  padding: 0.5rem 0;
}

.split-content .section-heading {
  text-align: left;
}

.split-actions {
  margin-top: 1rem;
}

/* Diagonal separator ----- */
.section-diagonal {
  position: relative;
  padding: 3rem 1rem;
  background: var(--color-leaf);
  color: var(--color-cream);
}

.section-diagonal::before {
  content: "";
  position: absolute;
  top: -2rem;
  left: 0;
  right: 0;
  height: 3rem;
  background: var(--color-cream);
  transform: skewY(-2deg);
  transform-origin: top left;
}

.section-diagonal .section-heading {
  color: var(--color-cream);
  margin-top: 0.5rem;
}

.section-diagonal .section-sub {
  color: var(--color-sand);
}

/* Staggered grid ----- */
.stagger-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
}

.stagger-item {
  background: rgba(255, 255, 255, 0.12);
  padding: 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.stagger-item h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.stagger-item p {
  font-size: 0.875rem;
  opacity: 0.9;
}

/* Side CTA block ----- */
.cta-block {
  padding: 2rem 1rem;
  background: var(--color-sand);
  border-radius: var(--radius-lg);
  margin-top: 2rem;
}

.cta-block .section-heading {
  margin-bottom: 0.5rem;
}

.cta-block .btn {
  margin-top: 1rem;
}

/* NAP block ----- */
.nap-block {
  font-style: normal;
  line-height: 1.75;
  font-size: 0.9375rem;
}

.nap-block .business-name {
  font-weight: 700;
  color: inherit;
}

.nap-block address {
  font-style: normal;
}

/* Light reveal (opacity only, no heavy animation) ----- */
.reveal {
  opacity: 0;
  transition: opacity 0.4s ease;
}

.reveal.is-visible {
  opacity: 1;
}

/* ----- Footer ----- */
.site-footer {
  background: var(--color-bark);
  color: var(--color-cream);
  padding: 2rem 1rem 1.5rem;
  margin-top: 2rem;
}

.site-footer a {
  color: var(--color-sand);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--color-accent);
  text-decoration: underline;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.footer-grid h4 {
  font-family: var(--font-head);
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-grid ul {
  list-style: none;
}

.footer-grid li {
  margin-bottom: 0.25rem;
}
.site-footer .hours {
  display: block;
  margin-top: 0.35rem;
}

.footer-bottom {
  text-align: center;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.8125rem;
  color: var(--color-sand);
  opacity: 0.9;
}

/* ----- Page content (inner pages) ----- */
.page-content {
  padding: 1.5rem 0 2.5rem;
}

.page-title {
  font-family: var(--font-head);
  font-size: clamp(1.375rem, 3.5vw, 1.875rem);
  font-weight: 400;
  color: var(--color-bark);
  margin-bottom: 0.5rem;
}

.breadcrumb {
  font-size: 0.875rem;
  color: var(--color-stump);
  margin-bottom: 1rem;
}

.breadcrumb a {
  color: var(--color-leaf);
}

/* ----- Tablet (768px–1024px) ----- */
@media (min-width: 768px) {
  .container {
    max-width: 720px;
    padding: 0 1.25rem;
  }

  .wide-container {
    max-width: 960px;
    padding: 0 1.25rem;
  }

  .header-inner {
    padding: 1rem 1.25rem;
    min-height: 56px;
  }

  .logo {
    font-size: 1.375rem;
  }

  .hero-inner {
    grid-template-columns: 1fr 1fr;
    gap: 0;
    min-height: 55vh;
  }

  .hero-content {
    padding: 2.5rem 2rem 3rem;
    order: 0;
  }

  .hero-visual {
    min-height: auto;
    order: 1;
  }

  .section {
    padding: 3rem 0;
  }

  .section-strip {
    padding: 3rem 1.25rem;
  }

  .card-wrap {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
  }

  .split-block {
    grid-template-columns: 40% 1fr;
    gap: 2rem;
  }

  .split-actions {
    margin-top: 1.25rem;
  }

  .stagger-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    margin-top: 2rem;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .cta-block {
    padding: 2rem 1.5rem;
  }
}

/* ----- Desktop (1025px+) ----- */
@media (min-width: 1025px) {
  .container {
    max-width: 1140px;
    padding: 0 1.5rem;
  }

  .wide-container {
    max-width: 1280px;
    padding: 0 2rem;
  }

  .header-inner {
    padding: 1rem 2rem;
  }

  .logo {
    font-size: 1.5rem;
  }

  .hero-inner {
    min-height: 65vh;
  }

  .hero-content {
    padding: 3rem 3rem 4rem;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .section {
    padding: 4rem 0;
  }

  .section-strip {
    padding: 4rem 2rem;
  }

  .card-wrap {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 2.5rem;
  }

  .card:nth-child(1) { border-radius: var(--radius-md); }
  .card:nth-child(2) { border-radius: var(--radius-lg); }
  .card:nth-child(3) { border-radius: var(--radius-md); }
  .card:nth-child(4) { border-radius: var(--radius-xl); }

  .split-block {
    grid-template-columns: 42% 1fr;
    gap: 3rem;
  }

  .stagger-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }

  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
  }

  .cta-block {
    padding: 2.5rem 2rem;
    max-width: 560px;
  }
}

/* Contact page grid */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

.contact-info .nap-block {
  background: var(--color-sand);
  padding: 1.25rem;
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
}
.contact-info .hours { display: block; margin-top: 0.5rem; }
.contact-form label { display: block; font-weight: 600; margin-bottom: 0.25rem; font-size: 0.9375rem; }
.contact-form input,
.contact-form textarea {
  width: 100%;
  max-width: 100%;
  padding: 0.5rem 0.75rem;
  margin-bottom: 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  border: 1px solid var(--color-sand);
  border-radius: var(--radius-sm);
  background: var(--color-white);
}
.contact-form textarea { min-height: 120px; resize: vertical; }
.contact-form button { margin-top: 0.25rem; }

/* FAQ */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--color-sand);
  padding: 1rem 0;
}

.faq-item h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-leaf);
  margin-bottom: 0.35rem;
}

.faq-item p {
  color: var(--color-stump);
  font-size: 0.9375rem;
}

/* Gallery photos grid (6 images) */
.gallery-photos {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1rem;
}
.gallery-photos img {
  width: 100%;
  height: auto;
  aspect-ratio: 3/2;
  object-fit: cover;
  border-radius: var(--radius-md);
  display: block;
}
@media (min-width: 768px) {
  .gallery-photos {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
}
@media (min-width: 1025px) {
  .gallery-photos {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

/* Areas list */
.areas-list {
  column-count: 1;
  column-gap: 1.5rem;
  max-width: 640px;
  margin: 0 auto;
}

.areas-list ul {
  list-style: none;
  break-inside: avoid;
}

.areas-list li {
  margin-bottom: 0.25rem;
}

@media (min-width: 600px) {
  .areas-list {
    column-count: 2;
  }
}

.text-content p { margin-bottom: 1rem; max-width: 65ch; }
.text-content p:last-child { margin-bottom: 0; }

/* Utility */
.text-center { text-align: center; }
.text-left { text-align: left; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mt-2 { margin-top: 2rem; }
