/* =========================================================
   ALIGN SPINE CENTER
   Main Stylesheet
   ========================================================= */


/* =========================================================
   1. ROOT / DESIGN TOKENS
   ========================================================= */

:root {
  --navy: #0b2635;
  --navy2: #123b4c;

  --teal: #0c7894;
  --teal2: #2ba8bd;

  --ice: #f3fbfc;
  --soft: #eaf6f8;

  --ink: #18313d;
  --muted: #627985;

  --line: #d8e7eb;
  --white: #ffffff;

  --shadow: 0 24px 70px rgba(8, 48, 63, 0.12);
  --shadow2: 0 12px 34px rgba(8, 48, 63, 0.08);

  --radius: 26px;
  --radius-lg: 32px;

  --container: 1220px;
}


.phone-popup-wrap {
  position: relative;
}

.phone-popup-btn {
  width: 54px;
  height: 54px;
  border: 0;
  border-radius: 50%;

  display: grid;
  place-items: center;

  background: var(--navy);
  color: #fff;

  font-size: 1.2rem;
  cursor: pointer;

  box-shadow: 0 10px 26px rgba(0, 0, 0, .18);
}

.phone-popup {
  position: absolute;

  right: 68px;
  bottom: 0;

  width: 280px;

  padding: 18px;

  background: #fff;

  border: 1px solid var(--line);
  border-radius: 18px;

  box-shadow: 0 18px 50px rgba(8, 48, 63, .18);

  opacity: 0;
  visibility: hidden;

  transform: translateX(8px);

  transition: all .22s ease;
}

.phone-popup.open {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.phone-popup strong {
  display: block;

  margin-bottom: 12px;

  color: var(--navy);

  font-size: .95rem;
}

.phone-popup-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;

  padding: 10px 0;

  border-top: 1px solid var(--line);

  font-size: .9rem;
}

.phone-popup-row span:first-child {
  color: var(--navy);
  font-weight: 800;
}

.phone-popup-row span:last-child {
  color: var(--teal);
  font-weight: 800;
}

@media (max-width: 690px) {

  .phone-popup {
    right: 0;
    bottom: 68px;
    width: 260px;
  }

}


/* =========================================================
   2. RESET / BASE
   ========================================================= */

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: Inter, Arial, sans-serif;
  line-height: 1.65;
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

.container {
  width: min(var(--container), 92%);
  margin-inline: auto;
}


/* =========================================================
   3. ACCESSIBILITY
   ========================================================= */

.skip {
  position: absolute;
  left: -9999px;
  top: auto;
}

.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 9999;

  padding: 12px 16px;

  background: var(--white);
  color: var(--navy);

  border-radius: 10px;
  box-shadow: var(--shadow2);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(43, 168, 189, 0.35);
  outline-offset: 3px;
}


/* =========================================================
   4. TYPOGRAPHY
   ========================================================= */

h1,
h2,
h3 {
  margin: 0 0 16px;
  line-height: 1.1;
  color: var(--navy);
}

h1 {
  font-size: clamp(3rem, 5.7vw, 6rem);
  letter-spacing: -0.05em;
}

h2 {
  font-size: clamp(2.1rem, 3.7vw, 3.7rem);

  letter-spacing: -0.035em;
}

h3 {
  font-size: 1.28rem;
}

p {
  margin-top: 0;
}

.lead {
  max-width: 760px;
  color: #526b76;
  font-size: 1.16rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;

  margin-bottom: 13px;

  color: var(--teal);

  font-size: 0.77rem;
  font-weight: 900;

  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrowh2{
 color: #b9edf3;
}

.eyebrow::before {
  content: "";

  width: 27px;
  height: 2px;

  background: linear-gradient(
    90deg,
    var(--teal),
    var(--teal2)
  );
}


/* =========================================================
   5. TOP CONTACT BAR
   ========================================================= */

.top {
  background: var(--navy);
  color: #d7edf2;
  font-size: 0.9rem;
}

.top .container {
  display: flex;
  justify-content: space-between;
  align-items: center;

  gap: 18px;

  padding: 9px 0;
}


/* =========================================================
   6. HEADER / NAVIGATION
   ========================================================= */

.header {
  position: sticky;
  top: 0;
  z-index: 90;

  background: rgba(255, 255, 255, 0.94);

  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);

  border-bottom: 1px solid rgba(216, 231, 235, 0.9);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 22px;

  min-height: 84px;
}

.logo {
  flex-shrink: 0;
}

.logo img {
  width: 215px;
  height: auto;
}

.menu {
  display: flex;
  align-items: center;

  gap: 23px;

  font-size: 0.94rem;
  font-weight: 800;
}

.menu a {
  position: relative;

  padding: 30px 0;
}

.menu a::after {
  content: "";

  position: absolute;

  left: 0;
  right: 100%;
  bottom: 21px;

  height: 2px;

  background: linear-gradient(
    90deg,
    var(--teal),
    var(--teal2)
  );

  transition: right 0.25s ease;
}

.menu a:hover::after,
.menu a.active::after {
  right: 0;
}

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

.mobile {
  display: none;

  padding: 8px;

  background: transparent;
  border: 0;

  color: var(--navy);

  font-size: 1.6rem;

  cursor: pointer;
}


/* =========================================================
   7. BUTTONS
   ========================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  gap: 8px;

  padding: 14px 22px;

  border: 0;
  border-radius: 999px;

  background: linear-gradient(
    135deg,
    var(--teal),
    var(--teal2)
  );

  color: var(--white);

  font-weight: 900;

  cursor: pointer;

  box-shadow: 0 10px 24px rgba(12, 120, 148, 0.2);

  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    background 0.22s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn.outline {
  background: var(--white);
  color: var(--teal);

  border: 1px solid #b9dce4;

  box-shadow: none;
}

.btn.dark {
  background: var(--navy);
  box-shadow: none;
}


/* =========================================================
   8. HOME HERO
   ========================================================= */

.hero {
  position: relative;

  display: grid;
  align-items: center;

  min-height: 700px;

  padding: 90px 0;

  overflow: hidden;

  background:
    linear-gradient(
      90deg,
      rgba(244, 251, 252, 0.99),
      rgba(244, 251, 252, 0.94) 46%,
      rgba(244, 251, 252, 0.22) 72%
    ),
    url("https://images.unsplash.com/photo-1576091160399-112ba8d25d1d?auto=format&fit=crop&w=1800&q=85")
      center / cover;
}

.hero::after {
  content: "";

  position: absolute;

  width: 520px;
  height: 520px;

  right: -210px;
  top: -120px;

  border: 1px solid rgba(12, 120, 148, 0.15);
  border-radius: 50%;

  box-shadow:
    0 0 0 72px rgba(12, 120, 148, 0.035),
    0 0 0 145px rgba(12, 120, 148, 0.02);

  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 2;

  display: grid;

  grid-template-columns: 1.02fr 0.98fr;

  gap: 54px;

  align-items: center;
}

.hero-card {
  width: min(440px, 100%);

  margin-left: auto;

  padding: 28px;

  background: rgba(255, 255, 255, 0.88);

  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);

  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 30px;

  box-shadow: var(--shadow);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;

  gap: 12px;

  margin-top: 27px;
}

.trust {
  display: flex;
  flex-wrap: wrap;

  gap: 20px;

  margin-top: 25px;

  color: #49636e;

  font-size: 0.93rem;
  font-weight: 800;
}

.trust span::before {
  content: "✓";

  margin-right: 8px;

  color: var(--teal);
}


/* =========================================================
   9. PAGE HERO
   ========================================================= */

.pagehero {
  position: relative;

  padding: 100px 0 82px;

  overflow: hidden;

  background:
    radial-gradient(
      circle at 82% 20%,
      rgba(43, 168, 189, 0.13),
      transparent 25%
    ),
    linear-gradient(
      135deg,
      #edf9fb,
      #ffffff
    );
}

.pagehero h1 {
  max-width: 920px;

  font-size: clamp(3rem, 5vw, 5.2rem);
}


/* =========================================================
   10. GENERAL SECTIONS
   ========================================================= */

.section {
  padding: 96px 0;
}

.section.soft {
  background: linear-gradient(
    180deg,
    #f7fcfd,
    #edf8fa
  );
}

.section.dark {
  background: linear-gradient(
    135deg,
    var(--navy),
    #0d465a
  );

  color: var(--white);
}

.section.dark h1,
.section.dark h2,
.section.dark h3 {
  color: var(--white);
}

.section-head {
  max-width: 820px;

  margin-bottom: 42px;
}


/* =========================================================
   11. GENERAL GRIDS
   ========================================================= */

.grid2 {
  display: grid;

  grid-template-columns: repeat(2, minmax(0, 1fr));

  gap: 42px;

  align-items: center;
}

.grid3 {
  display: grid;

  grid-template-columns: repeat(3, minmax(0, 1fr));

  gap: 23px;
}

.grid4 {
  display: grid;

  grid-template-columns: repeat(4, minmax(0, 1fr));

  gap: 20px;
}


/* =========================================================
   12. GENERAL CARDS
   ========================================================= */

.card {
  padding: 28px;

  background: var(--white);

  border: 1px solid var(--line);
  border-radius: var(--radius);

  box-shadow: var(--shadow2);

  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease;
}

.card:hover {
  transform: translateY(-5px);

  box-shadow: var(--shadow);
}

.card p {
  color: var(--muted);
}

.icon {
  display: grid;
  place-items: center;

  width: 55px;
  height: 55px;

  margin-bottom: 18px;

  background: var(--ice);

  border: 1px solid #d6eef2;
  border-radius: 17px;

  font-size: 1.45rem;
}

.link {
  display: inline-block;

  margin-top: 12px;

  color: var(--teal);

  font-weight: 900;
}


/* =========================================================
   13. PHOTO CARDS
   ========================================================= */

.photo-card {
  padding: 0;

  overflow: hidden;
}

.photo-card img {
  width: 100%;
  height: 465px;

  object-fit: cover;

  background: #eaf4f6;
}

.photo-card .body {
  padding: 24px;
}

.tag {
  display: inline-block;

  margin-bottom: 10px;

  padding: 6px 11px;

  background: #e7f5f7;

  border-radius: 999px;

  color: var(--teal);

  font-size: 0.76rem;
  font-weight: 900;
}


/* =========================================================
   14. PROVIDERS PAGE HERO
   ========================================================= */

.provider-hero {
  position: relative;

  padding: 112px 0 94px;

  overflow: hidden;

  background:
    radial-gradient(
      circle at 82% 22%,
      rgba(43, 168, 189, 0.18),
      transparent 25%
    ),
    radial-gradient(
      circle at 12% 88%,
      rgba(12, 120, 148, 0.08),
      transparent 22%
    ),
    linear-gradient(
      135deg,
      #eef9fb 0%,
      #ffffff 66%
    );
}

.provider-hero::after {
  content: "";

  position: absolute;

  top: -165px;
  right: -135px;

  width: 430px;
  height: 430px;

  border: 1px solid rgba(12, 120, 148, 0.13);
  border-radius: 50%;

  box-shadow:
    0 0 0 65px rgba(12, 120, 148, 0.03),
    0 0 0 130px rgba(12, 120, 148, 0.018);

  pointer-events: none;
}

.provider-hero__content {
  position: relative;
  z-index: 1;

  max-width: 860px;
}

.provider-hero__title {
  max-width: 900px;
}

.provider-hero__intro {
  max-width: 760px;

  margin: 0;

  color: #526b76;

  font-size: 1.18rem;
}

.provider-specialties {
  display: flex;
  flex-wrap: wrap;

  gap: 10px;

  margin-top: 26px;
}

.provider-specialties__item {
  display: inline-flex;
  align-items: center;

  gap: 8px;

  padding: 9px 13px;

  background: rgba(255, 255, 255, 0.82);

  border: 1px solid #d4e8ec;
  border-radius: 999px;

  color: #47636e;

  font-size: 0.88rem;
  font-weight: 800;
}

.provider-specialties__item::before {
  content: "✓";

  color: var(--teal);

  font-weight: 900;
}


/* =========================================================
   15. PROVIDER SECTIONS
   ========================================================= */

.provider-section {
  padding: 90px 0;
}

.provider-section--alt {
  background: linear-gradient(
    180deg,
    #f8fcfd,
    #eef8fa
  );
}

.provider-section__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;

  gap: 30px;

  margin-bottom: 34px;
}

.provider-section__description {
  max-width: 610px;

  margin: 0;

  color: var(--muted);
}


/* =========================================================
   16. PROVIDER GRIDS
   ========================================================= */

/*
   Standard physician grid:
   Eric Lin | Raed Ali | Ketan Patel
*/

.provider-grid {
  display: grid;

  grid-template-columns: repeat(3, minmax(0, 1fr));

  gap: 24px;
}


/*
   Midlevel provider grid:
   Genevieve | Ivy | Farnoosh | Tennille

   Add:
   class="provider-grid midlevel-grid"
   to the Midlevel Providers grid.
*/

.provider-grid.midlevel-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));

  gap: 20px;
}


/* =========================================================
   17. PROVIDER CARDS
   ========================================================= */

.provider-card {
  position: relative;

  display: flex;
  flex-direction: column;

  min-width: 0;

  overflow: hidden;

  background: var(--white);

  border: 1px solid var(--line);
  border-radius: 28px;

  box-shadow: var(--shadow2);

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.provider-card:hover {
  transform: translateY(-6px);

  box-shadow: var(--shadow);
}


/* Provider Image */

.provider-card__portrait {
  position: relative;

  width: 100%;

  aspect-ratio: 4 / 4.45;

  overflow: hidden;

  background: linear-gradient(
    145deg,
    #dff1f4,
    #f9fefe
  );
}

.provider-card__portrait img {
  position: relative;
  z-index: 1;

  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center top;

  transition: transform 0.45s ease;
}

.provider-card:hover .provider-card__portrait img {
  transform: scale(1.025);
}


/* Placeholder */

.provider-card__portrait--placeholder {
  display: grid;
  place-items: center;
}

.provider-card__initials {
  position: absolute;

  left: 50%;
  top: 50%;

  z-index: 0;

  display: grid;
  place-items: center;

  width: 116px;
  height: 116px;

  transform: translate(-50%, -50%);

  background: linear-gradient(
    135deg,
    var(--teal),
    var(--teal2)
  );

  border-radius: 50%;

  box-shadow: 0 18px 40px rgba(12, 120, 148, 0.22);

  color: var(--white);

  font-size: 2.5rem;
  font-weight: 900;

  letter-spacing: -0.04em;
}


/* Specialty Badge */

.provider-card__specialty {
  position: absolute;

  left: 18px;
  bottom: 18px;

  z-index: 3;

  max-width: calc(100% - 36px);

  padding: 8px 12px;

  background: rgba(11, 38, 53, 0.9);

  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);

  border-radius: 999px;

  color: var(--white);

  font-size: 0.75rem;
  font-weight: 900;

  line-height: 1.3;
}


/* Provider Body */

.provider-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;

  padding: 24px 24px 26px;
}

.provider-card__certification {
  color: var(--teal);

  font-size: 0.76rem;
  font-weight: 900;

  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.provider-card__name {
  margin: 7px 0;

  color: var(--navy);

  font-size: 1.42rem;

  line-height: 1.2;
}

.provider-card__description {
  min-height: 52px;

  margin: 0;

  color: var(--muted);
}

.provider-card__link {
  display: inline-flex;
  align-items: center;

  gap: 8px;

  margin-top: auto;
  padding-top: 18px;

  color: var(--teal);

  font-weight: 900;
}

.provider-card__link-arrow {
  transition: transform 0.2s ease;
}

.provider-card__link:hover .provider-card__link-arrow {
  transform: translateX(4px);
}


/* =========================================================
   18. MIDLEVEL PROVIDER CARD ADJUSTMENTS
   ========================================================= */

.midlevel-grid .provider-card__body {
  padding: 22px 20px 24px;
}

.midlevel-grid .provider-card__name {
  font-size: 1.22rem;
}

.midlevel-grid .provider-card__description {
  min-height: 48px;
}

.midlevel-grid .provider-card__specialty {
  left: 15px;
  bottom: 15px;

  max-width: calc(100% - 30px);

  font-size: 0.71rem;
}


/* =========================================================
   19. PROVIDER CTA
   ========================================================= */

.provider-cta {
  position: relative;

  display: grid;

  grid-template-columns: 1fr auto;

  align-items: center;

  gap: 34px;

  padding: 48px;

  overflow: hidden;

  background: linear-gradient(
    135deg,
    var(--navy),
    #0b6075
  );

  border-radius: 32px;

  color: var(--white);
}

.provider-cta::after {
  content: "";

  position: absolute;

  top: -90px;
  right: -60px;

  width: 240px;
  height: 240px;

  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;

  box-shadow:
    0 0 0 55px rgba(255, 255, 255, 0.04);

  pointer-events: none;
}

.provider-cta__content,
.provider-cta__action {
  position: relative;
  z-index: 1;
}

.provider-cta__title {
  margin-bottom: 10px;

  color: var(--white);
}

.provider-cta__text {
  margin: 0;

  color: #d8edf2;
}

.provider-cta .btn {
  background: var(--white);

  color: var(--teal);

  box-shadow: none;

  white-space: nowrap;
}

/* =========================================================
   20. Provider aligned
   ========================================================= */

/* .provider-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.provider-grid--midlevel {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

@media (max-width: 1100px) {
  .provider-grid--midlevel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 650px) {
  .provider-grid {
    grid-template-columns: 1fr;
  }
}
 */

/* =========================================================
   20. PROVIDER DETAIL PROFILE
   ========================================================= */

.profile {
  display: grid;

  grid-template-columns: 0.8fr 1.2fr;

  gap: 48px;

  align-items: start;
}

.profile-photo {
  position: sticky;

  top: 115px;

  overflow: hidden;

  background: #eef6f7;

  border-radius: 30px;

  box-shadow: var(--shadow);
}

.profile-photo img {
  width: 100%;

  max-height: 600px;

  object-fit: cover;
  object-position: center top;
}

.article h2 {
  margin-top: 36px;

  font-size: 2rem;
}

.article p,
.article li {
  color: #536d78;
}

.list {
  padding-left: 20px;
}

.list li {
  margin-bottom: 7px;
}


/* =========================================================
   21. MEDIA
   ========================================================= */

.media {
  min-height: 500px;

  overflow: hidden;

  border-radius: 34px;

  box-shadow: var(--shadow);
}

.media img {
  width: 100%;
  height: 100%;

  min-height: 500px;

  object-fit: cover;
}


/* =========================================================
   22. CALLOUT
   ========================================================= */

.callout {
  display: flex;
  justify-content: space-between;
  align-items: center;

  gap: 30px;

  padding: 42px;

  background: linear-gradient(
    135deg,
    var(--teal),
    #0a465b
  );

  border-radius: 32px;

  color: var(--white);
}

.callout h1,
.callout h2,
.callout h3 {
  color: var(--white);
}

.callout .btn {
  flex-shrink: 0;

  background: var(--white);

  color: var(--teal);

  box-shadow: none;

  white-space: nowrap;
}


/* =========================================================
   23. PROCEDURE FILTERS
   ========================================================= */

.proc-filter {
  display: flex;
  flex-wrap: wrap;

  gap: 10px;

  margin-bottom: 28px;
}

.filter {
  padding: 10px 15px;

  background: var(--white);

  border: 1px solid var(--line);
  border-radius: 999px;

  color: #536d78;

  font-weight: 800;

  cursor: pointer;
}

.filter.active {
  background: var(--navy);

  border-color: var(--navy);

  color: var(--white);
}

.proc-card[hidden] {
  display: none;
}


/* =========================================================
   24. ACCORDION
   ========================================================= */

.accordion {
  border-top: 1px solid var(--line);
}

.acc {
  border-bottom: 1px solid var(--line);
}

.acc button {
  display: flex;
  justify-content: space-between;
  align-items: center;

  width: 100%;

  gap: 20px;

  padding: 20px 0;

  background: transparent;

  border: 0;

  color: var(--navy);

  font-weight: 900;

  text-align: left;

  cursor: pointer;
}

.acc .answer {
  display: none;

  padding: 0 0 20px;

  color: var(--muted);
}

.acc.open .answer {
  display: block;
}


/* =========================================================
   25. CONTACT PAGE
   ========================================================= */

.contact {
  display: grid;

  grid-template-columns: 0.9fr 1.1fr;

  gap: 34px;
}

.contact-card {
  padding: 29px;

  background: var(--white);

  border: 1px solid var(--line);
  border-radius: 26px;

  box-shadow: var(--shadow2);
}

form {
  display: grid;

  gap: 14px;
}

input,
textarea,
select {
  width: 100%;

  padding: 15px;

  background: #fbfefe;

  border: 1px solid #cbdce1;
  border-radius: 13px;
}

input:focus,
textarea:focus,
select:focus {
  border-color: #62bdca;

  outline: 2px solid rgba(43, 168, 189, 0.15);
}

textarea {
  min-height: 145px;

  resize: vertical;
}

.form-note {
  color: #768b93;

  font-size: 0.83rem;
}

.status {
  min-height: 24px;

  color: var(--teal);

  font-size: 0.9rem;
  font-weight: 700;
}


/* =========================================================
   26. BADGES / NOTES
   ========================================================= */

.badge-note {
  padding: 14px 16px;

  background: #f4fafb;

  border: 1px solid var(--line);
  border-radius: 15px;

  color: var(--muted);

  font-size: 0.88rem;
}


/* =========================================================
   27. FOOTER
   ========================================================= */

.footer {
  padding: 68px 0 20px;

  background: #092633;

  color: #d9e9ed;
}

.footer-grid {
  display: grid;

  grid-template-columns: 1.25fr 0.8fr 1.15fr;

  gap: 44px;
}

.footer h3 {
  color: var(--white);
}

.footer a {
  display: block;

  margin: 8px 0;
}

.footer a:hover {
  color: var(--white);
}

.footer-logo {
  width: 220px;

  margin-bottom: 18px;

  filter: brightness(0) invert(1);
}

.copyright {
  margin-top: 40px;

  padding-top: 18px;

  border-top: 1px solid rgba(255, 255, 255, 0.13);

  font-size: 0.89rem;
}


/* =========================================================
   28. FLOATING ACTION BUTTONS
   ========================================================= */

.fab {
  position: fixed;

  right: 22px;
  bottom: 22px;

  z-index: 80;

  display: flex;
  flex-direction: column;

  gap: 10px;
}

.fab a,
.fab button {
  display: grid;
  place-items: center;

  width: 54px;
  height: 54px;

  padding: 0;

  background: var(--navy);

  border: 0;
  border-radius: 50%;

  color: var(--white);

  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.2);

  cursor: pointer;

  font-size: 1.2rem;
}

.backtop {
  opacity: 0;

  pointer-events: none;

  transition: opacity 0.2s ease;
}

.backtop.show {
  opacity: 1;

  pointer-events: auto;
}


/* =========================================================
   29. REVEAL ANIMATIONS
   ========================================================= */

.reveal {
  opacity: 0;

  transform: translateY(20px);

  transition:
    opacity 0.65s ease,
    transform 0.65s ease;
}

.reveal.in {
  opacity: 1;

  transform: none;
}


/* =========================================================
   30. RESPONSIVE - LARGE TABLET
   ========================================================= */

@media (max-width: 1100px) {

  /*
     Keep standard physicians at 3 columns until 1000px,
     but change 4 midlevel cards to 2 x 2.
  */

  .provider-grid.midlevel-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}


/* =========================================================
   31. RESPONSIVE - TABLET
   ========================================================= */

@media (max-width: 1000px) {

  /* Navigation */

  .menu {
    position: absolute;

    left: 0;
    right: 0;
    top: 84px;

    display: none;
    flex-direction: column;
    align-items: flex-start;

    gap: 4px;

    padding: 18px 4%;

    background: var(--white);

    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
  }

  .menu.open {
    display: flex;
  }

  .menu a {
    width: 100%;

    padding: 9px 0;
  }

  .menu a::after {
    bottom: 4px;
  }

  .actions {
    display: none;
  }

  .mobile {
    display: block;
  }


  /* General Layout */

  .hero-grid,
  .grid2,
  .contact,
  .footer-grid,
  .profile {
    grid-template-columns: 1fr;
  }

  .grid4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }


  /* Provider Layout */

  .provider-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .provider-grid.midlevel-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .provider-section__header {
    flex-direction: column;

    align-items: flex-start;
  }


  /* Profile */

  .profile-photo {
    position: relative;

    top: auto;

    max-width: 520px;
  }


  /* Hero */

  .hero-card {
    display: none;
  }

}


/* =========================================================
   32. RESPONSIVE - MOBILE
   ========================================================= */

@media (max-width: 690px) {

  .container {
    width: min(100% - 32px, var(--container));
  }


  /* Top Bar */

  .top .container {
    flex-direction: column;

    align-items: flex-start;

    gap: 2px;

    padding: 8px 0;
  }


  /* Header */

  .nav {
    min-height: 76px;
  }

  .logo img {
    width: 178px;
  }

  .menu {
    top: 76px;
  }


  /* Home Hero */

  .hero {
    min-height: auto;

    padding: 75px 0 88px;

    background:
      linear-gradient(
        rgba(244, 251, 252, 0.94),
        rgba(244, 251, 252, 0.97)
      ),
      url("https://images.unsplash.com/photo-1576091160399-112ba8d25d1d?auto=format&fit=crop&w=1000&q=80")
        center / cover;
  }


  /* Typography */

  h1,
  .pagehero h1 {
    font-size: 2.72rem;
  }


  /* Sections */

  .section {
    padding: 70px 0;
  }

  .pagehero {
    padding: 70px 0;
  }

  .provider-hero {
    padding: 72px 0 65px;
  }

  .provider-section {
    padding: 68px 0;
  }


  /* General Grids */

  .grid3,
  .grid4 {
    grid-template-columns: 1fr;
  }


  /* Provider Grids */

  .provider-grid,
  .provider-grid.midlevel-grid {
    grid-template-columns: 1fr;
  }

  .provider-card__portrait {
    aspect-ratio: 4 / 4.1;
  }

  .provider-card__name,
  .midlevel-grid .provider-card__name {
    font-size: 1.35rem;
  }


  /* CTA */

  .callout {
    flex-direction: column;

    align-items: flex-start;

    padding: 32px 26px;
  }

  .provider-cta {
    grid-template-columns: 1fr;

    padding: 32px;
  }


  /* Photo Cards */

  .photo-card img {
    height: 290px;
  }


  /* Floating Buttons */

  .fab {
    right: 14px;
    bottom: 14px;
  }

}


/* =========================================================
   33. SMALL MOBILE
   ========================================================= */

@media (max-width: 430px) {

  h1,
  .pagehero h1 {
    font-size: 2.35rem;
  }

  h2 {
    font-size: 2rem;
  }

  .provider-card__body {
    padding: 22px;
  }

  .provider-cta {
    padding: 27px 22px;
  }

  .callout {
    padding: 27px 22px;
  }

}


/* =========================================================
   34. REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;

    transform: none;

    transition: none;
  }

  .provider-card,
  .provider-card__portrait img,
  .provider-card__link-arrow,
  .card,
  .btn {
    transition: none;
  }

  .provider-card:hover,
  .card:hover,
  .btn:hover {
    transform: none;
  }

}

/* =========================================================
   35. SITE-WIDE CONSISTENCY / PROVIDERS
   Keep provider page aligned with the shared site layout.
   ========================================================= */

.provider-section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 30px;
  margin-bottom: 34px;
}

.provider-section-head p {
  max-width: 610px;
  margin: 0;
  color: var(--muted);
}

.provider-grid--midlevel {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.provider-grid--midlevel .provider-card__body { padding: 22px 20px 24px; }
.provider-grid--midlevel .provider-card__name { font-size: 1.22rem; }
.provider-grid--midlevel .provider-card__description { min-height: 48px; }
.provider-grid--midlevel .provider-card__specialty {
  left: 15px;
  bottom: 15px;
  max-width: calc(100% - 30px);
  font-size: 0.71rem;
}

@media (max-width: 1100px) {
  .provider-grid--midlevel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1000px) {
  .provider-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .provider-section-head { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 690px) {
  .provider-grid,
  .provider-grid--midlevel { grid-template-columns: 1fr; }
}

/* =========================================================
   36. HOME PAGE V3
   Styles moved from index.html.
   ========================================================= */

.home-hero-v3 {
  position: relative;
  overflow: hidden;
  padding: clamp(64px, 6vw, 108px) 0 100px;
  background: linear-gradient(120deg, #f7fbfb 0%, #edf7f7 59%, #e4f1ef 100%);
}

.home-hero-v3::after {
  content: "";
  position: absolute;
  width: 600px;
  height: 600px;
  right: -300px;
  bottom: -410px;
  border: 1px solid rgba(12, 120, 148, 0.13);
  border-radius: 50%;
  pointer-events: none;
}

.home-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
  align-items: center;
  gap: clamp(40px, 5vw, 88px);
}

.home-hero-copy { max-width: 650px; }

.home-hero-copy h1 {
  max-width: 650px;
  font-size: clamp(3.2rem, 4.7vw, 5.4rem);
  line-height: 1.04;
  text-wrap: balance;
}

.home-hero-copy .lead {
  max-width: 580px;
  margin-top: 24px;
  color: #345561;
  font-size: clamp(1.08rem, 1.3vw, 1.24rem);
  line-height: 1.65;
}

.home-hero-copy .hero-support {
  max-width: 580px;
  margin-top: 12px;
  color: #526d76;
  line-height: 1.6;
}

.home-hero-copy .hero-actions { margin-top: 28px; }

.home-hero-visual {
  position: relative;
  min-width: 0;
  height: clamp(480px, 42vw, 650px);
  margin: 0;
  border: 7px solid rgba(255, 255, 255, 0.95);
  border-radius: 32px;
  background: #d9e8e4;
  box-shadow: 0 26px 70px rgba(14, 62, 75, 0.18);
}

.home-hero-visual img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 25px;
  object-fit: cover;
  object-position: center center;
}

.home-hero-visual figcaption {
  position: absolute;
  right: 19px;
  bottom: 16px;
  padding: 5px 9px;
  border-radius: 6px;
  background: rgba(10, 38, 53, 0.72);
  color: #fff;
  font-size: 0.71rem;
  letter-spacing: 0.02em;
}

.hero-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 31px;
}

.hero-checks span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #345561;
  font-size: 0.88rem;
  font-weight: 700;
}

.hero-checks span::before {
  content: "✓";
  color: var(--teal);
  font-size: 1rem;
}

/* Quick access navigation */
.quick-access {
  position: relative;
  z-index: 5;
  margin-top: -38px;
}

.quick-access .inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
  border: 1px solid #d9e7ea;
  border-radius: 26px;
  background: var(--white);
  box-shadow: 0 22px 60px rgba(8, 48, 63, 0.11);
}

.quick-access a {
  padding: 24px;
  border-right: 1px solid #e2ecef;
  background: var(--white);
  transition: background 0.2s ease;
}

.quick-access a:last-child { border-right: 0; }
.quick-access a:hover { background: #f4fafb; }
.quick-access strong {
  display: block;
  margin-bottom: 4px;
  color: var(--navy);
  font-size: 1.03rem;
}
.quick-access span { color: var(--muted); font-size: 0.9rem; }

/* Home section headings */
.home-section { padding: 92px 0; }
.home-section.alt { background: linear-gradient(180deg, #f8fcfd, #eef8fa); }
.home-head { max-width: 820px; margin-bottom: 38px; }

/* Treatment cards */
.treatment-grid-v3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.treatment-card-v3 {
  position: relative;
  min-height: 315px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--white);
  box-shadow: 0 14px 40px rgba(8, 48, 63, 0.08);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.treatment-card-v3:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 70px rgba(8, 48, 63, 0.13);
}

.treatment-card-v3 .visual { height: 165px; overflow: hidden; background: #eaf4f6; }
.treatment-card-v3 .visual img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.45s ease; }
.treatment-card-v3:hover .visual img { transform: scale(1.035); }
.treatment-card-v3 .body { padding: 23px; }
.treatment-card-v3 .body p { margin-bottom: 0; color: var(--muted); }

.treatment-card-v3 .number {
  position: absolute;
  top: 145px;
  right: 18px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 4px solid var(--white);
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-weight: 900;
}

/* Service cards */
.service-row-v3 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.service-box-v3 { padding: 24px; border: 1px solid #d9e7eb; border-radius: 24px; background: var(--white); box-shadow: 0 12px 35px rgba(8, 48, 63, 0.07); }
.service-box-v3 .service-icon { display: grid; width: 52px; height: 52px; margin-bottom: 17px; place-items: center; border: 1px solid #d4edf2; border-radius: 16px; background: #edf8fa; color: var(--teal); font-size: 1.35rem; }

/* Split content and benefits */
.split-v3 { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 48px; }
.split-v3 .image-wrap { min-height: 500px; overflow: hidden; border-radius: 32px; box-shadow: 0 24px 68px rgba(8, 48, 63, 0.12); }
.split-v3 .image-wrap img { width: 100%; height: 100%; min-height: 500px; object-fit: cover; }
.benefit-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 24px; }
.benefit { padding: 18px; border: 1px solid var(--line); border-radius: 20px; background: var(--white); }
.benefit strong { display: block; margin-bottom: 5px; color: var(--navy); }

/* Provider cards */
.provider-strip-v3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.provider-mini { overflow: hidden; border: 1px solid var(--line); border-radius: 26px; background: var(--white); box-shadow: 0 13px 38px rgba(8, 48, 63, 0.08); }
.provider-mini img { width: 100%; height: 290px; object-fit: cover; object-position: center top; background: #edf5f6; }
.provider-mini .body { padding: 22px; }

/* Location section */
.location-band { display: grid; grid-template-columns: 0.9fr 1.1fr; align-items: center; gap: 38px; padding: 52px; border-radius: 32px; background: linear-gradient(135deg, #239bb2, #0c5d73); color: var(--white); }
.location-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.location-card-v3 { padding: 22px; border-radius: 22px; background: var(--white); color: var(--ink); }
.location-card-v3 p { margin-bottom: 10px; color: var(--muted); }

/* Accreditations and partner logos */
.accreditation-v3 {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(320px, 1.2fr);
  gap: 36px 80px;
  border-radius: 32px;
  padding: 64px clamp(24px, 8vw, 140px);
  background:#ffff;
}

.accreditation-v3 .eyebrow {
  display: block;
  margin-bottom: 14px;
  color: #211b45;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.accreditation-v3 h2 {
  margin: 0;
  color: #211b45;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 400;
  line-height: 1.1;
}

.accreditation-description { max-width: 600px; }
.accreditation-description p {
  margin: 0;
  color: #211b45;
  font-size: 0.9rem;
  line-height: 1.7;
}

.accreditation-icons {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(8, minmax(80px, 1fr));
  align-items: center;
  gap: 24px;
}

.accreditation-icons img {
  width: 100%;
  max-width: 130px;
  max-height: 55px;
  margin: auto;
  object-fit: contain;
  filter: saturate(0.65);
  opacity: 0.78;
}
.accreditation-icons .image-health-net img { 
  object-fit: cover;

}

/* Home call to action */
.home-cta-v3 { position: relative; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 30px; overflow: hidden; padding: 46px; border-radius: 32px; background: linear-gradient(135deg, #0c7894, #0b4357); color: var(--white); }
.home-cta-v3::after { content: ""; position: absolute; top: -90px; right: -60px; width: 240px; height: 240px; border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 50%; box-shadow: 0 0 0 55px rgba(255, 255, 255, 0.04); }
.home-cta-v3 > * { position: relative; z-index: 2; }
.home-cta-v3 .btn { color: var(--teal); white-space: nowrap; background: var(--white); box-shadow: none; }

/* Home page responsive layout */
@media (max-width: 1000px) {
  .split-v3,
  .location-band { grid-template-columns: 1fr; }
  .quick-access .inner,
  .service-row-v3 { grid-template-columns: 1fr 1fr; }
  .quick-access a:nth-child(2) { border-right: 0; }
  .quick-access a:nth-child(-n + 2) { border-bottom: 1px solid #e2ecef; }
}

@media (max-width: 900px) {
  .accreditation-v3 { grid-template-columns: 1fr; }
  .accreditation-icons { grid-column: auto; grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 760px) {
  .home-hero-v3 { padding: 60px 0 78px; }
  .home-hero-grid { grid-template-columns: 1fr; gap: 34px; }
  .home-hero-copy { max-width: 720px; }
  .home-hero-copy h1 { font-size: clamp(3rem, 8vw, 4.6rem); }
  .home-hero-visual { height: clamp(330px, 60vw, 480px); }
  .quick-access { margin-top: -26px; }
  .quick-access .inner,
  .treatment-grid-v3,
  .service-row-v3,
  .provider-strip-v3,
  .location-cards { grid-template-columns: 1fr; }
  .quick-access a { border-right: 0 !important; border-bottom: 1px solid #e2ecef !important; }
  .quick-access a:last-child { border-bottom: 0 !important; }
  .home-section { padding: 68px 0; }
  .benefit-list { grid-template-columns: 1fr; }
  .home-cta-v3 { grid-template-columns: 1fr; padding: 32px; }
  .location-band { padding: 32px; }
}

@media (max-width: 560px) {
  .home-hero-v3 { padding: 48px 0 62px; }
  .home-hero-copy h1 { font-size: clamp(2.75rem, 10vw, 3.7rem); }
  .home-hero-copy .lead { margin-top: 18px; }
  .home-hero-copy .hero-actions .btn { width: 100%; }
  .home-hero-visual { height: min(105vw, 380px); border-width: 5px; border-radius: 24px; }
  .home-hero-visual img { border-radius: 19px; }
  .hero-checks { gap: 8px 16px; }
  .accreditation-v3 { padding: 48px 24px; }
  .accreditation-icons { grid-template-columns: repeat(2, 1fr); }
}

/* Homepage utility classes replacing inline style attributes */
.centered-actions {
  justify-content: center;
  margin-top: 28px;
}

.eyebrow-light {
  color: #b9edf3;
}

