/* ============================================
   STROM & TRÁVA - Custom Styles
   Design: Warm & Organic
   ============================================ */

/* CSS Custom Properties */
:root {
  --primary: #3d6b35;
  --primary-dark: #2d5227;
  --secondary: #2a2a2a;
  --accent: #c5913a;
  --accent-light: #d4a65a;
  --dark: #1a1a1a;
  --light: #f7f5f0;
  --warm-white: #fdfcf9;
  --warm-gray: #e8e4dd;
  --text: #333333;
  --text-light: #777777;
}

/* Base */
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
}

/* Selection color */
::selection {
  background: rgba(61, 107, 53, 0.2);
  color: var(--secondary);
}

/* ============================================
   NAVBAR
   ============================================ */
#navbar {
  background: transparent;
}

#navbar.scrolled {
  background: rgba(253, 252, 249, 0.95);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

#navbar .nav-link {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  font-size: 0.9rem;
  transition: color 0.3s ease;
  position: relative;
  padding: 0.25rem 0;
}

#navbar .nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
  transition: width 0.3s ease;
}

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

#navbar .nav-link:hover {
  color: white;
}

#navbar.scrolled .nav-link {
  color: var(--secondary);
}

#navbar.scrolled .nav-link:hover {
  color: var(--primary);
}

#navbar.scrolled #nav-logo {
  color: var(--secondary) !important;
}

#navbar.scrolled #mobile-toggle {
  color: var(--secondary);
}

#nav-logo {
  color: white;
  transition: color 0.3s ease;
}

#mobile-toggle {
  color: white;
  transition: color 0.3s ease;
}

/* ============================================
   HERO
   ============================================ */
#hero_1 {
  min-height: 100vh;
  padding-bottom: 80px;
}

.hero-wave-wrap {
  line-height: 0;
  pointer-events: none;
}

.hero-wave-wrap svg {
  display: block;
  width: 100%;
  height: 80px;
}

@media (min-width: 768px) {
  .hero-wave-wrap svg {
    height: 120px;
  }
}

/* Hero Image Column */
.hero-image-col {
  display: block;
  margin-top: 2rem;
}

@media (min-width: 1024px) {
  .hero-image-col {
    margin-top: 0;
  }
}

/* Mobile: scale down the image and effects */
@media (max-width: 1023px) {
  .hero-image-wrapper {
    max-width: 360px;
    margin: 0 auto;
  }

  .hero-featured-img {
    height: 320px !important;
  }

  .hero-image-border-outer {
    top: -10px !important;
    right: -10px !important;
    border-width: 3px !important;
  }

  .hero-image-border-accent {
    bottom: -10px !important;
    left: -10px !important;
    border-width: 3px !important;
  }

  .hero-image-container::before {
    width: 50px !important;
    height: 50px !important;
    border-width: 4px !important;
  }

  .hero-image-container::after {
    width: 50px !important;
    height: 50px !important;
    border-width: 4px !important;
  }

  .hero-image-dot-pattern {
    width: 80px !important;
    height: 80px !important;
    bottom: -20px !important;
    right: -20px !important;
  }

  .hero-image-wrapper::before {
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
  }

  .hero-image-wrapper::after {
    top: -14px;
    left: -14px;
    right: -14px;
    bottom: -14px;
  }
}

/* Hero Featured Image with Border Effects */
.hero-image-wrapper {
  position: relative;
  width: 100%;
  max-width: 540px;
  margin-left: auto;
}

.hero-image-container {
  position: relative;
  z-index: 2;
  border-radius: 1.25rem;
  overflow: hidden;
  border: 5px solid var(--primary);
  box-shadow:
    0 25px 60px rgba(0, 0, 0, 0.4),
    0 0 25px rgba(61, 107, 53, 0.4),
    0 0 50px rgba(61, 107, 53, 0.2),
    inset 0 0 30px rgba(61, 107, 53, 0.1);
  transition: box-shadow 0.5s ease, border-color 0.5s ease;
}

.hero-image-wrapper:hover .hero-image-container {
  border-color: #4a8240;
  box-shadow:
    0 30px 70px rgba(0, 0, 0, 0.45),
    0 0 40px rgba(61, 107, 53, 0.55),
    0 0 80px rgba(61, 107, 53, 0.3),
    0 0 120px rgba(61, 107, 53, 0.1),
    inset 0 0 40px rgba(61, 107, 53, 0.15);
}

.hero-featured-img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.hero-image-wrapper:hover .hero-featured-img {
  transform: scale(1.03);
}

/* Outer border - offset to top-right, green */
.hero-image-border-outer {
  position: absolute;
  top: -16px;
  right: -16px;
  width: 100%;
  height: 100%;
  border: 4px solid var(--primary);
  border-radius: 1.25rem;
  z-index: 1;
  transition: all 0.5s ease;
  box-shadow:
    0 0 18px rgba(61, 107, 53, 0.25),
    inset 0 0 18px rgba(61, 107, 53, 0.05);
}

.hero-image-wrapper:hover .hero-image-border-outer {
  top: -20px;
  right: -20px;
  border-color: #4a8240;
  box-shadow:
    0 0 30px rgba(61, 107, 53, 0.4),
    inset 0 0 25px rgba(61, 107, 53, 0.08);
}

/* Accent border - offset to bottom-left */
.hero-image-border-accent {
  position: absolute;
  bottom: -16px;
  left: -16px;
  width: 70%;
  height: 70%;
  border: 4px solid var(--primary);
  border-left-color: #50c840;
  border-bottom-color: #50c840;
  border-radius: 1.25rem;
  z-index: 1;
  transition: all 0.5s ease;
  box-shadow: 0 0 18px rgba(61, 107, 53, 0.2);
}

.hero-image-wrapper:hover .hero-image-border-accent {
  bottom: -20px;
  left: -20px;
  width: 75%;
  height: 75%;
  box-shadow: 0 0 30px rgba(61, 107, 53, 0.35);
}

/* Corner green accent — top-left */
.hero-image-container::before {
  content: '';
  position: absolute;
  top: -5px;
  left: -5px;
  width: 70px;
  height: 70px;
  border-top: 6px solid var(--primary);
  border-left: 6px solid var(--primary);
  border-radius: 1.25rem 0 0 0;
  z-index: 5;
  opacity: 0.8;
  transition: all 0.5s ease;
  filter: drop-shadow(0 0 6px rgba(61, 107, 53, 0.4));
}

.hero-image-wrapper:hover .hero-image-container::before {
  width: 95px;
  height: 95px;
  opacity: 1;
  filter: drop-shadow(0 0 10px rgba(61, 107, 53, 0.6));
}

/* Corner green accent — bottom-right */
.hero-image-container::after {
  content: '';
  position: absolute;
  bottom: -5px;
  right: -5px;
  width: 70px;
  height: 70px;
  border-bottom: 6px solid var(--primary);
  border-right: 6px solid var(--primary);
  border-radius: 0 0 1.25rem 0;
  z-index: 5;
  opacity: 0.8;
  transition: all 0.5s ease;
  filter: drop-shadow(0 0 6px rgba(61, 107, 53, 0.4));
}

.hero-image-wrapper:hover .hero-image-container::after {
  width: 95px;
  height: 95px;
  opacity: 1;
  filter: drop-shadow(0 0 10px rgba(61, 107, 53, 0.6));
}

/* Dot pattern decoration - green */
.hero-image-dot-pattern {
  position: absolute;
  bottom: -32px;
  right: -32px;
  width: 120px;
  height: 120px;
  z-index: 0;
  background-image: radial-gradient(circle, var(--primary) 2px, transparent 2px);
  background-size: 14px 14px;
  opacity: 0.45;
  transition: all 0.5s ease;
}

.hero-image-wrapper:hover .hero-image-dot-pattern {
  opacity: 0.7;
  filter: drop-shadow(0 0 4px rgba(61, 107, 53, 0.3));
}

/* Animated green pulse ring behind image */
@keyframes greenPulse {
  0% {
    transform: scale(1);
    opacity: 0.15;
  }
  50% {
    transform: scale(1.04);
    opacity: 0.25;
  }
  100% {
    transform: scale(1);
    opacity: 0.15;
  }
}

.hero-image-wrapper::before {
  content: '';
  position: absolute;
  top: -6px;
  left: -6px;
  right: -6px;
  bottom: -6px;
  border: 3px solid var(--primary);
  border-radius: 1.5rem;
  z-index: 1;
  animation: greenPulse 3s ease-in-out infinite;
  pointer-events: none;
}

.hero-image-wrapper::after {
  content: '';
  position: absolute;
  top: -20px;
  left: -20px;
  right: -20px;
  bottom: -20px;
  border: 2px solid rgba(61, 107, 53, 0.12);
  border-radius: 1.75rem;
  z-index: 0;
  animation: greenPulse 3s ease-in-out infinite 0.5s;
  pointer-events: none;
}

/* Hero Stat Cards */
.hero-stat-card {
  background: rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1.25rem;
  padding: 1.75rem 2rem;
  text-align: center;
  min-width: 150px;
  overflow: hidden;
  transition: all 0.4s ease;
}

.hero-stat-card:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(61, 107, 53, 0.5);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2), 0 0 15px rgba(61, 107, 53, 0.15);
}

.hero-stat-value {
  font-family: 'Bitter', serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: white;
  line-height: 1;
}

.hero-stat-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
}

/* ============================================
   ABOUT FEATURES
   ============================================ */
.about-feature {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0;
}

.about-feature-icon {
  width: 28px;
  height: 28px;
  background: rgba(61, 107, 53, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.about-feature-icon svg {
  width: 14px;
  height: 14px;
  color: var(--primary);
}

.about-feature-text {
  font-size: 0.9rem;
  color: var(--secondary);
  font-weight: 500;
}

/* ============================================
   SERVICES - Square Cards with Large Numbers
   ============================================ */
.svc-square-card {
  background: white;
  border: 1px solid var(--warm-gray);
  border-radius: 1.25rem;
  padding: 1.5rem;
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
}

.svc-square-card:hover {
  border-color: var(--primary);
  box-shadow: 0 8px 30px rgba(61, 107, 53, 0.1);
  transform: translateY(-4px);
}

/* Large faded number — watermark style */
.svc-square-number {
  position: absolute;
  top: -0.25rem;
  right: 0.5rem;
  font-family: 'Bitter', serif;
  font-size: 5.5rem;
  font-weight: 800;
  color: rgba(61, 107, 53, 0.06);
  line-height: 1;
  pointer-events: none;
  transition: color 0.4s ease;
}

.svc-square-card:hover .svc-square-number {
  color: rgba(61, 107, 53, 0.12);
}

/* Icon */
.svc-square-icon {
  width: 44px;
  height: 44px;
  background: rgba(61, 107, 53, 0.08);
  border-radius: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: auto;
  transition: all 0.4s ease;
}

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

.svc-square-icon svg,
.svc-square-icon i {
  width: 20px;
  height: 20px;
  color: var(--primary);
  transition: color 0.4s ease;
}

.svc-square-card:hover .svc-square-icon svg,
.svc-square-card:hover .svc-square-icon i {
  color: white;
}

/* Title */
.svc-square-title {
  font-family: 'Bitter', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--secondary);
  line-height: 1.3;
  margin-top: 1rem;
  margin-bottom: 0.375rem;
}

/* Description */
.svc-square-desc {
  font-size: 0.8rem;
  color: var(--text-light);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 768px) {
  .svc-square-card {
    padding: 1.25rem;
  }

  .svc-square-number {
    font-size: 4rem;
  }

  .svc-square-title {
    font-size: 0.9rem;
  }

  .svc-square-desc {
    font-size: 0.75rem;
    -webkit-line-clamp: 2;
  }

  .svc-square-icon {
    width: 38px;
    height: 38px;
  }

  .svc-square-icon svg,
  .svc-square-icon i {
    width: 18px;
    height: 18px;
  }
}

/* ============================================
   FEATURES - Horizontal Scrolling Bar
   ============================================ */
.features-scroll-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  overflow-x: auto;
  padding: 1rem 0 2rem;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.features-scroll-wrapper::-webkit-scrollbar {
  display: none;
}

.features-scroll-wrapper::before,
.features-scroll-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 60px;
  z-index: 2;
  pointer-events: none;
}

.features-scroll-wrapper::before {
  left: 0;
  background: linear-gradient(to right, var(--warm-white), transparent);
}

.features-scroll-wrapper::after {
  right: 0;
  background: linear-gradient(to left, var(--warm-white), transparent);
}

.features-scroll-track {
  display: flex;
  gap: 1.5rem;
  padding: 0.5rem 3rem;
  width: max-content;
  cursor: grab;
  user-select: none;
}

.features-scroll-track:active {
  cursor: grabbing;
}

.feature-scroll-card {
  flex-shrink: 0;
  width: 300px;
  background: white;
  border-radius: 1.25rem;
  padding: 2rem 1.75rem;
  border: 1px solid var(--warm-gray);
  transition: all 0.4s ease;
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}

.feature-scroll-card:hover {
  border-color: var(--primary);
  box-shadow: 0 8px 32px rgba(61, 107, 53, 0.08);
  transform: translateY(-4px);
}

.feature-scroll-icon {
  width: 52px;
  height: 52px;
  background: rgba(61, 107, 53, 0.08);
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.4s ease;
}

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

.feature-scroll-icon svg,
.feature-scroll-icon i {
  width: 22px;
  height: 22px;
  color: var(--primary);
  transition: color 0.4s ease;
}

.feature-scroll-card:hover .feature-scroll-icon svg,
.feature-scroll-card:hover .feature-scroll-icon i {
  color: white;
}

.feature-scroll-content h3 {
  font-family: 'Bitter', serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 0.375rem;
}

.feature-scroll-content p {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.65;
}

/* ============================================
   GALLERY - Swiper Carousel
   ============================================ */
/* Features section wave */
.features-wave-wrap {
  line-height: 0;
  pointer-events: none;
}

.features-wave-wrap svg {
  display: block;
  width: 100%;
  height: 70px;
}

@media (min-width: 768px) {
  .features-wave-wrap svg {
    height: 100px;
  }
}

/* Features cards on green background */
.features-scroll-on-green::before,
.features-scroll-on-green::after {
  display: none;
}

.features-scroll-on-green .feature-scroll-card {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.15);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.features-scroll-on-green .feature-scroll-card:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.features-scroll-on-green .feature-scroll-content h3 {
  color: white;
}

.features-scroll-on-green .feature-scroll-content p {
  color: rgba(255, 255, 255, 0.7);
}

.features-scroll-on-green .feature-scroll-icon {
  background: rgba(255, 255, 255, 0.15);
}

.features-scroll-on-green .feature-scroll-icon svg,
.features-scroll-on-green .feature-scroll-icon i {
  color: white;
}

.features-scroll-on-green .feature-scroll-card:hover .feature-scroll-icon {
  background: rgba(255, 255, 255, 0.25);
}

.features-scroll-on-green .feature-scroll-card:hover .feature-scroll-icon svg,
.features-scroll-on-green .feature-scroll-card:hover .feature-scroll-icon i {
  color: white;
}

/* ============================================
   GALLERY - Lightbox with Thumbnails
   ============================================ */

/* Main image container */
.gallery-main-wrap {
  position: relative;
  border-radius: 1.25rem;
  overflow: hidden;
  background: var(--warm-gray);
  cursor: pointer;
}

.gallery-main-img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
  transition: opacity 0.3s ease;
}

@media (min-width: 768px) {
  .gallery-main-img {
    height: 520px;
  }
}

.gallery-main-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(26, 26, 26, 0.7) 0%, transparent 100%);
  color: white;
  font-family: 'Bitter', serif;
  font-weight: 600;
  font-size: 1.1rem;
}

/* In-section nav arrows */
.gallery-main-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border: none;
  color: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 3;
}

.gallery-main-nav:hover {
  background: var(--primary);
  color: white;
}

.gallery-main-nav--prev { left: 1rem; }
.gallery-main-nav--next { right: 1rem; }

/* Thumbnails row */
.gallery-thumbs-row {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding: 0.25rem 0;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.gallery-thumbs-row::-webkit-scrollbar {
  display: none;
}

.gallery-thumb {
  flex-shrink: 0;
  width: 100px;
  height: 72px;
  border-radius: 0.75rem;
  overflow: hidden;
  border: 3px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
  background: none;
  opacity: 0.6;
}

.gallery-thumb:hover {
  opacity: 0.9;
}

.gallery-thumb.active {
  border-color: var(--primary);
  opacity: 1;
  box-shadow: 0 0 12px rgba(61, 107, 53, 0.3);
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (min-width: 768px) {
  .gallery-thumb {
    width: 130px;
    height: 88px;
  }
}

/* ============================================
   LIGHTBOX OVERLAY
   ============================================ */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 2rem;
}

.lightbox-overlay.hidden {
  display: none;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 0.75rem;
  transition: opacity 0.2s ease;
}

.lightbox-caption {
  color: white;
  font-family: 'Bitter', serif;
  font-weight: 600;
  font-size: 1.1rem;
  margin-top: 1rem;
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.25);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.25);
}

.lightbox-nav--prev { left: 1.5rem; }
.lightbox-nav--next { right: 1.5rem; }

@media (max-width: 768px) {
  .lightbox-nav { display: none; }
  .gallery-main-nav { width: 36px; height: 36px; }
  .gallery-main-nav--prev { left: 0.5rem; }
  .gallery-main-nav--next { right: 0.5rem; }
}

/* ============================================
   CTA BANNER
   ============================================ */
#cta_1 {
  position: relative;
}

/* ============================================
   CONTACT
   ============================================ */
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-info-icon {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 0.625rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

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

.contact-info-label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 0.125rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.contact-info-value {
  font-size: 0.95rem;
  color: white;
  font-weight: 500;
}

.contact-info-value a {
  color: white;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-info-value a:hover {
  color: var(--accent);
}

/* Form Styles */
#contact-form input,
#contact-form textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid var(--warm-gray);
  border-radius: 0.75rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  color: var(--secondary);
  background: var(--warm-white);
  transition: all 0.3s ease;
  outline: none;
}

#contact-form input:focus,
#contact-form textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(61, 107, 53, 0.1);
  background: white;
}

#contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

#contact-form label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--secondary);
  margin-bottom: 0.375rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group:last-of-type {
  margin-bottom: 0;
}

/* Form validation */
#contact-form input:invalid:not(:placeholder-shown),
#contact-form textarea:invalid:not(:placeholder-shown) {
  border-color: #e74c3c;
}

/* ============================================
   FOOTER
   ============================================ */
#footer_1 a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

#footer_1 a:hover {
  color: var(--accent);
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
}

.footer-contact-item svg {
  width: 16px;
  height: 16px;
  color: var(--accent);
  flex-shrink: 0;
}

/* ============================================
   SCROLL TO TOP
   ============================================ */
#scroll-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

/* ============================================
   PREFERS REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .fade-up, .slide-right, .slide-left, .scale-in,
  .blur-in, .rotate-in, .reveal-circle, .clip-rect {
    opacity: 1 !important;
    transform: none !important;
    -webkit-filter: none !important;
    filter: none !important;
    -webkit-clip-path: none !important;
    clip-path: none !important;
  }
}

/* ============================================
   RESPONSIVE FINE-TUNING
   ============================================ */
@media (max-width: 768px) {
  #hero-stats {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .hero-stat-card {
    flex: 1 1 0%;
    min-width: 0;
    padding: 1.125rem 0.75rem;
    border-radius: 1rem;
  }

  .hero-stat-value {
    font-size: 1.75rem;
  }

  .hero-stat-label {
    font-size: 0.65rem;
    letter-spacing: 0.5px;
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    line-height: 1.3;
  }

  .feature-scroll-card {
    width: 260px;
    padding: 1.5rem 1.25rem;
  }

}

/* ============================================
   SUBTLE BACKGROUND PATTERN
   ============================================ */
.bg-light::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(61, 107, 53, 0.03) 1px, transparent 0);
  background-size: 32px 32px;
  pointer-events: none;
}