/* ═══════════════════════════════════════════════════════════
   HVJ INFRA MECH PVT LTD — Corporate Landing Page
   Palette: primary #0F172A · secondary #1E293B · accent #F97316
   Type: Poppins (headings) · Inter (body)
   ═══════════════════════════════════════════════════════════ */

:root {
  --primary: #0F172A;
  --secondary: #1E293B;
  --accent: #F97316;
  --accent-soft: rgba(249, 115, 22, 0.12);
  --bg: #FFFFFF;
  --grey: #F8FAFC;
  --text: #111827;
  --text-muted: #4B5563;
  --text-inverse: #E2E8F0;
  --border: #E5E7EB;
  --radius: 14px;
  --shadow-sm: 0 2px 10px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 12px 34px rgba(15, 23, 42, 0.12);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.22);
  --font-head: "Poppins", sans-serif;
  --font-body: "Inter", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  overflow-x: hidden;
}
h1, h2, h3, h4, h5 { font-family: var(--font-head); font-weight: 700; color: var(--primary); }
a { color: var(--accent); text-decoration: none; }
a:hover { color: #ea6a0e; }
img { max-width: 100%; height: auto; }

::selection { background: var(--accent); color: #fff; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* ─── Loader ─────────────────────────────── */
#loader {
  position: fixed; inset: 0; z-index: 2000;
  background: var(--primary);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
#loader.hidden { opacity: 0; visibility: hidden; }
.loader-hex { text-align: center; }
.loader-hex img { animation: pulse 1.4s ease-in-out infinite; }
.loader-bar {
  width: 140px; height: 3px; margin: 22px auto 0;
  background: rgba(255,255,255,0.15); border-radius: 3px; overflow: hidden;
}
.loader-bar span {
  display: block; height: 100%; width: 40%;
  background: var(--accent); border-radius: 3px;
  animation: slide 1.1s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(0.92); opacity: 0.75; } }
@keyframes slide { 0% { transform: translateX(-140px); } 100% { transform: translateX(240px); } }

/* ─── Header ─────────────────────────────── */
#site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1030;
  background: transparent;
  transition: background 0.35s ease, box-shadow 0.35s ease, padding 0.35s ease;
}
#site-header .navbar { padding: 18px 0; transition: padding 0.35s ease; }
#site-header.scrolled { background: rgba(15, 23, 42, 0.96); backdrop-filter: blur(10px); box-shadow: 0 6px 24px rgba(0,0,0,0.25); }
#site-header.scrolled .navbar { padding: 10px 0; }

.navbar-brand { display: flex; align-items: center; gap: 12px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-family: var(--font-head); font-weight: 800; font-size: 1.05rem; color: #fff; letter-spacing: 0.04em; }
.brand-text small { font-size: 0.62rem; letter-spacing: 0.34em; color: var(--accent); font-weight: 600; }

.navbar-nav .nav-link {
  color: rgba(255,255,255,0.85); font-weight: 500; font-size: 0.95rem;
  margin: 0 10px; padding: 8px 2px; position: relative;
}
.navbar-nav .nav-link::after {
  content: ""; position: absolute; left: 0; bottom: 2px; height: 2px; width: 0;
  background: var(--accent); transition: width 0.3s ease;
}
.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after { width: 100%; }
.navbar-nav .nav-link:hover, .navbar-nav .nav-link.active { color: #fff; }

.navbar-toggler { border: 0; color: #fff; font-size: 1.5rem; }

.btn-accent {
  background: var(--accent); color: #fff; font-weight: 600;
  border: 2px solid var(--accent); border-radius: 999px;
  padding: 10px 26px; transition: all 0.28s ease;
}
.btn-accent:hover { background: #ea6a0e; border-color: #ea6a0e; color: #fff; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(249,115,22,0.35); }
.btn-accent i { margin-left: 8px; transition: transform 0.28s ease; }
.btn-accent:hover i { transform: translateX(4px); }
.btn-quote { padding: 8px 22px; font-size: 0.92rem; }
.btn-outline-light { border-width: 2px; border-radius: 999px; padding: 10px 26px; font-weight: 600; }
.btn-outline-light:hover { background: #fff; color: var(--primary); transform: translateY(-2px); }

/* Offcanvas */
.offcanvas { background: var(--primary); color: #fff; }
.offcanvas .btn-close { filter: invert(1); }
.mobile-menu li a {
  display: block; padding: 14px 4px; color: rgba(255,255,255,0.9);
  font-family: var(--font-head); font-weight: 600; font-size: 1.1rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.mobile-menu li a:hover { color: var(--accent); padding-left: 12px; transition: all 0.25s; }

/* ─── Hero ─────────────────────────────── */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  color: #fff; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: -8% 0;
  background: url("images/hero-space-frame.webp") center 30% / cover no-repeat;
  will-change: transform;
}
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(105deg, rgba(15,23,42,0.94) 0%, rgba(15,23,42,0.72) 45%, rgba(15,23,42,0.35) 100%),
    linear-gradient(to top, rgba(15,23,42,0.9) 0%, transparent 40%);
}
.hero-content { position: relative; z-index: 2; padding-top: 110px; padding-bottom: 80px; }
.hero-eyebrow {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  font-family: var(--font-head); font-weight: 600; font-size: 0.85rem;
  letter-spacing: 0.28em; color: var(--text-inverse);
}
.hero-eyebrow .tick { width: 46px; height: 3px; background: var(--accent); display: inline-block; }
.hero-eyebrow .dot { color: var(--accent); }
.hero-title {
  font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 800;
  color: #fff; line-height: 1.08; margin: 22px 0 20px; max-width: 15ch;
}
.accent-text { color: var(--accent); position: relative; }
.hero-sub { font-size: 1.15rem; color: rgba(255,255,255,0.85); max-width: 56ch; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.scroll-indicator {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: rgba(255,255,255,0.75);
}
.scroll-indicator:hover { color: #fff; }
.mouse {
  width: 26px; height: 42px; border: 2px solid currentColor; border-radius: 14px;
  display: flex; justify-content: center; padding-top: 7px;
}
.wheel { width: 3px; height: 8px; background: var(--accent); border-radius: 3px; animation: wheel 1.6s ease-in-out infinite; }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }
.scroll-label { font-size: 0.72rem; letter-spacing: 0.3em; text-transform: uppercase; }

/* ─── Sections (shared) ─────────────────── */
.section { padding: 110px 0; }
.section-grey { background: var(--grey); }
.section-dark { background: var(--primary); }
.section-dark .section-title { color: #fff; }

.eyebrow {
  font-family: var(--font-head); font-weight: 600; font-size: 0.8rem;
  letter-spacing: 0.3em; text-transform: uppercase; color: var(--accent);
  display: flex; align-items: center; gap: 12px; margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 38px; height: 3px; background: var(--accent); }
.eyebrow.center { justify-content: center; }
.eyebrow.center::after { content: ""; width: 38px; height: 3px; background: var(--accent); }

.section-title { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; margin-bottom: 18px; }
.section-sub { color: var(--text-muted); max-width: 62ch; margin: 0 auto; }
.section-dark .section-sub { color: rgba(255,255,255,0.7); }
.section-head { margin-bottom: 56px; }

.lead-copy { font-size: 1.06rem; color: var(--text); }
.body-copy { color: var(--text-muted); }
.mini-title { font-size: 1.05rem; display: flex; align-items: center; gap: 10px; }
.mini-title i { color: var(--accent); }
.mission-approach p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 0; }

/* ─── About media collage ─────────────────── */
.about-media {
  position: relative; display: grid;
  grid-template-columns: 1fr 1fr; gap: 18px;
}
.about-img { border-radius: var(--radius); box-shadow: var(--shadow-md); object-fit: cover; width: 100%; }
.img-a { grid-column: 1 / -1; aspect-ratio: 16 / 8; }
.img-b, .img-c { aspect-ratio: 4 / 3; }
.about-badge {
  position: absolute; right: -10px; bottom: -22px;
  display: flex; align-items: center; gap: 12px;
  background: var(--primary); color: #fff;
  border-left: 4px solid var(--accent);
  padding: 16px 22px; border-radius: 12px; box-shadow: var(--shadow-lg);
  font-family: var(--font-head); font-weight: 600; font-size: 0.85rem; line-height: 1.35;
}

/* ─── Stats band ─────────────────────────── */
.stats-band {
  margin-top: 90px;
  background: var(--primary);
  border-left: 6px solid var(--accent);
  border-radius: 18px;
  padding: 46px 30px;
  box-shadow: var(--shadow-lg);
}
.stat { position: relative; }
.stat + .stat::before { }
.stat-value {
  display: block; font-family: var(--font-head); font-weight: 800;
  font-size: clamp(2rem, 4vw, 2.9rem); color: var(--accent); line-height: 1.1;
}
.stat-label {
  display: block; margin-top: 6px; color: rgba(255,255,255,0.75);
  font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600;
}

/* ─── Industries ─────────────────────────── */
.industry-card {
  background: var(--secondary);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  padding: 30px 16px; text-align: center; height: 100%;
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}
.industry-card:hover { transform: translateY(-8px); border-color: var(--accent); background: #24334a; }
.industry-card i {
  font-size: 1.9rem; color: var(--accent); display: block; margin-bottom: 14px;
  transition: transform 0.3s ease;
}
.industry-card:hover i { transform: scale(1.15); }
.industry-card span {
  color: var(--text-inverse); font-family: var(--font-head);
  font-weight: 600; font-size: 0.88rem; line-height: 1.35; display: block;
}

/* ─── Capabilities ───────────────────────── */
.cap-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 34px 28px; height: 100%;
  position: relative; overflow: hidden;
  transition: transform 0.32s ease, box-shadow 0.32s ease, border-color 0.32s ease;
}
.cap-card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: var(--accent); transform: scaleY(0); transform-origin: top;
  transition: transform 0.32s ease;
}
.cap-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); border-color: transparent; }
.cap-card:hover::before { transform: scaleY(1); }
.cap-icon {
  width: 58px; height: 58px; margin-bottom: 20px;
  background: var(--accent-soft); color: var(--accent);
  clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
  display: flex; align-items: center; justify-content: center; font-size: 1.35rem;
  transition: background 0.32s ease, color 0.32s ease;
}
.cap-card:hover .cap-icon { background: var(--accent); color: #fff; }
.cap-card h3 { font-size: 1.12rem; margin-bottom: 10px; }
.cap-card p { color: var(--text-muted); font-size: 0.94rem; margin-bottom: 0; }

/* ─── Portfolio ─────────────────────────── */
.portfolio-filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 44px; }
.filter-btn {
  border: 1.5px solid var(--border); background: #fff; color: var(--text-muted);
  border-radius: 999px; padding: 9px 22px; font-weight: 600; font-size: 0.88rem;
  font-family: var(--font-head); transition: all 0.25s ease; cursor: pointer;
}
.filter-btn:hover { border-color: var(--accent); color: var(--accent); }
.filter-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }

.masonry { columns: 3 320px; column-gap: 22px; }
.p-item {
  break-inside: avoid; margin: 0 0 22px; position: relative;
  border-radius: var(--radius); overflow: hidden; cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.p-item.filtered-out { display: none; }
.p-item img { display: block; width: 100%; transition: transform 0.6s cubic-bezier(0.2, 0.6, 0.2, 1); }
.p-item:hover img { transform: scale(1.06); }
.p-item figcaption {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  justify-content: flex-end; align-items: flex-start; padding: 22px;
  background: linear-gradient(to top, rgba(15,23,42,0.92) 0%, rgba(15,23,42,0.25) 55%, transparent 100%);
  opacity: 0; transition: opacity 0.35s ease;
}
.p-item:hover figcaption { opacity: 1; }
.p-item figcaption h3 {
  color: #fff; font-size: 1.02rem; margin: 10px 0 0;
  transform: translateY(10px); transition: transform 0.35s ease;
}
.p-item:hover figcaption h3 { transform: translateY(0); }
.badge-cat {
  display: inline-block; background: var(--accent); color: #fff;
  font-family: var(--font-head); font-weight: 600; font-size: 0.66rem;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 4px;
}

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 1500;
  background: rgba(15, 23, 42, 0.96);
  display: flex; align-items: center; justify-content: center;
  padding: 60px 80px;
  animation: fadeIn 0.3s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.lb-figure { max-width: min(1100px, 90vw); margin: 0; text-align: center; }
.lb-figure img {
  max-height: 74vh; max-width: 100%; width: auto;
  border-radius: 10px; box-shadow: var(--shadow-lg);
}
.lb-figure figcaption { margin-top: 18px; }
.lb-figure h3 { color: #fff; font-size: 1.15rem; margin-top: 10px; }
.lb-close, .lb-prev, .lb-next {
  position: absolute; background: rgba(255,255,255,0.08); color: #fff;
  border: 1px solid rgba(255,255,255,0.18); border-radius: 50%;
  width: 52px; height: 52px; font-size: 1.15rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.25s ease, transform 0.25s ease;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: var(--accent); transform: scale(1.08); }
.lb-close { top: 24px; right: 24px; }
.lb-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 20px; top: 50%; transform: translateY(-50%); }
.lb-prev:hover { transform: translateY(-50%) scale(1.08); }
.lb-next:hover { transform: translateY(-50%) scale(1.08); }

/* ─── Why Choose ─────────────────────────── */
.why-section { position: relative; }
.why-card {
  background: var(--secondary); border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius); padding: 38px 28px; height: 100%; text-align: center;
  transition: transform 0.32s ease, border-color 0.32s ease, box-shadow 0.32s ease;
}
.why-card:hover { transform: translateY(-10px); border-color: var(--accent); box-shadow: 0 20px 44px rgba(0,0,0,0.35); }
.why-hex {
  width: 74px; height: 82px; margin: 0 auto 22px;
  background: var(--accent);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.65rem;
  transition: transform 0.4s ease;
}
.why-card:hover .why-hex { transform: rotate(-8deg) scale(1.08); }
.why-card h3 { color: #fff; font-size: 1.15rem; margin-bottom: 12px; }
.why-card p { color: rgba(255,255,255,0.7); font-size: 0.94rem; margin-bottom: 0; }

/* ─── Process Timeline ───────────────────── */
.process-timeline {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 26px;
  counter-reset: step; position: relative;
}
.process-timeline::before {
  content: ""; position: absolute; top: 33px; left: 8%; right: 8%;
  height: 2px; background: repeating-linear-gradient(90deg, var(--accent) 0 10px, transparent 10px 20px);
  z-index: 0;
}
.process-timeline li { position: relative; z-index: 1; text-align: center; padding-top: 0; }
.step-no {
  display: flex; align-items: center; justify-content: center;
  width: 66px; height: 66px; margin: 0 auto 20px;
  background: #fff; border: 2px solid var(--accent);
  border-radius: 50%; color: var(--accent);
  font-family: var(--font-head); font-weight: 800; font-size: 1.15rem;
  box-shadow: var(--shadow-sm); transition: all 0.3s ease;
}
.process-timeline li:hover .step-no { background: var(--accent); color: #fff; transform: scale(1.1); }
.process-timeline h3 { font-size: 1.08rem; margin-bottom: 8px; }
.process-timeline p { color: var(--text-muted); font-size: 0.9rem; margin: 0; }

/* ─── CTA ─────────────────────────────────── */
.cta-section { position: relative; padding: 140px 0; overflow: hidden; }
.cta-bg {
  position: absolute; inset: -12% 0;
  background: url("images/cta-industrial-site.webp") center / cover no-repeat;
  will-change: transform;
}
.cta-overlay { position: absolute; inset: 0; background: linear-gradient(rgba(15,23,42,0.88), rgba(15,23,42,0.82)); }
.cta-title { color: #fff; font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; }
.cta-sub { color: var(--accent); font-family: var(--font-head); font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; font-size: 0.9rem; margin: 14px 0 34px; }

/* ─── Contact ─────────────────────────────── */
.contact-list li { display: flex; align-items: flex-start; gap: 18px; margin-bottom: 26px; }
.c-icon {
  flex: 0 0 auto; width: 52px; height: 58px;
  background: var(--primary); color: var(--accent);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  display: flex; align-items: center; justify-content: center; font-size: 1.15rem;
}
.contact-list strong { display: block; font-family: var(--font-head); font-size: 0.95rem; }
.contact-list a { color: var(--text-muted); }
.contact-list a:hover { color: var(--accent); }

.map-frame {
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border); box-shadow: var(--shadow-sm);
}
.map-placeholder {
  aspect-ratio: 16 / 10; background:
    linear-gradient(rgba(248,250,252,0.94), rgba(248,250,252,0.94)),
    repeating-linear-gradient(0deg, var(--border) 0 1px, transparent 1px 40px),
    repeating-linear-gradient(90deg, var(--border) 0 1px, transparent 1px 40px);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  color: var(--text-muted); font-family: var(--font-head); font-weight: 600;
}
.map-placeholder i { font-size: 2.2rem; color: var(--accent); }

.inquiry-form {
  background: var(--grey); border: 1px solid var(--border);
  border-radius: 18px; padding: 38px;
}
.form-label { font-weight: 600; font-size: 0.9rem; }
.form-control, .form-select {
  border: 1.5px solid var(--border); border-radius: 10px;
  padding: 12px 16px; font-size: 0.96rem; background: #fff;
}
.form-control:focus, .form-select:focus {
  border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft);
}
.form-status { margin: 12px 0 0; font-weight: 600; font-size: 0.92rem; color: var(--accent); min-height: 1.4em; }

/* ─── Footer ─────────────────────────────── */
.site-footer { background: var(--primary); color: var(--text-inverse); padding: 90px 0 0; }
.footer-brand { margin-bottom: 18px; }
.footer-copy { color: rgba(255,255,255,0.65); font-size: 0.94rem; max-width: 42ch; }
.footer-title { color: #fff; font-size: 1rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 20px; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: rgba(255,255,255,0.65); font-size: 0.94rem; transition: color 0.25s, padding-left 0.25s; }
.footer-links a:hover { color: var(--accent); padding-left: 6px; }
.social-icons { display: flex; gap: 12px; margin-top: 22px; }
.social-icons a {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.18); color: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.28s ease;
}
.social-icons a:hover { background: var(--accent); border-color: var(--accent); transform: translateY(-4px); }
.footer-bottom {
  margin-top: 70px; padding: 24px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: 0.86rem; color: rgba(255,255,255,0.55);
}
.footer-bottom p { margin: 0; }
.footer-bottom a { color: var(--accent); font-weight: 600; }

/* ─── Back to top ─────────────────────────── */
#backToTop {
  position: fixed; right: 26px; bottom: 26px; z-index: 1200;
  width: 50px; height: 56px; border: 0;
  background: var(--accent); color: #fff; font-size: 1.05rem;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  opacity: 0; visibility: hidden; transform: translateY(16px);
  transition: all 0.35s ease; cursor: pointer;
}
#backToTop.visible { opacity: 1; visibility: visible; transform: translateY(0); }
#backToTop:hover { background: #ea6a0e; }

/* ─── Reduced motion ─────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
