/* ==========================================================================
   Avimukt Engineers Pvt Ltd — shared stylesheet
   Plain CSS, no build step. Custom properties drive the theme.
   ========================================================================== */

:root {
  /* Brand palette (derived from logo) */
  --navy-deep:   #0A1F3C;
  --navy:        #0B3A6E;
  --navy-light:  #123B6B;
  --blue:        #1E6FD0;
  --blue-soft:   #E8F1FC;
  --gold:        #F4B63A;
  --orange:      #E8811A;
  --ink:         #101826;
  --slate:       #3E4C63;
  --slate-soft:  #6B7A93;
  --line:        #E2E8F1;
  --line-soft:   #EEF2F8;
  --paper:       #FFFFFF;
  --paper-tint:  #F6F8FB;
  --paper-navy:  #0E2647;
  --ok:          #1F8A5C;
  --warn:        #B5590D;

  /* Type */
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Spacing / radius / shadow */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(10, 31, 60, 0.06), 0 1px 1px rgba(10, 31, 60, 0.04);
  --shadow-md: 0 8px 24px rgba(10, 31, 60, 0.10);
  --shadow-lg: 0 20px 48px rgba(10, 31, 60, 0.16);
  --container: 1180px;
  --header-h: 76px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5 { font-family: var(--font-display); font-weight: 600; line-height: 1.18; margin: 0 0 0.5em; color: var(--navy-deep); }
p { margin: 0 0 1em; color: var(--slate); }
button { font-family: inherit; }
svg { display: block; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }

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

.section {
  padding: 88px 0;
}
.section--tight { padding: 56px 0; }
.section--tint { background: var(--paper-tint); }
.section--navy {
  background: linear-gradient(160deg, var(--navy-deep) 0%, var(--navy) 65%, var(--navy-light) 100%);
  color: #fff;
}
.section--navy h1, .section--navy h2, .section--navy h3 { color: #fff; }
.section--navy p { color: rgba(255,255,255,0.78); }

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

.section-head {
  max-width: 720px;
  margin: 0 0 44px;
}
.section-head h2 { font-size: clamp(1.6rem, 2.6vw, 2.15rem); }
.section-head p { font-size: 1.05rem; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.96rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--orange); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: #d0710f; box-shadow: var(--shadow-md); }
.btn-secondary { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-secondary:hover { background: var(--navy); color: #fff; }
.section--navy .btn-secondary { color: #fff; border-color: rgba(255,255,255,0.55); }
.section--navy .btn-secondary:hover { background: #fff; color: var(--navy-deep); }
.btn-ghost { background: rgba(255,255,255,0.08); color: #fff; border-color: rgba(255,255,255,0.25); }
.btn-ghost:hover { background: rgba(255,255,255,0.16); }
.btn-block { width: 100%; }
.btn-sm { padding: 9px 18px; font-size: 0.86rem; }

/* ---------- Preview ribbon ---------- */
#preview-ribbon {
  background: var(--navy-deep);
  color: var(--gold);
  text-align: center;
  font-size: 0.78rem;
  font-family: var(--font-display);
  letter-spacing: 0.05em;
  padding: 7px 16px;
  position: relative;
  z-index: 200;
  border-bottom: 1px solid rgba(244,182,58,0.3);
}
#preview-ribbon strong { color: #fff; font-weight: 600; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 150;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.brand img {
  height: 46px;
  width: 46px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: var(--shadow-sm);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong {
  font-family: var(--font-display);
  font-size: 1.06rem;
  font-weight: 700;
  color: var(--navy-deep);
  letter-spacing: 0.01em;
}
.brand-text span {
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  justify-content: center;
}
.nav-item { position: relative; }
.nav-link {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 10px 14px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--slate);
  border-radius: var(--radius-sm);
  transition: color 0.15s ease, background-color 0.15s ease;
}
.nav-link:hover { color: var(--navy); background: var(--blue-soft); }
.nav-link.is-active { color: var(--navy); font-weight: 600; }
.nav-link .caret { width: 9px; height: 9px; transition: transform 0.15s ease; flex-shrink: 0; }
.nav-item:hover .caret, .nav-item.is-open .caret { transform: rotate(180deg); }

.dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 240px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
  z-index: 160;
}
.nav-item:hover .dropdown,
.nav-item.is-open .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown a {
  display: block;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--slate);
  font-weight: 500;
}
.dropdown a:hover { background: var(--blue-soft); color: var(--navy); }

.nav-cta { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-cta .btn { padding: 10px 20px; font-size: 0.88rem; }

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  flex-shrink: 0;
}
.hamburger span {
  width: 20px;
  height: 2px;
  background: var(--navy-deep);
  margin: 0 auto;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile panel is hidden at every width by default; only the ≤1240px media
   query (below) ever reveals it, and only once .is-open is toggled on. */
.mobile-panel { display: none; }

/* ---------- Mobile nav ---------- */
@media (max-width: 1240px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .mobile-panel {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    /* Explicit viewport-relative height (rather than a bottom:0 stretch) so
       this still fills the screen even if a rendering engine treats the
       sticky-positioned header as this element's containing block. */
    height: calc(100vh - var(--header-h));
    background: #fff;
    z-index: 140;
    overflow-y: auto;
    padding: 8px 20px 40px;
  }
  .mobile-panel.is-open { display: block; }
  .mobile-panel .m-item { border-bottom: 1px solid var(--line-soft); }
  .mobile-panel .m-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 4px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.02rem;
    color: var(--navy-deep);
    cursor: pointer;
  }
  .mobile-panel .m-top svg { width: 14px; height: 14px; transition: transform 0.2s ease; flex-shrink: 0; }
  .mobile-panel .m-item.is-open .m-top svg { transform: rotate(180deg); }
  .mobile-panel .m-sub {
    display: none;
    padding: 0 4px 14px 12px;
  }
  .mobile-panel .m-item.is-open .m-sub { display: block; }
  .mobile-panel .m-sub a {
    display: block;
    padding: 9px 0;
    color: var(--slate);
    font-size: 0.95rem;
  }
  .mobile-panel .m-cta { padding: 22px 4px 0; display: flex; flex-direction: column; gap: 10px; }
  body.nav-locked { overflow: hidden; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(155deg, var(--navy-deep) 0%, var(--navy) 55%, var(--navy-light) 100%);
  color: #fff;
  padding: 84px 0 96px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 85% 12%, rgba(244,182,58,0.16) 0%, transparent 45%),
    radial-gradient(circle at 8% 90%, rgba(30,111,208,0.28) 0%, transparent 50%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}
.hero-copy .eyebrow { color: var(--gold); }
.hero-copy .eyebrow::before { background: var(--gold); }
.hero h1 {
  color: #fff;
  font-size: clamp(2.1rem, 4.2vw, 3.15rem);
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}
.hero-copy p.lead {
  color: rgba(255,255,255,0.82);
  font-size: 1.14rem;
  max-width: 560px;
  margin-bottom: 32px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-art .logo-plate {
  width: min(320px, 78vw);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 28px;
  padding: 22px;
  box-shadow: var(--shadow-lg);
}
.hero-art .logo-plate img {
  border-radius: 18px;
  width: 100%;
}
.hero-badges {
  position: relative;
  z-index: 1;
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.hero-badges .badge {
  background: rgba(10,31,60,0.55);
  padding: 18px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero-badges .badge svg { width: 26px; height: 26px; color: var(--gold); flex-shrink: 0; }
.hero-badges .badge span { font-size: 0.84rem; color: rgba(255,255,255,0.85); font-weight: 500; line-height: 1.3; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background: linear-gradient(155deg, var(--navy-deep) 0%, var(--navy) 60%, var(--navy-light) 100%);
  color: #fff;
  padding: 62px 0 68px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 90% 0%, rgba(244,182,58,0.14) 0%, transparent 45%);
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.breadcrumb {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 16px;
  display: flex;
  gap: 8px;
  align-items: center;
}
.breadcrumb a:hover { color: #fff; }
.page-hero h1 { color: #fff; font-size: clamp(1.8rem, 3.4vw, 2.5rem); margin-bottom: 14px; }
.page-hero p.lead { color: rgba(255,255,255,0.8); max-width: 640px; font-size: 1.05rem; margin: 0; }

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

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: #d7e2f0; }
.card .icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: var(--blue-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.card .icon-wrap svg { width: 26px; height: 26px; color: var(--navy); }
.card h3 { font-size: 1.12rem; margin-bottom: 10px; }
.card p { font-size: 0.94rem; margin-bottom: 0; }
.card .tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 10px;
}

.card--flat {
  background: var(--paper-tint);
  border: 1px solid var(--line);
}

.numbered-list { display: flex; flex-direction: column; gap: 18px; }
.numbered-list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.numbered-list .num {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--navy-deep);
  color: var(--gold);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.numbered-list strong { display: block; color: var(--navy-deep); font-family: var(--font-display); font-size: 0.98rem; margin-bottom: 2px; }
.numbered-list p { margin: 0; font-size: 0.92rem; }

/* Check list */
.check-list li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; font-size: 0.96rem; color: var(--slate); }
.check-list svg { width: 18px; height: 18px; color: var(--ok); flex-shrink: 0; margin-top: 3px; }

/* ---------- Values / focus icon rows ---------- */
.icon-row {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.icon-row .icon-wrap {
  width: 48px; height: 48px; border-radius: 10px;
  background: var(--navy-deep);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.icon-row .icon-wrap svg { width: 24px; height: 24px; color: var(--gold); }
.icon-row h4 { font-size: 1.02rem; margin-bottom: 6px; }
.icon-row p { font-size: 0.92rem; margin-bottom: 0; }

/* ---------- Stat strip ---------- */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.stat-strip .stat { background: #fff; padding: 26px 20px; text-align: center; }
.stat-strip .stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.7rem;
  color: var(--navy);
}
.stat-strip .stat span { font-size: 0.82rem; color: var(--slate-soft); }

/* ---------- Pillars (home) ---------- */
.pillar-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  overflow: hidden;
}
.pillar-card::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--orange), var(--gold));
}
.pillar-card .num-tag {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--orange);
  letter-spacing: 0.08em;
  margin-bottom: 12px;
  display: block;
}

/* ---------- Applications strip ---------- */
.app-chip-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.app-chip {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 22px 16px;
  text-align: center;
}
.app-chip .icon-wrap {
  width: 46px; height: 46px; border-radius: 10px;
  background: var(--blue-soft);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 12px;
}
.app-chip .icon-wrap svg { width: 24px; height: 24px; color: var(--navy); }
.app-chip span { font-size: 0.86rem; font-weight: 600; color: var(--navy-deep); }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--navy-deep), var(--navy));
  border-radius: var(--radius-lg);
  padding: 52px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta-band::after {
  content: "";
  position: absolute; right: -60px; top: -60px;
  width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(244,182,58,0.25), transparent 70%);
}
.cta-band h2 { color: #fff; font-size: 1.5rem; margin-bottom: 8px; }
.cta-band p { color: rgba(255,255,255,0.78); margin: 0; }
.cta-band .cta-actions { display: flex; gap: 12px; flex-shrink: 0; position: relative; z-index: 1; }

/* ---------- Placeholder cards (content to be provided) ---------- */
.placeholder-card {
  border: 1.5px dashed #c8b487;
  background: #FFFBF0;
  border-radius: var(--radius-md);
  padding: 26px;
  position: relative;
}
.placeholder-card .placeholder-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #96690F;
  background: #FBEBC6;
  border: 1px solid #EAD299;
  padding: 4px 10px;
  border-radius: 100px;
  margin-bottom: 14px;
}
.placeholder-card .placeholder-tag svg { width: 12px; height: 12px; }
.placeholder-card h4 { font-size: 1rem; margin-bottom: 6px; color: var(--navy-deep); }
.placeholder-card p { font-size: 0.88rem; color: var(--slate-soft); margin-bottom: 0; }
.placeholder-avatar {
  width: 64px; height: 64px; border-radius: 50%;
  background: repeating-linear-gradient(45deg, #F1E4BC, #F1E4BC 6px, #FBF3DC 6px, #FBF3DC 12px);
  border: 1.5px dashed #c8b487;
  margin-bottom: 14px;
}

/* ---------- Diagram (charge controller) ---------- */
.diagram-wrap {
  background: var(--paper-navy);
  border-radius: var(--radius-lg);
  padding: 40px;
  overflow-x: auto;
}
.diagram-wrap svg { margin: 0 auto; max-width: 100%; height: auto; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-md); }
table.data-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; min-width: 520px; }
table.data-table th {
  text-align: left;
  background: var(--paper-tint);
  color: var(--navy-deep);
  font-family: var(--font-display);
  font-weight: 600;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
table.data-table td { padding: 12px 16px; border-bottom: 1px solid var(--line-soft); color: var(--slate); }
table.data-table tr:last-child td { border-bottom: none; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 0.86rem; font-weight: 600; color: var(--navy-deep); }
.field input, .field select, .field textarea {
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--ink);
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(30,111,208,0.15);
  outline: none;
}
.field textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 0.82rem; color: var(--slate-soft); margin-top: 14px; }
.form-status {
  display: none;
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: #EAF6EF;
  border: 1px solid #BEE3C9;
  color: var(--ok);
  font-size: 0.9rem;
}
.form-status.is-visible { display: block; }

/* ---------- Tabs (used on Resources / Services) ---------- */
.tab-bar { display: flex; gap: 8px; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin-bottom: 32px; }
.tab-btn {
  padding: 12px 4px;
  margin-right: 22px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.94rem;
  color: var(--slate-soft);
  background: none;
  border: none;
  border-bottom: 2.5px solid transparent;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.tab-btn:hover { color: var(--navy); }
.tab-btn.is-active { color: var(--navy); border-color: var(--orange); }
.tab-panel { display: none; }
.tab-panel.is-active { display: block; }

/* ---------- Accordion (FAQ-like uses) ---------- */
.accordion-item { border: 1px solid var(--line); border-radius: var(--radius-md); margin-bottom: 12px; overflow: hidden; }
.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  background: #fff;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--navy-deep);
}
.accordion-trigger svg { width: 16px; height: 16px; flex-shrink: 0; transition: transform 0.2s ease; color: var(--slate-soft); }
.accordion-item.is-open .accordion-trigger svg { transform: rotate(180deg); }
.accordion-panel { max-height: 0; overflow: hidden; transition: max-height 0.25s ease; background: var(--paper-tint); }
.accordion-item.is-open .accordion-panel { max-height: 600px; }
.accordion-panel-inner { padding: 4px 22px 20px; font-size: 0.92rem; color: var(--slate); }

/* ---------- Timeline (projects/case studies) ---------- */
.timeline { position: relative; padding-left: 32px; }
.timeline::before { content: ""; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.timeline-item { position: relative; padding-bottom: 34px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: "";
  position: absolute; left: -32px; top: 4px;
  width: 20px; height: 20px; border-radius: 50%;
  background: #fff; border: 3px solid var(--orange);
}

/* ---------- Reveal-on-scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,0.75); padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 44px; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-brand img { height: 44px; width: 44px; border-radius: 8px; }
.footer-brand strong { font-family: var(--font-display); color: #fff; font-size: 1.05rem; display: block; }
.footer-brand span { font-size: 0.68rem; color: var(--gold); letter-spacing: 0.06em; text-transform: uppercase; }
.site-footer p.tag-line { font-size: 0.88rem; max-width: 280px; color: rgba(255,255,255,0.6); }
.footer-col h5 {
  font-family: var(--font-display);
  color: #fff;
  font-size: 0.84rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-col a, .footer-col span { display: block; font-size: 0.9rem; color: rgba(255,255,255,0.62); margin-bottom: 11px; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
}
.footer-bottom a:hover { color: var(--gold); }
.footer-legal-links { display: flex; gap: 18px; }

/* ---------- Utility ---------- */
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.text-center { text-align: center; }
.muted { color: var(--slate-soft); }
.divider { height: 1px; background: var(--line); border: none; margin: 44px 0; }
.pill {
  display: inline-block;
  background: var(--blue-soft);
  color: var(--navy);
  font-size: 0.76rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 100px;
  margin: 0 8px 8px 0;
}

/* ---------- 404 ---------- */
.error-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px;
}
.error-page .code {
  font-family: var(--font-display);
  font-size: 5rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 10px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .app-chip-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-art { order: -1; }
  .hero-art .logo-plate { width: min(220px, 60vw); margin: 0 auto; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .hero-badges { grid-template-columns: repeat(2, 1fr); }
  .cta-band { flex-direction: column; align-items: flex-start; text-align: left; }
}
@media (max-width: 720px) {
  .section { padding: 60px 0; }
  .container { padding: 0 18px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .app-chip-grid { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 36px 26px; }
  .diagram-wrap { padding: 22px 14px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .brand-text strong { font-size: 0.94rem; }
  .brand img { height: 40px; width: 40px; }
  .page-hero { padding: 46px 0 52px; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}
