@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Refined Color Palette - Modern & Elegant */
  --ink: #0f172a;
  --ink-soft: #1e293b;
  --ink-light: #334155;
  --muted: #64748b;
  --muted-light: #94a3b8;
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --bg-accent: #f1f5f9;
  --panel: #ffffff;
  --accent: #3b82f6;
  --accent-hover: #2563eb;
  --accent-light: #60a5fa;
  --accent-soft: #93c5fd;
  --accent-bg: rgba(59, 130, 246, 0.08);
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  
  /* Enhanced Spacing - More Refined */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;
  --space-4xl: 8rem;
  
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 28px;
  
  /* Enhanced Shadows - More Depth */
  --shadow-sm: 0 1px 2px 0 rgba(15, 23, 42, 0.05), 0 1px 3px 0 rgba(15, 23, 42, 0.1);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.1), 0 2px 4px -1px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.1), 0 4px 6px -2px rgba(15, 23, 42, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 10px 10px -5px rgba(15, 23, 42, 0.04);
  
  /* Typography - Enhanced */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --line-height-tight: 1.2;
  --line-height-normal: 1.6;
  --line-height-relaxed: 1.8;
}

/* Reset & Base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  line-height: var(--line-height-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-weight: 400;
  font-size: 16px;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

a:hover {
  color: var(--accent-hover);
}

/* Typography - Clean & Minimal */
h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: var(--line-height-tight);
  color: var(--ink);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.hero--home h1,
.hero--sub h1 {
  margin-bottom: var(--space-lg);
  background: linear-gradient(135deg, var(--ink) 0%, var(--ink-soft) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s both;
}

h2 {
  font-size: clamp(1.875rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

h3 {
  font-size: clamp(1.375rem, 3vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.list-block__title {
  font-size: clamp(1.125rem, 2.5vw, 1.375rem);
  font-weight: 600;
  margin-bottom: var(--space-md);
  color: var(--ink);
}

.footer__title {
  font-size: 1.5rem;
  font-weight: 800;
  color: white;
  margin-bottom: var(--space-md);
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, white 0%, rgba(255, 255, 255, 0.9) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

p {
  margin: 0;
  color: var(--muted);
  line-height: var(--line-height-relaxed);
  font-size: 1rem;
}

/* Topbar - Enhanced & Refined */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg) var(--space-xl);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid rgba(59, 130, 246, 0.1);
  box-shadow: 0 1px 3px 0 rgba(15, 23, 42, 0.05), 0 1px 2px 0 rgba(15, 23, 42, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.topbar::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.2), transparent);
}

.topbar__brand a {
  font-weight: 800;
  font-size: 1.375rem;
  color: var(--ink);
  letter-spacing: -0.03em;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  display: inline-block;
}

.topbar__brand a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.topbar__brand a:hover {
  color: var(--accent);
}

.topbar__brand a:hover::after {
  width: 100%;
}

.topbar__nav {
  display: flex;
  gap: var(--space-xs);
  align-items: center;
}

.topbar__nav a {
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--ink-soft);
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-md);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.topbar__nav a::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-md);
  background: var(--accent-bg);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.topbar__nav a:hover {
  color: var(--accent);
  transform: translateY(-1px);
}

.topbar__nav a:hover::before {
  opacity: 1;
}

.topbar__nav a {
  position: relative;
  z-index: 1;
}

.topbar__toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.16);
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.topbar__toggle-bars {
  position: relative;
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: background 0.2s ease;
}
.topbar__toggle-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.topbar__toggle-bars::before,
.topbar__toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.2s ease, top 0.2s ease;
}
.topbar__toggle-bars::before {
  top: -6px;
}
.topbar__toggle-bars::after {
  top: 6px;
}

/* Breadcrumbs */
.breadcrumbs {
  margin-bottom: var(--space-lg);
}

.breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-xs);
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.875rem;
}

.breadcrumbs__item {
  display: flex;
  align-items: center;
  color: var(--muted);
}

.breadcrumbs__item:not(:last-child)::after {
  content: '/';
  margin-left: var(--space-xs);
  color: var(--muted-light);
  font-weight: 300;
}

.breadcrumbs__link {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
  display: flex;
  align-items: center;
}

.breadcrumbs__link:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

.breadcrumbs__item--current {
  color: var(--ink);
  font-weight: 500;
}

.breadcrumbs--in-hero {
  margin: 0 auto var(--space-xl);
  padding: 0;
  max-width: 1100px;
  width: 100%;
  position: relative;
  z-index: 2;
}

.breadcrumbs--in-hero .breadcrumbs__list {
  justify-content: center;
}

.hero--clinic .breadcrumbs--in-hero .breadcrumbs__list {
  justify-content: flex-start;
}

/* Page Container - Symmetric */
.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-xl) var(--space-lg) var(--space-3xl);
}

.page > .hero--home:first-child {
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  margin-top: calc(-1 * var(--space-2xl));
  width: 100vw;
  max-width: 100vw;
}

.page > .hero--sub:first-child,
.page > .hero--clinic:first-child {
  margin-top: calc(-1 * var(--space-2xl));
}

/* Hero - Enhanced Landing Page Style */
.hero {
  text-align: center;
  padding: var(--space-4xl) var(--space-xl);
  margin-bottom: var(--space-3xl);
  background: var(--panel);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-soft), transparent);
  opacity: 0.3;
}

.hero--home {
  padding: var(--space-3xl) var(--space-2xl) var(--space-3xl);
  background: 
    radial-gradient(ellipse at top, rgba(59, 130, 246, 0.05) 0%, transparent 50%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 50%, var(--bg) 100%);
  border: none;
  border-radius: 0;
  margin: 0 0 var(--space-3xl) 0;
  box-shadow: none;
  position: relative;
  overflow: hidden;
}

.hero--home::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: 
    radial-gradient(circle at 20% 30%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(59, 130, 246, 0.06) 0%, transparent 50%);
  animation: float 20s ease-in-out infinite;
  pointer-events: none;
}

.hero--home::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.3), transparent);
  opacity: 0.5;
}

@keyframes float {
  0%, 100% {
    transform: translate(0, 0) rotate(0deg);
  }
  33% {
    transform: translate(30px, -30px) rotate(120deg);
  }
  66% {
    transform: translate(-20px, 20px) rotate(240deg);
  }
}

.hero--sub {
  padding: var(--space-3xl) var(--space-2xl) var(--space-3xl);
  background: 
    radial-gradient(ellipse at top, rgba(59, 130, 246, 0.05) 0%, transparent 50%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 50%, var(--bg) 100%);
  border: none;
  border-radius: 0;
  margin: calc(-1 * var(--space-3xl)) calc(-50vw + 50%) var(--space-3xl);
  width: 100vw;
  max-width: 100vw;
  box-shadow: none;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.hero--sub::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: 
    radial-gradient(circle at 20% 30%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(59, 130, 246, 0.06) 0%, transparent 50%);
  animation: float 20s ease-in-out infinite;
  pointer-events: none;
}

.hero--sub::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.3), transparent);
  opacity: 0.5;
}

@media (min-width: 1024px) {
  .page > .hero--sub {
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    width: 100vw;
    max-width: 100vw;
  }
  .page > .hero--sub:first-child {
    margin-top: calc(-1 * var(--space-2xl));
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .page > .hero--sub {
    margin-left: calc(-1 * var(--space-lg));
    margin-right: calc(-1 * var(--space-lg));
    width: calc(100% + 2 * var(--space-lg));
    max-width: calc(100% + 2 * var(--space-lg));
  }
  .page > .hero--sub:first-child {
    margin-top: calc(-1 * var(--space-xl));
  }
}

@media (max-width: 767px) {
  .page > .hero--sub {
    margin-left: calc(-1 * var(--space-md));
    margin-right: calc(-1 * var(--space-md));
    width: calc(100% + 2 * var(--space-md));
    max-width: calc(100% + 2 * var(--space-md));
  }
  .page > .hero--sub:first-child {
    margin-top: calc(-1 * var(--space-lg));
  }
}

.hero--clinic {
  padding: var(--space-3xl) var(--space-xl);
  text-align: left;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
}

.hero__wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

.hero--clinic .hero__wrapper {
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-3xl);
  align-items: stretch;
}

.hero__content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero--home .hero__content,
.hero--sub .hero__content {
  animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero--clinic .hero__content {
  margin: 0;
  max-width: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero__image-wrapper {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__image-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.1);
  pointer-events: none;
}

.hero--clinic .hero__image-wrapper {
  min-height: 400px;
  align-self: stretch;
}

.hero--clinic .hero__image {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  margin: 0;
  min-height: 400px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: var(--space-lg);
  padding: var(--space-xs) var(--space-md);
  background: var(--accent-bg);
  border-radius: var(--radius-md);
  border: 1px solid rgba(59, 130, 246, 0.2);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.hero--home .eyebrow,
.hero--sub .eyebrow {
  animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.1s both;
}

.eyebrow:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: rgba(59, 130, 246, 0.3);
}

.lede {
  font-size: 1.25rem;
  color: var(--ink-light);
  line-height: var(--line-height-relaxed);
  max-width: 700px;
  margin: 0 auto var(--space-2xl);
  font-weight: 400;
}

.hero--home .lede,
.hero--sub .lede {
  animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.3s both;
  font-size: clamp(1.125rem, 2vw, 1.375rem);
}

/* Search - Enhanced & Centered */
.search {
  display: flex;
  gap: var(--space-sm);
  max-width: 700px;
  margin: var(--space-2xl) auto;
  position: relative;
}

.hero--home .search {
  animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.4s both;
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-lg);
  padding: var(--space-sm);
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(59, 130, 246, 0.1);
}

.search input {
  flex: 1;
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-md);
  border: 2px solid var(--border);
  font-size: 1.0625rem;
  font-family: var(--font-sans);
  background: var(--bg);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.hero--home .search input {
  border: 2px solid rgba(59, 130, 246, 0.15);
  background: rgba(255, 255, 255, 0.95);
}

.search input:hover {
  border-color: var(--accent-light);
}

.search input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15), var(--shadow-md);
  transform: translateY(-1px);
  background: var(--bg);
}

.search input::placeholder {
  color: var(--muted-light);
}

.search button {
  padding: var(--space-md) var(--space-xl);
  border: none;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
  color: white;
  font-weight: 600;
  font-size: 1rem;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.search button::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent) 100%);
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: -1;
}

.search button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.search button:hover::before {
  opacity: 1;
}

.search__hint {
  text-align: center;
  font-size: 0.875rem;
  color: var(--muted);
  margin-top: var(--space-md);
  padding: var(--space-sm) var(--space-md);
  background: rgba(59, 130, 246, 0.05);
  border-radius: var(--radius-md);
  border: 1px solid rgba(59, 130, 246, 0.1);
  display: inline-block;
}

.hero--home .search__hint {
  animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.5s both;
  margin-top: var(--space-lg);
}

/* Metrics - Symmetric Grid */
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
  margin: var(--space-3xl) 0;
  align-items: stretch;
}

.metric {
  text-align: center;
  padding: var(--space-2xl) var(--space-xl);
  background: var(--panel);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 100%;
  position: relative;
  overflow: hidden;
}

.metric::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.metric:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: var(--accent-light);
}

.metric:hover::before {
  transform: scaleX(1);
}

.metric__icon {
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 0 var(--space-md) 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  opacity: 0.95;
  flex-shrink: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: var(--accent-bg);
  border-radius: var(--radius-md);
  padding: var(--space-sm);
}

.metric:hover .metric__icon {
  transform: scale(1.1);
  opacity: 1;
}

.metric__icon .icon {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  fill: none;
  display: block;
  margin: 0;
  padding: 0;
  vertical-align: middle;
}

.metric strong {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 var(--space-xs) 0;
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-align: center;
}

.metric span {
  display: block;
  font-size: 0.875rem;
  color: var(--muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0;
  line-height: 1.4;
  text-align: center;
}

/* Panel - Clean Sections */
.panel {
  background: var(--panel);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  margin-bottom: var(--space-xl);
  border: 1px solid var(--border);
}

.panel__header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--space-2xl);
}

.panel__header h2 {
  margin: var(--space-md) 0 var(--space-sm);
}

.panel__header p {
  max-width: 600px;
  margin: var(--space-md) auto 0;
}

.panel__action {
  display: flex;
  justify-content: center;
  margin: var(--space-xl) 0 var(--space-lg);
}

/* Button Styles */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 1rem;
  font-family: var(--font-sans);
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn--primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
  color: white;
  box-shadow: var(--shadow-md);
}

.btn--primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent) 100%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn--primary:hover::before {
  opacity: 1;
}

.btn span {
  position: relative;
  z-index: 1;
}

.btn svg {
  position: relative;
  z-index: 1;
  transition: transform 0.25s ease;
}

.btn:hover svg {
  transform: translateX(4px);
}

/* Cards - Symmetric Grid with 16:9 Images */
.cards {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.cards--grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-lg);
}

[data-search-results] {
  min-height: 200px;
  transition: opacity 0.3s ease;
}

[data-search-results]:empty {
  display: none;
}

.card {
  background: var(--panel);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  position: relative;
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0);
  transition: box-shadow 0.3s ease;
  pointer-events: none;
  z-index: 1;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: var(--accent-light);
}

.card:hover::before {
  box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.15);
}

.card__image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--bg-accent);
  display: block;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover .card__image {
  transform: scale(1.05);
}

.card__body {
  padding: var(--space-lg);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-md);
}

.card__title {
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--ink);
  line-height: var(--line-height-tight);
  flex: 1;
}

.card__title:hover {
  color: var(--accent);
}

.card__rating {
  background: linear-gradient(135deg, var(--accent-bg), rgba(59, 130, 246, 0.12));
  color: var(--accent-hover);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.875rem;
  white-space: nowrap;
  border: 1px solid rgba(59, 130, 246, 0.2);
  box-shadow: var(--shadow-sm);
}

.card__meta {
  font-size: 0.875rem;
  color: var(--muted);
  font-weight: 500;
}

.card__desc {
  color: var(--ink-light);
  font-size: 0.9375rem;
  line-height: var(--line-height-relaxed);
  flex: 1;
}

.card__footer {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  padding-top: var(--space-sm);
  border-top: 1px solid var(--border-light);
}

.card--compact {
  padding: var(--space-lg);
  gap: var(--space-sm);
  border-left: 3px solid var(--accent);
  background: var(--bg);
  box-shadow: var(--shadow-sm);
  position: relative;
  isolation: isolate;
}

.card--compact .card__header {
  align-items: flex-start;
  gap: var(--space-xs);
}

.card--compact .card__title {
  font-size: 1.05rem;
  line-height: 1.2;
}

.card--compact .card__rating {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--ink-soft);
  padding: var(--space-2xs) var(--space-xs);
  border-radius: 999px;
  font-weight: 600;
}

.card--compact .card__meta {
  display: inline-flex;
  gap: var(--space-xs);
  align-items: center;
  color: var(--ink-light);
}

.card--compact .card__meta::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.card--compact .card__desc {
  margin-top: var(--space-xs);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.card--compact .card__footer {
  padding-top: var(--space-md);
  gap: var(--space-xs);
}

.card--compact .pill {
  background: var(--bg-soft);
  border-color: var(--border);
}

.card--compact .pill--ghost {
  background: transparent;
}

/* Pills - Minimal Tags */
.pill {
  display: inline-flex;
  align-items: center;
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-md);
  background: var(--bg-soft);
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 0.8125rem;
  border: 1px solid var(--border);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.pill:hover {
  background: var(--accent-bg);
  border-color: var(--accent-light);
  color: var(--accent);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.pill--ghost {
  background: transparent;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

/* Chips - Sector Cards */
.chips {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: var(--space-lg);
}

.chip {
  background: var(--panel);
  border-radius: var(--radius-lg);
  padding: var(--space-xl) var(--space-lg);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-sm);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
}

.chip--feature {
  background: linear-gradient(135deg, var(--bg) 0%, var(--bg-soft) 100%);
  border: 2px solid var(--border);
  padding: var(--space-xl) var(--space-lg);
  cursor: default;
}

.chip--feature:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-light);
}

.chip--contact {
  flex-direction: row;
  gap: var(--space-lg);
  align-items: center;
  text-align: left;
  background: linear-gradient(135deg, var(--bg) 0%, var(--bg-soft) 100%);
  border: 2px solid var(--border);
  padding: var(--space-xl);
  cursor: default;
}

.chip--contact:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-light);
}

.chip__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-bg);
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

.chip__icon .icon {
  width: 24px;
  height: 24px;
  color: var(--accent);
}

.chip::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.chip:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: var(--accent-light);
}

.chip:hover::before {
  transform: scaleX(1);
}

.chip span {
  font-size: 1rem;
  color: var(--ink-soft);
  font-weight: 600;
}

.chip strong {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.02em;
}

/* Hero Panel - Detail Pages */
.hero__panel {
  background: var(--bg-soft);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  border: 1px solid var(--border);
  text-align: left;
}

.hero__panel h2 {
  margin-bottom: var(--space-lg);
}

/* Bullets - Enhanced Clean Lists */
.bullets {
  list-style: none;
  padding: 0;
  margin: var(--space-lg) 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.bullets li {
  padding: var(--space-md) var(--space-lg);
  background: var(--bg-soft);
  border-radius: var(--radius-md);
  color: var(--ink-soft);
  font-size: 1rem;
  border: 1px solid var(--border);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  padding-left: var(--space-2xl);
}

.bullets li::before {
  content: '→';
  position: absolute;
  left: var(--space-md);
  color: var(--accent);
  font-weight: 600;
  transition: transform 0.2s ease;
}

.bullets li:hover {
  background: var(--accent-bg);
  border-color: var(--accent-light);
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
}

.bullets li:hover::before {
  transform: translateX(4px);
}

.bullets li strong {
  color: var(--ink);
  font-weight: 600;
  margin-right: var(--space-xs);
}

.bullets li a {
  color: var(--accent);
  font-weight: 500;
  transition: color 0.2s ease;
}

.bullets li a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

/* List Block */
.list-block {
  margin-top: var(--space-xl);
}


.list-block ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.list-block ul li {
  padding: var(--space-sm) var(--space-md);
  background: var(--bg-soft);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  font-size: 0.9375rem;
}

.list-block ul li strong {
  color: var(--ink);
  font-weight: 600;
}

/* Index List */
.index-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.index-list li {
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--panel);
  transition: all 0.2s ease;
}

.index-list li:hover {
  border-color: var(--accent-light);
  box-shadow: var(--shadow-sm);
}

/* Map Embed */
.map-embed {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  margin: var(--space-lg) 0;
}

.map-embed iframe {
  width: 100%;
  height: 400px;
  border: 0;
  display: block;
}

/* SEO Text - Enhanced Design */
.seo-text {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.0625rem;
}

.seo-text p {
  margin-bottom: var(--space-lg);
  line-height: 1.9;
  color: var(--ink-light);
  font-size: 1.0625rem;
}

.seo-text h2,
.seo-text h3 {
  margin: var(--space-2xl) 0 var(--space-md);
  line-height: 1.35;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.seo-text h3 {
  margin-top: var(--space-xl);
}

.seo-text h4 {
  margin: var(--space-2xl) 0 var(--space-md);
  color: var(--ink);
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--border);
  position: relative;
}

.seo-text h4::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
}

.seo-text p:last-child {
  margin-bottom: 0;
}

.seo-text ul,
.seo-text ol {
  margin: var(--space-lg) 0;
  padding-left: var(--space-xl);
  line-height: 1.75;
  color: var(--ink-light);
}

.seo-text li {
  margin-bottom: var(--space-md);
}

.seo-text li:last-child {
  margin-bottom: 0;
}

.seo-text a {
  color: var(--accent);
  font-weight: 500;
  transition: all 0.2s ease;
}

.seo-text a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

/* Footer - Enhanced & Modern */
.footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-2xl);
  padding: var(--space-3xl) var(--space-xl);
  background: linear-gradient(180deg, var(--ink) 0%, var(--ink-soft) 100%);
  color: #e5e7eb;
  margin-top: var(--space-3xl);
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.3), transparent);
}

.footer::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 40%;
  height: 200%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.footer > div:first-child {
  position: relative;
  z-index: 1;
}

.footer p {
  color: #9ca3af;
  font-size: 0.9375rem;
  line-height: var(--line-height-relaxed);
  max-width: 400px;
}

.footer a {
  color: #d1d5db;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  display: inline-block;
}

.footer a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--accent-light), var(--accent-soft));
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer a:hover {
  color: white;
  transform: translateX(4px);
}

.footer a:hover::after {
  width: 100%;
}

.footer__links {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: var(--space-lg);
  position: relative;
  z-index: 1;
}

.footer__links a {
  font-size: 0.9375rem;
  font-weight: 500;
  padding: var(--space-xs) 0;
}

/* Panel Two Column Layout */
.panel--two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  padding: var(--space-2xl);
}

/* Responsive - Maintain Symmetry */
@media (max-width: 1024px) {
  .page {
    padding: var(--space-2xl) var(--space-lg);
  }

  .page > .hero--home {
    margin-left: calc(-1 * var(--space-lg));
    margin-right: calc(-1 * var(--space-lg));
    margin-top: calc(-1 * var(--space-2xl));
    width: calc(100% + 2 * var(--space-lg));
    max-width: calc(100% + 2 * var(--space-lg));
  }

  .hero {
    padding: var(--space-2xl) var(--space-lg);
  }

  .hero--home {
    padding: var(--space-2xl) var(--space-lg);
  }

  .hero--clinic {
    padding: var(--space-2xl) var(--space-lg);
  }

  .hero--clinic .hero__wrapper {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .hero--clinic .hero__content {
    text-align: center;
  }

  .hero--clinic .pill-row {
    justify-content: center !important;
  }

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

  .cards--grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }

  .panel--two {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
}

@media (max-width: 768px) {
  .topbar {
    padding: var(--space-md) var(--space-lg);
  }

  .topbar__nav {
    width: 100%;
    justify-content: flex-start;
  }

  .page {
    padding: var(--space-xl) var(--space-md);
  }

  .hero {
    padding: var(--space-xl) var(--space-md);
  }

  .page > .hero--home {
    margin-left: calc(-1 * var(--space-md));
    margin-right: calc(-1 * var(--space-md));
    margin-top: calc(-1 * var(--space-xl));
    width: calc(100% + 2 * var(--space-md));
    max-width: calc(100% + 2 * var(--space-md));
  }

  .hero--home {
    padding: var(--space-xl) var(--space-md);
    margin: 0 0 var(--space-xl) 0;
  }

  .search {
    flex-direction: column;
  }

  .search button {
    width: 100%;
  }

  .metrics {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .metric {
    padding: var(--space-xl) var(--space-md);
  }

  .metric__icon {
    width: 2.75rem;
    height: 2.75rem;
  }

  .panel {
    padding: var(--space-lg);
  }

  .panel__header {
    margin-bottom: var(--space-lg);
  }

  .cards--grid {
    grid-template-columns: 1fr;
  }

  .chips {
    grid-template-columns: 1fr;
  }

  .footer {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
    padding: var(--space-3xl) var(--space-md);
  }

  .footer p {
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .metric strong {
    font-size: 2rem;
  }

  .card__body {
    padding: var(--space-md);
  }
}

@media (max-width: 1024px) {
  .topbar {
    gap: var(--space-sm);
  }

  .topbar__toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .topbar__toggle:active {
    transform: scale(0.98);
  }

  .topbar__nav {
    position: absolute;
    top: calc(100% + 10px);
    left: var(--space-md);
    right: var(--space-md);
    z-index: 110;
    width: auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-xs);
    padding: 12px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(15, 23, 42, 0.10);
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
  }

  .topbar--open .topbar__nav {
    display: flex;
  }

  .topbar__nav a::before {
    display: none;
  }

  .topbar__nav a {
    display: block;
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(59, 130, 246, 0.08);
    color: var(--ink);
    font-weight: 600;
  }

  .topbar__nav a:hover {
    background: rgba(59, 130, 246, 0.14);
    color: var(--accent-hover);
    transform: none;
  }

  .topbar--open .topbar__toggle-bars {
    background: transparent;
  }

  .topbar--open .topbar__toggle-bars::before {
    top: 0;
    transform: rotate(45deg);
  }

  .topbar--open .topbar__toggle-bars::after {
    top: 0;
    transform: rotate(-45deg);
  }
}
