/* CSS Variables */
:root {
  /* Brand Colors */
  --primary: #9dc334;
  --primary-dark: #7da329;
  --secondary: #299278;
  --accent: #e48705;

  /* Neutrals */
  --dark: #041e1f;
  --dark-light: #0a2e2f;
  --gray-900: #1a1a2e;
  --gray-800: #2d3748;
  --gray-600: #4a5568;
  --gray-400: #8892b0;
  --gray-200: #e2e8f0;
  --white: #ecf4fc;
  --pure-white: #ffffff;

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

  /* Spacing */
  --section-padding: 100px;
  --container-width: 1200px;

  /* Effects */
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.15);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.2);
  --shadow-glow: 0 0 30px rgba(157, 195, 52, 0.3);

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

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

html {
  scroll-padding-top: 80px;
  /* Smooth scroll cross-browser JS */
}

body {
  font-family: var(--font-body);
  color: var(--dark);
  background-color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

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

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

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

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

/* LOADER */
#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

#loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-content {
  text-align: center;
}

.tree-icon {
  font-size: 4rem;
  animation: bounce 1s ease infinite;
}

.loader-text {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--white);
  margin: 20px 0;
  letter-spacing: 2px;
}

.loader-bar {
  width: 200px;
  height: 4px;
  background: var(--gray-800);
  border-radius: 2px;
  overflow: hidden;
}

.loader-progress {
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  animation: loading 1.5s ease forwards;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes loading {
  to { width: 100%; }
}

/* NAVIGATION */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 0;
  background: rgba(4, 30, 31, 0.95);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: var(--transition-normal);
}

#navbar.scrolled {
  background: rgba(4, 30, 31, 0.95);
  padding: 15px 0;
  box-shadow: var(--shadow-md);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
}

.logo-icon {
  font-size: 2rem;
}

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

.nav-link {
  color: var(--white);
  font-weight: 500;
  position: relative;
  padding: 5px 0;
}

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

.nav-link:hover::after {
  width: 100%;
}

.nav-cta {
  background: var(--primary);
  color: var(--dark) !important;
  padding: 10px 25px !important;
  border-radius: 30px;
  font-weight: 600;
}

.nav-cta::after {
  display: none;
}

.nav-cta:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.nav-toggle span {
  width: 25px;
  height: 2px;
  background: var(--white);
  transition: var(--transition-normal);
}

/* HERO */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  overflow: hidden;
  padding: 0;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('../pictures/hang-ten.JPG') right top/cover no-repeat;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(4, 30, 31, 0.9) 0%,
    rgba(4, 30, 31, 0.7) 40%,
    rgba(4, 30, 31, 0.3) 100%
  );
}

.hero-content {
  position: relative;
  text-align: left;
  color: var(--white);
  padding: calc(50vh - 218px) 20px 20px 60px;
  max-width: 700px;
}

.hero-badge {
  position: absolute;
  right: 60px;
  top: 50%;
  transform: translateY(calc(-50% - 160px));
  background: linear-gradient(135deg, rgba(157, 195, 52, 0.85), rgba(41, 146, 120, 0.75));
  border: 2px solid var(--primary-dark);
  color: var(--dark);
  padding: 8px 20px;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 1px;
  animation: fadeInUp 0.8s ease;
  z-index: 1;
}

.hero-title {
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 800;
  margin-bottom: 20px;
  animation: fadeInUp 0.8s ease 0.2s backwards;
}

.title-line {
  display: block;
}

.title-line.accent {
  color: var(--primary);
  text-shadow: var(--shadow-glow);
}

.hero-subtitle {
  font-size: 1.3rem;
  opacity: 0.9;
  margin-bottom: 40px;
  animation: fadeInUp 0.8s ease 0.4s backwards;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 60px;
  margin-bottom: 40px;
  animation: fadeInUp 0.8s ease 0.6s backwards;
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary);
}

.stat-label {
  font-size: 0.9rem;
  opacity: 0.8;
}

.hero-cta {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.8s backwards;
}

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: var(--white);
  opacity: 0.6;
  animation: fadeInUp 0.8s ease 1s backwards;
}

.scroll-indicator span {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.scroll-arrow {
  width: 20px;
  height: 20px;
  border-right: 2px solid var(--white);
  border-bottom: 2px solid var(--white);
  transform: rotate(45deg);
  margin: 0 auto;
  animation: scrollBounce 2s ease infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: rotate(45deg) translateY(0); }
  50% { transform: rotate(45deg) translateY(10px); }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 35px;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition-normal);
  border: none;
}

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

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}

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

.btn-secondary:hover {
  background: var(--white);
  color: var(--dark);
  transform: translateY(-3px);
}

.btn-full {
  width: 100%;
  justify-content: center;
}

/* SECTION HEADERS */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-tag {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--dark);
  margin-bottom: 15px;
}

.section-subtitle {
  color: var(--gray-600);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* SERVICES */
#services {
  background: var(--white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.service-card {
  position: relative;
  background: var(--pure-white);
  padding: 40px 30px;
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition-normal);
}

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

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

.service-card.featured {
  background: linear-gradient(135deg, var(--dark), var(--dark-light));
  color: var(--white);
}

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

.service-badge {
  position: absolute;
  top: 20px;
  right: -30px;
  background: var(--accent);
  color: var(--white);
  padding: 5px 40px;
  font-size: 0.75rem;
  font-weight: 600;
  transform: rotate(45deg);
}

.service-icon {
  font-size: 3rem;
  margin-bottom: 20px;
}

.service-card h3 {
  font-size: 1.4rem;
  margin-bottom: 15px;
}

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

.service-features {
  list-style: none;
}

.service-features li {
  padding: 8px 0;
  padding-left: 25px;
  position: relative;
  font-size: 0.9rem;
}

.service-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
}

/* MEDIA */
#media {
  background: var(--gray-900);
  color: var(--white);
}

#media .section-title {
  color: var(--white);
}

.gallery-filter {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-btn {
  background: transparent;
  border: 2px solid var(--gray-600);
  color: var(--gray-400);
  padding: 10px 25px;
  border-radius: 30px;
  font-family: var(--font-heading);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-normal);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--dark);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.gallery-item {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 1;
}

.gallery-item.large {
  grid-column: span 2;
  grid-row: span 2;
}

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

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 30px 20px;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  transform: translateY(100%);
  transition: var(--transition-normal);
}

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

.gallery-item:hover .gallery-overlay {
  transform: translateY(0);
}

.gallery-title {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.gallery-category {
  font-size: 0.85rem;
  color: var(--primary);
}

.gallery-item.hidden {
  display: none;
}

.gallery-item.video-item {
  aspect-ratio: 3 / 4;
  cursor: default;
}

.gallery-item.video-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ABOUT */
#about {
  background: var(--white);
}

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

.about-image {
  position: relative;
}

.about-image img {
  width: 100%;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
}

.about-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--primary);
  color: var(--dark);
  padding: 20px;
  border-radius: 15px;
  text-align: center;
  box-shadow: var(--shadow-md);
}

.badge-years {
  display: block;
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
}

.badge-text {
  font-size: 0.9rem;
  font-weight: 600;
}

.about-role {
  color: var(--secondary);
  font-weight: 600;
  margin-bottom: 20px;
}

.about-text {
  color: var(--gray-600);
  margin-bottom: 20px;
}

.about-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin: 30px 0;
}

.feature {
  display: flex;
  align-items: center;
  gap: 10px;
}

.feature-icon {
  width: 24px;
  height: 24px;
  background: var(--primary);
  color: var(--dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: bold;
}

/* REVIEWS */
#reviews {
  background: linear-gradient(135deg, var(--dark), var(--dark-light));
  color: var(--white);
}

#reviews .section-title {
  color: var(--white);
}

.reviews-summary {
  margin-top: 20px;
}

.rating-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.rating-stars {
  color: #ffc107;
  font-size: 1.5rem;
  letter-spacing: 2px;
}

.rating-score {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
}

.rating-text {
  opacity: 0.7;
  margin-top: 5px;
}

.reviews-carousel {
  position: relative;
  padding: 0 60px;
  margin-bottom: 40px;
  max-width: 100%;
}

.reviews-track {
  display: flex;
  gap: 40px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 20px max(0px, calc((min(var(--container-width), 100vw) - 160px - 500px) / 2));
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x pan-y;
}

.reviews-track::-webkit-scrollbar {
  display: none;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background: var(--primary);
  color: var(--dark);
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition-normal);
  z-index: 10;
}

.carousel-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev {
  left: 0;
}

.carousel-btn.next {
  right: 0;
}

.review-card {
  flex: 0 0 min(500px, 85vw);
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 30px;
  border-radius: 20px;
  scroll-snap-align: center;
  scroll-snap-stop: always;
  transition: var(--transition-normal);
}

.review-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
}

.review-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}

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

.review-author {
  font-family: var(--font-heading);
  font-weight: 600;
}

.review-source {
  font-size: 0.85rem;
  opacity: 0.6;
}

.review-stars {
  color: #ffc107;
  margin-bottom: 15px;
}

.review-text {
  font-size: 0.95rem;
  line-height: 1.7;
  opacity: 0.9;
}

.review-date {
  margin-top: 15px;
  font-size: 0.85rem;
  opacity: 0.5;
}

/* Skeleton Loading */
.review-card.skeleton {
  animation: pulse 1.5s ease infinite;
}

.skeleton-avatar {
  width: 50px;
  height: 50px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  margin-bottom: 15px;
}

.skeleton-text {
  height: 12px;
  background: rgba(255,255,255,0.1);
  border-radius: 6px;
  margin-bottom: 10px;
}

.skeleton-text.short {
  width: 60%;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.reviews-sources {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.source-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--gray-400);
  font-size: 0.9rem;
  padding: 10px 20px;
  border: 1px solid var(--gray-600);
  border-radius: 30px;
  transition: var(--transition-normal);
}

.source-link:hover {
  border-color: var(--primary);
  color: var(--white);
}

.source-icon {
  width: 20px;
  height: 20px;
  filter: grayscale(1) brightness(2);
}

/* COST CALCULATOR */
#cost-calculator {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--dark);
}

#cost-calculator .section-tag {
  background: rgba(255,255,255,0.9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

#cost-calculator .section-title {
  color: white;
}

#cost-calculator .section-subtitle {
  color: rgba(255,255,255,0.9);
}

.calculator-container {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  background: white;
  padding: 40px;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
}

.calculator-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.calc-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.calc-group label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--dark);
}

.calc-input {
  padding: 12px 15px;
  border: 2px solid var(--gray-200);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: var(--transition-normal);
  background: white;
}

.calc-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(157, 195, 52, 0.1);
}

.calculator-result {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 30px;
  padding: 20px;
  background: linear-gradient(135deg, var(--gray-900), var(--dark));
  border-radius: 15px;
  color: white;
}

.result-display {
  text-align: center;
  width: 100%;
}

.result-label {
  font-size: 0.9rem;
  opacity: 0.8;
  margin-bottom: 10px;
}

.result-amount {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 15px;
  animation: countUp 0.5s ease;
}

@keyframes countUp {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.result-note {
  font-size: 0.75rem;
  opacity: 0.7;
  line-height: 1.4;
}

/* FAQ */
#faq {
  background: var(--white);
}

.faq-grid {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  gap: 15px;
}

.faq-item {
  background: var(--pure-white);
  border: 1px solid var(--gray-200);
  border-radius: 15px;
  overflow: hidden;
  transition: var(--transition-normal);
}

.faq-item:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 20px rgba(157, 195, 52, 0.1);
}

.faq-question {
  width: 100%;
  padding: 20px 25px;
  background: none;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--dark);
  text-align: left;
  transition: var(--transition-fast);
}

.faq-question:hover {
  color: var(--secondary);
}

.faq-icon {
  font-size: 1.5rem;
  color: var(--secondary);
  transition: transform 0.3s ease;
}

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

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

.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 0 25px 20px;
}

.faq-answer p {
  color: var(--gray-600);
  line-height: 1.7;
}

#faq .section-title {
  color: var(--dark);
}

#faq .section-subtitle {
  color: var(--gray-600);
}

/* TRUST BADGES */
#trust-badges {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  padding: 60px 0;
}

.badges-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 30px;
  align-items: center;
}

.badge-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  padding: 20px;
  background: rgba(255,255,255,0.15);
  border-radius: 15px;
  border: 1px solid rgba(255,255,255,0.25);
  transition: var(--transition-normal);
}

.badge-item:hover {
  background: rgba(255,255,255,0.25);
  border-color: rgba(255,255,255,0.4);
  transform: translateY(-5px);
}

.badge-icon {
  font-size: 2rem;
}

.badge-text {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.badge-text strong {
  color: var(--dark);
  font-size: 0.9rem;
  font-weight: 700;
}

.badge-text span {
  color: rgba(4, 30, 31, 0.7);
  font-size: 0.75rem;
}

/* SERVICE AREA */
#service-area {
  background: linear-gradient(180deg, var(--white), rgba(157, 195, 52, 0.08));
}

.map-content {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  align-items: center;
}

.area-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 20px 0;
}

.area-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
}

.area-icon {
  font-size: 1.2rem;
}

.area-note {
  color: var(--gray-600);
  font-size: 0.9rem;
  font-style: italic;
  margin-top: 20px;
}

.map-container {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

#map {
  width: 100%;
  height: 450px;
  background: var(--gray-900);
}

/* CONTACT */
#contact {
  background: linear-gradient(135deg, var(--dark), var(--dark-light));
  color: var(--white);
}

#contact .section-tag {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

#contact .section-title {
  color: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}

.contact-text {
  color: var(--gray-400);
  margin-bottom: 30px;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 30px;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 15px;
  transition: var(--transition-normal);
  color: var(--white);
}

.contact-method:hover {
  transform: translateX(10px);
  border-color: var(--primary);
  background: rgba(255,255,255,0.08);
}

.method-icon {
  font-size: 2rem;
}

.method-label {
  display: block;
  font-size: 0.85rem;
  color: var(--gray-400);
}

.method-value {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--white);
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-link {
  width: 50px;
  height: 50px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-normal);
}

.social-link:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-5px);
}

.social-link img {
  width: 24px;
  height: 24px;
  filter: brightness(0) invert(1);
}

.social-link:hover img {
  filter: brightness(0);
}

/* Contact Form */
.contact-form {
  background: var(--pure-white);
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

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

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--dark);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 15px;
  border: 2px solid var(--gray-200);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: var(--transition-normal);
  background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(157, 195, 52, 0.1);
}

.form-group input.success,
.form-group select.success,
.form-group textarea.success {
  border-color: var(--primary);
  background: rgba(157, 195, 52, 0.05);
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
  border-color: #e53e3e;
  background: rgba(229, 62, 62, 0.05);
}

.field-error {
  color: #e53e3e;
  font-size: 0.85rem;
  margin-top: 5px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.field-error::before {
  content: '⚠';
  font-size: 1rem;
}

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

.form-note {
  text-align: center;
  color: var(--gray-600);
  font-size: 0.9rem;
  margin-top: 15px;
}

#contact .form-note {
  color: var(--gray-600);
}

/* Button Loading State */
.btn .btn-loader {
  display: none;
  width: 20px;
  height: 20px;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.btn.loading .btn-text {
  display: none;
}

.btn.loading .btn-loader {
  display: block;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* FOOTER */
#footer {
  background: var(--dark);
  color: var(--white);
  padding: 80px 0 30px;
}

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

.footer-logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  display: block;
  margin-bottom: 15px;
}

.footer-brand p {
  opacity: 0.7;
  margin-bottom: 20px;
}

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

.footer-social a {
  width: 40px;
  height: 40px;
  background: var(--gray-800);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-normal);
}

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

.footer-social img {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
}

.footer-social a:hover img {
  filter: brightness(0);
}

.footer-links h4,
.footer-contact h4 {
  font-size: 1rem;
  margin-bottom: 20px;
  color: var(--primary);
}

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

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

.footer-links a,
.footer-contact p {
  opacity: 0.7;
  transition: var(--transition-fast);
}

.footer-links a:hover {
  opacity: 1;
  color: var(--primary);
}

.footer-contact p {
  margin-bottom: 10px;
}

.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid var(--gray-800);
  display: flex;
  justify-content: space-between;
  opacity: 0.6;
  font-size: 0.9rem;
}

/* BACK TO TOP */
#back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--primary);
  color: var(--dark);
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: var(--transition-normal);
  box-shadow: var(--shadow-md);
  z-index: 999;
}

#back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-5px);
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .gallery-item.large {
    grid-column: span 1;
    grid-row: span 1;
  }

  .about-grid,
  .contact-grid,
  .map-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .review-card {
    flex: 0 0 min(450px, 85vw);
  }

  .reviews-track {
    padding: 20px calc((100vw - min(450px, 85vw)) / 2);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .calculator-container {
    grid-template-columns: 1fr;
  }

  .badges-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 60px;
  }

  /* Enhanced touch targets for mobile - minimum 44x44px (Apple HIG) / 48x48px (Material Design) */
  .btn {
    min-height: 48px;
    padding: 15px 30px;
  }

  .nav-link {
    min-height: 48px;
    display: flex;
    align-items: center;
    padding: 12px 0;
  }

  .nav-toggle {
    min-width: 48px;
    min-height: 48px;
    padding: 12px;
  }

  .filter-btn {
    min-height: 44px;
    padding: 12px 25px;
  }

  .social-link,
  .footer-social a {
    min-width: 48px;
    min-height: 48px;
  }

  .contact-method {
    min-height: 80px;
    padding: 20px;
  }

  #back-to-top {
    width: 56px;
    height: 56px;
    font-size: 1.8rem;
  }

  .carousel-btn {
    width: 56px;
    height: 56px;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: var(--dark);
    flex-direction: column;
    justify-content: center;
    gap: 30px;
    transition: var(--transition-normal);
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-toggle {
    display: flex;
    z-index: 1001;
  }

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

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

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

  .hero-badge {
    top: 80px;
    right: 24px;
    transform: none;
  }

  .hero-content {
    padding-top: 80px;
    padding-left: 24px;
    padding-right: 24px;
  }

  .hero-stats {
    gap: 30px;
  }

  .stat-number {
    font-size: 2rem;
  }

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

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .review-card {
    flex: 0 0 90vw;
  }

  .reviews-track {
    padding: 20px calc((100vw - 90vw) / 2);
    gap: 30px;
  }

  .reviews-carousel {
    padding: 0;
    overflow: visible;
  }

  .carousel-btn {
    display: none;
  }

  .area-list {
    grid-template-columns: 1fr;
  }

  .calculator-form {
    grid-template-columns: 1fr;
  }

  .badges-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

@media (max-width: 480px) {
  .hero-cta {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    min-height: 52px;
    justify-content: center;
    font-size: 1.05rem;
  }

  /* Increase touch target sizes even more on small phones */
  #back-to-top {
    width: 60px;
    height: 60px;
    bottom: 20px;
    right: 20px;
  }

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

  .review-card {
    flex: 0 0 92vw;
  }

  .reviews-track {
    gap: 25px;
    padding: 20px calc((100vw - 92vw) / 2);
  }

  .reviews-carousel {
    padding: 0;
  }

  .contact-form {
    padding: 25px;
  }

  .calculator-container {
    padding: 25px;
  }

  .result-amount {
    font-size: 2rem;
  }

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

  .faq-question {
    font-size: 1rem;
    padding: 15px 20px;
  }
}

/* Input & Button Reset */
input, select, textarea, button {
  appearance: none;
}

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

/* Fix clipping issues */
.gallery-item,
.service-card,
.review-card,
.about-image {
  transform: translateZ(0);
}

/* ══════════════════════════════════════════════════════════════════════════════
   LIGHTBOX
   ══════════════════════════════════════════════════════════════════════════════ */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.95);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.lightbox.active {
  opacity: 1;
  pointer-events: all;
}
.lightbox-content {
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-content img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: rgba(255,255,255,0.1);
  border: none;
  color: #fff;
  font-size: 1.4rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s;
  z-index: 1;
}
.lightbox-close:hover { background: rgba(255,255,255,0.25); }
.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.1);
  border: none;
  color: #fff;
  font-size: 2rem;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }
.lightbox-prev:hover,
.lightbox-next:hover { background: rgba(255,255,255,0.25); }
.lightbox-caption {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  text-align: center;
}

/* ══════════════════════════════════════════════════════════════════════════════
   BEFORE & AFTER
   ══════════════════════════════════════════════════════════════════════════════ */
#before-after {
  padding: var(--section-padding) 0;
}
.ba-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}
.ba-item {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: ew-resize;
  user-select: none;
}
.ba-before,
.ba-after {
  position: absolute;
  inset: 0;
}
.ba-before img,
.ba-after img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ba-after {
  clip-path: inset(0 50% 0 0);
}
.ba-handle {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 100%;
  background: #fff;
  z-index: 2;
  cursor: ew-resize;
}
.ba-handle::before {
  content: '◀ ▶';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  color: var(--dark);
  font-size: 0.7rem;
  padding: 6px 8px;
  border-radius: 20px;
  white-space: nowrap;
  font-weight: 700;
}
.ba-label-before,
.ba-label-after {
  position: absolute;
  bottom: 12px;
  padding: 4px 12px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 20px;
  z-index: 3;
}
.ba-label-before { left: 12px; }
.ba-label-after  { right: 12px; }

.ba-placeholder {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  border: 2px dashed rgba(255,255,255,0.1);
  border-radius: 15px;
  color: var(--gray-400);
}
.ba-placeholder-sub { font-size: 0.9rem; margin-top: 8px; opacity: 0.6; }

/* ══════════════════════════════════════════════════════════════════════════════
   CONTACT TABS & SCHEDULING
   ══════════════════════════════════════════════════════════════════════════════ */
.contact-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}
.contact-tab {
  padding: 10px 20px;
  border-radius: 30px;
  border: 2px solid rgba(255,255,255,0.15);
  background: transparent;
  color: var(--gray-400);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
}
.contact-tab:hover { border-color: var(--primary); color: var(--primary); }
.contact-tab.active { background: var(--primary); border-color: var(--primary); color: var(--dark); }

input[type="date"] {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  background: rgba(255,255,255,0.05);
  color: var(--white);
  font-size: 1rem;
  color-scheme: dark;
}

/* ══════════════════════════════════════════════════════════════════════════════
   BLOG PREVIEW
   ══════════════════════════════════════════════════════════════════════════════ */
#blog {
  padding: var(--section-padding) 0;
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}
.blog-card {
  background: var(--dark-light);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 15px;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
}
.blog-card:hover { transform: translateY(-4px); border-color: rgba(157,195,52,0.3); }
.blog-card-image {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: var(--gray-800);
}
.blog-card-body { padding: 20px; }
.blog-card-date { color: var(--primary); font-size: 0.8rem; font-weight: 600; margin-bottom: 8px; }
.blog-card-title { font-family: var(--font-heading); font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; line-height: 1.3; }
.blog-card-excerpt { color: var(--gray-400); font-size: 0.9rem; line-height: 1.5; }

.blog-empty { text-align: center; color: var(--gray-400); padding: 40px 0; }
