/* ==========================================================================
   Florence Women's Health Services — landing page
   Implemented from "Florence Womens Health Landing.dc.html"
   ========================================================================== */

/* --------------------------------------------------------------------------
   Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand */
  --ink:            #2b3d47;  /* headings, dark surfaces */
  --body:           #41525c;  /* body copy */
  --muted:          #5f7784;
  --muted-soft:     #7d939e;

  --blue:           #3aa8d8;  /* primary */
  --blue-deep:      #2b8fbb;  /* text on pale blue */
  --blue-line:      #9ed7ef;
  --blue-100:       #d8effa;
  --blue-50:        #eaf7fd;
  --blue-25:        #f6fbfd;

  --red:            #e23a32;  /* accent */
  --red-line:       #f0a9a4;
  --red-50:         #fdeeed;

  --white:          #ffffff;
  --on-dark:        #a8bcc6;
  --on-dark-strong: #c6d3da;

  /* Type */
  --font-display: 'Poppins', 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-body:    'Source Sans 3', 'Segoe UI', Helvetica, Arial, sans-serif;

  /* Layout */
  --shell:      1180px;
  --gutter:     32px;
  --radius:     14px;
  --header-h:   93px;   /* used for scroll-margin under the sticky header */

  /* Elevation */
  --shadow-card:  0 18px 40px rgba(43, 61, 71, .10);
  --shadow-lift:  0 24px 50px rgba(43, 61, 71, .16);
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--body);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 600;
}

p { margin: 0; text-wrap: pretty; }

a {
  color: var(--blue);
  text-decoration: none;
  transition: color .18s ease;
}
a:hover { color: var(--red); }

img { max-width: 100%; }

ul { margin: 0; padding: 0; list-style: none; }

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

/* Anchor targets clear the sticky header */
[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

/* --------------------------------------------------------------------------
   Utilities
   -------------------------------------------------------------------------- */
.shell {
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 12px 20px;
  border-radius: 0 0 10px 10px;
  background: var(--ink);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 600;
  transition: top .18s ease;
}
.skip-link:focus { top: 0; color: var(--white); }

.eyebrow {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.eyebrow--blue { color: var(--blue); }
.eyebrow--red  { color: var(--red); }

.rule {
  display: block;
  width: 80px;
  height: 3px;
  background: var(--red);
  margin: 32px auto 0;
}
.rule--left { margin: 26px 0 0; width: 70px; }

.section-title {
  font-size: clamp(30px, 3.4vw, 40px);
  line-height: 1.2;
}

.prose {
  display: flex;
  flex-direction: column;
  gap: 22px;
  font-size: 18px;
  line-height: 1.75;
  font-weight: 300;
}

/* --------------------------------------------------------------------------
   Utility bar
   -------------------------------------------------------------------------- */
.utility-bar {
  background: var(--ink);
  color: var(--on-dark-strong);
  font-size: 14px;
  letter-spacing: .02em;
}
.utility-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-block: 10px;
}
.utility-bar__group {
  display: flex;
  align-items: center;
  gap: 28px;
}
.utility-bar a { color: var(--on-dark-strong); }
.utility-bar a:hover { color: var(--white); }
.utility-bar__muted { opacity: .55; }
.utility-bar__domain { opacity: .4; }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--white);
  box-shadow: 0 1px 0 rgba(43, 61, 71, .09);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding-block: 14px;
}
.site-header__logo { display: block; line-height: 0; }
.site-header__logo img {
  height: 64px;
  width: auto;
  display: block;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 34px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
}
.site-nav a {
  color: var(--ink);
  position: relative;
  padding-block: 4px;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .22s ease;
}
.site-nav a:hover { color: var(--blue); }
.site-nav a:hover::after { transform: scaleX(1); }

/* Mobile menu button — hidden on desktop */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border: 1.5px solid rgba(43, 61, 71, .18);
  border-radius: 40px;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after  { top: 6px; }

.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after  { transform: translateY(-6px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  background: linear-gradient(180deg, var(--blue-50) 0%, var(--blue-100) 100%);
}
.hero__inner {
  max-width: 1000px;
  margin-inline: auto;
  padding: 120px var(--gutter) 170px;
  text-align: center;
}
.hero .eyebrow { margin-bottom: 26px; }

.hero__title {
  font-size: clamp(40px, 6.4vw, 72px);
  line-height: 1.1;
  letter-spacing: -.015em;
}
.hero__lede {
  margin: 32px auto 0;
  max-width: 720px;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.65;
  font-weight: 300;
}
.hero__actions {
  margin-top: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

.btn {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  padding: 17px 32px;
  border-radius: 44px;
  border: 1.5px solid rgba(43, 61, 71, .18);
  color: var(--ink);
  background: transparent;
  transition: border-color .18s ease, color .18s ease, background-color .18s ease;
}
.btn:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: rgba(255, 255, 255, .5);
}

/* --------------------------------------------------------------------------
   Services
   -------------------------------------------------------------------------- */
.services {
  position: relative;
  z-index: 5;
  margin-top: -90px;
}
.services__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px;
}

.card {
  /* 353px is the width one of three cards had in the 1180px shell */
  flex: 1 1 300px;
  max-width: 353px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px 34px;
  box-shadow: var(--shadow-card);
  transition: box-shadow .24s ease, transform .24s ease;
}
.card:hover {
  box-shadow: var(--shadow-lift);
  transform: translateY(-3px);
}

/* A single card gets room to carry the band on its own */
.card:only-child { max-width: 620px; }

.card__icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  margin-bottom: 22px;
}
.card__icon svg { width: 26px; height: 26px; }
.card__icon--blue {
  background: var(--blue-50);
  border: 2px solid var(--blue-line);
  color: var(--blue-deep);
}
.card__icon--red {
  background: var(--red-50);
  border: 2px solid var(--red-line);
  color: var(--red);
}

.card__title { font-size: 21px; }
.card__body {
  margin-top: 12px;
  font-size: 17px;
  line-height: 1.65;
  font-weight: 300;
}

/* --------------------------------------------------------------------------
   Story
   -------------------------------------------------------------------------- */
.story {
  padding-block: 110px 90px;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 70px;
  align-items: start;
}
.story .eyebrow { margin-bottom: 18px; }

/* --------------------------------------------------------------------------
   Stats
   -------------------------------------------------------------------------- */
.stats {
  background: var(--blue);
  color: var(--white);
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding-block: 76px;
  text-align: center;
}
.stat { display: flex; flex-direction: column; }
.stat__value {
  font-family: var(--font-display);
  font-size: clamp(38px, 4.4vw, 48px);
  font-weight: 600;
  line-height: 1;
}
.stat__label {
  margin-top: 8px;
  font-size: 16px;
  opacity: .85;
}

/* --------------------------------------------------------------------------
   Mission
   -------------------------------------------------------------------------- */
.mission { background: var(--blue-25); }
.mission__inner {
  max-width: 900px;
  margin-inline: auto;
  padding: 104px var(--gutter);
  text-align: center;
}
.mission .eyebrow { margin-bottom: 22px; }
.mission__statement {
  font-size: clamp(25px, 3vw, 34px);
  line-height: 1.45;
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   Doctor
   -------------------------------------------------------------------------- */
.doctor {
  padding-block: 110px;
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 70px;
  align-items: center;
}

.doctor__portrait {
  position: relative;
  margin: 0;
}
.doctor__portrait::before {
  content: "";
  position: absolute;
  left: -16px;
  bottom: -16px;
  width: 70%;
  height: 70%;
  border-radius: var(--radius);
  background: var(--blue-100);
}
.doctor__portrait img {
  position: relative;
  display: block;
  width: 100%;
  height: auto;  /* beat the img height attribute so aspect-ratio governs */
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lift);
}

.doctor__body .eyebrow { margin-bottom: 18px; }
.doctor__role {
  margin-top: 10px;
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--muted-soft);
}
.doctor__bio {
  margin-top: 26px;
  font-size: 18px;
  line-height: 1.75;
  font-weight: 300;
}

.tags {
  margin-top: 32px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
}
.tags li {
  padding: 9px 18px;
  border-radius: 30px;
  background: var(--blue-50);
  color: var(--blue-deep);
}

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */
.contact { background: var(--blue-50); }
.contact__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  padding-block: 88px;
}
.contact__col { max-width: 620px; }
.contact__title {
  font-size: clamp(28px, 3vw, 34px);
  line-height: 1.25;
}
.contact__lede {
  margin-top: 14px;
  font-size: 19px;
  font-weight: 300;
}
.contact__lede a { text-decoration: underline; text-underline-offset: 3px; }
.contact__disclaimer {
  margin-top: 16px;
  font-size: 16px;
  font-weight: 300;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--ink);
  color: var(--on-dark);
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  padding-block: 64px 34px;
}
.site-footer__logo {
  height: 78px;
  width: auto;
  display: block;
  background: var(--white);
  padding: 12px 16px;
  border-radius: 10px;
}
.site-footer__blurb {
  margin-top: 20px;
  max-width: 330px;
  font-size: 16px;
  line-height: 1.7;
  font-weight: 300;
}
.site-footer__heading {
  color: var(--white);
  font-size: 16px;
  margin-bottom: 16px;
}
.site-footer__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 16px;
}
.site-footer a { color: var(--on-dark); }
.site-footer a:hover { color: var(--white); }
.site-footer__legal {
  padding-block: 22px 40px;
  border-top: 1px solid rgba(255, 255, 255, .10);
  font-size: 14px;
  opacity: .7;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .story,
  .doctor { gap: 48px; }

  .story { grid-template-columns: 1fr; padding-block: 84px 72px; }
  .doctor { grid-template-columns: 1fr 1fr; padding-block: 84px; }

}

@media (max-width: 860px) {
  :root { --header-h: 88px; }

  .nav-toggle { display: inline-flex; }

  .site-header__inner { flex-wrap: wrap; gap: 16px; }
  .site-header__logo img { height: 56px; }

  .site-nav {
    display: none;
    order: 3;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-bottom: 8px;
    border-top: 1px solid rgba(43, 61, 71, .09);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a {
    padding: 14px 2px;
    font-size: 17px;
    border-bottom: 1px solid rgba(43, 61, 71, .07);
  }
  .site-nav a::after { display: none; }

  .hero__inner { padding: 84px var(--gutter) 140px; }


  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 40px 24px; padding-block: 60px; }

  .mission__inner { padding-block: 76px; }

  .doctor { grid-template-columns: 1fr; }
  .doctor__portrait { max-width: 420px; }

  .contact__inner { padding-block: 68px; }

  .site-footer__grid { grid-template-columns: 1fr; gap: 36px; padding-block: 52px 28px; }
}

@media (max-width: 600px) {
  :root { --gutter: 20px; }

  body { font-size: 17px; }

  .utility-bar { font-size: 13px; }
  .utility-bar__inner { justify-content: center; gap: 6px 18px; }
  .utility-bar__group { gap: 18px; flex-wrap: wrap; justify-content: center; }
  .utility-bar__domain { display: none; }

  .hero__inner { padding: 64px var(--gutter) 120px; }
  .hero__actions { gap: 12px; }
  .btn { padding: 15px 26px; font-size: 15px; }

  .card { padding: 32px 26px; }

  .story { padding-block: 64px 56px; }
  .mission__inner { padding-block: 64px; }
  .doctor { padding-block: 64px; }
}

/* --------------------------------------------------------------------------
   Motion / print
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

@media print {
  .utility-bar,
  .nav-toggle,
  .site-nav { display: none !important; }
  .site-header { position: static; box-shadow: none; }
  .hero, .stats, .mission, .contact, .site-footer {
    background: none !important;
    color: #000 !important;
  }
  .card { box-shadow: none; border: 1px solid #ccc; }
}
