/* ============================================================================
   ABS Engineering Consultants (absengineeringconsultants.in)
   Option A Design System: Industrial Blueprint Slate + Forest/Leaf Green + Gold
   ============================================================================ */

:root {
  /* Core Palette */
  --slate-950: #07111f;
  --slate-900: #0b192c;
  --slate-800: #13263e;
  --slate-700: #1d3554;
  --ink-900: #132030;
  --ink-800: #1e293b;
  --ink-600: #475569;
  --ink-500: #64748b;

  /* Brand Logo Greens & Electric Gold */
  --forest-700: #163a20;
  --forest-600: #1e4d2b;
  --leaf-600: #5a8c2d;
  --leaf-500: #6ea53a;
  --leaf-400: #7aaa46;
  --leaf-100: #ebf5e1;
  --gold-500: #f5c400;
  --gold-400: #ffdc10;
  --gold-100: #fef9db;

  /* Light Surfaces & Drawing Lines */
  --white: #ffffff;
  --sage-50: #f4f7f5;
  --sage-100: #e9f0ec;
  --line: #dce4df;
  --line-dark: rgba(255, 255, 255, 0.12);

  /* Status */
  --danger: #dc2626;
  --danger-bg: #fef2f2;
  --success: #15803d;
  --success-bg: #f0fdf4;

  /* Typography */
  --font-display: 'Barlow', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;

  /* Layout & Radii */
  --container: 1220px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 2px 8px rgba(11, 25, 44, 0.06);
  --shadow-md: 0 12px 32px rgba(11, 25, 44, 0.1);
  --shadow-lg: 0 24px 56px rgba(7, 17, 31, 0.24);
  --transition: 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-800);
  background: var(--white);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin-top: 0;
  color: var(--ink-900);
}
h1 { font-size: clamp(2.15rem, 4.2vw, 3.35rem); }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 1.8vw, 1.45rem); }
p { margin-top: 0; color: var(--ink-600); }

.mono-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: var(--leaf-100);
  color: var(--forest-600);
  border: 1px solid rgba(30, 77, 43, 0.16);
}
.mono-tag--dark {
  background: rgba(110, 165, 58, 0.16);
  color: #b7e485;
  border-color: rgba(110, 165, 58, 0.38);
}
.mono-tag--gold {
  background: rgba(245, 196, 0, 0.15);
  color: #ffe266;
  border-color: rgba(245, 196, 0, 0.38);
}
.mono-tag--gold-light {
  background: var(--gold-100);
  color: #855c00;
  border-color: rgba(245, 196, 0, 0.45);
}

/* Blueprint Grid Surface Pattern */
.blueprint-bg {
  background-color: var(--slate-900);
  background-image:
    linear-gradient(rgba(110, 165, 58, 0.065) 1px, transparent 1px),
    linear-gradient(90deg, rgba(110, 165, 58, 0.065) 1px, transparent 1px),
    radial-gradient(circle at 82% 18%, rgba(110, 165, 58, 0.14), transparent 44%),
    radial-gradient(circle at 12% 85%, rgba(245, 196, 0, 0.08), transparent 40%);
  background-size: 40px 40px, 40px 40px, 100% 100%, 100% 100%;
  color: var(--white);
}
.blueprint-bg h1, .blueprint-bg h2, .blueprint-bg h3, .blueprint-bg h4 { color: var(--white); }
.blueprint-bg p { color: #cbd5e1; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  padding: 0.82rem 1.55rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), background var(--transition), border-color var(--transition), box-shadow var(--transition), color var(--transition);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(135deg, var(--forest-600), var(--leaf-500));
  color: var(--white);
  box-shadow: 0 8px 20px rgba(30, 77, 43, 0.28);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--forest-700), var(--leaf-600));
  box-shadow: 0 10px 26px rgba(30, 77, 43, 0.36);
}

.btn-gold {
  background: var(--gold-500);
  color: var(--slate-950);
  box-shadow: 0 8px 20px rgba(245, 196, 0, 0.25);
}
.btn-gold:hover { background: var(--gold-400); }

.btn-outline-light {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.32);
  color: var(--white);
}
.btn-outline-light:hover {
  border-color: var(--gold-500);
  color: var(--gold-400);
  background: rgba(245, 196, 0, 0.08);
}

.btn-outline-dark {
  background: var(--white);
  border-color: var(--line);
  color: var(--ink-900);
}
.btn-outline-dark:hover {
  border-color: var(--forest-600);
  color: var(--forest-600);
  background: var(--sage-50);
}

.btn-sm { padding: 0.56rem 1.05rem; font-size: 0.9rem; }

/* ============================================================================
   Top Utility Bar & Sticky Header
   ============================================================================ */
.topbar {
  background: var(--slate-950);
  color: #cbd5e1;
  font-size: 0.84rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 42px;
  flex-wrap: wrap;
  padding-block: 0.4rem;
}
.topbar-group {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  flex-wrap: wrap;
}
.topbar-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #cbd5e1;
  transition: color var(--transition);
}
.topbar-item:hover { color: var(--gold-400); }
.topbar-item svg { width: 15px; height: 15px; color: var(--leaf-400); flex-shrink: 0; }
.topbar-gstin {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: #94a3b8;
  padding: 0.16rem 0.55rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow var(--transition);
}
.site-header.is-scrolled { box-shadow: 0 8px 28px rgba(11, 25, 44, 0.1); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 78px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}
.brand-logo {
  height: 54px;
  width: auto;
  object-fit: contain;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-item { position: relative; }
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 0.9rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--ink-800);
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}
.nav-link:hover, .nav-link.is-active {
  color: var(--forest-600);
  background: var(--sage-50);
}
.nav-link.is-active { box-shadow: inset 0 -2px 0 var(--leaf-500); }

/* Dropdown */
.nav-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 320px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 0.6rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
  z-index: 950;
}
.nav-item--dropdown:hover .nav-dropdown,
.nav-item--dropdown:focus-within .nav-dropdown,
.nav-item--dropdown.is-open .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-link {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}
.dropdown-link:hover { background: var(--sage-50); }
.dropdown-link strong {
  font-family: var(--font-display);
  font-size: 0.98rem;
  color: var(--ink-900);
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.dropdown-link span { font-size: 0.82rem; color: var(--ink-500); line-height: 1.4; }
.dot-green, .dot-gold, .dot-slate {
  width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
}
.dot-green { background: var(--leaf-500); }
.dot-gold  { background: var(--gold-500); }
.dot-slate { background: var(--slate-700); }

.nav-actions { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; }

.mobile-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink-900);
  cursor: pointer;
}

/* Mobile Drawer */
.mobile-drawer {
  display: none;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding: 1rem 1.5rem 1.5rem;
  box-shadow: var(--shadow-md);
}
.mobile-drawer.is-open { display: block; }
.mobile-drawer a {
  display: block;
  padding: 0.72rem 0.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink-900);
  border-bottom: 1px solid var(--sage-100);
}
.mobile-drawer .mobile-sublink {
  padding-left: 1.35rem;
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--ink-600);
}

/* ============================================================================
   Hero Section
   ============================================================================ */
.hero {
  position: relative;
  padding-block: clamp(3.5rem, 6vw, 5.5rem);
  overflow: hidden;
  border-bottom: 3px solid var(--leaf-500);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
}
.hero-content { position: relative; z-index: 2; }
.hero-title {
  margin-block: 1rem 1.2rem;
  color: var(--white);
}
.hero-title .accent-green { color: #9be05a; }
.hero-title .accent-gold  { color: var(--gold-400); }
.hero-lead {
  font-size: 1.07rem;
  line-height: 1.72;
  color: #cbd5e1;
  max-width: 60ch;
  margin-bottom: 1.85rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 2.2rem;
}
.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-dark);
}
.hero-metric strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--white);
}
.hero-metric span {
  font-size: 0.82rem;
  color: #94a3b8;
}

.hero-visual-frame {
  position: relative;
  background: var(--slate-800);
  border: 1px solid rgba(110, 165, 58, 0.35);
  border-radius: var(--radius-lg);
  padding: 0.75rem;
  box-shadow: var(--shadow-lg);
}
.hero-visual-frame::before {
  content: 'CAD // 3D MEP & PLANT MODEL — REV 01';
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: #9be05a;
  padding: 0.25rem 0.5rem 0.65rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 0.75rem;
}
.hero-visual-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius-md);
}
.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.85rem;
}
.hero-chip {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  background: rgba(11, 25, 44, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #e2e8f0;
}
.hero-chip--green { border-color: rgba(110, 165, 58, 0.55); color: #b7e485; }
.hero-chip--gold  { border-color: rgba(245, 196, 0, 0.55); color: var(--gold-400); }

/* ============================================================================
   Trust Strip (Software & Standards)
   ============================================================================ */
.trust-strip {
  background: var(--sage-50);
  border-bottom: 1px solid var(--line);
  padding-block: 1.65rem;
}
.trust-strip-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}
.software-badge {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 0.95rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  transition: border-color var(--transition), transform var(--transition);
}
.software-badge:hover {
  border-color: var(--leaf-500);
  transform: translateY(-2px);
}
.software-badge small {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--forest-600);
  font-weight: 600;
}
.software-badge strong {
  font-family: var(--font-display);
  font-size: 1.08rem;
  color: var(--ink-900);
}
.software-badge span { font-size: 0.8rem; color: var(--ink-500); }

/* ============================================================================
   Sections & Headings
   ============================================================================ */
.section { padding-block: clamp(3.5rem, 6vw, 5.5rem); }
.section--tint { background: var(--sage-50); border-block: 1px solid var(--line); }

.section-header {
  max-width: 740px;
  margin-bottom: 2.75rem;
}
.section-header--center {
  margin-inline: auto;
  text-align: center;
}
.section-header h2 { margin-block: 0.75rem 0.8rem; }
.section-header p { font-size: 1.04rem; margin-bottom: 0; }

/* Page Hero (Subpages) */
.page-hero {
  padding-block: clamp(3rem, 5vw, 4.4rem);
  border-bottom: 3px solid var(--leaf-500);
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: #94a3b8;
  margin-bottom: 1rem;
}
.breadcrumb a:hover { color: var(--gold-400); }
.page-hero h1 { margin-bottom: 0.9rem; max-width: 24ch; }
.page-hero p { max-width: 68ch; font-size: 1.06rem; margin-bottom: 0; }

/* ============================================================================
   About Snapshot & Pillar Cards
   ============================================================================ */
.split-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
}
.value-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem;
}
.value-card {
  background: var(--sage-50);
  border: 1px solid var(--line);
  border-top: 3px solid var(--forest-600);
  border-radius: var(--radius-md);
  padding: 1.3rem;
}
.value-card--gold { border-top-color: var(--gold-500); }
.value-card h3 { font-size: 1.1rem; margin-bottom: 0.45rem; }
.value-card p { font-size: 0.9rem; margin-bottom: 0; }

/* Two Flagship Discipline Pillars */
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.85rem;
}
.pillar-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.pillar-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--leaf-500);
}
.pillar-card--electrical:hover { border-color: var(--gold-500); }
.pillar-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--slate-900);
}
.pillar-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.pillar-card:hover .pillar-media img { transform: scale(1.04); }
.pillar-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.35rem 0.7rem;
  border-radius: 6px;
  background: rgba(11, 25, 44, 0.9);
  color: #b7e485;
  border: 1px solid rgba(110, 165, 58, 0.45);
}
.pillar-badge--gold {
  color: var(--gold-400);
  border-color: rgba(245, 196, 0, 0.5);
}
.pillar-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.pillar-body h3 { font-size: 1.45rem; margin-bottom: 0.75rem; }
.pillar-list {
  list-style: none;
  margin: 0.75rem 0 1.5rem;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}
.pillar-list li {
  position: relative;
  padding-left: 1.45rem;
  font-size: 0.93rem;
  color: var(--ink-600);
}
.pillar-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.52rem;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--leaf-500);
}
.pillar-card--electrical .pillar-list li::before { background: var(--gold-500); }
.pillar-footer { margin-top: auto; padding-top: 0.5rem; }

/* ============================================================================
   6-Stage EPC Lifecycle Stepper
   ============================================================================ */
.epc-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.35rem;
}
.epc-step {
  background: rgba(19, 38, 62, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  position: relative;
  transition: border-color var(--transition), transform var(--transition);
}
.epc-step:hover {
  border-color: var(--leaf-400);
  transform: translateY(-3px);
}
.epc-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: rgba(110, 165, 58, 0.18);
  color: #a9e36e;
  border: 1px solid rgba(110, 165, 58, 0.45);
  margin-bottom: 0.95rem;
}
.epc-step h3 { color: var(--white); font-size: 1.18rem; margin-bottom: 0.5rem; }
.epc-step p { color: #cbd5e1; font-size: 0.92rem; margin-bottom: 0; }

/* ============================================================================
   Core Strengths / 5-Card Grid
   ============================================================================ */
.strengths-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.35rem;
}
.strength-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.55rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.strength-card:hover {
  border-color: var(--leaf-500);
  box-shadow: var(--shadow-sm);
}
.strength-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--leaf-100);
  color: var(--forest-600);
}
.strength-icon--gold {
  background: var(--gold-100);
  color: #946600;
}
.strength-card h3 { font-size: 1.16rem; margin-bottom: 0; }
.strength-card p { font-size: 0.93rem; margin-bottom: 0; }

/* ============================================================================
   Projects Grid, Filters & Modal
   ============================================================================ */
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2rem;
}
.filter-tab {
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--white);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink-600);
  cursor: pointer;
  transition: all var(--transition);
}
.filter-tab:hover { border-color: var(--forest-600); color: var(--forest-600); }
.filter-tab.is-active {
  background: var(--forest-600);
  border-color: var(--forest-600);
  color: var(--white);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}
.project-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.project-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--leaf-500);
}
.project-card[hidden] { display: none; }
.project-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--slate-900);
  overflow: hidden;
}
.project-thumb img { width: 100%; height: 100%; object-fit: cover; }
.project-cat {
  position: absolute;
  bottom: 0.75rem;
  left: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.28rem 0.65rem;
  border-radius: 5px;
  background: rgba(11, 25, 44, 0.9);
  color: var(--white);
  border: 1px solid rgba(110, 165, 58, 0.5);
}
.project-body {
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.project-sector {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--forest-600);
  margin-bottom: 0.35rem;
}
.project-body h3 { font-size: 1.15rem; margin-bottom: 0.55rem; }
.project-body p { font-size: 0.9rem; margin-bottom: 1rem; }
.project-meta {
  margin-top: auto;
  padding-top: 0.85rem;
  border-top: 1px solid var(--sage-100);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.82rem;
  color: var(--ink-500);
}
.project-open-btn {
  background: none;
  border: none;
  padding: 0;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--forest-600);
  cursor: pointer;
}
.project-open-btn:hover { color: var(--leaf-600); text-decoration: underline; }

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(7, 17, 31, 0.78);
  backdrop-filter: blur(4px);
  display: grid;
  place-items: center;
  padding: 1.25rem;
  z-index: 1200;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}
.modal-backdrop.is-open { opacity: 1; visibility: visible; }
.modal-card {
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  position: relative;
}
.modal-close {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(11, 25, 44, 0.82);
  color: var(--white);
  font-size: 1.3rem;
  cursor: pointer;
  z-index: 2;
}
.modal-media { aspect-ratio: 16 / 9; background: var(--slate-900); }
.modal-media img { width: 100%; height: 100%; object-fit: cover; }
.modal-content { padding: 1.65rem; }
.modal-specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  background: var(--sage-50);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-block: 1.15rem;
}
.modal-specs small {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--ink-500);
  text-transform: uppercase;
}
.modal-specs strong { font-size: 0.92rem; color: var(--ink-900); }

/* ============================================================================
   Quote & Contact Forms
   ============================================================================ */
.quote-layout {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: clamp(2rem, 4vw, 3.25rem);
  align-items: start;
}
.quote-info-box {
  background: var(--slate-900);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid rgba(110, 165, 58, 0.35);
}
.quote-info-box h2, .quote-info-box h3 { color: var(--white); }
.quote-info-box p { color: #cbd5e1; }
.quote-checklist {
  list-style: none;
  padding: 0;
  margin: 1.4rem 0;
  display: grid;
  gap: 0.85rem;
}
.quote-checklist li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: 0.93rem;
  color: #e2e8f0;
}
.quote-checklist .check-badge {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: rgba(110, 165, 58, 0.25);
  color: #9be05a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  box-shadow: var(--shadow-md);
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.05rem;
}
.form-field { display: flex; flex-direction: column; gap: 0.4rem; }
.form-field--full { grid-column: 1 / -1; }
.form-field label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink-900);
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.76rem 0.95rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--sage-50);
  color: var(--ink-900);
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  background: var(--white);
  border-color: var(--leaf-500);
  box-shadow: 0 0 0 3px rgba(110, 165, 58, 0.18);
}
.form-field textarea { min-height: 118px; resize: vertical; }
.field-error { font-size: 0.82rem; color: var(--danger); min-height: 1.1em; }
.form-field.has-error input,
.form-field.has-error select,
.form-field.has-error textarea { border-color: var(--danger); background: var(--danger-bg); }
.file-hint { font-size: 0.78rem; color: var(--ink-500); }

.hp-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.alert {
  padding: 0.95rem 1.15rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.15rem;
  font-size: 0.94rem;
  border: 1px solid transparent;
}
.alert--success { background: var(--success-bg); color: var(--success); border-color: #bbf7d0; }
.alert--error   { background: var(--danger-bg); color: var(--danger); border-color: #fecaca; }

/* ============================================================================
   Comparison Table & Technical Spec Grids (About & Service Detail Pages)
   ============================================================================ */
.comparison-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}
.compare-box {
  border-radius: var(--radius-md);
  padding: 1.75rem;
  border: 1px solid var(--line);
}
.compare-box--muted { background: var(--sage-50); }
.compare-box--abs {
  background: var(--slate-900);
  color: var(--white);
  border-color: var(--leaf-500);
}
.compare-box--abs h3 { color: var(--white); }
.compare-box ul { margin: 1rem 0 0; padding-left: 1.2rem; display: grid; gap: 0.65rem; }
.compare-box--abs li { color: #e2e8f0; }

.scope-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem;
}
.scope-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--leaf-500);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}
.scope-card--gold { border-left-color: var(--gold-500); }
.scope-card h3 { margin-bottom: 0.55rem; }
.scope-card ul { margin: 0.6rem 0 0; padding-left: 1.15rem; color: var(--ink-600); display: grid; gap: 0.4rem; }

.standards-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.1rem;
}
.standard-pill {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.42rem 0.85rem;
  border-radius: 6px;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--ink-900);
}

/* Contact Page Map & Cards */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}
.contact-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.45rem;
}
.contact-card h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.contact-card a { color: var(--forest-600); font-weight: 600; }
.map-frame {
  width: 100%;
  height: 320px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  display: block;
}

/* ============================================================================
   Footer
   ============================================================================ */
.site-footer {
  background: var(--slate-950);
  color: #cbd5e1;
  border-top: 3px solid var(--forest-600);
  padding-top: 4rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr 0.9fr 1.15fr;
  gap: 2.25rem;
  padding-bottom: 3rem;
}
.footer-logo-badge {
  display: inline-block;
  background: var(--white);
  padding: 0.55rem 0.9rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
}
.footer-logo-badge img { height: 48px; width: auto; }
.site-footer h4 {
  color: var(--white);
  font-size: 1.05rem;
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: 0.45rem;
}
.site-footer h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 28px;
  height: 2px;
  background: var(--leaf-500);
}
.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}
.footer-links a {
  font-size: 0.93rem;
  color: #cbd5e1;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--gold-400); }
.footer-contact-list {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: grid;
  gap: 0.65rem;
  font-size: 0.92rem;
}
.footer-map {
  width: 100%;
  height: 150px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-sm);
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-block: 1.3rem;
  font-size: 0.86rem;
  color: #94a3b8;
}
.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-legal { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.footer-legal a:hover { color: var(--white); }

/* Scroll Reveal */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Legal Prose */
.prose { max-width: 820px; }
.prose h2 { font-size: 1.45rem; margin-top: 2rem; margin-bottom: 0.65rem; }
.prose p, .prose li { color: var(--ink-600); }
.prose ul { padding-left: 1.25rem; }

/* ============================================================================
   Responsive Breakpoints
   ============================================================================ */
@media (max-width: 1060px) {
  .hero-grid,
  .split-grid,
  .quote-layout,
  .pillar-grid,
  .comparison-grid,
  .scope-grid {
    grid-template-columns: 1fr;
  }
  .epc-grid,
  .strengths-grid,
  .projects-grid,
  .contact-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .trust-strip-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .nav-menu, .nav-actions { display: none; }
  .mobile-toggle { display: inline-flex; }
}

@media (max-width: 640px) {
  .epc-grid,
  .strengths-grid,
  .projects-grid,
  .contact-cards,
  .value-grid,
  .form-grid,
  .trust-strip-grid,
  .footer-grid,
  .modal-specs {
    grid-template-columns: 1fr;
  }
  .hero-metrics { grid-template-columns: 1fr; gap: 0.75rem; }
  .topbar-gstin { display: none; }
}
