/* ==========================================================================
   Swayogya Rehab Solutions — SwaKnee website
   Design system: restrained clinical palette, mobile-first, WCAG 2.1 AA
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --ink: #102743;          /* headings, near-black navy */
  --body: #2b3f55;         /* body text */
  --muted: #52667c;        /* secondary text (AA on white) */
  --brand: #1668b3;        /* primary blue (old-site accent, darkened for AA) */
  --brand-dark: #14457b;   /* navy sampled from swayogya.in top bar */
  --brand-soft: #e9f2fb;   /* tinted surfaces */
  --accent: #c93a30;       /* logo "S" red, used sparingly */
  --accent-soft: #fdeeec;
  --bg: #ffffff;
  --bg-soft: #f3f8fd;
  --line: #d8e4f0;
  --focus: #1668b3;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow-sm: 0 1px 2px rgba(16, 39, 67, .06), 0 2px 8px rgba(16, 39, 67, .06);
  --shadow-md: 0 2px 6px rgba(16, 39, 67, .07), 0 12px 32px rgba(16, 39, 67, .10);
  --font: "Avenir Next", "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1160px;
  --header-h: 76px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--body);
  background: var(--bg);
}
img, svg, video { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.18; margin: 0 0 .6em; font-weight: 700; letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: clamp(1.9rem, 1.3rem + 3vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.6vw, 2.15rem); }
h3 { font-size: 1.22rem; }
h4 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand-dark); }
ul, ol { padding-left: 1.3em; margin: 0 0 1em; }
li { margin-bottom: .35em; }
strong { color: var(--ink); }
hr { border: none; border-top: 1px solid var(--line); margin: 2rem 0; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 3px; }
::selection { background: var(--brand); color: #fff; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ink); color: #fff; padding: .7rem 1.2rem; border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

.container { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2rem); }

/* ---------- Top utility bar ---------- */
.top-bar { background: var(--brand-dark); color: #dbe8f5; font-size: .88rem; }
.top-bar .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .35rem 1.5rem; padding-block: .5rem; }
.top-bar a { color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: .45rem; }
.top-bar a:hover { text-decoration: underline; color: #fff; }
.top-bar svg { width: 15px; height: 15px; flex-shrink: 0; }
.top-bar .tb-contact { display: flex; flex-wrap: wrap; gap: .3rem 1.6rem; }
.top-bar .tb-note { font-weight: 600; letter-spacing: .05em; }
@media (max-width: 720px) { .top-bar .tb-note { display: none; } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 10px rgba(16, 39, 67, .05);
}
.nav-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: .8rem; flex-shrink: 0; text-decoration: none; padding-block: .4rem; }
.brand-mark { height: 52px; width: auto; }
.brand-word { display: flex; flex-direction: column; gap: .26rem; line-height: 1; }
.brand-word strong { font-size: 1.24rem; font-weight: 800; color: var(--ink); letter-spacing: .012em; white-space: nowrap; }
.brand-word span { font-size: .6rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--brand); white-space: nowrap; }
@media (max-width: 400px) { .brand-word strong { font-size: 1.05rem; } .brand-word span { font-size: .53rem; } .brand-mark { height: 44px; } }

.nav-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 46px; height: 46px; padding: 11px;
  background: none; border: 1px solid var(--line); border-radius: var(--radius-sm); cursor: pointer;
}
.nav-toggle .bar { display: block; width: 100%; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.site-nav { display: none; }
.site-nav.open {
  display: block; position: absolute; top: 100%; left: 0; right: 0;
  background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md);
  padding: .6rem 1.1rem 1.1rem; max-height: calc(100vh - var(--header-h)); overflow-y: auto;
}
.site-nav > ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .1rem; }
.site-nav a {
  display: block; padding: .68rem .8rem; border-radius: var(--radius-sm);
  color: var(--ink); text-decoration: none; font-weight: 500; font-size: 1rem;
}
.site-nav a:hover { background: var(--bg-soft); color: var(--brand-dark); }
.site-nav a[aria-current="page"] { color: var(--brand); font-weight: 700; background: var(--brand-soft); }
.site-nav .nav-cta a {
  background: var(--brand); color: #fff; text-align: center; font-weight: 600; margin-top: .5rem;
}
.site-nav .nav-cta a:hover { background: var(--brand-dark); color: #fff; }

/* dropdown caret + submenu (mobile-first: submenu shown indented) */
.caret { display: inline-block; width: 0; height: 0; margin-left: .4rem;
  border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid currentColor; vertical-align: middle; }
.site-nav .nav-submenu { list-style: none; margin: .1rem 0 .4rem; padding: 0 0 0 .8rem; display: flex; flex-direction: column; gap: .1rem; }
.nav-submenu a { font-size: .96rem; color: var(--muted); }
.nav-group-toggle { display: flex !important; align-items: center; }

@media (min-width: 1200px) {
  .nav-toggle { display: none; }
  .site-nav { display: block; }
  .site-nav.open { position: static; box-shadow: none; border: none; padding: 0; }
  .site-nav > ul { flex-direction: row; align-items: center; gap: .05rem; }
  .site-nav a { padding: .45rem .5rem; font-size: .76rem; font-weight: 700; letter-spacing: .035em; text-transform: uppercase; white-space: nowrap; }
  .site-nav .nav-cta a { margin: 0 0 0 .4rem; padding: .6rem 1rem; border-radius: var(--radius-sm); }
  .brand-word strong { font-size: 1.12rem; }

  .nav-group { position: relative; }
  .site-nav .nav-submenu {
    display: none; position: absolute; top: 100%; right: 0; min-width: 210px;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md); padding: .35rem; margin: 0; z-index: 120;
  }
  .nav-group:hover .nav-submenu, .nav-group:focus-within .nav-submenu { display: flex; }
  .nav-submenu li { width: 100%; }
  .nav-submenu a { display: block; width: 100%; text-transform: none; letter-spacing: 0; font-size: .84rem; padding: .55rem .7rem; color: var(--ink); }
  .nav-submenu a:hover, .nav-submenu a[aria-current="page"] { background: var(--brand-soft); color: var(--brand-dark); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .78rem 1.5rem; border-radius: var(--radius-sm); border: 1.5px solid transparent;
  font-family: inherit; font-size: 1rem; font-weight: 600; line-height: 1.2;
  text-decoration: none; cursor: pointer; transition: background .2s ease, color .2s ease, transform .15s ease, box-shadow .2s ease;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn-outline { background: transparent; color: var(--brand); border-color: currentColor; }
.btn-outline:hover { background: var(--brand-soft); color: var(--brand-dark); }
.btn-light { background: #fff; color: var(--brand-dark); }
.btn-light:hover { background: var(--brand-soft); color: var(--brand-dark); }
.btn:active { transform: translateY(0); }

/* ---------- Sections / layout ---------- */
.section { padding-block: clamp(3rem, 5vw + 1.5rem, 5.5rem); }
.section-soft { background: var(--bg-soft); }
.section-brand { background: linear-gradient(155deg, var(--brand-dark), var(--brand) 70%); color: #dcebf8; }
.section-brand h2, .section-brand h3 { color: #fff; }
.section-head { max-width: 46em; margin-bottom: clamp(1.8rem, 3vw, 2.8rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-block; margin-bottom: .9rem;
  font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent);
}
.section-brand .eyebrow { color: #a9cdf0; }
.lead { font-size: 1.14rem; color: var(--muted); }
.section-brand .lead { color: #cfe2f4; }

.grid-2 { display: grid; gap: clamp(1.4rem, 3vw, 2.5rem); }
.grid-3, .grid-4 { display: grid; gap: 1.25rem; }
@media (min-width: 720px) {
  .grid-2 { grid-template-columns: 1fr 1fr; align-items: center; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Hero (classic banner style) ---------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(165deg, #f7fbfe 40%, #e9f2fb);
}
.hero-bg {
  position: absolute; inset: 0;
  background-position: center right; background-size: cover; background-repeat: no-repeat;
}
.hero-bg::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(247, 251, 254, .97) 0%, rgba(247, 251, 254, .88) 38%, rgba(247, 251, 254, .25) 68%, rgba(247, 251, 254, .05) 100%);
}
.hero .container { position: relative; display: grid; gap: 2.2rem; padding-block: clamp(3rem, 7vw, 7rem); }
@media (min-width: 900px) {
  .hero .container { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; }
}
.hero-copy .lead { max-width: 30em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }
.hero-note { margin-top: 1.1rem; font-size: .88rem; color: var(--muted); max-width: 40em; }
.hero-figure { position: relative; }
.hero-figure .device-photo {
  width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-md); object-fit: cover;
}
.hero-badge {
  position: absolute; left: 1rem; bottom: 1rem;
  background: rgba(255, 255, 255, .94); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: .55rem .9rem; font-size: .86rem; font-weight: 600; color: var(--ink);
  box-shadow: var(--shadow-sm); display: flex; align-items: center; gap: .5rem;
}
/* mobile: hide bg composite, show dedicated slide image */
.hero-mob { display: none; }
@media (max-width: 899px) {
  .hero-bg { display: none; }
  .hero-mob { display: block; border-radius: var(--radius); box-shadow: var(--shadow-md); overflow: hidden; }
  .hero-mob img { width: 100%; height: auto; }
}

/* ---------- Supporter logo marquee ---------- */
.marquee-section { padding-block: 2.2rem; border-block: 1px solid var(--line); background: #fff; }
.marquee-label {
  text-align: center; margin: 0 0 1.3rem;
  font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.marquee { position: relative; overflow: hidden; }
.marquee::before, .marquee::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 70px; z-index: 2; pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(90deg, #fff, rgba(255, 255, 255, 0)); }
.marquee::after { right: 0; background: linear-gradient(270deg, #fff, rgba(255, 255, 255, 0)); }
.marquee-track {
  display: flex; align-items: center; gap: clamp(2.2rem, 5vw, 4.5rem);
  width: max-content;
  animation: marquee-scroll 36s linear infinite;
}
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }
.marquee-track li { list-style: none; margin: 0; flex-shrink: 0; }
.marquee-track img { height: 54px; width: auto; }
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; flex-wrap: wrap; justify-content: center; width: 100%; }
  .marquee-track li[aria-hidden="true"] { display: none; }
  .marquee::before, .marquee::after { display: none; }
}
.pulse-dot { position: relative; width: 10px; height: 10px; border-radius: 50%; background: var(--brand); flex-shrink: 0; }
.pulse-dot::after {
  content: ""; position: absolute; inset: -5px; border-radius: 50%;
  border: 2px solid var(--brand); opacity: .5; animation: pulse-ring 2.2s ease-out infinite;
}
@keyframes pulse-ring {
  0% { transform: scale(.5); opacity: .7; }
  80%, 100% { transform: scale(1.5); opacity: 0; }
}

/* ---------- Cards ---------- */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem 1.5rem; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card h3 { margin-bottom: .45em; }
.card p:last-child { margin-bottom: 0; }
.card .icon { margin-bottom: 1rem; transition: transform .25s ease; }
.card:hover .icon { transform: translateY(-3px) scale(1.06); }
.icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 13px; background: var(--brand-soft); color: var(--brand);
}
.icon svg { width: 26px; height: 26px; }
.icon-accent { background: var(--accent-soft); color: var(--accent); }

/* ---------- Media panels ---------- */
.media-panel { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); background: #fff; }
.media-panel img { width: 100%; object-fit: cover; }
figure { margin: 0; }
figcaption { font-size: .86rem; color: var(--muted); padding: .65rem .2rem 0; }

/* ---------- Steps ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.25rem; counter-reset: step; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li {
  counter-increment: step; position: relative;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem 1.4rem 1.4rem; box-shadow: var(--shadow-sm);
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block; font-size: .95rem; font-weight: 700; letter-spacing: .08em;
  color: var(--accent); margin-bottom: .7rem;
}
.steps h3 { font-size: 1.08rem; margin-bottom: .35em; }
.steps p { margin: 0; font-size: .97rem; color: var(--muted); }

/* ---------- Feature list ---------- */
.check-list { list-style: none; padding: 0; margin: 0 0 1.2em; }
.check-list li { position: relative; padding-left: 2rem; margin-bottom: .65em; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .34em; width: 1.15rem; height: 1.15rem;
  border-radius: 50%; background: var(--brand-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314536e' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4 10-10'/%3E%3C/svg%3E");
  background-size: 62%; background-position: center; background-repeat: no-repeat;
}

/* ---------- Stats band ---------- */
.stat-band { display: grid; gap: 1.2rem; }
@media (min-width: 720px) { .stat-band { grid-template-columns: repeat(3, 1fr); } }
.stat { border-left: 3px solid rgba(255, 255, 255, .35); padding-left: 1.1rem; }
.stat .num { display: block; font-size: 2rem; font-weight: 700; color: #fff; line-height: 1.1; }
.stat .lbl { font-size: .95rem; }

/* ---------- Evidence labels ---------- */
.badge {
  display: inline-block; padding: .28rem .78rem; border-radius: 999px;
  font-size: .8rem; font-weight: 700; letter-spacing: .02em;
}
.badge-internal { background: var(--accent-soft); color: #9d2c23; }
.badge-clinical { background: var(--brand-soft); color: var(--brand-dark); }
.badge-published { background: #e8f3ea; color: #23633a; }

.evidence-item {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem 1.5rem; box-shadow: var(--shadow-sm); margin-bottom: 1.2rem;
}
.evidence-item .badge { margin-bottom: .8rem; }
.evidence-item h3 { margin-bottom: .4em; }
.evidence-meta { font-size: .9rem; color: var(--muted); }

/* ---------- Spec tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); }
table.specs { width: 100%; border-collapse: collapse; font-size: .98rem; min-width: 380px; }
table.specs caption { text-align: left; font-weight: 700; color: var(--ink); padding: 1.1rem 1.25rem .4rem; font-size: 1.06rem; }
table.specs th, table.specs td { text-align: left; padding: .72rem 1.25rem; border-top: 1px solid var(--line); vertical-align: top; }
table.specs th { width: 34%; color: var(--ink); font-weight: 600; background: var(--bg-soft); }

/* ---------- FAQ ---------- */
.faq { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); overflow: hidden; }
.faq details + details { border-top: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.05rem 1.3rem; font-weight: 600; color: var(--ink); font-size: 1.02rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex-shrink: 0; width: 12px; height: 12px;
  border-right: 2.5px solid var(--brand); border-bottom: 2.5px solid var(--brand);
  transform: rotate(45deg); transition: transform .25s ease; margin-top: -4px;
}
.faq details[open] summary::after { transform: rotate(225deg); margin-top: 4px; }
.faq details[open] summary { color: var(--brand-dark); }
.faq .faq-body { padding: 0 1.3rem 1.2rem; color: var(--body); }
.faq .faq-body p:last-child { margin-bottom: 0; }

/* ---------- Callout / notice ---------- */
.notice {
  background: var(--bg-soft); border: 1px solid var(--line); border-left: 4px solid var(--brand);
  border-radius: var(--radius-sm); padding: 1rem 1.2rem; font-size: .95rem; color: var(--body);
}
.notice-accent { border-left-color: var(--accent); }
.notice p:last-child { margin-bottom: 0; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(150deg, var(--brand-dark), var(--brand));
  color: #dcebf8; border-radius: var(--radius);
  padding: clamp(1.8rem, 4vw, 3rem);
  display: grid; gap: 1.4rem; align-items: center;
}
@media (min-width: 820px) { .cta-band { grid-template-columns: 1.5fr auto; } }
.cta-band h2 { color: #fff; margin-bottom: .3em; }
.cta-band p { margin: 0; }
.cta-band .hero-actions { margin: 0; }

/* ---------- Team ---------- */
.person { text-align: center; }
.person img {
  width: 132px; height: 132px; border-radius: 50%; object-fit: cover;
  margin: 0 auto .9rem; border: 3px solid #fff; box-shadow: var(--shadow-sm);
  background: var(--bg-soft);
}
.person h3 { font-size: 1.04rem; margin-bottom: .15em; }
.person p { font-size: .9rem; color: var(--muted); margin: 0; }

/* ---------- Forms ---------- */
.form-grid { display: grid; gap: 1.05rem; }
@media (min-width: 720px) {
  .form-grid { grid-template-columns: 1fr 1fr; }
  .form-grid .full { grid-column: 1 / -1; }
}
.field label { display: block; font-weight: 600; color: var(--ink); margin-bottom: .35rem; font-size: .97rem; }
.field .hint { font-weight: 400; color: var(--muted); font-size: .85rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: .74rem .9rem; font: inherit; color: var(--body);
  background: #fff; border: 1.5px solid #b9cad3; border-radius: var(--radius-sm);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(20, 83, 110, .18);
}
.field textarea { resize: vertical; min-height: 130px; }
.field .error-msg { display: none; color: var(--accent); font-size: .88rem; margin-top: .3rem; }
.field.invalid .error-msg { display: block; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--accent); }
fieldset { border: none; padding: 0; margin: 0 0 1rem; }
legend { font-weight: 600; color: var(--ink); margin-bottom: .4rem; padding: 0; }
.form-status { margin-top: 1rem; }
.form-status[hidden] { display: none; }
.form-status .ok { color: #23633a; font-weight: 600; }
.form-status .fail { color: var(--accent); font-weight: 600; }

/* ---------- Contact info ---------- */
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { display: flex; gap: .95rem; margin-bottom: 1.15rem; align-items: flex-start; }
.contact-list .icon { width: 44px; height: 44px; border-radius: 11px; flex-shrink: 0; }
.contact-list .icon svg { width: 21px; height: 21px; }
.contact-list h3 { font-size: .98rem; margin: 0 0 .1em; }
.contact-list p, .contact-list a { margin: 0; font-size: .98rem; word-break: break-word; }

/* ---------- Breadcrumb page hero ---------- */
.page-hero { background: linear-gradient(165deg, #f7fbfc 40%, #e7f1f5); border-bottom: 1px solid var(--line); }
.page-hero .container { padding-block: clamp(2.4rem, 5vw, 4rem); }
.page-hero .lead { max-width: 44em; margin-bottom: 0; }

/* ---------- Footer ---------- */
.site-footer { background: #0d2440; color: #bdd2e8; font-size: .95rem; }
.site-footer .footer-main { display: grid; gap: 2rem; padding-block: clamp(2.5rem, 5vw, 4rem); }
@media (min-width: 820px) { .site-footer .footer-main { grid-template-columns: 1.4fr 1fr 1fr 1.3fr; } }
.site-footer h3 { color: #fff; font-size: .92rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .55em; }
.site-footer a { color: #d3e3f4; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-brand .brand-footer { margin-bottom: 1rem; }
.footer-brand .brand-word strong { color: #fff; }
.footer-brand .brand-word span { color: #9dc0e8; }
.footer-brand p { max-width: 30em; }
.footer-legal {
  border-top: 1px solid rgba(255, 255, 255, .14); padding-block: 1.3rem;
  display: flex; flex-wrap: wrap; gap: .6rem 1.8rem; justify-content: space-between; font-size: .87rem;
}
.footer-legal p { margin: 0; }
.footer-disclaimer { border-top: 1px solid rgba(255,255,255,.14); padding-block: 1.2rem; font-size: .84rem; color: #9cb6cf; }
.footer-disclaimer p { margin: 0; max-width: 75em; }

/* ---------- Video embed (click-to-play) ---------- */
.video-embed { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); background: #0d2440; }
.video-play { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: none; cursor: pointer; background: none; display: block; }
.video-poster { width: 100%; height: 100%; object-fit: cover; }
.video-btn {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 74px; height: 74px; border-radius: 50%;
  background: rgba(20, 83, 110, .92); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .35); transition: transform .2s ease, background .2s ease;
}
.video-btn svg { width: 32px; height: 32px; margin-left: 4px; }
.video-play::after {
  content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12,34,49,.05), rgba(12,34,49,.35));
}
.video-play:hover .video-btn, .video-play:focus-visible .video-btn { transform: translate(-50%, -50%) scale(1.08); background: var(--brand); }
.video-frame { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Support / recognition strip ---------- */
.support-strip { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .7rem; justify-content: center; }
.support-strip li {
  margin: 0; padding: .55rem 1.05rem; border: 1px solid var(--line); border-radius: 999px;
  background: #fff; font-size: .9rem; font-weight: 600; color: var(--brand-dark); box-shadow: var(--shadow-sm);
}
.section-soft .support-strip li { background: #fff; }

/* ---------- Results figures ---------- */
.result-grid { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .result-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .result-grid { grid-template-columns: repeat(4, 1fr); } }
.result {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.4rem 1.3rem; box-shadow: var(--shadow-sm); text-align: center;
}
.result .metric { font-size: .85rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin-bottom: .5rem; }
.result .figure { font-size: 2rem; font-weight: 800; color: var(--brand); line-height: 1; }
.result .vs { display: block; margin-top: .5rem; font-size: .84rem; color: var(--muted); }

/* ---------- Gallery ---------- */
.gallery { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 760px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
.gallery figure { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); background: #fff; border: 1px solid var(--line); transition: transform .25s ease, box-shadow .25s ease; }
.gallery figure:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .5s ease; }
.gallery figure:hover img { transform: scale(1.05); }
.gallery figcaption { padding: .6rem .85rem .8rem; font-size: .85rem; }

/* ---------- Google map embed ---------- */
.map-embed {
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md);
  border: 1px solid var(--line); background: var(--bg-soft);
}
.map-embed iframe { display: block; width: 100%; height: clamp(300px, 45vw, 440px); border: 0; }

/* ---------- Steps illustration ---------- */
.steps-illo { margin-bottom: 1.6rem; }
.steps-illo img { width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--shadow-sm); }

/* ---------- Announcement flash bar ---------- */
.announce-bar {
  background: linear-gradient(90deg, #0d2440, var(--brand-dark));
  color: #fff; font-size: .93rem;
  animation: announce-in .45s ease;
}
.announce-inner { display: flex; align-items: center; gap: .9rem; padding-block: .55rem; }
.announce-flash {
  flex-shrink: 0; background: var(--accent); color: #fff;
  font-size: .7rem; font-weight: 800; letter-spacing: .08em;
  padding: .22rem .55rem; border-radius: 6px;
  animation: announce-flash 1.4s ease-in-out infinite;
}
.announce-text { margin: 0; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.announce-link { color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; flex-shrink: 0; }
.announce-close {
  flex-shrink: 0; background: none; border: none; color: #fff; font-size: 1.5rem; line-height: 1;
  cursor: pointer; padding: .1rem .4rem; border-radius: 6px;
}
.announce-close:hover { background: rgba(255, 255, 255, .15); }
@keyframes announce-in { from { transform: translateY(-100%); } to { transform: none; } }
@keyframes announce-flash { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .55; transform: scale(.94); } }
@media (max-width: 640px) { .announce-text { white-space: normal; font-size: .88rem; } }

/* ---------- Announcements list page ---------- */
.announce-date { font-size: .85rem; color: var(--muted); margin: -0.3rem 0 .6rem; }

/* ---------- Reveal motion ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .08s; }
.reveal-d2 { transition-delay: .16s; }
.reveal-d3 { transition-delay: .24s; }

/* ---------- Utility ---------- */
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }
.small { font-size: .9rem; }
.muted { color: var(--muted); }
.center { text-align: center; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .cta-band, .nav-toggle { display: none; }
  body { color: #000; }
}
