/* =========================================================
   Shivam Infotel LLP — Global stylesheet
   ========================================================= */

/* ---------- Design tokens ---------- */
:root {
  --navy-900: #061a31;
  --navy-800: #0a2540;
  --navy-700: #0f3158;
  --blue-600: #1565c0;
  --blue-500: #1e88e5;
  --sky-400: #38bdf8;
  --cyan-300: #67e8f9;

  --ink: #16263a;
  --muted: #5a6b7b;
  --line: #e3e9f0;
  --bg: #ffffff;
  --bg-soft: #f4f8fc;
  --bg-tint: #eef4fb;

  --white: #ffffff;

  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 3px rgba(10, 37, 64, .08);
  --shadow-md: 0 10px 30px rgba(10, 37, 64, .10);
  --shadow-lg: 0 24px 60px rgba(10, 37, 64, .16);

  --maxw: 1160px;
  --space: clamp(64px, 9vw, 120px);

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
button { font-family: inherit; cursor: pointer; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }
.section { padding-block: var(--space); }
.section--soft { background: var(--bg-soft); }
.section--navy {
  background: linear-gradient(160deg, var(--navy-800), var(--navy-900));
  color: #d7e3f1;
}
.center { text-align: center; }
.narrow { max-width: 720px; }
.center.narrow { margin-inline: auto; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { line-height: 1.18; color: var(--navy-800); font-weight: 700; letter-spacing: -.01em; }
.section--navy h1, .section--navy h2, .section--navy h3 { color: #fff; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.25rem; }
p  { color: var(--muted); }
.section--navy p { color: #b9cbe0; }

.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue-500);
  margin-bottom: 14px;
}
.section--navy .eyebrow { color: var(--sky-400); }

.lead { font-size: 1.18rem; color: var(--muted); }
.section-head { max-width: 760px; margin-bottom: 54px; }
.center.section-head { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px;
  font-weight: 600; font-size: .98rem;
  border: 1.5px solid transparent;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--blue-500); color: #fff; box-shadow: 0 8px 20px rgba(30,136,229,.35); }
.btn--primary:hover { background: var(--blue-600); }
.btn--ghost { border-color: rgba(255,255,255,.5); color: #fff; }
.btn--ghost:hover { background: rgba(255,255,255,.12); }
.btn--outline { border-color: var(--line); color: var(--navy-800); background: #fff; }
.btn--outline:hover { border-color: var(--blue-500); color: var(--blue-500); }
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.88);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 1.2rem; color: var(--navy-800); letter-spacing: -.02em; }
.brand__mark {
  width: 36px; height: 36px; border-radius: 9px;
  background: linear-gradient(150deg, var(--blue-500), var(--navy-800));
  display: grid; place-items: center; color: #fff; flex: none;
}
.brand__mark svg { width: 20px; height: 20px; }
.brand span small { display: block; font-size: .62rem; font-weight: 600; letter-spacing: .16em; color: var(--muted); text-transform: uppercase; }
.brand__logo { height: 60px; width: auto; display: block; }
.site-footer .brand__logo { height: 66px; filter: brightness(0) invert(1); }
@media (max-width: 480px) { .brand__logo { height: 50px; } }

.nav__links { display: flex; align-items: center; gap: 6px; }
.nav__links a {
  padding: 9px 16px; border-radius: 8px; font-weight: 500; font-size: .96rem; color: var(--ink);
  transition: background .15s ease, color .15s ease;
}
.nav__links a:hover { background: var(--bg-tint); color: var(--navy-800); }
.nav__links a.active { color: var(--blue-500); font-weight: 600; }
.nav__cta { margin-left: 12px; }

.nav__toggle { display: none; background: none; border: 0; width: 44px; height: 44px; border-radius: 10px; }
.nav__toggle:hover { background: var(--bg-tint); }
.nav__toggle span { display: block; width: 22px; height: 2px; background: var(--navy-800); margin: 5px auto; border-radius: 2px; transition: .25s; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 920px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: absolute; top: 74px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 14px 24px 22px; box-shadow: var(--shadow-md);
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: .2s ease;
  }
  .nav__links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav__links a { padding: 13px 14px; }
  .nav__cta { margin: 8px 0 0; justify-content: center; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(155deg, var(--navy-900) 0%, var(--navy-800) 45%, var(--navy-700) 100%);
  color: #e7eef7;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(700px 400px at 85% -10%, rgba(56,189,248,.22), transparent 60%),
    radial-gradient(600px 500px at 5% 110%, rgba(30,136,229,.18), transparent 60%);
}
.hero__grid {
  position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center;
  padding-block: clamp(70px, 10vw, 120px);
}
.hero h1 { color: #fff; margin-bottom: 20px; }
.hero p { color: #b9cbe0; font-size: 1.18rem; max-width: 540px; margin-bottom: 32px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__panel {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  border-radius: 20px; padding: 30px; backdrop-filter: blur(6px); box-shadow: var(--shadow-lg);
}
.hero__panel h3 { color: #fff; font-size: 1.05rem; margin-bottom: 18px; }
.hero__panel .pill-list { display: grid; gap: 12px; }
.hero__panel .pill {
  display: flex; align-items: center; gap: 12px; padding: 13px 15px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.10); border-radius: 12px;
  color: #d7e3f1; font-size: .95rem; font-weight: 500;
}
.hero__panel .pill svg { width: 20px; height: 20px; color: var(--sky-400); flex: none; }

@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .hero__panel { order: 2; }
}

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { text-align: center; padding: 8px; }
.stat__num { font-size: clamp(2.1rem, 4vw, 2.9rem); font-weight: 800; color: var(--navy-800); letter-spacing: -.02em; line-height: 1; }
.section--navy .stat__num { color: #fff; }
.stat__label { margin-top: 8px; font-size: .92rem; color: var(--muted); font-weight: 500; }
.section--navy .stat__label { color: #9fb6cf; }
@media (max-width: 720px) { .stats { grid-template-columns: repeat(2, 1fr); gap: 30px 16px; } }

/* ---------- Pillars / feature grid ---------- */
.grid { display: grid; gap: 26px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid--3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grid--3, .grid--2 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #cfe0f2; }
.card__icon {
  width: 52px; height: 52px; border-radius: 13px; display: grid; place-items: center;
  background: var(--bg-tint); color: var(--blue-500); margin-bottom: 20px;
}
.card__icon svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: 10px; }
.card p { font-size: .98rem; }
.card__link { display: inline-flex; align-items: center; gap: 7px; margin-top: 16px; color: var(--blue-500); font-weight: 600; font-size: .94rem; }
.card__link .arrow { transition: transform .2s ease; }
.card__link:hover .arrow { transform: translateX(3px); }

/* ---------- Service detail blocks ---------- */
.service { scroll-margin-top: 100px; }
.service + .service { margin-top: 30px; }
.service__row { display: grid; grid-template-columns: 64px 1fr; gap: 22px; }
.service .card__icon { margin-bottom: 0; }
.service h3 { font-size: 1.4rem; margin-bottom: 12px; }
.service ul.ticks { margin-top: 18px; display: grid; gap: 10px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tag {
  display: inline-flex; align-items: center; white-space: nowrap;
  font-size: .82rem; font-weight: 600; padding: 6px 13px; border-radius: 999px;
  background: var(--bg-tint); color: var(--blue-600); border: 1px solid #d7e7f7;
}
ul.ticks li { position: relative; padding-left: 30px; color: var(--ink); font-size: .98rem; }
ul.ticks li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 19px; height: 19px;
  border-radius: 50%; background: var(--bg-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231e88e5' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* ---------- Audience / client list ---------- */
.audience { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.audience .card { padding: 24px; }
.audience .card__icon { width: 46px; height: 46px; margin-bottom: 16px; }
@media (max-width: 900px) { .audience { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .audience { grid-template-columns: 1fr; } }

/* ---------- Split / about content ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 36px; } }
.split p + p { margin-top: 16px; }

.value-list { display: grid; gap: 18px; margin-top: 8px; }
.value { display: grid; grid-template-columns: 46px 1fr; gap: 16px; align-items: start; }
.value .card__icon { width: 46px; height: 46px; margin: 0; }
.value h4 { font-size: 1.05rem; color: var(--navy-800); margin-bottom: 4px; }
.value p { font-size: .96rem; }

/* media / framed image placeholder */
.framed {
  border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-lg);
  background: linear-gradient(150deg, var(--navy-800), var(--navy-700)); color: #cfe0f2;
  aspect-ratio: 4 / 3; display: grid; place-items: center; text-align: center; padding: 32px;
  border: 1px solid rgba(255,255,255,.08);
}
.framed svg { width: 90px; height: 90px; opacity: .85; color: var(--sky-400); }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
.cta-band h2 { color: #fff; margin-bottom: 14px; }
.cta-band p { max-width: 600px; margin: 0 auto 30px; }
.cta-band .hero__actions { justify-content: center; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 52px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; gap: 40px; } }
.office { display: flex; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.office:last-child { border-bottom: 0; }
.office svg { width: 22px; height: 22px; color: var(--blue-500); flex: none; margin-top: 3px; }
.office h4 { font-size: 1.02rem; margin-bottom: 3px; }
.office p { font-size: .95rem; }

.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm); }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: .9rem; font-weight: 600; color: var(--navy-800); margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font-family: inherit; font-size: .98rem; color: var(--ink); background: var(--bg-soft); transition: border-color .15s ease, background .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue-500); background: #fff; }
.field textarea { resize: vertical; min-height: 120px; }
.form__note { font-size: .85rem; color: var(--muted); margin-top: 6px; }
.form-status { margin-top: 14px; font-size: .95rem; font-weight: 600; color: #1a8f4c; display: none; }
.form-status.show { display: block; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: #a9bdd4; padding-block: 64px 30px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer .brand { color: #fff; margin-bottom: 16px; }
.site-footer .brand span small { color: #7e95b0; }
.footer-about { max-width: 320px; font-size: .95rem; color: #91a8c2; }
.footer-col h4 { color: #fff; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 16px; }
.footer-col a { display: block; padding: 6px 0; font-size: .95rem; color: #a9bdd4; transition: color .15s ease; }
.footer-col a:hover { color: var(--sky-400); }
.footer-bottom {
  margin-top: 44px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.10);
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: .88rem; color: #7e95b0;
}

/* =========================================================
   IMAGE-DRIVEN COMPONENTS (v2)
   ========================================================= */

/* ----- Full-bleed photo hero ----- */
.hero--photo {
  position: relative; color: #fff; overflow: hidden;
  min-height: clamp(560px, 78vh, 760px);
  display: flex; align-items: center;
}
.hero--photo .hero__bg {
  position: absolute; inset: 0; z-index: 0;
}
.hero--photo .hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero--photo .hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(6,26,49,.92) 0%, rgba(10,37,64,.78) 42%, rgba(10,37,64,.30) 100%),
    linear-gradient(0deg, rgba(6,26,49,.55), rgba(6,26,49,0) 45%);
}
.hero--photo .container { position: relative; z-index: 1; padding-block: clamp(72px, 10vw, 110px); }
.hero--photo .hero__copy { max-width: 660px; }
.hero--photo h1 { color: #fff; margin-bottom: 22px; }
.hero--photo .lead { color: #cddcec; font-size: 1.2rem; margin-bottom: 32px; }
.hero--photo .eyebrow { color: var(--sky-400); }

/* compact photo hero for inner pages */
.hero--compact { min-height: clamp(380px, 52vh, 480px); }

.trust-row {
  display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 30px;
  font-size: .9rem; color: #9fb6cf; font-weight: 500;
}
.trust-row span { display: inline-flex; align-items: center; gap: 8px; }
.trust-row svg { width: 17px; height: 17px; color: var(--sky-400); }

/* ----- Media card (image-topped) ----- */
.media-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.media-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #cfe0f2; }
.media-card__img { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.media-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.media-card:hover .media-card__img img { transform: scale(1.05); }
.media-card__img .badge {
  position: absolute; left: 14px; bottom: 14px;
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(6,26,49,.78); color: #fff; backdrop-filter: blur(4px);
  padding: 7px 13px; border-radius: 999px; font-size: .82rem; font-weight: 600;
}
.media-card__img .badge svg { width: 16px; height: 16px; color: var(--sky-400); }
.media-card__body { padding: 24px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.media-card__body h3 { margin-bottom: 9px; }
.media-card__body p { font-size: .97rem; }
.media-card__body .card__link { margin-top: auto; padding-top: 14px; }

/* ----- Alternating feature / service rows with photo ----- */
.feature {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center;
  scroll-margin-top: 96px;
}
.feature + .feature { margin-top: clamp(48px, 7vw, 96px); }
.feature__media { position: relative; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4 / 3; }
.feature__media img { width: 100%; height: 100%; object-fit: cover; }
.feature:nth-child(even) .feature__media { order: 2; }
.feature__num {
  display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 11px;
  background: var(--bg-tint); color: var(--blue-500); font-weight: 800; font-size: 1rem; margin-bottom: 16px;
}
.feature h3 { font-size: clamp(1.5rem, 2.6vw, 1.9rem); margin-bottom: 14px; }
.feature .lead-sm { font-size: 1.05rem; color: var(--muted); margin-bottom: 18px; }
@media (max-width: 820px) {
  .feature { grid-template-columns: 1fr; gap: 26px; }
  .feature:nth-child(even) .feature__media { order: 0; }
}

/* ----- Photo CTA band ----- */
.cta--photo { position: relative; color: #fff; overflow: hidden; }
.cta--photo .cta__bg { position: absolute; inset: 0; z-index: 0; }
.cta--photo .cta__bg img { width: 100%; height: 100%; object-fit: cover; }
.cta--photo .cta__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(6,26,49,.93), rgba(15,49,88,.80)); }
.cta--photo .container { position: relative; z-index: 1; }
.cta--photo h2 { color: #fff; }
.cta--photo p { color: #cddcec; }

/* ----- Stat band overlay on photo ----- */
.imgstat { position: relative; overflow: hidden; color: #fff; }
.imgstat .imgstat__bg { position: absolute; inset: 0; z-index: 0; }
.imgstat .imgstat__bg img { width: 100%; height: 100%; object-fit: cover; }
.imgstat .imgstat__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(6,26,49,.90), rgba(10,37,64,.82)); }
.imgstat .container { position: relative; z-index: 1; }
.imgstat .stat__num { color: #fff; }
.imgstat .stat__label { color: #9fb6cf; }

/* deliverables sub-list inside features */
.mini-head { font-size: .82rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--navy-800); margin: 22px 0 12px; }

/* =========================================================
   AIM → DIGITAL DATA SET → SWIM concept diagram
   ========================================================= */
/* one unified diagram panel */
.aim-stage { margin-top: 8px; }
.aim-flow {
  display: flex; align-items: center; justify-content: center; gap: 0;
  background: linear-gradient(180deg, #ffffff 0%, #f3f8fe 100%);
  border: 1px solid var(--line); border-radius: 24px;
  box-shadow: var(--shadow-md);
  padding: 48px 36px;
}
.aim-node {
  flex: 1 1 0; text-align: center; padding: 10px 16px;
  display: flex; flex-direction: column; align-items: center;
}
.aim-node__icon {
  width: 62px; height: 62px; margin-bottom: 18px; border-radius: 50%;
  display: grid; place-items: center; background: var(--bg-tint); color: var(--blue-500);
  border: 1px solid #d8e6f5;
}
.aim-node__icon svg { width: 28px; height: 28px; }
.aim-node h3 { font-size: 1.55rem; letter-spacing: .01em; margin-bottom: 8px; }
.aim-node__sub { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--blue-500); margin-bottom: 12px; }
.aim-node__tag { font-size: .95rem; color: var(--muted); line-height: 1.5; max-width: 230px; }

/* central hub = the data store, visually emphasised */
.aim-node--hub {
  background: linear-gradient(165deg, var(--navy-700), var(--navy-900)); color: #fff;
  border-radius: 20px; box-shadow: var(--shadow-lg);
  padding: 34px 24px; margin: -14px 4px; align-self: stretch; justify-content: center;
}
.aim-node--hub h3 { color: #fff; font-size: 1.3rem; }
.aim-node--hub .aim-node__sub { color: var(--sky-400); }
.aim-node--hub .aim-node__tag { color: #c4d4e6; }
.aim-node--hub .aim-node__icon { background: rgba(255,255,255,.08); color: var(--sky-400); border-color: rgba(255,255,255,.18); }

/* labelled, animated flow connectors */
.aim-link { flex: 0 0 100px; display: flex; flex-direction: column; align-items: center; gap: 9px; padding: 0 4px; }
.aim-link__label { font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.aim-link__line {
  position: relative; width: 100%; height: 3px; border-radius: 2px;
  background: repeating-linear-gradient(90deg, var(--blue-500) 0 7px, transparent 7px 15px);
  background-size: 15px 3px; animation: aimflow 0.9s linear infinite;
}
.aim-link__line::after {
  content: ""; position: absolute; right: -2px; top: 50%; transform: translateY(-50%);
  border-left: 8px solid var(--blue-500);
  border-top: 5px solid transparent; border-bottom: 5px solid transparent;
}
@keyframes aimflow { to { background-position-x: 15px; } }

/* value pills under the diagram */
.aim-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; }
.aim-pill {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 10px 18px; border-radius: 999px; background: #fff;
  border: 1px solid var(--line); font-weight: 600; font-size: .9rem; color: var(--navy-800);
  box-shadow: var(--shadow-sm);
}
.aim-pill svg { width: 17px; height: 17px; color: var(--blue-500); }

@media (max-width: 760px) {
  .aim-flow { flex-direction: column; align-items: stretch; padding: 30px 22px; }
  .aim-node { padding: 16px 8px; }
  .aim-node--hub { margin: 6px 0; padding: 28px 20px; }
  .aim-node__tag { max-width: none; }
  .aim-link { flex-direction: row; justify-content: center; gap: 12px; padding: 6px 0; }
  .aim-link__label { order: 2; }
  .aim-link__line {
    order: 1; width: 3px; height: 36px;
    background: repeating-linear-gradient(180deg, var(--blue-500) 0 7px, transparent 7px 15px);
    background-size: 3px 15px; animation: aimflowdown 0.9s linear infinite;
  }
  .aim-link__line::after {
    right: 50%; top: auto; bottom: -2px; transform: translateX(50%);
    border-left: 5px solid transparent; border-right: 5px solid transparent;
    border-top: 8px solid var(--blue-500); border-bottom: 0;
  }
  @keyframes aimflowdown { to { background-position-y: 15px; } }
}
@media (prefers-reduced-motion: reduce) { .aim-link__line { animation: none; } }

/* =========================================================
   SERVICE EXPLORER (category → service → detail)
   ========================================================= */
.explorer { margin-top: 8px; }

/* top-level category tabs */
.explorer__tabs {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 30px;
}
.explorer__tab {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px; border-radius: 999px; font-weight: 600; font-size: .98rem;
  background: #fff; color: var(--navy-800); border: 1.5px solid var(--line);
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .15s ease;
}
.explorer__tab svg { width: 19px; height: 19px; color: var(--blue-500); transition: color .18s ease; }
.explorer__tab:hover { border-color: #bcd6f0; transform: translateY(-1px); }
.explorer__tab.active { background: var(--navy-800); color: #fff; border-color: var(--navy-800); }
.explorer__tab.active svg { color: var(--sky-400); }

/* a category panel = vertical service list + detail */
.explorer__cat { display: none; }
.explorer__cat.active { display: block; }
.explorer__grid {
  display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 22px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-md); overflow: hidden;
}
.explorer__list { min-width: 0; display: flex; flex-direction: column; padding: 14px; background: var(--bg-soft); border-right: 1px solid var(--line); }
.explorer__svc {
  display: flex; align-items: center; gap: 12px; text-align: left;
  padding: 14px 16px; border-radius: var(--radius-sm); background: transparent; border: 0;
  font-weight: 600; font-size: .97rem; color: var(--navy-800); cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.explorer__svc .dot { width: 8px; height: 8px; border-radius: 50%; background: #c3d4e6; flex: none; transition: background .15s ease; }
.explorer__svc:hover { background: var(--bg-tint); }
.explorer__svc.active { background: #fff; color: var(--blue-600); box-shadow: var(--shadow-sm); }
.explorer__svc.active .dot { background: var(--blue-500); }

.explorer__detail { position: relative; min-width: 0; min-height: 420px; }
.explorer__panel { display: none; grid-template-columns: 1.05fr 1fr; gap: 0; height: 100%; }
.explorer__panel.active { display: grid; animation: fadeUp .35s ease; }
.explorer__panel-media { position: relative; min-height: 280px; }
.explorer__panel-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.explorer__panel-body { padding: 34px 36px; display: flex; flex-direction: column; justify-content: center; }
.explorer__panel-body .eyebrow { margin-bottom: 10px; }
.explorer__panel-body h3 { font-size: 1.5rem; margin-bottom: 12px; }
.explorer__panel-body p { font-size: 1rem; }
.explorer__panel-body .tag-row { margin-top: 20px; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

@media (max-width: 860px) {
  .explorer__grid { grid-template-columns: 1fr; }
  .explorer__list { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 12px; }
  .explorer__svc { white-space: nowrap; }
  .explorer__panel, .explorer__panel.active { grid-template-columns: 1fr; }
  .explorer__panel-media { min-height: 200px; aspect-ratio: 16/9; }
  .explorer__panel-body { padding: 26px 24px; }
}
@media (prefers-reduced-motion: reduce) { .explorer__panel.active { animation: none; } }

/* =========================================================
   SOCIAL ICONS
   ========================================================= */
.social-row { display: flex; gap: 10px; margin-top: 18px; }
.social {
  width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center;
  background: var(--bg-tint); color: var(--blue-600); border: 1px solid var(--line);
  transition: background .18s ease, color .18s ease, transform .15s ease, border-color .18s ease;
}
.social svg { width: 18px; height: 18px; }
.social:hover { background: var(--blue-500); color: #fff; border-color: var(--blue-500); transform: translateY(-2px); }
/* dark footer variant */
.site-footer .social { background: rgba(255,255,255,.07); color: #c2d2e6; border-color: rgba(255,255,255,.14); }
.site-footer .social:hover { background: var(--blue-500); color: #fff; border-color: var(--blue-500); }

/* =========================================================
   CONTACT — info cards + social block
   ========================================================= */
.contact-cards {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; max-width: 960px; margin: 0 auto;
}
@media (max-width: 760px) { .contact-cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 440px) { .contact-cards { grid-template-columns: 1fr; } }
.contact-card {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px;
  padding: 30px 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
a.contact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #cfe0f2; }
.contact-card__icon {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: var(--bg-tint); color: var(--blue-500); margin-bottom: 8px;
}
.contact-card__icon svg { width: 24px; height: 24px; }
.contact-card h4 { font-size: 1rem; color: var(--navy-800); }
.contact-card p { font-size: .95rem; color: var(--muted); word-break: break-word; }
a.contact-card { color: inherit; }
a.contact-card:hover p { color: var(--blue-500); }

.contact-social { text-align: center; margin-top: 48px; }
.contact-social__label { display: block; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.contact-social .social-row { justify-content: center; margin-top: 0; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
