/* ============================================
   Summit Tree Care — Starter Site Stylesheet
   ============================================ */

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

:root {
  --forest: #1B3A2D;
  --forest-light: #2A5A43;
  --bark: #5C3D2E;
  --bark-light: #8B6B5A;
  --canopy: #4A7C59;
  --sage: #7FA68A;
  --cream: #FAF7F2;
  --warm-white: #FDFCF9;
  --sand: #E8E0D4;
  --charcoal: #2C2C2C;
  --text: #3A3A3A;
  --text-light: #6B6B6B;
  --accent: #C4973A;
  --white: #FFFFFF;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --radius: 6px;
  --radius-lg: 12px;
  --max-width: 1200px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Work Sans', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--warm-white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

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

/* ============================================
   Typography
   ============================================ */

h1, h2, h3, h4 {
  font-family: 'DM Serif Display', serif;
  color: var(--forest);
  line-height: 1.2;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); margin-bottom: 16px; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); margin-bottom: 12px; }

p { margin-bottom: 16px; }

.section-subtitle {
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--canopy);
  margin-bottom: 8px;
}

/* ============================================
   Buttons
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-family: 'Work Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--canopy);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--forest-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

.btn-phone {
  background: var(--accent);
  color: var(--white);
}
.btn-phone:hover {
  background: #B08830;
  transform: translateY(-2px);
}

/* ============================================
   Navigation
   ============================================ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: background var(--transition);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logo-icon {
  width: 42px;
  height: 42px;
  background: var(--forest);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-logo-icon svg { width: 24px; height: 24px; }

.nav-logo-text {
  font-family: 'DM Serif Display', serif;
  font-size: 1.35rem;
  color: var(--forest);
  line-height: 1.1;
}

.nav-logo-text span {
  display: block;
  font-family: 'Work Sans', sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--canopy);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text);
  position: relative;
  padding: 4px 0;
  transition: color var(--transition);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--canopy);
  transition: width var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--forest);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-phone {
  font-weight: 600;
  color: var(--forest);
  font-size: 0.95rem;
}

.nav-phone svg {
  width: 16px;
  height: 16px;
  vertical-align: middle;
  margin-right: 4px;
}

/* Mobile nav */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--forest);
  margin: 6px 0;
  transition: all var(--transition);
}

/* ============================================
   Mobile Click-to-Call Bar
   ============================================ */

.mobile-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: var(--forest);
  padding: 12px 16px;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.15);
}

.mobile-cta a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px;
  background: var(--accent);
  color: var(--white);
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1.05rem;
}

/* ============================================
   Hero
   ============================================ */

.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  padding-top: 72px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, var(--forest) 0%, var(--forest-light) 40%, var(--canopy) 100%);
  z-index: 0;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 80% 20%, rgba(74,124,89,0.4) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 80%, rgba(27,58,45,0.6) 0%, transparent 50%);
}

/* Decorative tree silhouette */
.hero-bg .tree-deco {
  position: absolute;
  right: -40px;
  bottom: -20px;
  width: 500px;
  height: 600px;
  opacity: 0.06;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 640px;
  padding: 80px 0;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 20px;
  font-size: clamp(2.4rem, 5.5vw, 3.6rem);
}

.hero h1 em {
  font-style: italic;
  color: var(--sage);
}

.hero p {
  color: rgba(255,255,255,0.85);
  font-size: 1.1rem;
  margin-bottom: 32px;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-trust {
  display: flex;
  gap: 32px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.15);
}

.hero-trust-item {
  color: rgba(255,255,255,0.9);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-trust-item strong {
  font-size: 1.4rem;
  color: var(--white);
  font-family: 'DM Serif Display', serif;
}

/* ============================================
   Sections
   ============================================ */

.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--cream);
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

.section-header p {
  color: var(--text-light);
  font-size: 1.05rem;
}

/* ============================================
   Services Grid (Home page)
   ============================================ */

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--sand);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--canopy);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card-icon {
  width: 56px;
  height: 56px;
  background: var(--cream);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.service-card-icon svg {
  width: 28px;
  height: 28px;
  color: var(--canopy);
}

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

.service-card p {
  color: var(--text-light);
  font-size: 0.92rem;
  margin-bottom: 0;
}

/* ============================================
   Why Us / Trust Section
   ============================================ */

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
}

.trust-item {
  text-align: center;
  padding: 24px;
}

.trust-icon {
  width: 72px;
  height: 72px;
  background: var(--forest);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.trust-icon svg {
  width: 32px;
  height: 32px;
  color: var(--white);
}

.trust-item h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.trust-item p {
  color: var(--text-light);
  font-size: 0.9rem;
}

/* ============================================
   CTA Banner
   ============================================ */

.cta-banner {
  background: var(--forest);
  padding: 64px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(74,124,89,0.3) 0%, transparent 70%);
}

.cta-banner h2 {
  color: var(--white);
  margin-bottom: 12px;
  position: relative;
}

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

.cta-banner .btn { position: relative; }

/* ============================================
   Services Page
   ============================================ */

.page-hero {
  padding: 120px 0 60px;
  background: linear-gradient(135deg, var(--forest) 0%, var(--forest-light) 100%);
  text-align: center;
}

.page-hero h1 { color: var(--white); margin-bottom: 12px; }
.page-hero p { color: rgba(255,255,255,0.8); font-size: 1.1rem; }

.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 48px 0;
  border-bottom: 1px solid var(--sand);
}

.service-detail:last-child { border-bottom: none; }

.service-detail-img {
  background: linear-gradient(135deg, var(--cream) 0%, var(--sand) 100%);
  border-radius: var(--radius-lg);
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.service-detail-img::after {
  content: 'Photo placeholder';
  font-size: 0.85rem;
  color: var(--text-light);
  font-weight: 500;
}

.service-detail-img svg {
  width: 64px;
  height: 64px;
  color: var(--sage);
  opacity: 0.5;
  position: absolute;
}

.service-detail-content h3 {
  font-size: 1.6rem;
  margin-bottom: 16px;
}

.service-detail-content p {
  color: var(--text-light);
  margin-bottom: 16px;
}

.service-detail-content ul {
  list-style: none;
  margin-bottom: 20px;
}

.service-detail-content ul li {
  padding: 4px 0 4px 24px;
  position: relative;
  color: var(--text-light);
  font-size: 0.92rem;
}

.service-detail-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 8px;
  height: 8px;
  background: var(--canopy);
  border-radius: 50%;
}

.service-detail:nth-child(even) { direction: rtl; }
.service-detail:nth-child(even) > * { direction: ltr; }

/* ============================================
   About Page
   ============================================ */

.about-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.about-photo {
  background: linear-gradient(135deg, var(--cream) 0%, var(--sand) 100%);
  border-radius: var(--radius-lg);
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-photo::after {
  content: 'Team photo placeholder';
  font-size: 0.85rem;
  color: var(--text-light);
  font-weight: 500;
}

.quals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.qual-badge {
  background: var(--white);
  border: 1px solid var(--sand);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
}

.qual-badge svg {
  width: 36px;
  height: 36px;
  color: var(--canopy);
  margin-bottom: 12px;
}

.qual-badge h4 {
  font-family: 'Work Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--forest);
}

/* ============================================
   Contact Page
   ============================================ */

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.contact-form {
  background: var(--white);
  border: 1px solid var(--sand);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--forest);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--sand);
  border-radius: var(--radius);
  font-family: 'Work Sans', sans-serif;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--warm-white);
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--canopy);
  box-shadow: 0 0 0 3px rgba(74,124,89,0.1);
}

.form-group textarea { resize: vertical; min-height: 120px; }

.contact-info { padding: 16px 0; }

.contact-info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px 0;
  border-bottom: 1px solid var(--sand);
}

.contact-info-item:last-child { border-bottom: none; }

.contact-info-icon {
  width: 48px;
  height: 48px;
  background: var(--cream);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info-icon svg {
  width: 22px;
  height: 22px;
  color: var(--canopy);
}

.contact-info-item h4 {
  font-family: 'Work Sans', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--forest);
  margin-bottom: 2px;
}

.contact-info-item p {
  color: var(--text-light);
  font-size: 0.92rem;
  margin-bottom: 0;
}

.contact-info-item a {
  color: var(--canopy);
  font-weight: 500;
}

.map-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 32px;
  border: 1px solid var(--sand);
  height: 300px;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 0.9rem;
}

/* ============================================
   Reviews / Testimonials
   ============================================ */

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.review-card {
  background: var(--white);
  border: 1px solid var(--sand);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.review-stars {
  color: var(--accent);
  font-size: 1.2rem;
  margin-bottom: 12px;
  letter-spacing: 2px;
}

.review-card blockquote {
  font-size: 0.95rem;
  color: var(--text);
  font-style: italic;
  margin-bottom: 16px;
  line-height: 1.6;
}

.review-author {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--forest);
}

.review-source {
  font-size: 0.8rem;
  color: var(--text-light);
}

/* ============================================
   Footer
   ============================================ */

.footer {
  background: var(--forest);
  color: rgba(255,255,255,0.8);
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand p {
  font-size: 0.9rem;
  margin-top: 16px;
  line-height: 1.6;
  color: rgba(255,255,255,0.6);
}

.footer h4 {
  color: var(--white);
  font-family: 'Work Sans', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
}

.footer-links li { margin-bottom: 10px; }

.footer-links a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  transition: color var(--transition);
}

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

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.footer-social a:hover {
  background: var(--canopy);
  transform: translateY(-2px);
}

.footer-social svg {
  width: 18px;
  height: 18px;
  fill: rgba(255,255,255,0.8);
}

.footer-bottom {
  padding: 24px 0;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 768px) {
  .nav-links,
  .nav-cta .nav-phone,
  .nav-cta .btn {
    display: none;
  }

  .nav-toggle { display: block; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 24px;
    gap: 16px;
    box-shadow: var(--shadow-lg);
  }

  .mobile-cta { display: block; }

  body { padding-bottom: 72px; }

  .hero { min-height: 70vh; }

  .hero-trust {
    flex-direction: column;
    gap: 16px;
  }

  .services-grid { grid-template-columns: 1fr; }

  .service-detail {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .service-detail:nth-child(even) { direction: ltr; }

  .about-intro { grid-template-columns: 1fr; }

  .contact-layout { grid-template-columns: 1fr; }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .reviews-grid { grid-template-columns: 1fr; }

  .section { padding: 56px 0; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .footer-grid { grid-template-columns: 1fr; }
}
