/* Index page styles
   Keep page-specific adjustments here. Global design remains in css/site.css and css/pages.css.
*/

/* Prevent important subjects from being accidentally cropped in page imagery. */
img {
  max-width: 100%;
}

/* Doctor portraits and story images: show more of the original frame. */
.story-tz img,
.split figure img,
.phero img {
  object-position: center top;
}

/* New patient education images: responsive, contained, and never clipped. */
.condition-feature-figure {
  margin: 28px 0 36px;
  width: 100%;
  max-width: 860px;
}
.condition-feature-image {
  display: block;
  width: 100%;
  height: auto;
  max-height: 560px;
  object-fit: contain;
  object-position: center;
  background: var(--ivory2, #EFE7D6);
  border-radius: 2px;
}
.condition-feature-figure figcaption {
  margin-top: 10px;
  color: var(--muted, #5A6468);
  font-size: 0.9375rem;
  line-height: 1.5;
}

@media (max-width: 640px) {
  .condition-feature-figure { margin: 20px 0 28px; }
  .condition-feature-image { max-height: 420px; }
}


/* Animated hero statistic — text only; the existing horizontal .cred strip is unchanged. */
.hero-stat-card {
  position: absolute;
  z-index: 4;
  right: clamp(18px, 8%, 130px);
  bottom: 12%;
  display: block;
  width: min(300px, 28vw);
  min-height: 0;
  padding: 0;
  color: #fff;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.hero-stat-icon { display: none !important; }
.hero-stat-copy {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  opacity: 1;
  transform: translateY(0);
  transition: opacity .45s ease, transform .45s ease;
  text-shadow: 0 2px 12px rgba(0,0,0,.72);
}
.hero-stat-copy.is-changing {
  opacity: 0;
  transform: translateY(7px);
}
.hero-stat-number {
  color: #e3bd78;
  font: 500 clamp(30px, 3vw, 43px)/1 var(--serif, Georgia, serif);
  letter-spacing: -.02em;
}
.hero-stat-label {
  color: #f5f4f0;
  font-size: clamp(14px, calc(1.05vw + 1px), 16px);
  line-height: 1.4;
}
@media (max-width: 700px) {
  /* The rotating statistic sits in normal flow below both hero buttons. */
  .hero-stat-card {
    position: relative;
    inset: auto;
    display: block;
    width: auto;
    max-width: 100%;
    min-height: 0;
    margin: 18px 0 22px;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .hero-stat-copy { gap: 4px; }
  .hero-stat-number { font-size: 29px; }
  .hero-stat-label { font-size: 14px; line-height: 1.4; max-width: 250px; }
}
@media (max-width: 380px) {
  .hero-stat-card { margin-top: 14px; margin-bottom: 18px; }
  .hero-stat-number { font-size: 27px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-stat-copy { transition: none; }
}


/* Home hero copy requested from the supplied reference image. */
body.home main#main > .hero .hero-value-rule {
  width: 58px;
  height: 3px;
  margin: 0 0 22px;
  background: var(--gold, #d6b77a);
}
body.home main#main > .hero .hero-value-heading {
  max-width: 620px;
  margin: 0 0 10px;
  color: var(--gold, #d6b77a);
  font: 600 clamp(21px, 2.15vw, 29px)/1.3 var(--sans, Arial, sans-serif);
}
body.home main#main > .hero .hero-text {
  max-width: 520px;
}
@media (max-width: 700px) {
  body.home main#main > .hero .hero-value-rule { margin-bottom: 18px; }
  body.home main#main > .hero .hero-value-heading { font-size: clamp(21px, 6vw, 27px); }
}


/* Homepage journey carousel: My Story, Expertise and Leadership. */
.home-journey { overflow: hidden; }
.home-journey-controls { display:flex; align-items:center; justify-content:space-between; gap:24px; margin-bottom:28px; }
.home-journey-controls .eyebrow { margin:0; }
.home-journey-arrows { display:flex; align-items:center; gap:12px; }
.journey-arrow { display:grid; place-items:center; width:44px; height:44px; border:1px solid var(--gold,#D9B875); border-radius:50%; background:transparent; color:var(--ink,#111719); font-size:22px; cursor:pointer; transition:background .2s ease,color .2s ease,transform .2s ease; }
.journey-arrow:hover,.journey-arrow:focus-visible { background:var(--gold,#D9B875); color:var(--ink,#111719); transform:translateY(-1px); }
.journey-count { color:var(--muted,#5A6468); font-size:14px; font-variant-numeric:tabular-nums; letter-spacing:.12em; }
.home-journey-viewport { overflow:hidden; }
.home-journey-track { display:flex; width:100%; transition:transform .65s cubic-bezier(.22,.7,.2,1); will-change:transform; }
.home-journey-slide { flex:0 0 100%; min-width:0; display:grid; grid-template-columns:minmax(260px,.82fr) minmax(0,1.18fr); align-items:center; gap:clamp(32px,6vw,88px); }
.home-journey-image { margin:0; overflow:hidden; background:var(--ivory2,#EFE7D6); aspect-ratio: 4 / 4.7; }
.home-journey-image img { display:block; width:100%; height:100%; max-height:620px; object-fit:cover; object-position:center top; }
.home-journey-copy { min-width:0; }
.home-journey-copy h2 { max-width:780px; margin:8px 0 22px; }
.home-journey-copy p:not(.eyebrow) { max-width:720px; }
.home-journey-copy .btn { margin-top:12px; }
.home-journey-progress { height:2px; background:rgba(17,26,32,.12); margin-top:34px; overflow:hidden; }
.home-journey-progress span { display:block; width:33.333%; height:100%; background:var(--gold,#D9B875); transform:translateX(0); transition:transform .45s ease; }
@media(max-width:760px) {
 .home-journey-controls { margin-bottom:20px; }
 .home-journey-slide { grid-template-columns:1fr; gap:24px; }
 .home-journey-image { aspect-ratio: 16 / 10; max-height:300px; }
 .home-journey-image img { max-height:300px; object-position:center 25%; }
 .home-journey-copy h2 { font-size:clamp(30px,8vw,44px); }
 .journey-arrow { width:40px; height:40px; }
}
@media(prefers-reduced-motion:reduce) { .home-journey-track,.home-journey-progress span { transition:none; } }

/* Hero secondary CTA: subtle dark backing keeps the label readable over the photo */
body.home main#main > .hero .actions .btn-ghost{background:rgba(10,14,16,.5);border-color:rgba(255,255,255,.85);color:#fff}
body.home main#main > .hero .actions .btn-ghost:hover,body.home main#main > .hero .actions .btn-ghost:focus-visible{background:#fff;color:var(--ink)}


/* Requested Home hero secondary CTA contrast safeguard. */
body.home main#main > .hero .actions a.btn-ghost{background:rgba(10,14,16,.62)!important;border-color:rgba(255,255,255,.92)!important;color:#fff!important;opacity:1!important}
body.home main#main > .hero .actions a.btn-ghost:hover,body.home main#main > .hero .actions a.btn-ghost:focus-visible{background:#fff!important;color:#111517!important;border-color:#fff!important}


/* Home hero intro line: sized to wrap onto three lines. */
body.home main#main > .hero .strap{max-width:900px}


/* Home hero: keep the approved respiratory-care description small and white. */
/* Homepage professional tagline: larger, bold gold text; keep the description below unchanged. */
body.home main#main > .hero .strap {
  font: italic 700 clamp(25px, 2.2vw, 32px)/1.3 var(--serif, Georgia, serif);
  color: var(--gold, #d8b878);
  background: transparent;
  max-width: 900px;
  margin: 16px 0 24px;
}


/* Homepage hero: preserve the gold professional strapline and keep the service description small and white. */
body.home main#main > .hero .hero-description {
  max-width: 520px;
  margin: 0 0 24px;
  color: #f4f1e9;
  font: 400 clamp(16px, calc(1.15vw + 1px), 19px)/1.65 var(--sans, Arial, sans-serif);
  text-shadow: 0 1px 8px rgba(0, 0, 0, .42);
}
@media (max-width: 700px) {
  body.home main#main > .hero .hero-description {
    font-size: 16px;
    line-height: 1.55;
    margin-bottom: 18px;
  }
}


/* Phones: the statistics band under the hero becomes a continuous horizontal ticker.
   Desktop and tablet keep the existing grid; the duplicate list is hidden there. */
.cred .cred-track > ul.cred-dup { display: none; }
@media (max-width: 900px) {
  .cred .wrap { display: block !important; width: 100% !important; max-width: none !important; margin: 0 !important; padding: 0 !important; overflow: hidden; --ticker-dur: 28s; }
  .cred .cred-track { display: flex !important; flex-wrap: nowrap; width: max-content; }
  .cred .cred-track > ul, .cred .cred-track > ul.cred-dup { display: flex !important; flex: 0 0 auto; width: max-content; margin: 0 !important; grid-template-columns: none; }
  .cred .cred-track > ul > li {
    flex: 0 0 220px; box-sizing: border-box; min-width: 0;
    padding: 22px 24px !important;
    border-left: 0 !important; border-top: 0 !important;
    border-right: 1px solid rgba(214,183,122,.22);
  }
  .cred .cred-track > ul > li.cred-tagline { align-self: stretch; justify-content: center; }
  /* Scroll-reveal must not hide cards that slide in from the side. */
  .cred .rv, .cred .rv:not(.rv-in) { opacity: 1 !important; transform: none !important; transition: none !important; }
}
