/* ============================================
   The Tree Man — The Real Deal
   Master Stylesheet
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
  /* Primary - Forest Green */
  --primary: #1B6B1F;
  --primary-dark: #145216;
  --primary-light: #2E8B32;
  --primary-bg: #E8F5E9;

  /* Secondary - Gold/Orange */
  --secondary: #D4890A;
  --secondary-dark: #B07308;
  --secondary-light: #E8A733;

  /* Neutrals */
  --white: #FFFFFF;
  --off-white: #F8F6F0;
  --light: #F0EDE6;
  --gray: #888888;
  --dark-gray: #555555;
  --dark: #1A1A1A;
  --black: #000000;

  /* Surfaces */
  --surface: #FFFFFF;
  --surface-alt: #F8F6F0;
  --overlay: rgba(0, 0, 0, 0.6);
  --overlay-green: rgba(13, 46, 12, 0.75);

  /* Typography */
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Open Sans', sans-serif;

  /* Spacing */
  --section-padding: clamp(60px, 8vw, 120px);
  --container-width: 1200px;
  --container-padding: clamp(16px, 4vw, 40px);

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.2);

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 20px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--dark);
  background-color: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--secondary);
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

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

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 3vw, 1.8rem); }
h4 { font-size: clamp(1.1rem, 2vw, 1.4rem); }

p {
  margin-bottom: 1rem;
  color: var(--dark-gray);
}

.text-center { text-align: center; }
.text-white { color: var(--white); }
.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }

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

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

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

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

.section-dark {
  background-color: var(--primary-dark);
  color: var(--white);
}

.section-dark h2,
.section-dark h3,
.section-dark h4,
.section-dark p {
  color: var(--white);
}

.section-dark p {
  opacity: 0.9;
}

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

.section-header h2 {
  margin-bottom: 16px;
}

.section-header .label {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 12px;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--gray);
}

/* --- Grid Utilities --- */
.grid {
  display: grid;
  gap: 30px;
}

.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: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

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

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  text-transform: uppercase;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--white);
}

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

.btn-secondary {
  background-color: var(--secondary);
  color: var(--white);
}

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

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

.btn-outline:hover {
  background-color: var(--white);
  color: var(--primary);
  transform: translateY(-2px);
}

.btn-outline-dark {
  background-color: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline-dark:hover {
  background-color: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 18px 40px;
  font-size: 1.05rem;
}

.btn-sm {
  padding: 10px 22px;
  font-size: 0.85rem;
}

.btn-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: all var(--transition-base);
  padding: 16px 0;
}

.nav.transparent {
  background: transparent;
}

.nav.scrolled {
  background: var(--white);
  box-shadow: var(--shadow-sm);
  padding: 8px 0;
}

.nav.scrolled .nav-logo-text {
  color: var(--dark);
}

.nav.scrolled .nav-link {
  color: var(--dark);
}

.nav.scrolled .nav-link:hover,
.nav.scrolled .nav-link.active {
  color: var(--primary);
}

.nav.scrolled .nav-phone {
  color: var(--primary);
}

.nav.scrolled .hamburger span {
  background: var(--dark);
}

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

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

.nav-logo img {
  height: 50px;
  width: auto;
  transition: height var(--transition-base);
}

.nav.scrolled .nav-logo img {
  height: 40px;
}

.nav-logo-text {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--white);
  line-height: 1.1;
  transition: color var(--transition-base);
}

.nav-logo-text span {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--secondary);
  letter-spacing: 1px;
  text-transform: uppercase;
}

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

.nav-link {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--white);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--secondary);
}

/* Dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown .nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-dropdown .nav-link::after {
  content: '';
  width: 6px;
  height: 6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform var(--transition-fast);
  margin-top: -2px;
}

.nav-dropdown:hover .nav-link::after {
  transform: rotate(-135deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition-base);
  z-index: 100;
}

.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 10px 20px;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--dark);
  transition: all var(--transition-fast);
}

.dropdown-menu a:hover {
  background: var(--primary-bg);
  color: var(--primary);
  padding-left: 24px;
}

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

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

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

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  z-index: 1001;
}

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

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Nav */
@media (max-width: 1024px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 100px 30px 30px;
    gap: 0;
    transition: right var(--transition-base);
    box-shadow: var(--shadow-xl);
    overflow-y: auto;
  }

  .nav-links.open {
    right: 0;
  }

  .nav-link {
    color: var(--dark);
    width: 100%;
    padding: 12px 0;
    font-size: 1rem;
    border-bottom: 1px solid var(--light);
  }

  .nav-link:hover,
  .nav-link.active {
    color: var(--primary);
  }

  .nav-dropdown .dropdown-menu {
    position: static;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    padding: 0 0 0 16px;
    background: transparent;
  }

  .nav-dropdown.open .dropdown-menu {
    display: block;
  }

  .dropdown-menu a {
    padding: 8px 0;
    font-size: 0.85rem;
  }

  .dropdown-menu a:hover {
    padding-left: 8px;
    background: transparent;
  }

  .nav-phone-mobile {
    display: flex;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--light);
    width: 100%;
  }

  .nav-phone-desktop {
    display: none;
  }

  .mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
  }

  .mobile-overlay.active {
    opacity: 1;
    visibility: visible;
  }
}

@media (min-width: 1025px) {
  .nav-phone-mobile {
    display: none;
  }
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-attachment: scroll;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(10, 46, 12, 0.85) 0%,
    rgba(27, 107, 31, 0.7) 50%,
    rgba(10, 46, 12, 0.8) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 var(--container-padding);
  max-width: 900px;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  margin-bottom: 20px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero h1 .highlight {
  color: var(--secondary);
}

.hero p {
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  margin-bottom: 36px;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
}

.hero .btn-group {
  justify-content: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 8px 20px;
  border-radius: 50px;
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.hero-badge svg {
  width: 16px;
  height: 16px;
  fill: var(--secondary);
}

/* Page Hero (shorter for inner pages) */
.page-hero {
  position: relative;
  padding: 160px 0 80px;
  background-size: cover;
  background-position: center;
  text-align: center;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(10, 46, 12, 0.88) 0%,
    rgba(27, 107, 31, 0.75) 100%
  );
  z-index: 1;
}

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

.page-hero h1 {
  color: var(--white);
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin-bottom: 16px;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 0.9rem;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.7);
}

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

.breadcrumb span {
  color: rgba(255, 255, 255, 0.5);
}

.breadcrumb .current {
  color: var(--secondary);
}

/* --- Cards --- */
.card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

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

.card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.card-body {
  padding: 28px;
}

.card-body h3 {
  margin-bottom: 12px;
  font-size: 1.3rem;
}

.card-body p {
  margin-bottom: 16px;
  font-size: 0.95rem;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
  transition: gap var(--transition-fast);
}

.card-link:hover {
  gap: 10px;
  color: var(--secondary);
}

.card-link svg {
  width: 16px;
  height: 16px;
}

/* Service Card */
.service-card {
  position: relative;
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  text-align: center;
  padding: 40px 28px;
  border: 1px solid transparent;
}

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

.service-card-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;
  background: var(--primary-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
}

.service-card:hover .service-card-icon {
  background: var(--primary);
}

.service-card-icon svg {
  width: 28px;
  height: 28px;
  fill: var(--primary);
  transition: fill var(--transition-base);
}

.service-card:hover .service-card-icon svg {
  fill: var(--white);
}

.service-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.service-card p {
  font-size: 0.9rem;
  margin-bottom: 16px;
}

/* Area Card */
.area-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: var(--surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  border: 1px solid transparent;
}

.area-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-bg);
  color: var(--dark);
}

.area-card-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  background: var(--primary-bg);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.area-card-icon svg {
  width: 22px;
  height: 22px;
  fill: var(--primary);
}

.area-card h4 {
  font-size: 1rem;
  margin-bottom: 2px;
}

.area-card p {
  font-size: 0.8rem;
  margin: 0;
  color: var(--gray);
}

/* --- Why Choose Us / Features --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}

.feature-item {
  text-align: center;
  padding: 30px;
}

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

.feature-icon svg {
  width: 32px;
  height: 32px;
  fill: var(--primary);
}

.feature-item h4 {
  margin-bottom: 10px;
}

.feature-item p {
  font-size: 0.95rem;
}

/* --- Stats / Counters --- */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
  padding: 40px 0;
}

.stat-item h3 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--secondary);
  margin-bottom: 4px;
}

.stat-item p {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0;
}

@media (max-width: 768px) {
  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* --- Reviews / Testimonials --- */
.review-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  position: relative;
}

.review-card:hover {
  box-shadow: var(--shadow-md);
}

.review-stars {
  display: flex;
  gap: 2px;
  margin-bottom: 16px;
}

.review-stars svg {
  width: 20px;
  height: 20px;
  fill: var(--secondary);
}

.review-text {
  font-style: italic;
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 20px;
  color: var(--dark-gray);
}

.review-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.review-author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--primary);
  font-size: 1.1rem;
}

.review-author-info strong {
  display: block;
  font-size: 0.95rem;
}

.review-author-info span {
  font-size: 0.8rem;
  color: var(--gray);
}

.review-google {
  position: absolute;
  top: 24px;
  right: 24px;
  opacity: 0.3;
}

.review-google svg {
  width: 24px;
  height: 24px;
}

/* --- Content Sections --- */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.split-section.reverse {
  direction: rtl;
}

.split-section.reverse > * {
  direction: ltr;
}

.split-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.split-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 400px;
}

.split-content h2 {
  margin-bottom: 20px;
}

.split-content .label {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 12px;
}

.split-content p {
  margin-bottom: 16px;
  font-size: 1.05rem;
}

.split-content ul {
  margin-bottom: 24px;
}

.split-content ul li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  font-size: 1rem;
  color: var(--dark-gray);
}

.split-content ul li svg {
  width: 20px;
  height: 20px;
  min-width: 20px;
  fill: var(--primary);
  margin-top: 3px;
}

@media (max-width: 768px) {
  .split-section {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .split-section.reverse {
    direction: ltr;
  }

  .split-image img {
    min-height: 280px;
  }
}

/* --- Service Detail Page --- */
.service-detail {
  padding: var(--section-padding) 0;
}

.service-detail-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 60px;
}

.service-detail-content h2 {
  margin-bottom: 20px;
}

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

.service-detail-content ul {
  margin: 20px 0 30px;
}

.service-detail-content ul li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  color: var(--dark-gray);
  border-bottom: 1px solid var(--light);
}

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

.service-detail-content ul li svg {
  width: 20px;
  height: 20px;
  min-width: 20px;
  fill: var(--primary);
  margin-top: 3px;
}

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

.sidebar-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 30px;
  margin-bottom: 24px;
}

.sidebar-card h4 {
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary-bg);
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  font-size: 0.95rem;
  color: var(--dark-gray);
  border-bottom: 1px solid var(--light);
  transition: all var(--transition-fast);
}

.sidebar-nav a:last-child {
  border-bottom: none;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
  color: var(--primary);
  padding-left: 6px;
}

.sidebar-nav a svg {
  width: 16px;
  height: 16px;
  fill: var(--primary);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.sidebar-nav a:hover svg,
.sidebar-nav a.active svg {
  opacity: 1;
}

.sidebar-cta {
  background: var(--primary);
  color: var(--white);
  text-align: center;
}

.sidebar-cta h4 {
  color: var(--white);
  border-bottom-color: rgba(255, 255, 255, 0.2);
}

.sidebar-cta p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
}

.sidebar-cta .phone-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 16px;
}

.sidebar-cta .phone-link:hover {
  color: var(--secondary-light);
}

@media (max-width: 1024px) {
  .service-detail-grid {
    grid-template-columns: 1fr;
  }

  .service-sidebar {
    position: static;
  }
}

/* --- Image Gallery --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.gallery-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
}

.gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

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

/* --- Forms --- */
.form-group {
  position: relative;
  margin-bottom: 24px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 16px 20px;
  border: 2px solid var(--light);
  border-radius: var(--radius-md);
  background: var(--white);
  font-size: 1rem;
  color: var(--dark);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-bg);
}

.form-group label {
  position: absolute;
  top: 50%;
  left: 20px;
  transform: translateY(-50%);
  font-size: 1rem;
  color: var(--gray);
  pointer-events: none;
  transition: all var(--transition-fast);
  background: var(--white);
  padding: 0 4px;
}

.form-group textarea ~ label {
  top: 20px;
  transform: none;
}

.form-group input:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:not(:placeholder-shown) ~ label,
.form-group select:focus ~ label,
.form-group select:valid ~ label {
  top: 0;
  transform: translateY(-50%);
  font-size: 0.8rem;
  color: var(--primary);
  font-weight: 600;
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 640px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.contact-form-wrapper {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 40px;
}

.contact-form-wrapper h3 {
  margin-bottom: 8px;
}

.contact-form-wrapper > p {
  margin-bottom: 30px;
  color: var(--gray);
}

/* --- Contact Info --- */
.contact-info-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 0;
}

.contact-info-icon {
  width: 50px;
  height: 50px;
  min-width: 50px;
  background: var(--primary-bg);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-info-icon svg {
  width: 24px;
  height: 24px;
  fill: var(--primary);
}

.contact-info-text h4 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.contact-info-text p {
  font-size: 0.95rem;
  margin: 0;
}

.contact-info-text a {
  color: var(--primary);
  font-weight: 600;
}

/* --- Map --- */
.map-wrapper {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  height: 400px;
}

.map-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* --- Footer --- */
.footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.8);
  padding: 80px 0 0;
}

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

.footer-brand .nav-logo-text {
  font-size: 1.4rem;
  margin-bottom: 16px;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

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

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

.footer-social a:hover {
  background: var(--primary);
}

.footer-social a svg {
  width: 18px;
  height: 18px;
  fill: var(--white);
}

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

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

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

.footer-col ul li a:hover {
  color: var(--secondary);
  padding-left: 4px;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

.footer-contact li svg {
  width: 18px;
  height: 18px;
  min-width: 18px;
  fill: var(--secondary);
  margin-top: 3px;
}

.footer-contact li a {
  color: rgba(255, 255, 255, 0.6);
}

.footer-contact li a:hover {
  color: var(--secondary);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 24px 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom a:hover {
  color: var(--secondary);
}

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* --- CTA Section --- */
.cta-section {
  position: relative;
  padding: 80px 0;
  background-size: cover;
  background-position: center;
  text-align: center;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--overlay-green);
  z-index: 1;
}

.cta-section .container {
  position: relative;
  z-index: 2;
}

.cta-section h2 {
  color: var(--white);
  margin-bottom: 16px;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 32px;
}

.cta-section .btn-group {
  justify-content: center;
}

/* --- Scroll Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.scale-in {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.scale-in.visible {
  opacity: 1;
  transform: scale(1);
}

/* Stagger children */
.stagger-children > *:nth-child(1) { transition-delay: 0s; }
.stagger-children > *:nth-child(2) { transition-delay: 0.1s; }
.stagger-children > *:nth-child(3) { transition-delay: 0.2s; }
.stagger-children > *:nth-child(4) { transition-delay: 0.3s; }
.stagger-children > *:nth-child(5) { transition-delay: 0.4s; }
.stagger-children > *:nth-child(6) { transition-delay: 0.5s; }
.stagger-children > *:nth-child(7) { transition-delay: 0.6s; }
.stagger-children > *:nth-child(8) { transition-delay: 0.7s; }
.stagger-children > *:nth-child(9) { transition-delay: 0.8s; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .fade-in,
  .fade-in-left,
  .fade-in-right,
  .scale-in {
    opacity: 1;
    transform: none;
    transition: none;
  }

  html {
    scroll-behavior: auto;
  }

  .card:hover,
  .service-card:hover,
  .area-card:hover,
  .review-card:hover {
    transform: none;
  }
}

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

.thank-you-content svg {
  width: 80px;
  height: 80px;
  fill: var(--primary);
  margin-bottom: 24px;
}

.thank-you-content h1 {
  margin-bottom: 16px;
}

.thank-you-content p {
  font-size: 1.1rem;
  max-width: 500px;
  margin: 0 auto 32px;
}

/* --- Utility --- */
.mb-0 { margin-bottom: 0; }
.mt-20 { margin-top: 20px; }
.mt-40 { margin-top: 40px; }
.pt-0 { padding-top: 0; }
.hidden { display: none; }

/* Service detail image */
.service-detail-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 30px 0;
  box-shadow: var(--shadow-md);
}

.service-detail-img img {
  width: 100%;
  height: 350px;
  object-fit: cover;
}

/* License badge */
.license-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-bg);
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  margin-top: 16px;
}

.license-badge svg {
  width: 18px;
  height: 18px;
  fill: var(--primary);
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--primary-bg);
}

.timeline-item {
  position: relative;
  padding-bottom: 40px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -33px;
  top: 4px;
  width: 14px;
  height: 14px;
  background: var(--primary);
  border-radius: 50%;
  border: 3px solid var(--primary-bg);
}

.timeline-item h4 {
  color: var(--secondary);
  font-size: 0.9rem;
  margin-bottom: 6px;
  letter-spacing: 1px;
}

.timeline-item h3 {
  margin-bottom: 8px;
}

.timeline-item p {
  font-size: 0.95rem;
}

/* Service areas list inside service pages */
.service-areas-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.service-areas-list a {
  display: inline-block;
  padding: 6px 16px;
  background: var(--primary-bg);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  transition: all var(--transition-fast);
}

.service-areas-list a:hover {
  background: var(--primary);
  color: var(--white);
}

/* Credentials grid */
.credentials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.credential-item {
  text-align: center;
  padding: 24px;
  background: var(--surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.credential-item svg {
  width: 40px;
  height: 40px;
  fill: var(--primary);
  margin-bottom: 12px;
}

.credential-item h4 {
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.credential-item p {
  font-size: 0.8rem;
  margin: 0;
  color: var(--gray);
}

/* Client types */
.client-types {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.client-type-badge {
  padding: 8px 20px;
  background: var(--surface);
  border: 1px solid var(--light);
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--dark-gray);
}

/* Service area page specifics */
.area-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.area-service-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: var(--surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.area-service-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  color: var(--dark);
}

.area-service-item svg {
  width: 20px;
  height: 20px;
  min-width: 20px;
  fill: var(--primary);
}

.area-service-item span {
  font-weight: 600;
  font-size: 0.95rem;
}
