/* =========================================
   GLOBAL VARIABLES & RESET
========================================= */
:root {
  --primary: #0c7c59;
  --primary-hover: #095c44;
  --bg-light: #f5f9f6;
  --text-dark: #2c3e35;
  --text-muted: #6b7a73;
  --white: #ffffff;
  --shadow-sm: 0 4px 12px rgba(12, 124, 89, 0.08);
  --shadow-md: 0 12px 30px rgba(12, 124, 89, 0.15);
  --radius: 12px;
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --font-main: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-main);
  line-height: 1.6;
  background-color: var(--bg-light);
  color: var(--text-dark);
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

h2 {
  color: var(--primary);
  margin-bottom: 20px;
}

/* =========================================
   HEADER & NAVIGATION (Glassmorphism)
========================================= */
header.modern-header {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
  padding: 15px 0;
}

.container.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: auto;
  padding: 0 20px;
}

.logo a {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
}

.logo a span { color: var(--text-dark); }
.logo small {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

nav ul li a {
  color: var(--text-dark);
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 30px;
}

nav ul li a:hover, nav ul li a.active {
  background-color: var(--primary);
  color: var(--white);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.menu-toggle span {
  width: 28px;
  height: 3px;
  background: var(--primary);
  border-radius: 3px;
  transition: var(--transition);
}

/* =========================================
   HERO SECTION
========================================= */
.modern-hero {
  position: relative;
  padding: 80px 20px;
  min-height: 75vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #eaf5ef 0%, #ffffff 100%);
  overflow: hidden;
}

.hero-container {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: auto;
  display: flex;
  gap: 50px;
  align-items: center;
  flex-wrap: wrap;
}

.hero-text {
  flex: 1;
  min-width: 320px;
}

.hero-text h1 {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero-text p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 25px;
  max-width: 600px;
}

/* Restored alignment from V1 */
.hero-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 0 22px 0;
  align-self: flex-start;
  text-align: left;
  width: 100%;
  max-width: 720px;
}

.feature {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  font-weight: 500;
}

.feature .check {
  background: var(--primary);
  color: white;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 0.8rem;
  flex-shrink: 0;
}

@media (min-width: 900px) {
  .hero-features {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 24px;
  }
}

.hero-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.btn-primary, .btn-secondary, button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  font-size: 1rem;
}

.btn-primary, button[type="submit"] {
  background: var(--primary);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover, button[type="submit"]:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-phone {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  padding: 12px 26px;
  border-radius: 8px;
  font-weight: 600;
}

.btn-phone:hover {
  background: rgba(12, 124, 89, 0.05);
}

.hero-image {
  flex: 1;
  min-width: 320px;
  text-align: center;
}

.hero-image img {
  width: 100%;
  max-width: 550px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  display: block;
  margin: auto;
}

/* =========================================
   GENERIC SECTIONS & CARDS
========================================= */
.section-wrapper, .why-choose-us, .importance-modern, .our-services, .flow-diagram, .reviews, .faq, .service-areas {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 20px;
}

.section-header, .services-header, .works-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header h2, .services-header h2, .works-header h2 {
  font-size: 2.2rem;
  color: var(--primary);
  margin-bottom: 15px;
}

.section-header p, .services-header p, .works-header p {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 700px;
  margin: auto;
}

.grid-cards, .services-grid, .works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

.card, .service-card, .work-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid rgba(0,0,0,0.03);
  display: flex;
  flex-direction: column;
}

.card:hover, .service-card:hover, .work-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.service-card img, .card img.icon {
  width: 60px;
  height: 60px;
  margin-bottom: 20px;
}

.work-card img, .card img.thumbnail {
  width: calc(100% + 60px);
  margin: -30px -30px 20px -30px;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius) var(--radius) 0 0;
}

/* =========================================
   RESTORED: WHY CHOOSE US
========================================= */
.choose-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
}

.choose-text {
  flex: 1;
  min-width: 300px;
}

.choose-points {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
}

.choose-points li {
  background: var(--white);
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 12px;
  font-size: 0.95rem;
  color: var(--text-dark);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 10px;
}

.choose-image {
  flex: 1;
  min-width: 300px;
}

.choose-image img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

/* =========================================
   RESTORED: IMPORTANCE SECTION
========================================= */
.importance-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
}

.importance-image {
  flex: 1;
  min-width: 300px;
}

.importance-image img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.importance-text {
  flex: 1;
  min-width: 300px;
}

.importance-points {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 20px;
}

.point-card {
  background: var(--white);
  padding: 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: flex-start;
  gap: 15px;
  transition: var(--transition);
}

.point-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.point-card .icon {
  font-size: 2rem;
  line-height: 1;
}

.point-card h3 {
  margin: 0 0 5px 0;
  font-size: 1.1rem;
  color: var(--text-dark);
}

/* =========================================
   RESTORED: HOW IT WORKS (FLOW DIAGRAM)
========================================= */
.flow-diagram {
  text-align: center;
}

.flow-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin-top: 30px;
}

.flow-step {
  background: var(--white);
  color: var(--text-dark);
  border-radius: var(--radius);
  padding: 25px 15px;
  width: 180px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  flex-shrink: 0;
}

.flow-step:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.flow-step span {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary);
  color: var(--white);
  font-weight: bold;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  margin: 0 auto 15px;
}

.arrow {
  font-size: 24px;
  color: var(--primary);
}

/* =========================================
   RESTORED: REVIEWS SLIDER
========================================= */
.reviews h2 { text-align: center; }

.review-slider-wrapper {
  overflow: hidden;
  width: 100%;
  padding: 20px 0;
}

.review-slider {
  display: flex;
  gap: 20px;
  animation: scrollReviews 30s linear infinite;
  width: max-content;
}

.review {
  min-width: 280px;
  background: var(--white);
  padding: 20px;
  border-radius: var(--radius);
  text-align: center;
  color: var(--text-dark);
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

@keyframes scrollReviews {
  0% { transform: translateX(0%); }
  100% { transform: translateX(-50%); }
}

/* =========================================
   RESTORED: FAQ & SERVICE AREAS
========================================= */
.faq details {
  background: var(--white);
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 15px;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--primary);
}

.faq summary {
  font-weight: 600;
  cursor: pointer;
  color: var(--text-dark);
  margin-bottom: 5px;
  outline: none;
}

.service-areas .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  text-align: center;
}

.service-areas .grid div {
  background: var(--white);
  padding: 15px;
  border-radius: var(--radius);
  font-weight: 500;
  color: var(--text-muted);
  box-shadow: var(--shadow-sm);
}

/* =========================================
   FORMS & INPUTS
========================================= */
.form-section {
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  max-width: 800px;
  margin: 40px auto;
  text-align: center;
}

form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 20px;
}

input, textarea {
  width: 100%;
  padding: 15px;
  border: 1px solid #d1d9d4;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  background: #fafcfb;
  transition: var(--transition);
}

input:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(12, 124, 89, 0.15);
  background: var(--white);
}

/* =========================================
   FOOTER
========================================= */
footer {
  background: #1a2520;
  color: #aebdb6;
  padding: 60px 20px 30px;
  margin-top: 80px;
}

.footer-container {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 40px;
  margin-bottom: 20px;
}

.footer-container h3, .footer-container h4 {
  color: var(--white);
  margin-bottom: 20px;
}

.footer-container ul { list-style: none; }
.footer-container ul li { margin-bottom: 10px; }
.footer-container ul li a { color: #aebdb6; }
.footer-container ul li a:hover { color: var(--primary); }

.footer-bottom {
  text-align: center;
  font-size: 0.9rem;
}

/* =========================================
   EFFECTS (Rain & Popups)
========================================= */
.rain-layer { position: fixed; inset: 0; pointer-events: none; z-index: 999; }
.rain-drop {
  position: absolute;
  top: -30px;
  width: 1.5px;
  height: 25px;
  background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(200, 230, 255, 0.8));
  animation: rain-fall linear infinite;
}
@keyframes rain-fall { to { transform: translateY(120vh); } }

.popup {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--white);
  color: var(--text-dark);
  padding: 16px 24px;
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 15px;
  z-index: 9999;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: var(--transition);
  border-left: 5px solid transparent;
}
.popup.success { border-left-color: #28a745; }
.popup.error { border-left-color: #dc3545; }
.popup.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.popup button { background: none; border: none; font-size: 20px; cursor: pointer; color: #999; }

.spinner {
  border: 3px solid rgba(0,0,0,0.1);
  border-top: 3px solid var(--primary);
  border-radius: 50%;
  width: 30px;
  height: 30px;
  animation: spin 1s linear infinite;
  margin: 15px auto;
}
.hidden { display: none !important; }
@keyframes spin { 100% { transform: rotate(360deg); } }

/* =========================================
   RESPONSIVE (Mobile)
========================================= */
@media (max-width: 768px) {
  /* Navigation */
  .menu-toggle { display: flex; }
  nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--white);
    box-shadow: var(--shadow-md);
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    transition: clip-path 0.4s ease-in-out;
  }
  nav.active { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
  nav ul {
    flex-direction: column;
    padding: 20px;
  }

  /* Hero */
  .hero-buttons { flex-direction: column; width: 100%; }
  .btn-primary, .btn-phone { width: 100%; text-align: center; }
  .hero-features { align-items: center; text-align: center; }
  
  /* Restored Sections Stacking */
  .choose-container, .importance-container, .flow-container { flex-direction: column; text-align: center; }
  .choose-points li, .point-card { text-align: left; }
  .arrow { transform: rotate(90deg); margin: 10px 0; }
}