@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Playfair+Display:wght@600;700&display=swap");

:root {
  --background: 38 26% 93%;
  --foreground: 187 15% 30%;
  --card: 40 20% 96%;
  --card-foreground: 187 15% 30%;
  --primary: 120 13% 55%;
  --primary-foreground: 38 26% 96%;
  --secondary: 80 15% 45%;
  --muted: 80 10% 75%;
  --muted-foreground: 187 10% 45%;
  --accent: 80 20% 40%;
  --border: 80 10% 80%;
  --shadow: 0 18px 40px rgba(67, 79, 69, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: "Inter", sans-serif;
  line-height: 1.6;
}

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

button,
input,
textarea {
  font: inherit;
}

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

[hidden] {
  display: none !important;
}

.site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-main {
  flex: 1;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid hsl(var(--border) / 0.65);
  background: hsl(var(--background) / 0.88);
  backdrop-filter: blur(14px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: "Playfair Display", serif;
  font-size: 1.4rem;
  font-weight: 700;
}

.brand__logo {
  width: 1.4rem;
  height: 1.4rem;
  color: hsl(var(--primary));
}

.site-nav {
  display: inline-flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.nav-link {
  color: hsl(var(--muted-foreground));
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: hsl(var(--primary));
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 999px;
  padding: 0.8rem 1.35rem;
  font-size: 0.95rem;
  font-weight: 600;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button--primary {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  box-shadow: 0 10px 24px hsl(var(--primary) / 0.2);
}

.button--secondary {
  border: 1px solid hsl(var(--border));
  background: hsl(var(--card));
  color: hsl(var(--foreground));
}

.button--ghost {
  border: 1px solid hsl(var(--border));
  background: transparent;
  color: hsl(var(--foreground));
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 5rem 0 3.25rem;
}

.page-hero::before,
.page-hero::after {
  content: "";
  position: absolute;
  border-radius: 46% 54% 61% 39% / 38% 41% 59% 62%;
  background: linear-gradient(135deg, rgba(186, 200, 183, 0.55), rgba(214, 221, 210, 0.3));
  pointer-events: none;
}

.page-hero::before {
  top: 2.5rem;
  left: -4rem;
  width: 16rem;
  height: 13rem;
}

.page-hero::after {
  top: 0;
  right: -7rem;
  width: 22rem;
  height: 18rem;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  background: hsl(var(--primary) / 0.12);
  color: hsl(var(--primary));
  font-size: 0.85rem;
  font-weight: 600;
}

.page-title {
  margin: 1rem 0 0;
  font-family: "Playfair Display", serif;
  font-size: clamp(2.6rem, 6vw, 4.8rem);
  line-height: 0.98;
}

.page-title em {
  color: hsl(var(--primary));
  font-style: italic;
}

.page-intro {
  max-width: 46rem;
  margin: 1.2rem 0 0;
  color: hsl(var(--muted-foreground));
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin-top: 1.6rem;
}

.surface {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border) / 0.85);
  border-radius: 1.5rem;
  box-shadow: var(--shadow);
}

.section {
  padding: 0 0 4rem;
}

.section__heading {
  margin-bottom: 1.5rem;
}

.section__heading h2 {
  margin: 0;
  font-family: "Playfair Display", serif;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.02;
}

.section__heading p {
  max-width: 42rem;
  margin: 0.7rem 0 0;
  color: hsl(var(--muted-foreground));
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) auto auto;
  gap: 1rem;
  align-items: center;
  padding: 1.2rem;
}

.search-form {
  position: relative;
}

.search-form input,
.field,
.textarea {
  width: 100%;
  border: 1px solid hsl(var(--border));
  border-radius: 1rem;
  background: hsl(var(--card));
  color: hsl(var(--foreground));
  padding: 0.95rem 1rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-form input {
  padding-right: 8rem;
}

.search-form input:focus,
.field:focus,
.textarea:focus {
  border-color: hsl(var(--primary));
  box-shadow: 0 0 0 4px hsl(var(--primary) / 0.11);
}

.search-form button {
  position: absolute;
  top: 0.45rem;
  right: 0.45rem;
  bottom: 0.45rem;
}

.toolbar-actions {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.summary {
  margin: 1rem 0 0;
  color: hsl(var(--muted-foreground));
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0 0;
}

.chip {
  border: 1px solid hsl(var(--border));
  border-radius: 999px;
  background: hsl(var(--card));
  color: hsl(var(--foreground));
  padding: 0.7rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.chip:hover,
.chip.is-active {
  transform: translateY(-1px);
  border-color: hsl(var(--primary));
  color: hsl(var(--primary));
}

.directory-grid,
.detail-grid,
.page-grid,
.card-grid {
  display: grid;
  gap: 1.25rem;
}

.directory-grid,
.card-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.page-grid {
  grid-template-columns: minmax(0, 1.4fr) minmax(18rem, 0.8fr);
}

.detail-grid {
  grid-template-columns: 1.15fr 0.85fr;
}

.clinic-card,
.info-card,
.feature-card,
.map-card {
  padding: 1.35rem;
}

.clinic-card__eyebrow,
.kicker {
  color: hsl(var(--primary));
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.clinic-card h3,
.feature-card h3,
.info-card h3 {
  margin: 0.45rem 0 0;
  font-family: "Playfair Display", serif;
  font-size: 1.4rem;
}

.meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0.8rem 0 0.95rem;
  color: hsl(var(--muted-foreground));
  font-size: 0.95rem;
}

.rating {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3.25rem;
  border-radius: 999px;
  background: hsl(var(--primary) / 0.12);
  color: hsl(var(--primary));
  padding: 0.35rem 0.75rem;
  font-weight: 700;
}

.stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: hsl(var(--primary) / 0.12);
  color: hsl(var(--primary));
  padding: 0.38rem 0.72rem;
  font-size: 0.84rem;
  font-weight: 600;
}

.pill--muted {
  background: hsl(var(--muted) / 0.28);
  color: hsl(var(--muted-foreground));
}

.card-copy {
  margin: 0.9rem 0 1.1rem;
  color: hsl(var(--muted-foreground));
}

.split-line {
  border-top: 1px solid hsl(var(--border));
  margin: 1rem 0;
}

.map-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.map-card h3 {
  margin: 0.4rem 0 0;
  font-family: "Playfair Display", serif;
  font-size: 1.3rem;
}

.map-card p {
  margin: 0.7rem 0 0;
  color: hsl(var(--muted-foreground));
}

.aside-stack {
  display: grid;
  gap: 1rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 1rem;
  color: hsl(var(--primary));
  font-weight: 600;
}

.prose p,
.prose li {
  color: hsl(var(--muted-foreground));
}

.prose h2,
.prose h3 {
  margin: 0 0 0.8rem;
  font-family: "Playfair Display", serif;
}

.prose h2 {
  font-size: 2rem;
}

.prose h3 {
  font-size: 1.35rem;
}

.prose p + h2,
.prose p + h3,
.prose ul + h2,
.prose ul + h3 {
  margin-top: 1.5rem;
}

.prose ul {
  margin: 0.75rem 0 0;
  padding-left: 1.2rem;
}

.prose li + li {
  margin-top: 0.45rem;
}

.notice {
  padding: 1rem 1.1rem;
  border: 1px solid hsl(var(--border));
  border-radius: 1rem;
  background: hsl(var(--primary) / 0.08);
  color: hsl(var(--foreground));
}

.form-grid {
  display: grid;
  gap: 1rem;
}

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

.textarea {
  min-height: 10rem;
  resize: vertical;
}

.footer {
  margin-top: 2rem;
  border-top: 1px solid hsl(var(--border) / 0.8);
  background: hsl(var(--card) / 0.85);
}

.footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) repeat(2, minmax(0, 0.7fr));
  gap: 2rem;
  padding: 3rem 0;
}

.footer h4 {
  margin: 0 0 0.8rem;
  font-family: "Playfair Display", serif;
  font-size: 1.2rem;
}

.footer p,
.footer li + li {
  margin-top: 0.45rem;
}

.footer p,
.footer li,
.footer a {
  color: hsl(var(--muted-foreground));
}

.footer__bar {
  border-top: 1px solid hsl(var(--border));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 0 2rem;
  color: hsl(var(--muted-foreground));
  font-size: 0.92rem;
}

.empty-state {
  padding: 1.5rem;
  text-align: center;
  color: hsl(var(--muted-foreground));
}

@media (max-width: 900px) {
  .toolbar,
  .page-grid,
  .detail-grid,
  .footer__inner {
    grid-template-columns: 1fr;
  }

  .site-header__inner {
    padding: 0.75rem 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    width: 100%;
    justify-content: space-between;
  }
}

@media (max-width: 700px) {
  .site-nav {
    gap: 1rem;
  }

  .site-nav .button {
    width: 100%;
  }

  .hero-actions,
  .toolbar-actions,
  .form-grid--two,
  .footer__bar {
    grid-template-columns: 1fr;
    display: grid;
  }

  .button,
  .chip {
    justify-content: center;
  }
}
