/* 
  West Valley Tree Service
  Brand Palette: Charcoal Black, Clean White, Leaf Green, Warm Gold Accent
  Brand Mood: Professional, dependable, clean, outdoorsy, locally trusted
  Shape Mode: Auto (Organic tree and landscape imagery supports subtle curves)
*/

:root {
  /* Color Palette */
  --c-charcoal: #2A2F33;
  --c-white: #FFFFFF;
  --c-leaf-green: #3B7242; /* A dependable, outdoorsy green */
  --c-leaf-green-light: #4A8C52;
  --c-leaf-green-dark: #2A512F;
  --c-warm-gold: #D4AF37; /* A warm, trusted accent */
  --c-warm-gold-hover: #E6C247;
  
  /* Neutrals */
  --c-bg-light: #F7F9F6; /* Slight outdoor warmth */
  --c-text-main: #333333;
  --c-text-muted: #666666;
  --c-border: #E0E0E0;

  /* Typography */
  --font-primary: 'Inter', system-ui, -apple-system, sans-serif;
  --font-heading: 'Outfit', 'Inter', system-ui, sans-serif;
  
  /* Radii (Shape Mode: Auto) - Subtle curves */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-pill: 9999px;

  /* Shadows for clean, professional lift */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  
  /* Spacing */
  --space-xs: 0.5rem;   /* 8px */
  --space-sm: 1rem;     /* 16px */
  --space-md: 2rem;     /* 32px */
  --space-lg: 4rem;     /* 64px */
  --space-xl: 8rem;     /* 128px */
}

/* =========================================
   Reset & Base Styles
   ========================================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-primary);
  color: var(--c-text-main);
  background-color: var(--c-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--c-charcoal);
  margin-bottom: var(--space-sm);
  line-height: 1.2;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.25rem; }

p {
  margin-bottom: var(--space-sm);
  color: var(--c-text-muted);
}

a {
  color: var(--c-leaf-green);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--c-leaf-green-dark);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-md); /* Auto shape strategy */
}

ul {
  list-style: none;
}

/* =========================================
   Layout & Container Utility
   ========================================= */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-sm);
}

.section {
  padding: var(--space-lg) 0;
}

.section-light {
  background-color: var(--c-bg-light);
}

.section-dark {
  background-color: var(--c-charcoal);
  color: var(--c-white);
}
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark p {
  color: var(--c-white);
}

/* =========================================
   Buttons & CTAs
   ========================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  font-size: 1rem;
}

.btn-primary {
  background-color: var(--c-warm-gold);
  color: var(--c-charcoal);
}
.btn-primary:hover {
  background-color: var(--c-warm-gold-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: var(--c-charcoal);
}

.btn-secondary {
  background-color: var(--c-leaf-green);
  color: var(--c-white);
}
.btn-secondary:hover {
  background-color: var(--c-leaf-green-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: var(--c-white);
}

.btn-outline {
  background-color: transparent;
  border-color: var(--c-charcoal);
  color: var(--c-charcoal);
}
.btn-outline:hover {
  background-color: var(--c-charcoal);
  color: var(--c-white);
}

/* CTAs priority order: Call > Book Online > Email */
/* Icons */
.icon {
  width: 24px;
  height: 24px;
  fill: currentColor;
  margin-right: 0.5rem;
  display: inline-block;
}

/* =========================================
   Header & Navigation
   ========================================= */
.site-header {
  background-color: var(--c-white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 1rem 0;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

.logo img {
  height: 60px;
  width: auto;
  border-radius: 0; /* Logos usually unshaped unless circle */
}

.main-nav ul {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.main-nav a {
  color: var(--c-charcoal);
  font-weight: 500;
  font-size: 1rem;
  display: inline-block;
  padding: 0.25rem 0;
}

.main-nav a:hover, .main-nav a.active {
  color: var(--c-leaf-green);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

@media (max-width: 1200px) {
  .main-nav ul {
      gap: 1rem;
  }
  .header-cta .btn {
      padding: 0.65rem 1rem;
      font-size: 0.95rem;
  }
}

/* Base Top Bar (Optional but good for service businesses) */
.top-bar {
  background-color: var(--c-charcoal);
  color: var(--c-white);
  font-size: 0.875rem;
  padding: 0.5rem 0;
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.top-bar a {
  color: var(--c-white);
  margin-left: 1rem;
}
.top-bar a:hover {
  color: var(--c-warm-gold);
}

/* =========================================
   Footer
   ========================================= */
.site-footer {
  background-color: var(--c-charcoal);
  color: var(--c-white);
  padding: var(--space-lg) 0 2rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2rem;
  margin-bottom: var(--space-md);
}

.footer-col {
  grid-column: span 3;
}
@media (max-width: 900px) {
  .footer-col { grid-column: span 6; }
}
@media (max-width: 600px) {
  .footer-col { grid-column: span 12; }
}

.footer-col h3 {
  color: var(--c-white);
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

.footer-col ul li {
  margin-bottom: 0.5rem;
}

.footer-col a {
  color: #ccc;
}
.footer-col a:hover {
  color: var(--c-warm-gold);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
  color: #aaa;
}
.footer-bottom a {
  color: #aaa;
  margin-left: 1rem;
}

/* Footer Map Mini-block */
.footer-map iframe {
  width: 100%;
  height: 150px;
  border: 0;
  border-radius: var(--radius-sm);
}

/* =========================================
   Cards & Layout Components
   ========================================= */
.grid {
  display: grid;
  gap: var(--space-md);
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* Service Card */
.service-card {
  background: var(--c-white);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--c-border);
}
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

/* Labels/Tags */
.tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
}
/* Requirement: Tags must vary. We'll set up utility classes */
.tag-tree { background-color: #E8F5E9; color: var(--c-leaf-green-dark); }
.tag-cleanup { background-color: #FFF3E0; color: #E65100; }
.tag-premium { background-color: #FFFDE7; color: var(--c-warm-gold-hover); }

/* Review Stars */
.star-rating {
  color: var(--c-warm-gold);
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

/* Responsive Menu Utilities */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  line-height: 1;
  color: var(--c-charcoal);
  cursor: pointer;
}

@media (max-width: 991px) {
  .header-inner {
      flex-wrap: wrap;
      gap: 1rem;
  }
  .main-nav {
      display: none;
      width: 100%;
      order: 3;
  }
  .main-nav ul {
      flex-direction: column;
      align-items: flex-start;
      gap: 0.25rem;
      width: 100%;
      margin-top: 0.5rem;
      padding-top: 0.75rem;
      border-top: 1px solid var(--c-border);
  }
  .main-nav li, .main-nav a {
      width: 100%;
  }
  .main-nav a {
      padding: 0.5rem 0;
  }
  .header-cta {
      display: none;
      width: 100%;
      order: 4;
      flex-direction: column;
      gap: 0.75rem;
      margin-top: 0.25rem;
      padding-top: 0.25rem;
  }
  .header-cta .btn {
      width: 100%;
  }
  .mobile-menu-toggle {
      display: block;
      margin-left: auto;
  }
}
