/* ============================================================
   CAPITALS ENGINEERING PROJECTS - style.css
   Dark Industrial · Bebas Neue + Barlow · Fire/Amber Accents
   ============================================================ */

/* ── CSS VARIABLES ─────────────────────────────────────────── */
:root {
  --fire: #e85d04;
  --amber: #f48c06;
  --amber-dim: #c97a05;
  --steel: #111418;
  --steel-mid: #161b21;
  --steel-light: #1d242d;
  --cream: #f0ece4;
  --muted: rgba(240, 236, 228, 0.45);
  --border: rgba(240, 236, 228, 0.08);
  --border-hi: rgba(240, 236, 228, 0.14);
  --font-disp: "Bebas Neue", sans-serif;
  --font-cond: "Barlow Condensed", sans-serif;
  --font-body: "Barlow", sans-serif;
  --nav-h: 72px;
  --radius: 2px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

body {
  font-family: var(--font-body);
  font-weight: 400;
  background: var(--steel);
  color: var(--cream);
  line-height: 1.6;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

img,
video {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
ul {
  list-style: none;
}
button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
}
input,
textarea,
select {
  font-family: inherit;
}

/* ── TYPOGRAPHY HELPERS ─────────────────────────────────────── */
.eyebrow {
  font-family: var(--font-cond);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--fire);
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.9rem;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 22px;
  height: 2px;
  background: var(--fire);
  flex-shrink: 0;
}

.s-title {
  font-family: var(--font-disp);
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  letter-spacing: 0.03em;
  line-height: 1.05;
  color: var(--cream);
}

.s-desc {
  font-size: 0.875rem;
  line-height: 1.85;
  color: var(--muted);
  max-width: 480px;
}

.accent {
  color: var(--fire);
}

/* ── SECTION HEAD ───────────────────────────────────────────── */
.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 3rem;
  margin-bottom: 3.5rem;
  flex-wrap: wrap;
}

/* ── BUTTONS ────────────────────────────────────────────────── */
.btn-fire,
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-cond);
  font-size: 0.82rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 0.85rem 2rem;
  border-radius: var(--radius);
  transition:
    background 0.22s var(--ease-out),
    color 0.22s var(--ease-out),
    border-color 0.22s var(--ease-out),
    transform 0.18s var(--ease-out),
    box-shadow 0.22s var(--ease-out);
  position: relative;
  overflow: hidden;
}

.btn-fire {
  background: var(--fire);
  color: #fff;
  border: 1.5px solid var(--fire);
}
.btn-fire::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.08);
  opacity: 0;
  transition: opacity 0.2s;
}
.btn-fire:hover::after {
  opacity: 1;
}
.btn-fire:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(232, 93, 4, 0.35);
}
.btn-fire:active {
  transform: translateY(0);
}

.btn-outline {
  background: transparent;
  color: var(--cream);
  border: 1.5px solid var(--border-hi);
}
.btn-outline:hover {
  border-color: var(--amber);
  color: var(--amber);
  transform: translateY(-2px);
}

/* ── NAV ────────────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4vw;
  background: rgba(17, 20, 24, 0.82);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}
.nav-logo img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  border-radius: 4px;
}
.nav-brand {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.nav-brand-name {
  font-family: var(--font-disp);
  font-size: 1.25rem;
  letter-spacing: 0.08em;
  color: var(--cream);
}
.nav-brand-sub {
  font-family: var(--font-cond);
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Desktop Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin: 0 auto;
  padding: 0 2rem;
}
.nav-links > li > a,
.nav-dropdown-btn {
  font-family: var(--font-cond);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(240, 236, 228, 0.7);
  padding: 0.55rem 0.9rem;
  border-radius: var(--radius);
  transition:
    color 0.18s,
    background 0.18s;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.nav-links > li > a:hover,
.nav-dropdown-btn:hover {
  color: var(--cream);
  background: rgba(255, 255, 255, 0.05);
}

/* Dropdown */
.nav-dropdown-wrap {
  position: relative;
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: #1a2028;
  border: 1px solid var(--border-hi);
  border-radius: 4px;
  min-width: 290px;
  padding: 0.5rem 0;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.2s var(--ease-out),
    transform 0.2s var(--ease-out);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}
.nav-dropdown-wrap.open .nav-dropdown {
  opacity: 1;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-header {
  font-family: var(--font-cond);
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--fire);
  padding: 0.6rem 1.2rem 0.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0.3rem;
}
.nav-dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.7rem 1.2rem;
  transition: background 0.15s;
}
.nav-dropdown-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.nav-dropdown-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(232, 93, 4, 0.1);
  border: 1px solid rgba(232, 93, 4, 0.2);
  border-radius: 4px;
  flex-shrink: 0;
  color: var(--amber);
}
.nav-dropdown-title {
  font-family: var(--font-cond);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: var(--cream);
  margin-bottom: 0.15rem;
}
.nav-dropdown-sub {
  font-size: 0.72rem;
  color: var(--muted);
}

/* CTA button in nav */
.nav-cta {
  font-family: var(--font-cond);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.6rem 1.4rem;
  background: var(--fire);
  color: #fff;
  border-radius: var(--radius);
  flex-shrink: 0;
  transition:
    background 0.2s,
    transform 0.18s,
    box-shadow 0.2s;
}
.nav-cta:hover {
  background: #c94e00;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(232, 93, 4, 0.3);
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 4px;
  border-radius: var(--radius);
  transition: background 0.15s;
}
.nav-hamburger:hover {
  background: rgba(255, 255, 255, 0.07);
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--cream);
  border-radius: 1px;
  transition:
    transform 0.28s var(--ease-out),
    opacity 0.2s;
  transform-origin: center;
}
.nav-hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Nav */
.nav-mobile {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  height: calc(100dvh - var(--nav-h));
  background: #0d1117;
  z-index: 850;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.35s var(--ease-out);
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}
.nav-mobile.open {
  transform: translateX(0);
}

.nav-mobile-links {
  padding: 1.5rem 6vw;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex: 1;
}
.nav-mobile-links li > a,
.nav-mobile-group-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  font-family: var(--font-cond);
  font-size: 1rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(240, 236, 228, 0.75);
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--border);
  transition: color 0.18s;
}
.nav-mobile-links li > a:hover,
.nav-mobile-group-btn:hover {
  color: var(--cream);
}

.nav-mobile-sub {
  display: flex;
  flex-direction: column;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s var(--ease-out);
}
.nav-mobile-group.open .nav-mobile-sub {
  max-height: 200px;
}
.nav-mobile-sub a {
  font-family: var(--font-cond);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.7rem 0 0.7rem 1.2rem;
  border-bottom: 1px solid var(--border);
  transition: color 0.15s;
}
.nav-mobile-sub a:hover {
  color: var(--amber);
}

.nav-mobile-cta {
  padding: 1.5rem 6vw 2rem;
}
.nav-mobile-cta .btn-fire {
  width: 100%;
  justify-content: center;
}

/* ── HERO (index.html) ──────────────────────────────────────── */
.hero {
  position: relative;
  height: 100dvh;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to right,
      rgba(26, 30, 36, 0.92) 0%,
      rgba(26, 30, 36, 0.5) 55%,
      rgba(26, 30, 36, 0.2) 100%
    ),
    linear-gradient(to top, rgba(26, 30, 36, 0.98) 0%, transparent 85%);
  z-index: 1;
}
.hero-texture {
  position: absolute;
  inset: 0;
  z-index: 2;
  /* background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4'%3E%3Crect width='1' height='1' fill='rgba(255,255,255,0.025)'/%3E%3C/svg%3E"); */
  background-image: repeating-linear-gradient(
    -55deg,
    transparent,
    transparent 40px,
    rgba(255, 255, 255, 0.012) 40px,
    rgba(255, 255, 255, 0.012) 41px
  );
  background-repeat: repeat;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 10;
  padding: 0 5vw;
  padding-top: var(--nav-h);
  max-width: 820px;
}

.hero-tag {
  font-family: var(--font-cond);
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 1.4rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.hero-tag::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 2px;
  background: var(--amber);
}

.hero-title {
  font-family: var(--font-disp);
  font-size: clamp(3.5rem, 8vw, 7.5rem);
  letter-spacing: 0.02em;
  line-height: 0.95;
  color: var(--cream);
  margin-bottom: 1.4rem;
}

.hero-subtitle {
  font-family: var(--font-cond);
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}

.hero-desc {
  font-size: 0.88rem;
  line-height: 1.85;
  color: rgba(240, 236, 228, 0.65);
  max-width: 520px;
  margin-bottom: 2.2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Scroll cue */
.scroll-cue {
  position: absolute;
  bottom: 2.5rem;
  left: 5vw;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.scroll-cue-line {
  width: 40px;
  height: 1px;
  background: var(--border-hi);
  position: relative;
  overflow: hidden;
}
.scroll-cue-line::after {
  content: "";
  position: absolute;
  top: 0;
  left: -40px;
  width: 40px;
  height: 1px;
  background: var(--amber);
  animation: scrollLine 2s infinite;
}
@keyframes scrollLine {
  0% {
    left: -40px;
  }
  100% {
    left: 40px;
  }
}
.scroll-cue-text {
  font-family: var(--font-cond);
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Hero Stats */
.hero-stats {
  position: absolute;
  bottom: 0;
  right: 0;
  z-index: 10;
  display: flex;
}
.hstat {
  padding: 1.4rem 1.8rem;
  background: rgba(10, 12, 16, 0.75);
  backdrop-filter: blur(8px);
  border-left: 1px solid var(--border);
  border-top: 1px solid var(--border);
  text-align: center;
  transition: background 0.2s;
}
.hstat:hover {
  background: rgba(232, 93, 4, 0.08);
}
.hstat-n {
  font-family: var(--font-disp);
  font-size: 1.9rem;
  letter-spacing: 0.04em;
  color: var(--amber);
  line-height: 1;
}
.hstat-l {
  font-family: var(--font-cond);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.3rem;
}

/* ── PAGE HERO (internal pages) ─────────────────────────────── */
.page-hero {
  position: relative;
  min-height: 72vh;
  display: flex;
  align-items: flex-end;
  padding-bottom: 5rem;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

/* Carousel slides inside page-hero */
.hero-carousel {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.carousel-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.carousel-slide.active {
  opacity: 1;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(26, 30, 36, 0.95) 30%,
    rgba(26, 30, 36, 0.6) 100%
  );
}
.page-hero-texture {
  position: absolute;
  inset: 0;
  z-index: 2;
  /* background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4'%3E%3Crect width='1' height='1' fill='rgba(255,255,255,0.02)'/%3E%3C/svg%3E"); */
  background-image: repeating-linear-gradient(
    -55deg,
    transparent,
    transparent 40px,
    rgba(255, 255, 255, 0.012) 40px,
    rgba(255, 255, 255, 0.012) 41px
  );
  pointer-events: none;
}

.page-hero-content {
  position: relative;
  z-index: 10;
  padding: calc(var(--nav-h) + 3rem) 5vw 0;
  max-width: 760px;
}

.page-hero-breadcrumb {
  position: absolute;
  bottom: 1.8rem;
  right: 5vw;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-cond);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}
.page-hero-breadcrumb a {
  color: var(--muted);
  transition: color 0.15s;
}
.page-hero-breadcrumb a:hover {
  color: var(--amber);
}

/* ── SERVICES GRID ──────────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
}

.service-card {
  background: var(--steel);
  padding: 2.2rem 2rem;
  position: relative;
  overflow: hidden;
  transition: background 0.25s;
}
.service-card::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(to right, var(--fire), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease-out);
}
.service-card:hover {
  background: var(--steel-light);
}
.service-card:hover::before {
  transform: scaleX(1);
}

.service-num {
  font-family: var(--font-disp);
  font-size: 3.5rem;
  color: rgba(255, 255, 255, 0.035);
  line-height: 1;
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  pointer-events: none;
}
.service-icon {
  width: 44px;
  height: 44px;
  stroke: rgba(240, 236, 228, 0.4);
  margin-bottom: 1.4rem;
  transition: stroke 0.2s;
}
.service-card:hover .service-icon {
  stroke: var(--cream);
}

.service-name {
  font-family: var(--font-cond);
  font-size: 1.1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cream);
  margin-bottom: 0.8rem;
}
.service-text {
  font-size: 0.82rem;
  line-height: 1.8;
  color: var(--muted);
}

/* ── WHY US SECTION ─────────────────────────────────────────── */
.why-section {
  padding: 7rem 5vw;
  background: var(--steel-mid);
}
.why-inner {
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 6rem;
  align-items: start;
}
.why-visual {
  position: sticky;
  top: calc(var(--nav-h) + 2rem);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
}
.why-big-num {
  font-family: var(--font-disp);
  font-size: clamp(5rem, 10vw, 9rem);
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--fire);
  opacity: 0.9;
}
.why-badge {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  border-left: 2px solid var(--fire);
  padding-left: 1rem;
}
.why-badge-n {
  font-family: var(--font-cond);
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
}
.why-badge-l {
  font-family: var(--font-disp);
  font-size: 1.3rem;
  letter-spacing: 0.06em;
  line-height: 1.2;
  color: var(--cream);
}

.why-points {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.why-point {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
}
.why-point-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(232, 93, 4, 0.1);
  border: 1px solid rgba(232, 93, 4, 0.2);
  border-radius: 4px;
  flex-shrink: 0;
  color: var(--fire);
  margin-top: 0.1rem;
}
.why-point-title {
  font-family: var(--font-cond);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cream);
  margin-bottom: 0.35rem;
}
.why-point-text {
  font-size: 0.81rem;
  line-height: 1.8;
  color: var(--muted);
}
.about-btn {
  margin-top: 1rem;
}

/* ── CONTACT SECTION ────────────────────────────────────────── */
.contact-section {
  padding: 7rem 5vw;
  background: var(--steel);
  max-width: 100%;
}
.contact-section .section-head {
  max-width: 1300px;
  margin: 0 auto 3rem;
}

.contact-grid {
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  gap: 5rem;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.contact-item-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(232, 93, 4, 0.1);
  border: 1px solid rgba(232, 93, 4, 0.18);
  border-radius: 4px;
  flex-shrink: 0;
  color: var(--amber);
}
.contact-item-label {
  font-family: var(--font-cond);
  font-size: 0.65rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.35rem;
}
.contact-item-val {
  font-size: 0.88rem;
  color: var(--cream);
  line-height: 1.5;
}
.contact-item-val a {
  transition: color 0.15s;
}
.contact-item-val a:hover {
  color: var(--amber);
}

.contact-socials-row {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}
.social-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-cond);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid var(--border-hi);
  padding: 0.45rem 0.9rem;
  border-radius: 2px;
  transition: border-color 0.18s, background 0.18s;
}

.social-pill[aria-label="Instagram"] { color: #e1306c; }
.social-pill[aria-label="LinkedIn"]  { color: #0a66c2; }
.social-pill[aria-label="WhatsApp"]  { color: #25d366; }

.social-pill[aria-label="Instagram"]:hover {
  border-color: #e1306c;
  background: rgba(225, 48, 108, 0.08);
}
.social-pill[aria-label="LinkedIn"]:hover {
  border-color: #0a66c2;
  background: rgba(10, 102, 194, 0.08);
}
.social-pill[aria-label="WhatsApp"]:hover {
  border-color: #25d366;
  background: rgba(37, 211, 102, 0.08);
}

/* Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.form-field label {
  font-family: var(--font-cond);
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}
.form-field input,
.form-field select,
.form-field textarea {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-hi);
  border-radius: var(--radius);
  color: var(--cream);
  font-size: 0.87rem;
  padding: 0.8rem 1rem;
  outline: none;
  transition:
    border-color 0.18s,
    background 0.18s;
  -webkit-appearance: none;
  appearance: none;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--fire);
  background: rgba(232, 93, 4, 0.04);
}
.form-field input::placeholder,
.form-field textarea::placeholder {
  color: rgba(240, 236, 228, 0.25);
}
.form-field select option {
  background: #1a2028;
  color: var(--cream);
}
.form-field textarea {
  min-height: 130px;
  resize: vertical;
}

.form-submit {
  font-family: var(--font-cond);
  font-size: 0.82rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 1rem 2.2rem;
  background: var(--fire);
  color: #fff;
  border-radius: var(--radius);
  border: none;
  align-self: flex-start;
  transition:
    background 0.2s,
    transform 0.18s,
    box-shadow 0.2s;
}
.form-submit:hover {
  background: #c94e00;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(232, 93, 4, 0.3);
}

/* ── DIVISION OVERVIEW GRID ─────────────────────────────────── */
.div-overview-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 4rem;
  align-items: start;
}
.div-overview-text p {
  font-size: 0.88rem;
  line-height: 1.9;
  color: rgba(240, 236, 228, 0.68);
}
.div-spec-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}
.spec-tag {
  font-family: var(--font-cond);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
  border: 1px solid rgba(244, 140, 6, 0.3);
  padding: 0.3rem 0.75rem;
  border-radius: 1px;
  background: rgba(244, 140, 6, 0.06);
}

/* Division Stats */
.div-overview-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
}
.div-stat {
  background: var(--steel-mid);
  padding: 1.8rem 1.5rem;
  text-align: center;
  transition: background 0.2s;
}
.div-stat:hover {
  background: var(--steel-light);
}
.div-stat-n {
  font-family: var(--font-disp);
  font-size: 2.2rem;
  letter-spacing: 0.04em;
  color: var(--amber);
  line-height: 1;
  margin-bottom: 0.4rem;
}
.div-stat-l {
  font-family: var(--font-cond);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ── APPLICATIONS GRID ──────────────────────────────────────── */
.applications-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
}
.application-card {
  background: var(--steel);
  padding: 1.8rem 1.6rem;
  position: relative;
  overflow: hidden;
  transition: background 0.22s;
}
.application-card:hover {
  background: var(--steel-light);
}

.application-num {
  font-family: var(--font-disp);
  font-size: 2.8rem;
  color: rgba(255, 255, 255, 0.04);
  position: absolute;
  top: 0.8rem;
  right: 1.2rem;
  line-height: 1;
  pointer-events: none;
}
.application-name {
  font-family: var(--font-cond);
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cream);
  margin-bottom: 0.7rem;
  position: relative;
  padding-bottom: 0.7rem;
}
.application-name::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 24px;
  height: 1px;
  background: var(--fire);
}
.application-text {
  font-size: 0.82rem;
  line-height: 1.75;
  color: var(--muted);
}

/* ── TECH GRID (About page) ─────────────────────────────────── */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
}
.tech-item {
  background: var(--steel-mid);
  padding: 1.2rem 1.4rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: background 0.18s;
}
.tech-item:hover {
  background: var(--steel-light);
}
.tech-item-dot {
  width: 6px;
  height: 6px;
  border: 1.5px solid rgba(240, 236, 228, 0.3);
  border-radius: 50%;
  flex-shrink: 0;
}
.tech-item-text {
  font-size: 0.83rem;
  color: rgba(240, 236, 228, 0.65);
}

/* ── QUALITY ASSURANCE GRID ─────────────────────────────────── */
.qa-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
}
.qa-item {
  background: var(--steel);
  padding: 1.8rem 1.4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  text-align: center;
  transition: background 0.2s;
}
.qa-item:hover {
  background: var(--steel-light);
}
.qa-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(232, 93, 4, 0.08);
  border: 1px solid rgba(232, 93, 4, 0.18);
  border-radius: 4px;
  color: var(--amber);
}
.qa-name {
  font-family: var(--font-cond);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(240, 236, 228, 0.7);
  line-height: 1.35;
}

/* ── VALUES / CAPABILITY GRID ───────────────────────────────── */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
}
.value-card {
  background: var(--steel-mid);
  padding: 2rem 1.8rem;
  position: relative;
  overflow: hidden;
  transition: background 0.22s;
}
.value-card:hover {
  background: var(--steel-light);
}
.value-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(232, 93, 4, 0.08);
  border: 1px solid rgba(232, 93, 4, 0.18);
  border-radius: 4px;
  color: var(--fire);
  margin-bottom: 1.2rem;
  transition:
    background 0.2s,
    border-color 0.2s;
}
.value-card:hover .value-icon {
  background: rgba(232, 93, 4, 0.15);
  border-color: rgba(232, 93, 4, 0.35);
}
.value-title {
  font-family: var(--font-cond);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cream);
  margin-bottom: 0.75rem;
}
.value-text {
  font-size: 0.82rem;
  line-height: 1.78;
  color: var(--muted);
}

/* ── CAPABILITY PILLS ───────────────────────────────────────── */
.capability-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.capability-pill {
  font-family: var(--font-cond);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.5rem 1rem;
  border: 1px solid var(--border-hi);
  border-radius: 2px;
  color: rgba(240, 236, 228, 0.6);
  transition:
    border-color 0.18s,
    color 0.18s,
    background 0.18s;
}
.capability-pill:hover {
  border-color: var(--amber);
  color: var(--amber);
  background: rgba(244, 140, 6, 0.05);
}

/* ── FACILITY CARDS ─────────────────────────────────────────── */
.facility-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
}
.facility-card {
  background: var(--steel);
  padding: 2.5rem 2.2rem;
  position: relative;
  overflow: hidden;
  transition: background 0.22s;
}
.facility-card:hover {
  background: var(--steel-light);
}
.facility-bg-num {
  position: absolute;
  bottom: -1rem;
  right: 1.5rem;
  font-family: var(--font-disp);
  font-size: 8rem;
  color: rgba(255, 255, 255, 0.025);
  line-height: 1;
  pointer-events: none;
}
.facility-unit-label {
  font-family: var(--font-cond);
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--fire);
  margin-bottom: 0.6rem;
}
.facility-city {
  font-family: var(--font-disp);
  font-size: 2.8rem;
  letter-spacing: 0.04em;
  line-height: 1;
  color: var(--cream);
  margin-bottom: 0.2rem;
}
.facility-district {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 1.4rem;
}
.facility-location-pin,
.facility-area-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: rgba(240, 236, 228, 0.6);
  margin-bottom: 0.5rem;
}
.facility-area-badge {
  color: var(--amber);
  font-family: var(--font-cond);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  margin-bottom: 1.5rem;
}
.facility-ops-label {
  font-family: var(--font-cond);
  font-size: 0.62rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.75rem;
}
.facility-ops-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.facility-ops-list li {
  font-size: 0.83rem;
  color: rgba(240, 236, 228, 0.65);
  padding-left: 1rem;
  position: relative;
}
.facility-ops-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 4px;
  border: 1px solid var(--amber);
  border-radius: 50%;
}

/* ── DIVISION CTA SECTION ───────────────────────────────────── */
.div-cta-section {
  padding: 6rem 5vw;
  background: linear-gradient(135deg, #0d1117 0%, #111a22 100%);
  text-align: center;
  border-top: 1px solid var(--border);
}

/* ── GALLERY ────────────────────────────────────────────────── */

.gallery-container {
  width: 100%;
  margin: 10rem 0rem;
  display: flex;
  justify-content: center;
}
.gallery {
  width: 90%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: auto;
  grid-auto-flow: dense;
  gap: 6px;
}
.gallery figure {
  margin: 0;
  position: relative;
  overflow: hidden;
}
.gallery figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gallery figure.four-grid-cells {
  grid-row: span 2 / auto;
  grid-column: span 2 / auto;
}
.gallery figure.wide-image {
  grid-column: span 2 / auto;
}

.gallery img {
  transition:
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.3s;
  overflow: hidden;
}
.gallery img:hover {
  transform: scale(1.045);
  filter: saturate(1.1);
  z-index: 2;
  position: relative;
}

/* Lightbox */
#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.92);
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
  backdrop-filter: blur(6px);
}
#lightbox.open {
  display: flex;
}
#lightbox img {
  max-width: 92vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 2px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.7);
  cursor: default;
  animation: lbIn 0.28s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes lbIn {
  from {
    opacity: 0;
    transform: scale(0.93);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
#lightbox-close {
  position: fixed;
  top: 1.4rem;
  right: 1.8rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(240, 236, 228, 0.1);
  border: 1px solid rgba(240, 236, 228, 0.15);
  border-radius: 2px;
  cursor: pointer;
  color: rgba(240, 236, 228, 0.75);
  font-size: 1.4rem;
  line-height: 1;
  transition:
    background 0.18s,
    color 0.18s;
  z-index: 10000;
}
#lightbox-close:hover {
  background: rgba(232, 93, 4, 0.2);
  color: #fff;
  border-color: rgba(232, 93, 4, 0.4);
}

/* ── FOOTER ─────────────────────────────────────────────────── */
footer {
  background: #0a0d11;
  border-top: 1px solid var(--border);
}

.footer-main {
  max-width: 1300px;
  margin: 0 auto;
  padding: 5rem 5vw 4rem;
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 0.8fr;
  gap: 3rem;
  align-items: start;
}

.footer-brand-col {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.footer-logo-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.footer-logo-wrap img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 6px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.footer-brand-name {
  font-family: var(--font-disp);
  font-size: 1.5rem;
  letter-spacing: 0.08em;
  color: var(--cream);
}

.footer-brand-sub {
  font-family: var(--font-cond);
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer-tagline {
  font-size: 0.85rem;
  line-height: 1.9;
  color: rgba(240, 236, 228, 0.42);
  max-width: 300px;
}

.footer-col-heading {
  font-family: var(--font-cond);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--fire);
  margin-bottom: 1.3rem;
}

.footer-col-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-col-links a {
  font-family: var(--font-cond);
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  color: rgba(240, 236, 228, 0.55);
  transition: color 0.15s;
}

.footer-col-links a:hover {
  color: var(--amber);
}

.footer-social-icons {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.footer-social-btn {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-hi);
  border-radius: var(--radius);
  transition: border-color 0.18s, background 0.18s;
}

.footer-social-btn[aria-label="Instagram"] { color: #e1306c; }
.footer-social-btn[aria-label="LinkedIn"]  { color: #0a66c2; }
.footer-social-btn[aria-label="WhatsApp"]  { color: #25d366; }

.footer-social-btn[aria-label="Instagram"]:hover {
  border-color: #e1306c;
  background: rgba(225, 48, 108, 0.08);
}
.footer-social-btn[aria-label="LinkedIn"]:hover {
  border-color: #0a66c2;
  background: rgba(10, 102, 194, 0.08);
}
.footer-social-btn[aria-label="WhatsApp"]:hover {
  border-color: #25d366;
  background: rgba(37, 211, 102, 0.08);
}

.footer-bottom {
  max-width: 1300px;
  margin: 0 auto;
  padding: 1.4rem 5vw;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-copy {
  font-size: 0.75rem;
  color: rgba(240, 236, 228, 0.3);
  line-height: 1.6;
}

/* ── ANIMATIONS.CSS SUPPORT (base classes used by animations.js) */
[data-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.7s var(--ease-out),
    transform 0.7s var(--ease-out);
}
[data-animate].in-view {
  opacity: 1;
  transform: translateY(0);
}
[data-animate-delay="1"] {
  transition-delay: 0.1s;
}
[data-animate-delay="2"] {
  transition-delay: 0.2s;
}
[data-animate-delay="3"] {
  transition-delay: 0.3s;
}
[data-animate-delay="4"] {
  transition-delay: 0.4s;
}
[data-animate-delay="5"] {
  transition-delay: 0.5s;
}

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (min-width: 1400px) {
  html {
    font-size: 17px;
  }

  .s-desc {
    font-size: 0.9rem;
  }
  .service-text,
  .application-text,
  .value-text {
    font-size: 0.92rem;
  }
  .why-point-text {
    font-size: 0.9rem;
  }
  .footer-copy {
    font-size: 0.82rem;
  }
  .footer-col-links a {
    font-size: 1rem;
  }
  .footer-tagline {
    font-size: 0.92rem;
  }
  .tech-item-text {
    font-size: 0.92rem;
  }
  .qa-name {
    font-size: 0.85rem;
  }
  .facility-ops-list li {
    font-size: 0.92rem;
  }
}

@media (min-width: 1800px) {
  html {
    font-size: 18px;
  }

  .s-desc {
    font-size: 0.95rem;
  }
  .service-text,
  .application-text,
  .value-text {
    font-size: 0.95rem;
  }
  .why-point-text {
    font-size: 0.92rem;
  }
  .footer-copy {
    font-size: 0.85rem;
  }
  .footer-col-links a {
    font-size: 1.05rem;
  }
}

/* Large desktops: 1400px+ */
@media (min-width: 1400px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Standard desktop: up to 1200px */
@media (max-width: 1200px) {
  .tech-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .qa-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Tablets: up to 1024px */
@media (max-width: 1024px) {
  .nav-links,
  .nav-cta {
    display: none;
  }
  .nav-hamburger {
    display: flex;
  }

  .hero-stats {
    position: relative;
    bottom: auto;
    right: auto;
    width: 100%;
  }

  .why-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .why-visual {
    position: relative;
    top: auto;
    flex-direction: row;
    align-items: center;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .div-overview-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

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

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

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

  .facility-grid {
    grid-template-columns: 1fr;
  }

  .tech-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .qa-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
  .footer-brand-col {
    grid-column: 1 / -1;
  }
}

/* Small tablets & large phones: up to 768px */
@media (max-width: 768px) {
  :root {
    --nav-h: 60px;
  }

  .hero-title {
    font-size: clamp(2.8rem, 10vw, 5rem);
  }
  .s-title {
    font-size: clamp(1.9rem, 6vw, 2.6rem);
  }

  .hero-stats {
    flex-wrap: wrap;
  }
  .hstat {
    flex: 1 1 50%;
  }

  .section-head {
    flex-direction: column;
    gap: 1.2rem;
  }
  .s-desc {
    max-width: 100%;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }
  .applications-grid {
    grid-template-columns: 1fr;
  }
  .values-grid {
    grid-template-columns: 1fr;
  }
  .tech-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .qa-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery {
    grid-template-columns: 1fr 1fr;
  }
  .gallery figure.four-grid-cells {
    grid-column: 1 / -1;
    grid-row: span 1;
    min-height: 260px;
  }
  .gallery img {
    height: 220px;
  }
  .gallery figure.wide-image {
    grid-column: 1 / -1;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .div-overview-stats {
    grid-template-columns: 1fr 1fr;
  }

  .footer-top {
    flex-direction: column;
    gap: 1.5rem;
  }
  .footer-links {
    gap: 1rem;
  }
}

@media (max-width: 600px) {
  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 3rem 5vw 2rem;
  }
  .footer-brand-col {
    grid-column: 1 / -1;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }
}

/* Mobile: up to 480px */
@media (max-width: 480px) {
  nav {
    padding: 0 5vw;
  }

  .hero {
    min-height: 100dvh;
  }
  .hero-content {
    padding-left: 5vw;
    padding-right: 5vw;
  }
  .hero-title {
    font-size: clamp(2.6rem, 12vw, 4rem);
  }
  .hero-actions {
    flex-direction: column;
  }
  .btn-fire,
  .btn-outline {
    width: 100%;
    justify-content: center;
  }

  .hstat {
    flex: 1 1 100%;
  }

  .tech-grid {
    grid-template-columns: 1fr;
  }
  .qa-grid {
    grid-template-columns: 1fr;
  }

  .gallery {
    grid-template-columns: 1fr;
  }
  .gallery img,
  .gallery figure.four-grid-cells,
  .gallery figure.wide-image {
    grid-column: 1 / -1;
    height: 240px;
    min-height: unset;
  }

  .div-overview-stats {
    grid-template-columns: 1fr 1fr;
  }

  .page-hero {
    min-height: 60vh;
    padding-bottom: 3rem;
  }
  .page-hero-content {
    padding-top: calc(var(--nav-h) + 2rem);
  }
}

/* ── PRINT ──────────────────────────────────────────────────── */
@media print {
  nav,
  footer,
  .nav-mobile,
  .scroll-cue {
    display: none;
  }
  body {
    background: #fff;
    color: #000;
  }
}