/* ==========================================================================
   Concept 3 — "Clinical Canvas"
   Immersive and image-led. Layout only — colours, fonts and radii come from
   style.css. Classes are .c3- prefixed, except the footer, which is lifted
   from concept 2 "Care Dashboard" and keeps its .c2- prefix.
   ========================================================================== */

/* --------------------------------------- header — transparent over the hero */

/* The hero starts at y=0 and both header tiers ride on top of it. The topbar
   is absolute so it scrolls away; the nav is fixed and swaps to solid white
   once main.js adds .is-stuck (scrollY > 40). */
.c3-topbar {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 1032;
  background: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, .16);
}

.c3-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1030;
  background: transparent;
  border-bottom: 0;
  /* clears the topbar at rest; collapses to 0 when the header goes solid */
  padding-top: 42px;
  transition: background .35s var(--ease), padding-top .35s var(--ease),
              box-shadow .3s var(--ease);
}
.c3-header.is-stuck { background: #fff; padding-top: 0; box-shadow: var(--shadow); }

/* Its own scrim, so the white wordmark and the topbar stay legible wherever
   the banner happens to be bright. Fades out as the header goes solid.
   Kept as ::before rather than a gradient background so the swap to #fff is
   still a real transition — a gradient cannot interpolate to a flat colour. */
.c3-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(8, 38, 60, .62), rgba(8, 38, 60, 0));
  pointer-events: none;
  transition: opacity .35s var(--ease);
}
.c3-header.is-stuck::before { opacity: 0; }
/* the navbar is not positioned, so it would otherwise paint under the scrim */
.c3-header .navbar { position: relative; z-index: 1; }

/* The logo artwork is the mark on its own, so the wordmark is set in type and
   recolours with the header state — no second lockup asset needed. The mark
   still ships as two files: its caduceus is navy, which would vanish into the
   banner scrim, so a white-caduceus copy crossfades in over the hero. Heights
   come from .navbar-brand img in style.css, which already animates on stick. */
.c3-brand { display: inline-flex; align-items: center; gap: 13px; }

.c3-brand__marks { position: relative; display: block; flex: 0 0 auto; }
.c3-brand__marks img { display: block; }
.c3-brand__solid { position: absolute; top: 0; left: 0; }
.c3-brand__over,
.c3-brand__solid { transition: opacity .3s var(--ease); }
.c3-header .c3-brand__solid { opacity: 0; }
.c3-header.is-stuck .c3-brand__over { opacity: 0; }
.c3-header.is-stuck .c3-brand__solid { opacity: 1; }

.c3-brand__text { display: block; line-height: 1.15; }
.c3-brand__text strong {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: .015em;
  text-transform: uppercase;
  color: #fff;
  transition: color .3s var(--ease), font-size .3s var(--ease);
}
.c3-brand__text small {
  display: block;
  margin-top: 2px;
  font-family: 'Poppins', sans-serif;
  font-size: .55rem;
  font-weight: 600;
  letter-spacing: .185em;
  text-transform: uppercase;
  color: var(--red);
  white-space: nowrap;
}
.c3-header.is-stuck .c3-brand__text strong { color: var(--navy); font-size: 1.15rem; }

.c3-header .navbar-nav .nav-link { color: #fff; }
.c3-header.is-stuck .navbar-nav .nav-link { color: var(--ink); }
.c3-header .navbar-toggler { border-color: rgba(255, 255, 255, .5); }
.c3-header .navbar-toggler-icon {
  filter: invert(1) grayscale(1) brightness(2);
}
.c3-header.is-stuck .navbar-toggler { border-color: var(--line); }
.c3-header.is-stuck .navbar-toggler-icon { filter: none; }

/* the collapsed panel is white (style.css:742), so its links must go dark
   again even while the header behind them is still transparent */
@media (max-width: 991.98px) {
  .c3-header .navbar-collapse .nav-link,
  .c3-header.is-stuck .navbar-collapse .nav-link { color: var(--ink); }
}

/* ------------------------------------------------------------------ hero - */

.c3-hero { position: relative; }

.c3-hero .carousel-item {
  position: relative;
  /* Sized for the 2.4:1 banner artwork while still fitting the stack it has to
     carry: fixed header (132) + caption card (~230) + the trust card that
     overlaps the bottom edge (96). */
  height: clamp(560px, 72vh, 800px);
}
.c3-hero__img { width: 100%; height: 100%; object-fit: cover; }

/* The supplied banners are bright, and the header sits transparent over them
   with a white logo and white nav. The caption card carries its own background,
   so this only has to darken the top strip behind the header. */
.c3-hero .carousel-item::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 230px;
  background: linear-gradient(to bottom,
    rgba(8, 38, 60, .62) 0%,
    rgba(8, 38, 60, .28) 55%,
    rgba(8, 38, 60, 0) 100%);
  /* the Ken-Burns transform below makes the image its own stacking context, so
     without this the scrim paints under it — style.css:269 does the same */
  z-index: 1;
}
/* the same Ken-Burns the live hero uses, so the motion language is unchanged */
.c3-hero .carousel-item.active .c3-hero__img { animation: c3-zoom 9s var(--ease) forwards; }
@keyframes c3-zoom { from { transform: scale(1.10); } to { transform: scale(1); } }

/* Fills the slide and lays the card out inside a safe area: the header above,
   the scroll cue and overlapping trust card below. */
.c3-hero__caption {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: flex;
  align-items: center;
  padding-top: 150px;
  padding-bottom: 150px;
  /* it covers the whole slide, so let carousel swipes through the gaps */
  pointer-events: none;
}
.c3-hero__card { pointer-events: auto; }

/* Every banner supplied is light, so the copy needs its own surface to sit on
   rather than relying on the artwork being dark. */
.c3-hero__card {
  max-width: 660px;
  padding: clamp(26px, 3vw, 40px);
  border-radius: var(--radius-lg);
  background: rgba(8, 38, 60, .62);
  border: 1px solid rgba(255, 255, 255, .16);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
/* slide 1 carries the page h1, slides 2 and 3 an h2 — same look, one h1 */
.c3-hero__card h1,
.c3-hero__card h2 {
  color: #fff;
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  margin-bottom: 0;
}
.c3-hero__card p { color: rgba(255, 255, 255, .86); margin-top: 16px; margin-bottom: 0; }

/* numbered vertical rail replaces the default dot indicators */
.c3-hero__rail.carousel-indicators {
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
  left: auto;
  right: clamp(14px, 3vw, 46px);
  bottom: auto;
  top: 50%;
  transform: translateY(-50%);
  width: auto;
  margin: 0;
  padding: 0;
  z-index: 3;
}
.c3-hero__rail [data-bs-target] {
  display: flex;
  align-items: center;
  gap: 10px;
  width: auto;
  height: auto;
  border: 0;
  background: none;
  opacity: 1;
  text-indent: 0;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: .82rem;
  color: rgba(255, 255, 255, .55);
  transition: color .3s var(--ease);
}
.c3-hero__rail [data-bs-target]::after {
  content: '';
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: rgba(255, 255, 255, .45);
  transition: width .35s var(--ease), background .3s var(--ease);
}
.c3-hero__rail .active { color: #fff; }
.c3-hero__rail .active::after { width: 46px; background: var(--red); }

.c3-hero__cue {
  position: absolute;
  z-index: 3;
  left: 50%;
  /* in the gap between the card's bottom edge and the overlapping trust card */
  bottom: clamp(88px, 9vw, 110px);
  transform: translateX(-50%);
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .35);
  color: #fff;
  animation: c3-cue 1.8s var(--ease) infinite;
}
@keyframes c3-cue {
  0%, 100% { transform: translate(-50%, 0); opacity: .75; }
  50%      { transform: translate(-50%, 8px); opacity: 1; }
}

/* --------------------------------------------------- inner-page hero ---- */

/* The same banner language as the home hero — full-bleed image with Ken-Burns
   and a top scrim for the transparent header — at a shorter height, sized for
   a 2400x700 (3.43:1) image so the page's own content stays near the fold.
   There is no carousel here, so the rules .c3-hero hangs off .carousel-item
   live directly on the section instead. */
.c3-pagehero {
  position: relative;
  height: clamp(340px, 48vh, 560px);
  /* the Ken-Burns scales the image past the edges */
  overflow: hidden;
}

.c3-pagehero .c3-hero__img { animation: c3-zoom 9s var(--ease) forwards; }

/* header legibility only — see the note on .c3-hero .carousel-item::before */
.c3-pagehero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 200px;
  background: linear-gradient(to bottom,
    rgba(8, 38, 60, .62) 0%,
    rgba(8, 38, 60, .28) 55%,
    rgba(8, 38, 60, 0) 100%);
  z-index: 1;
}

/* the home hero also reserves room for a scroll cue and the trust card that
   overlaps its bottom edge; this one only has to clear the fixed header */
.c3-pagehero .c3-hero__caption {
  align-items: center;
  padding-top: 132px;
  padding-bottom: 40px;
}

.c3-pagehero .c3-hero__card { max-width: 560px; }
.c3-pagehero h1 { font-size: clamp(1.85rem, 3.4vw, 2.9rem); margin-bottom: 0; }

/* ------------------------------- trust strip, floating over the hero edge */

.c3-trust { position: relative; z-index: 5; margin-top: clamp(-96px, -8vw, -60px); }
.c3-trust__card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: clamp(26px, 3vw, 40px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(22px, 3vw, 40px);
}
.c3-trust__item { display: flex; gap: 16px; }
.c3-trust__item h3 { margin-bottom: 6px; }
.c3-trust__item p { font-size: .92rem; margin-bottom: 0; }
.c3-trust__item:hover .icon-badge { background: var(--red); color: #fff; }

/* ----------------------------------------- categories, four-card grid ---- */

/* The home page shows a short selection; the full set lives on the Products
   page, reached by the button under the grid. */
.c3-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.c3-card {
  /* Column flex so a row of cards ends on one baseline however long the copy
     runs: the media keeps its ratio, the body grows, the link sits on the
     bottom edge. The grid stretches every card to the tallest in its row. */
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.c3-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }

/* flex-shrink off, or a tall neighbour would squeeze the 4:5 ratio */
.c3-card__media { flex: 0 0 auto; position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--tint); }
.c3-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.c3-card:hover .c3-card__media img { transform: scale(1.07); }

.c3-card__body { display: flex; flex-direction: column; flex: 1 1 auto; padding: 22px 24px 26px; }

.c3-card__tag {
  /* the body is a stretch-aligned flex column — without this the pill and the
     link below would both run the full card width */
  align-self: flex-start;
  font-family: 'Poppins', sans-serif;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--red);
  background: var(--red-soft);
  border-radius: var(--radius-pill);
  padding: 4px 12px;
  margin-bottom: 12px;
}
.c3-card__title {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1.22rem;
  color: var(--ink);
  line-height: 1.3;
  transition: color .25s var(--ease);
}
.c3-card:hover .c3-card__title { color: var(--red); }
.c3-card__desc { display: block; font-size: .92rem; color: var(--body); margin-top: 9px; }
.c3-card__link {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: .88rem;
  color: var(--navy);
  /* auto, so the link drops to the card's bottom edge whatever the copy length */
  margin-top: auto;
  padding-top: 16px;
}
.c3-card:hover .c3-card__link { color: var(--red); }
.c3-card__link i { transition: transform .3s var(--ease); }
.c3-card:hover .c3-card__link i { transform: translateX(4px); }

/* ---------------------------------------------------------------- why us - */

.c3-why {
  position: relative;
  overflow: hidden;
  background: var(--navy-900) url('../img/cta-bg.jpg') center/cover no-repeat;
  color: rgba(255, 255, 255, .75);
}
.c3-why::before { content: ''; position: absolute; inset: 0; background: rgba(8, 38, 60, .9); }
.c3-why h2, .c3-why h3 { color: #fff; }
.c3-why .eyebrow { background: rgba(225, 37, 43, .18); }
/* the check list is inked for light sections — repaint it on the dark band */
.c3-why .check-list li { color: rgba(255, 255, 255, .82); }
.c3-why .check-list li::before { background: rgba(225, 37, 43, .24); color: #fff; }

.c3-why__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: clamp(40px, 5vw, 64px);
  padding-top: clamp(32px, 4vw, 48px);
  border-top: 1px solid rgba(255, 255, 255, .16);
  text-align: center;
}

/* ------------------------------------------- gallery, edge to edge, no gap */

.c3-gallery { padding: clamp(64px, 8vw, 110px) 0; }
.c3-gal { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.c3-gal .gallery-item { border-radius: 0; aspect-ratio: 1 / 1; }

/* ---------------------------------------------- footer — dense, 5 column */

/* From concept 2 "Care Dashboard": a five-column grid, so the practical
   details — address, phone, opening hours — are all one glance away. */

/* .c2-footer__grid supplies the top edge, so the base 76px would double it up */
.c2-footer { padding-top: 0; }

.c2-footer__grid {
  display: grid;
  /* Visit holds the full street address — it needs more room than the rest */
  grid-template-columns: 1.6fr .8fr 1.5fr 1.2fr .95fr;
  gap: clamp(24px, 3vw, 44px);
  padding-top: clamp(48px, 6vw, 72px);
}
.c2-footer .footer-contact li { margin-bottom: 14px; }
.c2-footer .footer-contact span { font-size: .92rem; }

/* ------------------------------------------------------------ responsive - */

@media (max-width: 1199.98px) {
  /* five columns stop fitting before the brand blurb does — give it the
     whole first row and let the other four share three tracks */
  .c2-footer__grid { grid-template-columns: repeat(3, 1fr); }
  .c2-footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 991.98px) {
  /* the card stacks taller on a narrow screen, so below lg the hero stops
     centring and sits the card just under the header instead */
  .c3-hero .carousel-item { height: clamp(520px, 78vh, 660px); }
  .c3-hero__caption { align-items: flex-start; padding-top: 120px; padding-bottom: 48px; }
  /* no topbar below lg, so there is nothing for the header to clear */
  .c3-header { padding-top: 0; }
  .c3-pagehero { height: clamp(280px, 40vh, 400px); }
  .c3-pagehero .c3-hero__caption { padding-top: 96px; padding-bottom: 32px; }
  .c2-footer__grid { grid-template-columns: repeat(2, 1fr); }
  .c3-trust__card { grid-template-columns: 1fr; }
  .c3-grid { grid-template-columns: repeat(2, 1fr); }
  .c3-gal { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767.98px) {
  /* the rail goes horizontal and slots just under the header */
  .c3-hero__rail.carousel-indicators {
    flex-direction: row;
    top: 92px;
    bottom: auto;
    left: 0; right: 0;
    transform: none;
    justify-content: center;
    gap: 18px;
  }
  .c3-hero__cue { display: none; }
  .c3-why__stats { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 575.98px) {
  .c3-hero__card { padding: 24px 20px; }
  .c3-trust { margin-top: -48px; }
  .c3-grid { grid-template-columns: 1fr; }
  .c3-gal .gallery-item { aspect-ratio: 4 / 3; }
  .c2-footer__grid { grid-template-columns: 1fr; gap: 32px; }
}
