/* Heart Solutions Centre — Soft Modern */

:root {
  --navy: #12333B;
  --navy-deep: #0D2830;
  --navy-line: #164450;
  --slate: #42606A;
  --muted: #5B7480;
  --faint: #8AA4AB;
  --steel: #6B858D;
  --cyan: #1AA3D9;
  --cyan-deep: #178FC0;
  --teal: #35B7C0;
  --teal-ink: #35A0AB;
  --canvas: #EAF7F9;
  --tint: #EAF7F9;
  --tint-deep: #DDF1F3;
  --line: #E0EEF0;
  --line-soft: #F0F6F7;
  --cloud: #CFEBEE;
  --mist: #9FC3CB;
  --sky-line: #C4E5E9;
  --green: #8FD3A2;
  --green-ink: #3E8E5C;
  --green-bg: #E6F4EC;
  --amber-ink: #A07840;
  --amber-bg: #F4EFEA;
  --red-ink: #A5535E;
  --red-bg: #FBF0F1;
  --red-line: #F0D2D6;
  --red-text: #7A3A43;
  --shadow-soft: 0 4px 14px rgba(18, 51, 59, 0.06);
  --shadow-card: 0 10px 30px rgba(18, 51, 59, 0.07);
  --shadow-float: 0 14px 40px rgba(18, 51, 59, 0.09);
  --r-lg: 30px;
  --r-md: 24px;
  --r-sm: 18px;
  --heading: 'Outfit', 'Avenir Next', 'Helvetica Neue', sans-serif;
  --body-font: 'Instrument Sans', 'Avenir Next', 'Helvetica Neue', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body-font);
  color: var(--slate);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: var(--cyan); text-decoration: none; }
a:hover { color: var(--navy); }
h1, h2, h3 { font-family: var(--heading); color: var(--navy); margin: 0; }
p { margin: 0 0 14px; line-height: 1.65; }
address { font-style: normal; }

.wrap { max-width: 1280px; margin: 0 auto; padding: 0 28px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--navy); color: #fff;
  padding: 10px 18px; border-radius: 0 0 12px 0; z-index: 200;
}
.skip-link:focus { left: 0; color: #fff; }

/* Bulk-billing bar */
.bulk-bar { background: var(--navy); color: #fff; }
.bulk-bar .wrap { display: flex; align-items: center; justify-content: center; gap: 10px; padding-top: 11px; padding-bottom: 11px; font-size: 14.5px; font-weight: 600; text-align: center; flex-wrap: wrap; }
.bulk-bar svg { flex-shrink: 0; }
.bulk-bar .bulk-bar-link { color: var(--green); white-space: nowrap; }
.bulk-bar .bulk-bar-link:hover { color: #fff; }

/* Floating pill header */
.header-wrap { position: sticky; top: 0; z-index: 50; padding: 18px 0 6px; background: linear-gradient(to bottom, var(--canvas) 65%, rgba(234, 247, 249, 0)); }
.pill-nav {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  background: #fff; border-radius: 999px; padding: 10px 12px 10px 22px;
  box-shadow: var(--shadow-card);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 44px; width: auto; display: block; }
.brand-name { font-family: var(--heading); font-size: 18px; font-weight: 700; color: var(--navy); line-height: 1.15; }
.brand-tag { font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--teal-ink); font-weight: 600; }
.site-nav { display: flex; align-items: center; gap: 28px; font-size: 15px; font-weight: 500; }
.site-nav a { color: var(--slate); padding: 8px 2px; }
.site-nav a:hover { color: var(--navy); }
.site-nav a[aria-current="page"] { color: var(--cyan); font-weight: 600; }
.nav-cta { white-space: nowrap; }
.nav-toggle {
  display: none; background: var(--tint); border: none; border-radius: 999px;
  padding: 12px 13px; cursor: pointer; color: var(--navy);
}
.nav-toggle svg { display: block; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 15px 30px; border-radius: 999px; font-size: 15.5px; font-weight: 600;
  font-family: var(--body-font); cursor: pointer; border: none; line-height: 1;
}
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-deep); color: #fff; }
.btn-cyan { background: var(--cyan); color: #fff; }
.btn-cyan:hover { background: var(--cyan-deep); color: #fff; }
.btn-white { background: #fff; color: var(--navy); box-shadow: var(--shadow-soft); }
.btn-white:hover { color: var(--navy); box-shadow: var(--shadow-card); }
.btn-sm { padding: 12px 24px; font-size: 14.5px; }

/* Hero */
.hero { position: relative; text-align: center; padding: 72px 0 24px; overflow: hidden; }
.hero-glow {
  position: absolute; width: 760px; height: 760px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(53, 183, 192, 0.18), rgba(234, 247, 249, 0) 70%);
  left: 50%; top: -200px; transform: translateX(-50%);
}
.hero-inner { position: relative; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; background: #fff; border-radius: 999px;
  padding: 9px 18px; font-size: 13.5px; font-weight: 600; color: var(--teal-ink);
  box-shadow: var(--shadow-soft);
}
.hero h1 {
  font-size: clamp(40px, 5.2vw, 66px); line-height: 1.06; font-weight: 800;
  letter-spacing: -0.02em; max-width: 900px; margin: 26px auto 0; text-wrap: balance;
}
.hero-sub { font-size: 18.5px; line-height: 1.6; color: var(--slate); max-width: 620px; margin: 22px auto 0; }
.hero-ctas { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.hero-note { margin-top: 20px; font-size: 14px; color: var(--muted); }

/* Floating location cards */
.location-cards {
  position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 440px));
  justify-content: center; gap: 24px; margin-top: 54px;
}
.location-card {
  background: #fff; border-radius: var(--r-md); padding: 26px 30px; text-align: left;
  box-shadow: var(--shadow-float);
}
.location-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.location-card h2, .location-card h3 { font-size: 19px; font-weight: 700; }
.location-card address { font-size: 14px; line-height: 1.55; color: var(--muted); }
.tag-btn {
  background: var(--tint); border-radius: 999px; padding: 7px 14px;
  font-size: 12.5px; font-weight: 600; color: var(--teal-ink); white-space: nowrap;
}
.tag-btn:hover { background: var(--tint-deep); color: var(--navy); }
.loc-hint { color: var(--faint); }

/* Sections */
.section { padding: 64px 0 16px; }
.section-title {
  font-size: clamp(30px, 3.4vw, 40px); font-weight: 800; letter-spacing: -0.015em;
  text-align: center; margin-bottom: 40px;
}
.section-title-row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 36px; }
.section-title-row .section-title { text-align: left; margin-bottom: 0; }
.section-link { font-size: 15px; font-weight: 600; white-space: nowrap; }

/* Service cards */
.services-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
.service-card { position: relative; background: #fff; border-radius: 26px; padding: 28px 24px; box-shadow: var(--shadow-soft); }
.bulk-pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--green); color: var(--navy-deep); border-radius: 999px;
  padding: 8px 14px; font-size: 12.5px; font-weight: 700; letter-spacing: 0.05em;
  text-transform: uppercase; box-shadow: 0 4px 12px rgba(62, 142, 92, 0.35);
}
.bulk-badge { position: absolute; top: 18px; right: 18px; }
.icon-circle {
  width: 52px; height: 52px; border-radius: 18px; background: var(--tint);
  display: flex; align-items: center; justify-content: center;
}
.icon-circle-green { background: var(--green-bg); }
.service-card h3 { font-size: 18.5px; font-weight: 700; margin: 18px 0 6px; }
.service-card p { font-size: 14px; line-height: 1.55; color: var(--muted); margin: 0; }

/* About */
.about-card {
  background: #fff; border-radius: var(--r-lg); padding: 56px 60px;
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 60px; align-items: center;
  box-shadow: var(--shadow-soft);
}
.about-card h2 { font-size: clamp(26px, 3vw, 34px); font-weight: 800; letter-spacing: -0.015em; margin-bottom: 18px; }
.about-card p { font-size: 16px; }
.tagline-lockup { text-align: center; }
.tagline {
  font-family: var(--heading); font-size: clamp(28px, 3.2vw, 40px); font-weight: 800; letter-spacing: -0.015em;
  background: linear-gradient(90deg, var(--cyan), var(--green)); -webkit-background-clip: text;
  background-clip: text; color: transparent;
}
.tagline-lockup svg { width: min(340px, 90%); height: 36px; margin-top: 12px; }

/* Doctor cards */
.doctors-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; text-align: center; }
.doctor-card { background: #fff; border-radius: var(--r-lg); padding: 36px 28px; box-shadow: var(--shadow-soft); }
.doctor-photo {
  width: 170px; height: 170px; border-radius: 50%; overflow: hidden; margin: 0 auto;
  border: 5px solid var(--tint); background: var(--tint-deep);
}
.doctor-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; display: block; }
.doctor-card h3 { font-size: 20px; font-weight: 700; margin-top: 20px; }
.doctor-card .doctor-blurb { font-size: 14px; line-height: 1.55; color: var(--muted); margin: 14px 0 0; }
.doctor-card .profile-link { display: inline-block; font-size: 14px; font-weight: 600; margin-top: 14px; }

.chip {
  display: inline-block; background: var(--tint); border-radius: 999px; padding: 7px 16px;
  font-size: 13px; font-weight: 600; color: var(--teal-ink); margin-top: 10px;
}
.chip-green { background: var(--green-bg); color: var(--green-ink); }
.chip + .chip { margin-left: 4px; }

/* CTA band */
.cta-band {
  background: var(--navy); border-radius: 34px; padding: 52px 56px; margin-top: 64px;
  display: flex; align-items: center; justify-content: space-between; gap: 40px;
}
.cta-band h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 800; color: #fff; margin-bottom: 8px; }
.cta-band p { font-size: 16px; color: var(--cloud); margin: 0; }

/* Page headers */
.page-head { position: relative; text-align: center; padding: 64px 0 12px; overflow: visible; }
.page-head h1 { font-size: clamp(34px, 4.2vw, 52px); font-weight: 800; letter-spacing: -0.02em; }
.page-intro { font-size: 17.5px; line-height: 1.6; color: var(--slate); max-width: 640px; margin: 18px auto 0; }

/* Staff profiles */
.profiles { display: flex; flex-direction: column; gap: 28px; padding: 48px 0 0; }
.profile-card {
  display: grid; grid-template-columns: 300px 1fr; gap: 40px; align-items: start;
  background: #fff; border-radius: var(--r-lg); padding: 36px; box-shadow: var(--shadow-soft);
}
.profile-photo { border-radius: var(--r-md); overflow: hidden; background: var(--tint-deep); aspect-ratio: 3 / 3.6; }
.profile-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }
.profile-card h2, .profile-card h3 { font-size: 26px; font-weight: 800; letter-spacing: -0.01em; }
.credentials { font-size: 13.5px; color: var(--faint); margin: 6px 0 0; }
.staff-group { display: flex; align-items: center; gap: 18px; margin: 22px 0 -6px; }
.staff-group:first-child { margin-top: 0; }
.staff-group h2 { font-size: 23px; font-weight: 800; letter-spacing: -0.01em; white-space: nowrap; }
.staff-group .count { background: #fff; border-radius: 999px; padding: 6px 13px; font-size: 12.5px; font-weight: 600; color: var(--teal-ink); box-shadow: var(--shadow-soft); }
.staff-group::after { content: ""; flex: 1; height: 1.5px; background: var(--sky-line); border-radius: 1px; }
.profile-card .chip { margin: 10px 0 18px; }
.profile-card p { font-size: 15.5px; }
.profile-card p:last-child { margin-bottom: 0; }

/* Callouts */
.callout {
  background: #fff; border-radius: var(--r-md); padding: 26px 30px;
  display: flex; gap: 18px; align-items: flex-start; box-shadow: var(--shadow-soft);
}
.callout svg { flex-shrink: 0; margin-top: 2px; }
.callout h2 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.callout p { font-size: 15px; line-height: 1.6; margin: 0; }
.callout strong { color: var(--navy); }

.emergency {
  background: var(--red-bg); border: 1px solid var(--red-line); border-radius: var(--r-md);
  padding: 22px 30px; display: flex; align-items: center; gap: 18px;
}
.emergency svg { flex-shrink: 0; }
.emergency p { font-size: 15.5px; line-height: 1.55; color: var(--red-text); margin: 0; }

/* Test cards */
.tests-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 28px; }
.test-card { background: #fff; border-radius: 26px; padding: 28px; display: flex; flex-direction: column; box-shadow: var(--shadow-soft); }
.test-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.test-card h2 { font-size: 19px; font-weight: 700; }
.test-card p { font-size: 14px; line-height: 1.6; color: var(--muted); margin-bottom: 14px; }
.test-prep { background: var(--line-soft); border-radius: 16px; padding: 14px 16px; font-size: 13.5px; line-height: 1.55; color: var(--muted); margin-top: auto; }
.test-prep strong { font-weight: 600; color: var(--teal-ink); }
.badge {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 5px;
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.05em;
  text-transform: uppercase; padding: 6px 12px; border-radius: 999px; white-space: nowrap;
  background: var(--tint); color: var(--teal-ink);
}
.badge-stack { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex-shrink: 0; }
.badge-green { background: var(--green-bg); color: var(--green-ink); }
.badge-amber { background: var(--amber-bg); color: var(--amber-ink); }
.badge-red { background: var(--red-bg); color: var(--red-ink); }

/* Referral page */
.referral-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin: 40px 0 28px; }
.info-card { background: #fff; border-radius: 26px; padding: 28px; box-shadow: var(--shadow-soft); }
.info-card h2 { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cyan); font-weight: 600; margin-bottom: 18px; font-family: var(--body-font); }
.info-card ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; font-size: 15px; }
.info-card .label { color: var(--faint); font-size: 13px; display: block; margin-bottom: 2px; }
.info-card strong { color: var(--navy); font-weight: 600; }
.form-frame { background: #fff; border-radius: var(--r-lg); padding: 18px; box-shadow: var(--shadow-soft); }
.form-frame iframe { width: 100%; height: 1400px; border: 0; border-radius: 18px; display: block; }
.form-fallback { text-align: center; font-size: 14.5px; color: var(--muted); padding: 16px 0 2px; }

/* Fees page */
.fees-card { background: #fff; border-radius: var(--r-lg); padding: 32px 36px 20px; box-shadow: var(--shadow-soft); margin-bottom: 28px; }
.fees-heading { font-size: 22px; font-weight: 800; letter-spacing: -0.01em; margin-bottom: 8px; }
.fees-sub { font-size: 14px; color: var(--muted); margin: -2px 0 10px; }
.table-scroll { overflow-x: auto; }
.fees-table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 640px; }
.fees-table th, .fees-table td { padding: 14px 16px; text-align: center; border-bottom: 1px solid var(--line-soft); }
.fees-table tbody tr:last-child th, .fees-table tbody tr:last-child td { border-bottom: none; }
.fees-table thead th { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); font-weight: 600; border-bottom: 1.5px solid var(--sky-line); }
.fees-table th[scope="row"] { text-align: left; font-weight: 600; color: var(--navy); }
.fees-table thead th:first-child { text-align: left; }
.fees-table .fee-strong { font-weight: 700; color: var(--navy); }
.fees-table td[colspan] { text-align: left; }

/* Contact page */
.contact-locations { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; margin-top: 44px; }
.map-card { background: #fff; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-soft); }
.map-card iframe { width: 100%; height: 250px; border: 0; display: block; background: var(--tint-deep); }
.map-card-body { padding: 26px 32px 30px; }
.map-card h2 { font-size: 22px; font-weight: 800; margin-bottom: 10px; }
.map-card address { font-size: 15px; line-height: 1.6; color: var(--muted); margin-bottom: 18px; }
.contact-details { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 26px; }
.hours-card { background: var(--navy); border-radius: 26px; padding: 28px; box-shadow: var(--shadow-soft); }
.hours-card h2 { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal); font-weight: 600; margin-bottom: 16px; font-family: var(--body-font); }
.hours-card table { width: 100%; border-collapse: collapse; font-size: 15px; color: var(--tint); }
.hours-card td { padding: 10px 0; border-bottom: 1px solid var(--navy-line); }
.hours-card tr:last-child td { border-bottom: none; }
.hours-card td:last-child { text-align: right; font-weight: 600; }
.hours-card .closed { color: var(--steel); font-weight: 500; }
.hours-card svg { width: 100%; height: 28px; margin-top: 18px; }

/* Footer */
.site-footer { padding: 64px 0 26px; }
.footer-card { background: var(--navy-deep); border-radius: 34px; padding: 52px 56px 0; color: var(--mist); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 44px; padding-bottom: 40px; border-bottom: 1px solid var(--navy-line); }
.footer-brand-name { font-family: var(--heading); font-size: 19px; font-weight: 700; color: #fff; margin-bottom: 12px; }
.footer-brand p { font-size: 14px; line-height: 1.6; color: var(--mist); max-width: 300px; }
.footer-tagline { font-size: 11.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--teal); margin-top: 14px; font-weight: 600; }
.footer-col h2 { font-size: 12.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--steel); font-weight: 600; margin-bottom: 16px; font-family: var(--body-font); }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; font-size: 14.5px; }
.footer-col a { color: var(--sky-line); }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 0 24px; font-size: 13px; color: var(--steel); flex-wrap: wrap; }

/* Responsive */
@media (max-width: 1060px) {
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tests-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .doctors-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-card { grid-template-columns: 1fr; gap: 36px; padding: 40px; }
  .profile-card { grid-template-columns: 250px 1fr; gap: 30px; }
  .contact-details { grid-template-columns: 1fr; max-width: 520px; margin-left: auto; margin-right: auto; }
  .referral-grid { grid-template-columns: 1fr; max-width: 520px; margin-left: auto; margin-right: auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-band { flex-direction: column; text-align: center; }
}

@media (max-width: 900px) {
  .site-nav {
    display: none; position: absolute; left: 16px; right: 16px; top: calc(100% + 8px);
    background: #fff; border-radius: 24px; box-shadow: var(--shadow-float);
    flex-direction: column; align-items: stretch; gap: 0; padding: 12px 24px;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 14px 4px; border-bottom: 1px solid var(--line-soft); font-size: 16px; }
  .site-nav a:last-of-type { border-bottom: none; }
  .header-wrap { position: relative; }
  .pill-nav { position: relative; }
  .nav-toggle { display: block; }
  .nav-cta { display: none; }
  .location-cards { grid-template-columns: 1fr; }
  .contact-locations { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .wrap { padding: 0 18px; }
  .hero { padding: 44px 0 12px; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { width: 100%; }
  .section { padding: 48px 0 8px; }
  .services-grid { grid-template-columns: 1fr; }
  .tests-grid { grid-template-columns: 1fr; }
  .doctors-grid { grid-template-columns: 1fr; max-width: 480px; margin-left: auto; margin-right: auto; }
  .about-card { padding: 30px 24px; }
  .profile-card { grid-template-columns: 1fr; padding: 24px; }
  .profile-photo { max-width: 280px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  /* Fee tables reflow into stacked cards — no horizontal scrolling */
  .fees-card { padding: 24px 20px 12px; }
  .fees-table { min-width: 0; }
  .fees-table thead { display: none; }
  .fees-table, .fees-table tbody, .fees-table tr, .fees-table th[scope="row"], .fees-table td { display: block; width: 100%; }
  .fees-table tr { border: 1px solid var(--line); border-radius: 16px; padding: 14px 18px 6px; margin: 0 0 14px; }
  .fees-table th[scope="row"] { padding: 0 0 10px; border-bottom: 1.5px solid var(--sky-line); font-size: 16.5px; }
  .fees-table td { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line-soft); text-align: right; }
  .fees-table tr td:last-child { border-bottom: none; }
  .fees-table td::before { content: attr(data-label); font-size: 11.5px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--faint); font-weight: 600; text-align: left; }
  .fees-table td[data-label=""] { justify-content: flex-start; }
  .fees-table td[data-label=""]::before { content: none; }
  .footer-card { padding: 36px 28px 0; border-radius: 28px; }
  .cta-band { padding: 36px 28px; border-radius: 28px; }
  .brand-name { font-size: 16px; }
  .brand img { height: 38px; }
  .form-frame iframe { height: 1600px; }
}
