/* ═══════════════════════════════════════════════════════════
   TREE BANDIT — style.css
   Brand: Bandit Orange #d36500 | Sage #829379 | Black | White
   Fonts: Fjalla One (headings) | Source Sans 3 (body)
═══════════════════════════════════════════════════════════ */

/* ── RESET & BASE ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }

:root {
  --orange:      #d36500;
  --orange-h:    #b85800;
  --sage:        #829379;
  --sage-dk:     #5e6e56;
  --black:       #111110;
  --dark:        #1c1c1a;
  --dark-2:      #252522;
  --mid:         #3a3a36;
  --muted:       #7a7a72;
  --border:      #2e2e2a;
  --light-bg:    #f5f3ee;
  --muted-bg:    #eceae4;
  --white:       #ffffff;
  --text:        #1c1c1a;
  --text-light:  #f0ede6;

  /* B6 Strip */
  --b6-bg:       #141412;
  --b6-border:   #2a2a26;
  --brass:       #c9a84c;
  --brass-h:     #b0903a;
  --silver:      #b0aaa0;

  --radius:      4px;
  --max:         1180px;
  --header-h:    68px;
}

body {
  font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
}

/* ── GLOBAL LINK RESET ──────────────────────────────────── */
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}
a:hover,
a:focus {
  color: var(--orange);
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--orange);
  color: var(--white);
  padding: 8px 16px;
  border-radius: var(--radius);
  font-weight: 700;
  z-index: 9999;
  text-decoration: none;
}
.skip-link:focus { top: 8px; color: var(--white); }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── TYPOGRAPHY ─────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: 'Fjalla One', Impact, sans-serif;
  line-height: 1.1;
  letter-spacing: 0.01em;
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1rem; letter-spacing: 0.05em; }

/* ── BUTTONS ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.97rem;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
  white-space: nowrap;
}

.btn--orange {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange);
}
.btn--orange:hover {
  background: var(--orange-h);
  border-color: var(--orange-h);
  color: var(--white);
}

.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}
.btn--ghost:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.08);
  color: var(--white);
}

.btn--ghost-dark {
  background: transparent;
  color: var(--dark);
  border-color: var(--mid);
}
.btn--ghost-dark:hover {
  border-color: var(--orange);
  color: var(--orange);
}

.btn--brass {
  background: linear-gradient(135deg, var(--brass) 0%, #a87c2a 100%);
  color: var(--black);
  border-color: var(--brass);
  font-weight: 700;
}
.btn--brass:hover {
  background: linear-gradient(135deg, #d4b050 0%, var(--brass) 100%);
  color: var(--black);
}

.btn--block { width: 100%; }

/* ── HEADER ─────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--black);
  border-bottom: 2px solid var(--orange);
  height: var(--header-h);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 16px;
}

.brand img { display: block; max-height: 50px; width: auto; }

/* Desktop nav */
.nav {
  display: none;
  align-items: center;
  gap: 4px;
}

@media (min-width: 1024px) {
  .nav { display: flex; }
}

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  color: var(--text-light);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: var(--radius);
  font-family: 'Source Sans 3', sans-serif;
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link:focus {
  color: var(--orange);
  background: rgba(211,101,0,0.08);
  outline: none;
}

.caret {
  font-size: 0.7rem;
  transition: transform 0.2s;
}

.nav-item.open .caret { transform: rotate(180deg); }

/* Dropdown */
.dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  background: var(--dark-2);
  border: 1px solid var(--border);
  border-top: 2px solid var(--orange);
  border-radius: 0 0 var(--radius) var(--radius);
  list-style: none;
  min-width: 230px;
  z-index: 300;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

.nav-item.open .dropdown { display: block; }

.dropdown a {
  display: block;
  padding: 11px 18px;
  color: var(--text-light);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s, color 0.15s;
}

.dropdown a:last-child { border-bottom: none; }

.dropdown a:hover {
  background: rgba(211,101,0,0.1);
  color: var(--orange);
}

/* Header actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.header-call {
  display: none;
}

@media (min-width: 640px) {
  .header-call { display: inline-flex; }
}

/* Hamburger */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

@media (min-width: 1024px) {
  .nav-toggle { display: none; }
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

.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);
}

/* Mobile nav drawer */
.mobile-nav {
  display: none;
  background: var(--dark);
  border-top: 1px solid var(--border);
}

.mobile-nav.open { display: block; }

.mobile-nav ul {
  list-style: none;
  padding: 12px 0 20px;
}

.mobile-nav li a {
  display: block;
  padding: 11px 24px;
  color: var(--text-light);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s, color 0.15s;
}

.mobile-nav li a:hover { color: var(--orange); background: rgba(211,101,0,0.06); }

.mobile-section {
  padding: 14px 24px 6px;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--sage);
  text-transform: uppercase;
  font-weight: 700;
}

.mobile-nav li:last-child { padding: 16px 24px 0; }

/* ── HERO ───────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;

  /* ▼ Replace '2.png' with the actual pine silhouette image path */
  background-image: url('/assets/img/hero/2.png');
  background-size: cover;
  background-position: center bottom;
  background-color: var(--dark); /* fallback while image loads */
}

.hero-overlay {
  position: absolute;
  inset: 0;
  /* Deep vignette — darkens edges, reveals silhouette center */
  background: radial-gradient(
    ellipse 120% 100% at 50% 100%,
    rgba(0,0,0,0.15) 0%,
    rgba(0,0,0,0.55) 60%,
    rgba(0,0,0,0.82) 100%
  );
}

.hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 80px 24px 100px;
}

.hero-mascot {
  display: block;
  margin: 0 auto 28px;
  width: auto;
  height: auto;
  max-width: min(350px, 100%);
  object-fit: contain;
  /* Drop shadow so mascot reads over any background */
  filter: drop-shadow(0 4px 24px rgba(0,0,0,0.7));
}

.hero h1 {
  color: var(--white);
  margin-bottom: 16px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 2px 12px rgba(0,0,0,0.6);
}

.hero-sub {
  color: rgba(240,237,230,0.85);
  font-size: 1.1rem;
  margin-bottom: 32px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

/* ── TRUST STRIP ────────────────────────────────────────── */
.trust-strip {
  background: var(--orange);
}

.trust-strip ul {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  justify-content: center;
  gap: 0;
  padding: 0;
}

.trust-strip li {
  color: var(--white);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 14px 20px;
  letter-spacing: 0.02em;
  position: relative;
}

.trust-strip li + li::before {
  content: '|';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.4;
}

/* ── SECTIONS ───────────────────────────────────────────── */
.section {
  padding: 72px 0;
}

.section--dark {
  background: var(--dark);
  color: var(--text-light);
}

.section--muted {
  background: var(--muted-bg);
}

.section-head {
  margin-bottom: 48px;
  max-width: 640px;
}

.section-head h2 { margin-bottom: 12px; }
.section-head p { color: var(--muted); font-size: 1.05rem; }

.section-head--light h2 { color: var(--white); }
.section-head--light p { color: var(--silver); }

/* ── SERVICE GRID ───────────────────────────────────────── */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.service-grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

/* Balanced 2×2 layout for the Land & Brush section */
.service-grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 767px) {
  .service-grid--2 { grid-template-columns: 1fr; }
}

.service-card {
  background: var(--light-bg);
  border: 1px solid #ddd9d0;
  border-left: 4px solid var(--sage);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: border-left-color 0.2s, box-shadow 0.2s;
}

.service-card:hover {
  border-left-color: var(--orange);
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.service-card--dark {
  background: var(--dark-2);
  border-color: var(--border);
  border-left-color: var(--orange);
}

.service-card--dark:hover {
  border-left-color: var(--sage);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.service-card {
  padding: 0 0 24px;
}

.service-card__body {
  padding: 20px 24px 0;
}

.service-card__photo {
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: 8px 8px 0 0;
  background: var(--muted-bg);
}

.service-card__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-card h3 {
  margin-bottom: 10px;
  color: var(--text);
}

.service-card--dark h3 { color: var(--white); }

.service-card p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 18px;
  line-height: 1.6;
}

.service-card--dark p { color: var(--silver); }

.card-link {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--sage-dk);
  text-decoration: none;
  transition: color 0.15s;
}

.card-link:hover { color: var(--orange); }

.card-link--orange { color: var(--orange); }
.card-link--orange:hover { color: var(--brass); }

/* ── EMERGENCY BAND ─────────────────────────────────────── */
.band {
  background: var(--dark-2);
  border-top: 2px solid var(--orange);
  border-bottom: 2px solid var(--orange);
  padding: 48px 0;
}

.band-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.band h2 { color: var(--white); margin-bottom: 8px; }
.band p  { color: var(--silver); font-size: 1rem; }

/* ── FINAL CTA ──────────────────────────────────────────── */
.final-cta {
  position: relative;
  background-color: var(--black); /* fallback while image loads */
  background-image: url('assets/img/hero/2.png');
  background-size: cover;
  background-position: center bottom;
  text-align: center;
}

/* Dark overlay keeps text legible over the pine silhouette */
.final-cta-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0,0,0,0.55) 0%,
    rgba(0,0,0,0.75) 100%
  );
}

.final-cta-inner {
  position: relative;
  z-index: 1;
}

.final-cta-slogan {
  font-family: 'Fjalla One', Impact, sans-serif;
  font-size: 1.05rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 14px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.final-cta h2 {
  color: var(--white);
  margin-bottom: 28px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.6);
}

/* ── AREAS WE SERVE ─────────────────────────────────────── */
.areas-section {
  border-top: 1px solid #ddd9d0;
}

.areas-section h2 { margin-bottom: 10px; }

.areas-sub {
  color: var(--muted);
  margin-bottom: 28px;
  font-size: 1rem;
}

.areas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px 16px;
  list-style: none;
  margin-bottom: 20px;
}

.areas-grid li {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  padding: 6px 0;
  border-bottom: 1px solid #ddd9d0;
}

.areas-grid a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.areas-grid a:hover { color: var(--orange); }

.areas-note {
  font-size: 0.85rem;
  color: var(--muted);
  font-style: italic;
}

/* ── CONTACT — OFFICE INFO & MAP ───────────────────────── */
.contact-office-info {
  background: var(--light-bg);
  border: 1px solid #ddd9d0;
  border-left: 4px solid var(--orange);
  border-radius: var(--radius);
  padding: 28px 24px;
  margin-top: 28px;
}

.contact-office-info h3 { margin-bottom: 10px; }

.contact-office-info p { margin-bottom: 8px; }

.map-container {
  margin-top: 18px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid #ddd9d0;
}

.map-container iframe {
  display: block;
  width: 100%;
  height: 300px;
  border: 0;
}

/* ── PAGE HERO (location & service templates) ──────────── */
.hero--page {
  min-height: 380px;
}

.hero--page .hero-inner {
  padding: 64px 24px 72px;
}

/* ── SPLIT CONTENT SECTION (text + image) ───────────────── */
.split-section {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

@media (max-width: 800px) {
  .split-section { grid-template-columns: 1fr; }
}

.split-section__text h2 { margin-bottom: 16px; }
.split-section__text p { color: var(--muted); font-size: 1.05rem; margin-bottom: 14px; }

.split-section__media {
  width: 100%;
  height: 340px;
  border-radius: var(--radius);
  overflow: hidden;
}

.split-section__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── SERVICE DETAIL CONTENT (service-template) ──────────── */
.service-detail h2 { margin-bottom: 16px; }
.service-detail p { color: var(--muted); font-size: 1.05rem; margin-bottom: 16px; max-width: 780px; }

.equipment-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.equipment-list li {
  list-style: none;
  background: var(--muted-bg);
  border: 1px solid #ddd9d0;
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 999px;
}

/* ── QUOTE FORM ──────────────────────────────────────────── */
.quote-form-section {
  background: var(--muted-bg);
  border-top: 1px solid #ddd9d0;
}

.quote-form {
  max-width: 640px;
  margin: 0 auto;
  display: grid;
  gap: 16px;
}

.quote-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 560px) {
  .quote-form .form-row { grid-template-columns: 1fr; }
}

.quote-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.quote-form input,
.quote-form select,
.quote-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ccc7ba;
  border-radius: var(--radius);
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--white);
}

.quote-form input:focus,
.quote-form select:focus,
.quote-form textarea:focus {
  outline: 2px solid var(--orange);
  outline-offset: 1px;
}

.quote-form textarea { resize: vertical; min-height: 110px; }

/* ── B6 TRADESMAN GATEWAY STRIP ─────────────────────────── */
.b6-strip {
  background: var(--b6-bg);
  border-top: 1px solid var(--b6-border);
  border-bottom: 1px solid var(--b6-border);
  padding: 32px 0;
  /* Subtle rivet / steel texture feel via gradient */
  background-image: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 48px,
    rgba(255,255,255,0.015) 48px,
    rgba(255,255,255,0.015) 50px
  );
}

.b6-strip-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.b6-strip-text {
  flex: 1;
  min-width: 240px;
}

.b6-strip-label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--brass);
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 8px;
  font-family: 'Source Sans 3', sans-serif;
}

.b6-strip-text p {
  color: var(--silver);
  font-size: 0.95rem;
  line-height: 1.5;
}

.b6-strip-text strong { color: var(--white); }

/* ── FOOTER ─────────────────────────────────────────────── */
.site-footer {
  background: var(--black);
  padding: 56px 0 0;
  color: var(--text-light);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-brand img {
  display: block;
  margin-bottom: 15px;
  max-height: 120px;
  width: auto;
  object-fit: contain;
}

.footer-brand p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 14px;
  max-width: 280px;
}

.footer-call {
  color: var(--orange);
  font-family: 'Fjalla One', sans-serif;
  font-size: 1.35rem;
  text-decoration: none;
  transition: color 0.15s;
}

.footer-call:hover { color: var(--white); }

.site-footer h4 {
  color: var(--white);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.site-footer ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.site-footer ul a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.15s;
}

.site-footer ul a:hover { color: var(--orange); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 18px 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.footer-hds a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-hds a:hover { color: var(--orange); }

/* ── STICKY CALL BAR (mobile) ───────────────────────────── */
.callbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  z-index: 150;
  border-top: 2px solid var(--orange);
}

@media (min-width: 768px) {
  .callbar { display: none; }
}

.callbar a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background 0.15s;
}

.callbar a:first-child {
  background: var(--orange);
  color: var(--white);
}

.callbar a:first-child:hover { background: var(--orange-h); }

.callbar a:last-child {
  background: var(--dark);
  color: var(--white);
  border-left: 1px solid var(--border);
}

.callbar a:last-child:hover { background: var(--mid); }

/* ── BODY PADDING (mobile callbar clearance) ────────────── */
@media (max-width: 767px) {
  body { padding-bottom: 56px; }
}

/* ── REDUCED MOTION ─────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
