/* =========================================================
   Eynriex – main stylesheet
   ========================================================= */
:root {
  --red: #c8102e;
  --red-dark: #a00c25;
  --red-soft: #fdecef;
  --red-glow: rgba(200, 16, 46, .45);
  --navy-900: #081129;
  --navy-800: #0b1530;
  --navy-700: #13224a;
  --navy-600: #1d3163;
  --ink: #0f172a;
  --text: #3b4456;
  --muted: #667085;
  --line: #e4e8ef;
  --bg: #ffffff;
  --tint: #f4f7fb;
  --radius: 16px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
  --shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 12px 32px -12px rgba(15, 23, 42, .18);
  --shadow-lg: 0 30px 60px -20px rgba(8, 17, 41, .45);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.65; color: var(--text); background: var(--bg); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
body.menu-open { overflow: hidden; }
img, svg, iframe { max-width: 100%; }
a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-dark); }
h1, h2, h3 { color: var(--ink); line-height: 1.18; margin: 0 0 .6em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.12rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
button { font-family: inherit; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--red); color: #fff; }

.wrap { width: min(1200px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 40px); }
.center { text-align: center; margin-top: 2.4rem; }
.small { font-size: .85rem; color: var(--muted); }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 200; }
.skip:focus { left: 8px; }

.icon { width: 1.1em; height: 1.1em; flex: none; vertical-align: -.15em; }
.icon--lg { width: 28px; height: 28px; }

/* ---------- Reveal-on-scroll (only when JS is running) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal].in { opacity: 1; transform: none; }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  background: var(--red); color: #fff; font-weight: 700; font-size: .98rem; line-height: 1.2;
  padding: .95em 1.55em; border-radius: 12px; border: 2px solid var(--red);
  transition: background .2s, border-color .2s, transform .2s var(--ease), box-shadow .2s; cursor: pointer; overflow: hidden; isolation: isolate;
}
.btn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%); transform: translateX(-120%); transition: transform .7s var(--ease); z-index: -1; }
.btn:hover::after { transform: translateX(120%); }
.btn:hover { background: var(--red-dark); border-color: var(--red-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 10px 24px -8px var(--red-glow); }
.btn .icon { transition: transform .25s var(--ease); }
.btn:hover .icon:last-child { transform: translateX(3px); }
.btn--sm { padding: .62em 1.15em; font-size: .92rem; border-radius: 10px; }
.btn--block { display: flex; width: 100%; margin-top: .65rem; }
.btn--outline { background: transparent; color: var(--red); }
.btn--outline:hover { background: var(--red-soft); color: var(--red-dark); box-shadow: none; }
.btn--light { background: #fff; color: var(--red); border-color: #fff; }
.btn--light:hover { background: #fff3f5; border-color: #fff3f5; color: var(--red-dark); }
.btn--ghost-light { background: rgba(255,255,255,.04); color: #fff; border-color: rgba(255,255,255,.35); backdrop-filter: blur(4px); }
.btn--ghost-light:hover { background: rgba(255,255,255,.12); border-color: #fff; color: #fff; box-shadow: none; }
.btn--glow { box-shadow: 0 0 0 0 var(--red-glow); animation: glow 2.8s infinite; }
.btn--wa { background: #1f9d55; border-color: #1f9d55; }
.btn--wa:hover { background: #18804a; border-color: #18804a; box-shadow: 0 10px 24px -8px rgba(31,157,85,.5); }
.btn[data-loading] { pointer-events: none; opacity: .8; }
.btn[data-loading]::before { content: ""; width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.5); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
.link { font-weight: 700; display: inline-flex; align-items: center; gap: .4em; }
.link .icon { transition: transform .25s var(--ease); }
.link:hover .icon { transform: translateX(4px); }

/* ---------- Scroll progress ---------- */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 120; pointer-events: none; }
.progress span { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--red), #ff5a73); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }

/* ---------- Top bar & header ---------- */
.topbar { background: var(--navy-900); color: #b9c1d3; font-size: .84rem; }
.topbar__in { display: flex; justify-content: space-between; gap: 1rem; padding: 8px 0; }
.topbar a { color: #e3e8f2; margin-left: 1.3rem; }
.topbar a:hover { color: #fff; }
.topbar__loc, .topbar a { display: inline-flex; align-items: center; gap: .45em; }
.topbar .icon { color: #ff6b81; }

.header { position: sticky; top: 0; z-index: 90; background: rgba(255,255,255,.88); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid transparent; transition: box-shadow .3s, border-color .3s; }
.header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 8px 30px -12px rgba(15,23,42,.18); }
.header__in { position: relative; display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); transition: min-height .3s var(--ease); }
.header.is-scrolled .header__in { min-height: 64px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); flex: none; }
.brand__mark {
  position: relative; background: var(--red); color: #fff; font-weight: 800; letter-spacing: .14em; font-size: 1.22rem;
  padding: 7px 12px 7px 14px; border-radius: 7px; box-shadow: inset 0 0 0 2px rgba(255,255,255,.22), 0 6px 16px -6px var(--red-glow); overflow: hidden;
}
.brand__mark::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 35%, rgba(255,255,255,.4) 50%, transparent 65%); transform: translateX(-120%); animation: sheen 6s 2s infinite; }
.brand__sub { font-size: .72rem; line-height: 1.25; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.brand--light .brand__sub { color: #9aa5bd; }

.nav { display: flex; align-items: center; gap: 1.8rem; }
.nav > a:not(.btn), .nav__drop-link { position: relative; color: var(--ink); font-weight: 600; font-size: .96rem; padding: 8px 0; }
.nav > a:not(.btn)::after, .nav__drop-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav > a:not(.btn):hover::after, .nav > a[aria-current]:not(.btn)::after, .nav__drop-link:hover::after, .nav__drop-link[aria-current]::after { transform: scaleX(1); }
.nav > a:not(.btn):hover, .nav > a[aria-current]:not(.btn), .nav__drop-link:hover, .nav__drop-link[aria-current] { color: var(--red); }
.nav__mobile-contact { display: none; }

/* Mega menu */
.nav__drop { position: static; display: flex; align-items: center; gap: 2px; }
.nav__drop-btn { background: none; border: 0; padding: 4px; color: var(--ink); cursor: pointer; display: grid; place-items: center; }
.nav__drop-btn svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.mega { position: absolute; top: 100%; left: 50%; transform: translate(-50%, 12px); padding-top: 18px; opacity: 0; visibility: hidden; transition: opacity .25s, transform .3s var(--ease), visibility .25s; z-index: 95; }
.mega__in { width: min(1100px, calc(100vw - 40px)); display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px 24px; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 26px; box-shadow: var(--shadow-lg); }
.mega__head { display: block; font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 800; color: var(--red); padding-bottom: 10px; margin-bottom: 6px; border-bottom: 1px solid var(--line); }
.mega ul { list-style: none; display: grid; gap: 2px; }
.mega li a { display: flex; gap: 10px; align-items: flex-start; padding: 7px 8px; margin-inline: -8px; border-radius: 9px; color: var(--ink); font-size: .9rem; font-weight: 500; line-height: 1.35; transition: background .2s, color .2s; }
.mega li a .icon { color: var(--red); margin-top: 2px; }
.mega li a:hover { background: var(--red-soft); color: var(--red-dark); }
@media (min-width: 1025px) {
  .nav, .nav__drop { align-self: stretch; } /* hover area reaches the menu panel */
}
@media (hover: hover) and (min-width: 1025px) {
  .nav__drop:hover .mega, .nav__drop:focus-within .mega { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
  .nav__drop:hover .nav__drop-btn svg { transform: rotate(180deg); }
}
.nav__drop.is-open .mega { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.nav__drop.is-open .nav__drop-btn svg { transform: rotate(180deg); }

/* Hamburger */
.nav-toggle { display: none; position: relative; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; border-radius: 10px; z-index: 110; }
.nav-toggle span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .35s var(--ease), opacity .2s, top .35s var(--ease); }
.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 27px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { top: 21px; transform: rotate(-45deg); }
.nav-backdrop { position: fixed; inset: 0; background: rgba(8,17,41,.5); backdrop-filter: blur(3px); z-index: 80; opacity: 0; transition: opacity .3s; }
.nav-backdrop.is-on { opacity: 1; }

/* ---------- Decorative ECG line ---------- */
.ecg { position: absolute; left: 0; width: 100%; pointer-events: none; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.ecg path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: ecg-draw 5s var(--ease) forwards; }
.ecg--hero { bottom: 62px; height: 76px; stroke: rgba(255, 90, 115, .4); stroke-width: 2; filter: drop-shadow(0 0 6px rgba(255,60,90,.6)); }
.ecg--hero path { animation: ecg-loop 7s linear infinite; stroke-dasharray: .35 .65; }
.ecg--section { top: 30px; height: 90px; stroke: rgba(255,255,255,.06); stroke-width: 2; }
.ecg--page { bottom: 0; height: 80px; stroke: rgba(255, 90, 115, .35); stroke-width: 1.6; }
.ecg--page path { animation: ecg-loop 9s linear infinite; stroke-dasharray: .3 .7; }
.ecg--band { top: 50%; height: 110px; transform: translateY(-50%); stroke: rgba(255,255,255,.18); stroke-width: 2; }
.ecg--band path { animation: ecg-loop 8s linear infinite; stroke-dasharray: .4 .6; }
.ecg--mini { position: static; height: 46px; stroke: var(--red); stroke-width: 2.5; }
.ecg--mini path { animation: ecg-loop 4s linear infinite; stroke-dasharray: .45 .55; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; color: #c9d2e6; background: radial-gradient(120% 90% at 100% 0%, var(--navy-600) 0%, transparent 55%), linear-gradient(160deg, var(--navy-800) 0%, var(--navy-900) 100%); padding: clamp(56px, 9vw, 120px) 0 clamp(80px, 10vw, 140px); }
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; }
.orb--1 { width: 520px; height: 520px; background: radial-gradient(circle, rgba(200,16,46,.55), transparent 70%); top: -160px; right: -120px; animation: float 14s ease-in-out infinite; }
.orb--2 { width: 420px; height: 420px; background: radial-gradient(circle, rgba(56,110,255,.35), transparent 70%); bottom: -180px; left: -120px; animation: float 18s ease-in-out infinite reverse; }
.grid-dots { position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1px); background-size: 26px 26px; mask-image: radial-gradient(ellipse at 70% 30%, #000 10%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 10%, transparent 70%); }
.hero__in { position: relative; display: grid; grid-template-columns: 1.25fr 1fr; gap: 64px; align-items: center; }
.hero h1 { color: #fff; }
.hero h1 span { background: linear-gradient(90deg, #ff4d67, #ff8a9b 60%, #ff4d67); -webkit-background-clip: text; background-clip: text; color: transparent; background-size: 200% auto; animation: shine 6s linear infinite; }
.eyebrow { display: inline-flex; align-items: center; gap: .6em; text-transform: uppercase; letter-spacing: .14em; font-size: .76rem; font-weight: 800; color: var(--red); margin-bottom: 1rem; }
.eyebrow--light { color: #ff8094; }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: #ff4d67; box-shadow: 0 0 0 0 rgba(255,77,103,.7); animation: pulse 1.8s infinite; }
.hero__rotator { font-size: clamp(1.05rem, 2vw, 1.3rem); font-weight: 600; color: #e6ebf5; margin-bottom: 1.1rem; }
.rotator { display: inline-block; color: #fff; border-bottom: 2px solid #ff4d67; transition: opacity .35s, transform .35s var(--ease); }
.rotator.is-out { opacity: 0; transform: translateY(-10px); }
.hero .lead { color: #b8c2d8; }
.lead { font-size: 1.12rem; max-width: 62ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 2rem 0 1.8rem; }
.hero__points { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: .92rem; font-weight: 600; color: #e6ebf5; }
.hero__points li { display: flex; align-items: center; gap: .45em; }
.hero__points .icon { color: #ff6b81; }

.hero__visual { position: relative; perspective: 1200px; }
.panel { position: relative; background: linear-gradient(160deg, rgba(255,255,255,.98), rgba(247,249,253,.96)); border-radius: 22px; padding: 28px; box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,.4); color: var(--text); transform-style: preserve-3d; transition: transform .4s var(--ease); }
.panel::before { content: ""; position: absolute; inset: 0 0 auto; height: 5px; border-radius: 22px 22px 0 0; background: linear-gradient(90deg, var(--red), #ff6b81); }
.panel__head { display: flex; gap: 14px; align-items: center; }
.panel__head strong { display: block; color: var(--ink); font-size: 1.08rem; }
.panel__head small { color: var(--muted); font-size: .84rem; }
.panel__icon { width: 46px; height: 46px; border-radius: 12px; background: var(--red-soft); color: var(--red); display: grid; place-items: center; flex: none; }
.panel__icon .icon { width: 24px; height: 24px; }
.panel__ecg { position: relative; margin: 14px 0 10px; height: 46px; background: linear-gradient(90deg, rgba(200,16,46,.05), rgba(200,16,46,.0)); border-radius: 10px; overflow: hidden; }
.panel__steps { list-style: none; counter-reset: s; display: grid; gap: 12px; }
.panel__steps li { counter-increment: s; display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; font-size: .95rem; }
.panel__steps li::before { content: counter(s); width: 30px; height: 30px; border-radius: 50%; background: var(--red-soft); color: var(--red); font-weight: 800; display: grid; place-items: center; font-size: .85rem; }
.panel__steps strong { color: var(--ink); }
.panel__bars { display: grid; gap: 10px; margin-top: 20px; padding-top: 18px; border-top: 1px dashed var(--line); }
.panel__bars div { display: grid; gap: 5px; font-size: .78rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.panel__bars i { display: block; height: 7px; border-radius: 9px; background: #edf0f5; position: relative; overflow: hidden; }
.panel__bars i::after { content: ""; position: absolute; inset: 0; width: var(--w); border-radius: inherit; background: linear-gradient(90deg, var(--red), #ff6b81); transform: scaleX(0); transform-origin: left; transition: transform 1.6s var(--ease) .6s; }
.in .panel__bars i::after, .no-js .panel__bars i::after { transform: scaleX(1); }
html:not(.js) .panel__bars i::after { transform: scaleX(1); }
.float-chip { position: absolute; display: inline-flex; align-items: center; gap: 8px; background: #fff; color: var(--ink); font-weight: 700; font-size: .85rem; padding: 10px 14px; border-radius: 12px; box-shadow: var(--shadow-lg); animation: bob 5s ease-in-out infinite; }
.float-chip .icon { color: var(--red); }
.float-chip--a { top: -18px; right: -14px; }
.float-chip--b { bottom: -20px; left: -22px; animation-delay: -2.5s; }

/* ---------- Stats & marquee ---------- */
.stats { position: relative; z-index: 2; margin-top: -54px; }
.stats__in { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-radius: 20px; box-shadow: var(--shadow); border: 1px solid var(--line); overflow: hidden; }
.stat { padding: 26px 22px; text-align: center; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font-size: clamp(1.9rem, 3.6vw, 2.6rem); font-weight: 800; color: var(--red); line-height: 1.1; letter-spacing: -.02em; }
.stat > span { font-size: .88rem; font-weight: 600; color: var(--muted); }

.marquee { overflow: hidden; padding: 34px 0 6px; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { display: flex; gap: 14px; width: max-content; animation: marquee 45s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee span { white-space: nowrap; font-weight: 700; font-size: .92rem; color: var(--ink); padding: 9px 18px; border-radius: 999px; background: var(--tint); border: 1px solid var(--line); }
.marquee span::before { content: "✚"; color: var(--red); margin-right: 8px; font-size: .8em; }

/* ---------- Page hero ---------- */
.page-hero { position: relative; overflow: hidden; color: #b8c2d8; background: radial-gradient(90% 120% at 100% 0%, var(--navy-600) 0%, transparent 60%), linear-gradient(160deg, var(--navy-800), var(--navy-900)); padding: 46px 0 64px; }
.page-hero h1 { color: #fff; }
.page-hero .lead { color: #b8c2d8; }
.page-hero .eyebrow { color: #ff8094; }
.page-hero--center { text-align: center; padding: 100px 0 110px; }
.page-hero--center .lead { margin-inline: auto; }
.page-hero > .wrap { position: relative; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; font-size: .85rem; color: #8f9ab3; margin-bottom: 20px; }
.crumbs li + li::before { content: "›"; margin-right: 6px; }
.crumbs a { color: #c3cbdd; }
.crumbs a:hover { color: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1.6rem; }
.chips a { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.18); padding: 8px 16px; border-radius: 999px; font-size: .9rem; font-weight: 600; color: #fff; transition: background .2s, border-color .2s; }
.chips a:hover { background: var(--red); border-color: var(--red); color: #fff; }

/* ---------- Sections ---------- */
.section { position: relative; padding: clamp(64px, 9vw, 110px) 0; }
.section--compact { padding: 56px 0 12px; }
.section--compact:last-of-type { padding-bottom: 80px; }
.section--tint { background: var(--tint); }
.section--navy { overflow: hidden; color: #b8c2d8; background: radial-gradient(80% 100% at 0% 0%, var(--navy-600), transparent 60%), linear-gradient(160deg, var(--navy-800), var(--navy-900)); }
.section--navy h2 { color: #fff; }
.section__head { text-align: center; max-width: 740px; margin: 0 auto 52px; }
.section__head--left { text-align: left; margin: 0 0 30px; max-width: none; }
.section__head p:last-child { color: var(--muted); font-size: 1.05rem; }
.section--navy .section__head p:last-child { color: #a9b4cc; }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; color: var(--text); overflow: hidden; isolation: isolate;
  transition: border-color .3s, box-shadow .3s, transform .4s var(--ease), opacity .8s var(--ease); }
.card::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .3s; background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 0%), rgba(200,16,46,.09), transparent 45%); }
.card::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, var(--red), #ff6b81); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.card:hover { border-color: rgba(200,16,46,.28); box-shadow: var(--shadow); transform: translateY(-6px); color: var(--text); }
.card:hover::before { opacity: 1; }
.card:hover::after { transform: scaleX(1); }
.card__icon { width: 52px; height: 52px; border-radius: 14px; background: var(--red-soft); color: var(--red); display: grid; place-items: center; margin-bottom: 18px; transition: background .3s, color .3s, transform .4s var(--ease); }
.card__icon .icon { width: 25px; height: 25px; }
.card:hover .card__icon { background: var(--red); color: #fff; transform: rotate(-6deg) scale(1.06); }
.card h3 { transition: color .2s; }
.card:hover h3 { color: var(--red-dark); }
.card p { font-size: .95rem; flex: 1; }
.card__more { font-weight: 700; color: var(--red); font-size: .9rem; display: inline-flex; align-items: center; gap: .4em; }
.card__more .icon { transition: transform .3s var(--ease); }
.card:hover .card__more .icon { transform: translateX(5px); }

/* ---------- Tabs (practice areas) ---------- */
.tabs { position: relative; display: grid; grid-template-columns: 300px 1fr; gap: 28px; align-items: start; }
.tabs__list { display: grid; gap: 8px; position: sticky; top: 100px; }
.tabs__list button { display: flex; align-items: center; gap: 14px; text-align: left; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); color: #c9d2e6; font-weight: 700; font-size: .98rem; padding: 16px 18px; border-radius: 14px; cursor: pointer; transition: background .25s, border-color .25s, color .25s, transform .25s var(--ease); }
.tabs__list button:hover { background: rgba(255,255,255,.08); color: #fff; }
.tabs__list button[aria-selected="true"] { background: var(--red); border-color: var(--red); color: #fff; transform: translateX(6px); box-shadow: 0 14px 30px -12px var(--red-glow); }
.tabs__num { font-size: .78rem; opacity: .7; font-weight: 800; letter-spacing: .06em; }
.tabs__panel { display: grid; grid-template-columns: 1fr 1.6fr; gap: 28px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); border-radius: 20px; padding: 30px; animation: fade-up .5s var(--ease); }
.tabs__panel[data-hidden] { display: none; }
.tabs__intro h3 { color: #fff; font-size: 1.45rem; }
.tabs__intro p { color: #b8c2d8; }
.tabs__links { list-style: none; display: grid; gap: 8px; }
.tabs__links a { display: flex; gap: 14px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; color: #e5eaf4; transition: background .2s, transform .25s var(--ease); }
.tabs__links a:hover { background: rgba(255,255,255,.07); color: #fff; transform: translateX(4px); }
.tabs__links strong { display: block; font-size: .98rem; color: #fff; }
.tabs__links small { display: block; color: #9eaac3; font-size: .86rem; line-height: 1.45; margin-top: 2px; }
.tabs__ico { width: 38px; height: 38px; flex: none; border-radius: 10px; background: rgba(255,77,103,.14); color: #ff7d91; display: grid; place-items: center; }
.tabs__ico .icon { width: 20px; height: 20px; }

/* ---------- Who we serve ---------- */
.serve { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.serve__item { position: relative; padding: 28px; border-radius: var(--radius); background: linear-gradient(180deg, #fff, var(--tint)); border: 1px solid var(--line); transition: transform .4s var(--ease), box-shadow .3s, opacity .8s var(--ease); }
.serve__item:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.serve__icon { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--red), #ff6b81); margin-bottom: 16px; box-shadow: 0 10px 20px -8px var(--red-glow); }
.serve__icon .icon { width: 24px; height: 24px; }
.serve__item p { margin: 0; font-size: .95rem; }

/* ---------- Journey ---------- */
.journey { list-style: none; position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.journey::before { content: ""; position: absolute; top: 31px; left: 12%; right: 12%; height: 2px; background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 14px); }
.journey::after { content: ""; position: absolute; top: 31px; left: 12%; right: 12%; height: 2px; background: var(--red); transform: scaleX(var(--jp, 0)); transform-origin: left; transition: transform 1.6s var(--ease); }
.journey.in-view { --jp: 1; }
.journey li { position: relative; z-index: 1; text-align: center; padding: 0 6px; }
.journey__dot { width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%; background: #fff; border: 2px solid var(--red); color: var(--red); display: grid; place-items: center; box-shadow: 0 0 0 8px var(--tint); transition: background .3s, color .3s; }
.journey li:hover .journey__dot { background: var(--red); color: #fff; }
.journey__dot .icon { width: 26px; height: 26px; }
.journey p { font-size: .95rem; margin: 0; }

/* ---------- Split / features ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split--top { align-items: start; grid-template-columns: 1.6fr 1fr; }
.features { list-style: none; display: grid; gap: 18px; }
.features li { display: grid; grid-template-columns: 56px 1fr; gap: 16px; background: #fff; padding: 22px; border-radius: var(--radius); border: 1px solid var(--line); transition: transform .4s var(--ease), box-shadow .3s, border-color .3s, opacity .8s var(--ease); }
.features li:hover { transform: translateX(6px); box-shadow: var(--shadow); border-color: rgba(200,16,46,.25); }
.features .icon { color: var(--red); background: var(--red-soft); padding: 11px; width: 50px; height: 50px; border-radius: 13px; }
.features h3 { margin-bottom: .3em; font-size: 1.03rem; }
.features p { margin: 0; font-size: .94rem; }

/* ---------- NABH band ---------- */
.nabh { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; background: #fff; border-radius: 24px; padding: clamp(28px, 5vw, 56px); border: 1px solid var(--line); box-shadow: var(--shadow); position: relative; overflow: hidden; }
.nabh::before { content: ""; position: absolute; width: 380px; height: 380px; right: -140px; top: -160px; border-radius: 50%; background: radial-gradient(circle, rgba(200,16,46,.1), transparent 70%); }
.nabh__steps { list-style: none; display: grid; gap: 10px; position: relative; }
.nabh__steps li { display: flex; align-items: center; gap: 14px; padding: 13px 16px; border-radius: 12px; background: var(--tint); font-weight: 700; color: var(--ink); transition: transform .3s var(--ease), background .3s; }
.nabh__steps li:hover { transform: translateX(6px); background: var(--red-soft); }
.nabh__steps span { width: 30px; height: 30px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; font-size: .85rem; flex: none; }

/* ---------- Vision / mission ---------- */
.vm { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.vm__item { position: relative; background: #fff; padding: 38px; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; transition: transform .4s var(--ease), opacity .8s var(--ease); }
.vm__item::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: linear-gradient(180deg, var(--red), #ff6b81); }
.vm__item:hover { transform: translateY(-4px); }
.vm__icon { width: 50px; height: 50px; border-radius: 14px; background: var(--red-soft); color: var(--red); display: grid; place-items: center; margin-bottom: 16px; }
.vm__icon .icon { width: 25px; height: 25px; }
.vm__item p { margin: 0; font-size: 1.05rem; }

/* ---------- Prose / content ---------- */
.prose h2 { margin-top: 1.6em; font-size: 1.55rem; }
.prose h2:first-child { margin-top: 0; }
.prose .intro { font-size: 1.14rem; color: var(--ink); }
.ticks { list-style: none; display: grid; gap: 11px; margin-bottom: 1.2em; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; }
.ticks .icon { color: #fff; background: var(--red); border-radius: 50%; padding: 4px; width: 23px; height: 23px; margin-top: 2px; box-shadow: 0 4px 10px -3px var(--red-glow); }
.steps { list-style: none; counter-reset: s; display: grid; gap: 12px; }
.steps li { counter-increment: s; position: relative; padding: 15px 18px 15px 62px; background: var(--tint); border-radius: 12px; border: 1px solid transparent; transition: border-color .3s, background .3s; }
.steps li:hover { border-color: rgba(200,16,46,.25); background: #fff; }
.steps li::before { content: counter(s); position: absolute; left: 16px; top: 14px; width: 30px; height: 30px; border-radius: 50%; background: var(--red); color: #fff; font-weight: 800; display: grid; place-items: center; font-size: .88rem; }
.steps strong { color: var(--ink); }

.sidebar { display: grid; gap: 22px; position: sticky; top: 100px; }
.factbox { background: #fff; border-radius: var(--radius); padding: 28px; border: 1px solid var(--line); box-shadow: var(--shadow); position: relative; overflow: hidden; }
.factbox::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg, var(--red), #ff6b81); }
.factbox dl { margin: 0 0 1rem; display: grid; gap: 4px; }
.factbox dt { font-size: .76rem; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); font-weight: 800; margin-top: 12px; }
.factbox dd { margin: 0; color: var(--ink); font-weight: 600; }
.contact-line { display: flex; gap: 12px; align-items: flex-start; }
.contact-line .icon { color: var(--red); margin-top: 5px; }
.related { padding: 0 6px; }
.related ul { list-style: none; display: grid; gap: 2px; margin-bottom: 12px; }
.related a { display: flex; gap: 10px; align-items: center; color: var(--ink); font-weight: 600; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .95rem; transition: color .2s, padding .25s var(--ease); }
.related a:hover { color: var(--red); padding-left: 6px; }
.related a .icon { color: var(--red); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 4px 22px; transition: border-color .3s, box-shadow .3s; }
.faq details[open] { border-color: rgba(200,16,46,.3); box-shadow: var(--shadow); }
.faq summary { cursor: pointer; font-weight: 700; color: var(--ink); padding: 16px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--red-soft); color: var(--red); font-size: 1.2rem; display: grid; place-items: center; transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { animation: fade-up .35s var(--ease); }

/* ---------- Form ---------- */
.form { display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form label { display: grid; gap: 7px; font-weight: 700; font-size: .9rem; color: var(--ink); }
.form input, .form select, .form textarea {
  font: inherit; font-weight: 400; font-size: 1rem; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: 12px; background: #fbfcfe; color: var(--ink); width: 100%; transition: border-color .2s, box-shadow .2s, background .2s;
}
.form input:hover, .form select:hover, .form textarea:hover { border-color: #cdd3de; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--red); background: #fff; outline: none; box-shadow: 0 0 0 4px var(--red-soft); }
.form [aria-invalid="true"] { border-color: var(--red); }
.form .btn { justify-self: start; }
.err { color: var(--red); font-size: .85rem; font-weight: 600; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { padding: 22px 26px; border-radius: 14px; }
.notice--ok { background: #ecfdf3; border: 1px solid #a6e9c1; animation: fade-up .5s var(--ease); }
.notice--err { background: var(--red-soft); color: var(--red-dark); }
.map iframe { display: block; width: 100%; height: 400px; border: 0; filter: grayscale(.25) contrast(1.05); }

/* ---------- CTA band + footer ---------- */
.cta-band { position: relative; overflow: hidden; background: linear-gradient(120deg, var(--red) 0%, #b10d29 50%, #8e0a20 100%); color: #fff; padding: 60px 0; }
.cta-band__in { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin-bottom: .3em; }
.cta-band p { margin: 0; opacity: .92; }
.cta-band__actions { display: flex; gap: 12px; flex-wrap: wrap; }

.footer { background: var(--navy-900); color: #9aa5bd; font-size: .93rem; padding-top: 70px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 44px; }
.footer h3 { color: #fff; font-size: 1rem; margin-bottom: 1.1rem; }
.footer ul { list-style: none; display: grid; gap: 9px; }
.footer a { color: #cdd4e2; transition: color .2s, padding .25s var(--ease); }
.footer ul a:hover { color: #fff; padding-left: 4px; }
.footer a:hover { color: #fff; }
.footer address { font-style: normal; margin-bottom: 1rem; }
.footer__about { margin-top: 1.2rem; }
.footer__contact a { display: inline-flex; align-items: center; gap: .5em; }
.footer__contact .icon { color: #ff6b81; }
.footer__social a { margin-right: 14px; }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; border-top: 1px solid rgba(255,255,255,.08); margin-top: 52px; padding: 24px 0; font-size: .85rem; }

/* ---------- Floating actions ---------- */
.wa-float { position: fixed; right: 22px; bottom: 22px; width: 58px; height: 58px; border-radius: 50%; background: #1f9d55; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 28px rgba(0,0,0,.25); z-index: 70; transition: transform .3s var(--ease); }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #1f9d55; animation: ring 2.4s infinite; }
.wa-float:hover { color: #fff; transform: scale(1.08); }
.wa-float .icon { width: 28px; height: 28px; }
.wa-float__tip { position: absolute; right: 70px; white-space: nowrap; background: var(--ink); color: #fff; font-size: .82rem; font-weight: 700; padding: 7px 12px; border-radius: 8px; opacity: 0; transform: translateX(8px); transition: opacity .25s, transform .25s var(--ease); pointer-events: none; }
.wa-float:hover .wa-float__tip { opacity: 1; transform: none; }
.to-top { position: fixed; right: 30px; bottom: 96px; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink); display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow); z-index: 70; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .3s, transform .3s var(--ease), visibility .3s, color .2s; }
.to-top.is-on { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { color: var(--red); }
.to-top svg { width: 20px; height: 20px; }
.mbar { display: none; }

/* ---------- Keyframes ---------- */
@keyframes ecg-draw { to { stroke-dashoffset: 0; } }
@keyframes ecg-loop { from { stroke-dashoffset: 1; } to { stroke-dashoffset: -1; } }
@keyframes float { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-30px, 30px); } }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255,77,103,.7); } 70% { box-shadow: 0 0 0 10px rgba(255,77,103,0); } 100% { box-shadow: 0 0 0 0 rgba(255,77,103,0); } }
@keyframes glow { 0% { box-shadow: 0 0 0 0 var(--red-glow); } 70% { box-shadow: 0 0 0 14px rgba(200,16,46,0); } 100% { box-shadow: 0 0 0 0 rgba(200,16,46,0); } }
@keyframes ring { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.5); opacity: 0; } }
@keyframes shine { to { background-position: 200% center; } }
@keyframes sheen { 0%, 80% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1100px) {
  .nav { gap: 1.3rem; }
  .mega__in { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1024px) {
  /* Off-canvas mobile navigation (no backdrop-filter on header: it would trap the fixed drawer) */
  .header { backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; }
  .nav-toggle { display: block; }
  .nav { position: fixed; top: 0; right: 0; bottom: 0; width: min(380px, 88vw); background: #fff; z-index: 100; flex-direction: column; align-items: stretch; gap: 0; padding: 84px 22px calc(24px + env(safe-area-inset-bottom)); overflow-y: auto; box-shadow: -20px 0 60px rgba(8,17,41,.25); transform: translateX(105%); visibility: hidden; transition: transform .45s var(--ease), visibility .45s; }
  .nav.is-open { transform: none; visibility: visible; }
  .nav > a:not(.btn), .nav__drop-link { padding: 15px 4px; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav > a:not(.btn)::after, .nav__drop-link::after { display: none; }
  .nav__drop { flex-wrap: wrap; border-bottom: 1px solid var(--line); }
  .nav__drop-link { flex: 1; border-bottom: 0; }
  .nav__drop-btn { width: 44px; height: 44px; border-radius: 10px; background: var(--tint); }
  .mega { position: static; transform: none; padding: 0; opacity: 1; visibility: visible; width: 100%; display: none; }
  .nav__drop.is-open .mega { display: block; transform: none; }
  .mega__in { width: auto; grid-template-columns: 1fr; box-shadow: none; border: 0; padding: 4px 0 14px; gap: 14px; }
  .mega li a { font-size: .95rem; padding: 9px 8px; }
  .nav .nav__cta { margin-top: 20px; padding: 1em; font-size: 1rem; }
  .nav__mobile-contact { display: grid; gap: 10px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
  .nav__mobile-contact a { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 600; }
  .nav__mobile-contact .icon { color: var(--red); }

  .hero__in, .split, .split--top, .vm, .nabh { grid-template-columns: 1fr; gap: 44px; }
  .hero__visual { max-width: 560px; }
  .sidebar { position: static; }
  .tabs { grid-template-columns: 1fr; }
  .tabs__list { position: static; display: flex; overflow-x: auto; gap: 8px; padding-bottom: 6px; scrollbar-width: none; scroll-snap-type: x mandatory; }
  .tabs__list::-webkit-scrollbar { display: none; }
  .tabs__list button { flex: none; scroll-snap-align: start; padding: 12px 16px; font-size: .92rem; }
  .tabs__list button[aria-selected="true"] { transform: none; }
  .tabs__panel { grid-template-columns: 1fr; padding: 24px; }
  .serve { grid-template-columns: repeat(2, 1fr); }
  .journey { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .journey::before, .journey::after { display: none; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  :root { --header-h: 64px; }
  body { font-size: 16px; padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
  .wrap { width: calc(100% - 32px); }
  .narrow { width: calc(100% - 32px); }
  .topbar { display: none; }
  .brand__mark { font-size: 1.08rem; padding: 6px 10px 6px 12px; }
  .brand__sub { font-size: .62rem; }
  .hero { padding: 44px 0 96px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .hero__points { flex-direction: column; gap: 8px; }
  .float-chip--a { right: 6px; top: -16px; }
  .float-chip--b { left: 6px; bottom: -18px; }
  .panel { padding: 22px; }
  .stats { margin-top: -44px; }
  .stats__in { grid-template-columns: 1fr 1fr; }
  .stat { padding: 20px 12px; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .section__head { margin-bottom: 36px; }
  .cards { grid-template-columns: 1fr; gap: 14px; }
  .card { padding: 22px; flex-direction: row; flex-wrap: wrap; column-gap: 16px; }
  .card__icon { margin-bottom: 0; width: 46px; height: 46px; }
  .card h3 { flex: 1; align-self: center; margin: 0; }
  .card p { flex-basis: 100%; margin: 12px 0 10px; }
  .serve { grid-template-columns: 1fr; gap: 14px; }
  .serve__item { display: grid; grid-template-columns: 50px 1fr; column-gap: 16px; padding: 20px; }
  .serve__icon { margin: 0; grid-row: span 2; }
  .serve__item h3 { margin-bottom: .25em; }
  .journey { grid-template-columns: 1fr; gap: 0; }
  .journey li { display: grid; grid-template-columns: 56px 1fr; column-gap: 16px; text-align: left; padding: 0 0 26px; }
  .journey li::before { content: ""; position: absolute; left: 27px; top: 56px; bottom: 0; width: 2px; background: var(--line); }
  .journey li:last-child::before { display: none; }
  .journey__dot { width: 56px; height: 56px; margin: 0; grid-row: span 2; box-shadow: none; }
  .journey h3 { margin: 12px 0 .3em; }
  .features li { grid-template-columns: 48px 1fr; padding: 18px; }
  .features .icon { width: 44px; height: 44px; padding: 10px; }
  .vm__item { padding: 26px; }
  .form__row { grid-template-columns: 1fr; }
  .form .btn { justify-self: stretch; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .footer { padding-top: 52px; }
  .cta-band { padding: 46px 0; }
  .cta-band__actions { width: 100%; }
  .cta-band__actions .btn { flex: 1 1 100%; }
  .page-hero { padding: 32px 0 50px; }
  .map iframe { height: 300px; }

  /* Mobile bottom action bar replaces floating buttons */
  .wa-float, .to-top { display: none; }
  .mbar { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 75; background: rgba(255,255,255,.96); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line); padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); gap: 8px; box-shadow: 0 -8px 24px -12px rgba(15,23,42,.2); }
  .mbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 4px; border-radius: 12px; color: var(--ink); font-size: .74rem; font-weight: 700; }
  .mbar a .icon { width: 22px; height: 22px; color: var(--red); }
  .mbar a:nth-child(2) .icon { color: #1f9d55; }
  .mbar .mbar__cta { background: var(--red); color: #fff; }
  .mbar .mbar__cta .icon { color: #fff; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .ecg path { stroke-dashoffset: 0; stroke-dasharray: none; }
  .panel__bars i::after { transform: scaleX(1); }
}
