:root {
  --navy: #12305c;
  --navy-dark: #0d2547;
  --blue-line: #12305c;
  --teal: #2fb4b0;
  --purple: #7c5fc4;
  --orange: #f0a63a;
  --lightblue: #4f8fd6;
  --text-dark: #1c1c1c;
  --text-grey: #4a4a4a;
  --bg-light: #f3f6fa;
  --border-grey: #e2e6ec;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', 'Montserrat', Arial, sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  background: #fff;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

.section-title {
  text-align: center;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 1px;
  text-transform: uppercase;
  position: relative;
  margin-bottom: 22px;
}

.section-title::before,
.section-title::after {
  content: "";
  display: inline-block;
  width: 50px;
  height: 1px;
  background: var(--navy);
  vertical-align: middle;
  margin: 0 16px 4px;
}

/* HEADER */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
  border-bottom: 1px solid var(--border-grey);
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-link img {
  height: 46px;
  width: auto;
}

.main-nav {
  display: flex;
  gap: 36px;
}

.main-nav a {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--text-dark);
  text-transform: uppercase;
  padding-bottom: 6px;
}

.main-nav a.active {
  color: var(--navy);
  border-bottom: 2px solid var(--navy);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--navy);
  color: #fff;
  padding: 12px 22px;
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  white-space: nowrap;
}

/* HERO */
.hero {
  position: relative;
  background: #f7f8fa url("images/optimized/Softly Blurred Clinical Interior with Greenery.jpg") right center / cover no-repeat;
  background-image: image-set(
    url("images/optimized/Softly Blurred Clinical Interior with Greenery.webp") type("image/webp"),
    url("images/optimized/Softly Blurred Clinical Interior with Greenery.jpg") type("image/jpeg"));
  overflow: hidden;
  min-height: 500px;
  display: flex;
  align-items: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.88) 0%, rgba(255, 255, 255, 0.75) 40%, rgba(255, 255, 255, 0) 72%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding-left: max(40px, calc((100vw - 1400px) / 2 + 40px));
}

.hero-content {
  max-width: 560px;
  padding: 26px 0 18px;
}

.hero-eyebrow {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 8px;
}

.hero-name {
  font-family: 'Playfair Display', serif;
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 14px;
}

.hero-line {
  width: 70px;
  height: 2px;
  background: var(--navy);
  margin-bottom: 16px;
}

.hero-blurb {
  font-size: 1.15rem;
  color: var(--text-grey);
  max-width: 520px;
  margin-bottom: 18px;
}

.hero-signature {
  font-family: 'Dancing Script', cursive;
  font-size: 1.25rem;
  color: var(--navy);
  max-width: 480px;
  margin-top: 14px;
}

.hero-book-link {
  display: inline-block;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: var(--navy);
  border-bottom: 2px solid var(--navy);
  padding-bottom: 3px;
}

.hero-image-wrap {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: clamp(480px, 50vw, 760px);
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
}

.hero-image-wrap img {
  width: auto;
  height: 102%;
  max-width: 100%;
  object-fit: contain;
}

/* FEATURE STRIP */
.feature-strip {
  background: var(--navy);
  color: #fff;
}

.feature-strip .container {
  display: flex;
  align-items: stretch;
}

.feature-item {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 20px;
}

.feature-item + .feature-item {
  border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.feature-icon {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  border: 1.5px solid #fff;
  border-radius: 50%;
  padding: 14px;
}

.feature-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.feature-icon svg {
  width: 100%;
  height: 100%;
}

.feature-text {
  font-size: 0.85rem;
  font-weight: 400;
  line-height: 1.4;
}

.feature-text strong {
  display: block;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

/* ABOUT */
.about {
  padding: 40px 0 40px;
}

.about .container {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 32px;
  align-items: stretch;
}

.about-photo {
  overflow: hidden;
  border-radius: 12px;
  height: 100%;
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  image-rendering: -webkit-optimize-contrast;
  border-radius: 2px;
}

.about-eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 8px;
}

.about-heading {
  font-family: 'Playfair Display', serif;
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 18px;
}

.about-text p {
  font-size: 0.92rem;
  color: var(--text-grey);
  margin-bottom: 14px;
}

.about-text .highlight {
  color: var(--navy);
  font-weight: 600;
  font-style: italic;
}

.about-readmore {
  color: var(--navy);
  font-weight: 700;
  font-size: 0.9rem;
  display: inline-block;
  margin-top: 6px;
  border-bottom: 2px solid var(--navy);
  padding-bottom: 2px;
}

/* QUALIFICATIONS + WHY CHOOSE */
.info-row {
  padding: 0 0 24px;
}

.info-row .container {
  display: grid;
  grid-template-columns: 2fr 1.3fr;
  gap: 24px;
}

.quals-box {
  background: var(--navy);
  color: #fff;
  padding: 22px 28px;
  border-radius: 12px;
}

.quals-title {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.quals-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.qual-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.qual-item.divider {
  padding-left: 4px;
  border-left: 1px solid rgba(255, 255, 255, 0.25);
}

.qual-icon {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qual-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.qual-icon svg {
  width: 62%;
  height: 62%;
  color: #fff;
}

.qual-item .qual-org {
  display: block;
  font-size: 0.66rem;
  color: #c9d4e5;
  line-height: 1.3;
}

.qual-item .qual-degree {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 0.78rem;
  font-weight: 400;
  margin-top: 6px;
  line-height: 1.3;
}

.qual-item .qual-abbr {
  display: block;
  font-size: 0.76rem;
  color: #c9d4e5;
}

.why-box {
  background: #eef1fa;
  padding: 22px 28px;
  border-radius: 12px;
}

.why-title {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 16px;
  text-align: center;
}

.why-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 0;
  position: relative;
}

.why-list::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 4px;
  bottom: 4px;
  width: 1px;
  background: rgba(18, 48, 92, 0.15);
}

.why-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.3;
  padding-right: 16px;
}

.why-list .why-item:nth-child(even) {
  padding-left: 18px;
  padding-right: 0;
}

.why-icon {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.why-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.why-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.why-icon svg {
  width: 100%;
  height: 100%;
  color: var(--navy);
}

/* SERVICES */
.services {
  padding: 4px 0 24px;
  background: #fff;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}

.service-card {
  border: 1px solid var(--border-grey);
  border-radius: 6px;
  padding: 18px 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
}

.service-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.service-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.service-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.service-title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--navy);
}

.service-card ul {
  flex-grow: 1;
  margin-bottom: 14px;
}

.service-card li {
  font-size: 0.78rem;
  color: var(--text-grey);
  padding: 3px 0 3px 14px;
  position: relative;
}

.service-card li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--text-grey);
}

.service-link {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--navy);
  border-top: 1px solid var(--border-grey);
  padding-top: 10px;
}

/* PROCEDURES */
.procedures {
  padding: 8px 0 24px;
}

.procedures-box {
  background: #eef1fa;
  border-radius: 12px;
  padding: 28px 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.procedure-col.divider {
  padding-left: 30px;
  border-left: 1px solid var(--border-grey);
}

.procedure-col.divider .procedure-row {
  align-items: center;
}

.procedure-heading {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 14px;
}

.procedure-col > .procedure-heading {
  margin-left: 60px;
}

.procedure-row {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.procedure-col-header {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  width: 150px;
}

.procedure-col-header .procedure-heading {
  margin-bottom: 0;
}

.procedure-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--navy);
}

.procedure-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.procedure-icon svg {
  width: 100%;
  height: 100%;
}

.procedure-list {
  font-size: 0.85rem;
  color: var(--text-dark);
  flex: 1;
}

.procedure-list ~ .procedure-list {
  margin-left: -12px;
}

.procedure-list li {
  padding: 2px 0 2px 16px;
  position: relative;
  break-inside: avoid;
}

.procedure-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--navy);
}

/* PATIENT INFO */
.patient-info {
  padding: 8px 0 28px;
}

.patient-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.patient-card {
  border: 1px solid var(--border-grey);
  border-radius: 6px;
  padding: 18px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.patient-icon {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 14px;
}

.patient-icon svg {
  width: 100%;
  height: 100%;
}

.patient-card:nth-child(1) .patient-icon { background: var(--navy); }
.patient-card:nth-child(2) .patient-icon { background: var(--teal); }
.patient-card:nth-child(3) .patient-icon { background: var(--purple); }

.patient-body h3 {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 6px;
  line-height: 1.3;
}

.patient-body p {
  font-size: 0.78rem;
  color: var(--text-grey);
  margin-bottom: 12px;
  line-height: 1.4;
}

.pdf-link {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.3px;
  border: 1px solid var(--border-grey);
  border-radius: 20px;
  padding: 7px 14px;
}

.patient-info-footer {
  text-align: center;
  margin-top: 30px;
  font-size: 0.95rem;
  color: var(--text-dark);
}

.patient-info-footer a {
  color: var(--navy);
  font-weight: 700;
  border-bottom: 2px solid var(--navy);
}

/* CONTACT / FOOTER TOP */
.contact-strip {
  background: #eef1fa;
  padding: 24px 0;
}

.contact-eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 8px;
}

.contact-intro {
  font-size: 0.82rem;
  color: var(--text-grey);
  margin-bottom: 6px;
  line-height: 1.6;
}

.contact-grid {
  display: grid;
  grid-template-columns: 3.6fr 1.3fr 1.5fr 1fr;
  gap: 24px;
  align-items: start;
}

.contact-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-col-split {
  flex-direction: row;
  align-items: flex-start;
  gap: 24px;
}

.contact-intro-block {
  flex: 1.3;
}

.contact-address-block {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-left: 20px;
  border-left: 1px solid var(--border-grey);
}

.contact-col.divider {
  padding-left: 20px;
  border-left: 1px solid var(--border-grey);
}

.contact-block {
  display: flex;
  gap: 10px;
  font-size: 0.82rem;
}

.contact-block .icon {
  color: var(--navy);
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-block strong {
  display: block;
  color: var(--text-dark);
  margin-bottom: 2px;
}

.contact-block span,
.contact-block p {
  color: var(--text-grey);
}

.hours-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--navy);
  font-size: 0.85rem;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.hours-text {
  font-size: 0.82rem;
  color: var(--text-grey);
}

.hours-note {
  font-size: 0.78rem;
  color: var(--text-grey);
  margin-top: 8px;
}

.map-embed {
  width: 100%;
  height: 110px;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border-grey);
}

.map-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* FOOTER */
.site-footer {
  background: var(--navy);
  color: #fff;
  padding: 26px 0;
}

.site-footer .container {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-logo img {
  height: 40px;
}

.footer-meta {
  font-size: 0.78rem;
  color: #c9d4e5;
  text-align: center;
}

/* inject-pictures.js wraps <img> in <picture>; keep the img laid out as a direct child */
picture { display: contents; }

.avily-credit .avily-link { color: #c9d4e5; text-decoration: none; }
.avily-credit .avily-link:hover { color: #fff; text-decoration: underline; }
.avily-credit img {
  display: inline-block;
  position: relative;
  top: -3px;
  height: 1em;
  width: auto;
  vertical-align: middle;
  margin: 0 4px;
}

@media (max-width: 1024px) {
  .container { padding: 0 32px; }

  /* Bigger tap targets for small links */
  .footer-legal { gap: 8px 12px; }
  .footer-legal a { display: inline-block; padding: 12px 6px; }
  .contact-block a { display: inline-block; padding: 6px 0; }

  /* Hero: text first, photo underneath */
  .hero { display: block; min-height: 0; }
  .hero::before { position: absolute; inset: 0; z-index: 0; background: rgba(247, 248, 250, 0.82); }
  .hero-inner { padding: 40px 32px 0; }
  .hero-content { max-width: 640px; padding: 0 0 8px; }
  .hero-image-wrap {
    position: relative;
    width: 100%;
    height: 420px;
    justify-content: center;
  }
  .hero-image-wrap img { height: 100%; }

  .about .container { grid-template-columns: 1fr; }
  .about-photo { height: 480px; }

  .info-row .container { grid-template-columns: 1fr; }
  .quals-list { grid-template-columns: repeat(3, 1fr); }

  .services-grid { grid-template-columns: repeat(3, 1fr); }

  .procedures-box { grid-template-columns: 1fr; }
  .procedure-col.divider {
    padding: 24px 0 0;
    border-left: 0;
    border-top: 1px solid var(--border-grey);
  }

  .contact-grid { grid-template-columns: 1fr 1fr; }
  .contact-col-split { grid-column: 1 / -1; }
  .map-embed { height: 100%; min-height: 140px; }
}

@media (max-width: 640px) {
  .container { padding: 0 20px; }

  .hero-inner { padding: 28px 20px 0; }
  .hero-name { font-size: 2rem; }
  .hero-blurb { font-size: 1.02rem; }
  .hero-image-wrap { height: 300px; }

  .feature-strip .container { flex-direction: column; }
  .feature-item { padding: 16px 0; }
  .feature-item + .feature-item { border-left: none; border-top: 1px solid rgba(255,255,255,0.2); }

  .about-photo { height: 380px; }

  .quals-box,
  .why-box { padding: 22px 20px; }
  .quals-list { grid-template-columns: 1fr; gap: 16px; }
  .qual-item.divider {
    padding: 16px 0 0;
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
  }
  .why-list { grid-template-columns: 1fr; }
  .why-list::before { display: none; }
  .why-list .why-item:nth-child(even) { padding-left: 0; }

  .services-grid { grid-template-columns: 1fr; }
  .patient-grid { grid-template-columns: 1fr; }

  /* Both columns: icon + heading on one line, then one continuous list */
  .procedures-box { padding: 24px 20px; gap: 24px; }
  .procedure-col {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 12px;
    align-items: center;
  }
  .procedure-row { display: contents; }
  .procedure-col > .procedure-heading { grid-row: 1; grid-column: 2; margin: 0; }
  .procedure-row > .procedure-icon { grid-row: 1; grid-column: 1; }
  .procedure-col-header { grid-column: 1 / -1; width: auto; gap: 12px; }
  .procedure-icon { width: 36px; height: 36px; }
  .procedure-list { grid-column: 1 / -1; }
  .procedure-row > ul:first-of-type { margin-top: 10px; }
  .procedure-list ~ .procedure-list { margin-left: 0; }
  .procedure-list li { padding: 5px 0 5px 16px; }

  .contact-grid { grid-template-columns: 1fr; gap: 20px; }
  .contact-col-split { flex-direction: column; gap: 20px; }
  .contact-address-block,
  .contact-col.divider {
    padding: 20px 0 0;
    border-left: 0;
    border-top: 1px solid var(--border-grey);
  }
  .map-embed { height: 200px; }

  .site-footer .container { grid-template-columns: 1fr; justify-items: center; gap: 14px; text-align: center; }
  .footer-logo { justify-content: center; }
}

/* ---------- Contact strip + footer refinements (all pages) ---------- */
.contact-block a {
  color: var(--text-grey);
  transition: color 0.2s;
}

.contact-block a:hover { color: var(--navy); }

.footer-legal {
  flex-wrap: wrap;
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 6px;
  font-size: 0.75rem;
}

.footer-legal a {
  color: #c9d4e5;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}

.footer-legal a:hover {
  color: #fff;
  border-bottom-color: #fff;
}

