@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

/* ─── Design Tokens ─────────────────────────────────────────────── */
:root {
  --color-accent:      #c8b400;
  --color-accent-dark: #a89400;
  --color-bg-dark:     #1a1a1a;
  --color-bg-body:     #ffffff;
  --color-text:        #222222;
  --color-text-light:  #555555;
  --color-border:      #dddddd;
  --font-heading:      'Playfair Display', Georgia, serif;
  --font-body:         -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --max-width:         1100px;
  --header-height:     100px;
}

/* ─── Reset ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg-body);
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ─── Layout Utilities ───────────────────────────────────────────── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}
.section { padding: 3.5rem 0; }
.section--alt { background: #f7f7f5; }
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}
@media (max-width: 768px) {
  .two-col { grid-template-columns: 1fr; }
  .home-hero .two-col img { order: -1; }
}

/* ─── Header ────────────────────────────────────────────────────── */
.site-header {
  background: var(--color-bg-dark);
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  display: flex;
  align-items: center;
}
.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}
.logo {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  user-select: none;
}
.logo__tree {
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 1.6rem;
  color: var(--color-accent);
  letter-spacing: 0.02em;
}
.logo__savvy {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.3rem;
  color: #ffffff;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.logo__sub {
  font-size: 0.55rem;
  color: #aaaaaa;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* ─── Nav ────────────────────────────────────────────────────────── */
.site-nav { display: flex; align-items: center; gap: 0.25rem; }
.site-nav a {
  color: #cccccc;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  border-radius: 3px;
  transition: color 0.15s;
  white-space: nowrap;
}
.site-nav a:hover,
.site-nav a.active { color: var(--color-accent); }

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown > a { display: flex; align-items: center; gap: 0.25rem; }
.nav-dropdown > a::after {
  content: '▾';
  font-size: 0.75rem;
}
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #2a2a2a;
  min-width: 260px;
  border-top: 2px solid var(--color-accent);
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  z-index: 200;
}
.dropdown-menu a {
  display: block;
  padding: 0.6rem 1rem;
  font-size: 0.82rem;
  border-bottom: 1px solid #333;
}
.dropdown-menu a:last-child { border-bottom: none; }
.dropdown-menu a:hover { background: #333; color: var(--color-accent); }
.nav-dropdown:hover .dropdown-menu { display: block; }

/* Mobile nav */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.3rem;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 36px;
  height: 36px;
}
.hamburger-line {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-accent);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.15s ease;
  transform-origin: center;
}
.nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0; right: 0;
    background: var(--color-bg-dark);
    flex-direction: column;
    align-items: stretch;
    padding: 0.5rem 0 1rem;
    border-top: 1px solid #333;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 0.7rem 1.25rem; }
  .dropdown-menu {
    position: static;
    box-shadow: none;
    border-top: none;
    border-left: 3px solid var(--color-accent);
    margin-left: 1rem;
  }
  .nav-dropdown:hover .dropdown-menu { display: none; }
  .nav-dropdown.open .dropdown-menu { display: block; }
  .nav-dropdown > a::after { margin-left: auto; }
}

/* ─── Footer ────────────────────────────────────────────────────── */
.site-footer {
  background: var(--color-bg-dark);
  color: #888888;
  text-align: center;
  padding: 1rem 1.25rem;
  font-size: 0.78rem;
}

/* ─── CTA Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-block;
  background: var(--color-accent);
  color: #111111;
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.75rem 1.75rem;
  border-radius: 3px;
  border: none;
  cursor: pointer;
  transition: background 0.15s;
  text-decoration: none;
}
.btn:hover { background: var(--color-accent-dark); }
.btn--outline {
  background: transparent;
  border: 2px solid var(--color-accent);
  color: var(--color-accent);
}
.btn--outline:hover { background: var(--color-accent); color: #111; }
.btn-group { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.5rem; }
@media (max-width: 480px) { .btn-group { flex-direction: column; } }

/* ─── Page Hero Banner ───────────────────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, #1a2e1a 0%, #2d4a2d 60%, #1a3a1a 100%);
  color: #ffffff;
  padding: 3rem 0;
  text-align: left;
}
.page-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  margin-bottom: 0.5rem;
}
.page-hero p { color: #cccccc; font-size: 1.05rem; }

/* Emergency page hero */
.page-hero--emergency {
  background: linear-gradient(135deg, #3a0a0a 0%, #5a1a1a 60%, #3a1010 100%);
}
.emergency-badge {
  display: inline-block;
  background: #cc2200;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  padding: 0.5rem 1.5rem;
  border-radius: 3px;
  margin: 1rem 0;
  text-transform: uppercase;
}

/* ─── Home Page — Hero Section ──────────────────────────────────── */
.home-hero { padding: 3.5rem 0; }
.home-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  color: var(--color-text);
  margin-bottom: 1rem;
  line-height: 1.25;
}
.home-hero .subhead { font-weight: 700; font-size: 1.05rem; margin-bottom: 0.75rem; }
.services-list { margin: 0 0 1rem 0; }
.services-list li {
  padding: 0.3rem 0;
  padding-left: 1.25rem;
  position: relative;
  color: var(--color-text-light);
}
.services-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-size: 0.8rem;
  top: 0.35rem;
}

/* Image grid (3 photos side by side) */
.img-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}
.img-grid .img-placeholder {
  aspect-ratio: 3/4;
  background: linear-gradient(160deg, #2d4a2d, #4a7a4a);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.4);
  font-size: 0.7rem;
  text-align: center;
  padding: 0.5rem;
}

/* ─── Full-Width Forest Banner ──────────────────────────────────── */
.forest-banner {
  width: 100%;
  height: 400px;
  background-image: url('../images/woods.jpg');
  background-attachment: fixed;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}
/* background-attachment: fixed breaks on all mobile browsers (iOS Safari ignores it,
   Chrome mobile miscalculates position relative to viewport). Fall back to scroll. */
@media (max-width: 1024px) {
  .forest-banner {
    height: 260px;
    background-attachment: scroll;
    background-size: cover;
    background-position: center 30%;
  }
}

/* ─── Our Roots Bio Section ─────────────────────────────────────── */
.bio-photo {
  aspect-ratio: 3/4;
  background: linear-gradient(160deg, #2d4a2d, #4a7a4a);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.4);
  font-size: 0.8rem;
  text-align: center;
}
.bio-text h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 1rem;
  color: var(--color-text);
}
.bio-text p { margin-bottom: 1rem; color: var(--color-text-light); line-height: 1.7; }
.bio-text p:last-of-type {
  font-weight: 600;
  color: var(--color-text);
  font-style: italic;
  border-left: 3px solid var(--color-accent);
  padding-left: 1rem;
  margin-top: 1.5rem;
}

/* ─── Services Grid ─────────────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}
.service-card {
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 1.5rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.service-card:hover {
  border-color: var(--color-accent);
  box-shadow: 0 2px 12px rgba(200,180,0,0.15);
}
.service-card h3 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}
.service-card p { font-size: 0.9rem; color: var(--color-text-light); margin-bottom: 1rem; }
.service-card .card-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.service-card .card-link:hover { text-decoration: underline; }

/* ─── Service Page Layout ───────────────────────────────────────── */
.service-content { max-width: 760px; }
.service-content h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  margin-bottom: 1.25rem;
}
.service-content h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  margin: 1.5rem 0 0.75rem;
  color: var(--color-text);
}
.service-content p { margin-bottom: 1rem; color: var(--color-text-light); line-height: 1.7; }
.service-content .pull-question {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}
.service-list { margin: 0.5rem 0 1.5rem 0; }
.service-list li {
  padding: 0.4rem 0 0.4rem 1.5rem;
  position: relative;
  color: var(--color-text-light);
  border-bottom: 1px solid #f0f0f0;
  font-size: 0.95rem;
}
.service-list li:last-child { border-bottom: none; }
.service-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: 700;
}
.service-cta { margin-top: 2rem; }

/* ─── Contact Page ───────────────────────────────────────────────── */
.contact-form label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 0.3rem;
  color: var(--color-text);
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--color-border);
  border-radius: 3px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-text);
  margin-bottom: 1rem;
  transition: border-color 0.15s;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}
.contact-form textarea { min-height: 130px; resize: vertical; }
.truck-photo {
  aspect-ratio: 4/3;
  background: linear-gradient(160deg, #1a2e1a, #2d4a2d);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
  text-align: center;
  padding: 1rem;
}
.contact-info { margin-top: 1.5rem; font-size: 0.9rem; color: var(--color-text-light); }
.contact-info p { margin-bottom: 0.4rem; }
.contact-info strong { color: var(--color-text); }

/* ─── Logo Image ────────────────────────────────────────────────── */
.logo-img { height: auto; width: auto; display: block; }

/* ─── Photo helpers ──────────────────────────────────────────────── */
.bio-photo-img {
  width: 100%;
  border-radius: 6px;
  display: block;
  object-fit: cover;
}
.service-feature-img {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 2rem;
  display: block;
}
.contact-photo-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}
.img-grid img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: 4px;
  display: block;
}

