/* ==========================================================================
   Sainath Rail Works — main stylesheet
   Plain CSS, mobile-first. No build step required.
   ========================================================================== */

:root {
  /* Brand tokens — sampled from the Sainath Enterprises logo */
  --ink: #111827;
  --canvas: #F8FAFC;

  --rail: #5D634C;
  --rail-50: #F1F2EC;
  --rail-100: #E3E6D8;
  --rail-600: #6E765A;
  --rail-900: #2A2D22;

  --signal: #868C6C;
  --signal-400: #A8B38C;

  --weld: #22C55E;

  --steel-50: #F8F8F5;
  --steel-100: #F0F1EA;
  --steel-200: #E1E3D6;
  --steel-300: #C9CCB7;
  --steel-400: #9CA084;
  --steel-500: #6F7460;
  --steel-700: #3A3D2E;
  --steel-800: #262A1D;
  --steel-900: #181A12;
  --steel-950: #0E0F0A;

  --font-sans: "Poppins", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;

  --shadow-card: 0 2px 10px rgba(17, 24, 39, 0.04), 0 1px 2px rgba(17, 24, 39, 0.03);
  --shadow-elevate: 0 20px 45px -15px rgba(24, 26, 18, 0.28);
  --shadow-glow: 0 0 60px -10px rgba(134, 140, 108, 0.55);

  --radius-sm: 0.5rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
  --radius-full: 999px;

  --wrap-max: 1280px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--canvas);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
input, textarea, select { font-family: inherit; font-size: inherit; }

/* ---------- Layout helpers ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap-max);
  margin-inline: auto;
  padding-inline: 1.25rem;
}
@media (min-width: 768px) {
  .wrap { padding-inline: 2.5rem; }
}
.section { padding-block: 6rem; }
@media (min-width: 768px) { .section { padding-block: 8rem; } }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--signal);
}

.section-head { max-width: 640px; }
.section-head h2 {
  margin-top: 0.75rem;
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.15;
}
@media (min-width: 768px) { .section-head h2 { font-size: 2.4rem; } }
.section-head p { margin-top: 1rem; font-size: 1.1rem; color: var(--steel-500); }

.section-head.center { margin-inline: auto; text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: var(--radius-full);
  padding: 0.9rem 1.75rem;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--rail); color: #fff; box-shadow: var(--shadow-elevate); }
.btn-primary:hover { background: var(--rail-600); }
.btn-accent { background: var(--signal); color: #fff; box-shadow: var(--shadow-glow); }
.btn-accent:hover { background: var(--signal-400); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.16); }
.btn svg { width: 18px; height: 18px; }

/* ---------- Signature: rail-line motif ---------- */
.rail-track {
  position: relative;
  height: 6px;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--steel-200), var(--steel-300));
  overflow: hidden;
}
.rail-track::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    90deg, rgba(17, 24, 39, 0.18) 0px, rgba(17, 24, 39, 0.18) 2px, transparent 2px, transparent 14px
  );
}
.rail-track-fill {
  position: absolute;
  inset: 0;
  width: 0%;
  background: linear-gradient(90deg, var(--rail), var(--signal));
  border-radius: var(--radius-full);
  transition: width 0.2s ease-out;
}

.rail-divider {
  height: 2px;
  width: 100%;
  background: repeating-linear-gradient(
    90deg, rgba(93, 99, 76, 0.4) 0px, rgba(93, 99, 76, 0.4) 18px, transparent 18px, transparent 30px
  );
}
.rail-divider.light { opacity: 0.3; }

.blueprint-grid {
  background-image:
    linear-gradient(rgba(168, 179, 140, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(168, 179, 140, 0.18) 1px, transparent 1px);
  background-size: 44px 44px;
}

.glass-card {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }

/* Re-usable hover-lift / hover-zoom */
.lift { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.lift:hover { transform: translateY(-8px); box-shadow: var(--shadow-elevate); }
.zoom-on-hover { overflow: hidden; }
.zoom-on-hover img, .zoom-on-hover .zoom-bg {
  transition: transform 0.5s ease;
}
.zoom-on-hover:hover img, .zoom-on-hover:hover .zoom-bg { transform: scale(1.08); }

/* Focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 2px;
  border-radius: 4px;
}

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--steel-100); }
::-webkit-scrollbar-thumb { background: var(--rail); border-radius: var(--radius-full); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: transparent;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
.site-header.is-scrolled, .site-header.is-open {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 5rem;
}
.nav-logo img { height: 2.75rem; width: auto; }


@media (min-width: 768px) { .nav-logo img { height: 3rem; } }

.nav-links {
  display: none;
  align-items: center;
  gap: 2rem;
}
@media (min-width: 1024px) { .nav-links { display: flex; } }
.nav-link {
  position: relative;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
  padding-bottom: 0.5rem;
  transition: color 0.2s ease;
}
.site-header.is-scrolled .nav-link { color: var(--steel-700); }
.nav-link.is-active { color: #fff; }
.site-header.is-scrolled .nav-link.is-active { color: var(--rail); }
.nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

.nav-right { display: none; align-items: center; gap: 1rem; }
@media (min-width: 1024px) { .nav-right { display: flex; } }
.nav-phone {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
}
.site-header.is-scrolled .nav-phone { color: var(--steel-700); }
.nav-phone svg { width: 16px; height: 16px; }

.nav-toggle {
  display: inline-flex;
  background: none;
  border: none;
  padding: 0.5rem;
  color: #fff;
}
.site-header.is-scrolled .nav-toggle, .site-header.is-open .nav-toggle { color: var(--ink); }
@media (min-width: 1024px) { .nav-toggle { display: none; } }
.nav-toggle svg { width: 26px; height: 26px; }
.nav-toggle .icon-close { display: none; }
.site-header.is-open .nav-toggle .icon-menu { display: none; }
.site-header.is-open .nav-toggle .icon-close { display: inline-flex; }

.mobile-menu {
  display: none;
  background: #fff;
  border-top: 1px solid var(--steel-200);
}
.site-header.is-open .mobile-menu { display: block; }
.mobile-menu ul { display: flex; flex-direction: column; gap: 0.25rem; padding: 1rem 0; }
.mobile-menu a {
  display: block;
  padding: 0.75rem 0;
  font-weight: 500;
  color: var(--steel-700);
}
.mobile-menu .btn { margin-top: 0.5rem; width: 100%; justify-content: center; }

.scroll-progress {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--steel-200);
}
.scroll-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--rail), var(--signal));
  transition: width 0.1s linear;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: var(--steel-950);
  padding-top: 7rem;
  padding-bottom: 4rem;
}

/* Layer 1 — Real background photo */
.hero-bg-photo {
  position: absolute; inset: 0;
  background-image: url("../img/hero-bg.jpg");
  background-size: cover;
  background-position: center 35%;
  background-repeat: no-repeat;
  animation: heroBgZoom 12s ease-out forwards;
  will-change: transform;
  transition: transform 0.1s ease-out;
}
@keyframes heroBgZoom {
  from { transform: scale(1.06); }
  to   { transform: scale(1.00); }
}

/* Layer 2 — Dark tint so text stays readable */
.hero-bg-gradient {
  position: absolute; inset: 0;
  background: linear-gradient(
    135deg,
    rgba(14, 15, 10, 0.82) 0%,
    rgba(42, 45, 34, 0.65) 50%,
    rgba(14, 15, 10, 0.75) 100%
  );
}

/* Layer 3 — Blueprint grid (lighter so photo shows through) */
.hero-bg-grid {
  position: absolute; inset: 0;
  opacity: 0.18;
  animation: gridDrift 16s linear infinite;
}
@keyframes gridDrift {
  from { background-position: 0 0; }
  to   { background-position: 44px 88px; }
}

/* Layer 4 — Radial olive accent */
.hero-bg-radial {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 70% 20%, rgba(93,99,76,0.30), transparent 55%);
}

/* Layer 5 — Bottom fade into trust bar */
.hero-bg-fade {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(14,15,10,0.92) 0%, transparent 40%);
}

/* Layer 6 — Mouse-follow glow */
.hero-glow {
  position: absolute; inset: 0;
  pointer-events: none;
  background: radial-gradient(600px circle at 50% 50%, rgba(134,140,108,0.20), transparent 60%);
  transition: background 0.2s ease;
}
.hero-particles { position: absolute; inset: 0; overflow: hidden; }
.particle {
  position: absolute;
  border-radius: 50%;
  background: rgba(168, 179, 140, 0.5);
  animation: floatParticle 7s ease-in-out infinite;
}
@keyframes floatParticle {
  0%, 100% { transform: translateY(0); opacity: 0.2; }
  50% { transform: translateY(-30px); opacity: 0.7; }
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.05);
  padding: 0.4rem 1rem;
  color: #E3E6D8;
}
.hero-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--weld); }

.hero h1 {
  margin-top: 1.5rem;
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: #fff;
  max-width: 36rem;
}
.hero-sub {
  margin-top: 1.5rem;
  font-size: 1.15rem;
  color: var(--steel-300);
  max-width: 34rem;
}
.hero-notice {
  margin-top: 1.5rem;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  max-width: 34rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(251, 191, 36, 0.25);
  background: rgba(251, 191, 36, 0.1);
  padding: 0.9rem 1.1rem;
}
.hero-notice svg { width: 20px; height: 20px; color: #fbbf24; flex-shrink: 0; margin-top: 2px; }
.hero-notice p { font-size: 0.9rem; color: rgba(253, 230, 138, 0.92); line-height: 1.5; }
.hero-notice strong { color: #fcd34d; }

.hero-actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 1rem; }
.hero-rail-track { margin-top: 2.5rem; max-width: 28rem; }

.hero-form-col { position: relative; }
@media (min-width: 1024px) {
  .hero-form-col { position: sticky; top: 7rem; }
}

/* ==========================================================================
   Quote form
   ========================================================================== */
.quote-form {
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-elevate);
  width: 100%;
}
@media (min-width: 768px) { .quote-form { padding: 1.75rem; } }
.quote-form.panel { background: #fff; border: 1px solid var(--steel-200); }
.quote-form-head h3 { font-size: 1.15rem; font-weight: 600; }
.quote-form-head p { margin-top: 0.25rem; font-size: 0.9rem; color: var(--steel-500); }

.form-grid { display: flex; flex-direction: column; gap: 0.9rem; margin-top: 1.25rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.field { display: flex; flex-direction: column; gap: 0.35rem; font-size: 0.875rem; }
.field label { font-weight: 500; color: var(--steel-700); }
.field label .req { color: var(--rail); }
.field input, .field select, .field textarea {
  width: 100%;
  border-radius: 0.7rem;
  border: 1px solid var(--steel-200);
  background: rgba(255,255,255,0.7);
  padding: 0.65rem 0.85rem;
  font-size: 0.9rem;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field input::placeholder, .field textarea::placeholder { color: var(--steel-400); }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--rail);
  box-shadow: 0 0 0 3px rgba(93,99,76,0.15);
}
.field textarea { resize: none; }
.field.has-error input, .field.has-error select { border-color: #f87171; }
.field-error { font-size: 0.75rem; font-weight: 500; color: #ef4444; }
.honeypot-field { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }

.form-submit {
  margin-top: 0.25rem;
  width: 100%;
  justify-content: center;
}
.form-footnote { margin-top: 0.5rem; font-size: 0.7rem; color: var(--steel-400); text-align: center; }

.form-state { display: none; flex-direction: column; align-items: center; text-align: center; gap: 0.75rem; padding: 2.5rem 0.5rem; }
.form-state.is-active { display: flex; }
.form-state svg { width: 56px; height: 56px; }
.form-state.success svg { color: var(--weld); }
.form-state.error svg { color: #ef4444; }
.form-state h3 { font-size: 1.2rem; font-weight: 600; }
.form-state p { font-size: 0.9rem; color: var(--steel-500); max-width: 22rem; }
.form-state .btn-link { font-size: 0.875rem; font-weight: 500; color: var(--rail); text-decoration: underline; text-underline-offset: 3px; background:none; border:none; padding:0; }

.spinner {
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ==========================================================================
   Trust bar
   ========================================================================== */
.trust-bar { background: #fff; border-block: 1px solid var(--steel-100); }
.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  padding-block: 3rem;
}
@media (min-width: 768px) { .trust-grid { grid-template-columns: repeat(4, 1fr); } }
.stat { text-align: center; }
.stat-value { font-family: var(--font-mono); font-size: 2.1rem; font-weight: 700; color: var(--rail); }
@media (min-width: 768px) { .stat-value { font-size: 2.4rem; } }
.stat-label { margin-top: 0.4rem; font-size: 0.9rem; font-weight: 500; color: var(--steel-500); }

/* ==========================================================================
   About
   ========================================================================== */
.about { background: var(--canvas); }
.about-grid { display: grid; gap: 4rem; align-items: center; }
@media (min-width: 1024px) { .about-grid { grid-template-columns: 1fr 1fr; } }
.about-copy p { margin-top: 1.5rem; font-size: 1.1rem; color: var(--steel-500); line-height: 1.7; }
.about-badges { margin-top: 2rem; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.about-badge {
  display: flex; align-items: center; gap: 0.65rem;
  border-radius: var(--radius-md);
  background: #fff;
  border: 1px solid var(--steel-200);
  padding: 0.75rem 1rem;
  box-shadow: var(--shadow-card);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--steel-700);
}
.about-badge svg { width: 18px; height: 18px; color: var(--rail); flex-shrink: 0; }

.about-notice-card {
  position: relative;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--rail-900), var(--steel-900));
  padding: 2.5rem;
  color: #fff;
  box-shadow: var(--shadow-elevate);
  overflow: hidden;
}
.about-notice-card .blueprint-grid { opacity: 0.2; }
.about-notice-card .content { position: relative; }
.about-notice-card p.lead {
  margin-top: 1rem;
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.6;
  color: rgba(255,255,255,0.95);
}
.about-notice-card .rail-divider { margin-top: 1.5rem; }
.about-notice-card p.foot { margin-top: 1.5rem; font-size: 0.9rem; color: var(--steel-300); }

/* ==========================================================================
   Services
   ========================================================================== */
.services { background: #fff; }
.service-grid {
  margin-top: 3.5rem;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .service-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .service-grid { grid-template-columns: repeat(3, 1fr); } }
.service-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--steel-200);
  background: var(--canvas);
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-elevate); border-color: rgba(93,99,76,0.3); }
.service-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 3rem; height: 3rem;
  border-radius: var(--radius-md);
  background: var(--rail-50);
  color: var(--rail);
  transition: background-color 0.3s ease, color 0.3s ease;
}
.service-icon svg { width: 22px; height: 22px; }
.service-card:hover .service-icon { background: var(--rail); color: #fff; }
.service-card h3 { margin-top: 1.25rem; font-size: 1.1rem; font-weight: 600; }
.service-card p { margin-top: 0.5rem; font-size: 0.9rem; color: var(--steel-500); line-height: 1.6; }
.service-card .underline { margin-top: 1.25rem; height: 2px; width: 2.5rem; background: var(--steel-200); transition: width 0.3s ease, background-color 0.3s ease; }
.service-card:hover .underline { width: 4rem; background: var(--rail); }

/* ==========================================================================
   Industries
   ========================================================================== */
.industries { background: var(--steel-950); position: relative; overflow: hidden; }
.industries .blueprint-grid { position: absolute; inset: 0; opacity: 0.1; }
.industries .section-head h2, .industries .section-head .eyebrow + h2 { color: #fff; }
.industries .eyebrow { color: var(--signal-400); }
.industries .section-head p { color: var(--steel-300); }
.industry-grid {
  position: relative;
  margin-top: 3.5rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
@media (min-width: 640px) { .industry-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .industry-grid { grid-template-columns: repeat(3, 1fr); } }
.industry-card {
  display: flex; flex-direction: column; align-items: center; gap: 0.75rem;
  text-align: center;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.05);
  padding: 2.75rem 1rem;
  backdrop-filter: blur(4px);
  transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}
.industry-card:hover { transform: translateY(-4px); background: rgba(255,255,255,0.1); border-color: rgba(168,179,140,0.4); }
.industry-card svg { width: 26px; height: 26px; color: var(--signal-400); }
.industry-card span { font-size: 0.9rem; font-weight: 500; color: rgba(255,255,255,0.9); }

/* ==============================================
MAP CODE
============================================== */

/* ---- India Project Map thumbnail ---- */
.project-map-wrap {
  margin-top: 1.5rem;
}
.project-map-btn {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  border-radius: 1rem;
  overflow: hidden;
  cursor: zoom-in;
  box-shadow: 0 2px 10px rgba(17,24,39,0.08);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.project-map-btn:hover {
  box-shadow: 0 20px 45px -15px rgba(24,26,18,0.28);
  transform: translateY(-3px);
}
.project-map-btn img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}
.project-map-btn:hover img {
  transform: scale(1.04);
}
.project-map-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: rgba(15,15,10,0);
  color: #fff;
  font-family: "Poppins", sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.3s ease, background 0.3s ease;
  border-radius: 1rem;
}
.project-map-btn:hover .project-map-overlay {
  opacity: 1;
  background: rgba(15,15,10,0.45);
}

/* ---- India Project Map Lightbox ---- */
.map-lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(0,0,0,0);
  visibility: hidden;
  transition: background 0.3s ease;
}
.map-lightbox.is-open {
  visibility: visible;
  background: rgba(0,0,0,0.85);
}
.map-lightbox-inner {
  position: relative;
  width: 100%;
  max-width: 900px;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0,0,0,0.5);
  transform: scale(0.88);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1), opacity 0.3s ease;
}
.map-lightbox.is-open .map-lightbox-inner {
  transform: scale(1);
  opacity: 1;
}
.map-lightbox-inner img {
  width: 100%;
  height: auto;
  display: block;
}
.map-lightbox-caption {
  background: #fff;
  margin: 0;
  padding: 0.75rem 1.25rem;
  font-size: 0.82rem;
  color: #5D634C;
  font-family: "Poppins", sans-serif;
  text-align: center;
}
.map-lightbox-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 5;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.9);
  color: #111827;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.map-lightbox-close:hover {
  background: #fff;
  transform: rotate(90deg);
}

/* ==========================================================================
   Why choose us
   ========================================================================== */
.why-us { background: var(--canvas); }
.why-grid { margin-top: 3.5rem; display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .why-grid { grid-template-columns: repeat(4, 1fr); } }
.why-card {
  border-radius: var(--radius-md);
  background: #fff;
  border: 1px solid var(--steel-200);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.why-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-elevate); }
.why-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.75rem; height: 2.75rem;
  border-radius: var(--radius-md);
  background: rgba(134,140,108,0.12);
  color: var(--signal);
}
.why-icon svg { width: 20px; height: 20px; }
.why-card h3 { margin-top: 1rem; font-weight: 600; }
.why-card p { margin-top: 0.4rem; font-size: 0.875rem; color: var(--steel-500); line-height: 1.6; }

/* ==========================================================================
   Process
   ========================================================================== */
.process { background: #fff; overflow: hidden; }
.process-track-wrap { margin-top: 5rem; position: relative; }

.process-rail-desktop { display: none; position: relative; }
@media (min-width: 1024px) { .process-rail-desktop { display: block; } }
.process-rail-line {
  position: relative;
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--steel-200);
  overflow: hidden;
}
.process-rail-line::before {
  content: "";
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(90deg, rgba(17,24,39,0.18) 0px, rgba(17,24,39,0.18) 2px, transparent 2px, transparent 14px);
}
.process-rail-fill {
  position: absolute; inset: 0; width: 0%;
  background: linear-gradient(90deg, var(--rail), var(--signal));
  border-radius: var(--radius-full);
  transition: width 0.15s linear;
}
.process-marker {
  position: absolute;
  top: -12px; left: 0%;
  width: 2.25rem; height: 2.25rem;
  margin-left: -1.125rem;
  border-radius: 50%;
  background: var(--signal);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-glow);
  transition: left 0.15s linear;
}
.process-marker svg { width: 16px; height: 16px; }
.process-steps-row {
  margin-top: 4rem;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1rem;
}
.process-step-desktop { text-align: center; }
.process-step-desktop .step-no { font-family: var(--font-mono); font-size: 0.75rem; color: rgba(93,99,76,0.7); }
.process-step-desktop h3 { margin-top: 0.4rem; font-size: 0.9rem; font-weight: 600; line-height: 1.3; }
.process-step-desktop p { margin-top: 0.4rem; font-size: 0.78rem; color: var(--steel-500); line-height: 1.5; }

.process-rail-mobile { display: block; position: relative; padding-left: 2.5rem; }
@media (min-width: 1024px) { .process-rail-mobile { display: none; } }
.process-rail-mobile .track {
  position: absolute; top: 0; bottom: 0; left: 0.75rem; width: 6px;
  border-radius: var(--radius-full);
  background: var(--steel-200);
  overflow: hidden;
}
.process-rail-mobile .track::before {
  content: ""; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(180deg, rgba(17,24,39,0.18) 0px, rgba(17,24,39,0.18) 2px, transparent 2px, transparent 14px);
}
.process-rail-mobile .fill {
  position: absolute; top: 0; left: 0.75rem; width: 6px; height: 0%;
  background: linear-gradient(180deg, var(--rail), var(--signal));
  border-radius: var(--radius-full);
}
.process-steps-col { display: flex; flex-direction: column; gap: 2.5rem; }
.process-step-mobile .step-no { font-family: var(--font-mono); font-size: 0.75rem; color: rgba(93,99,76,0.7); }
.process-step-mobile h3 { margin-top: 0.3rem; font-size: 1rem; font-weight: 600; }
.process-step-mobile p { margin-top: 0.3rem; font-size: 0.875rem; color: var(--steel-500); }

/* ==========================================================================
   Gallery
   ========================================================================== */

.gallery { background: var(--canvas); }
.gallery-head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.5rem;
}
.gallery-filters { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.filter-btn {
  border-radius: var(--radius-full);
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid var(--steel-200);
  background: #fff;
  color: var(--steel-500);
  transition: all 0.2s ease;
}
.filter-btn:hover { border-color: rgba(93,99,76,0.4); }
.filter-btn.is-active { background: var(--rail); color: #fff; border-color: var(--rail); }

.gallery-grid {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  grid-auto-flow: dense;
}
@media (min-width: 1024px) { .gallery-grid { grid-template-columns: repeat(4, 1fr); } }
.gallery-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  border: none;
  padding: 0;
  display: block;
  width: 100%;
  background: var(--steel-800);
}
.gallery-item.tall { aspect-ratio: 3 / 4; grid-row: span 2; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item .caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.85rem 1rem;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}
.gallery-item:hover .caption { transform: translateY(0); }
.gallery-item.is-hidden { display: none; }

.lightbox {
  position: fixed; inset: 0; z-index: 70;
  display: none;
  align-items: center; justify-content: center;
  background: rgba(0,0,0,0.82);
  padding: 1.5rem;
}
.lightbox.is-open { display: flex; }
.lightbox-inner {
  position: relative;
  width: 100%; max-width: 640px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-elevate);
}
.lightbox-inner img { width: 100%; display: block; }
.lightbox-close {
  position: absolute; top: 1rem; right: 1rem;
  width: 2.25rem; height: 2.25rem;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  border: none;
}
.lightbox-close:hover { background: rgba(255,255,255,0.25); }
.lightbox-close svg { width: 20px; height: 20px; }

/* ==========================================================================
   Testimonials
   ========================================================================== */
.testimonials { background: #fff; }
.testimonial-grid { margin-top: 3.5rem; display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .testimonial-grid { grid-template-columns: repeat(3, 1fr); } }
.testimonial-card {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--steel-200);
  background: var(--canvas);
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.testimonial-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-elevate); }
.stars { display: flex; gap: 0.15rem; color: #fbbf24; }
.stars svg { width: 16px; height: 16px; }
.testimonial-card .quote { margin-top: 1rem; color: var(--steel-500); line-height: 1.6; }
.testimonial-person { margin-top: 1.5rem; display: flex; align-items: center; gap: 0.75rem; }
.testimonial-avatar {
  width: 2.75rem; height: 2.75rem;
  border-radius: 50%;
  background: var(--rail-50);
  color: var(--rail);
  display: flex; align-items: center; justify-content: center;
  font-weight: 600;
}
.testimonial-name { font-size: 0.9rem; font-weight: 600; }
.testimonial-company { font-size: 0.78rem; color: var(--steel-500); }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq { background: var(--canvas); }
.faq-list { margin-top: 3rem; display: flex; flex-direction: column; gap: 0.75rem; max-width: 48rem; margin-inline: auto; }
.faq-item {
  border-radius: var(--radius-md);
  border: 1px solid var(--steel-200);
  background: #fff;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.faq-question {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  background: none; border: none;
  padding: 1.25rem 1.5rem;
  text-align: left;
  font-weight: 600;
  color: var(--ink);
}
.faq-question svg { width: 20px; height: 20px; color: var(--rail); flex-shrink: 0; transition: transform 0.25s ease; }
.faq-item.is-open .faq-question svg { transform: rotate(180deg); }
.faq-answer-wrap {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}
.faq-item.is-open .faq-answer-wrap { grid-template-rows: 1fr; }
.faq-answer-inner { overflow: hidden; min-height: 0; }
.faq-answer-inner p { padding: 0 1.5rem 1.25rem; color: var(--steel-500); line-height: 1.6; }

/* ==========================================================================
   CTA banner
   ========================================================================== */
.cta-banner {
  position: relative;
  background: var(--steel-950);
  padding-block: 6rem;
  overflow: hidden;
  text-align: center;
}
.cta-banner .blueprint-grid { position: absolute; inset: 0; opacity: 0.1; }
.cta-glow {
  position: absolute;
  top: 50%; left: 50%;
  width: 500px; height: 500px;
  margin: -250px 0 0 -250px;
  border-radius: 50%;
  background: rgba(134,140,108,0.3);
  filter: blur(110px);
  animation: glowPulse 4s ease-in-out infinite;
}
@keyframes glowPulse { 0%, 100% { opacity: 0.5; } 50% { opacity: 1; } }
.cta-banner h2 { position: relative; color: #fff; font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 700; max-width: 42rem; margin-inline: auto; }
.cta-banner p { position: relative; margin-top: 1.25rem; color: var(--steel-300); font-size: 1.1rem; max-width: 32rem; margin-inline: auto; }
.cta-banner .btn { position: relative; margin-top: 2.25rem; }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact { background: #fff; }
.contact-grid { display: grid; gap: 3rem; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 0.9fr 1.1fr; } }
.contact-details { margin-top: 2rem; display: flex; flex-direction: column; gap: 1rem; }
.contact-row {
  display: flex; gap: 0.9rem; align-items: flex-start;
  border-radius: var(--radius-md);
  border: 1px solid var(--steel-200);
  background: var(--canvas);
  padding: 1rem 1.1rem;
}
.contact-row svg { width: 18px; height: 18px; color: var(--rail); margin-top: 2px; flex-shrink: 0; }
.contact-row .label { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--steel-400); }
.contact-row .value { margin-top: 0.15rem; font-size: 0.9rem; font-weight: 500; color: var(--ink); }
.map-embed { margin-top: 1.5rem; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--steel-200); box-shadow: var(--shadow-card); }
.map-embed iframe { width: 100%; height: 260px; border: 0; display: block; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--steel-950); color: var(--steel-300); }
.footer-grid { display: grid; gap: 3rem; padding-block: 4rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.2fr 1fr 1fr 1.2fr; } }
.footer-logo img { height: 2.75rem; width: auto; }
.footer-about { margin-top: 1rem; font-size: 0.9rem; line-height: 1.6; color: var(--steel-400); max-width: 22rem; }
.footer-social { margin-top: 1.25rem; display: flex; gap: 0.75rem; }
.footer-social a {
  width: 2.25rem; height: 2.25rem;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  display: flex; align-items: center; justify-content: center;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.footer-social a:hover { background: var(--rail); color: #fff; }
.footer-social svg { width: 16px; height: 16px; }
.footer-col h3 { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--signal-400); }
.footer-col ul { margin-top: 1rem; display: flex; flex-direction: column; gap: 0.65rem; font-size: 0.9rem; }
.footer-col a:hover { color: #fff; }
.footer-contact li { display: flex; align-items: flex-start; gap: 0.6rem; }
.footer-contact svg { width: 16px; height: 16px; color: var(--rail-600); margin-top: 2px; flex-shrink: 0; }
.footer-bottom {
  padding-block: 1.5rem;
  display: flex; flex-direction: column; gap: 0.5rem;
  align-items: center; justify-content: space-between;
  font-size: 0.78rem; color: var(--steel-500);
  text-align: center;
}
@media (min-width: 768px) { .footer-bottom { flex-direction: row; text-align: left; } }

/* ==========================================================================
   Loader
   ========================================================================== */
.page-loader {
  position: fixed; inset: 0; z-index: 100;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1.25rem;
  background: var(--steel-950);
  transition: opacity 0.5s ease;
}
.page-loader img { height: 2.25rem; opacity: 0.9; }
.loader-bar { position: relative; width: 12rem; height: 6px; border-radius: var(--radius-full); overflow: hidden; background: rgba(255,255,255,0.1); }
.loader-bar span {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, var(--signal), transparent);
  animation: loaderSlide 1.1s ease-in-out infinite;
}
@keyframes loaderSlide { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.page-loader.is-hidden { opacity: 0; pointer-events: none; }

/* ==========================================================================
   Utility
   ========================================================================== */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.text-center { text-align: center; }
.mx-auto { margin-inline: auto; }
/* ==========================================================================
   CERTIFICATES & AWARDS SECTION
   ========================================================================== */
.certificates { background: var(--steel-50); padding-block: 5rem; overflow: hidden; }
.certificates .section-head { margin-bottom: 3rem; }

/* Auto-scroll track */
.cert-track-wrap {
  position: relative;
  overflow: hidden;
  /* fade edges for smooth feel */
  mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
}
.cert-track {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  animation: certScroll 40s linear infinite;
}
.cert-track:hover { animation-play-state: paused; }

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

/* Each certificate card */
.cert-card {
  flex-shrink: 0;
  width: 220px;
  background: #fff;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--steel-200);
  cursor: zoom-in;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  padding: 0;
  display: block;
}
.cert-card:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: var(--shadow-elevate);
  border-color: var(--rail);
}
.cert-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.4s ease;
}
.cert-card:hover img { transform: scale(1.05); }
.cert-card-label {
  padding: 0.65rem 0.9rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--steel-700);
  text-align: center;
  background: var(--steel-50);
  border-top: 1px solid var(--steel-200);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

/* Cert lightbox */
.cert-lightbox {
  position: fixed; inset: 0; z-index: 80;
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem;
  background: rgba(0,0,0,0);
  visibility: hidden;
  transition: background 0.3s ease;
}
.cert-lightbox.is-open {
  visibility: visible;
  background: rgba(0,0,0,0.88);
}
.cert-lightbox-inner {
  position: relative;
  max-width: 680px;
  width: 100%;
  background: #fff;
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0,0,0,0.5);
  transform: scale(0.88);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1), opacity 0.3s ease;
}
.cert-lightbox.is-open .cert-lightbox-inner {
  transform: scale(1);
  opacity: 1;
}
.cert-lightbox-inner img {
  width: 100%;
  max-height: 85vh;
  object-fit: contain;
  display: block;
  background: #f5f5f0;
}
.cert-lightbox-caption {
  padding: 0.9rem 1.25rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--rail);
  text-align: center;
  font-family: var(--font-mono);
  background: #fff;
}
.cert-lightbox-close {
  position: absolute; top: 0.75rem; right: 0.75rem;
  width: 2.25rem; height: 2.25rem;
  border-radius: 50%; border: none;
  background: rgba(0,0,0,0.15);
  color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  z-index: 2;
}
.cert-lightbox-close:hover { background: var(--rail); color: #fff; transform: rotate(90deg); }
.cert-lightbox-close svg { width: 18px; height: 18px; }

/* Counter badge */
.cert-count-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--rail);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  margin-top: 1rem;
}

/* Date badge on certificate card */
.cert-card-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}
.cert-date {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--rail);
  background: var(--rail-50);
  border: 1px solid var(--rail-100);
  border-radius: 999px;
  padding: 0.15rem 0.6rem;
  letter-spacing: 0.05em;
  font-family: var(--font-mono);
}