/* ============================================================
   SWASTI ENGINEERING SOLUTIONS — style.css
   Version 2.0 | Refactored, Optimised, Production-Ready
   ============================================================ */

/* ─── 1. CSS CUSTOM PROPERTIES ─────────────────────────── */
:root {
  --primary:        #D4A017;
  --primary-dark:   #b88c12;
  --primary-light:  #f5e6b8;
  --primary-glow:   rgba(212, 160, 23, 0.35);

  --text-dark:      #1C1C1C;
  --text-mid:       #444444;
  --text-soft:      #6b6b6b;
  --text-white:     #ffffff;

  --bg-white:       #ffffff;
  --bg-light:       #f8f7f4;
  --bg-alt:         #f2f1ee;
  --bg-dark:        #1a1a1a;

  --gradient-gold:  linear-gradient(135deg, #C88F2D 0%, #E8B14B 60%, #D4A017 100%);
  --gradient-dark:  linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);

  --card-shadow:    0 8px 32px rgba(0,0,0,0.07);
  --card-hover-shadow: 0 20px 56px rgba(0,0,0,0.13);
  --btn-shadow:     0 8px 25px rgba(212,160,23,0.40);
  --btn-hover-shadow: 0 14px 40px rgba(212,160,23,0.55);

  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-xl:  32px;

  --navbar-h:   72px;
  --transition: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* ─── 2. RESET & BASE ──────────────────────────────────── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

html, body {
  overflow-x: hidden;
}

body {
  font-family: 'Poppins', sans-serif;
  background: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.7;
  padding-top: var(--navbar-h);
}

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

a {
  text-decoration: none;
  color: inherit;
}

ul { list-style: none; }

/* ─── 3. TYPOGRAPHY ─────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  line-height: 1.2;
  color: var(--text-dark);
}

h1 { font-size: clamp(36px, 6vw, 72px); font-weight: 800; letter-spacing: -1.5px; }
h2 { font-size: clamp(28px, 4vw, 48px); font-weight: 700; letter-spacing: -0.5px; }
h3 { font-size: clamp(18px, 2.5vw, 24px); font-weight: 600; }
h4 { font-size: 18px; font-weight: 600; }

p {
  color: var(--text-soft);
  font-size: 16px;
  line-height: 1.8;
}

/* ─── 4. UTILITY CLASSES ────────────────────────────────── */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-tag {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 16px;
}

.center { text-align: center; }

/* ─── 5. TRANSITIONS (single rule) ─────────────────────── */
a,
button,
.service-card,
.project-card,
.feature-card,
.process-card,
.value-card,
.btn-primary,
.btn-secondary,
.nav-links a,
.filter-btn {
  transition: all var(--transition);
}

/* ─── SLIDE IN ANIMATIONS ──────────────────────────────── */
.slide-left,
.slide-right {
  opacity: 0;
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-left  { transform: translateX(-60px); }
.slide-right { transform: translateX(60px);  }

.slide-left.visible,
.slide-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Stagger — image appears slightly after text */
.slide-right { transition-delay: 0.15s; }

/* ─── 6. BUTTONS ────────────────────────────────────────── */
.btn-primary {
  display: inline-block;
  background: var(--primary);
  color: var(--text-white);
  padding: 14px 30px;
  border-radius: var(--radius-md);
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.3px;
  box-shadow: var(--btn-shadow);
  border: none;
  cursor: pointer;
}

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

.btn-secondary {
  display: inline-block;
  border: 2px solid var(--primary);
  color: var(--primary);
  padding: 12px 28px;
  border-radius: var(--radius-md);
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 15px;
}

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

/* ─── 7. NAVBAR ─────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--navbar-h);
  padding: 0 6%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-white);
  border-bottom: 1px solid rgba(0,0,0,0.07);
  box-shadow: 0 2px 16px rgba(0,0,0,0.04);
  z-index: 1000;
  transition: box-shadow var(--transition);
}

.navbar.scrolled {
  box-shadow: 0 8px 40px rgba(0,0,0,0.09);
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.logo img {
  height: 46px;
  width: auto;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-main {
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--text-dark);
}

.logo-sub {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: var(--primary);
  text-transform: uppercase;
}

/* Nav links */
.nav-links {
  display: flex;
  gap: 4px;
}

.nav-links li { margin: 0; }

.nav-links a {
  display: block;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-mid);
  border-radius: var(--radius-sm);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
  background: var(--primary-light);
}

/* Hamburger */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  padding: 4px;
  border: none;
  background: none;
}

.menu-toggle span {
  width: 24px;
  height: 2.5px;
  background: var(--text-dark);
  border-radius: 3px;
  transition: var(--transition);
}

.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* ─── 8. HERO ────────────────────────────────────────────── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 580px;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  transform: scale(1);
}

.hero-slide.active {
  opacity: 1;
  animation: kenBurns 8s ease-in-out forwards;
}

@keyframes kenBurns {
  from { transform: scale(1.10); }
  to   { transform: scale(1); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0,0,0,0.70) 0%,
    rgba(0,0,0,0.45) 45%,
    rgba(0,0,0,0.15) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  padding: 0 8%;
  max-width: 760px;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(212,160,23,0.15);
  border: 1px solid rgba(212,160,23,0.4);
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 20px;
  width: fit-content;
}

.hero h1 {
  font-size: clamp(36px, 6vw, 80px);
  font-weight: 800;
  color: var(--text-white);
  line-height: 1.05;
  letter-spacing: -2px;
  margin-bottom: 20px;
}

.hero h1 em {
  font-style: normal;
  color: var(--primary);
}

.hero p {
  font-size: clamp(15px, 2vw, 20px);
  color: rgba(255,255,255,0.85);
  margin-bottom: 36px;
  max-width: 520px;
  font-weight: 400;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ─── TICKER STRIP ─────────────────────────────────────── */
.ticker-wrap {
  background: var(--gradient-gold);
  overflow: hidden;
  padding: 14px 0;
  border-top: 1px solid rgba(0,0,0,0.08);
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.ticker-track {
  display: flex;
  align-items: center;
  gap: 32px;
  white-space: nowrap;
  animation: tickerScroll 30s linear infinite;
  width: max-content;
}

.ticker-wrap:hover .ticker-track {
  animation-play-state: paused;
}

.ticker-track span {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-dark);
  flex-shrink: 0;
}

.ticker-dot {
  color: rgba(28,28,28,0.4) !important;
  font-size: 8px !important;
  letter-spacing: 0 !important;
}

@keyframes tickerScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ─── 9. WHY CHOOSE SECTION ─────────────────────────────── */
.why-section {
  padding: 100px 12%;
  text-align: center;
  background: var(--bg-white);
}

.why-section h2 { margin-bottom: 20px; }

.why-section p {
  max-width: 820px;
  margin: 0 auto 20px;
  font-size: 17px;
  line-height: 1.9;
}

/* ─── 10. FEATURES GRID ─────────────────────────────────── */
.features {
  padding: 70px 6% 90px;
  background: var(--bg-alt);
}

.features-header {
  text-align: center;
  margin-bottom: 48px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-card {
  background: var(--bg-white);
  padding: 36px 28px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0,0,0,0.05);
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--card-hover-shadow);
}

.feature-icon {
  font-size: 26px;
  color: var(--primary);
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 14px;
  margin-top: auto;
  line-height: 1.65;
}

/* ─── 11. STATS BAR ─────────────────────────────────────── */
.stats-bar {
  background: var(--gradient-gold);
  padding: 50px 6%;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.stat-item h3 {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  color: var(--text-white);
  letter-spacing: -1px;
}

.stat-item p {
  font-size: 14px;
  color: rgba(255,255,255,0.85);
  font-weight: 500;
  margin-top: 4px;
}

/* ─── 12. CTA SECTION ───────────────────────────────────── */
.cta-section {
  background: var(--gradient-dark);
  padding: 100px 10%;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(212,160,23,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.cta-section h2 {
  font-size: clamp(28px, 4vw, 50px);
  font-weight: 800;
  color: var(--text-white);
  margin-bottom: 16px;
  position: relative;
}

.cta-section p {
  font-size: 18px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 36px;
  position: relative;
}

/* ─── 13. FOOTER ─────────────────────────────────────────── */
footer {
  background: var(--gradient-gold);
  padding: 64px 8% 24px;
  color: var(--text-white);
}

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

.footer-grid h3 {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-dark);
  margin-bottom: 18px;
}

.footer-grid > div:first-child h3 {
  font-size: 18px;
  letter-spacing: 0;
  text-transform: none;
  margin-bottom: 12px;
}

.footer-grid > div:first-child p {
  color: rgba(28,28,28,0.75);
  max-width: 280px;
  font-size: 14px;
}

.footer-links li + li { margin-top: 8px; }

.footer-links a,
.footer-grid p {
  font-size: 14px;
  color: rgba(28,28,28,0.80);
  line-height: 2;
}

.footer-links a:hover { color: var(--text-dark); text-decoration: underline; }

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

.footer-contact-item i {
  color: var(--text-dark);
  margin-top: 3px;
  flex-shrink: 0;
}

.footer-bottom {
  border-top: 1px solid rgba(0,0,0,0.12);
  padding-top: 24px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  font-size: 13px;
  color: rgba(28,28,28,0.70);
}

.social-icons { display: flex; gap: 12px; }

.social-icons a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(0,0,0,0.12);
  color: var(--text-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  transition: var(--transition);
}

.social-icons a:hover {
  background: var(--text-dark);
  color: var(--primary);
  transform: translateY(-3px);
}

/* ─── 14. PAGE HEROES (shared) ──────────────────────────── */
.page-hero,
.about-hero,
.services-hero,
.projects-hero,
.pricing-hero,
.contact-hero {
  position: relative;
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.page-hero::before,
.about-hero::before,
.services-hero::before,
.projects-hero::before,
.pricing-hero::before,
.contact-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-gold);
}

/* decorative blobs */
.page-hero::after,
.about-hero::after,
.services-hero::after,
.projects-hero::after,
.pricing-hero::after,
.contact-hero::after {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  top: -200px;
  right: -100px;
  pointer-events: none;
}

.page-hero-content,
.about-hero-overlay,
.services-hero-content,
.projects-hero-content,
.pricing-hero-overlay {
  position: relative;
  z-index: 1;
  max-width: 700px;
  padding: 0 24px;
}

.page-hero-content h1,
.about-hero-overlay h1,
.services-hero-content h1,
.projects-hero-content h1,
.pricing-hero-overlay h1 {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  color: var(--text-white);
  margin-bottom: 12px;
}

.page-hero-content p,
.about-hero-overlay p,
.services-hero-content p,
.projects-hero-content p,
.pricing-hero-overlay p {
  font-size: 18px;
  color: rgba(255,255,255,0.9);
}

/* ─── 15. ABOUT PAGE ────────────────────────────────────── */
.about-overview,
.about-expertise,
.about-team {
  padding: 90px 0;
}

.about-overview { background: var(--bg-white); }
.about-expertise { background: var(--bg-light); }
.about-team { background: var(--bg-white); }

.two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.text-column p {
  margin-bottom: 18px;
  line-height: 1.85;
  font-size: 16px;
}

.text-column h2 { margin-bottom: 24px; }

.about-image {
  width: 100%;
  height: 380px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--card-hover-shadow);
}

/* Expertise list */
.about-expertise ul {
  padding-left: 0;
  margin: 20px 0;
}

.about-expertise li {
  padding: 8px 0 8px 28px;
  position: relative;
  font-size: 15px;
  color: var(--text-mid);
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.about-expertise li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

/* Values grid */
.about-values {
  padding: 90px 0;
  background: var(--bg-alt);
}

.about-values h2 {
  text-align: center;
  margin-bottom: 56px;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  text-align: center;
}

.value-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.value-card p {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-mid);
  line-height: 1.5;
}

.icon-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--gradient-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--text-dark);
  box-shadow: 0 10px 28px rgba(212,160,23,0.35);
  flex-shrink: 0;
  transition: var(--transition);
}

.value-card:hover .icon-circle {
  transform: translateY(-6px) scale(1.05);
  box-shadow: 0 18px 40px rgba(212,160,23,0.50);
}

/* ─── 16. SERVICES PAGE ─────────────────────────────────── */
.services-section {
  padding: 90px 6%;
  background: var(--bg-white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 1200px;
  margin: 0 auto;
}

.service-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  border: 1px solid rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
}

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

.service-card > img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.service-card-content {
  padding: 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-icon {
  font-size: 28px;
  color: var(--primary);
  margin-bottom: 14px;
}

.service-card h3 { margin-bottom: 10px; font-size: 19px; }
.service-card > .service-card-content > p { font-size: 14px; margin-bottom: 20px; }

/* Learn more accordion */
.learn-toggle { margin-top: auto; }

.learn-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  padding: 10px 0;
  border-top: 1px solid rgba(0,0,0,0.07);
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  user-select: none;
}

.learn-header .arrow {
  font-size: 18px;
  transition: transform var(--transition);
  display: inline-block;
}

.learn-toggle.active .learn-header .arrow {
  transform: rotate(180deg);
}

.learn-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}

.learn-toggle.active .learn-content {
  max-height: 200px;
  padding-top: 12px;
}

.learn-content p { font-size: 14px; }

/* Expertise bar on services page */
.expertise-section {
  background: var(--bg-alt);
  padding: 80px 6%;
}

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.expertise-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.expertise-item h4 { font-size: 15px; line-height: 1.4; }

/* Project CTA */
.project-cta {
  background: var(--gradient-gold);
  padding: 90px 10%;
  text-align: center;
}

.project-cta h2 { color: var(--text-dark); margin-bottom: 16px; }
.project-cta p  { color: rgba(28,28,28,0.75); margin-bottom: 32px; font-size: 17px; }

/* ─── 17. PROJECTS PAGE ─────────────────────────────────── */
.projects-filter-section {
  padding: 40px 6% 20px;
  background: var(--bg-white);
}

.filter-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 24px;
  border-radius: 100px;
  border: 2px solid rgba(0,0,0,0.10);
  background: transparent;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-mid);
}

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

.projects-grid-section {
  padding: 48px 6% 90px;
  background: var(--bg-white);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 1200px;
  margin: 0 auto;
}

.project-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  border: 1px solid rgba(0,0,0,0.05);
  display: block;
}

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

.project-card.hidden { display: none; }

.project-image-wrapper {
  position: relative;
  overflow: hidden;
}

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

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

.project-arrow {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  opacity: 0;
  transform: scale(0.8);
  transition: var(--transition);
}

.project-card:hover .project-arrow {
  opacity: 1;
  transform: scale(1);
}

.project-card-content {
  padding: 22px 24px 26px;
}

.project-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 10px;
}

.project-tag.residential { background: #e8f5e9; color: #2e7d32; }
.project-tag.government   { background: #e3f2fd; color: #1565c0; }
.project-tag.commercial   { background: #fff3e0; color: #e65100; }

.project-card h3 { font-size: 18px; margin-bottom: 8px; }
.project-card p  { font-size: 14px; }

/* ─── 18. SINGLE PROJECT PAGES ──────────────────────────── */
.sp-hero {
  position: relative;
  height: 500px;
  overflow: hidden;
}

.sp-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sp-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.2) 60%, transparent 100%);
}

.sp-hero-content {
  position: absolute;
  bottom: 40px;
  left: 6%;
  z-index: 1;
}

.sp-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 100px;
  background: var(--primary);
  color: var(--text-white);
  margin-bottom: 10px;
}

.sp-hero-content h1 {
  font-size: clamp(28px, 4vw, 52px);
  color: var(--text-white);
  font-weight: 800;
}

.sp-section { padding: 80px 0; }
.sp-light-bg { background: var(--bg-light); }

.sp-overview-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.sp-card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  padding: 22px 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  box-shadow: var(--card-shadow);
  border: 1px solid rgba(0,0,0,0.05);
}

.sp-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--primary-light);
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.sp-card h4 { font-size: 13px; color: var(--text-soft); font-weight: 500; margin-bottom: 4px; }
.sp-card p  { font-size: 14px; font-weight: 600; color: var(--text-dark); }

/* Gallery */
.sp-gallery-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
}

.sp-gallery-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 8px 4px;
  flex: 1;
}

.sp-gallery-track::-webkit-scrollbar { display: none; }

.sp-gallery-track img {
  min-width: 300px;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius-md);
  scroll-snap-align: start;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
}

.sp-gallery-track img:hover {
  transform: scale(1.02);
  box-shadow: var(--card-hover-shadow);
}

.sp-arrow {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid rgba(0,0,0,0.12);
  background: var(--bg-white);
  font-size: 18px;
  cursor: pointer;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  box-shadow: var(--card-shadow);
}

.sp-arrow:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--text-white);
  transform: scale(1.08);
}

/* Lightbox */
.image-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

.image-lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius-md);
}

.close-lightbox {
  position: absolute;
  top: 20px;
  right: 24px;
  font-size: 36px;
  color: white;
  cursor: pointer;
  line-height: 1;
  opacity: 0.8;
  transition: var(--transition);
}
.close-lightbox:hover { opacity: 1; transform: scale(1.1); }

/* Project details highlight */
.sp-highlight-box {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--card-shadow);
}

.sp-highlight-box h2 { margin-bottom: 20px; }
.sp-highlight-box p  { font-size: 16px; line-height: 1.9; }

/* Project nav */
.sp-project-nav {
  padding: 50px 0;
  background: var(--bg-white);
  border-top: 1px solid rgba(0,0,0,0.06);
}

.sp-nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.sp-modern-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--text-dark);
  padding: 14px 24px;
  border-radius: var(--radius-md);
  border: 2px solid rgba(0,0,0,0.10);
  transition: var(--transition);
}

.sp-modern-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--text-white);
  transform: translateX(0) scale(1.02);
}

.prev-btn:hover { transform: translateX(-4px); }
.next-btn:hover { transform: translateX(4px); }

/* SP CTA */
.sp-cta-section {
  background: var(--gradient-dark);
  padding: 90px 10%;
  text-align: center;
}

.sp-cta-section h2 { color: var(--text-white); margin-bottom: 14px; }
.sp-cta-section p  { color: rgba(255,255,255,0.70); margin-bottom: 32px; font-size: 17px; }

/* ─── 19. PRICING PAGE ──────────────────────────────────── */
.pricing-package {
  padding: 80px 0;
  background: var(--bg-white);
}

.pricing-highlight-box {
  background: var(--gradient-gold);
  border-radius: var(--radius-xl);
  padding: 64px 8%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(212,160,23,0.30);
}

.pricing-highlight-box h2 {
  color: var(--text-dark);
  font-size: clamp(26px, 3.5vw, 40px);
  margin-bottom: 24px;
}

.pricing-features {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.pricing-features span {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dark);
}

.pricing-note {
  margin-top: 16px;
  font-size: 14px;
  color: rgba(28,28,28,0.65);
}

.pricing-process {
  padding: 80px 0;
  background: var(--bg-alt);
}

.section-title {
  text-align: center;
  margin-bottom: 12px;
}

.section-subtitle {
  text-align: center;
  margin-bottom: 48px;
  font-size: 17px;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 960px;
  margin: 0 auto;
}

.process-card {
  background: var(--bg-white);
  padding: 36px 28px;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--card-shadow);
  border: 1px solid rgba(0,0,0,0.05);
}

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

.process-card h3 { margin: 16px 0 10px; font-size: 18px; }
.process-card p  { font-size: 14px; }

.pricing-cta {
  padding: 90px 0;
  background: var(--bg-white);
  text-align: center;
}

.pricing-cta h2 { margin-bottom: 16px; }
.pricing-cta p  { margin-bottom: 32px; font-size: 17px; }

/* ─── 20. CONTACT PAGE ──────────────────────────────────── */
.contact-section {
  padding: 80px 0;
  background: var(--bg-white);
}

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

.contact-form h2 { margin-bottom: 28px; }

.contact-form label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid #e2e2e2;
  border-radius: var(--radius-md);
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  background: #fafafa;
  transition: var(--transition);
  margin-bottom: 18px;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--primary);
  background: var(--bg-white);
  box-shadow: 0 0 0 4px var(--primary-glow);
  outline: none;
}

.full-btn { width: 100%; }

.contact-info h2 { margin-bottom: 28px; }

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 28px;
  padding: 22px;
  background: var(--bg-light);
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.info-item:hover {
  background: var(--primary-light);
  transform: translateX(4px);
}

.info-item .sp-icon {
  width: 46px;
  height: 46px;
  font-size: 18px;
  flex-shrink: 0;
}

.info-item h3 { font-size: 15px; margin-bottom: 4px; }
.info-item p  { font-size: 14px; }

.map-section { padding: 0 0 80px; background: var(--bg-white); }

.map-wrapper {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  max-width: 1180px;
  margin: 0 auto;
}

/* ─── 21. QUOTE PAGE ────────────────────────────────────── */
.quote-section {
  padding: 80px 0;
  background: var(--bg-light);
}

.quote-layout {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 60px;
  align-items: start;
}

.quote-sidebar {
  background: var(--gradient-gold);
  border-radius: var(--radius-xl);
  padding: 44px 36px;
  box-shadow: var(--btn-shadow);
}

.quote-sidebar h2 {
  font-size: 26px;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.quote-sidebar > p { color: rgba(28,28,28,0.70); margin-bottom: 28px; }

.quote-benefit {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dark);
}

.quote-benefit:last-of-type { border-bottom: none; }

.quote-benefit i {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.form-card {
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  padding: 48px;
  box-shadow: var(--card-shadow);
}

.form-card h2 { margin-bottom: 6px; }
.form-card > p { margin-bottom: 32px; }

.step-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-dark);
  margin: 28px 0 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Montserrat', sans-serif;
}

.step-badge {
  width: 34px;
  height: 34px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-grid input,
.form-grid select,
.form-card textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--radius-md);
  border: 1.5px solid #e2e2e2;
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  background: #fafafa;
  transition: var(--transition);
  color: var(--text-dark);
}

.form-grid input:focus,
.form-grid select:focus,
.form-card textarea:focus {
  border-color: var(--primary);
  background: var(--bg-white);
  box-shadow: 0 0 0 4px var(--primary-glow);
  outline: none;
}

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

.checkbox-grid label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1.5px solid #e6e6e6;
  background: #fafafa;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
}

.checkbox-grid label:hover {
  border-color: var(--primary);
  background: var(--primary-light);
}

.form-submit { text-align: center; margin-top: 28px; }
.privacy-note { margin-top: 12px; font-size: 13px; color: var(--text-soft); }

/* ─── 22. POPUP ─────────────────────────────────────────── */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  transition: var(--transition);
  z-index: 9999;
}

.popup-overlay.active {
  visibility: visible;
  opacity: 1;
}

.popup-box {
  background: var(--bg-white);
  padding: 48px 40px;
  border-radius: var(--radius-lg);
  text-align: center;
  width: 360px;
  max-width: 90%;
  animation: popupScale 0.3s ease;
  box-shadow: 0 24px 80px rgba(0,0,0,0.20);
}

.popup-box h2 { margin-bottom: 10px; font-size: 22px; }
.popup-box p  { margin-bottom: 24px; }

.popup-close-btn {
  background: var(--primary);
  color: white;
  border: none;
  padding: 12px 32px;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 15px;
  transition: var(--transition);
}

.popup-close-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

@keyframes popupScale {
  from { transform: scale(0.85); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}

/* ─── 23. WHATSAPP FLOAT ────────────────────────────────── */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 56px;
  height: 56px;
  background: #25D366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  box-shadow: 0 8px 24px rgba(37,211,102,0.45);
  z-index: 998;
  animation: waPulse 2.5s infinite;
}

@keyframes waPulse {
  0%   { box-shadow: 0 0 0 0   rgba(37,211,102,0.60); }
  70%  { box-shadow: 0 0 0 14px rgba(37,211,102,0);    }
  100% { box-shadow: 0 0 0 0   rgba(37,211,102,0);     }
}

/* ─── 24. FADE-IN ANIMATION ─────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.fade-in.show {
  opacity: 1;
  transform: translateY(0);
}

/* ─── 25. RESPONSIVE ────────────────────────────────────── */

/* — Tablet 1024px — */
@media (max-width: 1024px) {
  .feature-grid     { grid-template-columns: repeat(2, 1fr); }
  .services-grid    { grid-template-columns: repeat(2, 1fr); }
  .projects-grid    { grid-template-columns: repeat(2, 1fr); }
  .values-grid      { grid-template-columns: repeat(3, 1fr); }
  .expertise-grid   { grid-template-columns: repeat(2, 1fr); }
  .stats-grid       { grid-template-columns: repeat(2, 1fr); gap: 30px; }
  .footer-grid      { grid-template-columns: 1fr 1fr; }
  .sp-overview-grid { grid-template-columns: repeat(3, 1fr); }
  .contact-grid     { grid-template-columns: 1fr; }
  .quote-layout     { grid-template-columns: 1fr; }
  .two-column       { gap: 40px; }
}

/* — Mobile 768px — */
@media (max-width: 768px) {

  /* Navbar */
  .navbar { padding: 0 20px; }

  .menu-toggle { display: flex; }

  .navbar > .btn-primary { display: none; }

  .nav-links {
    position: absolute;
    top: var(--navbar-h);
    left: 0;
    width: 100%;
    background: var(--bg-white);
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.38s ease, padding 0.38s ease;
    box-shadow: 0 12px 32px rgba(0,0,0,0.07);
  }

  .nav-links.active {
    max-height: 420px;
    padding: 16px 0 24px;
  }

  .nav-links li { margin: 0; width: 100%; text-align: center; }
  .nav-links a  { padding: 12px 0; font-size: 16px; }

  /* Hero */
  .hero        { height: 85vh; }
  .hero h1     { letter-spacing: -1px; }
  .hero p      { font-size: 15px; }
  .hero-buttons { flex-direction: column; }
  .hero-buttons a { width: 100%; text-align: center; }

  /* Grids → single col */
  .feature-grid,
  .services-grid,
  .projects-grid,
  .values-grid,
  .expertise-grid,
  .stats-grid,
  .two-column   { grid-template-columns: 1fr; }

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

  .about-image  { height: 280px; }

  /* Sections */
  .why-section  { padding: 70px 24px; }

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

  .process-grid   { grid-template-columns: 1fr; }
  .checkbox-grid  { grid-template-columns: 1fr; }
  .form-grid      { grid-template-columns: 1fr; }
  .contact-grid   { grid-template-columns: 1fr; }
  .quote-layout   { grid-template-columns: 1fr; }

  .form-card { padding: 28px 24px; }

  .sp-project-nav .container { padding: 0 20px; }
  .sp-nav-wrapper { flex-direction: column; }
  .sp-modern-btn  { width: 100%; justify-content: center; }

  /* Filter */
  .filter-buttons  { gap: 8px; }
  .filter-btn {
    flex: 1 1 calc(50% - 4px);
    text-align: center;
    font-size: 13px;
  }

  /* Footer */
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 14px;
  }
}

/* — Small mobile 480px — */
@media (max-width: 480px) {
  .hero h1 { letter-spacing: -0.5px; }
  .pricing-highlight-box { padding: 40px 24px; }
  .sp-gallery-track img { min-width: 240px; height: 180px; }
  .sp-overview-grid { grid-template-columns: 1fr; }
}

/* ─── 26. PRINT ─────────────────────────────────────────── */
@media print {
  .navbar, .whatsapp-float, .hero, footer { display: none; }
  body { padding-top: 0; }
}

/* ============================================================
   27. ONGOING PROJECTS PAGE
   All styles below are scoped to ongoing-projects.html only.
   They do NOT affect any other page.
   ============================================================ */

/* Live dot pulse animation */
@keyframes livePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.8); }
}

/* ── Hero ── */
.ongoing-hero {
  position: relative;
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.ongoing-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-dark);
}

.ongoing-hero::after {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: rgba(212,160,23,0.07);
  top: -200px;
  right: -100px;
  pointer-events: none;
}

.ongoing-hero-content {
  position: relative;
  z-index: 1;
  padding: 0 24px;
}

.ongoing-hero-content h1 {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  color: var(--text-white);
  margin-bottom: 12px;
}

.ongoing-hero-content p {
  font-size: 18px;
  color: rgba(255,255,255,0.75);
}

/* Live badge */
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(212,160,23,0.15);
  border: 1px solid rgba(212,160,23,0.4);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.live-dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  animation: livePulse 1.5s infinite;
  flex-shrink: 0;
}

/* ── Stats strip ── */
.op-stats {
  background: var(--bg-white);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  padding: 28px 6%;
}

.op-stats-inner {
  display: flex;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.op-stat h4 {
  font-family: 'Montserrat', sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0;
}

.op-stat p {
  font-size: 13px;
  color: var(--text-soft);
  margin-top: 2px;
}

/* ── Main section ── */
.op-section {
  padding: 80px 6%;
  background: var(--bg-light);
}

.op-section-head {
  text-align: center;
  margin-bottom: 56px;
}

.op-section-head h2 {
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.op-section-head p {
  font-size: 16px;
  color: var(--text-soft);
  max-width: 540px;
  margin: 0 auto;
}

/* ── Project card ── */
.op-card {
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  border: 1px solid rgba(0,0,0,0.05);
  margin-bottom: 44px;
  transition: box-shadow var(--transition), transform var(--transition);
}

.op-card:hover {
  box-shadow: var(--card-hover-shadow);
  transform: translateY(-4px);
}

/* Two-column grid inside card */
.op-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
}

/* ── Image column ── */
.op-img {
  position: relative;
  min-height: 460px;
  overflow: hidden;
}

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

.op-card:hover .op-img img {
  transform: scale(1.04);
}

/* Overlay — same dark gradient as other project pages */
.op-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.60) 0%,
    rgba(0,0,0,0.20) 45%,
    rgba(0,0,0,0.05) 100%
  );
  pointer-events: none;
}

/* Type tag — top left of image */
.op-tag {
  position: absolute;
  top: 18px;
  left: 18px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 100px;
  z-index: 1;
}

.op-tag.residential { background: #e8f5e9; color: #2e7d32; }
.op-tag.commercial  { background: #fff3e0; color: #e65100; }
.op-tag.government  { background: #e3f2fd; color: #1565c0; }
.op-tag.mixed       { background: #f3e5f5; color: #6a1b9a; }

/* Status pill — bottom left of image */
.op-status {
  position: absolute;
  bottom: 18px;
  left: 18px;
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(4px);
  color: white;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 100px;
  z-index: 1;
}

.op-status .dot {
  width: 7px;
  height: 7px;
  background: #22c55e;
  border-radius: 50%;
  animation: livePulse 1.5s infinite;
  flex-shrink: 0;
}

/* ── Content column ── */
.op-content {
  padding: 36px 40px;
  display: flex;
  flex-direction: column;
}

.op-content h3 {
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 6px;
  line-height: 1.25;
  font-family: 'Montserrat', sans-serif;
  text-align: left;
  letter-spacing: -0.3px;
}

.op-loc {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--text-soft);
  margin-bottom: 22px;
}

.op-loc i {
  color: var(--primary);
  font-size: 13px;
}

/* Details grid */
.op-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 22px;
}

.op-det {
  background: var(--bg-light);
  border-radius: var(--radius-md);
  padding: 12px 14px;
}

.op-det-l {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 4px;
}

.op-det-v {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dark);
  line-height: 1.4;
}

/* Description */
.op-desc {
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.85;
  margin-bottom: 24px;
  flex: 1;
}

/* Progress bar */
.op-prog {
  margin-bottom: 22px;
}

.op-prog-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.op-prog-lbl {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
}

.op-prog-pct {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
}

.op-prog-track {
  height: 8px;
  background: var(--bg-alt);
  border-radius: 100px;
  overflow: hidden;
}

.op-prog-fill {
  height: 100%;
  background: var(--gradient-gold);
  border-radius: 100px;
  width: 0;
  transition: width 1.2s ease;
}

.op-prog-fill.go {
  width: var(--w);
}

/* Completion date row */
.op-completion {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-soft);
  padding: 10px 14px;
  background: var(--primary-light);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--primary);
}

.op-completion i {
  color: var(--primary);
  flex-shrink: 0;
}

.op-completion strong {
  color: var(--text-dark);
}

/* ── Page navigation (prev / all / next) ── */
.op-nav {
  padding: 50px 0;
  background: var(--bg-white);
  border-top: 1px solid rgba(0,0,0,0.06);
}

.op-nav-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.op-nav-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: var(--text-dark);
  padding: 12px 22px;
  border-radius: var(--radius-md);
  border: 2px solid rgba(0,0,0,0.10);
  transition: var(--transition);
}

.op-nav-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--text-white);
  transform: translateY(-2px);
}

.op-nav-btn.all {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--text-white);
  box-shadow: var(--btn-shadow);
}

.op-nav-btn.all:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  box-shadow: var(--btn-hover-shadow);
}

/* ── CTA section ── */
.op-cta {
  background: var(--gradient-dark);
  padding: 90px 10%;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.op-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(212,160,23,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.op-cta h2 {
  font-size: clamp(26px, 4vw, 44px);
  font-weight: 800;
  color: var(--text-white);
  margin-bottom: 14px;
  position: relative;
}

.op-cta p {
  font-size: 17px;
  color: rgba(255,255,255,0.70);
  margin-bottom: 32px;
  position: relative;
}

/* ── Ongoing card in projects.html (the "Ongoing" tag) ── */
.op-card-ongoing-tag {
  background: #fef9ec;
  color: #92610a;
  border: 1px solid #f5d78e;
}

/* ── Responsive: Tablet 1024px ── */
@media (max-width: 1024px) {
  .op-grid {
    grid-template-columns: 1fr;
  }
  .op-img {
    min-height: 300px;
  }
  .op-content {
    padding: 28px 30px;
  }
}

/* ── Responsive: Mobile 768px ── */
@media (max-width: 768px) {
  .op-section {
    padding: 60px 20px;
  }
  .op-content {
    padding: 24px 20px;
  }
  .op-details {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .op-img {
    min-height: 260px;
  }
  .op-stats-inner {
    gap: 30px;
  }
  .op-nav-inner {
    flex-direction: column;
  }
  .op-nav-btn {
    width: 100%;
    justify-content: center;
  }
  .ongoing-hero-content p {
    font-size: 16px;
  }
}

/* ── Responsive: Small mobile 480px ── */
@media (max-width: 480px) {
  .op-stats-inner {
    gap: 20px;
  }
  .op-stat h4 {
    font-size: 22px;
  }
}

/* ============================================================
   27. ONGOING PROJECTS PAGE
   All styles scoped to .op-* and .ongoing-* classes only.
   Zero impact on any other page.
   ============================================================ */

/* Live pulse animation (used only on ongoing page) */
@keyframes livePulse {
  0%, 100% { opacity: 1; transform: scale(1);   }
  50%       { opacity: 0.5; transform: scale(0.8); }
}

/* ─── Hero ─────────────────────────────────────────────── */
.ongoing-hero {
  position: relative;
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.ongoing-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-gold);
}

.ongoing-hero::after {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: rgba(212,160,23,0.08);
  top: -200px;
  right: -100px;
  pointer-events: none;
}

.ongoing-hero-content {
  position: relative;
  z-index: 1;
  padding: 0 24px;
}

.ongoing-hero-content h1 {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  color: var(--text-white);
  margin-bottom: 12px;
}

.ongoing-hero-content p {
  font-size: 18px;
  color: rgba(255,255,255,0.75);
}

/* Live badge */
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.4);
  color: white;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.live-dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  animation: livePulse 1.5s infinite;
  flex-shrink: 0;
}

/* ─── Stats strip ───────────────────────────────────────── */
.op-stats {
  background: var(--bg-white);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  padding: 28px 6%;
}

.op-stats-inner {
  display: flex;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.op-stat h4 {
  font-family: 'Montserrat', sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: var(--primary);
}

.op-stat p {
  font-size: 13px;
  color: var(--text-soft);
  margin-top: 2px;
}

/* ─── Section wrapper ───────────────────────────────────── */
.op-section {
  padding: 80px 6%;
  background: var(--bg-light);
}

.op-section-head {
  text-align: center;
  margin-bottom: 56px;
}

.op-section-head h2 {
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.op-section-head p {
  font-size: 16px;
  color: var(--text-soft);
  max-width: 540px;
  margin: 0 auto;
}

/* ─── Project card ──────────────────────────────────────── */
.op-card {
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  border: 1px solid rgba(0,0,0,0.05);
  margin-bottom: 44px;
  transition: box-shadow var(--transition), transform var(--transition);
}

.op-card:hover {
  box-shadow: var(--card-hover-shadow);
  transform: translateY(-4px);
}

.op-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
}

/* Image column */
.op-img {
  position: relative;
  min-height: 460px;
  overflow: hidden;
}

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

.op-card:hover .op-img img {
  transform: scale(1.04);
}

/* Dark gradient overlay — matches sp-hero on other project pages */
.op-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.65) 0%,
    rgba(0,0,0,0.25) 40%,
    rgba(0,0,0,0.05) 100%
  );
  pointer-events: none;
}

/* Type tag (top-left of image) */
.op-tag {
  position: absolute;
  top: 18px;
  left: 18px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 100px;
}

.op-tag.residential { background: #e8f5e9; color: #2e7d32; }
.op-tag.commercial  { background: #fff3e0; color: #e65100; }
.op-tag.government  { background: #e3f2fd; color: #1565c0; }
.op-tag.mixed       { background: #f3e5f5; color: #6a1b9a; }
.op-tag.ongoing     { background: #fef9ec; color: #92610a; border: 1px solid #f5d78e; }

/* Status pill (bottom-left of image) */
.op-status {
  position: absolute;
  bottom: 18px;
  left: 18px;
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(4px);
  color: white;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 100px;
}

.op-status .dot {
  width: 7px;
  height: 7px;
  background: #22c55e;
  border-radius: 50%;
  animation: livePulse 1.5s infinite;
  flex-shrink: 0;
}

/* Content column */
.op-content {
  padding: 36px 40px;
  display: flex;
  flex-direction: column;
}

.op-content h3 {
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 6px;
  line-height: 1.25;
  font-family: 'Montserrat', sans-serif;
  text-align: left;
}

.op-loc {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--text-soft);
  margin-bottom: 22px;
}

.op-loc i {
  color: var(--primary);
  font-size: 13px;
}

/* Details 2x2 grid */
.op-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 22px;
}

.op-det {
  background: var(--bg-light);
  border-radius: var(--radius-md);
  padding: 12px 14px;
}

.op-det-l {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 4px;
}

.op-det-v {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dark);
  line-height: 1.4;
}

/* Description */
.op-desc {
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.85;
  margin-bottom: 24px;
  flex: 1;
}

/* Progress bar */
.op-prog {
  margin-bottom: 22px;
}

.op-prog-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.op-prog-lbl {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
}

.op-prog-pct {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
}

.op-prog-track {
  height: 8px;
  background: var(--bg-alt);
  border-radius: 100px;
  overflow: hidden;
}

.op-prog-fill {
  height: 100%;
  background: var(--gradient-gold);
  border-radius: 100px;
  width: 0;
  transition: width 1.2s ease;
}

.op-prog-fill.go {
  width: var(--w);
}

/* Completion date row */
.op-completion {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-soft);
  padding: 10px 14px;
  background: var(--primary-light);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--primary);
}

.op-completion i {
  color: var(--primary);
  flex-shrink: 0;
}

.op-completion strong {
  color: var(--text-dark);
}

/* ─── Page navigation (prev / all / next) ───────────────── */
.op-nav {
  padding: 50px 0;
  background: var(--bg-white);
  border-top: 1px solid rgba(0,0,0,0.06);
}

.op-nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.op-nav-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: var(--text-dark);
  padding: 12px 22px;
  border-radius: var(--radius-md);
  border: 2px solid rgba(0,0,0,0.10);
  transition: var(--transition);
}

.op-nav-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--text-white);
}

.op-nav-btn.all {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--text-white);
}

.op-nav-btn.all:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

/* ─── CTA section ───────────────────────────────────────── */
.op-cta {
  background: var(--bg-dark);
  padding: 90px 10%;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.op-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(212,160,23,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.op-cta h2 {
  font-size: clamp(26px, 4vw, 44px);
  font-weight: 800;
  color: var(--text-white);
  margin-bottom: 14px;
  position: relative;
}

.op-cta p {
  font-size: 17px;
  color: rgba(255,255,255,0.70);
  margin-bottom: 32px;
  position: relative;
}

/* ─── Ongoing projects card on projects.html ────────────── */
.op-card-live-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0,0,0,0.65);
  color: white;
  font-size: 11px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 100px;
  letter-spacing: 0.5px;
}

.op-card-live-badge .dot {
  width: 7px;
  height: 7px;
  background: #22c55e;
  border-radius: 50%;
  animation: livePulse 1.5s infinite;
  display: inline-block;
  flex-shrink: 0;
}

/* ─── Responsive ────────────────────────────────────────── */
@media (max-width: 1024px) {
  .op-grid            { grid-template-columns: 1fr; }
  .op-img             { min-height: 300px; }
  .op-content         { padding: 28px 30px; }
  .op-stats-inner     { gap: 36px; }
}

@media (max-width: 768px) {
  .op-section         { padding: 60px 20px; }
  .op-content         { padding: 24px 20px; }
  .op-details         { grid-template-columns: 1fr; gap: 10px; }
  .op-img             { min-height: 260px; }
  .op-stats-inner     { gap: 28px; }
  .op-nav-inner       { flex-direction: column; }
  .op-nav-btn         { width: 100%; justify-content: center; }
  .ongoing-hero-content p { font-size: 16px; }

  /* Always show project arrow on mobile */
.project-arrow {
  opacity: 1;
  transform: scale(1);
}
}

@media (max-width: 480px) {
  .op-stat h4         { font-size: 22px; }
  .op-content h3      { font-size: 20px; }
}




/* ============================================================
   PREMIUM EFFECTS — Preloader, Scroll Bar, Split Text,
   Typewriter, Image Reveal Curtain
   ============================================================ */

/* ─── PRELOADER ─────────────────────────────────────────── */
#preloader {
  position: fixed;
  inset: 0;
  background: #0a0a0a;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

#preloader.hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-logo {
  width: 90px;
  height: 90px;
  animation: preloaderPulse 1.5s ease-in-out infinite;
  filter: drop-shadow(0 0 20px rgba(212,160,23,0.6));
}

@keyframes preloaderPulse {
  0%, 100% { transform: scale(1);    filter: drop-shadow(0 0 20px rgba(212,160,23,0.5)); }
  50%       { transform: scale(1.08); filter: drop-shadow(0 0 40px rgba(212,160,23,0.9)); }
}

.preloader-text {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: transparent;
  background: linear-gradient(90deg, #b88c12, #E8B14B, #D4A017, #E8B14B, #b88c12);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  animation: shimmer 2s linear infinite;
}

@keyframes shimmer {
  from { background-position: 0% center; }
  to   { background-position: 200% center; }
}

.preloader-line {
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #D4A017, transparent);
  border-radius: 2px;
  animation: preloaderLine 2s ease forwards;
}

@keyframes preloaderLine {
  from { width: 0;     opacity: 1; }
  to   { width: 220px; opacity: 0.6; }
}

/* ─── SCROLL PROGRESS BAR ───────────────────────────────── */
#scrollProgress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, #b88c12, #E8B14B, #D4A017);
  z-index: 9999;
  transition: width 0.1s linear;
  box-shadow: 0 0 8px rgba(212,160,23,0.6);
}


/* ─── IMAGE REVEAL CURTAIN ──────────────────────────────── */
.reveal-wrap {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.reveal-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #C88F2D, #E8B14B);
  transform: translateX(0%);
  transition: transform 0.9s cubic-bezier(0.77, 0, 0.175, 1);
  z-index: 2;
  border-radius: var(--radius-lg);
}

.reveal-wrap.revealed::after {
  transform: translateX(101%);
}

.reveal-wrap img {
  transform: scale(1.08);
  transition: transform 0.9s cubic-bezier(0.77, 0, 0.175, 1);
}

.reveal-wrap.revealed img {
  transform: scale(1);
}

/* ─── SLIDE IN (already added before — keeping here too) ── */
.slide-left,
.slide-right {
  opacity: 0;
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.slide-left  { transform: translateX(-60px); }
.slide-right { transform: translateX(60px);  }
.slide-left.visible,
.slide-right.visible {
  opacity: 1;
  transform: translateX(0);
}
.slide-right { transition-delay: 0.15s; }


/* ============================================================
   PREMIUM EFFECTS v2 —  Particles,
   Diagonal Dividers, Card Hover, Counter Ease, Scroll Offset
   ============================================================ */


.why-section { background: var(--bg-white); }
.stats-bar   { background: var(--gradient-gold); }

/* ─── 2. FLOATING GOLD PARTICLES ────────────────────────── */
.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  bottom: -10px;
  width: 7px;
  height: 7px;
  background: var(--primary);
  border-radius: 50%;
  opacity: 0;
  animation: floatUp var(--dur, 8s) ease-in infinite;
  animation-delay: var(--delay, 0s);
  box-shadow: 0 0 4px rgba(212,160,23,0.6);
}

.particle:nth-child(even) {
  width: 5px;
  height: 5px;
  background: #E8B14B;
  box-shadow: 0 0 4px rgba(232,177,75,0.6);
}

.particle:nth-child(3n) {
  width: 7px;
  height: 7px;
  background: rgba(212,160,23,0.6);
  box-shadow: 0 0 6px rgba(212,160,23,0.7);
}

@keyframes floatUp {
  0%   { transform: translateY(0) translateX(0) scale(1);        opacity: 0;   }
  10%  { opacity: 0.5; }
  50%  { transform: translateY(-50vh) translateX(20px) scale(0.8); opacity: 0.3; }
  90%  { opacity: 0.1; }
  100% { transform: translateY(-100vh) translateX(-10px) scale(0.4); opacity: 0; }
}


/* ─── 3. DIAGONAL SECTION DIVIDERS ─────────────────────── */
.divider-down {
  position: relative;
}

.divider-down::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 60px;
  background: inherit;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 0);
  z-index: 2;
}

.divider-up {
  position: relative;
}

.divider-up::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 60px;
  background: inherit;
  clip-path: polygon(0 0, 100% 100%, 100% 0);
  z-index: 2;
}

/* ─── 4. FEATURE CARD GOLD BORDER HOVER ────────────────── */
.feature-card {
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  border: 2px solid var(--primary);
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
}

.feature-card:hover::before {
  opacity: 1;
  transform: scale(1);
}

.feature-card:hover .feature-icon {
  transform: scale(1.15) rotate(-5deg);
  transition: transform 0.35s ease;
}

.feature-icon {
  transition: transform 0.35s ease;
}

/* Service cards same effect */
.service-card {
  position: relative;
  overflow: hidden;
}

.service-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: var(--gradient-gold);
  transition: width 0.4s ease;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.service-card:hover::after {
  width: 100%;
}

/* Project cards */
.project-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: var(--gradient-gold);
  transition: width 0.4s ease;
}

.project-card:hover::after {
  width: 100%;
}

/* ─── 5. COUNTER EASE OUT ───────────────────────────────── */
/* Handled in JS — CSS just ensures clean number display */
[data-count] {
  display: inline-block;
  font-variant-numeric: tabular-nums;
}

/* ─── 6. SMOOTH SCROLL OFFSET ───────────────────────────── */
html {
  scroll-padding-top: calc(var(--navbar-h) + 16px);
}

