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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f8f9fa;
  overflow-x: hidden;
}


/* Main Content */
.main-content {
  min-height: calc(100vh - 80px);
  padding-top: clamp(90px, 15vw, 120px);
}

/* Hero Section */
.hero-section {
  background: linear-gradient(rgba(30, 58, 46, 0.6), rgba(45, 90, 66, 0.5)), 
              url('pictures/Commercial/400Rose/400R1.jpg');
  background-size: cover;
  background-position: center;
  min-height: clamp(60vh, 80vh, 90vh);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: clamp(1rem, 4vw, 2rem);
}

.hero-content {
  text-align: center;
  color: white;
  z-index: 10;
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
}

.hero-badge {
  background: rgba(39, 174, 96, 0.3);
  padding: clamp(0.5rem, 2vw, 0.75rem) clamp(1rem, 3vw, 1.5rem);
  border-radius: 50px;
  font-size: clamp(0.8rem, 2vw, 0.9rem);
  margin-bottom: clamp(1.5rem, 4vw, 2rem);
  display: inline-block;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(39, 174, 96, 0.5);
}

.hero-title {
  font-size: clamp(2rem, 8vw, 4rem);
  font-weight: 700;
  margin-bottom: clamp(0.5rem, 2vw, 1rem);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  line-height: 1.2;
}

.hero-subtitle {
  font-size: clamp(1rem, 3vw, 1.3rem);
  margin-bottom: clamp(2rem, 4vw, 2.5rem);
  opacity: 0.9;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  line-height: 1.4;
}

.cta-button {
  background: linear-gradient(45deg, #27ae60, #2ecc71);
  color: white;
  border: none;
  padding: clamp(0.8rem, 3vw, 1rem) clamp(2rem, 5vw, 2.5rem);
  font-size: clamp(1rem, 2.5vw, 1.1rem);
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(39, 174, 96, 0.4);
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(39, 174, 96, 0.6);
  background: linear-gradient(45deg, #229954, #27ae60);
}

/* Animated Background Elements */
.floating-lines {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.line {
  position: absolute;
  background: linear-gradient(90deg, transparent, rgba(46, 204, 113, 0.2), transparent);
  height: 2px;
  width: 200px;
  animation: float 8s infinite linear;
}

.line-1 { top: 20%; animation-delay: 0s; }
.line-2 { top: 40%; animation-delay: 2s; }
.line-3 { top: 60%; animation-delay: 4s; }
.line-4 { top: 80%; animation-delay: 6s; }
.line-5 { top: 30%; animation-delay: 1s; }
.line-6 { top: 70%; animation-delay: 3s; }

@keyframes float {
  0% { transform: translateX(-200px); }
  100% { transform: translateX(calc(100vw + 200px)); }
}

.swirl-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
}

.swirl {
  position: absolute;
  border: 2px solid rgba(46, 204, 113, 0.2);
  border-radius: 50%;
  animation: rotate 20s infinite linear;
}

.swirl-1 {
  width: min(300px, 25vw);
  height: min(300px, 25vw);
  top: 10%;
  left: 10%;
  animation-duration: 25s;
}

.swirl-2 {
  width: min(200px, 20vw);
  height: min(200px, 20vw);
  top: 60%;
  right: 15%;
  animation-duration: 30s;
  animation-direction: reverse;
}

.swirl-3 {
  width: min(150px, 15vw);
  height: min(150px, 15vw);
  bottom: 20%;
  left: 20%;
  animation-duration: 35s;
}

@keyframes rotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.random-shapes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
}

.random-shape {
  position: absolute;
  width: clamp(15px, 3vw, 20px);
  height: clamp(15px, 3vw, 20px);
  background: rgba(46, 204, 113, 0.2);
  animation: bounce 6s infinite ease-in-out;
}

.diamond {
  transform: rotate(45deg);
  top: 25%;
  left: 80%;
  animation-delay: 0s;
}

.triangle {
  width: 0;
  height: 0;
  border-left: clamp(8px, 2vw, 10px) solid transparent;
  border-right: clamp(8px, 2vw, 10px) solid transparent;
  border-bottom: clamp(16px, 4vw, 20px) solid rgba(46, 204, 113, 0.2);
  background: transparent;
  top: 70%;
  left: 85%;
  animation-delay: 2s;
}

.cross {
  background: linear-gradient(rgba(46, 204, 113, 0.2), rgba(46, 204, 113, 0.2)),
              linear-gradient(rgba(46, 204, 113, 0.2), rgba(46, 204, 113, 0.2));
  background-size: 20px 6px, 6px 20px;
  background-position: center;
  background-repeat: no-repeat;
  background-color: transparent;
  top: 15%;
  left: 75%;
  animation-delay: 4s;
}

.star {
  background: rgba(46, 204, 113, 0.2);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  top: 45%;
  left: 90%;
  animation-delay: 1s;
}

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

.gradient-waves {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100px;
  background: linear-gradient(45deg, rgba(46, 204, 113, 0.2), transparent);
  clip-path: polygon(0 50%, 100% 80%, 100% 100%, 0% 100%);
  z-index: 4;
}

/* Stats Section - FIXED FOR MOBILE */
.stats-section {
  background: linear-gradient(135deg, #1e3a2e 0%, #2d5a42 100%);
  padding: clamp(2rem, 6vw, 3rem) 1rem;
  color: white;
  overflow-x: auto;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(0.5rem, 2vw, 2rem);
  max-width: 900px;
  margin: 0 auto;
  min-width: 320px;
}

.stat-item {
  text-align: center;
  padding: clamp(0.5rem, 2vw, 1.5rem);
  min-width: 0; /* Allows flex items to shrink */
  overflow: hidden;
}

.stat-number {
  display: block;
  font-size: clamp(1.5rem, 6vw, 3.5rem);
  font-weight: 700;
  color: #2ecc71;
  margin-bottom: 0.5rem;
  line-height: 1;
  white-space: nowrap;
}

.stat-label {
  font-size: clamp(0.75rem, 2.2vw, 1.1rem);
  opacity: 0.9;
  line-height: 1.3;
  word-wrap: break-word;
  hyphens: auto;
}

/* Mobile-specific stats adjustments */
@media (max-width: 480px) {
  .stats-section {
    padding: 1.5rem 0.5rem;
  }
  
  .stats-grid {
    gap: 0.25rem;
    margin: 0;
    width: 100%;
  }
  
  .stat-item {
    padding: 0.75rem 0.25rem;
  }
  
  .stat-number {
    font-size: clamp(1.2rem, 5vw, 2rem);
  }
  
  .stat-label {
    font-size: clamp(0.65rem, 2vw, 0.85rem);
    line-height: 1.2;
  }
}

/* Services Section */
.services-section {
  padding: clamp(2rem, 6vw, 4rem) clamp(1rem, 4vw, 2rem);
  background: #f8f9fa;
  position: relative;
}

.services-container {
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.services-header {
  text-align: center;
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

.services-title {
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  color: #1e3a2e;
  margin-bottom: 1rem;
  font-weight: 700;
  text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
}

.services-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: #2d5a42;
  max-width: 600px;
  margin: 0 auto;
  text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
}

/* Services Accordion */
.services-accordion {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

.service-dropdown {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border-left: 4px solid #27ae60;
  overflow: hidden;
}

.service-dropdown:hover {
  box-shadow: 0 8px 25px rgba(39, 174, 96, 0.2);
}

.service-dropdown.active {
  box-shadow: 0 12px 30px rgba(39, 174, 96, 0.3);
}

.service-header {
  padding: clamp(1rem, 3vw, 1.5rem) clamp(1.5rem, 4vw, 2rem);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
  position: relative;
  background: linear-gradient(135deg, rgba(39, 174, 96, 0.05), rgba(46, 204, 113, 0.05));
}

.service-header:hover {
  background: linear-gradient(135deg, rgba(39, 174, 96, 0.1), rgba(46, 204, 113, 0.1));
}

.service-dropdown.active .service-header {
  background: linear-gradient(135deg, rgba(39, 174, 96, 0.15), rgba(46, 204, 113, 0.15));
  border-bottom: 1px solid rgba(39, 174, 96, 0.2);
}

.service-header-content {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1rem);
  flex: 1;
}

.service-icon {
  width: clamp(40px, 8vw, 50px);
  height: clamp(40px, 8vw, 50px);
  background: linear-gradient(135deg, #27ae60, #2ecc71);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  color: white;
  box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3);
  flex-shrink: 0;
}

.service-title-content {
  flex: 1;
  min-width: 0;
}

.service-title-content h3 {
  font-size: clamp(1.1rem, 3vw, 1.4rem);
  color: #1e3a2e;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.service-title-content p {
  color: #666;
  font-size: clamp(0.8rem, 2vw, 0.9rem);
  margin: 0;
  line-height: 1.3;
}

.dropdown-arrow {
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  color: #27ae60;
  transition: transform 0.3s ease;
  font-weight: bold;
  flex-shrink: 0;
  margin-left: 1rem;
}

.service-dropdown.active .dropdown-arrow {
  transform: rotate(180deg);
}

.service-content {
  padding: 0 clamp(1.5rem, 4vw, 2rem);
  max-height: 0;
  overflow: hidden;
  transition: all 0.4s ease;
  opacity: 0;
}

.service-dropdown.active .service-content {
  padding: 0 clamp(1.5rem, 4vw, 2rem) clamp(1.5rem, 4vw, 2rem) clamp(1.5rem, 4vw, 2rem);
  max-height: 1000px;
  overflow-y: auto;
  opacity: 1;
}

.service-details {
  background: rgba(248, 249, 250, 0.8);
  padding: clamp(1rem, 3vw, 2rem);
  border-radius: 8px;
  margin-top: 1rem;
}

.service-details h4 {
  color: #1e3a2e;
  font-size: clamp(1.1rem, 2.5vw, 1.2rem);
  margin-bottom: 1rem;
  font-weight: 600;
}

.service-details p {
  color: #444;
  line-height: 1.7;
  margin-bottom: 1rem;
  font-size: clamp(0.9rem, 2vw, 1rem);
}

.service-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: clamp(0.75rem, 2vw, 1rem);
  margin-top: 1.5rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #2d5a42;
  font-size: clamp(0.85rem, 2vw, 0.9rem);
}

.feature-item::before {
  content: "✓";
  color: #27ae60;
  font-weight: bold;
  font-size: 1.1rem;
}

.service-cta {
  margin-top: 1.5rem;
  text-align: center;
}

.service-cta-button {
  background: linear-gradient(45deg, #27ae60, #2ecc71);
  color: white;
  border: none;
  padding: clamp(0.7rem, 2vw, 0.875rem) clamp(1.5rem, 4vw, 2rem);
  border-radius: 25px;
  cursor: pointer;
  font-size: clamp(0.85rem, 2vw, 0.95rem);
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
  text-decoration: none;
  display: inline-block;
}

.service-cta-button:hover {
  background: linear-gradient(45deg, #229954, #27ae60);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(39, 174, 96, 0.5);
}

/* Content Sections */
.content-section {
  padding: clamp(2rem, 6vw, 4rem) clamp(1rem, 4vw, 2rem);
  position: relative;
  background-size: cover;
  background-position: center;
}

.mission-section {
  background: linear-gradient(rgba(30, 58, 46, 0.7), rgba(45, 90, 66, 0.7)), 
              url('pictures/Commercial/adelaidePointe/ap4.jpg');
  background-size: cover;
  background-position: center;
  color: white;
}

.content-background-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.2);
  z-index: 1;
}

.section-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.section-header {
  text-align: center;
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

.section-title {
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  color: #1e3a2e;
  margin-bottom: 1rem;
  font-weight: 700;
  text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
}

.mission-section .section-title {
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.animated-title {
  transform: scale(0.8);
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transform-origin: center;
}

.animated-title.animate-in {
  transform: scale(1.1);
  opacity: 1;
  animation: titlePop 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes titlePop {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }
  60% {
    transform: scale(1.15);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.section-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: #2d5a42;
  max-width: 600px;
  margin: 0 auto;
  text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
}

.mission-section .section-subtitle {
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* Two Column Content */
.two-column-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: clamp(1rem, 3vw, 2rem);
  margin-top: 2rem;
}

.content-card {
  outline: auto;
  outline-color: #27ae60;
  background: rgba(248, 249, 250, 0.95);
  padding: clamp(1rem, 4vw, 2rem);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
  border-left: 4px solid #27ae60;
  backdrop-filter: blur(5px);
}

.mission-section .content-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  border-left: 4px solid #2ecc71;
}

.content-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(39, 174, 96, 0.25);
  background: rgba(255, 255, 255, 0.98);
}

.mission-section .content-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
  background: rgba(255, 255, 255, 0.98);
}

.card-title {
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  color: #1e3a2e;
  margin-bottom: 1rem;
  font-weight: 600;
}

.card-description {
  color: #444;
  line-height: 1.7;
  font-size: clamp(0.9rem, 2vw, 1rem);
}

/* Footer */
.footer {
  background: #1e3a2e;
  color: white;
  padding: clamp(2rem, 5vw, 3rem) clamp(1rem, 4vw, 2rem) 1rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-title {
  text-align: center;
  font-size: clamp(1.5rem, 3vw, 1.8rem);
  margin-bottom: 2rem;
  color: #2ecc71;
  font-weight: 700;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: clamp(1rem, 3vw, 2rem);
  margin-bottom: 2rem;
  text-align: center;
}

.footer-section h4 {
  color: #2ecc71;
  margin-bottom: 1rem;
  font-size: clamp(1.1rem, 2.5vw, 1.2rem);
  font-weight: 600;
}

.footer-section p {
  margin-bottom: 0.5rem;
  opacity: 0.9;
  font-size: clamp(0.9rem, 2vw, 1rem);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid #2d5a42;
  opacity: 0.8;
  font-size: clamp(0.85rem, 2vw, 1rem);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .service-features {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  /* Hide complex animations on small screens for performance */
  .floating-lines,
  .swirl-container,
  .random-shapes {
    display: none;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), 
                url('https://images.unsplash.com/photo-1560518883-ce09059eeffa?ixlib=rb-4.0.3&auto=format&fit=crop&w=1200&q=80');
  }
  
  .service-dropdown {
    border: 2px solid #27ae60;
  }
  
  .content-card {
    border: 2px solid #27ae60;
  }
}