/* =============================================
   ENSUSTAIN Green Building Consultants
   Main Stylesheet
   ============================================= */

/* ---------- CSS Variables ---------- */
:root {
  --primary: #1B7A3D;
  --secondary: #0D5C2A;
  --accent: #F4A623;
  --bg-light: #F8FDF5;
  --dark: #1A2E1A;
  --white: #FFFFFF;
  --gray-100: #F5F5F5;
  --gray-200: #E5E5E5;
  --gray-300: #D4D4D4;
  --gray-500: #737373;
  --gray-700: #404040;
  --gray-900: #171717;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --shadow-xl: 0 12px 40px rgba(0,0,0,0.15);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --transition: 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--gray-900);
  background: var(--bg-light);
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  line-height: 1.25;
}

h1 { font-size: 3.2rem; }
h2 { font-size: 2.4rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.2rem; }

p { margin-bottom: 1rem; }

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

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

ul { list-style: none; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-transform: none;
  letter-spacing: 0.3px;
}

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

.btn-primary:hover {
  background: #e5971a;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(244,166,35,0.4);
}

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

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

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

.btn-green:hover {
  background: var(--secondary);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(27,122,61,0.3);
}

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

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

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

/* ---------- Section Utilities ---------- */
.section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  color: var(--dark);
  margin-bottom: 16px;
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
}

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

.bg-white { background: var(--white); }
.bg-light { background: var(--bg-light); }
.bg-dark {
  background: var(--dark);
  color: var(--white);
}

/* ---------- Navigation ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 0;
  transition: all 0.4s ease;
}

.navbar.scrolled {
  background: var(--white);
  padding: 12px 0;
  box-shadow: var(--shadow-md);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--white);
  transition: color var(--transition);
}

.logo i {
  color: var(--accent);
  font-size: 1.4rem;
}

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

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

.nav-links a {
  color: rgba(255,255,255,0.9);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding: 4px 0;
}

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

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.navbar.scrolled .nav-links a {
  color: var(--gray-700);
}

.navbar.scrolled .nav-links a:hover {
  color: var(--primary);
}

.nav-cta {
  margin-left: 8px;
}

.nav-cta .btn {
  padding: 10px 24px;
  font-size: 0.85rem;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
  z-index: 1001;
}

.hamburger span {
  width: 28px;
  height: 3px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}

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

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

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

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

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

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(13,92,42,0.85) 0%, rgba(26,46,26,0.9) 100%);
}

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

.hero-content h1 {
  font-size: 3.8rem;
  margin-bottom: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.hero-content p {
  font-size: 1.25rem;
  opacity: 0.9;
  margin-bottom: 36px;
  font-weight: 300;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  animation: bounce 2s infinite;
}

.scroll-indicator a {
  color: rgba(255,255,255,0.7);
  font-size: 1.5rem;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-12px); }
  60% { transform: translateX(-50%) translateY(-6px); }
}

/* ---------- Page Hero (Inner pages) ---------- */
.page-hero {
  position: relative;
  padding: 160px 0 80px;
  text-align: center;
  overflow: hidden;
}

.page-hero .hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}

.page-hero .hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(13,92,42,0.88) 0%, rgba(26,46,26,0.92) 100%);
}

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

.page-hero h1 {
  color: var(--white);
  font-size: 3rem;
  margin-bottom: 12px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: rgba(255,255,255,0.7);
  font-size: 0.95rem;
}

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

.breadcrumb a:hover {
  text-decoration: underline;
}

/* ---------- Stats Bar ---------- */
.stats-bar {
  background: var(--primary);
  padding: 40px 0;
}

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

.stat-item h3 {
  font-size: 2.5rem;
  color: var(--white);
  font-weight: 800;
}

.stat-item p {
  color: rgba(255,255,255,0.8);
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* ---------- Promise Badges ---------- */
.promise-section {
  padding: 70px 0;
  background: var(--white);
}

.promise-grid {
  display: flex;
  justify-content: center;
  gap: 80px;
  flex-wrap: wrap;
}

.promise-item {
  text-align: center;
  position: relative;
}

.promise-icon {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: rgba(27,122,61,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  position: relative;
  transition: all 0.4s ease;
}

.promise-icon::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px dashed rgba(27,122,61,0.2);
  transition: all 0.4s ease;
}

.promise-icon i {
  font-size: 2.2rem;
  color: var(--primary);
  transition: transform 0.4s ease;
}

.promise-item:hover .promise-icon {
  background: var(--primary);
  box-shadow: 0 8px 30px rgba(27,122,61,0.25);
  transform: translateY(-4px);
}

.promise-item:hover .promise-icon::after {
  border-color: transparent;
}

.promise-item:hover .promise-icon i {
  color: var(--white);
  transform: scale(1.1);
}

.promise-item h3 {
  font-size: 1.3rem;
  color: var(--dark);
  margin-bottom: 4px;
}

.promise-item p {
  color: var(--gray-500);
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 0;
}

/* ---------- Service Cards ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 30px;
  text-align: center;
  transition: all var(--transition);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--primary);
  transform: scaleX(0);
  transition: transform var(--transition);
}

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

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

.service-card .icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--white);
  font-size: 1.5rem;
}

.service-card h3 {
  margin-bottom: 12px;
  color: var(--dark);
  font-size: 1.2rem;
}

.service-card p {
  color: var(--gray-500);
  font-size: 0.9rem;
  margin-bottom: 16px;
}

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

.service-card:hover .learn-more {
  gap: 10px;
}

/* ---------- Why Choose Section ---------- */
.why-choose {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.why-choose-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.why-choose-image img {
  width: 100%;
  height: 450px;
  object-fit: cover;
}

.why-choose-content h2 {
  margin-bottom: 12px;
}

.why-choose-content > p {
  color: var(--gray-500);
  margin-bottom: 30px;
}

.why-points {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.why-point {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.why-point .check {
  width: 40px;
  height: 40px;
  min-width: 40px;
  background: rgba(27,122,61,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1rem;
}

.why-point h4 {
  margin-bottom: 4px;
  color: var(--dark);
}

.why-point p {
  color: var(--gray-500);
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* ---------- Client Logos Marquee ---------- */
.logos-section {
  padding: 60px 0;
  background: var(--white);
  overflow: hidden;
}

.logos-track {
  display: flex;
  gap: 60px;
  animation: marquee 30s linear infinite;
  width: max-content;
}

.logo-item {
  width: 150px;
  height: 70px;
  background: var(--gray-100);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-300);
  font-size: 0.8rem;
  font-weight: 500;
  flex-shrink: 0;
  filter: grayscale(1);
  opacity: 0.6;
  transition: all var(--transition);
}

.logo-item:hover {
  filter: grayscale(0);
  opacity: 1;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ---------- Testimonials ---------- */
.testimonials-wrapper {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.testimonial-slide {
  display: none;
  text-align: center;
  padding: 0 20px;
}

.testimonial-slide.active {
  display: block;
}

.testimonial-quote-icon {
  font-size: 3rem;
  color: var(--primary);
  opacity: 0.3;
  margin-bottom: 16px;
}

.testimonial-slide blockquote {
  font-size: 1.15rem;
  color: var(--gray-700);
  font-style: italic;
  line-height: 1.8;
  margin-bottom: 24px;
}

.testimonial-author h4 {
  color: var(--dark);
  margin-bottom: 2px;
}

.testimonial-author p {
  color: var(--gray-500);
  font-size: 0.9rem;
  margin-bottom: 0;
}

.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
}

.testimonial-dots .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gray-200);
  cursor: pointer;
  transition: background var(--transition);
  border: none;
}

.testimonial-dots .dot.active {
  background: var(--primary);
}

/* ---------- CTA Banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  padding: 80px 0;
  text-align: center;
  color: var(--white);
}

.cta-banner h2 {
  margin-bottom: 12px;
  font-size: 2.2rem;
}

.cta-banner p {
  opacity: 0.9;
  font-size: 1.1rem;
  margin-bottom: 30px;
}

.cta-banner .cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-banner .phone-link {
  color: var(--white);
  font-size: 1.3rem;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}

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

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

.footer-col h3 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 12px;
}

.footer-col h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

.footer-col p {
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 0.5rem;
}

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

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

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

.footer-contact-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.footer-contact-item i {
  color: var(--accent);
  margin-top: 4px;
  width: 16px;
}

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

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

.footer-social a:hover {
  background: var(--accent);
  color: var(--dark);
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  padding: 24px 0;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}

/* ---------- WhatsApp Float Button ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.8rem;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: all var(--transition);
  animation: pulse-wa 2s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(37,211,102,0.5);
}

@keyframes pulse-wa {
  0% { box-shadow: 0 0 0 0 rgba(37,211,102,0.5); }
  70% { box-shadow: 0 0 0 15px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

/* ---------- Back to Top ---------- */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 100px;
  z-index: 998;
  width: 46px;
  height: 46px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.1rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  border: none;
  box-shadow: var(--shadow-md);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--secondary);
  transform: translateY(-3px);
}

/* ---------- About Page ---------- */
.about-story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-story-content h2 {
  margin-bottom: 16px;
}

.about-story-content p {
  color: var(--gray-700);
}

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

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

.mission-vision {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 40px;
}

.mv-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px;
  border-left: 4px solid var(--primary);
}

.mv-card h3 {
  color: var(--primary);
  margin-bottom: 12px;
}

/* ---------- Founder Section ---------- */
.founder-section {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 50px;
  align-items: center;
  max-width: 900px;
  margin: 0 auto;
}

.founder-photo {
  width: 300px;
  height: 360px;
  background: var(--gray-200);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-500);
  font-size: 0.9rem;
  overflow: hidden;
}

.founder-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.founder-info h3 {
  font-size: 1.8rem;
  color: var(--dark);
  margin-bottom: 4px;
}

.founder-title {
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 8px;
}

.founder-credentials {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.credential-badge {
  background: rgba(27,122,61,0.1);
  color: var(--primary);
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* ---------- Process Steps ---------- */
.process-steps {
  display: flex;
  justify-content: space-between;
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.process-steps::before {
  content: '';
  position: absolute;
  top: 35px;
  left: 10%;
  right: 10%;
  height: 3px;
  background: var(--gray-200);
}

.process-step {
  text-align: center;
  position: relative;
  z-index: 1;
  flex: 1;
}

.process-step .step-number {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  margin: 0 auto 16px;
  box-shadow: 0 4px 15px rgba(27,122,61,0.3);
}

.process-step h4 {
  font-size: 0.95rem;
  color: var(--dark);
  margin-bottom: 6px;
}

.process-step p {
  font-size: 0.8rem;
  color: var(--gray-500);
  max-width: 140px;
  margin: 0 auto;
}

/* ---------- Branch Cards ---------- */
.branches-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.branch-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.branch-card .map-embed {
  width: 100%;
  height: 200px;
  background: var(--gray-100);
}

.branch-card .map-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.branch-card .branch-info {
  padding: 24px;
}

.branch-card .branch-info h3 {
  margin-bottom: 8px;
  font-size: 1.2rem;
}

.branch-card .branch-info p {
  color: var(--gray-500);
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* ---------- Services Detail Page ---------- */
.service-detail {
  padding: 60px 0;
  border-bottom: 1px solid var(--gray-200);
}

.service-detail:last-of-type {
  border-bottom: none;
}

.service-detail-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.service-detail:nth-child(even) .service-detail-inner {
  direction: rtl;
}

.service-detail:nth-child(even) .service-detail-inner > * {
  direction: ltr;
}

.service-detail-content .service-icon-lg {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.5rem;
  margin-bottom: 20px;
}

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

.service-detail-content .subtitle {
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 16px;
}

.service-detail-content p {
  color: var(--gray-700);
}

.service-benefits {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 20px 0;
}

.service-benefits li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--gray-700);
}

.service-benefits li i {
  color: var(--primary);
  font-size: 0.75rem;
}

.service-ratings {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 16px 0;
}

.rating-badge {
  background: rgba(27,122,61,0.08);
  color: var(--primary);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

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

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

/* ---------- FAQ Accordion ---------- */
.faq-section {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--white);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.faq-question {
  width: 100%;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: var(--dark);
  text-align: left;
}

.faq-question i {
  transition: transform var(--transition);
  color: var(--primary);
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
}

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

.faq-answer-inner {
  padding: 0 24px 20px;
  color: var(--gray-700);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ---------- Projects Gallery ---------- */
.filter-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 24px;
  border: 2px solid var(--gray-200);
  background: var(--white);
  border-radius: 50px;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--gray-700);
  transition: all var(--transition);
}

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

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

.project-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: all var(--transition);
}

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

.project-card-image {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.project-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover .project-card-image img {
  transform: scale(1.08);
}

.project-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--primary);
  color: var(--white);
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

.project-card-info {
  padding: 20px;
}

.project-card-info h3 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.project-card-info .project-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--gray-500);
  font-size: 0.85rem;
}

.project-card-info .project-rating {
  color: var(--accent);
  font-weight: 600;
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.lightbox.active {
  display: flex;
}

.lightbox-content {
  background: var(--white);
  border-radius: var(--radius-lg);
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
}

.lightbox-image {
  width: 100%;
  height: 350px;
  object-fit: cover;
}

.lightbox-info {
  padding: 30px;
}

.lightbox-info h2 {
  margin-bottom: 6px;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
  background: none;
  border: none;
  padding: 5px;
}

/* ---------- Contact Page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

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

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

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

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: var(--gray-900);
  transition: border-color var(--transition);
  background: var(--bg-light);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
}

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

.form-group .error-msg {
  color: #dc2626;
  font-size: 0.8rem;
  margin-top: 4px;
  display: none;
}

.form-group.error input,
.form-group.error select,
.form-group.error textarea {
  border-color: #dc2626;
}

.form-group.error .error-msg {
  display: block;
}

.form-success {
  display: none;
  text-align: center;
  padding: 40px;
}

.form-success i {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 16px;
}

.contact-info-side h3 {
  margin-bottom: 24px;
}

.contact-info-item {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.contact-info-item .icon-box {
  width: 50px;
  height: 50px;
  min-width: 50px;
  background: rgba(27,122,61,0.1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.1rem;
}

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

.contact-info-item p {
  color: var(--gray-500);
  font-size: 0.9rem;
  margin-bottom: 0;
}

.contact-map {
  margin-top: 30px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.contact-map iframe {
  width: 100%;
  height: 250px;
  border: 0;
}

/* ---------- Timeline (Services Process) ---------- */
.timeline {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
  padding: 20px 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--gray-200);
  transform: translateX(-50%);
}

.timeline-item {
  display: flex;
  margin-bottom: 40px;
  position: relative;
}

.timeline-item:nth-child(odd) {
  justify-content: flex-start;
  padding-right: 55%;
}

.timeline-item:nth-child(even) {
  justify-content: flex-end;
  padding-left: 55%;
}

.timeline-dot {
  position: absolute;
  left: 50%;
  top: 20px;
  width: 20px;
  height: 20px;
  background: var(--primary);
  border: 4px solid var(--bg-light);
  border-radius: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.timeline-content {
  background: var(--white);
  padding: 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.timeline-content h4 {
  color: var(--primary);
  margin-bottom: 6px;
}

.timeline-content p {
  color: var(--gray-700);
  font-size: 0.9rem;
  margin-bottom: 0;
}
