/* ============================================================
   Shiva E.T.M. Products Pvt. Ltd. — site stylesheet
   Lightweight, no frameworks. Colors drawn from brand logo.
   ============================================================ */

:root {
  --blue: #1e3fa0;
  --blue-bright: #2b55d4;
  --blue-dark: #142a6e;
  --navy: #0d1b45;
  --steel: #5b6472;
  --ink: #1c2333;
  --muted: #5f6b7c;
  --line: #e3e8f0;
  --bg-alt: #f4f6fa;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(13, 27, 69, 0.08);
  --shadow-lg: 0 18px 50px rgba(13, 27, 69, 0.16);
  --container: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  line-height: 1.65;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-bright); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 22px; }

/* ---------- top bar ---------- */
.topbar {
  background: var(--navy);
  color: #c7d2ee;
  font-size: 0.82rem;
}
.topbar .container {
  display: flex; justify-content: space-between; align-items: center;
  min-height: 38px; gap: 16px; flex-wrap: wrap;
}
.topbar a { color: #e8edfb; }
.topbar a:hover { color: #ffffff; }
.topbar .tb-group { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.topbar .iso-badge {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 2px 12px; border-radius: 99px; font-weight: 600; letter-spacing: 0.03em;
  color: #ffffff; white-space: nowrap;
}

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.25s ease;
}
.site-header.scrolled { box-shadow: 0 6px 24px rgba(13, 27, 69, 0.10); }
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 74px; gap: 20px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 52px; width: auto; }
.brand .brand-text { line-height: 1.15; }
.brand .brand-name {
  font-size: 1.28rem; font-weight: 800; color: var(--blue-dark);
  letter-spacing: 0.10em;
}
.brand .brand-sub {
  font-size: 0.68rem; color: var(--steel); font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
}

.main-nav { display: flex; align-items: center; gap: 26px; }
.main-nav a {
  color: var(--ink); font-weight: 600; font-size: 0.95rem;
  padding: 6px 2px; border-bottom: 2px solid transparent;
}
.main-nav a:hover { color: var(--blue); }
.main-nav a.active { color: var(--blue); border-bottom-color: var(--blue); }

.btn {
  display: inline-block; padding: 12px 26px; border-radius: 10px;
  font-weight: 700; font-size: 0.95rem; cursor: pointer; border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--blue); color: #ffffff !important; box-shadow: 0 8px 20px rgba(30, 63, 160, 0.30); }
.btn-primary:hover { background: var(--blue-bright); }
.btn-ghost { border-color: rgba(255, 255, 255, 0.55); color: #ffffff !important; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); }
.btn-sm { padding: 9px 20px; font-size: 0.88rem; }

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer; padding: 8px;
}
.nav-toggle span {
  display: block; width: 24px; height: 2.6px; background: var(--blue-dark);
  margin: 5px 0; border-radius: 2px; transition: 0.25s;
}

/* ---------- hero ---------- */
.hero {
  position: relative; color: #ffffff;
  background: url("../img/hero.jpg") center/cover no-repeat, var(--navy);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(9, 18, 48, 0.94) 0%, rgba(13, 27, 69, 0.82) 45%, rgba(13, 27, 69, 0.45) 100%);
}
.hero .container { position: relative; padding-top: 108px; padding-bottom: 150px; max-width: var(--container); }
.kicker {
  display: inline-block; font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--blue-bright);
  margin-bottom: 14px;
}
.hero .kicker { color: #9db4f5; }
.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem); line-height: 1.12;
  font-weight: 800; max-width: 720px; letter-spacing: -0.01em;
}
.hero p.lead {
  margin-top: 20px; font-size: 1.12rem; max-width: 620px; color: #d7e0f5;
}
.hero .hero-actions { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; }

/* stats strip overlapping hero */
.stats { position: relative; z-index: 5; margin-top: -72px; }
.stats .grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
.stat-card {
  background: var(--white); border-radius: var(--radius); padding: 26px 22px;
  box-shadow: var(--shadow-lg); text-align: center; border-top: 3px solid var(--blue);
}
.stat-card .num { font-size: 1.65rem; font-weight: 800; color: var(--blue-dark); line-height: 1.2; }
.stat-card .lbl { font-size: 0.85rem; color: var(--muted); font-weight: 600; margin-top: 4px; }

/* ---------- sections ---------- */
.section { padding: 84px 0; }
.section.alt { background: var(--bg-alt); }
.section-head { max-width: 700px; margin-bottom: 46px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.6rem, 3.4vw, 2.25rem); font-weight: 800; color: var(--navy); line-height: 1.2; }
.section-head p { margin-top: 12px; color: var(--muted); font-size: 1.03rem; }

/* ---------- service cards ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.svc-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.svc-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.svc-card .thumb {
  background: #ffffff; border-bottom: 1px solid var(--line);
  aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; padding: 18px;
}
.svc-card .thumb img { max-height: 100%; object-fit: contain; }
.svc-card .body { padding: 18px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.svc-card h3 { font-size: 1.05rem; color: var(--navy); font-weight: 700; }
.svc-card p { font-size: 0.88rem; color: var(--muted); margin: 8px 0 14px; flex: 1; }
.svc-card .more { font-size: 0.86rem; font-weight: 700; }

/* ---------- about preview / split ---------- */
.split { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; }
.split .visual {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow); display: flex; justify-content: center;
}
.split .visual img { max-height: 420px; object-fit: contain; }
.split h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); color: var(--navy); font-weight: 800; line-height: 1.22; }
.split p { margin-top: 16px; color: var(--muted); }
.checklist { margin: 20px 0 8px; list-style: none; }
.checklist li {
  padding-left: 30px; position: relative; margin-bottom: 10px; color: var(--ink); font-weight: 600;
}
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 5px; width: 18px; height: 18px;
  border-radius: 50%; background: var(--blue);
  clip-path: none;
}
.checklist li::after {
  content: ""; position: absolute; left: 5px; top: 10px; width: 8px; height: 4px;
  border-left: 2.4px solid #ffffff; border-bottom: 2.4px solid #ffffff; transform: rotate(-45deg);
}

/* ---------- value cards ---------- */
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.value-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; box-shadow: var(--shadow);
}
.value-card .icon {
  width: 52px; height: 52px; border-radius: 12px; background: #e8eefc;
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.value-card .icon svg { width: 26px; height: 26px; stroke: var(--blue); }
.value-card h3 { color: var(--navy); font-size: 1.1rem; margin-bottom: 8px; }
.value-card p { color: var(--muted); font-size: 0.93rem; }

/* ---------- client marquee ---------- */
.clients { overflow: hidden; }
.marquee { display: flex; gap: 48px; width: max-content; animation: scroll 32s linear infinite; }
.marquee:hover { animation-play-state: paused; }
.marquee .logo-item {
  height: 64px; display: flex; align-items: center; filter: grayscale(1); opacity: 0.75;
  transition: filter 0.2s, opacity 0.2s;
}
.marquee .logo-item:hover { filter: none; opacity: 1; }
.marquee .logo-item img { max-height: 56px; width: auto; max-width: 150px; object-fit: contain; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(115deg, var(--blue-dark), var(--blue) 60%, var(--blue-bright));
  color: #ffffff; padding: 64px 0;
}
.cta-band .container { display: flex; align-items: center; justify-content: space-between; gap: 26px; flex-wrap: wrap; }
.cta-band h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 800; max-width: 640px; }
.cta-band p { color: #d7e0f5; margin-top: 6px; }
.cta-band .btn { background: #ffffff; color: var(--blue-dark) !important; }

/* ---------- page hero (inner pages) ---------- */
.page-hero {
  background: linear-gradient(115deg, var(--navy), var(--blue-dark) 70%, var(--blue));
  color: #ffffff; padding: 66px 0 58px;
}
.page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; }
.page-hero .crumbs { font-size: 0.85rem; color: #a9b8e3; margin-top: 10px; }
.page-hero .crumbs a { color: #d7e0f5; }

/* ---------- anchor chips ---------- */
.chip-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.chip {
  background: rgba(255, 255, 255, 0.10); border: 1px solid rgba(255, 255, 255, 0.25);
  color: #e8edfb !important; padding: 7px 16px; border-radius: 99px; font-size: 0.84rem; font-weight: 600;
}
.chip:hover { background: rgba(255, 255, 255, 0.22); }

/* ---------- product sections ---------- */
.product-block { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: start; }
.product-block.flip .p-visual { order: 2; }
.product-block .p-visual {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow); position: sticky; top: 110px;
  display: flex; align-items: center; justify-content: center; min-height: 260px;
}
.product-block .p-visual img { max-height: 300px; object-fit: contain; }
.product-block h2 { color: var(--navy); font-size: 1.55rem; font-weight: 800; }
.product-block .p-desc { color: var(--muted); margin: 12px 0 20px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.tag {
  background: #e8eefc; color: var(--blue-dark); font-size: 0.8rem; font-weight: 700;
  padding: 5px 14px; border-radius: 99px;
}

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
table.spec { width: 100%; border-collapse: collapse; font-size: 0.92rem; background: var(--white); min-width: 520px; }
table.spec th {
  background: var(--blue-dark); color: #ffffff; text-align: left;
  padding: 12px 16px; font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase;
}
table.spec td { padding: 12px 16px; border-top: 1px solid var(--line); vertical-align: top; }
table.spec tr:nth-child(even) td { background: var(--bg-alt); }
table.spec td:first-child { font-weight: 700; color: var(--navy); white-space: nowrap; }

/* ---------- gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gallery-grid a {
  display: block; border-radius: 12px; overflow: hidden; border: 1px solid var(--line);
  aspect-ratio: 4 / 3; background: var(--bg-alt);
}
.gallery-grid img {
  width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease;
}
.gallery-grid a:hover img { transform: scale(1.05); }

.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(9, 14, 34, 0.92);
  display: none; align-items: center; justify-content: center; padding: 30px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: min(1100px, 92vw); max-height: 86vh; border-radius: 10px; }
.lightbox .lb-close {
  position: absolute; top: 18px; right: 24px; background: none; border: 0;
  color: #ffffff; font-size: 2.2rem; cursor: pointer; line-height: 1;
}
.lightbox .lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.14); border: 0; color: #ffffff; font-size: 1.6rem;
  width: 48px; height: 48px; border-radius: 50%; cursor: pointer;
}
.lightbox .lb-prev { left: 20px; }
.lightbox .lb-next { right: 20px; }

/* ---------- certificates ---------- */
.cert-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cert-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow); text-align: center;
}
.cert-card img { max-height: 300px; object-fit: contain; margin: 0 auto 14px; border: 1px solid var(--line); border-radius: 8px; }
.cert-card h3 { font-size: 0.98rem; color: var(--navy); }
.cert-card p { font-size: 0.85rem; color: var(--muted); margin-top: 4px; }
.doc-list { list-style: none; margin-top: 8px; }
.doc-list li { margin-bottom: 12px; }
.doc-list a {
  display: flex; align-items: center; gap: 12px; background: var(--white);
  border: 1px solid var(--line); border-radius: 10px; padding: 14px 18px;
  font-weight: 600; box-shadow: var(--shadow);
}
.doc-list a:hover { border-color: var(--blue); }
.doc-list .pdf-ic {
  flex: none; width: 38px; height: 38px; border-radius: 8px; background: #fdecec;
  color: #c0392b; font-size: 0.68rem; font-weight: 800; display: flex; align-items: center; justify-content: center;
}

/* ---------- contact ---------- */
.contact-layout { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 46px; align-items: start; }
.info-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow); display: flex; gap: 16px; margin-bottom: 18px;
}
.info-card .icon {
  flex: none; width: 46px; height: 46px; border-radius: 10px; background: #e8eefc;
  display: flex; align-items: center; justify-content: center;
}
.info-card .icon svg { width: 22px; height: 22px; stroke: var(--blue); }
.info-card h3 { font-size: 0.95rem; color: var(--navy); margin-bottom: 3px; }
.info-card p, .info-card a { font-size: 0.92rem; color: var(--muted); }
.info-card a:hover { color: var(--blue); }

.form-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px; box-shadow: var(--shadow-lg);
}
.form-card h2 { color: var(--navy); font-size: 1.4rem; margin-bottom: 6px; }
.form-card > p { color: var(--muted); font-size: 0.93rem; margin-bottom: 22px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
label { display: block; font-size: 0.84rem; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
input, textarea, select {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px;
  font: inherit; font-size: 0.95rem; color: var(--ink); background: #fbfcfe;
  transition: border-color 0.15s;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--blue); background: #ffffff; }
textarea { resize: vertical; min-height: 130px; }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.form-note {
  border-radius: 10px; padding: 14px 18px; font-weight: 600; margin-bottom: 20px; display: none;
}
.form-note.ok { display: block; background: #e7f6ec; color: #1e7a3d; border: 1px solid #bfe6cc; }
.form-note.err { display: block; background: #fdecec; color: #b03a2e; border: 1px solid #f2c7c2; }

.map-wrap { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); margin-top: 60px; }
.map-wrap iframe { display: block; width: 100%; height: 380px; border: 0; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy); color: #b9c4e4; font-size: 0.92rem; }
.site-footer .foot-main {
  display: grid; grid-template-columns: 1.3fr 0.8fr 0.9fr 1.1fr; gap: 40px; padding: 64px 0 46px;
}
.site-footer h4 {
  color: #ffffff; font-size: 0.85rem; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 18px;
}
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: #b9c4e4; }
.site-footer a:hover { color: #ffffff; }
.foot-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.foot-brand img { height: 46px; border-radius: 8px; background: #ffffff; padding: 3px; }
.foot-brand .fb-name { color: #ffffff; font-weight: 800; letter-spacing: 0.08em; }
.foot-brand .fb-sub { font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; }
.foot-contact li { display: flex; gap: 10px; align-items: flex-start; }
.foot-contact svg { width: 16px; height: 16px; stroke: var(--blue-bright); flex: none; margin-top: 4px; }
.foot-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.10); padding: 20px 0;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 0.82rem;
}

/* ---------- reveal animation (hidden state only when JS is running) ---------- */
html.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.55s ease, transform 0.55s ease; }
html.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .stats .grid { grid-template-columns: repeat(2, 1fr); }
  .split, .product-block, .contact-layout { grid-template-columns: 1fr; }
  .product-block .p-visual { position: static; }
  .product-block.flip .p-visual { order: 0; }
  .value-grid, .cert-grid { grid-template-columns: 1fr 1fr; }
  .site-footer .foot-main { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 920px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute; top: 100%; left: 0; right: 0; background: var(--white);
    flex-direction: column; align-items: stretch; gap: 0; padding: 10px 22px 20px;
    border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px rgba(13, 27, 69, 0.12);
    display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .main-nav a.active { border-bottom-color: var(--line); }
  .main-nav .btn { margin-top: 14px; text-align: center; border-bottom: 0; }
}

@media (max-width: 700px) {
  .topbar .tb-group.tb-left { display: none; }
  .topbar .container { justify-content: center; }
  .hero .container { padding-top: 72px; padding-bottom: 130px; }
  .section { padding: 60px 0; }
  .value-grid, .cert-grid, .svc-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .site-footer .foot-main { grid-template-columns: 1fr; gap: 30px; }
  .brand .brand-name { font-size: 1.08rem; }
  .brand img { height: 44px; }
}

@media (max-width: 460px) {
  .stats .grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
}
