/* ========================================================
   DENTAL TOURISM SAFE — Design System
   dentaltourismsafe.com
   ======================================================== */

/* 1. TOKENS */
:root {
  --primary:        #0B4F8A;
  --primary-dark:   #083668;
  --primary-light:  #EBF2FB;
  --green:          #059669;
  --green-dark:     #047857;
  --green-light:    #ECFDF5;
  --orange:         #EA580C;
  --orange-dark:    #C2470A;
  --orange-light:   #FFF7ED;
  --amber:          #F59E0B;
  --red:            #DC2626;
  --red-light:      #FEF2F2;
  --purple:         #7C3AED;

  --text:           #0F172A;
  --text-2:         #334155;
  --text-3:         #64748B;
  --text-4:         #94A3B8;
  --bg:             #FFFFFF;
  --bg-soft:        #F8FAFC;
  --bg-muted:       #F1F5F9;
  --border:         #E2E8F0;
  --border-2:       #CBD5E1;

  --shadow-xs:  0 1px 2px rgba(0,0,0,0.06);
  --shadow-sm:  0 1px 4px rgba(0,0,0,0.08);
  --shadow-md:  0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg:  0 10px 40px rgba(0,0,0,0.12);
  --shadow-xl:  0 20px 60px rgba(0,0,0,0.15);

  --r-sm:  6px;
  --r-md:  12px;
  --r-lg:  20px;
  --r-xl:  28px;
  --r-2xl: 36px;

  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --max-w: 1200px;
  --header-h: 72px;
}

/* 2. RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font-family: inherit; }
ul, ol { list-style: none; }

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

h1, h2, h3, h4, h5 { font-weight: 700; line-height: 1.2; color: var(--text); }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.125rem; }
p  { color: var(--text-2); line-height: 1.75; }
small { font-size: 0.8125rem; color: var(--text-3); }

/* 4. LAYOUT */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 80px 0; }
.section-sm { padding: 56px 0; }
.section-lg { padding: 112px 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-4 { gap: 4px; } .gap-8 { gap: 8px; } .gap-12 { gap: 12px; }
.gap-16 { gap: 16px; } .gap-24 { gap: 24px; } .gap-32 { gap: 32px; }
.text-center { text-align: center; }
.mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; } .mt-48 { margin-top: 48px; }
.mb-8 { margin-bottom: 8px; } .mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; } .mb-32 { margin-bottom: 32px; }

/* 5. HEADER */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.2s;
}
.site-header.scrolled { box-shadow: var(--shadow-md); }
.site-header .container {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 32px;
}
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-icon { width: 36px; height: 40px; }
.logo-text { display: flex; flex-direction: column; }
.logo-name { font-size: 1.0625rem; font-weight: 800; color: var(--primary); letter-spacing: -0.02em; }
.logo-tagline { font-size: 0.6875rem; color: var(--text-3); font-weight: 500; margin-top: -2px; }

.main-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.main-nav a, .main-nav > div > span {
  padding: 8px 14px;
  border-radius: var(--r-sm);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-2);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.main-nav a:hover, .main-nav > div > span:hover {
  background: var(--primary-light);
  color: var(--primary);
}
.main-nav a.active { color: var(--primary); background: var(--primary-light); }

.nav-dropdown { position: relative; }
.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  min-width: 240px;
  padding: 8px;
  z-index: 200;
}
.nav-dropdown:hover .dropdown-menu { display: flex; flex-direction: column; gap: 2px; }
.dropdown-menu a {
  padding: 10px 14px;
  border-radius: var(--r-sm);
  font-size: 0.9375rem;
  display: block;
}
.header-cta { flex-shrink: 0; }
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s;
}

/* 6. BUTTONS */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  background: var(--orange);
  color: #fff;
  border-radius: var(--r-sm);
  font-weight: 700;
  font-size: 1rem;
  border: 2px solid var(--orange);
  cursor: pointer;
  transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
  text-align: center;
  white-space: nowrap;
}
.btn-primary:hover { background: var(--orange-dark); border-color: var(--orange-dark); box-shadow: 0 4px 16px rgba(234,88,12,0.35); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }
.btn-primary.btn-lg { padding: 16px 36px; font-size: 1.125rem; }
.btn-primary.btn-sm { padding: 9px 18px; font-size: 0.875rem; }
.btn-primary.btn-green { background: var(--green); border-color: var(--green); }
.btn-primary.btn-green:hover { background: var(--green-dark); border-color: var(--green-dark); box-shadow: 0 4px 16px rgba(5,150,105,0.35); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  background: transparent;
  color: var(--primary);
  border-radius: var(--r-sm);
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid var(--primary);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-outline.btn-white { color: #fff; border-color: rgba(255,255,255,0.5); }
.btn-outline.btn-white:hover { background: rgba(255,255,255,0.15); }
.btn-outline.btn-sm { padding: 9px 18px; font-size: 0.875rem; }

/* 7. BADGES */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.badge-primary { background: var(--primary-light); color: var(--primary); }
.badge-green   { background: var(--green-light);   color: var(--green-dark); }
.badge-amber   { background: #FFFBEB; color: #B45309; }
.badge-red     { background: var(--red-light);     color: var(--red); }
.badge-dark    { background: var(--text); color: #fff; }

/* 8. HERO */
.hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, #1a6eb8 100%);
  color: #fff;
  padding: 80px 0 96px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero .container { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1fr 420px; gap: 64px; align-items: center; }
.hero-eyebrow { display: flex; align-items: center; gap: 8px; margin-bottom: 20px; }
.hero-eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); animation: pulse 2s infinite; }
.hero h1 { color: #fff; margin-bottom: 20px; }
.hero h1 span { color: var(--amber); }
.hero-sub { font-size: 1.125rem; color: rgba(255,255,255,0.85); margin-bottom: 32px; max-width: 580px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 32px; }
.hero-trust-item { display: flex; align-items: center; gap: 6px; font-size: 0.875rem; color: rgba(255,255,255,0.85); font-weight: 500; }
.hero-trust-item svg { color: var(--amber); }

/* Hero form card */
.hero-form-card {
  background: #fff;
  border-radius: var(--r-xl);
  padding: 32px;
  box-shadow: var(--shadow-xl);
  color: var(--text);
}
.hero-form-card h3 { color: var(--primary); font-size: 1.25rem; margin-bottom: 6px; }
.hero-form-card p { color: var(--text-3); font-size: 0.875rem; margin-bottom: 20px; }

/* 9. FORMS */
.form-group { margin-bottom: 14px; }
.form-label { display: block; font-size: 0.8125rem; font-weight: 600; color: var(--text-2); margin-bottom: 5px; }
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border-2);
  border-radius: var(--r-sm);
  font-size: 0.9375rem;
  color: var(--text);
  background: var(--bg);
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}
.form-textarea { resize: vertical; min-height: 100px; }
.form-input::placeholder, .form-textarea::placeholder { color: var(--text-4); }

/* 10. TRUST BAR */
.trust-bar {
  background: var(--bg-muted);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}
.trust-bar .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0; }
.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 24px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-2);
  border-right: 1px solid var(--border-2);
  white-space: nowrap;
}
.trust-item:last-child { border-right: none; }
.trust-item-icon { width: 18px; height: 18px; color: var(--green); }

/* 11. SECTION HEADER */
.section-header { max-width: 680px; }
.section-header.centered { margin: 0 auto; text-align: center; }
.section-label {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}
.section-header h2 { margin-bottom: 14px; }
.section-header p { font-size: 1.0625rem; color: var(--text-3); }

/* 12. CARDS */
.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 24px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

/* Clinic Card */
.clinic-card {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
  position: relative;
}
.clinic-card:hover { box-shadow: var(--shadow-lg); border-color: var(--primary); transform: translateY(-3px); }
.clinic-card.featured {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(5,150,105,0.12), var(--shadow-lg);
}
.clinic-card.featured::before {
  content: '⭐ #1 RECOMMENDED';
  position: absolute;
  top: -14px;
  left: 24px;
  background: var(--green);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 14px;
  border-radius: 99px;
  letter-spacing: 0.04em;
}

.clinic-card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.clinic-name { font-size: 1.125rem; font-weight: 700; color: var(--text); }
.clinic-location { font-size: 0.8125rem; color: var(--text-3); display: flex; align-items: center; gap: 4px; margin-top: 3px; }

/* 13. SAFETY SCORE */
.safety-score {
  display: flex;
  align-items: center;
  gap: 12px;
}
.score-ring {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  flex-shrink: 0;
  font-weight: 900;
  font-size: 1.125rem;
  position: relative;
}
.score-ring::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 4px solid var(--border);
}
.score-ring.score-excellent { color: var(--green); }
.score-ring.score-excellent::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 4px solid var(--green);
  clip-path: inset(0 0 0 0);
}
.score-ring.score-good { color: var(--amber); }
.score-ring.score-good::after { border: 4px solid var(--amber); content: ''; position: absolute; inset: 0; border-radius: 50%; }
.score-ring.score-poor { color: var(--red); }
.score-ring.score-poor::after { border: 4px solid var(--red); content: ''; position: absolute; inset: 0; border-radius: 50%; }
.score-label span { display: block; font-size: 0.75rem; color: var(--text-3); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.score-label strong { font-size: 0.875rem; color: var(--text-2); }

/* Big score badge for Taki Dent */
.score-badge-large {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--green-light), #d1fae5);
  border: 4px solid var(--green);
  color: var(--green-dark);
  margin: 0 auto 16px;
}
.score-badge-large .score-num { font-size: 2.25rem; font-weight: 900; line-height: 1; }
.score-badge-large .score-denom { font-size: 0.75rem; font-weight: 600; color: var(--green); }
.score-badge-large .score-word { font-size: 0.6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }

/* 14. STAR RATINGS */
.stars { display: flex; gap: 2px; }
.stars span { color: var(--amber); font-size: 1rem; }
.stars.stars-sm span { font-size: 0.875rem; }
.rating-row { display: flex; align-items: center; gap: 8px; }
.rating-count { font-size: 0.8125rem; color: var(--text-3); }
.rating-score { font-weight: 700; color: var(--text); }

/* 15. COMPARISON TABLE */
.comparison-table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.comparison-table thead th {
  background: var(--primary);
  color: #fff;
  padding: 16px 20px;
  font-weight: 700;
  text-align: left;
}
.comparison-table thead th:first-child { border-radius: var(--r-md) 0 0 0; }
.comparison-table thead th:last-child { border-radius: 0 var(--r-md) 0 0; }
.comparison-table thead th.winner-col { background: var(--green); }
.comparison-table tbody tr:nth-child(even) { background: var(--bg-soft); }
.comparison-table tbody td { padding: 14px 20px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.comparison-table tbody td:first-child { font-weight: 600; color: var(--text-2); }
.comparison-table .win { color: var(--green-dark); font-weight: 700; }
.comparison-table .neutral { color: var(--text-2); }
.comparison-table .lose { color: var(--text-3); }
.comparison-table .check { font-size: 1.1rem; }

/* 16. PRICE TABLE */
.price-table { width: 100%; border-collapse: collapse; }
.price-table th, .price-table td { padding: 14px 20px; text-align: left; border-bottom: 1px solid var(--border); }
.price-table th { font-weight: 700; background: var(--bg-muted); color: var(--text); font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.04em; }
.price-table td { font-size: 0.9375rem; color: var(--text-2); }
.price-table .price-uk { color: var(--red); font-weight: 700; }
.price-table .price-turkey { color: var(--green-dark); font-weight: 700; font-size: 1.0625rem; }
.price-table .price-savings { color: var(--green); font-weight: 700; }
.price-table tbody tr:hover { background: var(--green-light); }

/* 17. FEATURE LIST */
.feature-list { display: flex; flex-direction: column; gap: 10px; }
.feature-item { display: flex; align-items: flex-start; gap: 10px; font-size: 0.9375rem; }
.feature-item .icon { flex-shrink: 0; width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.75rem; background: var(--green-light); color: var(--green); margin-top: 1px; }
.feature-item .icon.amber { background: #FFFBEB; color: var(--amber); }
.feature-item .icon.red { background: var(--red-light); color: var(--red); }
.feature-item span { color: var(--text-2); }
.feature-item strong { color: var(--text); }

/* 18. FEATURED CLINIC SECTION */
.featured-clinic {
  background: linear-gradient(135deg, #f0fdf9 0%, #ecfdf5 100%);
  border: 2px solid var(--green);
  border-radius: var(--r-xl);
  padding: 48px;
  position: relative;
  overflow: hidden;
}
.featured-clinic::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(5,150,105,0.06);
}
.featured-header { display: flex; align-items: flex-start; gap: 32px; margin-bottom: 32px; flex-wrap: wrap; }
.featured-meta h2 { color: var(--green-dark); }
.featured-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

/* 19. ACCORDION */
.accordion { border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; }
.accordion-item + .accordion-item { border-top: 1px solid var(--border); }
.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  text-align: left;
  gap: 16px;
  transition: background 0.15s;
}
.accordion-trigger:hover { background: var(--bg-soft); }
.accordion-trigger[aria-expanded="true"] { background: var(--primary-light); color: var(--primary); }
.accordion-arrow { width: 20px; height: 20px; flex-shrink: 0; transition: transform 0.2s; }
.accordion-trigger[aria-expanded="true"] .accordion-arrow { transform: rotate(180deg); }
.accordion-body { display: none; padding: 0 24px 20px; color: var(--text-2); line-height: 1.75; font-size: 0.9375rem; }
.accordion-body.open { display: block; }

/* 20. PATIENT TESTIMONIALS */
.testimonial-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
  position: relative;
}
.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 16px;
  left: 24px;
  font-size: 4rem;
  color: var(--primary-light);
  font-family: Georgia, serif;
  line-height: 1;
}
.testimonial-text { font-size: 0.9375rem; color: var(--text-2); line-height: 1.75; margin-bottom: 20px; margin-top: 24px; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #2271c2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 1.125rem;
  flex-shrink: 0;
}
.testimonial-name { font-weight: 700; font-size: 0.9375rem; }
.testimonial-detail { font-size: 0.8125rem; color: var(--text-3); }
.testimonial-country { font-size: 0.75rem; }

/* 21. AUTHORITY LINKS */
.authority-bar {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}
.authority-list { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 32px; }
.authority-link {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-3);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.15s;
}
.authority-link:hover { color: var(--primary); }
.authority-link::before { content: '↗'; font-size: 0.75rem; }

/* 22. CTA BANNER */
.cta-banner {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff;
  border-radius: var(--r-xl);
  padding: 56px 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner h2 { color: #fff; margin-bottom: 12px; }
.cta-banner p { color: rgba(255,255,255,0.85); margin-bottom: 32px; font-size: 1.125rem; }
.cta-banner-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* 23. TREATMENT CARDS */
.treatment-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow 0.2s, border-color 0.2s;
  text-decoration: none;
}
.treatment-card:hover { box-shadow: var(--shadow-md); border-color: var(--primary); }
.treatment-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--r-md);
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}
.treatment-card h3 { font-size: 1.0625rem; color: var(--text); }
.treatment-card p { font-size: 0.875rem; color: var(--text-3); flex: 1; }
.treatment-price { font-weight: 700; color: var(--green-dark); font-size: 0.9375rem; }
.treatment-arrow { font-size: 0.875rem; color: var(--primary); font-weight: 600; margin-top: auto; }

/* 24. RANKING TABLE */
.ranking-table { width: 100%; border-collapse: collapse; }
.ranking-table thead tr { background: var(--bg-muted); }
.ranking-table th { padding: 12px 16px; text-align: left; font-size: 0.8125rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-3); border-bottom: 2px solid var(--border); }
.ranking-table td { padding: 16px 16px; border-bottom: 1px solid var(--border); font-size: 0.9375rem; vertical-align: middle; }
.ranking-table tbody tr:hover { background: var(--bg-soft); }
.ranking-table tbody tr.rank-1 { background: linear-gradient(90deg, #f0fdf9, var(--bg)); }
.ranking-table tbody tr.rank-1:hover { background: linear-gradient(90deg, #dcfce7, #f0fdf9); }
.rank-num { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; font-weight: 800; font-size: 0.875rem; }
.rank-1 .rank-num { background: var(--green); color: #fff; }
.rank-2 .rank-num { background: var(--text-3); color: #fff; }
.rank-3 .rank-num { background: #CD7F32; color: #fff; }
.rank-other .rank-num { background: var(--bg-muted); color: var(--text-3); }

/* 25. TOAST */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 16px 20px;
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 380px;
  transform: translateY(100px);
  opacity: 0;
  transition: transform 0.3s, opacity 0.3s;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast.toast-success { border-left: 4px solid var(--green); }
.toast.toast-error { border-left: 4px solid var(--red); }
.toast-icon { font-size: 1.25rem; flex-shrink: 0; }
.toast-msg { font-size: 0.9375rem; color: var(--text); }

/* =============================================
   OFFERQO COMPONENTS (scoped prefix)
   ============================================= */
.offerqo-global-banner {
  background: linear-gradient(90deg, #0f172a 0%, #1e3a5f 100%);
  color: #fff;
  padding: 12px 0;
  font-size: 0.875rem;
  text-align: center;
}
.offerqo-global-banner .container { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; }
.offerqo-global-banner a {
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  padding: 5px 14px;
  border-radius: 99px;
  font-weight: 600;
  font-size: 0.8125rem;
  transition: background 0.15s;
}
.offerqo-global-banner a:hover { background: rgba(255,255,255,0.28); }

.offerqo-homepage-hero-cta {
  background: linear-gradient(135deg, #0f2a4e 0%, #0B4F8A 100%);
  border-radius: var(--r-xl);
  padding: 56px 48px;
  color: #fff;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
}
.offerqo-homepage-hero-cta h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 12px; }
.offerqo-homepage-hero-cta p { color: rgba(255,255,255,0.85); font-size: 1.0625rem; margin-bottom: 24px; }
.offerqo-trust-points { list-style: none; display: flex; flex-direction: column; gap: 8px; margin-bottom: 28px; }
.offerqo-trust-points li { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; color: rgba(255,255,255,0.9); }
.offerqo-trust-points li::before { content: '✓'; background: var(--green); width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.7rem; font-weight: 800; flex-shrink: 0; }
.offerqo-logo-wrap { margin-bottom: 20px; }
.offerqo-logo-wrap img { height: 32px; width: auto; filter: brightness(0) invert(1); }
.offerqo-cta-aside {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--r-lg);
  padding: 32px;
  text-align: center;
  min-width: 260px;
}
.offerqo-cta-aside p { font-size: 0.875rem; color: rgba(255,255,255,0.75); margin-top: 12px; }
.offerqo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--green);
  color: #fff;
  padding: 14px 28px;
  border-radius: var(--r-sm);
  font-weight: 700;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, box-shadow 0.15s, transform 0.1s;
  white-space: nowrap;
}
.offerqo-btn:hover { background: #047857; box-shadow: 0 4px 20px rgba(5,150,105,0.4); transform: translateY(-1px); color: #fff; }
.offerqo-btn.btn-lg { padding: 16px 36px; font-size: 1.125rem; }
.offerqo-btn.btn-full { width: 100%; }

.offerqo-treatment-card {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border: 1.5px solid #7dd3fc;
  border-radius: var(--r-lg);
  padding: 32px;
  margin: 40px 0;
}
.offerqo-treatment-card .oq-logo { height: 24px; margin-bottom: 16px; }
.offerqo-treatment-card h3 { font-size: 1.125rem; color: #0c4a6e; margin-bottom: 8px; }
.offerqo-treatment-card p { font-size: 0.9375rem; color: #0369a1; margin-bottom: 20px; }
.offerqo-treatment-card .offerqo-btn { background: #0284c7; }
.offerqo-treatment-card .offerqo-btn:hover { background: #0369a1; }
.oq-trust-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 14px; }
.oq-trust-pill { background: rgba(255,255,255,0.7); border: 1px solid #bae6fd; padding: 4px 12px; border-radius: 99px; font-size: 0.8125rem; color: #0c4a6e; font-weight: 500; }

.offerqo-sidebar-widget {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px;
  text-align: center;
}
.offerqo-sidebar-widget img { height: 24px; margin: 0 auto 12px; }
.offerqo-sidebar-widget h4 { font-size: 1rem; margin-bottom: 8px; color: var(--text); }
.offerqo-sidebar-widget p { font-size: 0.8125rem; color: var(--text-3); margin-bottom: 16px; }
.offerqo-sidebar-widget .offerqo-btn { width: 100%; font-size: 0.9375rem; padding: 12px; }

.offerqo-inline-cta {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-left: 4px solid var(--green);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 32px 0;
  flex-wrap: wrap;
}
.offerqo-inline-cta p { margin: 0; font-size: 0.9375rem; color: var(--text-2); flex: 1; }
.offerqo-inline-cta strong { color: var(--text); }

.offerqo-footer-cta {
  background: #0f172a;
  padding: 48px 0;
}
.offerqo-footer-cta .container { display: flex; align-items: center; gap: 48px; flex-wrap: wrap; }
.offerqo-footer-cta-left { flex: 1; }
.offerqo-footer-cta img { height: 28px; margin-bottom: 12px; filter: brightness(0) invert(1); }
.offerqo-footer-cta h3 { color: #fff; font-size: 1.25rem; margin-bottom: 8px; }
.offerqo-footer-cta p { color: rgba(255,255,255,0.7); font-size: 0.9375rem; }
.offerqo-footer-disclaimer { font-size: 0.75rem; color: rgba(255,255,255,0.45); margin-top: 12px; font-style: italic; }

.offerqo-mobile-sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: var(--green);
  padding: 12px 20px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
}
.offerqo-mobile-sticky-cta span { color: #fff; font-weight: 600; font-size: 0.9375rem; }
.offerqo-mobile-sticky-cta a {
  background: #fff;
  color: var(--green-dark);
  padding: 10px 20px;
  border-radius: var(--r-sm);
  font-weight: 700;
  font-size: 0.9375rem;
  white-space: nowrap;
  flex-shrink: 0;
}
.oq-close-mobile {
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  font-size: 1.25rem;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}

.offerqo-contact-cta {
  background: linear-gradient(135deg, #f0fdf9, #ecfdf5);
  border: 1.5px solid var(--green);
  border-radius: var(--r-xl);
  padding: 40px;
  text-align: center;
  margin-bottom: 40px;
}
.offerqo-contact-cta img { height: 28px; margin: 0 auto 16px; }
.offerqo-contact-cta h3 { color: var(--green-dark); font-size: 1.375rem; margin-bottom: 10px; }
.offerqo-contact-cta p { color: var(--text-2); margin-bottom: 24px; }
.offerqo-disclaimer { font-size: 0.75rem; color: var(--text-4); margin-top: 14px; font-style: italic; }

/* 26. FOOTER */
.site-footer {
  background: var(--text);
  color: rgba(255,255,255,0.75);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 280px 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand .logo-name { color: #fff; }
.footer-brand .logo-tagline { color: rgba(255,255,255,0.5); }
.footer-brand p { font-size: 0.875rem; margin-top: 16px; color: rgba(255,255,255,0.6); line-height: 1.7; }
.footer-col h4 { color: #fff; font-size: 0.875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 16px; }
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col li a { font-size: 0.875rem; color: rgba(255,255,255,0.6); transition: color 0.15s; }
.footer-col li a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { font-size: 0.8125rem; }
.footer-disclaimer { font-size: 0.75rem; color: rgba(255,255,255,0.4); margin-top: 16px; line-height: 1.6; padding-top: 16px; border-top: 1px solid rgba(255,255,255,0.06); }
.partner-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.partner-link {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 3px 10px;
  border-radius: 99px;
  transition: color 0.15s, background 0.15s;
}
.partner-link:hover { color: #fff; background: rgba(255,255,255,0.12); }

/* 27. BLOG / ARTICLE */
.article-body { max-width: 780px; }
.article-body p { margin-bottom: 20px; font-size: 1rem; line-height: 1.8; }
.article-body h2 { margin: 40px 0 16px; }
.article-body h3 { margin: 28px 0 12px; }
.article-body ul, .article-body ol { padding-left: 24px; margin-bottom: 20px; }
.article-body ul li { list-style: disc; margin-bottom: 6px; color: var(--text-2); font-size: 0.9375rem; }
.article-body ol li { list-style: decimal; margin-bottom: 6px; color: var(--text-2); font-size: 0.9375rem; }
.article-body a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.article-body a:hover { color: var(--primary-dark); }

/* 28. BREADCRUMBS */
.breadcrumbs { display: flex; align-items: center; gap: 6px; font-size: 0.8125rem; color: var(--text-3); margin-bottom: 24px; flex-wrap: wrap; }
.breadcrumbs a { color: var(--primary); }
.breadcrumbs span { color: var(--text-4); }

/* 29. PAGE HEADER */
.page-hero {
  background: var(--bg-muted);
  padding: 64px 0 56px;
  border-bottom: 1px solid var(--border);
}
.page-hero.dark-hero { background: linear-gradient(135deg, var(--primary-dark), var(--primary)); color: #fff; }
.page-hero.dark-hero h1 { color: #fff; }
.page-hero.dark-hero p { color: rgba(255,255,255,0.8); }
.page-hero.green-hero { background: linear-gradient(135deg, #064e3b, var(--green)); color: #fff; }
.page-hero.green-hero h1, .page-hero.green-hero p { color: #fff; }
.page-hero p { font-size: 1.125rem; max-width: 680px; }

/* 30. RESPONSIVE */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .offerqo-homepage-hero-cta { grid-template-columns: 1fr; }
  .offerqo-footer-cta .container { flex-direction: column; text-align: center; }
}
@media (max-width: 768px) {
  :root { --header-h: 60px; }
  .section { padding: 56px 0; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .featured-grid { grid-template-columns: 1fr; }
  .featured-clinic { padding: 28px; }
  .cta-banner { padding: 36px 24px; }
  .main-nav { display: none; position: fixed; top: var(--header-h); left: 0; right: 0; background: var(--bg); flex-direction: column; padding: 16px; gap: 4px; border-bottom: 1px solid var(--border); box-shadow: var(--shadow-lg); z-index: 99; }
  .main-nav.open { display: flex; }
  .main-nav a, .main-nav > div > span { padding: 12px 16px; font-size: 1rem; }
  .dropdown-menu { position: static; box-shadow: none; border: none; background: var(--bg-soft); margin-top: 4px; border-radius: var(--r-sm); padding: 4px 0; }
  .nav-dropdown:hover .dropdown-menu { display: flex; }
  .menu-toggle { display: flex; }
  .header-cta { display: none; }
  .trust-item { padding: 5px 12px; font-size: 0.8125rem; }
  .ranking-table thead { display: none; }
  .ranking-table td { display: flex; flex-direction: column; gap: 2px; }
  .ranking-table td::before { content: attr(data-label); font-size: 0.75rem; color: var(--text-4); font-weight: 600; text-transform: uppercase; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .comparison-table { font-size: 0.875rem; }
  .comparison-table th, .comparison-table td { padding: 10px 12px; }
  .offerqo-mobile-sticky-cta { display: flex; }
  body { padding-bottom: 60px; }
  .offerqo-treatment-card { padding: 24px; }
  .offerqo-homepage-hero-cta { padding: 32px 24px; }
}
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .grid-4 { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 64px; }
  .hero-form-card { padding: 20px; }
  .page-hero { padding: 40px 0 36px; }
}

/* 31. ANIMATIONS */
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.15); }
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* 32. UTILS */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.text-green { color: var(--green-dark); }
.text-primary { color: var(--primary); }
.text-red { color: var(--red); }
.text-amber { color: var(--amber); }
.text-muted { color: var(--text-3); }
.fw-700 { font-weight: 700; }
.fw-800 { font-weight: 800; }
.bg-soft { background: var(--bg-soft); }
.bg-green-light { background: var(--green-light); }
.rounded { border-radius: var(--r-md); }
.separator { height: 1px; background: var(--border); margin: 32px 0; }
.stat-num { font-size: 2.5rem; font-weight: 900; color: var(--primary); line-height: 1; }
.stat-label { font-size: 0.875rem; color: var(--text-3); margin-top: 4px; }
.page-with-sidebar { display: grid; grid-template-columns: 1fr 320px; gap: 48px; align-items: start; }
@media (max-width: 968px) { .page-with-sidebar { grid-template-columns: 1fr; } }

/* Verified badge */
.verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--green-light);
  border: 1px solid rgba(5,150,105,0.3);
  color: var(--green-dark);
  padding: 5px 12px;
  border-radius: 99px;
  font-size: 0.8125rem;
  font-weight: 700;
}
.verified-badge svg { width: 14px; height: 14px; }
