/* Tree Service Template — style.css */
/* Palette: Forest green + off-white + earth accent. Serves tree service, pressure washing, lawn care. */

:root {
  --color-bg: #f6f8f4;
  --color-surface: #ffffff;
  --color-forest: #1a4d2e;
  --color-forest-dark: #102d1c;
  --color-earth: #a0845c;
  --color-earth-dark: #7d6340;
  --color-text: #1c1c1e;
  --color-text-muted: #6b7280;
  --color-border: #dee8d8;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius: 8px;
  --radius-lg: 14px;
  --shadow: 0 2px 10px rgba(0,0,0,.08);
  --shadow-lg: 0 8px 28px rgba(0,0,0,.12);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-sans); background: var(--color-bg); color: var(--color-text); line-height: 1.6; }
.container { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: .95rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: background .2s, transform .15s, box-shadow .2s;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--color-earth); color: #fff; }
.btn-primary:hover { background: var(--color-earth-dark); box-shadow: 0 4px 16px rgba(160,132,92,.3); }
.btn-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.45); }
.btn-outline:hover { border-color: rgba(255,255,255,.85); background: rgba(255,255,255,.08); }
.btn-large { padding: 15px 32px; font-size: 1rem; }

/* ─── HERO ─── */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  background: var(--color-forest-dark);
  background-image: url('assets/hero-tree.jpg');
  background-size: cover;
  background-position: center top;
  overflow: hidden;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(16,45,28,.88) 0%, rgba(16,45,28,.45) 70%, rgba(16,45,28,.2) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 660px;
  padding: 56px 32px;
  opacity: 0;
  transform: translateY(16px);
}
.hero-content.animated {
  opacity: 1;
  transform: translateY(0);
  transition: opacity .38s ease, transform .38s ease;
}
.hero-storm-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-earth);
  color: #fff;
  font-weight: 700;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 5px 12px;
  border-radius: 4px;
  margin-bottom: 16px;
}
.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .75rem;
  color: rgba(255,255,255,.6);
  margin-bottom: 8px;
}
.hero-h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.08;
  margin-bottom: 14px;
}
.hero-tagline {
  font-size: clamp(.95rem, 2vw, 1.2rem);
  color: rgba(255,255,255,.82);
  margin-bottom: 30px;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

/* ─── TRUST BAR ─── */
.trust-bar {
  background: var(--color-forest);
  padding: 18px 0;
  border-bottom: 3px solid var(--color-earth);
}
.trust-items { display: flex; justify-content: center; flex-wrap: wrap; gap: 16px 40px; }
.trust-item {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
  font-size: .87rem;
  color: rgba(255,255,255,.88);
  opacity: 0;
  transform: translateY(6px);
}
.trust-item.animated { opacity: 1; transform: translateY(0); transition: opacity .3s, transform .3s; }
.trust-icon { width: 19px; height: 19px; color: var(--color-earth); flex-shrink: 0; }

/* ─── SECTIONS ─── */
section { padding: 72px 0; }
.section-title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--color-forest);
  margin-bottom: 10px;
  text-align: center;
}
.section-sub { text-align: center; color: var(--color-text-muted); margin-bottom: 48px; font-size: 1rem; }

/* ─── SERVICES ─── */
.services { background: var(--color-surface); }
.services-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
.service-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 16px;
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  font-weight: 600;
  font-size: .92rem;
  opacity: 0;
  transform: translateY(10px);
  transition: box-shadow .2s, border-color .2s;
}
.service-card.animated { opacity: 1; transform: translateY(0); }
.service-card:hover { box-shadow: var(--shadow); border-color: var(--color-forest); }
.service-leaf {
  width: 36px;
  height: 36px;
  background: rgba(26,77,46,.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.service-leaf svg { width: 18px; height: 18px; color: var(--color-forest); }

/* ─── WORK PHOTOS ─── */
.work-photos { background: var(--color-bg); }
.work-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
}
.work-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  opacity: 0;
  transform: translateY(12px);
}
.work-card.animated { opacity: 1; transform: translateY(0); transition: opacity .4s, transform .4s; }
.work-card-full { grid-column: 1 / -1; }
.work-photo {
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--color-forest) center/cover no-repeat;
  transition: transform .4s;
}
.work-card-full .work-photo { aspect-ratio: 16/5; }
.work-card:hover .work-photo { transform: scale(1.03); }
.work-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 14px 10px;
  background: linear-gradient(transparent, rgba(0,0,0,.65));
  color: #fff;
  font-weight: 700;
  font-size: .85rem;
}
.before-label { color: #fca5a5; }
.after-label { color: #86efac; }

/* ─── ABOUT ─── */
.about { background: var(--color-surface); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-image {
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--color-forest) url('assets/about-equipment.jpg') center/cover no-repeat;
  border-radius: var(--radius-lg);
}
.about-eyebrow { text-transform: uppercase; letter-spacing: .1em; font-size: .75rem; color: var(--color-earth); font-weight: 700; margin-bottom: 10px; }
.about-text h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 700; color: var(--color-forest); margin-bottom: 16px; line-height: 1.22; }
.about-text p { color: var(--color-text-muted); margin-bottom: 14px; line-height: 1.75; }
.about-text .btn { margin-top: 10px; }

/* ─── CALLOUT ─── */
.callout-banner { background: var(--color-forest); padding: 40px 0; }
.callout-text { text-align: center; color: rgba(255,255,255,.82); font-size: clamp(1rem, 2vw, 1.18rem); line-height: 1.65; max-width: 820px; margin: 0 auto; }
.callout-text strong { color: var(--color-earth); font-size: 1.1em; }

/* ─── TESTIMONIALS ─── */
.testimonials { background: var(--color-bg); }
.testimonial-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.testimonial-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 30px;
  border-left: 4px solid var(--color-forest);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateX(-14px);
}
.testimonial-card:nth-child(2) { transform: translateX(14px); border-left-color: var(--color-earth); }
.testimonial-card.animated { opacity: 1; transform: translateX(0); transition: opacity .4s, transform .4s; }
.stars { color: var(--color-earth); font-size: 1.15rem; margin-bottom: 12px; }
.testimonial-card blockquote { font-size: 1rem; color: var(--color-text); line-height: 1.65; font-style: italic; margin-bottom: 12px; }
.testimonial-card cite { font-size: .83rem; color: var(--color-text-muted); font-style: normal; font-weight: 600; }

/* ─── SERVICE AREA ─── */
.service-area { background: var(--color-surface); text-align: center; }
.service-area-text { font-size: 1.08rem; color: var(--color-text-muted); margin-bottom: 22px; }

/* ─── FOOTER ─── */
.footer { background: var(--color-forest-dark); color: rgba(255,255,255,.75); padding: 48px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer-brand strong { display: block; font-size: 1.1rem; color: #fff; margin-bottom: 6px; }
.footer-brand p { font-size: .88rem; }
.footer-contact p { margin-bottom: 8px; font-size: .88rem; }
.footer-contact a { color: rgba(255,255,255,.75); text-decoration: none; }
.footer-contact a:hover { color: var(--color-earth); }
.footer-bottom { padding: 18px 24px; text-align: center; font-size: .78rem; color: rgba(255,255,255,.3); }

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-image-wrap { display: none; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: 1fr 1fr; }
  .work-card-full { grid-column: auto; }
  .footer-grid { grid-template-columns: 1fr; }
  section { padding: 52px 0; }
  .hero { min-height: 80vh; }
  .hero-ctas { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .work-grid { grid-template-columns: 1fr; }
}
