/* ============================================================
   Breedlove Landscaping LLC — Global Styles
   ============================================================ */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  /* Stone palette — drawn from the actual paver/block colors */
  --slate: #3a3f47;
  --slate-light: #545b65;
  --charcoal: #2c2f33;
  --stone: #7a7d82;
  --stone-light: #b8bcc2;

  /* Earth greens — from the landscaping work */
  --forest: #1a3a1a;
  --green: #2d6a27;
  --green-mid: #3a7a33;
  --green-light: #4a8c3f;
  --green-accent: #6db85d;
  --moss: #8ab87a;

  /* Warm neutrals */
  --cream: #f7f5f0;
  --warm: #faf8f4;
  --sand: #e8e2d8;
  --tan: #d4ccc0;

  /* Text */
  --text: #1a1a1a;
  --text-mid: #4a4a4a;
  --text-light: #777;
  --white: #ffffff;

  /* Functional */
  --phone-green: #2d6a27;
  --cta-hover: #246022;
  --border: rgba(0,0,0,0.08);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --radius: 8px;
  --radius-lg: 14px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--warm);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }

a { transition: color 0.2s ease; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

/* ===== SECTION LABEL ===== */
.label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 0.75rem;
  display: block;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
  border: none;
  cursor: pointer;
  font-family: inherit;
  line-height: 1;
}

.btn-green {
  background: var(--green);
  color: var(--white);
}
.btn-green:hover { background: var(--cta-hover); transform: translateY(-1px); box-shadow: var(--shadow-md); }

.btn-outline {
  background: transparent;
  color: var(--green);
  border: 2px solid var(--green);
}
.btn-outline:hover { background: var(--green); color: var(--white); }

.btn-white {
  background: var(--white);
  color: var(--green);
}
.btn-white:hover { background: var(--cream); }

.btn-plain {
  background: none;
  color: var(--text-mid);
  padding-left: 0;
  padding-right: 0;
}
.btn-plain:hover { color: var(--green); }

.btn-lg { padding: 1.1rem 2.5rem; font-size: 1.1rem; }

/* ===== NAVIGATION ===== */
.site-nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(250, 248, 244, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0;
  transition: box-shadow 0.3s ease;
}

.site-nav.scrolled { box-shadow: var(--shadow-sm); }

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--forest);
}

.nav-brand img {
  height: 36px;
  width: auto;
}

.nav-brand-text {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.nav-brand-text span {
  color: var(--green-light);
  font-weight: 600;
}

.nav-links {
  display: flex;
  gap: 0.25rem;
  align-items: center;
}

.nav-links a {
  color: var(--text-mid);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 0.9rem;
  border-radius: 6px;
  transition: all 0.2s;
}

.nav-links a:hover { color: var(--green); background: rgba(45,106,39,0.06); }
.nav-links a.active { color: var(--green); font-weight: 600; }

.nav-phone {
  background: var(--green) !important;
  color: var(--white) !important;
  padding: 0.55rem 1.25rem !important;
  border-radius: 6px !important;
  font-weight: 600 !important;
  margin-left: 0.5rem;
  white-space: nowrap;
}
.nav-phone:hover { background: var(--cta-hover) !important; }

/* Mobile hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  position: relative;
  transition: background 0.2s;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: '';
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  position: absolute;
  left: 0;
  transition: transform 0.3s;
}
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }

.nav-toggle.open span { background: transparent; }
.nav-toggle.open span::before { transform: rotate(45deg); top: 0; }
.nav-toggle.open span::after { transform: rotate(-45deg); top: 0; }

/* ===== TRUST STRIP ===== */
.trust-strip {
  background: var(--forest);
  color: rgba(255,255,255,0.88);
  padding: 1rem 2rem;
}

.trust-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
  font-size: 0.88rem;
  font-weight: 500;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.trust-icon { opacity: 0.5; font-size: 0.9rem; }

/* ===== SECTION SPACING ===== */
.section { padding: 5rem 0; }
.section--cream { background: var(--cream); }
.section--tan { background: #ece5d5; }
.section--warm { background: var(--warm); }
.section--pale { background: #eaf2e7; }
.section--dark { background: var(--forest); color: var(--white); }
.section--charcoal { background: var(--charcoal); color: var(--white); }

/* ===== SECTION HEADINGS ===== */
.section-header {
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--forest);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.section--dark .section-header h2,
.section--charcoal .section-header h2 {
  color: var(--white);
}

.section-header p {
  color: var(--text-mid);
  margin-top: 0.75rem;
  max-width: 600px;
  font-size: 1.05rem;
}

.section--dark .section-header p,
.section--charcoal .section-header p {
  color: rgba(255,255,255,0.7);
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--charcoal);
  color: rgba(255,255,255,0.5);
  padding: 3rem 0 1.5rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 1.5rem;
}

.footer-brand h3 {
  color: var(--white);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 320px;
}

.footer-col h4 {
  color: rgba(255,255,255,0.75);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.footer-col a {
  display: block;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.25rem 0;
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--green-accent); }

.footer-phone {
  color: var(--green-accent) !important;
  font-weight: 600;
  font-size: 1rem !important;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer-bottom a {
  color: rgba(255,255,255,0.35);
  text-decoration: none;
}
.footer-bottom a:hover { color: rgba(255,255,255,0.6); }

/* ===== CTA BANNER ===== */
.cta-banner {
  background: var(--green);
  padding: 4rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,58,26,0.3) 0%, transparent 60%);
  pointer-events: none;
}

.cta-banner .container { position: relative; z-index: 1; }

.cta-banner h2 {
  color: var(--white);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.cta-banner p {
  color: rgba(255,255,255,0.8);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}

.cta-phone-big {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.cta-phone-big a {
  color: var(--white);
  text-decoration: none;
  transition: opacity 0.2s;
}

.cta-phone-big a:hover { opacity: 0.85; }

.cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-note {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  margin-top: 1.25rem;
}

/* ===== LIGHTBOX ===== */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  cursor: zoom-out;
}

.lightbox-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.lightbox-overlay img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 0 60px rgba(0,0,0,0.5);
}

.lightbox-counter {
  position: absolute;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.85);
  font-size: 0.95rem;
  font-weight: 600;
  background: rgba(0,0,0,0.45);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
  transition: background 0.2s;
}
.lightbox-counter.hidden { display: none; }

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: rgba(255,255,255,0.15);
  border: none;
  color: white;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.lightbox-close:hover { background: rgba(255,255,255,0.25); }

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.15);
  border: none;
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 1.75rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 2;
  line-height: 1;
}
.lightbox-nav:hover { background: rgba(255,255,255,0.3); }
.lightbox-nav.prev { left: 1.5rem; }
.lightbox-nav.next { right: 1.5rem; }
.lightbox-nav.hidden { display: none; }
@media (max-width: 700px) {
  .lightbox-nav { width: 40px; height: 40px; font-size: 1.4rem; }
  .lightbox-nav.prev { left: 0.5rem; }
  .lightbox-nav.next { right: 0.5rem; }
}

.lightbox-caption {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.75);
  font-size: 0.9rem;
  text-align: center;
  max-width: 600px;
  padding: 0.5rem 1.5rem;
  background: rgba(0,0,0,0.4);
  border-radius: var(--radius);
}

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

@media (max-width: 768px) {
  .container { padding-left: 1.25rem; padding-right: 1.25rem; }
  .section { padding: 3.5rem 0; }

  .nav-inner { padding: 0.75rem 1.25rem; }

  .nav-toggle { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--warm);
    flex-direction: column;
    padding: 1rem 1.25rem 1.25rem;
    gap: 0;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
  }

  .nav-links.open { display: flex; }

  .nav-links a {
    padding: 0.75rem 0;
    width: 100%;
    border-radius: 0;
  }

  .nav-phone {
    margin-left: 0 !important;
    margin-top: 0.5rem;
    text-align: center;
    justify-content: center;
    display: flex !important;
  }

  .trust-inner { gap: 1.25rem; font-size: 0.82rem; }

  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
