/* ============================================
   BestPeptidesRX.com — Global Styles
   Medical Directory / Longevity Aesthetic
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,500;0,9..144,600;0,9..144,700;1,9..144,400&family=Outfit:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --white: #ffffff;
  --bg: #f8fafb;
  --bg-alt: #f0f4f6;
  --surface: #ffffff;
  --border: #e2e8f0;
  --border-light: #edf2f7;

  --teal-900: #0c4a4a;
  --teal-800: #115e5e;
  --teal-700: #0f766e;
  --teal-600: #0d9488;
  --teal-500: #14b8a6;
  --teal-400: #2dd4bf;
  --teal-100: #ccfbf1;
  --teal-50: #f0fdfa;

  --ink: #0f1729;
  --ink-soft: #1e293b;
  --text: #334155;
  --text-muted: #64748b;
  --text-light: #94a3b8;

  --gold: #d4a843;
  --gold-soft: #fef3c7;
  --coral: #f87171;
  --green: #22c55e;

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --shadow-sm: 0 1px 3px rgba(15,23,42,0.04), 0 1px 2px rgba(15,23,42,0.03);
  --shadow: 0 4px 12px rgba(15,23,42,0.06), 0 1px 4px rgba(15,23,42,0.04);
  --shadow-lg: 0 12px 40px rgba(15,23,42,0.08), 0 4px 12px rgba(15,23,42,0.04);
  --shadow-teal: 0 4px 20px rgba(13,148,136,0.15);

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Outfit', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; transition: color 0.2s; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ---- Container ---- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 800px; margin: 0 auto; padding: 0 24px; }
.container-wide { max-width: 1400px; margin: 0 auto; padding: 0 24px; }

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
}

.nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

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

.nav-logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--teal-600), var(--teal-500));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  font-weight: 700;
  font-family: var(--font-display);
}

.nav-logo-text {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.nav-logo-text span { color: var(--teal-600); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active { color: var(--teal-700); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  background: linear-gradient(135deg, var(--teal-700), var(--teal-600));
  color: white !important;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  transition: transform 0.2s, box-shadow 0.2s;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-teal);
}

.nav-mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.nav-mobile-toggle span {
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: 0.3s;
}

/* ---- Mobile Nav ---- */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-mobile-toggle { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: white;
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
  }
}

/* ============================================
   HERO
   ============================================ */
.hero {
  padding: 80px 0 60px;
  background: linear-gradient(170deg, var(--teal-50) 0%, var(--bg) 60%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -100px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(13,148,136,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  text-align: center;
  max-width: 780px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 13px;
  font-weight: 500;
  color: var(--teal-700);
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.hero-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--teal-500);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.hero h1 em {
  font-style: italic;
  color: var(--teal-700);
}

.hero-sub {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto 36px;
}

/* ---- Search Bar ---- */
.search-box {
  background: white;
  border-radius: var(--radius-lg);
  padding: 8px;
  display: flex;
  gap: 8px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
  max-width: 700px;
  margin: 0 auto;
}

.search-input-group {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
}

.search-input-group svg {
  width: 18px;
  height: 18px;
  color: var(--text-light);
  flex-shrink: 0;
}

.search-input-group input {
  width: 100%;
  border: none;
  outline: none;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  background: transparent;
}

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

.search-divider {
  width: 1px;
  background: var(--border);
  margin: 8px 0;
}

.search-btn {
  padding: 14px 28px;
  background: linear-gradient(135deg, var(--teal-700), var(--teal-600));
  color: white;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  transition: transform 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}

.search-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-teal);
}

@media (max-width: 600px) {
  .search-box { flex-direction: column; padding: 12px; }
  .search-divider { width: 100%; height: 1px; margin: 0; }
  .search-btn { width: 100%; text-align: center; }
}

/* ---- Trust Row ---- */
.trust-row {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

.trust-item svg {
  width: 16px;
  height: 16px;
  color: var(--teal-500);
}

/* ============================================
   CATEGORIES
   ============================================ */
.categories {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--teal-600);
  margin-bottom: 12px;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.section-header p {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 900px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .cat-grid { grid-template-columns: 1fr; }
}

.cat-card {
  background: white;
  border-radius: var(--radius);
  padding: 28px 24px;
  border: 1px solid var(--border-light);
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.cat-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal-500), var(--teal-400));
  transform: scaleX(0);
  transition: transform 0.3s;
}

.cat-card:hover {
  border-color: var(--teal-400);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.cat-card:hover::after { transform: scaleX(1); }

.cat-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--teal-50);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 22px;
}

.cat-card h3 {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}

.cat-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

.cat-count {
  display: inline-block;
  margin-top: auto;
  padding-top: 12px;
  margin-top: 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--teal-600);
  font-family: var(--font-mono);
}

/* ============================================
   FEATURED CLINICS
   ============================================ */
.featured {
  padding: 80px 0;
  background: white;
}

.clinic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 24px;
}

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

.clinic-card {
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid var(--border-light);
  transition: all 0.3s;
  position: relative;
  display: flex;
  flex-direction: column;
}

.clinic-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.clinic-featured-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--gold-soft);
  color: #92400e;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.clinic-header {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}

.clinic-avatar {
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--teal-100), var(--teal-50));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.clinic-info h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}

.clinic-location {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: var(--text-muted);
}

.clinic-location svg {
  width: 14px;
  height: 14px;
}

.clinic-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
}

.stars {
  display: flex;
  gap: 2px;
  color: #f59e0b;
  font-size: 14px;
}

.rating-text {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

.clinic-treatments {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.treatment-tag {
  padding: 4px 12px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
}

.clinic-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

.clinic-actions {
  display: flex;
  gap: 10px;
  margin-top: auto;
  padding-top: 4px;
}

.btn-primary {
  flex: 1;
  padding: 12px 20px;
  background: linear-gradient(135deg, var(--teal-700), var(--teal-600));
  color: white;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  transition: all 0.2s;
}

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

.btn-outline {
  flex: 1;
  padding: 12px 20px;
  background: white;
  color: var(--teal-700);
  border: 1px solid var(--teal-500);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  transition: all 0.2s;
}

.btn-outline:hover {
  background: var(--teal-50);
}

/* ============================================
   EDUCATIONAL / NETWORK LINKS
   ============================================ */
.edu-section {
  padding: 80px 0;
}

.edu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.edu-card {
  background: white;
  border-radius: var(--radius);
  padding: 32px 28px;
  border: 1px solid var(--border-light);
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
}

.edu-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.edu-card-label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--teal-600);
  margin-bottom: 12px;
}

.edu-card h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}

.edu-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

.edu-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--teal-600);
  transition: gap 0.2s;
  margin-top: auto;
  padding-top: 4px;
}

.edu-link:hover { gap: 10px; }

/* ============================================
   FAQ
   ============================================ */
.faq-section {
  padding: 80px 0;
  background: white;
}

.faq-list {
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border-light);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  text-align: left;
  transition: color 0.2s;
}

.faq-question:hover { color: var(--teal-700); }

.faq-toggle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s;
  font-size: 18px;
  color: var(--text-muted);
}

.faq-item.open .faq-toggle {
  background: var(--teal-50);
  color: var(--teal-600);
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s;
}

.faq-item.open .faq-answer { max-height: 300px; }

.faq-answer-inner {
  padding-bottom: 22px;
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ============================================
   HOW IT WORKS
   ============================================ */
.how-section {
  padding: 80px 0;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  position: relative;
}

@media (max-width: 768px) {
  .steps-grid { grid-template-columns: 1fr; gap: 24px; }
}

.step-card {
  text-align: center;
  padding: 32px 24px;
}

.step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--teal-50);
  border: 2px solid var(--teal-200, #99f6e4);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--teal-700);
}

.step-card h3 {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}

.step-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ============================================
   DIRECTORY PAGE
   ============================================ */
.directory-layout {
  padding: 40px 0 80px;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
}

@media (max-width: 900px) {
  .directory-layout { grid-template-columns: 1fr; }
}

.sidebar {
  position: sticky;
  top: 96px;
  align-self: start;
}

.filter-group {
  background: white;
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--border-light);
  margin-bottom: 16px;
}

.filter-group h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 14px;
}

.filter-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  cursor: pointer;
  font-size: 14px;
  color: var(--text);
}

.filter-option input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--teal-600);
}

.filter-select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text);
  background: white;
  outline: none;
}

.filter-select:focus { border-color: var(--teal-500); }

.listing-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.listing-count {
  font-size: 14px;
  color: var(--text-muted);
}

.listing-count strong {
  color: var(--ink);
}

.sort-select {
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 13px;
  background: white;
  color: var(--text);
}

.dir-clinic-card {
  background: white;
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--border-light);
  margin-bottom: 16px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: start;
  transition: all 0.3s;
}

.dir-clinic-card:hover {
  box-shadow: var(--shadow);
  border-color: var(--teal-400);
}

@media (max-width: 600px) {
  .dir-clinic-card { grid-template-columns: 1fr; }
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
}

.page-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  background: white;
  transition: all 0.2s;
}

.page-btn:hover { border-color: var(--teal-500); color: var(--teal-600); }
.page-btn.active { background: var(--teal-600); color: white; border-color: var(--teal-600); }

/* ============================================
   BLOG
   ============================================ */
.blog-hero {
  padding: 60px 0 40px;
  background: linear-gradient(170deg, var(--teal-50) 0%, var(--bg) 60%);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
  padding: 40px 0 80px;
}

.blog-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
  transition: all 0.3s;
}

.blog-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.blog-card-img {
  height: 200px;
  background: linear-gradient(135deg, var(--teal-100), var(--teal-50));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
}

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

.blog-card-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--teal-600);
  margin-bottom: 10px;
}

.blog-card h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
  line-height: 1.3;
}

.blog-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

.blog-card .read-more {
  font-size: 14px;
  font-weight: 600;
  color: var(--teal-600);
}

/* ---- Article Page ---- */
.article-page { padding: 60px 0 80px; }

.article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.article-tag {
  padding: 4px 14px;
  background: var(--teal-50);
  color: var(--teal-700);
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
}

.article-date {
  font-size: 13px;
  color: var(--text-light);
}

.article-page h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.article-body h2 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  color: var(--ink);
  margin: 40px 0 16px;
}

.article-body h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink-soft);
  margin: 32px 0 12px;
}

.article-body p {
  font-size: 16px;
  color: var(--text);
  line-height: 1.8;
  margin-bottom: 16px;
}

.article-body ul, .article-body ol {
  margin: 12px 0 20px 24px;
  font-size: 16px;
  color: var(--text);
  line-height: 1.8;
}

.article-body li { margin-bottom: 8px; }

.article-cta-box {
  background: linear-gradient(135deg, var(--teal-50), #f0fdfa);
  border: 1px solid var(--teal-100);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin: 40px 0;
  text-align: center;
}

.article-cta-box h3 {
  font-family: var(--font-display);
  color: var(--teal-800);
  margin-bottom: 8px;
}

.article-cta-box p {
  color: var(--text-muted);
  margin-bottom: 16px;
}

/* ============================================
   ABOUT
   ============================================ */
.about-hero {
  padding: 80px 0 60px;
  background: linear-gradient(170deg, var(--teal-50) 0%, var(--bg) 60%);
}

.about-content {
  padding: 60px 0 80px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--ink);
  color: rgba(255,255,255,0.7);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

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

.footer-brand p {
  font-size: 14px;
  line-height: 1.7;
  margin-top: 12px;
  max-width: 300px;
}

.footer-col h4 {
  color: white;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-col a {
  display: block;
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  padding: 4px 0;
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--teal-400); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

@media (max-width: 600px) {
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}

/* ============================================
   ANIMATIONS
   ============================================ */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}


/* ============================================
   DARK MODE — Complete
   ============================================ */
body.dark {
  --bg: #0c1220;
  --bg-alt: #111827;
  --surface: #1a2332;
  --border: #2a3548;
  --border-light: #1f2b3d;
  --white: #1a2332;
  --ink: #f0f4f8;
  --ink-soft: #e2e8f0;
  --text: #c8d4e0;
  --text-muted: #8899ab;
  --text-light: #5a6b7f;
  --teal-50: rgba(20,184,166,0.08);
  --teal-100: rgba(20,184,166,0.12);
  --teal-900: #a7f3d0;
  --gold-soft: rgba(212,168,67,0.12);
}

/* Nav */
body.dark .nav {
  background: rgba(12,18,32,0.96);
  backdrop-filter: blur(20px);
  border-bottom-color: var(--border);
}
body.dark .nav-logo-icon { background: var(--teal-50); }
body.dark .nav-links a { color: var(--text-muted); }
body.dark .nav-links a:hover, body.dark .nav-links a.active { color: var(--teal-400); }
body.dark .nav-cta { background: var(--teal-600) !important; color: white !important; }

/* Hero */
body.dark .hero { background: var(--bg); }
body.dark .hero h1 { color: var(--ink); }
body.dark .hero-sub { color: var(--text-muted); }
body.dark .search-box { background: var(--surface); border-color: var(--border); }
body.dark .search-box input { background: transparent; color: var(--text); }
body.dark .search-box input::placeholder { color: var(--text-light); }
body.dark .search-divider { background: var(--border); }
body.dark .trust-item { color: var(--text-muted); }

/* Cards — all types */
body.dark .cat-card,
body.dark .clinic-card,
body.dark .edu-card,
body.dark .step-card,
body.dark .price-card,
body.dark .faq-item {
  background: var(--surface);
  border-color: var(--border);
}
body.dark .cat-card:hover,
body.dark .clinic-card:hover,
body.dark .edu-card:hover {
  border-color: var(--teal-500);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

/* Card content */
body.dark .cat-card h3,
body.dark .clinic-info h3,
body.dark .edu-card h3,
body.dark .step-card h3 { color: var(--ink); }
body.dark .cat-card p,
body.dark .clinic-desc,
body.dark .edu-card p,
body.dark .step-card p { color: var(--text-muted); }
body.dark .cat-count,
body.dark .edu-link { color: var(--teal-400); }
body.dark .cat-icon { background: rgba(20,184,166,0.1); }

/* Treatment tags */
body.dark .treatment-tag {
  background: var(--bg-alt);
  border-color: var(--border);
  color: var(--text);
}

/* Clinic cards */
body.dark .clinic-featured-badge {
  background: rgba(212,168,67,0.15);
  color: #fbbf24;
}
body.dark .clinic-avatar { background: linear-gradient(135deg, rgba(20,184,166,0.15), rgba(20,184,166,0.05)); }

/* Step numbers */
body.dark .step-number {
  background: var(--teal-50);
  color: var(--teal-400);
}

/* Buttons */
body.dark .btn-outline {
  border-color: var(--border);
  color: var(--text);
}
body.dark .btn-outline:hover {
  border-color: var(--teal-400);
  color: var(--teal-400);
  background: rgba(20,184,166,0.05);
}

/* FAQ */
body.dark .faq-question {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--border);
}
body.dark .faq-question:hover { background: var(--bg-alt); }
body.dark .faq-answer { background: var(--bg-alt); }
body.dark .faq-answer-inner { color: var(--text-muted); }
body.dark .faq-toggle { color: var(--teal-400); }

/* Sections with inline bg */
body.dark section[style*="background:linear-gradient"],
body.dark section[style*="background:var(--bg-alt)"],
body.dark section[style*="background:var(--teal-50)"] {
  background: var(--bg-alt) !important;
}

/* Footer */
body.dark .footer {
  background: #080d18;
  border-top: 1px solid var(--border);
}
body.dark .footer p,
body.dark .footer a { color: var(--text-light); }
body.dark .footer a:hover { color: var(--teal-400); }
body.dark .footer h4 { color: var(--text-muted); }
body.dark .footer-bottom { border-top-color: var(--border); }

/* Article pages */
body.dark .article-body { color: var(--text); }
body.dark .article-body h2 { color: var(--ink); }
body.dark .article-body h3 { color: var(--ink); }
body.dark .article-body p { color: var(--text); }
body.dark .article-body a { color: var(--teal-400); }
body.dark .article-cta-box {
  background: var(--surface);
  border-color: var(--border);
}
body.dark .article-cta-box h3 { color: var(--ink); }
body.dark .article-cta-box p { color: var(--text-muted); }
body.dark .article-meta .article-tag {
  background: var(--teal-50);
  color: var(--teal-400);
}
body.dark .article-date { color: var(--text-light); }

/* Tables */
body.dark table { border-color: var(--border); }
body.dark th {
  background: var(--surface) !important;
  color: var(--ink);
  border-color: var(--border) !important;
}
body.dark td {
  border-color: var(--border) !important;
  color: var(--text);
}
body.dark tr:hover td { background: var(--bg-alt); }
body.dark thead tr[style*="background"] { background: var(--surface) !important; }

/* Forms */
body.dark input,
body.dark select,
body.dark textarea {
  background: var(--bg-alt) !important;
  border-color: var(--border) !important;
  color: var(--text) !important;
}
body.dark input::placeholder,
body.dark textarea::placeholder { color: var(--text-light) !important; }
body.dark label { color: var(--ink) !important; }
body.dark form {
  background: var(--surface) !important;
  border-color: var(--border) !important;
}

/* Breadcrumb */
body.dark .breadcrumb { color: var(--text-light); }
body.dark .breadcrumb a { color: var(--text-muted); }
body.dark .breadcrumb a:hover { color: var(--teal-400); }

/* Directory page specific */
body.dark .dir-search {
  background: var(--surface) !important;
  border-color: var(--border) !important;
  color: var(--text) !important;
}
body.dark .dir-search:focus { border-color: var(--teal-500) !important; }
body.dark .dir-state-select {
  background: var(--surface) !important;
  border-color: var(--border) !important;
  color: var(--text) !important;
}
body.dark .dir-tag {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text-muted);
}
body.dark .dir-tag:hover,
body.dark .dir-tag.active {
  background: rgba(20,184,166,0.1);
  border-color: var(--teal-500);
  color: var(--teal-400);
}
body.dark .dir-state-header {
  color: var(--ink);
  border-bottom-color: var(--border);
}
body.dark .dir-state-header .count { background: var(--surface); }
body.dark .dir-card {
  background: var(--surface);
  border-color: var(--border);
}
body.dark .dir-card:hover {
  border-color: var(--teal-500);
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}
body.dark .dir-card h3 { color: var(--ink); }
body.dark .dir-card .loc { color: var(--text-muted); }
body.dark .dir-card .desc { color: var(--text-muted); }
body.dark .dir-card .tags span { background: var(--bg-alt); color: var(--text-light); }
body.dark .dir-card .stars { color: var(--text-light); }
body.dark .dir-card .btn-visit { background: var(--teal-600); }
body.dark .dir-card .btn-review { border-color: var(--border); color: var(--text-muted); }
body.dark .dir-card .btn-review:hover { border-color: var(--teal-500); color: var(--teal-400); }
body.dark .dir-card .type-badge.tele { background: rgba(20,184,166,0.12); color: var(--teal-400); }
body.dark .dir-card .type-badge.inperson { background: rgba(212,168,67,0.12); color: #fbbf24; }

/* Pricing page */
body.dark .price-card.popular { border-color: var(--teal-500); box-shadow: 0 4px 20px rgba(20,184,166,0.15); }
body.dark .price-card h3 { color: var(--ink); }
body.dark .price-card .price { color: var(--teal-400); }
body.dark .feature-list li { color: var(--text); }
body.dark .feature-list .disabled { color: var(--text-light); }
body.dark .price-cta.outline { border-color: var(--border); color: var(--text); }
body.dark .price-cta.outline:hover { background: rgba(20,184,166,0.05); border-color: var(--teal-500); color: var(--teal-400); }

/* Dark toggle icon swap */
body.dark .dark-toggle svg { stroke: var(--teal-400); }

/* Pillar page inline styles override */
body.dark [style*="background:white"],
body.dark [style*="background: white"] { background: var(--surface) !important; }
body.dark [style*="color:var(--ink)"] { color: var(--ink) !important; }

/* Misc */
body.dark .popular-badge { background: var(--teal-700); }
body.dark hr, body.dark .search-divider { background: var(--border); }
body.dark ::selection { background: var(--teal-600); color: white; }

/* CTA section dark mode fix */
body.dark section[style*="f0fdfa"],
body.dark section[style*="teal-50"] {
  background: var(--bg-alt) !important;
}
body.dark section[style*="f0fdfa"] h2,
body.dark section[style*="teal-50"] h2 { color: var(--ink) !important; }
body.dark section[style*="f0fdfa"] p,
body.dark section[style*="teal-50"] p { color: var(--text-muted) !important; }
body.dark section[style*="f0fdfa"] .btn-outline,
body.dark section[style*="teal-50"] .btn-outline {
  border-color: var(--border) !important;
  color: var(--text) !important;
  background: transparent !important;
}
body.dark section[style*="f0fdfa"] .btn-outline:hover { border-color: var(--teal-400) !important; color: var(--teal-400) !important; }


/* ============================================
   POLISH PASS — Pill buttons, hero stats, gradient
   Light theme, patient-trust-conventions
   ============================================ */

/* Pill-shaped buttons */
.btn-primary, .btn-outline {
  border-radius: 50px !important;
  padding: 1rem 2.4rem !important;
  font-weight: 600;
  letter-spacing: 0.3px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-block;
  text-decoration: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--teal-700) 0%, var(--teal-600) 100%);
  color: white !important;
  box-shadow: 0 4px 14px rgba(15, 118, 110, 0.18);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(15, 118, 110, 0.28);
}
.btn-outline {
  border: 1.5px solid var(--teal-600) !important;
  color: var(--teal-700) !important;
  background: white;
}
.btn-outline:hover {
  background: var(--teal-50, #e6fffa);
  border-color: var(--teal-700) !important;
}

/* Hero badge (light-theme version) */
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--teal-50, #e6fffa);
  border: 1px solid var(--teal-200, #99f6e4);
  padding: 0.45rem 1.2rem;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--teal-700);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 1.6rem;
  font-family: var(--font-mono);
}
.hero-pill::before {
  content: '';
  width: 7px;
  height: 7px;
  background: var(--teal-600);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(13, 148, 136, 0.4);
  animation: pulse-light 2.5s infinite;
}
@keyframes pulse-light {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

/* H1 gradient emphasis (light-theme palette) */
.h1-gradient {
  background: linear-gradient(135deg, var(--teal-700) 0%, var(--teal-500) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-style: normal;
}

/* Trust signal stats row */
.hero-trust {
  display: flex;
  gap: 2.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.trust-stat {
  text-align: center;
}
.trust-value {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--teal-700);
  line-height: 1;
  margin-bottom: 0.3rem;
  letter-spacing: -0.02em;
}
.trust-label {
  font-size: 0.74rem;
  color: var(--text-muted, #718096);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: 500;
  font-family: var(--font-mono);
}

/* Subtle hero background — geometric pattern, light */
.hero-light-bg {
  position: relative;
  overflow: hidden;
}
.hero-light-bg::before {
  content: '';
  position: absolute;
  top: -250px;
  right: -150px;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(13, 148, 136, 0.06) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}
.hero-light-bg > * {
  position: relative;
  z-index: 1;
}
