/* ============================================================
   SRH Medical — brand stylesheet
   Blue / grey system with a controlled orange accent.
     navy   #0A2540   midnight #102F4C  corporate #315F7D
     steel  #6F8FA6   pale     #EAF2F7  cool grey #F3F5F7
     slate  #667580   charcoal #202A33  accent    #F28C28
   ============================================================ */

:root {
  --navy:        #285776;   /* primary blue */
  --navy-deep:   #1c3f56;   /* darker shade for gradient depth */
  --midnight:    #244f6b;
  --secondary:   #9AB3C1;   /* rgb(154,179,193) */
  --steel:       #315F7D;
  --steel-soft:  #6F8FA6;
  --pale:        #EAF2F7;
  --cool:        #F3F5F7;
  --slate:       #667580;
  --charcoal:    #202A33;

  --accent:      #F28C28;   /* orange — CTAs, active states, directional detail */
  --accent-deep: #d9760f;   /* hover */
  --accent-ink:  #b4560a;   /* orange dark enough for text on white (AA) */

  /* Backward-compatible aliases used by About / Contact templates */
  --gold:        var(--accent);
  --gold-deep:   var(--accent-ink);
  --coral:       #e5484d;
  --sky:         #54afe6;

  --ink:         #14232e;
  --body:        #47555e;
  --muted:       #75838c;
  --line:        #dbe4ea;
  --surface:     #ffffff;
  --surface-2:   #F3F5F7;
  --surface-3:   #EAF2F7;

  --radius:      16px;
  --radius-sm:   10px;
  --radius-lg:   24px;
  --shadow-sm:   0 1px 2px rgba(10,37,64,.05), 0 2px 8px rgba(10,37,64,.05);
  --shadow-md:   0 12px 34px rgba(10,37,64,.10);
  --shadow-lg:   0 28px 64px rgba(10,37,64,.16);

  --container:   1220px;
  --font-body:   'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-head:   'Manrope', var(--font-body);
  --ease:        cubic-bezier(.22,.61,.36,1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 92px; }

body {
  font-family: var(--font-body);
  color: var(--body);
  background: var(--surface);
  line-height: 1.65;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--steel); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--navy); }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -.02em;
}

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 26px; }
.section { padding: clamp(66px, 9vw, 138px) 0; }
.section--tight { padding: clamp(48px, 6vw, 80px) 0; }
.section--alt { background: var(--surface-2); }
.section--navy { background: var(--navy); color: #c6d6e2; }
.section--navy h2, .section--navy h3 { color: #fff; }
.section--navy .card h3 { color: var(--ink); }
.section--navy .card p { color: var(--body); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--font-head);
  font-weight: 600; font-size: .78rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent-ink); margin-bottom: 1.1rem;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--accent); border-radius: 2px; }
.section--navy .eyebrow { color: var(--accent); }

.section-head { max-width: 760px; margin-bottom: clamp(2.8rem, 5vw, 4.4rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head .title + .lead { margin-top: 1.2rem; }

h1.display { font-size: clamp(2.4rem, 5.4vw, 4.3rem); font-weight: 600; letter-spacing: -.035em; line-height: 1.05; }
h2.title  { font-size: clamp(2rem, 3.9vw, 3.15rem); font-weight: 700; letter-spacing: -.03em; }
h3        { font-size: 1.3rem; }
.lead     { font-size: clamp(1.08rem, 1.5vw, 1.26rem); color: var(--body); line-height: 1.7; }
.section--navy .lead { color: #a9c1d2; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-head); font-weight: 600; font-size: .98rem;
  padding: .95rem 1.7rem; border-radius: 999px; cursor: pointer;
  border: 1.5px solid transparent; transition: all .24s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; transition: transform .24s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 10px 24px rgba(242,140,40,.32); }
.btn-primary:hover { background: var(--accent-deep); color: #fff; transform: translateY(-2px); box-shadow: 0 14px 30px rgba(217,118,15,.40); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--midnight); color: #fff; transform: translateY(-2px); }
.btn-ghost { background: rgba(255,255,255,.06); color: #fff; border-color: rgba(255,255,255,.45); backdrop-filter: blur(2px); }
.btn-ghost:hover { background: rgba(255,255,255,.14); color: #fff; border-color: #fff; }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-outline:hover { border-color: var(--navy); color: var(--navy); }

/* animated-underline text link */
.link-arrow {
  display: inline-flex; align-items: center; gap: .5rem; margin-top: 1.8rem;
  font-family: var(--font-head); font-weight: 600; font-size: 1rem; color: var(--navy);
  position: relative;
}
.link-arrow svg { width: 18px; height: 18px; color: var(--accent); transition: transform .24s var(--ease); }
.link-arrow::after {
  content: ""; position: absolute; left: 0; bottom: -4px; height: 2px; width: 100%;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.link-arrow:hover { color: var(--navy); }
.link-arrow:hover::after { transform: scaleX(1); }
.link-arrow:hover svg { transform: translateX(4px); }
.section--navy .link-arrow { color: #fff; }

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.9);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
  transition: background .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }

/* Transparent-over-hero variant (home) */
.site-header--over {
  position: fixed; left: 0; right: 0; top: 0;
  background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none;
  border-bottom-color: transparent;
}
.site-header--over .nav a { color: #eaf2f7; }
.site-header--over .nav a:hover { color: #fff; background: rgba(255,255,255,.12); }
.site-header--over .nav a.active { color: #fff; }
.site-header--over .brand__logo { filter: brightness(0) invert(1); }
.site-header--over .nav-toggle span { background: #fff; }
.site-header--over.scrolled {
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: var(--line); box-shadow: var(--shadow-sm);
}
.site-header--over.scrolled .nav a { color: var(--ink); }
.site-header--over.scrolled .nav a:hover { color: var(--navy); background: var(--surface-2); }
.site-header--over.scrolled .nav a.active { color: var(--navy); }
.site-header--over.scrolled .brand__logo { filter: none; }
.site-header--over.scrolled .nav-toggle span { background: var(--navy); }

.header-inner { display: flex; align-items: center; justify-content: space-between; height: 84px; }

.brand { display: flex; align-items: center; }
.brand__logo { height: 50px; width: auto; flex: none; display: block; transition: filter .35s var(--ease); }

.nav { display: flex; align-items: center; gap: .3rem; margin-left: auto; }
.nav a {
  font-family: var(--font-head); font-weight: 600; font-size: .93rem; color: var(--ink);
  padding: .55rem .9rem; border-radius: 999px; position: relative;
  transition: color .2s var(--ease), background .2s var(--ease);
}
.nav a:hover { color: var(--navy); background: var(--surface-2); }
.nav a.active { color: var(--navy); }
.nav a.active::after {
  content: ""; position: absolute; left: 50%; bottom: .12rem; transform: translateX(-50%);
  width: 16px; height: 2px; border-radius: 2px; background: var(--accent);
}
.header-cta { margin-left: .8rem; padding: .8rem 1.4rem; }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: none; background: transparent; cursor: pointer;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s, background .3s; }
.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); }

/* ============================================================
   Hero
   ============================================================ */
.hero { position: relative; color: #fff; overflow: hidden; isolation: isolate; background: var(--navy-deep); }
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }

/* layered navy overlay for legibility */
.hero__bg::after,
.hero__slider::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    linear-gradient(102deg, rgba(20,45,62,.92) 0%, rgba(40,87,118,.80) 46%, rgba(40,87,118,.42) 100%),
    linear-gradient(to top, rgba(20,45,62,.82) 2%, rgba(20,45,62,.10) 42%);
}

/* image sequence (atmospheric, slow) */
.hero__slider { position: absolute; inset: 0; z-index: -2; overflow: hidden; background: var(--navy-deep); will-change: transform; }
.hero__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.6s var(--ease); will-change: opacity; }
.hero__slide.is-active { opacity: 1; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; }
@media (prefers-reduced-motion: no-preference) {
  .hero__slide img { transform: scale(1.06); transition: transform 11s ease-out; }
  .hero__slide.is-active img { transform: scale(1.14); }
}

.hero .container { position: relative; }
.hero__inner { padding: clamp(56px, 8vw, 92px) 0 clamp(78px, 10vw, 118px); max-width: 900px; }
.hero .hero__scroll { display: none; }
.hero__label {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--font-head); font-weight: 600; font-size: .8rem;
  letter-spacing: .2em; text-transform: uppercase; color: var(--accent); margin-bottom: 1.6rem;
}
.hero__label::before { content: ""; width: 34px; height: 2px; background: var(--accent); border-radius: 2px; }
.hero h1 { color: #fff; margin-bottom: 1.6rem; max-width: 15ch; }
.hero__lead { font-size: clamp(1.08rem, 1.65vw, 1.34rem); color: #cddbe8; max-width: 620px; margin-bottom: 2.5rem; line-height: 1.62; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* trust line pinned near the bottom */
.hero__foot { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; padding-bottom: clamp(26px, 5vh, 44px); }
.hero__foot-inner { display: flex; }
.trustline {
  list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap;
  align-items: center; gap: .9rem 1.5rem;
  border-top: 1px solid rgba(255,255,255,.16); padding-top: 1.3rem; width: 100%;
}
.trustline li {
  font-family: var(--font-head); font-weight: 600; font-size: .76rem;
  letter-spacing: .16em; text-transform: uppercase; color: #b7c8d6;
  position: relative; padding-left: 1.5rem;
}
.trustline li::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
}

/* scroll indicator */
.hero__scroll {
  position: absolute; left: 50%; transform: translateX(-50%); bottom: clamp(90px, 15vh, 130px);
  z-index: 3; display: flex; flex-direction: column; align-items: center; gap: .5rem;
  color: #b7c8d6; font-family: var(--font-head); font-size: .68rem; letter-spacing: .22em; text-transform: uppercase;
}
.hero__scroll-line { width: 1px; height: 46px; background: linear-gradient(to bottom, rgba(255,255,255,.5), transparent); position: relative; overflow: hidden; }
.hero__scroll-line::after {
  content: ""; position: absolute; left: 0; top: -50%; width: 1px; height: 50%; background: var(--accent);
  animation: scrollDrop 2.4s var(--ease) infinite;
}
.hero__scroll:hover { color: #fff; }
@keyframes scrollDrop { 0% { top: -50%; } 60%,100% { top: 100%; } }
@media (max-width: 900px) { .hero__scroll { display: none; } }

/* secondary page hero (About / Contact) */
.hero--page { position: relative; }
.hero--page .hero .eyebrow, .hero--page .eyebrow { color: var(--accent); }
.hero .eyebrow { color: var(--accent); }
.hero h1.display { color: #fff; }
.hero p { font-size: clamp(1.05rem, 1.6vw, 1.28rem); color: #cddbe8; max-width: 640px; margin-top: 1.4rem; }
.hero--page .hero__inner { padding: clamp(90px, 13vw, 150px) 0 clamp(70px, 9vw, 110px); max-width: 1060px; }
.hero--page h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 600; max-width: 22ch; }

/* ============================================================
   01 — Positioning (editorial)
   ============================================================ */
.section--positioning { padding-top: clamp(84px, 11vw, 150px); }
.editorial {
  display: grid; grid-template-columns: minmax(160px, .8fr) 1.5fr 1.2fr;
  gap: clamp(2rem, 4vw, 4rem); align-items: start;
}
.editorial__label { display: flex; align-items: center; gap: .9rem; padding-top: .5rem; }
.editorial__label .marker {
  width: 42px; height: 3px; background: var(--accent); border-radius: 3px; flex: none;
  transform-origin: left; transform: scaleX(0); transition: transform .8s var(--ease);
}
.editorial__label.in .marker { transform: scaleX(1); }
.editorial__label .secnum {
  font-family: var(--font-head); font-weight: 600; font-size: .82rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--slate);
}
.statement {
  font-family: var(--font-head); font-weight: 600; font-size: clamp(1.8rem, 3.3vw, 2.85rem);
  line-height: 1.14; letter-spacing: -.03em; color: var(--ink);
}
.editorial__body p { color: var(--body); font-size: 1.06rem; line-height: 1.72; }
.editorial__body p + p { margin-top: 1.1rem; }

/* ============================================================
   02 — Capabilities (staggered cards)
   ============================================================ */
.cap-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.2rem, 2vw, 1.8rem); }
.cap-grid > :nth-child(even) { transform: translateY(38px); }

.cap-card {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 2.2rem 2rem 2.3rem; overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.cap-card::before {
  content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%;
  background: linear-gradient(90deg, var(--accent), rgba(242,140,40,0));
  transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease);
}
.cap-card:hover, .cap-card:focus-visible {
  transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: #c3d2dd;
}
.cap-grid > :nth-child(even):hover, .cap-grid > :nth-child(even):focus-visible { transform: translateY(32px); }
.cap-card:hover::before, .cap-card:focus-visible::before { transform: scaleX(1); }

.cap-card__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; }
.cap-card__icon {
  width: 58px; height: 58px; border-radius: 14px; display: grid; place-items: center;
  background: var(--surface-3); color: var(--navy); border: 1px solid var(--line);
  transition: background .3s var(--ease), color .3s var(--ease);
}
.cap-card__icon svg { width: 28px; height: 28px; }
.cap-card:hover .cap-card__icon, .cap-card:focus-visible .cap-card__icon { background: var(--navy); color: #fff; border-color: var(--navy); }
.cap-card__index {
  font-family: var(--font-head); font-weight: 700; font-size: 1rem; color: var(--steel-soft);
  letter-spacing: .04em;
}
.cap-card h3 { font-size: 1.3rem; margin-bottom: .6rem; letter-spacing: -.02em; }
.cap-card__text { font-size: .99rem; color: var(--body); }
.cap-card__reveal {
  display: grid; grid-template-rows: 0fr; opacity: 0;
  transition: grid-template-rows .4s var(--ease), opacity .35s var(--ease), margin .4s var(--ease);
}
.cap-card__reveal > p { overflow: hidden; }
.cap-card:hover .cap-card__reveal, .cap-card:focus-within .cap-card__reveal {
  grid-template-rows: 1fr; opacity: 1; margin-top: .9rem;
}
.cap-card__reveal p { font-size: .95rem; color: var(--slate); border-top: 1px solid var(--line); padding-top: .9rem; }
.cap-card__arrow {
  position: absolute; right: 1.6rem; bottom: 1.6rem; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; color: var(--accent); background: var(--surface-3);
  opacity: 0; transform: translateX(-6px); transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.cap-card__arrow svg { width: 17px; height: 17px; }
.cap-card:hover .cap-card__arrow, .cap-card:focus-within .cap-card__arrow { opacity: 1; transform: translateX(0); }

/* ============================================================
   03 — Expansion journey (navy)
   ============================================================ */
.section--journey { overflow: hidden; }
.journey { position: relative; margin-top: 1rem; }
.journey__track {
  position: absolute; left: 0; right: 0; top: 27px; height: 2px;
  background: rgba(111,143,166,.32); border-radius: 2px;
}
.journey__progress {
  position: absolute; left: 0; top: 0; height: 100%; width: var(--jp, 0%);
  background: var(--accent); border-radius: 2px; transition: width .12s linear;
  box-shadow: 0 0 12px rgba(242,140,40,.6);
}
.journey__stages {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.6rem;
}
.jstage { position: relative; padding-top: 3.6rem; }
.jstage__node {
  position: absolute; top: 20px; left: 0; width: 16px; height: 16px; border-radius: 50%;
  background: var(--navy); border: 2px solid var(--steel-soft); z-index: 1;
  transition: background .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.jstage.is-active .jstage__node { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 6px rgba(242,140,40,.18); }
.jstage__num {
  font-family: var(--font-head); font-weight: 700; font-size: .82rem; letter-spacing: .14em;
  color: var(--steel-soft); transition: color .3s var(--ease);
}
.jstage.is-active .jstage__num { color: var(--accent); }
.jstage__name { color: #fff; font-size: 1.5rem; font-weight: 600; margin: .5rem 0 .7rem; letter-spacing: -.02em; }
.jstage__text { color: #a9c1d2; font-size: .98rem; line-height: 1.6; }

/* interconnected system visual */
.sysviz { margin-top: clamp(3rem, 6vw, 5.5rem); }
.sysviz svg { width: 100%; height: auto; }
.sysviz__link { stroke: rgba(111,143,166,.4); stroke-width: 1.4; }
.sysviz__node { fill: var(--steel-soft); }
.sysviz__ring { fill: none; stroke: rgba(111,143,166,.5); stroke-width: 1.4; }
.sysviz__dot { fill: #cddbe8; }
.sysviz__dot--accent { fill: var(--accent); }
.sysviz__cap {
  fill: #90a9bb; font-family: var(--font-head); font-weight: 600;
  font-size: 15px; letter-spacing: .04em; text-anchor: middle;
}
@media (prefers-reduced-motion: no-preference) {
  .sysviz__dot--accent { animation: sysPulse 3s var(--ease) infinite; transform-box: fill-box; transform-origin: center; }
}
@keyframes sysPulse { 0%,100% { opacity: 1; } 50% { opacity: .45; } }

/* ============================================================
   04 — Regional focus + map
   ============================================================ */
.section--region { background: var(--surface-2); }
.region { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2.5rem, 5vw, 5rem); align-items: center; }
.region__legend { list-style: none; padding: 1.6rem 0 0; margin: 2.2rem 0 0; display: flex; gap: 1.8rem; border-top: 1px solid var(--line); }
.region__legend li { display: flex; align-items: center; gap: .55rem; font-size: .88rem; color: var(--slate); font-weight: 500; }
.region__legend .dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.dot--steel { background: var(--steel-soft); box-shadow: 0 0 0 3px rgba(111,143,166,.2); }
.dot--accent { background: var(--accent); box-shadow: 0 0 0 3px rgba(242,140,40,.22); }

.region__map {
  position: relative; background: linear-gradient(155deg, var(--navy) 0%, var(--navy-deep) 100%);
  border-radius: var(--radius-lg); padding: clamp(1rem, 3vw, 2rem); box-shadow: var(--shadow-lg);
  border: 1px solid rgba(111,143,166,.18);
}
.map { margin: 0; }
.map svg { width: 100%; height: auto; display: block; }
.map__core { fill: var(--steel-soft); }
.map__pulse { fill: var(--steel-soft); opacity: .5; transform-box: fill-box; transform-origin: center; }
.map__point--accent .map__core { fill: var(--accent); }
.map__point--accent .map__pulse { fill: var(--accent); }
@media (prefers-reduced-motion: no-preference) {
  .map__pulse { animation: mapPulse 3.4s var(--ease) infinite; }
  .map__point:nth-child(2) .map__pulse { animation-delay: .3s; }
  .map__point:nth-child(3) .map__pulse { animation-delay: .8s; }
  .map__point:nth-child(4) .map__pulse { animation-delay: 1.2s; }
  .map__point:nth-child(5) .map__pulse { animation-delay: 1.6s; }
  .map__point--accent .map__pulse { animation-duration: 2.6s; }
}
@keyframes mapPulse { 0% { transform: scale(1); opacity: .55; } 70%,100% { transform: scale(3.2); opacity: 0; } }

/* image carousel (replaces map in region section) */
.rcarousel { position: relative; }
.rcarousel__frame {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg); aspect-ratio: 4 / 3.1; background: var(--navy-deep);
}
.rcarousel__slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1s var(--ease); will-change: opacity; }
.rcarousel__slide.is-active { opacity: 1; }
.rcarousel__slide img { width: 100%; height: 100%; object-fit: cover; }
@media (prefers-reduced-motion: no-preference) {
  .rcarousel__slide img { transform: scale(1.04); transition: transform 6s ease-out; }
  .rcarousel__slide.is-active img { transform: scale(1.1); }
}
/* subtle navy edge for legibility of dots + premium framing */
.rcarousel__ring {
  position: absolute; inset: 0; border-radius: var(--radius-lg); pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
  background: linear-gradient(to top, rgba(6,24,44,.5) 0%, rgba(6,24,44,0) 34%);
}
.rcarousel__dots { display: flex; gap: .55rem; justify-content: center; margin-top: 1.3rem; }
.rcarousel__dot {
  width: 30px; height: 4px; border-radius: 4px; border: none; cursor: pointer; padding: 0;
  background: var(--line); transition: background .3s var(--ease), width .3s var(--ease);
}
.rcarousel__dot:hover { background: var(--steel-soft); }
.rcarousel__dot.is-active { background: var(--accent); width: 42px; }

/* ============================================================
   Expand across borders (About)
   ============================================================ */
.borders__grid {
  display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}
.borders__list { display: grid; gap: 1.1rem; margin-top: clamp(2rem, 3.5vw, 2.8rem); }

/* plain bordered boxes (per reference) */
.bbox {
  background: var(--surface); border: 1.5px solid var(--navy); border-radius: 6px;
  padding: 1.4rem 1.6rem;
  transition: box-shadow .28s var(--ease), transform .28s var(--ease);
}
.bbox:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.bbox__text {
  font-family: var(--font-head); font-weight: 500; font-size: 1.12rem; line-height: 1.45;
  color: var(--navy); letter-spacing: -.01em; margin: 0;
}
.bbox__text strong { font-weight: 800; color: var(--navy); }

/* map side */
.borders__right { position: relative; }
.borders__map { position: relative; display: grid; place-items: center; }
.borders__map::before {
  content: ""; position: absolute; width: 82%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(49,95,125,.16), rgba(49,95,125,0) 68%);
  z-index: 0;
}
.borders__map img {
  position: relative; z-index: 1; width: 100%; max-width: 720px; height: auto;
  filter: drop-shadow(0 24px 44px rgba(10,37,64,.24));
}
.borders__caption {
  margin-top: 1.2rem; text-align: center; font-size: .92rem; color: var(--slate);
  max-width: 440px; margin-inline: auto; line-height: 1.5;
}

/* ============================================================
   Shared content building blocks (About / Contact)
   ============================================================ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 5vw, 5rem); align-items: center; }
.split--reverse .split__media { order: -1; }
.split__media { position: relative; }
.split__media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); width: 100%; aspect-ratio: 4/3.4; object-fit: cover; }
.split__media .badge {
  position: absolute; bottom: -22px; left: -22px; background: var(--accent);
  color: #fff; border-radius: var(--radius); padding: 1rem 1.3rem;
  box-shadow: var(--shadow-md); max-width: 220px;
}
.split__media .badge strong { font-family: var(--font-head); font-size: 1.05rem; display: block; }
.split__media .badge span { font-size: .82rem; opacity: .9; }

.check-list { list-style: none; padding: 0; margin: 1.8rem 0 0; display: grid; gap: .9rem; }
.check-list li { display: flex; gap: .8rem; align-items: flex-start; color: var(--body); }
.check-list li svg { flex: none; width: 22px; height: 22px; margin-top: 2px; color: var(--accent); }
.section--navy .check-list li { color: #cddbe8; }

.prose p + p { margin-top: 1.15rem; }

.grid { display: grid; gap: 1.4rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem 1.8rem; box-shadow: var(--shadow-sm);
  transition: transform .28s var(--ease), box-shadow .28s var(--ease), border-color .28s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #c3d2dd; }
.card__icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--surface-3); color: var(--navy);
  margin-bottom: 1.25rem; border: 1px solid var(--line);
}
.card__icon svg { width: 26px; height: 26px; }
.card h3 { font-size: 1.18rem; margin-bottom: .55rem; }
.card p { font-size: .97rem; color: var(--body); }
.card--accent { border-top: 3px solid var(--accent); }

.numcard { position: relative; padding-top: 2.4rem; }
.numcard .num {
  font-family: var(--font-head); font-weight: 700; font-size: 1rem; color: var(--accent-ink);
  border: 1.5px solid var(--accent); width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; margin-bottom: 1.1rem;
}

/* phase timeline (About) */
.phases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; position: relative; }
.phases::before {
  content: ""; position: absolute; left: 8%; right: 8%; top: 3.4rem; height: 2px;
  background: linear-gradient(90deg, var(--accent) 0%, rgba(242,140,40,.3) 100%); z-index: 0;
}
.phase {
  position: relative; z-index: 1; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 2.4rem 2rem; box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.phase { background: var(--secondary); border-color: transparent; }
.phase h3 { color: var(--navy); }
.phase p { color: #2f4a58; }
.phase:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: transparent; }
.section--navy .phases::before { background: linear-gradient(90deg, var(--accent) 0%, rgba(242,140,40,.2) 100%); opacity: .55; }
.section--navy .phase { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.14); }
.section--navy .phase:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.24); }
.phase__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 50%; margin-bottom: 1.3rem;
  font-family: var(--font-head); font-weight: 700; font-size: 1.35rem; line-height: 1;
  color: var(--navy); background: var(--surface-3);
  border: 1.5px solid var(--accent); box-shadow: 0 6px 16px rgba(10,37,64,.08);
}
.section--navy .phase__num { color: var(--accent); background: rgba(255,255,255,.06); box-shadow: none; }
.phase h3 { margin-bottom: .55rem; font-size: 1.28rem; }
.section--navy .phase p { color: #a9c1d2; }

/* vision stages (About) */
.stages { display: flex; align-items: center; justify-content: flex-start; gap: 1rem; flex-wrap: wrap; margin-top: 2.4rem; }
.stage {
  font-family: var(--font-head); font-weight: 600; color: #fff; background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.18); border-radius: 999px; padding: .7rem 1.5rem;
}
.stage--final { background: var(--accent); color: #fff; border-color: var(--accent); }
.stage-arrow { color: var(--accent); }

/* CTA band */
.cta-band { position: relative; overflow: hidden; background: linear-gradient(120deg, var(--navy) 0%, var(--navy-deep) 100%); color: #fff; }
.cta-band__inner { padding: clamp(64px, 9vw, 108px) 0; text-align: center; position: relative; z-index: 1; }
.cta-band .eyebrow { color: var(--accent); }
.cta-band h2 { color: #fff; max-width: 760px; margin: 0 auto 1rem; }
.cta-band p { color: #a9c1d2; max-width: 560px; margin: 0 auto 2rem; font-size: 1.1rem; }
.cta-band__glow { position: absolute; width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(242,140,40,.24), transparent 70%); top: -190px; right: -120px; }

.pills { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.6rem; }
.pill { background: var(--surface-3); color: var(--navy); border-radius: 999px; padding: .5rem 1.1rem; font-size: .9rem; font-weight: 600; font-family: var(--font-head); }

/* ============================================================
   Contact
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(2.5rem, 5vw, 4.5rem); align-items: start; }
.contact-info .info-item { display: flex; gap: 1rem; padding: 1.2rem 0; border-bottom: 1px solid var(--line); }
.contact-info .info-item:last-child { border-bottom: none; }
.contact-info .info-icon { flex: none; width: 46px; height: 46px; border-radius: 12px; background: var(--surface-3); color: var(--navy); display: grid; place-items: center; }
.contact-info .info-icon svg { width: 22px; height: 22px; }
.contact-info .info-label { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 600; }
.contact-info .info-value { font-family: var(--font-head); font-weight: 600; color: var(--ink); }
.contact-info .info-value a { color: var(--ink); }
.contact-info .info-value a:hover { color: var(--steel); }

.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.8rem, 3vw, 2.8rem); box-shadow: var(--shadow-md); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { margin-bottom: 1.15rem; }
.field label { display: block; font-family: var(--font-head); font-weight: 600; font-size: .9rem; color: var(--ink); margin-bottom: .45rem; }
.field .req { color: var(--coral); }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  padding: .85rem 1rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface-2); transition: border-color .2s, background .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--steel); background: #fff; box-shadow: 0 0 0 4px rgba(49,95,125,.14);
}
.field .error-text { color: var(--coral); font-size: .84rem; margin-top: .4rem; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--coral); background: #fff6f4; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .85rem; color: var(--muted); margin-top: 1rem; }

.alert-success {
  display: flex; gap: .9rem; align-items: flex-start;
  background: #ecf7f0; border: 1px solid #bfe3cd; color: #1c6b3d;
  border-radius: var(--radius-sm); padding: 1.1rem 1.3rem; margin-bottom: 1.6rem;
}
.alert-success svg { flex: none; width: 22px; height: 22px; color: #2a9d5a; margin-top: 1px; }
.alert-success strong { display: block; font-family: var(--font-head); }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { background: var(--surface-2); color: var(--body); padding: clamp(56px, 7vw, 88px) 0 0; border-top: 1px solid var(--line); }
.site-footer .footer-top { display: grid; grid-template-columns: 1.7fr 1fr 1.5fr; gap: 3rem; padding-bottom: 3rem; border-bottom: 1px solid var(--line); }
.footer-logo { height: 52px; width: auto; }
.footer-brand p { margin-top: 1.4rem; max-width: 380px; font-size: .95rem; color: var(--body); line-height: 1.65; }
.footer-col h4 { color: var(--ink); font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; margin-bottom: 1.1rem; font-family: var(--font-head); }
.footer-col ul { list-style: none; padding: 0; display: grid; gap: .7rem; }
.footer-col a { color: var(--body); font-size: .96rem; }
.footer-col a:hover { color: var(--navy); }
.footer-contact .fc-item { margin-bottom: 1rem; font-size: .95rem; color: var(--ink); }
.footer-contact .fc-item span { display: block; color: var(--muted); font-size: .74rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: .2rem; font-weight: 600; }
.footer-contact a { color: var(--steel); font-weight: 500; }
.footer-contact a:hover { color: var(--navy); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; padding: 1.6rem 0; font-size: .86rem; color: var(--muted); }
.footer-bottom span:last-child { color: var(--steel); font-family: var(--font-head); font-weight: 600; }

/* ============================================================
   Reveal animation
   ============================================================ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .09s; }
.reveal.d2 { transition-delay: .18s; }
.reveal.d3 { transition-delay: .27s; }
/* keep staggered offset for even capability cards after reveal */
.cap-grid > :nth-child(even).reveal { transform: translateY(28px); }
.cap-grid > :nth-child(even).reveal.in { transform: translateY(38px); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .cap-grid > :nth-child(even), .cap-grid > :nth-child(even).reveal.in { transform: none; }
  .editorial__label .marker { transform: scaleX(1); }
  .btn:hover svg { transform: none; }
  .hero__slide img { transition: none; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1000px) {
  .editorial { grid-template-columns: 1fr; gap: 1.6rem; }
  .editorial__lead { max-width: 720px; }
  .region { grid-template-columns: 1fr; }
  .region__map, .region__media { order: -1; max-width: 560px; }
  .borders__grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .borders__right { order: -1; }
  .borders__map img { max-width: 440px; }
}

@media (max-width: 940px) {
  .nav-toggle { display: flex; }
  .header-cta { display: none; }
  /* backdrop-filter creates a containing block that would trap the fixed
     mobile menu inside the header — remove it so the menu covers the viewport */
  .site-header, .site-header--over, .site-header--over.scrolled {
    backdrop-filter: none; -webkit-backdrop-filter: none;
  }
  .site-header:not(.site-header--over) { background: #fff; }
  .nav {
    position: fixed; inset: 0; flex-direction: column; align-items: stretch; justify-content: center; gap: 0;
    background: var(--navy); padding: 84px 2rem 2rem;
    opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(-10px);
    transition: opacity .3s var(--ease), transform .35s var(--ease), visibility .3s;
    max-height: 100vh; overflow-y: auto;
  }
  .nav.open { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }
  .nav a { padding: 1.05rem .4rem; border-radius: 8px; border-bottom: 1px solid rgba(255,255,255,.1); font-size: 1.25rem; color: #eaf2f7 !important; }
  .nav a:hover, .nav a.active { color: #fff !important; background: transparent !important; }
  .nav a.active::after { display: none; }
  .nav .btn { margin-top: 1.6rem; justify-content: center; }
  .site-header--over .nav-toggle span,
  .nav-toggle[aria-expanded="true"] span { background: #fff; }

  .cap-grid, .journey__stages, .grid-3, .grid-4, .phases { grid-template-columns: repeat(2, 1fr); }
  .cap-grid > :nth-child(even), .cap-grid > :nth-child(even):hover { transform: none; }
  .cap-grid > :nth-child(even).reveal.in { transform: none; }

  /* journey → vertical timeline */
  .journey__track { left: 7px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
  .journey__progress { width: 100% !important; height: var(--jp, 0%); transition: height .12s linear; }
  .journey__stages { grid-template-columns: 1fr; gap: 2rem; }
  .jstage { padding-top: 0; padding-left: 2.4rem; }
  .jstage__node { top: 4px; left: 0; }
}

@media (max-width: 720px) {
  .split, .contact-grid { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
  .split__media img { aspect-ratio: 16/11; }
  .cap-grid, .grid-2, .grid-3, .grid-4, .phases { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .site-footer .footer-top { grid-template-columns: 1fr; gap: 2.2rem; }
  .split__media .badge { left: 16px; bottom: -18px; }
  .hero__actions .btn { flex: 1 1 auto; justify-content: center; }
  .hero__inner { padding-top: clamp(130px, 20vh, 170px); }
  .trustline { gap: .6rem 1.1rem; }
  .trustline li { font-size: .68rem; padding-left: 1.2rem; }
  .region__legend { flex-direction: column; gap: .8rem; }
}

@media (max-width: 420px) {
  .brand__logo { height: 40px; }
  .trustline li:nth-child(n+3) { display: none; }
}
