/* ============================================================================
   SHIVSHAKTI ENGINEERING — STYLESHEET (corporate white · navy · yellow)
   Content is managed only in content.js — this file needs no editing.
   ============================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Noto+Serif+Devanagari:wght@500;600&display=swap');

:root {
  --navy: #16355e;
  --navy-2: #0f2747;
  --navy-3: #1c4478;
  --yellow: #f5b921;
  --yellow-2: #ffcf4d;
  --text: #5a6472;
  --heading: #16355e;
  --bg: #ffffff;
  --soft: #f5f7fa;
  --line: #e3e8ef;
  --white: #ffffff;

  --font: 'Poppins', 'Segoe UI', sans-serif;
  --dev: 'Noto Serif Devanagari', serif;

  --wrap: 1200px;
  --rad: 16px;
  --scoop: 16px 16px 16px 72px;
  --shadow: 0 10px 30px rgba(22, 53, 94, 0.10);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

h1, h2, h3, h4 { color: var(--heading); font-weight: 600; line-height: 1.25; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 4px; }

/* ------------------------------------------------------------------ BUTTONS */
.btn {
  display: inline-block; font-family: var(--font); font-size: 0.92rem; font-weight: 500;
  text-decoration: none; padding: 12px 28px; border-radius: 8px; cursor: pointer;
  border: 1.5px solid transparent; transition: transform .15s ease, background .15s ease, color .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(22,53,94,0.18); }
.btn-navy { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn-navy:hover { background: var(--navy-3); }
.btn-yellow { background: var(--yellow); color: var(--navy-2); border-color: var(--yellow); font-weight: 600; }
.btn-yellow:hover { background: var(--yellow-2); }
.btn-line { background: #fff; color: var(--navy); border-color: var(--line); }
.btn-line:hover { border-color: var(--navy); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.7); }
.btn-ghost:hover { background: rgba(255,255,255,0.12); }

/* -------------------------------------------------------------- TAGS/CHIPS */
.tag {
  display: inline-block; background: var(--yellow); color: var(--navy-2);
  font-size: 0.78rem; font-weight: 600; padding: 4px 16px; border-radius: 999px;
}
.tag-corner { position: absolute; top: 18px; right: 18px; }

/* ------------------------------------------------------------------- HEADER */
.topline { background: var(--navy-2); color: #c9d6e6; font-size: 0.82rem; }
.topline-in { display: flex; justify-content: space-between; align-items: center; padding-top: 7px; padding-bottom: 7px; gap: 10px; flex-wrap: wrap; }
.topline a { color: #fff; text-decoration: none; }
.topline a:hover { color: var(--yellow); }
.topline-right { display: flex; gap: 22px; flex-wrap: wrap; }

#site-header { position: sticky; top: 0; z-index: 60; background: #fff; box-shadow: 0 2px 14px rgba(22,53,94,0.08); }
.nav-in { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-top: 10px; padding-bottom: 10px; }

.logo { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.logo-img { width: 62px; height: 62px; object-fit: contain; flex: none; }
.logo-word { display: flex; flex-direction: column; line-height: 1.15; }
.logo-word b { font-weight: 700; font-size: 1.28rem; letter-spacing: 0.03em; color: var(--navy); }
.logo-word b span { color: var(--yellow); font-weight: 600; }
.motto { font-family: var(--dev); font-style: normal; font-size: 0.95rem; color: #a5651c; letter-spacing: 0.06em; }

.nav { display: flex; align-items: center; gap: 30px; }
.nav a { font-size: 0.95rem; font-weight: 500; text-decoration: none; color: var(--navy); padding: 8px 0; border-bottom: 2.5px solid transparent; }
.nav a:hover { color: var(--yellow); }
.nav a[aria-current="page"] { color: #c99400; border-bottom-color: var(--yellow); }

.nav-toggle { display: none; background: none; border: 1.5px solid var(--navy); border-radius: 8px; width: 46px; height: 42px; cursor: pointer; padding: 10px 11px; }
.nav-toggle span:not(.sr-only) { display: block; height: 2px; background: var(--navy); margin: 4px 0; border-radius: 2px; }

/* --------------------------------------------------------------------- HERO */
.hero {
  position: relative; min-height: 84vh; display: flex; align-items: center; justify-content: center;
  text-align: center; color: #fff; overflow: hidden;
  background: linear-gradient(180deg, #0e223d 0%, #16355e 55%, #1c4478 100%);
}
.hero-bg { position: absolute; inset: auto 0 0 0; width: 100%; height: 46%; opacity: 0.35; }
.hero-bg svg { width: 100%; height: 100%; display: block; }
.hero-in { position: relative; z-index: 2; padding: 90px 22px; max-width: 1000px; }
.hero-logo { width: 108px; height: 108px; object-fit: contain; margin-bottom: 6px; filter: drop-shadow(0 6px 18px rgba(0,0,0,0.4)); }
.hero-motto { font-family: var(--dev); font-size: 1.25rem; color: var(--yellow); display: block; margin-bottom: 26px; }
.hero h1 {
  color: #fff; font-weight: 300; font-size: clamp(1.9rem, 5.6vw, 4.3rem);
  letter-spacing: clamp(2px, 0.9vw, 10px); text-transform: uppercase; white-space: nowrap;
}
.hero-sub { display: block; margin: 22px auto 8px; font-size: clamp(0.95rem, 2vw, 1.2rem); letter-spacing: 0.18em; text-transform: uppercase; color: #dbe6f4; }
.hero p.lead { max-width: 62ch; margin: 14px auto 34px; color: #b9c9dd; font-size: 1rem; }
.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* -------------------------------------------------------------- SECTIONS */
section { padding: 84px 0; }
.soft { background: var(--soft); }
.sec-head { text-align: center; max-width: 820px; margin: 0 auto 50px; }
.sec-head .cats { font-size: 1.05rem; color: var(--navy); font-weight: 500; margin-bottom: 8px; }
.sec-head h2 { font-size: clamp(1.8rem, 4vw, 2.7rem); font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase; }
.sec-head h2::after { content: ""; display: block; width: 120px; height: 4px; background: var(--yellow); border-radius: 3px; margin: 16px auto 0; }
.sec-head p.sub { margin-top: 18px; }

/* --------------------------------------------------------------------- CARDS */
.card {
  position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: var(--scoop); padding: 34px 30px 38px; box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(22,53,94,0.16); }

#services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.services-page #services { grid-template-columns: repeat(3, 1fr); gap: 26px; }
.svc-icon { width: 52px; height: 52px; color: var(--yellow); margin-bottom: 18px; }
.svc-card h3 { font-size: 1.18rem; margin-bottom: 10px; }
.svc-card p { font-size: 0.92rem; }
.svc-card ul { list-style: none; margin-top: 14px; font-size: 0.9rem; }
.svc-card li, .div-card li { padding-left: 24px; position: relative; margin-top: 7px; }
.svc-card li::before, .div-card li::before { content: "✔"; position: absolute; left: 0; color: var(--yellow); font-size: 0.85rem; }
.svc-card .btn { margin-top: 18px; }
.sec-cta { text-align: center; margin-top: 44px; }

/* ---------------------------------------------------------------- DIVISIONS */
#divisions { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.div-card { background: #fff; border: 1px solid var(--line); border-radius: var(--rad); padding: 36px; box-shadow: var(--shadow); border-top: 5px solid var(--yellow); }
.div-card h3 { font-size: 1.45rem; margin: 16px 0 4px; }
.entity { color: #c99400; font-weight: 500; font-size: 0.9rem; margin-bottom: 12px; }
.div-card ul { margin-top: 14px; list-style: none; }

/* -------------------------------------------------------------- FABRICATION */
#fabcat { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.fab-card h3 { font-size: 1.16rem; margin-bottom: 10px; padding-right: 40px; }
.fab-card p { font-size: 0.92rem; }
.fab-card .btn { margin-top: 18px; }
.fab-n {
  position: absolute; top: 16px; right: 22px; font-size: 2rem; font-weight: 700;
  color: var(--line);
}

/* ------------------------------------------------------------------ GALLERY */
#gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.g-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--rad);
  overflow: hidden; box-shadow: var(--shadow); transition: transform .18s ease, box-shadow .18s ease;
}
.g-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(22,53,94,0.16); }
.g-imgwrap { position: relative; height: 240px; overflow: hidden; background: var(--navy-2); }
.g-imgwrap img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.g-card:hover .g-imgwrap img { transform: scale(1.05); }
.g-tag { position: absolute; top: 14px; left: 14px; z-index: 2; }
.g-card figcaption { padding: 14px 18px; font-size: 0.92rem; font-weight: 500; color: var(--navy); }

/* -------------------------------------------------------------- METHODOLOGY */
.dark { background: linear-gradient(180deg, var(--navy-2), var(--navy)); color: #c4d2e3; }
.dark .sec-head h2 { color: #fff; }
.dark .sec-head p.sub { color: #b9c9dd; }
#method { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.15); border-radius: var(--rad); padding: 30px; }
.step-n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 50%; background: var(--yellow);
  color: var(--navy-2); font-weight: 700; font-size: 1.05rem;
}
.step h3 { color: #fff; font-size: 1.15rem; margin: 16px 0 8px; }
.step p { font-size: 0.92rem; }

/* -------------------------------------------------------------------- STATS */
.stats { padding: 56px 0; }
#stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.stat { border-left: 4px solid var(--yellow); padding-left: 20px; }
.stat-v { display: block; font-weight: 700; font-size: clamp(1.9rem, 3.4vw, 2.6rem); color: var(--navy); line-height: 1.1; }
.stat-l { display: block; margin-top: 6px; font-size: 0.9rem; }

/* --------------------------------------------------------------------- EDGE */
.edge {
  background: #fff; border: 1px solid var(--line); border-radius: var(--rad);
  box-shadow: var(--shadow); border-left: 6px solid var(--yellow);
  padding: clamp(30px, 5vw, 54px); display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 44px; align-items: center;
}
.edge h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin: 8px 0 14px; }
.edge .kicker { color: #c99400; font-weight: 600; font-size: 0.9rem; letter-spacing: 0.14em; text-transform: uppercase; }
.flow { display: grid; gap: 12px; font-size: 0.88rem; }
.flow span { border: 1px solid var(--line); background: var(--soft); border-radius: 10px; padding: 12px 16px; position: relative; }
.flow span::after { content: "↓"; position: absolute; left: 50%; bottom: -21px; color: var(--yellow); font-weight: 700; }
.flow span:last-child { border-color: var(--yellow); background: #fff8e6; font-weight: 500; }
.flow span:last-child::after { content: ""; }

/* ----------------------------------------------------------------- PROJECTS */
#projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.projects-page #projects { grid-template-columns: repeat(2, 1fr); gap: 26px; }
.prj-card { border-radius: var(--rad); border-top: 5px solid var(--navy); }
.prj-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.prj-card h3 { font-size: 1.12rem; }
.prj-loc { color: #93a0ad; margin: 8px 0 10px; font-size: 0.88rem; }
.prj-card p:last-child { font-size: 0.92rem; }
.status { font-size: 0.78rem; font-weight: 600; padding: 4px 14px; border-radius: 999px; }
.st-done { background: #e4f2e7; color: #1e6b34; }
.st-on { background: #fff3d6; color: #a35a0e; }
.st-ds { background: #e7eef7; color: var(--navy); }

/* ------------------------------------------------------------------ CAREERS */
#jobs { display: grid; gap: 22px; max-width: 880px; margin: 0 auto; }
.job-card, .job-empty { border-radius: var(--rad); border-left: 6px solid var(--yellow); }
.job-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; flex-wrap: wrap; }
.job-card h3 { font-size: 1.35rem; }
.job-meta { display: flex; flex-wrap: wrap; gap: 6px 24px; margin: 12px 0 14px; color: #93a0ad; font-size: 0.88rem; font-weight: 500; }
.job-card .btn { margin-top: 16px; }

/* -------------------------------------------------------------------- FORMS */
.form-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--rad);
  box-shadow: var(--shadow); padding: clamp(26px, 4vw, 46px); max-width: 880px; margin: 0 auto;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-grid .full { grid-column: 1 / -1; }
label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--navy); margin-bottom: 7px; }
input, select, textarea {
  width: 100%; font-family: var(--font); font-size: 0.95rem; color: #2b3542;
  background: var(--soft); border: 1.5px solid var(--line); border-radius: 10px; padding: 12px 15px;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--yellow); background: #fff; box-shadow: 0 0 0 3px rgba(245,185,33,0.25); }
textarea { min-height: 130px; resize: vertical; }
input[type="file"] { padding: 9px; background: #fff; }
.form-note { font-size: 0.84rem; color: #93a0ad; margin-top: 14px; }
.hidden { display: none !important; }

/* ----------------------------------------------------------------- CTA BAND */
.cta-band { background: linear-gradient(90deg, var(--navy-2), var(--navy-3)); color: #fff; padding: 70px 0; }
.cta-in { display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; font-size: clamp(1.6rem, 3.6vw, 2.5rem); font-weight: 600; }
.cta-band h2 em { font-style: normal; color: var(--yellow); }

/* --------------------------------------------------------------- PAGE HEADS */
.page-head {
  background: linear-gradient(180deg, #0e223d, var(--navy)); color: #c4d2e3;
  text-align: center; padding: 84px 0 70px;
}
.page-head h1 { color: #fff; font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.page-head h1::after { content: ""; display: block; width: 120px; height: 4px; background: var(--yellow); border-radius: 3px; margin: 18px auto 0; }
.page-head p { max-width: 66ch; margin: 20px auto 0; }

/* ------------------------------------------------------------------ CONTACT */
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 34px; align-items: start; }
.contact-info { background: linear-gradient(180deg, var(--navy-2), var(--navy)); color: #c4d2e3; padding: 38px; border-radius: var(--rad); box-shadow: var(--shadow); }
.contact-info h3 { color: #fff; font-size: 1.3rem; margin-bottom: 4px; }
.contact-info .k { color: var(--yellow); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.contact-info a { color: #fff; text-decoration: none; display: block; margin: 4px 0; }
.contact-info a:hover { color: var(--yellow); }
.c-block { padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,0.15); }
.c-block:last-child { border-bottom: none; }

/* ------------------------------------------------------------------- FOOTER */
#site-footer { background: var(--navy-2); color: #9fb2c8; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 0.6fr 1.1fr; gap: 40px; padding-top: 60px; padding-bottom: 44px; }
.logo-foot .logo-word b { color: #fff; }
.foot-brand p { font-size: 0.88rem; margin-top: 16px; max-width: 46ch; }
#site-footer h4 { color: var(--yellow); font-size: 0.95rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 14px; }
#site-footer a { display: block; color: #cfdae8; text-decoration: none; font-size: 0.92rem; margin: 7px 0; }
#site-footer a:hover { color: var(--yellow); }
#site-footer p { font-size: 0.92rem; margin: 7px 0; }
.foot-bar { border-top: 1px solid rgba(255,255,255,0.12); }
.foot-bar-in { display: flex; justify-content: space-between; gap: 14px; padding-top: 16px; padding-bottom: 16px; font-size: 0.84rem; flex-wrap: wrap; }

/* ------------------------------------------------------ LEARNING CENTRE */
.learn-cat { max-width: 880px; margin: 0 auto 34px; }
.learn-cat h3 { margin-bottom: 16px; }
.learn-card {
  background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--yellow);
  border-radius: 12px; box-shadow: var(--shadow); margin-bottom: 14px; overflow: hidden;
}
.learn-card summary {
  cursor: pointer; list-style: none; padding: 18px 22px; font-weight: 600; color: var(--navy);
  position: relative; padding-right: 52px;
}
.learn-card summary::-webkit-details-marker { display: none; }
.learn-card summary::after { content: "+"; position: absolute; right: 22px; top: 14px; font-size: 1.5rem; color: var(--yellow); font-weight: 600; }
.learn-card[open] summary::after { content: "–"; }
.learn-card p { padding: 0 22px 20px; font-size: 0.94rem; }

/* --------------------------------------------------------- PWA INSTALL BTN */
#pwa-install {
  position: fixed; left: 22px; bottom: 22px; z-index: 80;
  background: var(--navy-2); color: #fff; border: 2px solid var(--yellow);
  font-family: var(--font); font-size: 0.88rem; font-weight: 600;
  padding: 12px 22px; border-radius: 999px; cursor: pointer;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3); transition: transform .15s ease;
}
#pwa-install:hover { transform: scale(1.05); }

/* ------------------------------------------------------------- SHARE BTN */
#app-share {
  position: fixed; right: 26px; bottom: 96px; z-index: 80;
  width: 50px; height: 50px; border-radius: 50%;
  background: var(--navy-2); color: var(--yellow); border: 2px solid var(--yellow);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3); transition: transform .15s ease;
}
#app-share:hover { transform: scale(1.08); }
#app-share svg { width: 24px; height: 24px; }

/* -------------------------------------------------------- WHATSAPP FLOATING */
.wa-btn {
  position: fixed; right: 22px; bottom: 22px; z-index: 80;
  width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3); transition: transform .15s ease;
}
.wa-btn:hover { transform: scale(1.08); }
.wa-btn svg { width: 32px; height: 32px; }

/* ------------------------------------------------------------------ REVEALS */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .card:hover, .g-card:hover, .wa-btn:hover { transform: none; }
}

/* --------------------------------------------------------------- RESPONSIVE */
@media (max-width: 1060px) {
  #services { grid-template-columns: repeat(2, 1fr); }
  .services-page #services { grid-template-columns: repeat(2, 1fr); }
  #fabcat { grid-template-columns: repeat(2, 1fr); }
  #gallery-grid { grid-template-columns: repeat(2, 1fr); }
  #method { grid-template-columns: repeat(2, 1fr); }
  #projects { grid-template-columns: repeat(2, 1fr); }
  #stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 880px) {
  .nav { position: fixed; inset: 0 0 auto 0; flex-direction: column; align-items: flex-start; background: #fff; box-shadow: 0 12px 30px rgba(22,53,94,0.2); padding: 100px 26px 28px; gap: 18px; transform: translateY(-110%); transition: transform .25s ease; z-index: -1; }
  .nav.open { transform: none; }
  .nav-toggle { display: block; }
  .hero h1 { white-space: normal; }
  .edge, .contact-grid { grid-template-columns: 1fr; }
  #divisions { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; gap: 28px; }
  .form-grid { grid-template-columns: 1fr; }
  .topline-in { justify-content: center; }
}
@media (max-width: 600px) {
  #services, .services-page #services, #fabcat, #gallery-grid, #method, #projects, #stats { grid-template-columns: 1fr; }
  section { padding: 60px 0; }
  .logo-img { width: 52px; height: 52px; }
  .logo-word b { font-size: 1.05rem; }
}
