/* ==========================================================================
   METASAFE CORPORATION — SHARED STYLESHEET  (v2 — textured / premium pass)
   Design tokens
   -------------------------------------------------------------------------
   Primary   : #154B9C  Deep Electric Blue  (headings, primary actions)
   Secondary : #1EA7FF  Sky Blue            (links, highlights, hover)
   Navy      : #0A2540  (dark sections, footer)
   Tint      : #F3F8FD  (very light blue background wash)
   Border    : #E1E8F1
   Text      : #1C2B39
   Text-Muted: #5B7288
   Type      : Inter (headings, 600/700) + Source Sans 3 (body, 400/600)
   Signature : a thin "measurement tick" rule — a nod to electrical
               metering/audit precision — used as a divider under
               eyebrows and section titles instead of decorative blobs.
   New in v2 : faint circuit-trace texture (SVG data-URIs, no external
               images) applied to tint / navy surfaces only, plus a bit
               more depth on cards, buttons and dividers. Kept restrained
               on purpose — this is a B2B industrial site, not a startup
               landing page.
   ========================================================================== */

:root {
  --primary: #154B9C;
  --primary-dark: #0F3A7A;
  --secondary: #1EA7FF;
  --navy: #0A2540;
  --navy-soft: #0F2E52;
  --tint: #F3F8FD;
  --tint-strong: #E9F2FC;
  --border: #E1E8F1;
  --text: #1C2B39;
  --text-muted: #5B7288;
  --white: #FFFFFF;

  --font-head: 'Inter', -apple-system, Segoe UI, sans-serif;
  --font-body: 'Source Sans 3', -apple-system, Segoe UI, sans-serif;

  --max: 1200px;
  --radius: 8px;
  --shadow-sm: 0 1px 2px rgba(10, 37, 64, 0.06), 0 1px 1px rgba(10, 37, 64, 0.04);
  --shadow-md: 0 4px 14px rgba(10, 37, 64, 0.08);
  --shadow-lg: 0 10px 30px rgba(10, 37, 64, 0.10);

  /* ---- circuit-trace textures (SVG data-URIs) ---- */
  --pattern-circuit-light:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cg fill='none' stroke='%23154B9C' stroke-opacity='0.07' stroke-width='1.1'%3E%3Cpath d='M12 12H58V58H118V118'/%3E%3Cpath d='M128 24V64H86'/%3E%3Cpath d='M24 128H70V96'/%3E%3Cpath d='M96 12V36H128'/%3E%3C/g%3E%3Cg fill='%23154B9C' fill-opacity='0.10'%3E%3Ccircle cx='12' cy='12' r='2.6'/%3E%3Ccircle cx='118' cy='118' r='2.6'/%3E%3Ccircle cx='128' cy='24' r='2.1'/%3E%3Ccircle cx='70' cy='96' r='2.1'/%3E%3Ccircle cx='96' cy='12' r='2.1'/%3E%3C/g%3E%3C/svg%3E");
  --pattern-circuit-dark:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cg fill='none' stroke='%23FFFFFF' stroke-opacity='0.06' stroke-width='1.1'%3E%3Cpath d='M12 12H58V58H118V118'/%3E%3Cpath d='M128 24V64H86'/%3E%3Cpath d='M24 128H70V96'/%3E%3Cpath d='M96 12V36H128'/%3E%3C/g%3E%3Cg fill='%23FFFFFF' fill-opacity='0.09'%3E%3Ccircle cx='12' cy='12' r='2.6'/%3E%3Ccircle cx='118' cy='118' r='2.6'/%3E%3Ccircle cx='128' cy='24' r='2.1'/%3E%3Ccircle cx='70' cy='96' r='2.1'/%3E%3Ccircle cx='96' cy='12' r='2.1'/%3E%3C/g%3E%3C/svg%3E");
  --pattern-dots:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='26'%3E%3Ccircle cx='2' cy='2' r='1.2' fill='%23154B9C' fill-opacity='0.10'/%3E%3C/svg%3E");
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--navy);
  line-height: 1.25;
  font-weight: 700;
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
}

section { padding: 96px 0; }
@media (max-width: 768px) { section { padding: 56px 0; } }

/* Focus visibility for accessibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--secondary);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

/* ---------- Eyebrow + signature tick rule ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 26px;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--secondary) 0 4px, transparent 4px 7px);
}

.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 38px); margin-bottom: 14px; }
.section-head p { color: var(--text-muted); font-size: 17px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 6px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: var(--white); box-shadow: 0 4px 12px rgba(21,75,156,0.22); }
.btn-primary:hover { background: linear-gradient(135deg, var(--primary-dark), var(--primary-dark)); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(21,75,156,0.30); }
.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.45); }
.btn-outline:hover { background: rgba(255,255,255,0.12); border-color: #fff; }
.btn-outline-dark { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline-dark:hover { background: var(--tint); box-shadow: 0 0 0 4px rgba(21,75,156,0.08); }
.btn-block { width: 100%; justify-content: center; }

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: saturate(180%) blur(6px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-head); }
.brand-mark {
  width: 50px; height: 50px;
  display: flex; align-items: center; justify-content: center;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 16.5px; color: var(--navy); font-weight: 700; }
.brand-text span { font-size: 11.5px; color: var(--text-muted); letter-spacing: 0.03em; }

.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav a {
  position: relative;
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  padding: 10px 16px;
  border-radius: 6px;
  transition: color 0.2s ease, background 0.2s ease;
}
.main-nav a:hover { color: var(--primary); background: var(--tint); }
.main-nav a.active { color: var(--primary); }
.main-nav a.active::after {
  content: "";
  position: absolute; left: 16px; right: 16px; bottom: 5px;
  height: 2px; background: var(--secondary); border-radius: 2px;
}
.header-cta { display: flex; align-items: center; gap: 14px; }
.header-cta .btn { padding: 11px 20px; font-size: 14px; }

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
  align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 18px; height: 2px; background: var(--navy);
  position: relative; transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

@media (max-width: 900px) {
  .main-nav, .header-cta .btn-outline-dark { display: none; }
  .nav-toggle { display: flex; }
  .main-nav.open {
    display: flex; position: absolute; top: 78px; left: 0; right: 0;
    flex-direction: column; background: #fff; border-bottom: 1px solid var(--border);
    padding: 10px 20px 18px; gap: 2px; box-shadow: var(--shadow-md);
  }
  .main-nav.open a { padding: 12px 10px; }
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  background: var(--navy);
  color: #fff;
  overflow: hidden;
  padding: 84px 0 0;
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.9), transparent 85%);
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image: var(--pattern-circuit-dark);
  background-size: 140px 140px;
  opacity: 0.9;
  pointer-events: none;
}
.hero-glow {
  position: absolute; top: -120px; right: -120px; width: 560px; height: 560px;
  background: radial-gradient(circle, rgba(30,167,255,0.28) 0%, rgba(30,167,255,0) 70%);
}
.hero .container { position: relative; z-index: 2; }
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
  padding-bottom: 72px;
}
.hero-copy .eyebrow { color: var(--secondary); }
.hero-copy h1 {
  color: #fff;
  font-size: clamp(32px, 4.2vw, 50px);
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}
.hero-copy p {
  color: rgba(255,255,255,0.78);
  font-size: 17.5px;
  max-width: 540px;
  margin-bottom: 32px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-stats { display: flex; gap: 34px; flex-wrap: wrap; }
.hero-stats div strong {
  display: block; font-family: var(--font-head); font-size: 26px; color: #fff;
}
.hero-stats div span { font-size: 13px; color: rgba(255,255,255,0.6); }

.hero-visual {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.14);
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  padding: 22px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.35);
}
.hero-visual .panel-caption {
  font-family: var(--font-head); font-size: 12.5px; color: rgba(255,255,255,0.55);
  margin-top: 14px; display: flex; justify-content: space-between;
}
.hero-visual .status-dot {
  width: 7px; height: 7px; border-radius: 50%; background: #33d17a; display: inline-block; margin-right: 6px;
  box-shadow: 0 0 0 0 rgba(51,209,122,0.55);
  animation: pulse-dot 2s ease-out infinite;
}
@keyframes pulse-dot {
  0%   { box-shadow: 0 0 0 0 rgba(51,209,122,0.55); }
  70%  { box-shadow: 0 0 0 7px rgba(51,209,122,0); }
  100% { box-shadow: 0 0 0 0 rgba(51,209,122,0); }
}

.hero-strip {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 22px 0;
  position: relative;
}
.hero-strip .container { display: flex; align-items: center; gap: 34px; flex-wrap: wrap; }
.hero-strip span { font-size: 12.5px; color: rgba(255,255,255,0.5); letter-spacing: 0.04em; text-transform: uppercase; font-family: var(--font-head); }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
}

/* Generic inner page banner (About / Industries / Contact) */
.page-banner {
  background: var(--navy);
  color: #fff;
  padding: 64px 0 56px;
  position: relative;
  overflow: hidden;
}
.page-banner .hero-grid { opacity: 0.6; }
.page-banner::after {
  content: "";
  position: absolute; inset: 0;
  background-image: var(--pattern-circuit-dark);
  background-size: 140px 140px;
  pointer-events: none;
}
.page-banner .container { position: relative; z-index: 2; }
.page-banner .eyebrow { color: var(--secondary); }
.page-banner h1 { color: #fff; font-size: clamp(28px, 3.6vw, 42px); margin-bottom: 12px; }
.page-banner p { color: rgba(255,255,255,0.72); max-width: 620px; font-size: 16.5px; }
.breadcrumb { font-size: 13.5px; color: rgba(255,255,255,0.55); margin-bottom: 18px; font-family: var(--font-head); }
.breadcrumb a { color: rgba(255,255,255,0.85); }
.breadcrumb a:hover { color: var(--secondary); }

/* ==========================================================================
   CARDS — services / values / industries
   ========================================================================== */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 980px) { .grid-5, .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-5, .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  overflow: hidden;
  transition: box-shadow 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.card::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s ease;
}
.card:hover { box-shadow: var(--shadow-lg); border-color: #cfe0f2; transform: translateY(-4px); }
.card:hover::before { transform: scaleX(1); }
.card-icon {
  width: 46px; height: 46px;
  border-radius: 6px;
  background: var(--tint);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  color: var(--primary);
  transition: background 0.25s ease, color 0.25s ease;
}
.card:hover .card-icon { background: var(--primary); color: #fff; }
.card h3 { font-size: 18.5px; margin-bottom: 8px; }
.card p { color: var(--text-muted); font-size: 15px; }

.card-outline {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.card-outline:hover { border-color: #cfe0f2; box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card-outline .card-icon { margin-bottom: 0; flex-shrink: 0; }
.card-outline h3 { font-size: 16.5px; margin-bottom: 6px; }
.card-outline p { color: var(--text-muted); font-size: 14.5px; }

/* Tinted section wrapper */
.section-tint { background: var(--tint); position: relative; overflow: hidden; }
.section-tint::before {
  content: "";
  position: absolute; inset: 0;
  background-image: var(--pattern-circuit-light);
  background-size: 140px 140px;
  pointer-events: none;
}
.section-tint .container { position: relative; z-index: 1; }

.section-navy { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.section-navy::before {
  content: "";
  position: absolute; inset: 0;
  background-image: var(--pattern-circuit-dark);
  background-size: 140px 140px;
  pointer-events: none;
}
.section-navy .container { position: relative; z-index: 1; }
.section-navy h2 { color: #fff; }
.section-navy .section-head p { color: rgba(255,255,255,0.68); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   PROCESS TIMELINE (How We Work)
   ========================================================================== */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
.process::before {
  content: "";
  position: absolute; top: 27px; left: 8%; right: 8%; height: 1px;
  background: repeating-linear-gradient(90deg, var(--border) 0 8px, transparent 8px 14px);
}
.process-step { text-align: center; padding: 0 16px; position: relative; }
.process-step .num {
  width: 54px; height: 54px; border-radius: 50%;
  background: #fff; border: 1.5px solid var(--primary); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 700; font-size: 17px;
  margin: 0 auto 18px; position: relative; z-index: 2;
  box-shadow: 0 0 0 6px #fff;
  transition: background 0.25s ease, color 0.25s ease;
}
.process-step:hover .num { background: var(--primary); color: #fff; }
.process-step h3 { font-size: 16.5px; margin-bottom: 8px; }
.process-step p { color: var(--text-muted); font-size: 14px; }
@media (max-width: 768px) {
  .process { grid-template-columns: 1fr; gap: 32px; }
  .process::before { display: none; }
}

/* ==========================================================================
   INDUSTRY ICON STRIP
   ========================================================================== */
.industry-strip { display: grid; grid-template-columns: repeat(8, 1fr); gap: 16px; }
.industry-chip {
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px 10px; text-align: center; background: #fff;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.industry-chip:hover { border-color: var(--secondary); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.industry-chip .card-icon { margin: 0 auto 12px; width: 40px; height: 40px; }
.industry-chip span { font-size: 13.5px; font-weight: 600; font-family: var(--font-head); color: var(--navy); }
@media (max-width: 980px) { .industry-strip { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 560px) { .industry-strip { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Industry cards (Industries page — icon + description) ---------- */
.industry-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 26px;
  transition: box-shadow 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.industry-card:hover { box-shadow: var(--shadow-lg); border-color: #cfe0f2; transform: translateY(-4px); }
.industry-card .card-icon { background: var(--tint); }
.industry-card:hover .card-icon { background: var(--primary); color: #fff; }
.industry-card h3 { font-size: 17.5px; margin-bottom: 8px; }
.industry-card p { color: var(--text-muted); font-size: 14.5px; }
/* ==========================================================================
   SECTION UPGRADE — Core Services / Why Choose Us / Industries
   Append this AFTER your main stylesheet (it uses the same CSS variables:
   --primary, --secondary, --navy, --tint, --tint-strong, --border,
   --text-muted, --radius, --shadow-sm/md/lg, --font-head)
   ========================================================================== */

/* ============ CORE SERVICES ============ */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 980px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .services-grid { grid-template-columns: 1fr; } }

.service-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 32px 26px 28px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .3s ease, border-color .3s ease, transform .3s ease;
}
.service-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: #cfe0f2;
  transform: translateY(-6px);
}
.service-card .service-index {
  position: absolute;
  top: 24px; right: 26px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: .05em;
  color: #d3dfec;
}
.service-card .card-icon {
  width: 54px; height: 54px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--tint-strong), var(--tint));
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
  margin-bottom: 22px;
  transition: background .3s ease, color .3s ease, transform .3s ease, border-color .3s ease;
}
.service-card:hover .card-icon {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  border-color: transparent;
  transform: scale(1.06) rotate(-2deg);
}
.service-card h3 { font-size: 18px; margin-bottom: 10px; }
.service-card p { color: var(--text-muted); font-size: 14.5px; margin-bottom: 20px; }
.service-card .service-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-head); font-size: 13.5px; font-weight: 700;
  color: var(--primary);
  opacity: 0; transform: translateX(-6px);
  transition: opacity .25s ease, transform .25s ease;
}
.service-card:hover .service-link { opacity: 1; transform: translateX(0); }
.service-card .service-link svg { transition: transform .25s ease; }
.service-card:hover .service-link svg { transform: translateX(3px); }

/* ============ WHY CHOOSE US ============ */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 980px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .why-grid { grid-template-columns: 1fr; } }

.why-tile {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 26px 22px 24px;
  display: flex; flex-direction: column; gap: 14px;
  overflow: hidden;
  transition: box-shadow .25s ease, transform .25s ease, border-color .25s ease;
}
.why-tile::before {
  content: "";
  position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px;
  background: var(--secondary);
  border-radius: 0 3px 3px 0;
  transform: scaleY(0); transform-origin: top;
  transition: transform .3s ease;
}
.why-tile:hover { box-shadow: var(--shadow-md); border-color: #cfe0f2; transform: translateY(-4px); }
.why-tile:hover::before { transform: scaleY(1); }
.why-tile .card-icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--tint);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 0;
  transition: background .25s ease, color .25s ease;
}
.why-tile:hover .card-icon { background: var(--primary); color: #fff; }
.why-tile h3 { font-size: 16px; margin-bottom: 4px; }
.why-tile p { font-size: 14px; color: var(--text-muted); }

/* ============ INDUSTRIES ============ */
.industries-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 980px) { .industries-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .industries-grid { grid-template-columns: 1fr; } }

.industry-tile {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 30px 20px 26px;
  text-align: center;
  overflow: hidden;
  transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.industry-tile::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(21,75,156,0.05));
  opacity: 0;
  transition: opacity .25s ease;
  pointer-events: none;
}
.industry-tile:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--secondary);
}
.industry-tile:hover::after { opacity: 1; }
.industry-tile .icon-ring {
  width: 62px; height: 62px;
  border-radius: 50%;
  margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
  background: var(--tint);
  border: 1px solid var(--border);
  color: var(--primary);
  position: relative; z-index: 1;
  transition: background .25s ease, color .25s ease, border-color .25s ease, transform .25s ease;
}
.industry-tile:hover .icon-ring {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  border-color: transparent;
  transform: scale(1.05);
}
.industry-tile span.industry-name {
  position: relative; z-index: 1;
  display: block;
  font-size: 14.5px; font-weight: 700;
  font-family: var(--font-head); color: var(--navy);
}
.industry-tile small {
  position: relative; z-index: 1;
  display: block; margin-top: 6px;
  font-size: 12.5px; line-height: 1.5;
  color: var(--text-muted); font-weight: 400;
}
/* ==========================================================================
   CTA BANDS
   ========================================================================== */
.cta-band {
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff; border-radius: var(--radius);
  padding: 52px 48px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  flex-wrap: wrap;
}
.cta-band::before {
  content: "";
  position: absolute; inset: 0;
  background-image: var(--pattern-circuit-dark);
  background-size: 140px 140px;
  pointer-events: none;
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; font-size: clamp(22px, 2.6vw, 30px); max-width: 560px; }
.cta-band .btn-outline { border-color: rgba(255,255,255,0.6); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer { background: var(--navy); color: rgba(255,255,255,0.75); padding: 64px 0 0; position: relative; overflow: hidden; }
.site-footer::before {
  content: "";
  position: absolute; inset: 0;
  background-image: var(--pattern-circuit-dark);
  background-size: 140px 140px;
  pointer-events: none;
}
.site-footer .container { position: relative; z-index: 1; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px;
  padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand p { font-size: 14.5px; margin-top: 14px; color: rgba(255,255,255,0.55); max-width: 300px; }
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.footer-social a {
  width: 34px; height: 34px; border-radius: 6px; border: 1px solid rgba(255,255,255,0.18);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.footer-social a:hover { background: var(--secondary); border-color: var(--secondary); }
.footer-col h4 { color: #fff; font-size: 15px; margin-bottom: 18px; }
.footer-col ul li { margin-bottom: 11px; }
.footer-col a { font-size: 14.5px; color: rgba(255,255,255,0.65); }
.footer-col a:hover { color: var(--secondary); }
.footer-map { border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(255,255,255,0.15); height: 150px; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px 0; font-size: 13.5px; color: rgba(255,255,255,0.45); flex-wrap: wrap; gap: 10px;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   FORMS (Contact page)
   ========================================================================== */
.form-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow-md); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.form-group { display: flex; flex-direction: column; gap: 7px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { font-family: var(--font-head); font-size: 13.5px; font-weight: 600; color: var(--navy); }
.form-group input, .form-group select, .form-group textarea {
  border: 1px solid var(--border); border-radius: 6px; padding: 11px 13px;
  font-family: var(--font-body); font-size: 15px; color: var(--text); background: #fbfdff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--secondary); outline: none; box-shadow: 0 0 0 3px rgba(30,167,255,0.15);
}
.form-note { font-size: 13px; color: var(--text-muted); margin-top: 14px; }
.form-success {
  display: none; align-items: center; gap: 10px;
  background: #EAF7EE; border: 1px solid #BFE6C8; color: #1E7A3A;
  padding: 14px 16px; border-radius: 6px; font-size: 14.5px; font-family: var(--font-head); font-weight: 600;
  margin-bottom: 18px;
}
.form-success.show { display: flex; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }

.contact-info-card { display: flex; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--border); }
.contact-info-card:last-child { border-bottom: none; }
.contact-info-card .card-icon { margin-bottom: 0; flex-shrink: 0; }
.contact-info-card h3 { font-size: 15.5px; margin-bottom: 5px; }
.contact-info-card p { font-size: 14.5px; color: var(--text-muted); }

.contact-info-panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 30px;
  box-shadow: var(--shadow-sm);
}

/* ---------- FAQ accordion ---------- */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  padding: 22px 0; background: none; border: none; text-align: left;
  font-family: var(--font-head); font-size: 16.5px; font-weight: 600; color: var(--navy);
}
.faq-q .icon-plus { width: 20px; height: 20px; flex-shrink: 0; position: relative; }
.faq-q .icon-plus::before, .faq-q .icon-plus::after {
  content: ""; position: absolute; background: var(--primary); transition: transform 0.25s ease;
}
.faq-q .icon-plus::before { top: 9px; left: 0; width: 20px; height: 2px; }
.faq-q .icon-plus::after { top: 0; left: 9px; width: 2px; height: 20px; }
.faq-item.open .icon-plus::after { transform: rotate(90deg); opacity: 0; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-a p { padding-bottom: 22px; color: var(--text-muted); font-size: 15px; max-width: 760px; }

/* ---------- Counter numbers (stat rows) ---------- */
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat-row.stat-row-5 { grid-template-columns: repeat(5, 1fr); }
.stat-row .stat {
  padding: 22px 14px;
  border-radius: var(--radius);
  transition: background 0.2s ease, transform 0.2s ease;
}
.stat-row .stat:hover { background: var(--tint); transform: translateY(-3px); }
.stat-row .stat strong { display: block; font-family: var(--font-head); font-size: 34px; color: var(--primary); }
.stat-row .stat span { font-size: 14px; color: var(--text-muted); }
@media (max-width: 768px) { .stat-row, .stat-row.stat-row-5 { grid-template-columns: repeat(2, 1fr); gap: 20px; } }

/* ---------- Leadership ---------- */
.leader-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: box-shadow 0.25s ease, transform 0.25s ease; }
.leader-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.leader-photo {
  height: 400px; background: linear-gradient(135deg, var(--tint-strong), var(--tint));
  display: flex; align-items: center; justify-content: center; color: var(--primary);
  border-bottom: 1px solid var(--border);
  position: relative; overflow: hidden;
}
/* ---------- Leadership ---------- */
.leader-photo {
    height: 550px;
    background: linear-gradient(135deg, var(--tint-strong), var(--tint));
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
}

.leader-photo::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--pattern-circuit-light);
    background-size: 100px 100px;
    opacity: .15;
    z-index: 1;
}



.leader-photo img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #fff;
    display: block;
    position: relative;
    z-index: 2;
}
.leader-photo::before {
  content: ""; position: absolute; inset: 0;
  background-image: var(--pattern-circuit-light);
  background-size: 100px 100px;
}
.leader-body { padding: 24px 26px 28px; }
.leader-body .role { font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--secondary); font-weight: 700; font-family: var(--font-head); }
.leader-body h3 { margin: 6px 0 4px; font-size: 19px; }
.leader-body .exp { font-size: 13.5px; color: var(--text-muted); margin-bottom: 14px; }
.tag-row { display: flex; gap: 8px; flex-wrap: wrap; }
.tag { font-size: 12.5px; background: var(--tint); color: var(--primary); padding: 5px 11px; border-radius: 20px; font-family: var(--font-head); font-weight: 600; }

/* ---------- Vertical timeline (About > journey) ---------- */
.v-timeline { position: relative; padding-left: 30px; }
.v-timeline::before { content: ""; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 1px; background: var(--border); }
.v-item { position: relative; padding-bottom: 34px; }
.v-item:last-child { padding-bottom: 0; }
.v-item::before {
  content: ""; position: absolute; left: -30px; top: 4px; width: 11px; height: 11px; border-radius: 50%;
  background: var(--secondary); border: 2px solid #fff; box-shadow: 0 0 0 2px var(--secondary);
}
.v-item .year { font-family: var(--font-head); font-weight: 700; color: var(--primary); font-size: 14.5px; margin-bottom: 4px; }
.v-item h3 { font-size: 16.5px; margin-bottom: 6px; }
.v-item p { color: var(--text-muted); font-size: 14.5px; }

/* ---------- Values grid (About) ---------- */
.value-item { display: flex; gap: 14px; align-items: flex-start; }
.value-item .card-icon { margin-bottom: 0; }
.value-item h3 { font-size: 16px; margin-bottom: 5px; }
.value-item p { font-size: 14px; color: var(--text-muted); }

/* ---------- Photo placeholder (for client's real photography) ---------- */
.photo-frame {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(135deg, #EEF4FB, #F7FAFD);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary); position: relative; overflow: hidden;
}
.photo-frame::before {
  content: ""; position: absolute; inset: 0;
  background-image: var(--pattern-circuit-light);
  background-size: 120px 120px;
}
.photo-frame .frame-tag {
  position: absolute; bottom: 12px; left: 12px; font-size: 11px; font-family: var(--font-head);
  color: var(--text-muted); background: rgba(255,255,255,0.85); padding: 4px 9px; border-radius: 4px;
  z-index: 1;
}

/* Two column split section */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 36px; } }
.split.reverse .split-media { order: 2; }

/* ---------- Map embed frame ---------- */
.map-frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  height: 340px;
  position: relative;
}
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }


.faq-item { border-bottom: 1px solid var(--border); }

.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 0;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-head);
  font-size: 16.5px;
  font-weight: 600;
  color: var(--navy);
}

.faq-q .icon-plus {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  position: relative;
}
.faq-q .icon-plus::before,
.faq-q .icon-plus::after {
  content: "";
  position: absolute;
  background: var(--primary);
  transition: transform 0.25s ease;
}
.faq-q .icon-plus::before { top: 9px; left: 0; width: 20px; height: 2px; }
.faq-q .icon-plus::after  { top: 0; left: 9px; width: 2px; height: 20px; }
.faq-item.open .icon-plus::after { transform: rotate(90deg); opacity: 0; }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-a p {
  padding-bottom: 22px;
  color: var(--text-muted);
  font-size: 15px;
  max-width: 760px;
}