/* Patients First • Hero
   Complete CSS, updated
   - removed extra top margin that created the light blue strip
   - added entrance animations for text and card
   - made CTA full width on mobile
*/

.pf-hero {
  /* layout */
  --rail-max: 1160px;
  --pad: clamp(16px, 4vw, 48px);

  /* color tokens */
  --ink-900: #1f1f1f;
  --white: #ffffff;
  --off: #f9f8f6;

  /* brand blues */
  --blue-700: #b5d9ec;
  --blue-600: #ff6c63;
  --blue-500: #f9f8f6;

  /* accents */
  --accent-coral: #ff6c63;

  /* radii and shadows */
  --radius-lg: 10px;
  --radius-md: 10px;
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.28),
               0 10px 24px rgba(0, 0, 0, 0.18);
  --shadow-btn: 0 8px 18px rgba(0, 0, 0, 0.18);

  position: relative;
  color: var(--white);
  background:
    radial-gradient(1000px 600px at 15% 10%, rgba(255,255,255,.10), transparent 60%),
    radial-gradient(800px 600px at 85% 30%, rgba(57,143,186,.25), transparent 70%),
    linear-gradient(180deg, var(--blue-600) 0%, var(--blue-700) 100%);
  padding: clamp(40px, 6vw, 84px) 0;
  overflow: clip;

  /* performance hint */
  content-visibility: auto;
  contain-intrinsic-size: 720px;

  /* important: remove extra top spacing that caused the light blue band */
  margin-top: 0 !important;
}

/* hero rail */
.pf-hero__rail {
  max-width: var(--rail-max);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(20px, 4vw, 40px);
}

@media (min-width: 960px) {
  .pf-hero__rail {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: center;
  }
}

/* text column */
.pf-hero__text {
  display: grid;
  gap: clamp(16px, 2.6vw, 24px);
}

.pf-hero h1 {
  font-family: "Montserrat";
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.015em;
  font-size: clamp(34px, 5.2vw, 56px);
  margin: 0;
  color: #1f1f1f;
}

.pf-hero__lede {
  max-width: 58ch;
  font-family: "Montserrat";
  font-size: clamp(16px, 1.2vw, 18px);
  line-height: 1.6;
  opacity: 0.95;
  margin: 0;
    color: #1f1f1f;
}

/* CTA buttons */
.pf-hero__cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  --btn-h: 48px;
  --btn-pad: 18px;
  appearance: none;
  border: 0;
  border-radius: var(--radius-md);
  display: inline-grid;
  grid-auto-flow: column;
  align-items: center;
  gap: 10px;
  height: var(--btn-h);
  padding: 0 var(--btn-pad);
  font: 600 15px/1.1 "Montserrat";
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, color .18s ease;
  will-change: transform;
}

.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255,255,255,.95), 0 0 0 6px rgba(57,143,186,.85);
}

.btn--primary{
  background: #398FBA;
  color: #fff;
  border: 0;
  height: 54px;
  padding: 0 24px;
  border-radius: 10px;
  box-shadow: var(--shadow-btn, 0 8px 18px rgba(0,0,0,.18));
}

.btn--primary:hover{
  background: #2f7ea5;
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(0,0,0,.24);
}

.btn--ghost {
  color: var(--white);
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.38);
  backdrop-filter: saturate(130%) blur(2px);
}

.btn--ghost:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,.18);
}

.btn__icon {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(57,143,186,.18), rgba(22,92,125,.18));
}

/* metadata chips */
.pf-hero__meta {
  display: grid;
  gap: 10px;
  margin: 8px 0 0 0;
}

.pf-hero__meta-item {
  display: inline-grid;
  grid-auto-flow: column;
  gap: 10px;
  align-items: center;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.28);
  font: 500 13px/1.2 "Montserrat";
  letter-spacing: .01em;
  backdrop-filter: saturate(130%) blur(2px);
}

.pf-hero__meta-item dt { opacity: .88; }
.pf-hero__meta-item dd { margin: 0; font-weight: 600; }

/* illustration card */
.pf-hero__card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  isolation: isolate;
  background:
    radial-gradient(120% 90% at 20% 20%, rgba(255,255,255,.14), rgba(255,255,255,0) 45%),
    linear-gradient(160deg, var(--blue-500), var(--blue-700));
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
}

/* soft glow behind the card */
.pf-hero__card::before {
  content: "";
  position: absolute;
  inset: -12%;
  background: radial-gradient(50% 60% at 70% 30%, rgba(255,255,255,.35), transparent 60%);
  filter: blur(30px);
  z-index: 0;
}

.pf-hero__card img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* gentle float for the card */
@media (prefers-reduced-motion: no-preference) {
  .pf-hero__card {
    animation: pf-float 6s ease-in-out infinite;
  }
  @keyframes pf-float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-6px); }
  }
}

/* entrance animation for hero */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: no-preference) {
  .pf-hero__text,
  .pf-hero__card {
    opacity: 0;
    animation: fadeSlideUp 1s ease forwards;
  }
  .pf-hero__text { animation-delay: .2s; }
  .pf-hero__card { animation-delay: .5s; }
}

/* nav sizing tokens defined elsewhere, keep for reference */
:root {
  --nav-h: 72px;
  --nav-gap: 16px;
}
@media (max-width: 768px) {
  :root {
    --nav-h: 64px;
    --nav-gap: 12px;
  }
}

/* mobile enhancements: full width CTA */
@media (max-width: 600px) {
  .pf-hero__cta {
    width: 100%;
  }
  .pf-hero__cta .btn {
    width: 100%;
    justify-content: center;
    flex: 1;
  }
}


/* Added primary button active, focus, and icon rules */

.btn--primary:active{
  background: #276b8d;
  transform: translateY(0);
  box-shadow: 0 6px 14px rgba(0,0,0,.22);
}

.btn--primary:focus-visible{
  outline: none;
  box-shadow:
    0 0 0 3px rgba(255,255,255,.95),
    0 0 0 6px rgba(57,143,186,.85),
    var(--shadow-btn, 0 8px 18px rgba(0,0,0,.18));
}

.btn--primary .btn__icon{
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.16);
}

/* =====================================================
   Update: Hero primary button hover sweep, left to right
   White background via ::before, blue border and text
   Scope: only inside .pf-hero
===================================================== */
.pf-hero .btn--primary {
  position: relative;
  overflow: hidden;
  border: 2px solid transparent;
  background: #398FBA;
  color: #fff;
  transition:
    color .25s ease .05s,
    border-color .25s ease .05s,
    box-shadow .18s ease,
    transform .18s ease;
}

.pf-hero .btn--primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #fff;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s cubic-bezier(.22,.61,.36,1);
}

/* keep content above the sweep */
.pf-hero .btn--primary > * {
  position: relative;
  z-index: 1;
}

.pf-hero .btn--primary:hover {
  background: transparent;
  color: #165C7D;
  border-color: #398FBA;
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(0,0,0,.24);
}

.pf-hero .btn--primary:hover::before {
  transform: scaleX(1);
}

/* icon chip contrast on hover */
.pf-hero .btn--primary .btn__icon { background: rgba(255,255,255,.16); }
.pf-hero .btn--primary:hover .btn__icon { background: rgba(57,143,186,.12); }

/* mobile: full width and centered */
@media (max-width: 600px) {
  .pf-hero .pf-hero__cta .btn--primary {
    width: 100%;
    justify-content: center;
  }
}
