/* ==========================================================================
   Shivi Electronics System — design system
   Light "petal" theme: white/soft-lilac grounds, navy text, and a
   purple + orange accent combo (not a copy of any existing site)
   ========================================================================== */

:root {
  --bg: #ffffff;
  --bg-alt: #fcf8f5;
  --panel: #ffffff;
  --panel-2: #f8f4f1;
  --border: #f5eae1;
  --text: #3b291b;
  --text-dim: #786556;
  --text-faint: #a8988b;
  --purple: #e8630a;
  --purple-deep: #b34700;
  --orange: #f59e0b;
  --green: #16a34a;
  --red: #dc2626;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 20px 45px -20px rgba(59, 41, 27, 0.16);
  --maxw: 1180px;
  --header-h: 76px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", "Inter", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0 0 .5em; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; color: var(--text-dim); }
button { font-family: inherit; }

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--purple);
  display: inline-block;
}

.section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head.center { max-width: 640px; margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 40px); }
.section-head p { font-size: 17px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--purple), var(--purple-deep));
  color: #ffffff;
  box-shadow: 0 10px 30px -10px rgba(196, 121, 63, 0.35);
}
.btn-primary:hover { box-shadow: 0 14px 34px -8px rgba(196, 121, 63, 0.45); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--purple); color: var(--purple); }
.btn-block { width: 100%; }
.btn-sm { padding: 10px 18px; font-size: 13.5px; }

/* ==================== Header / Nav ==================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}
.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--purple), var(--orange));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  flex-shrink: 0;
}
.brand small { color: var(--purple); }

.primary-nav { display: flex; align-items: center; gap: 4px; }
.primary-nav > ul { display: flex; align-items: center; gap: 2px; }
.primary-nav a.nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-dim);
  transition: color .15s ease, background .15s ease;
}
.primary-nav a.nav-link:hover,
.primary-nav li.active > a.nav-link { color: var(--text); background: var(--panel); }
.nav-item { position: relative; }
.nav-item .chev { width: 9px; height: 9px; transition: transform .15s ease; }
.nav-item:hover .chev { transform: rotate(180deg); }

.mega {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  width: 620px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(8px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.nav-item:hover .mega { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.mega a {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px;
  border-radius: var(--radius-sm);
  color: var(--text);
}
.mega a:hover { background: var(--panel-2); }
.mega a .ico { color: var(--purple); flex-shrink: 0; margin-top: 2px; }
.mega a strong { display: block; font-size: 14px; margin-bottom: 2px; }
.mega a span { display: block; font-size: 12.5px; color: var(--text-faint); }

.header-cta { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.header-phone { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--text-dim); }
.header-phone strong { color: var(--text); display: block; font-size: 14px; }
.header-phone .ico { color: var(--green); }

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* ==================== Hero ==================== */
.hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 80px;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(231, 152, 92, 0.10), transparent 60%),
    radial-gradient(700px 500px at 0% 110%, rgba(255, 182, 90, 0.14), transparent 60%),
    var(--bg);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.06;
}
.hero h1 .accent {
  background: linear-gradient(135deg, var(--purple), var(--purple-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lead { font-size: 18px; max-width: 520px; }
.hero-actions { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.hero-trust { display: flex; gap: 26px; margin-top: 44px; flex-wrap: wrap; }
.hero-trust div strong { display: block; font-size: 24px; color: var(--text); }
.hero-trust div span { font-size: 12.5px; color: var(--text-faint); text-transform: uppercase; letter-spacing: .06em; }

.hero-visual {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 460px;
  margin: 0 auto;
}
.hero-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px dashed rgba(231, 152, 92, .4);
  animation: spin 40s linear infinite;
}
.hero-ring.r2 { inset: 40px; animation-duration: 30s; animation-direction: reverse; border-color: rgba(196, 121, 63, .3); }
@keyframes spin { to { transform: rotate(360deg); } }

.hero-core {
  position: absolute;
  inset: 90px;
  border-radius: 32px;
  background: linear-gradient(160deg, var(--panel), var(--panel-2));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  text-align: center;
}
.hero-core .bolt { color: var(--purple); width: 56px; height: 56px; filter: drop-shadow(0 0 16px rgba(231, 152, 92,.35)); }
.hero-core strong { font-size: 15px; }
.hero-core span { font-size: 12.5px; color: var(--text-faint); text-wrap: balance; max-width: 15ch; }

.hero-badge {
  position: absolute;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow);
  font-size: 13px;
  font-weight: 700;
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); }
.hero-badge.b1 { top: 6%; right: -4%; }
.hero-badge.b2 { bottom: 10%; left: -6%; }

/* ==================== Logo strip ==================== */
.logo-strip { padding: 40px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.logo-strip .container { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.logo-strip .label { font-size: 12.5px; color: var(--text-faint); text-transform: uppercase; letter-spacing: .1em; padding-top: 3px; }
.logo-strip .marks { display: flex; gap: 30px; flex-wrap: wrap; align-items: flex-start; }
.logo-strip .mark { display: flex; flex-direction: column; gap: 3px; }
.logo-strip .mark strong { font-weight: 800; font-size: 15px; color: var(--text); letter-spacing: .01em; }
.logo-strip .mark span { font-size: 12px; color: var(--text-faint); }

/* ==================== Cards / grids ==================== */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(231, 152, 92,.35); box-shadow: var(--shadow); }
.ico-wrap {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(231, 152, 92,.16), rgba(255,182,90,.18));
  display: flex; align-items: center; justify-content: center;
  color: var(--purple);
  margin-bottom: 18px;
}
.card h3 { font-size: 17px; }
.card p { font-size: 14.5px; margin-bottom: 0; }
.card .tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 14px; }
.card .tags span { font-size: 11.5px; padding: 4px 9px; border-radius: 999px; background: var(--panel-2); color: var(--text-faint); border: 1px solid var(--border); }
.card-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-size: 13.5px; font-weight: 700; color: var(--purple); }

/* Photo-led product card (used on the Online UPS catalogue section) */
.pcard {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.pcard:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: rgba(231, 152, 92,.35); }
.pcard-photo {
  position: relative;
  background:
    radial-gradient(240px 160px at 50% 20%, rgba(227, 150, 92,.10), transparent 70%),
    linear-gradient(160deg, var(--panel-2), #ffffff);
  padding: 26px 20px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 230px;
  border-bottom: 1px solid var(--border);
}
.pcard-photo img { width: 100%; max-width: 190px; height: auto; filter: drop-shadow(0 18px 20px rgba(59, 41, 27,.16)); transition: transform .3s ease; }
.pcard:hover .pcard-photo img { transform: translateY(-4px) scale(1.03); }
.pcard-tag {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 999px;
  background: linear-gradient(135deg, var(--purple), var(--purple-deep));
  color: #fff;
}
.pcard-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.pcard-body h3 { font-size: 18px; margin: 0 0 6px; }
.pcard-body p { font-size: 14px; margin: 0 0 16px; color: var(--text-dim); }
.pcard-specs { border-top: 1px solid var(--border); margin-top: auto; padding-top: 12px; display: grid; gap: 8px; }
.pcard-specs .row { display: flex; justify-content: space-between; align-items: baseline; font-size: 12.5px; }
.pcard-specs .row span { color: var(--text-faint); }
.pcard-specs .row b { color: var(--text); font-weight: 700; }
.pcard-cta { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; }
.pcard-cta a.card-link { margin: 0; }

.product-card { display: flex; flex-direction: column; height: 100%; }
.product-card .thumb {
  height: 140px;
  border-radius: var(--radius-sm);
  margin-bottom: 18px;
  background: linear-gradient(135deg, var(--panel-2), var(--bg-alt));
  display: flex; align-items: center; justify-content: center;
  color: var(--purple);
  border: 1px solid var(--border);
}
.product-card .spec-row { display: flex; justify-content: space-between; font-size: 12.5px; padding: 7px 0; border-top: 1px dashed var(--border); color: var(--text-faint); }
.icon-illus { width: 64px; height: 64px; stroke: var(--purple); fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.icon-illus .accent { stroke: var(--orange); }
.product-card .spec-row b { color: var(--text-dim); font-weight: 600; }

/* Steps / process */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.step { position: relative; padding-top: 8px; }
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-size: 13px;
  font-weight: 800;
  color: var(--purple);
  letter-spacing: .08em;
  display: block;
  margin-bottom: 10px;
}
.step h4 { font-size: 16px; }
.step p { font-size: 14px; }

/* Stats */
.stats-bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.stat { text-align: center; padding: 30px 16px; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); }
.stat strong { display: block; font-size: 34px; background: linear-gradient(135deg, var(--purple), var(--purple-deep)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { font-size: 13px; color: var(--text-faint); text-transform: uppercase; letter-spacing: .06em; }

/* Industries */
.industry-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.industry-card {
  padding: 24px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  text-align: left;
  transition: transform .18s ease, border-color .18s ease;
}
.industry-card:hover { transform: translateY(-3px); border-color: rgba(255,182,90,.55); }
.industry-card .ico-wrap { color: var(--purple); background: linear-gradient(135deg, rgba(255,182,90,.18), rgba(231, 152, 92,.12)); }

/* CTA band */
.cta-band {
  border-radius: 24px;
  padding: 56px;
  background: linear-gradient(135deg, var(--bg-alt), #ffffff 60%);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}
.cta-band::after {
  content: "";
  position: absolute;
  right: -60px; top: -60px;
  width: 260px; height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,182,90,.35), transparent 70%);
}
.cta-band h2 { font-size: 28px; margin-bottom: 6px; }
.cta-band p { margin-bottom: 0; }
.cta-band .actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Testimonials */
.testi-wrap { position: relative; max-width: 760px; margin: 0 auto; text-align: center; }
.testi-slide { display: none; }
.testi-slide.active { display: block; animation: fadein .3s ease; }
.testi-slide p.quote { font-size: 21px; color: var(--text); font-style: italic; max-width: 620px; margin: 0 auto 22px; }
.testi-who { display: flex; align-items: center; justify-content: center; gap: 12px; }
.testi-avatar { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--purple), var(--orange)); display: flex; align-items: center; justify-content: center; font-weight: 800; color: var(--text); }
.testi-who div { text-align: left; }
.testi-who strong { display: block; font-size: 14px; }
.testi-who span { font-size: 12.5px; color: var(--text-faint); }
.testi-dots { display: flex; gap: 8px; justify-content: center; margin-top: 28px; }
.testi-dots button { width: 9px; height: 9px; border-radius: 50%; border: none; background: var(--border); cursor: pointer; padding: 0; }
.testi-dots button.active { background: var(--purple); width: 22px; border-radius: 6px; }

/* Forms */
.form-card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 7px; color: var(--text-dim); }
.field .req { color: var(--red); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-alt);
  color: var(--text);
  font-size: 14.5px;
  font-family: inherit;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(231, 152, 92, 0.15);
}
.field textarea { resize: vertical; min-height: 110px; }
.field .error-msg { display: none; color: var(--red); font-size: 12.5px; margin-top: 6px; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--red); }
.field.invalid .error-msg { display: block; }
.form-note { font-size: 12.5px; color: var(--text-faint); margin-top: 4px; }
.form-success {
  display: none;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  background: rgba(22, 163, 74, 0.10);
  border: 1px solid rgba(22, 163, 74, 0.35);
  color: var(--green);
  font-weight: 700;
  font-size: 14px;
  margin-top: 18px;
}
.form-success.show { display: flex; animation: fadein .3s ease; }
.form-fail {
  display: none;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  background: rgba(220, 38, 38, 0.08);
  border: 1px solid rgba(220, 38, 38, 0.3);
  color: var(--red);
  font-weight: 700;
  font-size: 14px;
  margin-top: 18px;
}
.form-fail.show { display: flex; animation: fadein .3s ease; }
.form-fail span { font-weight: 400; color: var(--text-dim); }
.form-fail-debug {
  flex-basis: 100%;
  font-weight: 400;
  font-size: 11.5px;
  color: var(--text-faint);
  font-family: monospace;
}

.contact-info-card { display: flex; gap: 14px; align-items: flex-start; padding: 18px 0; border-bottom: 1px solid var(--border); }
.contact-info-card:last-child { border-bottom: none; }
.contact-info-card .ico-wrap { width: 42px; height: 42px; margin-bottom: 0; flex-shrink: 0; }
.contact-info-card strong { display: block; font-size: 14.5px; margin-bottom: 3px; }
.contact-info-card span, .contact-info-card a { font-size: 13.5px; color: var(--text-dim); }

.map-box {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  height: 220px;
  background:
    linear-gradient(var(--panel-2) 1px, transparent 1px) 0 0 / 26px 26px,
    linear-gradient(90deg, var(--panel-2) 1px, transparent 1px) 0 0 / 26px 26px,
    var(--panel);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-faint);
  font-size: 13px;
  gap: 8px;
  position: relative;
  overflow: hidden;
}
.map-box .pin { color: var(--red); }

/* Breadcrumb / page header */
.page-hero {
  padding: 64px 0 48px;
  background: radial-gradient(700px 300px at 100% 0%, rgba(231, 152, 92,.10), transparent 60%), var(--bg);
  border-bottom: 1px solid var(--border);
}
.breadcrumb { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--text-faint); margin-bottom: 16px; }
.breadcrumb a:hover { color: var(--purple); }
.page-hero h1 { font-size: clamp(28px, 4vw, 42px); max-width: 700px; }
.page-hero p { font-size: 16.5px; max-width: 620px; }

/* Accordion (FAQ) */
.accordion-item { border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 12px; overflow: hidden; background: var(--panel); }
.accordion-head {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px;
  background: none; border: none; color: var(--text);
  font-size: 15px; font-weight: 700; text-align: left; cursor: pointer;
}
.accordion-head .plus { transition: transform .2s ease; color: var(--purple); flex-shrink: 0; }
.accordion-item.open .accordion-head .plus { transform: rotate(45deg); }
.accordion-body { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.accordion-body-in { padding: 0 20px 18px; font-size: 14.5px; color: var(--text-dim); }

/* Values / about */
.value-row { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 24px; }
.value-row .num { font-size: 13px; font-weight: 800; color: var(--purple); width: 34px; flex-shrink: 0; }
.value-row h4 { font-size: 16px; margin-bottom: 4px; }
.value-row p { font-size: 14.5px; margin-bottom: 0; }

.timeline { position: relative; padding-left: 28px; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px; background: var(--border); }
.timeline-item { position: relative; padding-bottom: 30px; }
.timeline-item::before { content: ""; position: absolute; left: -28px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--purple); box-shadow: 0 0 0 4px rgba(231, 152, 92,.18); }
.timeline-item strong { display: block; color: var(--purple); font-size: 13px; margin-bottom: 4px; }
.timeline-item h4 { font-size: 15.5px; margin-bottom: 4px; }
.timeline-item p { font-size: 14px; margin-bottom: 0; }

/* Service page */
.service-list .card { display: flex; gap: 16px; align-items: flex-start; }
.service-list .card .ico-wrap { margin-bottom: 0; flex-shrink: 0; }

/* Footer */
.site-footer { background: var(--bg-alt); border-top: 1px solid var(--border); padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; padding-bottom: 48px; }
.footer-grid h4 { font-size: 14px; text-transform: uppercase; letter-spacing: .06em; color: var(--text); margin-bottom: 18px; }
.footer-grid li { margin-bottom: 11px; }
.footer-grid a { font-size: 14px; color: var(--text-dim); }
.footer-grid a:hover { color: var(--purple); }
.footer-brand p { font-size: 14px; max-width: 280px; }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a { width: 36px; height: 36px; border-radius: 9px; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; color: var(--text-dim); }
.footer-social a:hover { color: var(--purple); border-color: var(--purple); }
.footer-bottom { border-top: 1px solid var(--border); padding: 22px 0; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; font-size: 13px; color: var(--text-faint); }
.footer-bottom .links { display: flex; gap: 18px; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* Back to top */
.to-top {
  position: fixed;
  right: 22px; bottom: 22px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--purple-deep));
  color: #ffffff;
  display: flex; align-items: center; justify-content: center;
  border: none; cursor: pointer;
  box-shadow: 0 10px 26px -8px rgba(196, 121, 63,.4);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: all .2s ease;
  z-index: 90;
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }

/* ==================== Responsive ==================== */
@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .industry-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { margin-top: 30px; }
}

@media (max-width: 760px) {
  .primary-nav, .header-phone { display: none; }
  .nav-toggle { display: flex; }
  .header-cta .btn-ghost { display: none; }
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .industry-grid { grid-template-columns: 1fr; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .cta-band { padding: 36px 24px; flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }

  .mobile-nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: var(--bg);
    z-index: 99;
    padding: 20px 24px 40px;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform .25s ease;
  }
  .mobile-nav.open { transform: translateX(0); }
  .mobile-nav ul { display: flex; flex-direction: column; }
  .mobile-nav > ul > li { border-bottom: 1px solid var(--border); }
  .mobile-nav a.nav-link { padding: 16px 4px; font-size: 16px; justify-content: space-between; }
  .mobile-sub { display: none; padding: 0 0 14px 12px; }
  .mobile-sub.open { display: block; }
  .mobile-sub a { display: block; padding: 10px 4px; font-size: 14.5px; color: var(--text-dim); }
  .mobile-cta { margin-top: 24px; display: flex; flex-direction: column; gap: 12px; }
}

@media (min-width: 761px) {
  .mobile-nav { display: none; }
}

.icon { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-sm { width: 16px; height: 16px; }
.icon-lg { width: 26px; height: 26px; }

/* ==================== Enquiry popup (auto-shown + brochure/datasheet trigger) ==================== */
.enquiry-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(59, 41, 27, 0.45);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, visibility .2s;
}
.enquiry-popup-overlay[hidden] { display: flex; } /* keep flex centering while animating out */
.enquiry-popup-overlay.show { opacity: 1; visibility: visible; }
.enquiry-popup-overlay:not(.show) { pointer-events: none; }

.enquiry-popup {
  position: relative;
  width: 100%;
  max-width: 420px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 30px 70px -20px rgba(59, 41, 27, 0.35);
  padding: 32px 28px 28px;
  transform: translateY(14px) scale(.98);
  transition: transform .2s ease;
}
.enquiry-popup-overlay.show .enquiry-popup { transform: translateY(0) scale(1); }

.enquiry-popup-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--panel-2);
  color: var(--text-dim);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  padding: 0;
}
.enquiry-popup-close:hover { color: var(--text); border-color: var(--purple); }

.enquiry-popup-head { margin-bottom: 20px; padding-right: 24px; }
.enquiry-popup-head h3 { font-size: 21px; margin-bottom: 6px; }
.enquiry-popup-head p { font-size: 14px; margin-bottom: 0; }
.enquiry-popup-form .field:last-of-type { margin-bottom: 20px; }

@media (max-width: 480px) {
  .enquiry-popup { padding: 26px 20px 22px; }
}
