:root {
  --ink: #10222e;
  --ink-soft: #51616d;
  --paper: #fbfcf8;
  --white: #ffffff;
  --line: #dfe7e5;
  --teal: #0b7c80;
  --teal-dark: #07595d;
  --mint: #d8f2ed;
  --coral: #e56a54;
  --coral-soft: #fff0ed;
  --gold: #d5a247;
  --sage: #eef7f1;
  --sky: #eaf5fb;
  --shadow: 0 22px 60px rgba(12, 41, 54, 0.14);
  --shadow-soft: 0 14px 36px rgba(16, 34, 46, 0.08);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  letter-spacing: 0;
}

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

a {
  color: inherit;
}

button,
input,
select {
  font: inherit;
}

svg {
  width: 1.05rem;
  height: 1.05rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -5rem;
  z-index: 10;
  padding: 0.7rem 1rem;
  border-radius: 8px;
  background: var(--ink);
  color: var(--white);
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  padding: 1rem;
  transition: background 0.2s ease, box-shadow 0.2s ease, padding 0.2s ease;
}

.site-header.is-scrolled {
  padding: 0.55rem 1rem;
  background: rgba(251, 252, 248, 0.94);
  box-shadow: 0 12px 30px rgba(16, 34, 46, 0.1);
  backdrop-filter: blur(18px);
}

.nav-shell {
  width: min(1180px, calc(100% - 1rem));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
  color: var(--white);
  text-decoration: none;
}

.site-header.is-scrolled .brand {
  color: var(--ink);
}

.brand-logo {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  flex-shrink: 0;
  mix-blend-mode: luminosity;
  filter: brightness(1.08);
}

.brand strong,
.brand small {
  display: block;
  white-space: nowrap;
}

.brand strong {
  font-size: 0.98rem;
}

.brand small {
  color: currentColor;
  opacity: 0.74;
  font-size: 0.78rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  color: var(--white);
}

.site-header.is-scrolled .nav-links {
  color: var(--ink);
}

.nav-links a {
  color: inherit;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 650;
}

.nav-links a:not(.nav-cta):hover {
  color: var(--mint);
}

.site-header.is-scrolled .nav-links a:not(.nav-cta):hover {
  color: var(--teal);
}

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 2.9rem;
  padding: 0 1.05rem;
  border: 1px solid transparent;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

.nav-cta {
  color: var(--ink);
  background: var(--white);
}

.nav-links .nav-cta {
  color: var(--ink);
}

.site-header.is-scrolled .nav-links .nav-cta {
  color: var(--white);
  background: var(--teal);
}

.icon-button {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 8px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
}

.site-header.is-scrolled .icon-button {
  color: var(--ink);
  border-color: var(--line);
  background: var(--white);
}

.hero {
  position: relative;
  min-height: 86vh;
  display: flex;
  align-items: center;
  padding: 8rem 1.5rem 5.5rem;
  color: var(--white);
  background-image: url("assets/hero-clinic.jpg");
  background-position: center;
  background-size: cover;
  isolation: isolate;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(8, 31, 42, 0.94), rgba(8, 31, 42, 0.64) 46%, rgba(8, 31, 42, 0.24)),
    linear-gradient(0deg, rgba(8, 31, 42, 0.62), rgba(8, 31, 42, 0.05));
}

.hero-content {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.hero-kicker,
.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: 4.5rem;
  line-height: 0.95;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 700px;
  margin: 1.35rem 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.18rem;
  line-height: 1.75;
}

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

.button-primary {
  color: var(--white);
  background: var(--teal);
  box-shadow: 0 12px 30px rgba(11, 124, 128, 0.3);
}

.button-primary:hover {
  background: var(--teal-dark);
}

.button-secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.button-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
}

.button-light {
  color: var(--ink);
  border-color: var(--line);
  background: var(--white);
}

.proof-band {
  position: relative;
  z-index: 2;
  width: min(1040px, calc(100% - 2rem));
  margin: -3.1rem auto 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow);
}

.proof-item {
  min-height: 6.1rem;
  padding: 1.25rem;
  border-right: 1px solid var(--line);
}

.proof-item:last-child {
  border-right: 0;
}

.proof-item span {
  display: block;
  font-size: 1.55rem;
  font-weight: 900;
}

.proof-item p {
  margin: 0.2rem 0 0;
  color: var(--ink-soft);
}

.section-pad {
  padding: 6rem 1.5rem;
}

.section-shell {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.intro-grid,
.visit-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 3.5rem;
  align-items: start;
}

.intro-grid h2,
.section-heading h2,
.visual-copy h2,
.booking-panel h2,
.visit-grid h2 {
  margin: 0;
  font-size: 2.55rem;
  line-height: 1.08;
  letter-spacing: 0;
}

.intro-copy p,
.section-heading p,
.visit-copy {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.75;
}

.quick-actions,
.visit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.35rem;
}

.quick-actions a {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.8rem;
  padding: 0 0.95rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--white);
  text-decoration: none;
  font-weight: 750;
}

.services-section {
  background: linear-gradient(180deg, var(--sage), rgba(238, 247, 241, 0));
}

.section-heading {
  max-width: 760px;
  margin-bottom: 2rem;
}

.section-heading p {
  margin-top: 1rem;
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1.4rem;
}

.filter-tab {
  min-width: 5.6rem;
  min-height: 2.65rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--white);
  font-weight: 800;
  cursor: pointer;
}

.filter-tab.active {
  color: var(--white);
  border-color: var(--teal);
  background: var(--teal);
}

.service-grid,
.review-grid,
.doctor-grid {
  display: grid;
  gap: 1rem;
}

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

.service-card,
.review-card,
.doctor-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.service-card {
  min-height: 13.5rem;
  padding: 1.35rem;
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(11, 124, 128, 0.35);
}

.service-card.is-hidden {
  display: none;
}

.service-icon {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 1.2rem;
  border-radius: 8px;
  color: var(--teal);
  background: var(--mint);
  font-weight: 900;
}

.service-card:nth-child(3n + 2) .service-icon {
  color: #8c4d00;
  background: #fff4d8;
}

.service-card:nth-child(3n) .service-icon {
  color: var(--coral);
  background: var(--coral-soft);
}

.service-card h3,
.doctor-card h3 {
  margin: 0 0 0.6rem;
  font-size: 1.22rem;
}

.service-card p,
.doctor-card p,
.review-card p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.65;
}

.visual-band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  background: var(--ink);
  color: var(--white);
}

.visual-panel {
  min-height: 35rem;
}

.visual-panel img {
  width: 100%;
  height: 100%;
  min-height: 35rem;
  object-fit: cover;
}

.visual-copy {
  max-width: 610px;
  padding: 4rem;
}

.visual-copy h2 {
  color: var(--white);
}

.check-list {
  display: grid;
  gap: 0.85rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 2rem;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.55;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2rem;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: inset 0 0 0 0.32rem var(--ink);
  border: 1px solid var(--coral);
}

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

.doctor-card {
  display: grid;
  grid-template-columns: 5rem 1fr;
  gap: 1.3rem;
  min-height: 15rem;
  padding: 1.45rem;
}

.doctor-initials {
  display: grid;
  place-items: center;
  width: 5rem;
  height: 5rem;
  border-radius: 8px;
  color: var(--white);
  background: linear-gradient(135deg, var(--teal), var(--gold));
  font-weight: 900;
  font-size: 1.25rem;
}

.doctor-photo {
  width: 5rem;
  height: 5rem;
  border-radius: 8px;
  object-fit: cover;
  object-position: center top;
  flex-shrink: 0;
}

.doctor-alt {
  background: linear-gradient(135deg, var(--coral), var(--teal-dark));
}

.role {
  margin: 0 0 0.35rem;
  color: var(--teal);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.doctor-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1rem;
}

.doctor-meta span {
  padding: 0.42rem 0.62rem;
  border-radius: 8px;
  color: var(--ink);
  background: var(--sky);
  font-size: 0.82rem;
  font-weight: 750;
}

.reviews-section {
  background: var(--sky);
}

.reviews-map-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 3rem;
  align-items: center;
}

.reviews-rating-panel {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.reviews-score {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.reviews-number {
  font-size: 4rem;
  font-weight: 800;
  color: var(--teal);
  line-height: 1;
}

.reviews-stars {
  display: flex;
  gap: 0.2rem;
}

.reviews-stars svg {
  width: 1.4rem;
  height: 1.4rem;
  fill: var(--gold);
}

.reviews-count {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.reviews-blurb {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.65;
}

.reviews-cta {
  align-self: flex-start;
}

.reviews-map-embed {
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  line-height: 0;
}

.reviews-map-embed iframe {
  display: block;
  width: 100%;
  height: 420px;
}

.booking-section {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  background: var(--white);
}

.booking-image img {
  width: 100%;
  height: 100%;
  min-height: 44rem;
  object-fit: cover;
}

.booking-panel {
  display: grid;
  align-content: center;
  padding: 5rem min(6vw, 5rem);
}

.booking-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

.booking-form label {
  display: grid;
  gap: 0.45rem;
}

.booking-form span {
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 800;
}

.booking-form input,
.booking-form select {
  width: 100%;
  min-height: 3.1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 0.85rem;
  color: var(--ink);
  background: var(--paper);
}

.booking-form input:focus,
.booking-form select:focus {
  outline: 3px solid rgba(11, 124, 128, 0.2);
  border-color: var(--teal);
}

.booking-form button,
.form-status {
  grid-column: 1 / -1;
}

.form-status {
  min-height: 1.4rem;
  margin: 0;
  color: var(--coral);
  font-weight: 800;
}

.visit-section {
  background: var(--coral-soft);
}

.visit-grid {
  align-items: stretch;
}

.visit-copy {
  margin-top: 1.1rem;
}

.map-card {
  position: relative;
  min-height: 25rem;
  display: grid;
  place-items: center;
  align-content: center;
  border: 1px solid rgba(229, 106, 84, 0.24);
  border-radius: 8px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(11, 124, 128, 0.12) 1px, transparent 1px),
    linear-gradient(0deg, rgba(11, 124, 128, 0.12) 1px, transparent 1px),
    linear-gradient(135deg, #fdf9ee, #e9f6f3 48%, #fff0ed);
  background-size: 54px 54px, 54px 54px, auto;
  box-shadow: var(--shadow-soft);
}

.map-card p {
  margin: 1rem 0 0;
  font-size: 1.4rem;
  font-weight: 900;
}

.map-card span {
  margin-top: 0.25rem;
  color: var(--ink-soft);
  font-weight: 750;
}

.map-pin {
  position: relative;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background: var(--coral);
  box-shadow: 0 22px 44px rgba(229, 106, 84, 0.28);
}

.map-pin::after {
  content: "";
  position: absolute;
  inset: 1.35rem;
  border-radius: 50%;
  background: var(--white);
}

.site-footer {
  padding: 2.4rem 1.5rem 5rem;
  background: var(--ink);
  color: var(--white);
}

.footer-shell {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 2rem;
}

.footer-shell p {
  margin: 0.45rem 0 0;
  color: rgba(255, 255, 255, 0.7);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-weight: 750;
}

.mobile-cta {
  display: none;
}

@media (max-width: 980px) {
  .icon-button {
    display: inline-flex;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 0.6rem);
    left: 1rem;
    right: 1rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.7rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    background: var(--white);
    box-shadow: var(--shadow-soft);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    padding: 0.9rem;
  }

  .nav-cta {
    color: var(--white);
    background: var(--teal);
  }

  .hero h1 {
    font-size: 3.4rem;
  }

  .proof-band,
  .service-grid,
  .review-grid,
  .doctor-grid,
  .booking-section,
  .visual-band,
  .intro-grid,
  .visit-grid,
  .reviews-map-layout {
    grid-template-columns: 1fr;
  }

  .reviews-map-embed iframe {
    height: 300px;
  }

  .proof-band {
    margin-top: -2.2rem;
  }

  .proof-item {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .proof-item:last-child {
    border-bottom: 0;
  }

  .visual-panel,
  .visual-panel img,
  .booking-image img {
    min-height: 24rem;
  }

  .booking-image {
    order: 2;
  }

  .booking-panel {
    padding: 4rem 1.5rem;
  }
}

@media (max-width: 680px) {
  .site-header {
    padding: 0.7rem 0.6rem;
  }

  .brand small {
    display: none;
  }

  .hero {
    min-height: 82vh;
    padding: 6.5rem 1rem 4rem;
    background-position: 62% center;
  }

  .hero h1 {
    font-size: 2.75rem;
  }

  .hero-copy {
    font-size: 1rem;
  }

  .hero-actions,
  .visit-actions,
  .quick-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button,
  .quick-actions a {
    width: 100%;
  }

  .proof-band {
    grid-template-columns: repeat(2, 1fr);
  }

  .proof-item {
    min-height: 5.8rem;
  }

  .proof-item:nth-child(odd) {
    border-right: 1px solid var(--line);
  }

  .proof-item:nth-child(3) {
    border-bottom: 0;
  }

  .section-pad {
    padding: 4.3rem 1rem;
  }

  .intro-grid h2,
  .section-heading h2,
  .visual-copy h2,
  .booking-panel h2,
  .visit-grid h2 {
    font-size: 2rem;
  }

  .service-grid {
    gap: 0.8rem;
  }

  .visual-copy {
    padding: 3rem 1rem;
  }

  .doctor-card {
    grid-template-columns: 1fr;
  }

  .booking-form {
    grid-template-columns: 1fr;
  }

  .footer-shell {
    flex-direction: column;
  }

  .mobile-cta {
    position: fixed;
    left: 0.8rem;
    right: 0.8rem;
    bottom: 0.8rem;
    z-index: 30;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
    padding: 0.55rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);
  }

  .mobile-cta a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 2.75rem;
    border-radius: 8px;
    color: var(--white);
    background: var(--teal);
    text-decoration: none;
    font-weight: 900;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
