/* ============================================================
   T.E.A.M. Tree Service — Main Stylesheet
   Carle Digital Solutions
   ============================================================ */

/* ---- Google Fonts ---- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;800;900&family=Inter:wght@400;500;600&display=swap');

/* ---- CSS Custom Properties ---- */
:root {
  --green-dark:    #1E3D1A;
  --green-primary: #1E3D1A;
  --green-light:   #4E6E35;
  --amber:         #C4841A;
  --amber-dark:    #A36812;
  --dark:          #1A1A14;
  --dark-2:        #2C2A22;
  --gray:          #6B7280;
  --gray-light:    #E5E7EB;
  --off-white:     #F6F1E8;
  --white:         #FFFFFF;

  --font-heading:  'Montserrat', sans-serif;
  --font-body:     'Inter', sans-serif;

  --radius:        8px;
  --radius-lg:     16px;
  --shadow-sm:     0 1px 3px rgba(0,0,0,.10);
  --shadow-md:     0 4px 16px rgba(0,0,0,.12);
  --shadow-lg:     0 8px 32px rgba(0,0,0,.16);

  --transition:    0.25s ease;
  --container:     1200px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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

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

/* ---- Typography ---- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.2;
  color: var(--dark);
}

h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.2rem; font-weight: 700; }

p { color: var(--gray); line-height: 1.75; }

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

section { padding: 80px 0; }

/* ---- Navigation ---- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition);
}

.site-header.scrolled {
  background: var(--dark);
  box-shadow: var(--shadow-md);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo img {
  height: 48px;
  width: auto;
}

.nav-logo span {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.4rem;
  color: var(--white);
  letter-spacing: -0.5px;
}

.nav-logo .logo-accent { color: var(--amber); }

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

.nav-links a {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: color var(--transition);
}

.nav-links a:hover { color: var(--amber); }

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

.nav-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  transition: color var(--transition);
}

.nav-phone:hover { color: var(--amber); }

.nav-phone svg { width: 18px; height: 18px; }

/* ---- Hamburger ---- */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ---- Mobile Nav Drawer ---- */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--dark);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.mobile-nav.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-nav a {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color var(--transition);
}

.mobile-nav a:hover { color: var(--amber); }

.mobile-nav-close {
  position: absolute;
  top: 24px; right: 24px;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
}

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #0e2410;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/equipment/OwnerTruck.jpg');
  background-size: cover;
  background-position: center 60%;
  opacity: 0.30;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245,166,35,0.25);
  border: 1px solid var(--amber);
  color: var(--amber);
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 24px;
}

.hero h1 { color: var(--white); margin-bottom: 20px; }

.hero h1 span { color: var(--amber); }

.hero p {
  font-size: 1.125rem;
  color: rgba(255,255,255,0.95);
  margin-bottom: 36px;
  max-width: 560px;
}

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

/* ---- Trust Bar ---- */
.trust-bar {
  background: var(--green-dark);
  padding: 18px 0;
}

.trust-bar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
}

.trust-item svg { width: 20px; height: 20px; color: var(--amber); }

/* ---- Section Headers ---- */
.section-label {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--green-primary);
  margin-bottom: 12px;
}

.section-title { margin-bottom: 16px; }

.section-title span { color: var(--green-primary); }

.section-desc {
  font-size: 1.0625rem;
  color: var(--gray);
  max-width: 580px;
}

.section-header { margin-bottom: 56px; }

.section-header.centered {
  text-align: center;
}

.section-header.centered .section-desc {
  margin: 0 auto;
}

/* ---- Stats ---- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: var(--gray-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.stat-card {
  background: var(--white);
  padding: 40px 24px;
  text-align: center;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--green-primary);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--gray);
  font-weight: 500;
}

/* ---- Services Grid (Homepage) ---- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

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

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

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

.service-card h3 { margin-bottom: 12px; font-size: 1.125rem; }

.service-card p { font-size: 0.9375rem; margin-bottom: 20px; }

.service-card .link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--green-primary);
  transition: gap var(--transition);
}

.service-card .link-arrow:hover { gap: 10px; }

/* ---- Photo Gallery ---- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img { transform: scale(1.05); }

/* ---- Fleet Grid ---- */
.fleet-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.fleet-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--off-white);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.fleet-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.fleet-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.fleet-card-caption {
  padding: 20px 24px;
}

.fleet-card-caption h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--green-dark);
  margin: 0 0 6px;
}

.fleet-card-caption p {
  font-size: 0.9rem;
  color: var(--dark-2);
  margin: 0;
  line-height: 1.5;
}

/* ---- FAQ ---- */
.faq-list { max-width: 720px; margin: 0 auto; }

.faq-item {
  border-bottom: 1px solid var(--gray-light);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 24px 0;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq-question .icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--green-primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 400;
  transition: transform var(--transition);
}

.faq-item.open .faq-question .icon { transform: rotate(45deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq-answer p {
  padding-bottom: 24px;
  font-size: 0.9375rem;
}

.faq-item.open .faq-answer { max-height: 300px; }

/* ---- CTA Banner ---- */
.cta-section {
  background: var(--green-dark);
  padding: 80px 0;
}

.cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.cta-text h2 { color: var(--white); }

.cta-text h2 span { color: var(--amber); }

.cta-text p {
  color: rgba(255,255,255,0.75);
  margin-top: 12px;
  font-size: 1.0625rem;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  flex-shrink: 0;
}

/* ---- Footer ---- */
.site-footer {
  background: var(--dark-2);
  color: rgba(255,255,255,0.65);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

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

.footer-brand .footer-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--amber);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  margin-top: 20px;
}

.footer-col h4 {
  color: var(--white);
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

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

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

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

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.8125rem;
}

.footer-bottom a { color: rgba(255,255,255,0.55); transition: color var(--transition); }
.footer-bottom a:hover { color: var(--white); }

/* ---- Sticky Mobile CTA ---- */
.mobile-cta-bar {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 900;
  background: var(--green-dark);
  padding: 12px 16px;
  gap: 12px;
}

.mobile-cta-bar a {
  flex: 1;
  text-align: center;
  padding: 14px 8px;
  border-radius: var(--radius);
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.mobile-cta-bar .call-btn {
  background: var(--amber);
  color: var(--dark);
}

.mobile-cta-bar .quote-btn {
  background: transparent;
  border: 2px solid rgba(255,255,255,0.4);
  color: var(--white);
}

/* ---- Page Hero (inner pages) ---- */
.page-hero {
  padding: 140px 0 80px;
  background: #0e2410;
  position: relative;
  overflow: hidden;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.35;
}

.page-hero-content {
  position: relative;
  z-index: 1;
}

.page-hero h1 { color: var(--white); margin-bottom: 16px; }

.page-hero p {
  color: rgba(255,255,255,0.75);
  font-size: 1.125rem;
  max-width: 560px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 20px;
}

.breadcrumb a { color: rgba(255,255,255,0.5); transition: color var(--transition); }
.breadcrumb a:hover { color: var(--amber); }
.breadcrumb span { color: var(--amber); }

/* ---- About Page ---- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-image-wrap {
  position: relative;
}

.about-image-wrap img {
  border-radius: var(--radius-lg);
  width: 100%;
}

.about-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--amber);
  color: var(--dark);
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.5rem;
  text-align: center;
  padding: 20px;
  border-radius: var(--radius);
  line-height: 1.2;
  box-shadow: var(--shadow-md);
}

.about-badge span {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  opacity: 0.75;
  margin-top: 4px;
}

/* ---- Values ---- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.value-card {
  text-align: center;
  padding: 40px 28px;
  border-radius: var(--radius-lg);
  background: var(--off-white);
}

.value-icon {
  width: 64px;
  height: 64px;
  background: var(--green-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--white);
  font-size: 1.75rem;
}

/* ---- Service Detail Page ---- */
.service-detail-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 48px;
  align-items: start;
}

.service-sidebar {
  position: sticky;
  top: 100px;
}

.sidebar-cta {
  background: var(--green-dark);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  margin-bottom: 24px;
}

.sidebar-cta h3 { color: var(--white); margin-bottom: 8px; }

.sidebar-cta p { color: rgba(255,255,255,0.7); margin-bottom: 24px; }

.sidebar-nav {
  background: var(--off-white);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.sidebar-nav h4 {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
  color: var(--dark);
}

.sidebar-nav ul li { margin-bottom: 8px; }

.sidebar-nav ul a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray);
  transition: background var(--transition), color var(--transition);
}

.sidebar-nav ul a:hover,
.sidebar-nav ul a.active {
  background: var(--white);
  color: var(--green-primary);
  font-weight: 600;
}

/* ---- Contact Form ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}

.contact-info-list { margin-top: 32px; }

.contact-info-item {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
}

.contact-info-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: rgba(45,106,45,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--green-primary);
}

.contact-info-icon svg { width: 22px; height: 22px; }

.contact-info-text strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--dark);
  margin-bottom: 4px;
}

.contact-info-text a {
  color: var(--green-primary);
  font-weight: 600;
  font-size: 1rem;
  transition: color var(--transition);
}

.contact-info-text a:hover { color: var(--green-dark); }

.service-area-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.area-tag {
  background: rgba(45,106,45,0.08);
  color: var(--green-primary);
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 100px;
}

.map-embed {
  margin-top: 40px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.map-embed iframe {
  width: 100%;
  height: 300px;
  border: none;
  display: block;
}

/* ---- Thank You Page ---- */
.thank-you-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px;
  background: var(--off-white);
}

.thank-you-icon {
  width: 80px;
  height: 80px;
  background: var(--green-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 32px;
  color: var(--white);
  font-size: 2.5rem;
}

.thank-you-section h1 { margin-bottom: 16px; }
.thank-you-section p { max-width: 480px; margin: 0 auto 32px; font-size: 1.0625rem; }

/* ---- Utilities ---- */
.bg-dark    { background: var(--dark) !important; }
.bg-green   { background: var(--green-dark) !important; }
.bg-off-white { background: var(--off-white) !important; }
.text-white { color: var(--white) !important; }
.text-center { text-align: center; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }
