/* ──────────────────────────────────────────────────────────────────────────
   Avant Health Diagnostics — public website
   Colours come from the Avant logo (mirrors src/brand.ts in the dashboard).
   ────────────────────────────────────────────────────────────────────────── */
:root {
  --navy: #1c385f;
  --navy-dark: #152b4a;
  --navy-deep: #0f2038;
  --blue: #3f6797;
  --blue-dark: #33577f;
  --blue-light: #eef3f8;
  --accent: #e04123;
  --accent-dark: #c4381d;
  --coral: #ff6969;

  --heading: #1c385f;
  --body: #636b7a;
  --line: #e3e8ef;
  --gray: #f6f8fb;
  --white: #fff;

  --font-heading: "Montserrat", system-ui, sans-serif;
  --font-body: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 4px;
  --shadow: 0 20px 45px rgba(28, 56, 95, .10);
  --container: 1320px;
  --gutter: 16px;
  --header-h: 84px;
}
@media (min-width: 768px) { :root { --gutter: 24px; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.75;
  color: var(--body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent); }
p { margin: 0 0 1em; }
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--heading);
  line-height: 1.2;
  margin: 0 0 .5em;
  font-weight: 700;
  text-transform: capitalize;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.55rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.05rem; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.ico { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.2em; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--navy); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip-link:focus { left: 1rem; color: #fff; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 2px; }

/* ── Buttons (square, with arrow block) ───────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: stretch;
  gap: .55rem;
  padding: 0 1.6rem;
  min-height: 56px;
  align-items: center;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .95rem;
  text-transform: capitalize;
  cursor: pointer;
  transition: background-color .25s, color .25s, border-color .25s, box-shadow .25s;
  white-space: nowrap;
}
.btn .ico { width: 1.1em; height: 1.1em; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--navy); color: #fff; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); color: #fff; }
.btn-white { background: #fff; color: var(--navy); }
.btn-white:hover { background: var(--navy); color: #fff; }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-outline:hover { border-color: var(--navy); color: var(--navy); }
.btn-arrow { padding-right: 0; gap: 0; overflow: hidden; }
.btn-arrow span { padding-right: 1.4rem; }
.btn-arrow i {
  align-self: stretch;
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px;
  background: rgba(0, 0, 0, .14);
  font-style: normal;
}
.btn-arrow:hover i .ico { transform: translateX(3px); }
.btn-arrow i .ico { transition: transform .25s; }
.btn-sm { min-height: 46px; padding: 0 1.2rem; font-size: .9rem; }

/* ── Top bar ──────────────────────────────────────────────────────────── */
.top-bar { background: var(--navy-deep); color: rgba(255, 255, 255, .8); font-size: .82rem; }
.top-bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 46px; }
.top-bar p, .top-bar ul { margin: 0; }
.top-bar-note { display: flex; align-items: center; gap: .55rem; }
.top-bar-note .ico { color: var(--coral); }
.top-bar-contact { list-style: none; padding: 0; display: flex; gap: 1.6rem; }
.top-bar-contact li { display: flex; align-items: center; gap: .45rem; }
.top-bar-contact .ico { color: var(--coral); }
.top-bar a { color: #fff; }
.top-bar a:hover { color: var(--coral); }
@media (max-width: 991px) { .top-bar-note { display: none; } .top-bar-inner { justify-content: center; } }
@media (max-width: 600px) { .top-bar-contact li:last-child { display: none; } }

/* ── Header ───────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: #fff;
  box-shadow: 0 1px 0 var(--line);
  transition: box-shadow .25s;
}
.site-header.is-scrolled { box-shadow: 0 10px 30px rgba(28, 56, 95, .08); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 1.5rem; }
.brand img { height: 52px; width: auto; }

.site-nav { display: flex; align-items: center; gap: 2rem; }
.menu { list-style: none; display: flex; gap: 1.9rem; margin: 0; padding: 0; height: var(--header-h); }
.menu > li { position: relative; display: flex; align-items: center; }
.menu > li > a {
  display: flex; align-items: center; gap: .3rem; height: 100%;
  font-family: var(--font-body); font-weight: 500; font-size: .95rem; color: var(--navy);
  position: relative;
}
.menu > li > a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.menu > li:hover > a::after, .menu > li.is-active > a::after { transform: scaleX(1); }
.menu > li.is-active > a { color: var(--blue); }
.ico-caret { width: .85em; height: .85em; }
.sub-toggle { display: none; }
.sub-menu {
  list-style: none; margin: 0; padding: .6rem 0;
  position: absolute; top: 100%; left: -1.2rem; min-width: 230px;
  background: #fff; border-top: 3px solid var(--blue); box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .25s;
}
.has-sub:hover .sub-menu, .has-sub:focus-within .sub-menu { opacity: 1; visibility: visible; transform: none; }
.sub-menu a { display: flex; align-items: center; gap: .7rem; padding: .65rem 1.3rem; color: var(--navy); font-weight: 500; font-size: .92rem; }
.sub-menu a .ico { color: var(--blue); }
.sub-menu a:hover { background: var(--blue-light); color: var(--blue); }
.btn-login { min-height: 50px; padding: 0 1.3rem; }

.nav-toggle {
  display: none; width: 46px; height: 46px; padding: 0; cursor: pointer;
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--navy); transition: transform .25s, opacity .25s; }

@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: fixed; top: var(--nav-top, var(--header-h)); left: 0; right: 0; bottom: 0;
    flex-direction: column; align-items: stretch; gap: 1.25rem;
    padding: 1rem var(--gutter) 2rem; background: #fff; overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-10px); transition: all .25s;
  }
  .site-nav > * { flex-shrink: 0; } /* let the panel scroll instead of squashing the menu */
  .nav-open .site-nav { opacity: 1; visibility: visible; transform: none; }
  .nav-open { overflow: hidden; }
  .menu { flex-direction: column; height: auto; gap: 0; }
  .menu > li { display: grid; grid-template-columns: 1fr auto; align-items: center; border-bottom: 1px solid var(--line); }
  .menu > li > a { padding: .95rem 0; height: auto; }
  .menu > li > .sub-menu { grid-column: 1 / -1; }
  .menu > li > a::after, .ico-caret { display: none; }
  .sub-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border: 0; background: none; color: var(--navy); cursor: pointer;
  }
  .sub-toggle[aria-expanded="true"] .ico { transform: rotate(180deg); }
  .sub-menu {
    position: static; width: 100%; box-shadow: none; border: 0; padding: 0 0 .6rem;
    opacity: 1; visibility: visible; transform: none; display: none;
  }
  .sub-menu.is-open { display: block; }
  .has-sub:hover .sub-menu:not(.is-open) { display: none; }
  .btn-login { justify-content: center; min-height: 54px; }
  .nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
@media (max-width: 600px) { :root { --header-h: 72px; } .brand img { height: 44px; } }

/* ── Photo panels: real photo if provided, branded gradient otherwise ─── */
.photo {
  position: relative; overflow: hidden;
  background-color: var(--navy);
  background-image: var(--photo, linear-gradient(140deg, var(--blue) 0%, var(--navy) 55%, var(--navy-deep) 100%));
  background-size: cover; background-position: center;
}
.photo:not([style])::before {
  content: ""; position: absolute; inset: auto -12% -25% auto; width: 75%; aspect-ratio: 1;
  background: url("../img/avant-icon-512.png") center / contain no-repeat;
  opacity: .12;
}
.photo-icon {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 120px; height: 120px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .25); color: #fff;
}
.photo-icon .ico { width: 52px; height: 52px; stroke-width: 1.4; }
.photo[style] .photo-icon { display: none; }

/* ── Hero slider ──────────────────────────────────────────────────────── */
.hero { position: relative; min-height: clamp(560px, 82vh, 760px); overflow: hidden; color: #fff; background: var(--navy-deep); }
.slide {
  position: absolute; inset: 0; display: flex; align-items: center;
  opacity: 0; visibility: hidden; transition: opacity .9s, visibility .9s;
}
.slide.is-active { opacity: 1; visibility: visible; }
.slide-bg { position: absolute; inset: 0; transform: scale(1.06); transition: transform 7s ease-out; }
.slide.is-active .slide-bg { transform: scale(1); }
.slide-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15, 32, 56, .9) 0%, rgba(15, 32, 56, .5) 55%, rgba(15, 32, 56, .08) 100%); }
.slide-content { position: relative; z-index: 2; max-width: 680px; padding-bottom: 70px; }
.slide-content > * { opacity: 0; transform: translateY(24px); transition: opacity .7s, transform .7s; }
.slide.is-active .slide-content > * { opacity: 1; transform: none; }
.slide.is-active .slide-content > :nth-child(2) { transition-delay: .15s; }
.slide.is-active .slide-content > :nth-child(3) { transition-delay: .3s; }
.slide.is-active .slide-content > :nth-child(4) { transition-delay: .45s; }
.slide-kicker { display: inline-flex; align-items: center; gap: .5rem; font-weight: 500; color: var(--coral); margin-bottom: 1rem; }
.slide h1 { color: #fff; }
.slide p { font-size: 1.08rem; color: rgba(255, 255, 255, .82); max-width: 560px; margin-bottom: 2rem; }
.slide-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero-arrows { position: absolute; z-index: 3; right: var(--gutter); bottom: 120px; display: flex; gap: .6rem; }
.hero-arrow {
  width: 52px; height: 52px; border-radius: var(--radius); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .3); color: #fff; transition: background .25s;
}
.hero-arrow:hover { background: var(--accent); border-color: var(--accent); }
.hero-dots { position: absolute; z-index: 3; left: 50%; transform: translateX(-50%); bottom: 120px; display: flex; gap: .5rem; }
.hero-dots button { width: 12px; height: 12px; border-radius: 50%; border: 2px solid #fff; background: transparent; cursor: pointer; padding: 0; }
.hero-dots button[aria-current="true"] { background: #fff; }
.hero-mark { position: absolute; right: 4%; top: 50%; transform: translateY(-50%); width: min(420px, 34vw); opacity: .9; z-index: 1; }
@media (max-width: 991px) { .hero-mark { display: none; } .hero-arrows { display: none; } }
@media (min-width: 992px) { .hero-dots { left: auto; right: calc(var(--gutter) + 130px); transform: none; bottom: 138px; } }

/* ── Feature boxes overlapping the hero ───────────────────────────────── */
.features { position: relative; z-index: 5; margin-top: -90px; }
.features-row { display: grid; gap: 0; box-shadow: var(--shadow); }
@media (min-width: 900px) { .features-row { grid-template-columns: repeat(3, 1fr); } }
.feature {
  position: relative; overflow: hidden; padding: 2.2rem 2rem 2.1rem; color: rgba(255, 255, 255, .82);
  background: var(--blue);
}
.feature:nth-child(2) { background: var(--navy); }
.feature:nth-child(3) { background: var(--navy-deep); }
.feature-head { display: flex; align-items: center; gap: 1rem; margin-bottom: .9rem; }
.feature-head .ico { width: 46px; height: 46px; stroke-width: 1.4; color: #fff; }
.feature h3 { color: #fff; margin: 0; font-size: 1.2rem; }
.feature p { font-size: .93rem; margin-bottom: 1rem; }
.feature-link { display: inline-flex; align-items: center; gap: .45rem; color: #fff; font-weight: 700; font-size: .93rem; }
.feature-link:hover { color: var(--coral); }
.feature-watermark { position: absolute; right: -18px; bottom: -22px; width: 130px; height: 130px; opacity: .08; color: #fff; stroke-width: 1; }

/* ── Sections ─────────────────────────────────────────────────────────── */
.section { padding: clamp(4rem, 9vw, 7rem) 0; }
.section-gray { background: var(--gray); }
.section-pattern {
  background-color: var(--gray);
  background-image: radial-gradient(rgba(63, 103, 151, .12) 1px, transparent 1px);
  background-size: 22px 22px;
}
.heading { margin-bottom: 3rem; }
.heading-center { text-align: center; max-width: 720px; margin-left: auto; margin-right: auto; }
.subtitle { display: inline-block; color: var(--blue); font-weight: 700; font-size: .95rem; margin-bottom: .7rem; font-family: var(--font-body); }
.subtitle-light { color: var(--coral); }
.heading-desc { font-size: 1.02rem; }
.lead-strong { color: var(--navy); font-weight: 700; font-size: 1.02rem; }

/* ── About split ──────────────────────────────────────────────────────── */
.split { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 992px) { .split { grid-template-columns: 1fr 1fr; gap: 4.5rem; } .split-reverse > :first-child { order: 2; } }
.about-media { position: relative; }
.about-media .photo { aspect-ratio: 5 / 4; border-radius: var(--radius); }
.about-badge {
  position: absolute; right: -1rem; bottom: -1.6rem; max-width: 250px;
  background: #fff; padding: 1.4rem 1.5rem; box-shadow: var(--shadow); border-left: 4px solid var(--accent);
}
.about-badge .ico { width: 34px; height: 34px; color: var(--blue); margin-bottom: .6rem; }
.about-badge strong { display: block; font-family: var(--font-heading); color: var(--navy); line-height: 1.35; }
@media (max-width: 600px) { .about-badge { position: static; max-width: none; margin-top: 1rem; } }

.checklist { list-style: none; padding: 0; margin: 1.5rem 0 2rem; display: grid; gap: .75rem; }
.checklist li { display: flex; gap: .75rem; align-items: flex-start; color: var(--navy); font-weight: 500; }
.checklist .ico { color: #fff; background: var(--blue); border-radius: 50%; padding: 3px; width: 22px; height: 22px; margin-top: .15rem; stroke-width: 2.4; }
.checklist .ico circle { display: none; }
.checklist-2 { grid-template-columns: 1fr; }
@media (min-width: 600px) { .checklist-2 { grid-template-columns: 1fr 1fr; } }

/* ── Service cards ────────────────────────────────────────────────────── */
.cards { display: grid; gap: 1.6rem; }
@media (min-width: 768px) { .cards-3 { grid-template-columns: repeat(3, 1fr); } }
.service-card {
  position: relative; background: #fff; padding: 2.4rem 2.1rem 2.2rem;
  box-shadow: 0 6px 25px rgba(28, 56, 95, .06);
  transition: transform .3s, box-shadow .3s; overflow: hidden;
}
.service-card::before { content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 0; background: var(--accent); transition: width .35s; }
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.service-card:hover::before { width: 100%; }
.service-icon { color: var(--blue); margin-bottom: 1.4rem; display: inline-flex; }
.service-icon .ico { width: 58px; height: 58px; stroke-width: 1.3; }
.service-card h3 a { color: var(--navy); }
.service-card h3 a:hover { color: var(--blue); }
.service-card ul { list-style: none; padding: 0; margin: 0 0 1.4rem; font-size: .92rem; }
.service-card li { padding: .35rem 0; border-bottom: 1px dashed var(--line); }
.more-link { display: inline-flex; align-items: center; gap: .45rem; font-weight: 700; color: var(--navy); }
.more-link:hover { color: var(--accent); }
.more-link .ico { transition: transform .25s; }
.more-link:hover .ico { transform: translateX(4px); }

/* ── Process steps ────────────────────────────────────────────────────── */
.process { display: grid; gap: 1.6rem; counter-reset: step; }
@media (min-width: 640px) { .process { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .process { grid-template-columns: repeat(4, 1fr); } }
.process-step { position: relative; text-align: center; padding: 0 .5rem; }
.process-icon {
  position: relative; width: 110px; height: 110px; margin: 0 auto 1.4rem; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; background: #fff; color: var(--blue);
  box-shadow: 0 10px 30px rgba(28, 56, 95, .1);
}
.process-icon .ico { width: 44px; height: 44px; stroke-width: 1.4; }
.process-icon::after {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: absolute; top: 0; right: -4px; width: 36px; height: 36px; border-radius: 50%;
  background: var(--accent); color: #fff; font: 700 .8rem/36px var(--font-heading);
}
.process-step p { font-size: .93rem; }
@media (min-width: 1000px) {
  .process-step:not(:last-child)::before {
    content: ""; position: absolute; top: 55px; left: calc(50% + 70px); right: calc(-50% + 70px);
    border-top: 2px dashed rgba(63, 103, 151, .35);
  }
}

/* ── Call-to-action band ──────────────────────────────────────────────── */
.cta-band { position: relative; overflow: hidden; background: var(--navy); color: rgba(255, 255, 255, .8); padding: clamp(3.5rem, 7vw, 5rem) 0; }
.cta-band::before {
  content: ""; position: absolute; right: -80px; top: -120px; width: 480px; height: 480px;
  background: url("../img/avant-icon-512.png") center / contain no-repeat; opacity: .08;
}
.cta-inner { position: relative; display: grid; gap: 2rem; align-items: center; }
@media (min-width: 900px) { .cta-inner { grid-template-columns: 1fr auto; } }
.cta-band h2 { color: #fff; margin-bottom: .4rem; }
.cta-band p { margin: 0; font-size: 1.05rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: .8rem; }

/* ── FAQ accordion ────────────────────────────────────────────────────── */
.faq { display: grid; gap: .8rem; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.15rem 1.4rem; font: 600 1rem/1.4 var(--font-heading); color: var(--navy);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ico { color: var(--blue); transition: transform .25s; }
.faq details[open] summary .ico { transform: rotate(45deg); color: var(--accent); }
.faq details[open] summary { border-bottom: 1px solid var(--line); }
.faq details > div { padding: 1rem 1.4rem 1.2rem; }
.faq details > div p:last-child { margin: 0; }

/* ── Page title banner ────────────────────────────────────────────────── */
.page-title { position: relative; color: #fff; padding: clamp(4rem, 9vw, 6.5rem) 0; }
.page-title .photo { position: absolute; inset: 0; }
.page-title .photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15, 32, 56, .9), rgba(15, 32, 56, .45)); }
.page-title .container { position: relative; z-index: 2; }
.page-title h1 { color: #fff; margin-bottom: .6rem; font-size: clamp(2rem, 4.5vw, 3rem); }
.page-title p { color: rgba(255, 255, 255, .8); max-width: 620px; margin: 0; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin: 0 0 1rem; padding: 0; font-size: .88rem; }
.breadcrumb li { display: flex; align-items: center; gap: .5rem; color: rgba(255, 255, 255, .7); }
.breadcrumb li + li::before { content: "/"; color: var(--coral); }
.breadcrumb a { color: #fff; }

/* ── Service detail layout ────────────────────────────────────────────── */
.detail { display: grid; gap: 3rem; }
@media (min-width: 992px) { .detail { grid-template-columns: 1fr 340px; } }
.detail-media { aspect-ratio: 16 / 8; border-radius: var(--radius); margin-bottom: 2.2rem; }
.test-group { margin-top: 2.2rem; }
.test-group h3 { display: flex; align-items: center; gap: .6rem; font-size: 1.15rem; padding-bottom: .8rem; border-bottom: 2px solid var(--blue-light); }
.test-group h3 .ico { color: var(--blue); }
.test-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
@media (min-width: 640px) { .test-list { grid-template-columns: 1fr 1fr; column-gap: 2rem; } }
.test-list li { padding: .85rem 0; border-bottom: 1px dashed var(--line); }
.test-list strong { display: block; color: var(--navy); font-weight: 500; }
.test-list span { font-size: .88rem; }

.sidebar { display: grid; gap: 1.6rem; align-content: start; }
@media (min-width: 992px) { .sidebar { position: sticky; top: calc(var(--header-h) + 24px); } }
.widget { background: var(--gray); padding: 1.8rem; }
.widget h4 { margin-bottom: 1rem; padding-bottom: .8rem; border-bottom: 2px solid var(--line); }
.widget-nav ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.widget-nav a {
  display: flex; align-items: center; justify-content: space-between; padding: .9rem 1.1rem;
  background: #fff; color: var(--navy); font-weight: 500;
}
.widget-nav a span { display: flex; align-items: center; gap: .6rem; }
.widget-nav a .ico { color: var(--blue); }
.widget-nav a:hover, .widget-nav a.is-current { background: var(--blue); color: #fff; }
.widget-nav a:hover .ico, .widget-nav a.is-current .ico { color: #fff; }
.widget-dark { background: var(--navy); color: rgba(255, 255, 255, .8); }
.widget-dark h4 { color: #fff; border-color: rgba(255, 255, 255, .15); }
.widget-dark .btn { width: 100%; justify-content: center; margin-top: .6rem; }

/* ── Info cards (contact / clinician) ─────────────────────────────────── */
.info-cards { display: grid; gap: 1.6rem; }
@media (min-width: 768px) { .info-cards { grid-template-columns: repeat(3, 1fr); } }
.info-card { background: #fff; padding: 2.2rem 2rem; box-shadow: 0 6px 25px rgba(28, 56, 95, .06); border-bottom: 3px solid var(--blue); }
.info-card .ico-wrap {
  width: 64px; height: 64px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: var(--blue-light); color: var(--blue); margin-bottom: 1.2rem;
}
.info-card .ico-wrap .ico { width: 28px; height: 28px; }
.info-card h3 { font-size: 1.15rem; }
.info-card p { margin: 0; }
.info-card a { font-weight: 500; }

/* ── Portal mock card ─────────────────────────────────────────────────── */
.portal { background: #fff; box-shadow: var(--shadow); border-radius: var(--radius); overflow: hidden; }
.portal-top { display: flex; align-items: center; gap: .8rem; padding: 1rem 1.3rem; background: var(--navy); color: #fff; font-weight: 500; }
.portal-top img { width: 32px; height: 32px; border-radius: 6px; }
.portal-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.3rem; border-bottom: 1px solid var(--gray); color: var(--navy); }
.pill { font-size: .75rem; font-weight: 700; padding: .25rem .75rem; border-radius: 999px; white-space: nowrap; }
.pill-done { background: #dcfce7; color: #15803d; }
.pill-review { background: #fef3c7; color: #92400e; }
.pill-pending { background: var(--blue-light); color: var(--blue); }
.portal-foot { padding: .9rem 1.3rem; font-size: .85rem; background: var(--gray); }

/* ── Forms ────────────────────────────────────────────────────────────── */
.form-card { background: #fff; padding: clamp(1.6rem, 4vw, 2.8rem); box-shadow: var(--shadow); }
.form-grid { display: grid; gap: 1.1rem; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } }
.field label { display: block; font-size: .85rem; font-weight: 500; color: var(--navy); margin-bottom: .4rem; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--navy); background: var(--gray);
  border: 1px solid var(--line); border-radius: var(--radius); padding: .85rem 1rem; transition: border-color .2s, background .2s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); background: #fff; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 1rem 0 0; padding: .9rem 1.1rem; border-radius: var(--radius); font-weight: 500; display: none; }
.form-status.is-ok { display: block; background: #dcfce7; color: #166534; }
.form-status.is-error { display: block; background: #fdeee9; color: var(--accent-dark); }
.btn[disabled] { opacity: .65; cursor: wait; }

.map-frame { aspect-ratio: 16 / 7; min-height: 320px; border: 0; width: 100%; display: block; background: var(--gray); }

/* ── Footer ───────────────────────────────────────────────────────────── */
.site-footer { background: var(--navy-deep); color: rgba(255, 255, 255, .7); font-size: .93rem; }
.footer-cta {
  display: grid; gap: 1.5rem; align-items: center; padding-top: 3rem; padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
@media (min-width: 900px) { .footer-cta { grid-template-columns: 1fr auto; } }
.footer-cta h3 { color: #fff; font-size: 1.5rem; margin-bottom: .3rem; }
.footer-cta p { margin: 0; }
.footer-top { display: grid; gap: 2.5rem; padding-top: 3.5rem; padding-bottom: 3rem; }
@media (min-width: 640px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .footer-top { grid-template-columns: 1.4fr 1fr 1.1fr 1fr 1.3fr; } }
.footer-about img { border-radius: 10px; margin-bottom: 1.1rem; }
.footer-about strong { color: #fff; }
.site-footer h4 { color: #fff; font-size: 1.05rem; margin-bottom: 1.2rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.site-footer a { color: rgba(255, 255, 255, .75); }
.site-footer a:hover { color: var(--coral); }
.footer-contact p { display: flex; gap: .6rem; align-items: flex-start; }
.footer-contact .ico { color: var(--coral); margin-top: .3rem; }
.footer-link { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; color: #fff !important; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); font-size: .85rem; }
.footer-bottom-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; padding-top: 1.3rem; padding-bottom: 1.3rem; }
.footer-bottom p { margin: 0; }

.back-to-top {
  position: fixed; right: 18px; bottom: 18px; z-index: 50; width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center; border-radius: var(--radius);
  background: var(--accent); color: #fff; box-shadow: 0 10px 24px rgba(224, 65, 35, .3);
  opacity: 0; visibility: hidden; transform: translateY(12px); transition: all .3s;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { color: #fff; background: var(--accent-dark); }

/* ── Reveal on scroll ─────────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s, transform .7s; }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

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

/* ── Online booking (book.html) ───────────────────────────────────────── */
.booking-step { border: 0; margin: 0 0 2rem; padding: 0; min-width: 0; }
.booking-step legend { display: flex; align-items: center; gap: .65rem; font: 700 1.1rem/1.3 var(--font-heading); color: var(--navy); margin-bottom: 1rem; padding: 0; }
.legend-note { font: 500 .9rem var(--font-body); color: var(--blue); }
.step-badge { width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: .85rem; flex: none; }
.field small { color: #9aa3b2; font-weight: 400; }

.service-pick { display: grid; gap: .75rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .service-pick { grid-template-columns: repeat(4, 1fr); } }
.service-pick label { cursor: pointer; }
.service-pick input { position: absolute; opacity: 0; pointer-events: none; }
.service-pick span {
  display: flex; flex-direction: column; gap: .3rem; height: 100%;
  padding: 1rem; border: 2px solid var(--line); border-radius: var(--radius); background: #fff; transition: border-color .2s, background .2s;
}
.service-pick span .ico { width: 30px; height: 30px; color: var(--blue); stroke-width: 1.5; margin-bottom: .2rem; }
.service-pick b { color: var(--navy); font-size: .95rem; }
.service-pick small { font-size: .8rem; line-height: 1.4; }
.service-pick input:checked + span { border-color: var(--blue); background: var(--blue-light); }
.service-pick input:focus-visible + span { outline: 3px solid var(--coral); outline-offset: 2px; }

.calendar { border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; background: #fff; max-width: 460px; }
.calendar-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .75rem; }
.calendar-head strong { font-family: var(--font-heading); color: var(--navy); }
.cal-nav { width: 38px; height: 38px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--navy); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.cal-nav:disabled { opacity: .35; cursor: default; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.calendar-week span { text-align: center; font-size: .72rem; font-weight: 700; text-transform: uppercase; color: #9aa3b2; padding: .3rem 0; }
.cal-day {
  aspect-ratio: 1; border: 0; border-radius: var(--radius); background: var(--blue-light); color: var(--navy);
  font: 500 .92rem var(--font-body); cursor: pointer; transition: background .15s, color .15s;
}
.cal-day:hover:not(:disabled) { background: var(--blue); color: #fff; }
.cal-day:disabled { background: transparent; color: #c3c9d3; cursor: default; }
.cal-day.is-today { box-shadow: inset 0 0 0 2px var(--coral); }
.cal-day.is-selected { background: var(--navy); color: #fff; }

.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: .5rem; }
.slot {
  height: 44px; border: 2px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--navy);
  font: 600 .92rem var(--font-body); cursor: pointer; transition: border-color .15s, background .15s; position: relative;
}
.slot:hover:not(:disabled) { border-color: var(--blue); }
.slot.is-selected { background: var(--navy); border-color: var(--navy); color: #fff; }
.slot.is-last::after { content: ""; position: absolute; top: 5px; right: 5px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.slot:disabled { color: #c3c9d3; text-decoration: line-through; cursor: default; }
.slots-empty, .news-empty { grid-column: 1 / -1; margin: 0; padding: 1rem; background: var(--gray); border-radius: var(--radius); }

.booking-summary { margin: 0 0 1rem; padding: 1rem 1.2rem; background: var(--blue-light); border-left: 4px solid var(--blue); color: var(--navy); }
.booking-submit { width: 100%; justify-content: center; }
.booking-submit[disabled] { opacity: .45; cursor: not-allowed; }
.booking-small { margin: .9rem 0 0; font-size: .85rem; text-align: center; }
.booking-done { text-align: left; }
.done-icon { display: inline-flex; width: 64px; height: 64px; border-radius: 50%; align-items: center; justify-content: center; background: #dcfce7; color: #15803d; margin-bottom: 1rem; }
.done-icon .ico { width: 34px; height: 34px; }
.done-icon .ico circle { display: none; }
.ref { font-family: ui-monospace, monospace; color: var(--accent); font-size: 1.1rem; }
.mini-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: .8rem; }
.mini-steps li { display: flex; gap: .7rem; align-items: center; color: rgba(255,255,255,.85); }
.mini-steps b { width: 26px; height: 26px; flex: none; border-radius: 50%; background: var(--accent); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: .8rem; }

/* ── News & blog ──────────────────────────────────────────────────────── */
.news-filter { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-bottom: 2rem; }
.news-filter button { border: 1px solid var(--line); background: #fff; color: var(--navy); padding: .55rem 1.1rem; border-radius: 999px; font: 500 .9rem var(--font-body); cursor: pointer; }
.news-filter button.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.news-grid { display: grid; gap: 1.6rem; }
@media (min-width: 700px) { .news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .news-grid { grid-template-columns: repeat(3, 1fr); } }
.news-card { background: #fff; box-shadow: 0 6px 25px rgba(28, 56, 95, .06); display: flex; flex-direction: column; transition: transform .3s, box-shadow .3s; }
.news-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.news-thumb { display: block; aspect-ratio: 16 / 10; position: relative; }
.news-tag { position: absolute; left: 1rem; bottom: 1rem; z-index: 2; background: var(--blue); color: #fff; font-size: .75rem; font-weight: 700; padding: .3rem .8rem; }
.news-content { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.news-date { font-size: .82rem; color: var(--blue); font-weight: 500; margin-bottom: .4rem; }
.news-content h3 { font-size: 1.12rem; line-height: 1.35; }
.news-content h3 a { color: var(--navy); }
.news-content h3 a:hover { color: var(--blue); }
.news-content p:not(.news-date) { font-size: .93rem; }
.news-content .more-link { margin-top: auto; }
.post-body { font-size: 1.04rem; }
.post-body p { margin-bottom: 1.2em; }
.post-cover { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; border-radius: var(--radius); margin-bottom: 2rem; }
.post-back { margin-top: 2.5rem; }
.post-side-list { display: grid; gap: .2rem; margin-bottom: 1rem; }
.post-side-item { display: block; padding: .7rem 0; border-bottom: 1px dashed var(--line); }
.post-side-item b { display: block; color: var(--navy); font-weight: 500; line-height: 1.4; }
.post-side-item span { font-size: .8rem; }

/* ══════════════════════════════════════════════════════════════════════════
   Large-screen scale (proportions of the Medsky layout):
   full-width top bar & header, 1320px content, 110px header,
   near full-screen hero with 75px headline, bigger nav & buttons.
   ══════════════════════════════════════════════════════════════════════════ */
body { font-size: 15.5px; }
.subtitle { font-size: 1rem; }
h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); line-height: 1.35; }
h3 { font-size: 1.35rem; }
.heading-desc, .lead-strong { font-size: 1.05rem; }

@media (min-width: 1200px) {
  :root { --header-h: 110px; }
  .container-wide { max-width: none; padding-left: 40px; padding-right: 40px; }
  .top-bar-inner { min-height: 50px; font-size: .9rem; }
  .brand img { height: 62px; }
  .menu { gap: 2.3rem; }
  .menu > li > a { font-size: 15px; font-weight: 700; text-transform: capitalize; }
  .btn-login { min-height: 54px; padding: 0 1.6rem; }
}

.btn { min-height: 60px; font-size: 15px; }
.btn-arrow i { width: 60px; }
.btn-sm { min-height: 48px; }

/* Hero: fills the screen under the header, like the template */
.hero { min-height: clamp(600px, calc(100vh - 160px), 940px); }
.slide-content { max-width: 800px; padding-bottom: 120px; }
.slide h1 { font-size: clamp(2.15rem, 5.2vw, 4.7rem); font-weight: 600; line-height: 1.1; letter-spacing: -0.01em; }
.slide p { font-size: 1.05rem; font-weight: 500; max-width: 640px; line-height: 1.7; }
.slide-kicker { font-size: 1rem; font-weight: 700; }
@media (min-width: 992px) { .hero-dots { bottom: 150px; } .hero-arrows { bottom: 132px; } }

/* Feature boxes overlapping the hero — taller, bigger icons */
.features { margin-top: -110px; }
.feature { padding: 2.6rem 2.4rem 2.5rem; }
.feature-head .ico { width: 54px; height: 54px; }
.feature h3 { font-size: 1.3rem; }
.feature p { font-size: .97rem; }

/* Page title banners a little taller on desktop */
@media (min-width: 992px) { .page-title { padding: 7.5rem 0 7rem; } .page-title h1 { font-size: 3.4rem; } }

/* Service cards: larger icon, more presence */
.service-card { padding: 2.8rem 2.4rem 2.5rem; }
.service-icon .ico { width: 64px; height: 64px; }

/* ── Blue icon band (home "Why Avant") ─────────────────────────────────── */
.band { position: relative; z-index: 2; background: var(--navy); color: rgba(255,255,255,.8); padding: clamp(4.5rem, 9vw, 7rem) 0 0; }
.band::before {
  content: ""; position: absolute; inset: 0;
  background: url("../img/avant-icon-512.png") right -120px top -80px / 520px no-repeat; opacity: .05; pointer-events: none;
}
.band-head { position: relative; display: grid; gap: 2rem; align-items: end; margin-bottom: 3.5rem; }
@media (min-width: 992px) { .band-head { grid-template-columns: 1.1fr 1fr; gap: 4rem; } }
.band h2 { color: #fff; margin: 0; font-size: clamp(2rem, 3.4vw, 2.75rem); }
.band-head p { margin-bottom: 1.6rem; }
.band-head .note { color: #9fc3f2; }
.band .btn-ghost-light { background: transparent; border-color: rgba(255,255,255,.55); color: #fff; }
.band .btn-ghost-light:hover { background: #fff; color: var(--navy); }

.icon-cards { position: relative; display: grid; gap: 1.2rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 768px) { .icon-cards { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .icon-cards { grid-template-columns: repeat(5, 1fr); } }
.icon-card {
  position: relative; background: #fff; padding: 2.2rem 1.2rem 2.6rem; text-align: center; color: var(--navy);
  transition: transform .3s, box-shadow .3s;
}
.icon-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(15,32,56,.35); }
.icon-card .ico { width: 54px; height: 54px; color: var(--blue); stroke-width: 1.3; margin-bottom: 1rem; }
.icon-card h3 { font-size: 1.05rem; font-family: var(--font-body); font-weight: 500; margin: 0; line-height: 1.4; }
.icon-card .tick {
  position: absolute; left: 50%; bottom: -16px; transform: translateX(-50%); width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center; background: var(--blue); color: #fff;
}
.icon-card .tick .ico { width: 16px; height: 16px; margin: 0; color: #fff; stroke-width: 2.5; }
.band-note { position: relative; text-align: center; margin: 3.5rem 0 0; font-size: .95rem; color: #fff; font-weight: 500; }
.band-note a { color: #9fc3f2; border-bottom: 1px solid currentColor; }

.cta-cards { position: relative; display: grid; gap: 1.6rem; margin-top: 3.5rem; transform: translateY(70px); }
@media (min-width: 900px) { .cta-cards { grid-template-columns: 1fr 1fr; } }
.cta-card {
  position: relative; overflow: hidden; display: flex; gap: 1.6rem; align-items: flex-start;
  padding: 2.6rem 2.4rem; color: rgba(255,255,255,.85); box-shadow: 0 25px 50px rgba(15,32,56,.25);
  background-color: var(--blue); background-image: var(--photo, none); background-size: cover; background-position: center;
}
.cta-card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(63,103,151,.96), rgba(63,103,151,.82)); }
.cta-card.cta-dark { background-color: var(--accent); }
.cta-card.cta-dark::before { background: linear-gradient(90deg, rgba(224,65,35,.96), rgba(196,56,29,.85)); }
.cta-card > * { position: relative; }
.cta-card > .ico { width: 64px; height: 64px; flex: none; color: #fff; stroke-width: 1.3; }
.cta-card h3 { color: #fff; font-size: 1.4rem; margin-bottom: .5rem; }
.cta-card p { margin-bottom: 1.4rem; }
.cta-card .btn { min-height: 52px; }
.band-spacer { height: 70px; background: #fff; }
@media (max-width: 899px) { .cta-cards { transform: none; padding-bottom: 4rem; } .band-spacer { display: none; } }

/* ── Service cards with page-curl photo (home + services) ─────────────── */
.svc-grid { display: grid; gap: 1.9rem; }
@media (min-width: 768px) { .svc-grid { grid-template-columns: repeat(3, 1fr); } }
.svc-card {
  position: relative; overflow: hidden; display: flex; flex-direction: column;
  background: #fff; padding: 2.6rem 2.4rem 2.6rem; box-shadow: 0 10px 40px rgba(28, 56, 95, .07);
  isolation: isolate; transition: box-shadow .4s, transform .4s;
}
/* full photo + blue wash, revealed on hover */
.svc-card::before, .svc-card::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .45s; }
.svc-card::before { background: var(--photo, var(--navy)) center / cover no-repeat; }
.svc-card::after { background: linear-gradient(160deg, rgba(63, 103, 151, .93), rgba(28, 56, 95, .95)); }
.svc-card:hover { transform: translateY(-6px); box-shadow: 0 25px 50px rgba(28, 56, 95, .22); }
.svc-card:hover::before, .svc-card:hover::after { opacity: 1; }

/* page-curl corner showing the photo */
.svc-curl { position: absolute; top: 0; right: 0; width: 120px; height: 120px; pointer-events: none; transition: opacity .35s; filter: drop-shadow(-5px 6px 6px rgba(15, 32, 56, .18)); }
.svc-curl::before { content: ""; position: absolute; inset: 0; background: var(--photo, var(--blue)) center / cover no-repeat; clip-path: polygon(0 0, 100% 0, 100% 100%); }
.svc-curl::after {
  content: ""; position: absolute; inset: 0;
  clip-path: polygon(0 0, 100% 100%, 22% 78%);
  background: linear-gradient(225deg, #ffffff 0%, #f3f4f7 45%, #d9dde5 62%, #ffffff 100%);
}
.svc-card:hover .svc-curl { opacity: 0; }

.svc-icon { display: inline-flex; color: var(--navy); margin-bottom: 1.6rem; transition: color .35s; }
.svc-icon .ico { width: 70px; height: 70px; stroke-width: 1.15; }
.svc-card h3 { font-size: 1.45rem; margin-bottom: .9rem; }
.svc-card h3 a { color: var(--navy); transition: color .35s; }
.svc-card > p { color: var(--body); font-size: .97rem; line-height: 1.75; transition: color .35s; }
.svc-list { list-style: none; padding: 0; margin: .4rem 0 2.2rem; }
.svc-list li { display: flex; gap: .85rem; align-items: center; padding: .7rem 0; color: var(--navy); font-weight: 500; font-size: .96rem; transition: color .35s; }
.svc-list li + li { border-top: 1px solid var(--line); }
.svc-list .ico { width: 15px; height: 15px; color: var(--blue); stroke-width: 3; flex: none; transition: color .35s; }
.btn-read {
  margin-top: auto; align-self: flex-start; display: inline-flex; align-items: stretch; height: 54px; overflow: hidden;
  background: var(--navy); color: #fff; font-weight: 700; font-size: .95rem; box-shadow: 0 12px 24px rgba(28, 56, 95, .2); transition: background .3s, color .3s;
}
.btn-read i { display: inline-flex; align-items: center; justify-content: center; width: 52px; background: var(--navy-deep); font-style: normal; }
.btn-read span { display: inline-flex; align-items: center; padding: 0 1.4rem; }
.btn-read:hover { color: #fff; background: var(--blue); }

/* hover: everything turns white over the blue photo */
.svc-card:hover .svc-icon, .svc-card:hover h3 a, .svc-card:hover .svc-list li, .svc-card:hover .svc-list .ico { color: #fff; }
.svc-card:hover > p { color: rgba(255, 255, 255, .85); }
.svc-card:hover .svc-list li + li { border-top-color: rgba(255, 255, 255, .3); }
.svc-card:hover .btn-read { background: #fff; color: var(--navy); }
.svc-card:hover .btn-read i { background: var(--accent); color: #fff; }

/* ── Quick booking band (home) ────────────────────────────────────────── */
.quickbook {
  position: relative; padding: clamp(4.5rem, 9vw, 7rem) 0; color: rgba(255,255,255,.85);
  background-color: var(--blue); background-image: var(--photo, none); background-size: cover; background-position: center;
}
.quickbook::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(28,56,95,.96) 0%, rgba(63,103,151,.9) 55%, rgba(63,103,151,.82) 100%); }
.quickbook-inner { position: relative; display: grid; gap: 3rem; align-items: center; }
@media (min-width: 992px) { .quickbook-inner { grid-template-columns: 1fr 1.05fr; gap: 4.5rem; } }
.quickbook h2 { color: #fff; font-size: clamp(2rem, 3.6vw, 2.9rem); }
.quickbook-copy > p { font-size: 1.05rem; max-width: 520px; }
.quickbook .btn-ghost-light { background: transparent; border-color: rgba(255,255,255,.6); color: #fff; }
.quickbook .btn-ghost-light:hover { background: #fff; color: var(--navy); }
.quickbook-note { display: flex; gap: 1.1rem; align-items: flex-start; margin-top: 2.5rem; max-width: 460px; }
.quickbook-note .ico { width: 48px; height: 48px; flex: none; color: #fff; stroke-width: 1.3; }
.quickbook-note p { margin: 0; color: #fff; font-weight: 500; }
.quickbook-card { background: #fff; padding: clamp(1.6rem, 3.5vw, 2.6rem); box-shadow: 0 30px 60px rgba(15,32,56,.35); color: var(--body); }
.quickbook-card h3 { font-size: 1.45rem; margin-bottom: .3rem; }
.quickbook-sub { font-size: .93rem; margin-bottom: 1.4rem; }
.quickbook-card .form-grid { grid-template-columns: 1fr; }
@media (min-width: 560px) { .quickbook-card .form-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1200px) { .quickbook-card .form-grid { grid-template-columns: 1fr 1fr 1fr; } }
.quickbook-card select:disabled { opacity: .7; }
.quickbook-submit { width: 100%; justify-content: center; margin-top: 1.2rem; }
.quickbook-submit[disabled] { opacity: .6; }

/* ── Testimonials (home) ──────────────────────────────────────────────── */
.testimonials { position: relative; overflow: hidden; background: var(--navy); color: #fff; padding: clamp(4.5rem, 9vw, 7rem) 0; }
.testimonials-mark { position: absolute; right: 6%; top: -40px; font: 700 26rem/1 var(--font-heading); color: rgba(255,255,255,.06); pointer-events: none; }
.testimonial-slider { position: relative; max-width: 900px; min-height: 230px; }
.t-slide { margin: 0; display: none; }
.t-slide.is-active { display: block; animation: tfade .6s ease; }
@keyframes tfade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.t-slide blockquote { margin: 0 0 2rem; font: 500 clamp(1.25rem, 2.2vw, 1.75rem)/1.55 var(--font-heading); color: #fff; }
.t-slide figcaption { display: flex; align-items: center; gap: .9rem; }
.t-slide figcaption img, .t-initials { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; flex: none; }
.t-initials { display: inline-flex; align-items: center; justify-content: center; background: var(--accent); font-weight: 700; }
.t-slide figcaption b { display: block; color: #fff; }
.t-slide figcaption small { color: rgba(255,255,255,.7); font-size: .88rem; }
.t-nav { display: flex; gap: .5rem; margin-top: 2rem; }
.t-nav button { width: 46px; height: 46px; border: 1px solid rgba(255,255,255,.35); background: transparent; color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; transition: background .25s; }
.t-nav button:hover { background: var(--accent); border-color: var(--accent); }

/* ── Partner logos (home) ─────────────────────────────────────────────── */
.partners { padding: 3rem 0; border-bottom: 1px solid var(--line); background: #fff; }
.partners-title { text-align: center; font-size: .8rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #9aa3b2; margin-bottom: 1.6rem; }
.partners-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 2rem 3.5rem; }
.partners-row img { max-height: 54px; max-width: 160px; width: auto; filter: grayscale(1); opacity: .7; transition: filter .3s, opacity .3s; }
.partners-row a:hover img, .partners-row span:hover img { filter: none; opacity: 1; }

/* ── Team page ────────────────────────────────────────────────────────── */
.team-grid { display: grid; gap: 1.8rem; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.team-card { background: #fff; box-shadow: 0 10px 35px rgba(28,56,95,.07); overflow: hidden; transition: transform .3s, box-shadow .3s; }
.team-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.team-photo { aspect-ratio: 4 / 4.4; background: linear-gradient(140deg, var(--blue), var(--navy)); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.team-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.team-card:hover .team-photo img { transform: scale(1.05); }
.team-initials { font: 700 3rem var(--font-heading); color: rgba(255,255,255,.9); }
.team-body { padding: 1.4rem 1.5rem 1.6rem; border-bottom: 3px solid var(--blue); }
.team-body h3 { font-size: 1.15rem; margin-bottom: .25rem; }
.team-role { color: var(--blue); font-weight: 500; margin: 0 0 .5rem; font-size: .93rem; }
.team-bio { font-size: .9rem; margin: 0; }

/* ── Gallery page + lightbox ──────────────────────────────────────────── */
.gallery-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.gallery-item { position: relative; display: block; aspect-ratio: 4 / 3; padding: 0; border: 0; cursor: zoom-in; overflow: hidden; background: var(--gray); }
.gallery-item[hidden] { display: none; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gallery-item span {
  position: absolute; inset: auto 0 0 0; padding: 2rem 1rem .9rem; text-align: left; color: #fff; font-weight: 500; font-size: .92rem;
  background: linear-gradient(transparent, rgba(15,32,56,.85)); opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .3s;
}
.gallery-item:hover img, .gallery-item:focus-visible img { transform: scale(1.06); }
.gallery-item:hover span, .gallery-item:focus-visible span { opacity: 1; transform: none; }
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(10,20,36,.92); display: flex; align-items: center; justify-content: center; padding: 3rem 4rem; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: min(1100px, 100%); text-align: center; }
.lightbox img { max-height: 78vh; max-width: 100%; margin: 0 auto; }
.lightbox figcaption { color: #fff; margin-top: .9rem; }
.lightbox button { position: absolute; border: 0; background: rgba(255,255,255,.1); color: #fff; width: 52px; height: 52px; font-size: 2rem; line-height: 1; cursor: pointer; }
.lightbox button:hover { background: var(--accent); }
.lb-close { top: 1rem; right: 1rem; }
.lb-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1rem; top: 50%; transform: translateY(-50%); }

/* ── FAQ page ─────────────────────────────────────────────────────────── */
.faq-groups { display: grid; gap: 2.8rem; }
.faq-group h2 { display: flex; align-items: center; gap: .7rem; font-size: 1.5rem; margin-bottom: 1.1rem; }
.faq-group h2 .ico { width: 30px; height: 30px; color: var(--blue); stroke-width: 1.6; }
.faq-group { scroll-margin-top: calc(var(--header-h) + 24px); }

.svc-list .ico circle { display: none; }   /* plain tick, as in the reference design */

/* ══════════════════════════════════════════════════════════════════════════
   Medsky-style patterns (sidebar boxes, page title extras, team, news)
   ══════════════════════════════════════════════════════════════════════════ */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Buttons: navy, and an arrow block on the left (Read More) */
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--blue); color: #fff; }
.btn-arrow-left { padding-left: 0; gap: 0; overflow: hidden; }
.btn-arrow-left span { padding-left: 1.3rem; }
.btn-arrow-left i { align-self: stretch; display: inline-flex; align-items: center; justify-content: center; width: 46px; background: rgba(0, 0, 0, .2); font-style: normal; }

/* Page title: action buttons + scroll-down corner block */
.page-title-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.page-title-down {
  position: absolute; right: 0; bottom: -45px; z-index: 3;
  width: 90px; height: 90px; display: flex; align-items: center; justify-content: center;
  background: var(--blue); color: #fff;
}
.page-title-down:hover { background: var(--accent); color: #fff; }
.page-title-down .ico { width: 26px; height: 26px; animation: nudge 1.8s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateY(5px); } }
@media (max-width: 767px) { .page-title-down { width: 60px; height: 60px; bottom: -30px; } }
@media (prefers-reduced-motion: reduce) { .page-title-down .ico { animation: none; } }

/* Sidebar boxes: tinted panel with a coloured bar along the bottom */
.widget { position: relative; background: var(--blue-light); padding: 2rem 1.8rem 2.4rem; }
.widget::after { content: ""; position: absolute; left: 1.8rem; right: 1.8rem; bottom: 0; height: 4px; background: var(--blue); }
.widget h4 { font-size: 1.22rem; font-weight: 600; text-transform: none; border-bottom: 0; padding-bottom: 0; margin-bottom: 1.2rem; }
.widget-dark { background: var(--navy); }
.widget-dark::after { background: var(--accent); }
/* Sidebars now hold several boxes, so they scroll with the page instead of sticking */
@media (min-width: 992px) { .sidebar { position: static; } }
.widget-icon { display: inline-flex; color: var(--blue); margin-bottom: .9rem; }
.widget-icon .ico { width: 48px; height: 48px; stroke-width: 1.3; }

.widget-nav ul { gap: .55rem; }
.widget-nav a { background: var(--navy); color: #fff; font-weight: 700; padding: 0 0 0 1.1rem; min-height: 52px; }
.widget-nav a .ico, .widget-nav a span .ico { color: rgba(255, 255, 255, .75); }
.widget-nav a i { align-self: stretch; width: 52px; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, .2); font-style: normal; }
.widget-nav a i .ico { color: #fff; transition: transform .25s; }
.widget-nav a:hover, .widget-nav a.is-current { background: var(--blue); color: #fff; }
.widget-nav a:hover i .ico { transform: translateX(3px); }
.widget-nav a.is-current { box-shadow: inset 4px 0 0 var(--accent); }

.widget-hours { background: #f2f4f7; }
.widget-hours::after { background: var(--navy); }
.hours-list { list-style: none; padding: 0; margin: 0 0 1.2rem; }
.hours-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid #dfe4ea; font-size: .9rem; }
.hours-list li span:last-child { color: var(--navy); font-weight: 500; text-align: right; }

.widget-help { color: rgba(255, 255, 255, .9); background-color: var(--blue); }
.widget-help::before { content: ""; position: absolute; inset: 0; width: auto; aspect-ratio: auto; background: rgba(63, 103, 151, .9); opacity: 1; }
.widget-help::after { display: none; }
.widget-help > * { position: relative; z-index: 1; }
.widget-help .widget-icon, .widget-help h4 { color: #fff; }
.widget-help p { font-size: .93rem; }
.widget-help-link { display: flex; align-items: center; gap: .6rem; color: #fff; font-weight: 700; margin-top: .6rem; word-break: break-word; }
.widget-help-link:hover { color: #fff; text-decoration: underline; }

/* Search, categories and recent posts */
.search-form { display: flex; background: #fff; }
.search-form input { flex: 1; min-width: 0; border: 0; padding: 0 1rem; height: 52px; font: inherit; color: var(--navy); background: transparent; }
.search-form input:focus { outline: 2px solid var(--blue); outline-offset: -2px; }
.search-form button { width: 52px; border: 0; background: var(--navy); color: #fff; cursor: pointer; }
.search-form button:hover { background: var(--blue); }
.cat-list { list-style: none; padding: 0; margin: 0; }
.cat-list a { display: flex; justify-content: space-between; align-items: center; padding: .55rem 0; color: var(--navy); font-weight: 700; }
.cat-list a:hover { color: var(--accent); }
.cat-list b { min-width: 28px; height: 26px; display: inline-flex; align-items: center; justify-content: center; background: #fff; border: 1px solid var(--line); color: var(--blue); font-size: .8rem; font-weight: 500; }
.side-posts { display: grid; gap: 1.1rem; }
.side-post { display: grid; grid-template-columns: 64px 1fr; gap: .9rem; align-items: center; }
.side-post-thumb { width: 64px; height: 64px; }
.side-post-thumb::before { display: none; }
.side-post small { display: block; font-size: .78rem; color: var(--body); }
.side-post b { display: block; color: var(--navy); font: 600 .95rem/1.35 var(--font-heading); }
.side-post:hover b { color: var(--accent); }

/* News cards: image, tag strip overlapping it, title, excerpt, Read More */
.news-grid-2 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .news-grid-2 { grid-template-columns: 1fr 1fr; } }
.news-card { box-shadow: 0 5px 40px rgba(28, 56, 95, .08); }
.news-meta { position: relative; z-index: 2; display: flex; align-items: center; gap: 1rem; margin: -36px 1.2rem 0 0; background: #fff; }
.news-meta .news-tag { position: relative; left: auto; bottom: auto; padding: .55rem 1rem; background: var(--blue); font-size: .78rem; }
.news-meta .news-tag::after { content: ""; position: absolute; left: 10px; bottom: -8px; border: 4px solid transparent; border-top-color: var(--blue); border-left-color: var(--blue); }
.news-meta .news-date { margin: 0; color: var(--navy); font-size: .82rem; font-weight: 500; }
.news-content { padding: 1.5rem 1.6rem 1.8rem; }
.news-content h3 { font-size: 1.15rem; margin-bottom: .7rem; }
.news-content .btn { margin-top: auto; align-self: flex-start; }

/* Single post */
.post-media { aspect-ratio: 16 / 8; }
.post-media.is-empty { aspect-ratio: 16 / 5; }
.post-meta { margin-right: 2rem; }
.post-title { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin: 1.6rem 0 1.2rem; text-transform: none; }
.post-foot { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.4rem; padding-top: 1.8rem; border-top: 1px solid var(--line); }
.page-title-post { padding: clamp(3.5rem, 7vw, 5rem) 0; }

/* Team cards: blue overlay with the bio on hover, grey to blue bar along the bottom */
.team-card { box-shadow: 0 5px 40px rgba(28, 56, 95, .08); }
.team-card:hover { transform: none; }
.team-photo { position: relative; }
.team-overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 1rem;
  padding: 1.6rem; background: rgba(63, 103, 151, .97); color: #fff; font-size: .9rem; line-height: 1.6;
  opacity: 0; transform: translateY(12px); transition: opacity .35s, transform .35s;
}
.team-overlay b { font-weight: 700; }
.team-card:hover .team-overlay, .team-photo:focus-visible .team-overlay { opacity: 1; transform: none; }
.team-body { position: relative; border-bottom: 0; padding: 1.5rem 1.6rem 2rem; }
.team-body::after { content: ""; position: absolute; left: 1.6rem; right: 1.6rem; bottom: 0; height: 4px; background: var(--line); transition: background .3s; }
.team-card:hover .team-body::after { background: var(--blue); }
.team-body h3 a { color: var(--navy); }
.team-body h3 a:hover { color: var(--blue); }
.team-role { margin: 0; }
.team-grid-sm { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }

/* Team member profile */
.detail-left { align-items: start; }
@media (min-width: 992px) { .detail-left { grid-template-columns: 340px 1fr; } }
.profile-card { background: #fff; box-shadow: 0 5px 40px rgba(28, 56, 95, .1); }
.profile-card .team-photo { aspect-ratio: 4 / 4.2; }
.profile-body { position: relative; padding: 1.6rem 1.8rem 2.2rem; }
.profile-body::after { content: ""; position: absolute; left: 1.8rem; right: 1.8rem; bottom: 0; height: 4px; background: var(--blue); }
.profile-body h3 { margin-bottom: .2rem; }
.profile-contact { list-style: none; padding: 1rem 0 0; margin: 1rem 0 1.4rem; border-top: 1px solid var(--line); display: grid; gap: .5rem; font-size: .9rem; }
.profile-contact li { display: flex; align-items: center; gap: .6rem; word-break: break-word; }
.profile-contact .ico { color: var(--blue); }
.detail-heading { font-size: clamp(1.5rem, 2.6vw, 1.9rem); font-weight: 600; margin: 0 0 1.2rem; }
.member-bio p:first-child { color: var(--navy); font-weight: 700; }
.info-table { width: 100%; border-collapse: collapse; margin: 2rem 0 3rem; font-size: .93rem; }
.info-table th, .info-table td { text-align: left; vertical-align: top; padding: 1rem 1.6rem; }
.info-table th { width: 32%; color: var(--navy); font-weight: 700; }
.info-table tr:nth-child(odd) { background: var(--blue-light); }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; }
.check-list li { display: flex; align-items: center; gap: .55rem; }
.check-list .ico { color: var(--blue); }
