:root {
  --bg: #f3f7f8;
  --surface: rgba(255, 255, 255, 0.88);
  --surface-strong: #ffffff;
  --ink: #10252a;
  --muted: #5b7078;
  --line: rgba(16, 37, 42, 0.1);
  --primary: #0b6c78;
  --primary-deep: #083f49;
  --accent: #4aa7a2;
  --warm: #d7ebe8;
  --shadow: 0 18px 50px rgba(11, 108, 120, 0.12);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --container: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--ink);
  font-family: "DM Sans", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(74, 167, 162, 0.12), transparent 28%),
    linear-gradient(180deg, #f7fbfb 0%, #edf4f5 100%);
}

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

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

.site-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 85% 12%, rgba(11, 108, 120, 0.09), transparent 24%),
    radial-gradient(circle at 8% 86%, rgba(74, 167, 162, 0.12), transparent 22%);
}

.container {
  width: min(calc(100% - 2rem), var(--container));
  margin: 0 auto;
}

.navbar,
.footer-grid,
.hero-inner,
.section,
.split-layout,
.page-hero-inner,
.page-content-grid,
.cta-banner {
  position: relative;
  z-index: 1;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(calc(100% - 2rem), var(--container));
  margin: 0 auto;
  padding: 0.85rem 0 1.2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
}

.brand span {
  min-width: 0;
}

.brand img {
  width: 62px;
  height: 62px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.brand strong {
  display: block;
  font-size: 1.04rem;
  line-height: 1.25;
}

.brand small {
  display: block;
  margin-top: 0.2rem;
  color: var(--muted);
  line-height: 1.4;
}

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
  border-radius: 999px;
}

.nav-menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.65rem;
}

.nav-menu a {
  padding: 0.72rem 1rem;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 700;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.nav-menu a:hover,
.nav-menu a:focus-visible,
.nav-menu a.active {
  background: rgba(11, 108, 120, 0.1);
  color: var(--primary-deep);
  transform: translateY(-1px);
}

.hero-home {
  padding: 0 0 2rem;
}

.hero-slideshow {
  position: relative;
  min-height: 620px;
  overflow: hidden;
}

.slide,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.slide {
  background-position: center;
  background-size: cover;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 650ms ease, transform 650ms ease;
}

.slide.active {
  opacity: 1;
  transform: scale(1);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(8, 63, 73, 0.88), rgba(8, 63, 73, 0.54) 55%, rgba(8, 63, 73, 0.28)),
    linear-gradient(180deg, rgba(8, 63, 73, 0.16), rgba(8, 63, 73, 0.7));
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(290px, 0.7fr);
  gap: 1.5rem;
  align-items: center;
  min-height: 620px;
  padding: 3.4rem 0;
}

.hero-copy,
.hero-panel,
.feature-card,
.pathway-card,
.trust-card,
.page-hero-card,
.content-card,
.sidebar-card,
.cta-banner {
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.hero-copy {
  max-width: 54rem;
  color: #f7fcfc;
  transform: translateY(-2.25rem);
}

.hero-panel {
  margin-top: 5rem;
}

.hero-copy h1,
.section-heading h2,
.split-layout h2,
.cta-banner h2,
.page-hero-copy h1,
.content-card h2,
.sidebar-card h3,
.feature-card h3,
.pathway-card h3,
.trust-card h3 {
  margin: 0;
  font-family: "Libre Baskerville", serif;
  line-height: 1.08;
}

.hero-copy h1 {
  max-width: 11ch;
  font-size: clamp(2.9rem, 5vw, 5.2rem);
}

.hero-copy p,
.section-heading p,
.section-copy,
.feature-card p,
.pathway-card p,
.trust-card p,
.content-card p,
.content-card li,
.sidebar-card p,
.sidebar-card li,
.cta-banner p,
.footer p,
.page-hero-copy p {
  color: var(--muted);
  line-height: 1.8;
}

.hero-copy p {
  max-width: 62ch;
  margin: 1.2rem 0 0;
  color: rgba(247, 252, 252, 0.88);
}

.hero-subtitle {
  max-width: 24ch;
  font-size: clamp(1.05rem, 2vw, 1.45rem);
  font-weight: 700;
  line-height: 1.5;
}

.eyebrow {
  margin: 0 0 0.9rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--accent);
}

.soft,
.soft-dark {
  color: rgba(255, 255, 255, 0.82);
}

.soft-dark {
  color: rgba(16, 37, 42, 0.62);
}

.hero-actions,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.35rem;
  padding: 0.9rem 1.35rem;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #ffffff;
}

.btn-secondary,
.btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.2);
  color: var(--primary-deep);
  border-color: rgba(11, 108, 120, 0.18);
}

.hero-panel,
.page-hero-card {
  padding: 1.6rem;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.14);
  color: #f7fcfc;
}

.info-list,
.check-list,
.bullet-list {
  margin: 0;
  padding-left: 1.2rem;
}

.info-list li,
.check-list li,
.bullet-list li {
  margin: 0.7rem 0;
  line-height: 1.7;
}

.slide-dots {
  display: flex;
  gap: 0.65rem;
  margin-top: 1.5rem;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 1.8rem;
  z-index: 1;
  margin-top: 0;
  transform: translateX(-50%);
}

.dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
}

.dot.active {
  width: 34px;
  background: #ffffff;
}

.section {
  padding: 2rem 0;
}

.section-heading {
  max-width: 52rem;
  margin-bottom: 1.4rem;
}

.section-heading.narrow {
  max-width: 44rem;
}

.section-heading h2,
.split-layout h2,
.cta-banner h2,
.page-hero-copy h1,
.content-card h2 {
  font-size: clamp(2rem, 3vw, 3.1rem);
}

.card-grid,
.pathway-grid,
.trust-grid,
.page-content-grid,
.split-layout {
  display: grid;
  gap: 1.2rem;
}

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

.feature-card {
  display: block;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.feature-card:hover,
.feature-card:focus-visible {
  transform: translateY(-4px);
}

.card-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3rem;
  min-height: 2rem;
  border-radius: 999px;
  background: rgba(11, 108, 120, 0.1);
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.feature-card h3 {
  margin-top: 1rem;
  font-size: 1.38rem;
}

.section-band {
  margin: 2rem 0;
  background: linear-gradient(180deg, rgba(11, 108, 120, 0.08), rgba(74, 167, 162, 0.08));
}

.split-layout {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
}

.pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.pill-grid span,
.tag-cloud span {
  display: inline-flex;
  align-items: center;
  min-height: 2.6rem;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--line);
  color: var(--primary-deep);
  font-weight: 700;
}

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

.pathway-card,
.trust-card,
.content-card,
.sidebar-card {
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.pathway-card strong {
  display: inline-block;
  margin-bottom: 0.8rem;
  color: var(--primary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.74rem;
}

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

.cta-banner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.25rem;
  align-items: center;
  padding: 1.7rem;
  border-radius: var(--radius-xl);
  background: linear-gradient(145deg, rgba(215, 235, 232, 0.9), rgba(255, 255, 255, 0.92));
}

.footer {
  padding: 2rem 0 2.6rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
  width: min(calc(100% - 2rem), var(--container));
  margin: 0 auto;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
}

.page-hero {
  padding: 1rem 0 2rem;
}

.page-hero-shell {
  position: relative;
  overflow: hidden;
  border-radius: 36px;
  background:
    linear-gradient(90deg, rgba(8, 63, 73, 0.9), rgba(8, 63, 73, 0.72)),
    var(--primary-deep);
}

.page-hero-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center;
  opacity: 0.22;
}

.page-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.75fr);
  gap: 1.2rem;
  align-items: center;
  padding: 3.4rem;
}

.page-hero-copy {
  color: #f7fcfc;
}

.page-hero-copy-compact {
  max-width: 32rem;
}

.page-hero-copy-compact h1 {
  max-width: 12ch;
  font-size: clamp(1.38rem, 2vw, 2rem);
  line-height: 1.16;
}

.page-hero-copy-compact p {
  max-width: 36ch;
  font-size: 0.98rem;
}

.page-hero-copy p {
  margin: 1rem 0 0;
  color: rgba(247, 252, 252, 0.86);
  max-width: 56ch;
}

.page-hero-figure {
  display: grid;
  gap: 0.9rem;
}

.page-hero-figure img {
  width: 100%;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.18);
  padding: 1rem;
}

.page-main {
  padding-bottom: 2rem;
}

.page-content-grid {
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  align-items: start;
}

.content-card + .content-card,
.sidebar-card + .sidebar-card {
  margin-top: 1.2rem;
}

.content-card h3 {
  margin-top: 0;
  font-size: 1.3rem;
}

.two-col-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem 1.2rem;
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 1.2rem;
}

.mini-card {
  padding: 1rem;
  border-radius: 18px;
  background: rgba(11, 108, 120, 0.07);
  border: 1px solid rgba(11, 108, 120, 0.08);
}

.mini-card strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--primary-deep);
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.quick-links {
  display: grid;
  gap: 0.7rem;
  margin-top: 1rem;
}

.quick-links a {
  display: block;
  padding: 0.9rem 1rem;
  border-radius: 16px;
  background: rgba(11, 108, 120, 0.07);
  color: var(--primary-deep);
  font-weight: 700;
}

.doctor-team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(250px, 320px));
  justify-content: center;
  gap: 1.4rem;
}

.insurance-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(230px, 1fr));
  gap: 1.2rem;
}

.team-card,
.staff-photo-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
  max-width: 760px;
  margin: 0 auto;
}

.team-card img {
  width: 100%;
  aspect-ratio: 4 / 4.6;
  object-fit: contain;
  background: rgba(11, 108, 120, 0.06);
  padding: 1.15rem;
}

.team-card-body {
  padding: 1.1rem 1.2rem 1.3rem;
}

.team-card-body h3 {
  margin: 0 0 0.8rem;
  font-family: "Libre Baskerville", serif;
  font-size: 1.14rem;
}

.team-card-body p {
  margin: 0.45rem 0;
  line-height: 1.7;
  color: var(--muted);
}

.staff-photo-card img {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.team-source {
  margin-top: 1rem;
  color: var(--muted);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 480ms ease, transform 480ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1024px) {
  .hero-inner,
  .page-hero-inner,
  .page-content-grid,
  .split-layout,
  .facilities-grid,
  .doctor-team-grid,
  .insurance-grid,
  .pathway-grid,
  .trust-grid,
  .footer-grid,
  .cta-banner,
  .mini-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy h1 {
    max-width: 12ch;
  }
}

@media (max-width: 820px) {
  .nav-toggle {
    display: inline-block;
  }

  .navbar {
    flex-wrap: wrap;
    align-items: center;
  }

  .nav-menu {
    display: none;
    width: 100%;
    padding-top: 0.75rem;
    justify-content: flex-start;
    gap: 0.6rem;
  }

  .nav-menu.open {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 0.85rem;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: var(--shadow);
  }

  .nav-menu a {
    background: rgba(255, 255, 255, 0.75);
    text-align: center;
  }

  .hero-slideshow,
  .hero-inner {
    min-height: 520px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 1rem;
    padding: 2rem 0 2.5rem;
  }

  .hero-copy {
    transform: none;
    max-width: none;
  }

  .hero-copy h1 {
    max-width: none;
  }

  .hero-panel {
    margin-top: 0;
  }

  .hero-actions .btn,
  .cta-actions .btn {
    width: 100%;
  }

  .page-hero-inner {
    padding: 2rem;
  }

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

@media (max-width: 640px) {
  .container,
  .navbar,
  .footer-grid {
    width: min(calc(100% - 1rem), var(--container));
  }

  .brand {
    gap: 0.7rem;
  }

  .brand img {
    width: 52px;
    height: 52px;
    border-radius: 14px;
  }

  .hero-inner {
    min-height: auto;
    padding: 1.25rem 0 1.75rem;
  }

  .hero-copy h1,
  .page-hero-copy h1,
  .section-heading h2,
  .split-layout h2,
  .cta-banner h2,
  .content-card h2 {
    font-size: 2.2rem;
  }

  .hero-subtitle {
    max-width: none;
    font-size: 1rem;
    line-height: 1.6;
  }

  .hero-actions,
  .cta-actions {
    gap: 0.7rem;
  }

  .hero-actions {
    margin-top: 3rem;
  }

  .hero-panel,
  .page-hero-card,
  .feature-card,
  .pathway-card,
  .trust-card,
  .content-card,
  .sidebar-card,
  .cta-banner {
    padding: 1.2rem;
    border-radius: 22px;
  }

  .nav-menu.open {
    grid-template-columns: 1fr;
  }

  .nav-menu a {
    width: 100%;
  }

  .page-hero-shell {
    border-radius: 24px;
  }

  .section {
    padding: 1.5rem 0;
  }

  .facilities-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
  }

  .feature-card {
    padding: 1.1rem;
  }

  .feature-card h3 {
    margin-top: 0.8rem;
    font-size: 1.08rem;
  }

  .feature-card p {
    font-size: 0.93rem;
    line-height: 1.6;
  }

  .hero-dots {
    bottom: 1.1rem;
  }

  .page-hero-inner {
    padding: 1.4rem;
    gap: 1rem;
  }

  .page-hero-figure img {
    padding: 0.55rem;
    border-radius: 18px;
  }

  .two-col-list {
    grid-template-columns: 1fr;
  }

  .doctor-team-grid,
  .insurance-grid {
    justify-content: stretch;
  }

  .team-card,
  .staff-photo-card {
    max-width: 100%;
  }

  .team-card-body {
    padding: 1rem;
  }
}

@media (max-width: 420px) {
  .facilities-grid {
    grid-template-columns: 1fr;
  }
}
