/*
Theme Name: KaiKlinika
Theme URI: https://kaiklinika.ge
Author: KaiKlinika Team
Author URI: https://kaiklinika.ge
Description: პრემიუმ სამედიცინო პლატფორმა და კლინიკების დირექტორია საქართველოში — იმპრესიონისტული ხელოვნებით, ქალაქების ფილტრაციითა და აუქციონზე დაფუძნებული სარეკლამო სისტემით.
Version: 2.0.0
Text Domain: kaiklinika
*/

:root {
  --primary: #0d9488;
  --primary-hover: #0f766e;
  --primary-light: #ccfbf1;
  --primary-soft: #f0fdfa;
  --accent: #2563eb;
  --accent-light: #eff6ff;
  --gold: #f59e0b;
  --gold-glow: rgba(245, 158, 11, 0.28);
  --gold-gradient: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  --success: #10b981;
  --dark: #0f172a;
  --dark-surface: #1e293b;
  --slate: #334155;
  --muted: #64748b;
  --border: #e2e8f0;
  --border-light: rgba(226, 232, 240, 0.8);
  --card-bg: #ffffff;
  --bg-page: #f8fafc;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;
  --shadow-sm: 0 2px 6px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.07);
  --shadow-lg: 0 16px 40px rgba(15, 23, 42, 0.09);
  --shadow-gold: 0 12px 32px rgba(245, 158, 11, 0.22);
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --font-family: "FiraGO", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
}

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

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

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

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

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.03);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 24px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 23px;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.5px;
}

.brand-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #0d9488 0%, #0284c7 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  font-size: 22px;
  box-shadow: 0 6px 14px rgba(13, 148, 136, 0.35);
}

.brand-tag {
  background: linear-gradient(135deg, #0d9488, #0284c7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

.nav-links a {
  font-size: 15px;
  font-weight: 600;
  color: var(--slate);
  padding: 6px 0;
  position: relative;
}

.nav-links a:hover {
  color: var(--primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  font-size: 14px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-hover);
  box-shadow: 0 6px 16px rgba(13, 148, 136, 0.3);
  transform: translateY(-1px);
}

.btn-outline {
  border-color: var(--border);
  background: #fff;
  color: var(--dark);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-soft);
}

.btn-b2b {
  background: var(--gold-gradient);
  color: #fff;
  font-weight: 800;
  box-shadow: var(--shadow-gold);
}

.btn-b2b:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  position: relative;
  background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
  color: #fff;
  padding: 70px 0 60px;
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 1000px;
  height: 600px;
  background: radial-gradient(circle, rgba(13, 148, 136, 0.28) 0%, rgba(2, 132, 199, 0.12) 40%, transparent 70%);
  pointer-events: none;
}

.hero-badge-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(13, 148, 136, 0.2);
  border: 1px solid rgba(45, 212, 191, 0.4);
  color: #2dd4bf;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 700;
  backdrop-filter: blur(8px);
}

.hero-badge-art {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245, 158, 11, 0.18);
  border: 1px solid rgba(251, 191, 36, 0.5);
  color: #fbbf24;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 700;
  backdrop-filter: blur(8px);
}

.hero-title {
  font-size: 44px;
  font-weight: 900;
  color: #ffffff;
  line-height: 1.25;
  margin-bottom: 16px;
  letter-spacing: -1px;
}

.hero-title span {
  background: linear-gradient(135deg, #2dd4bf 0%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 18px;
  color: #94a3b8;
  max-width: 720px;
  margin-bottom: 36px;
  line-height: 1.6;
}

/* Floating Search Bar */
.search-card {
  background: rgba(255, 255, 255, 0.98);
  padding: 14px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.search-field {
  flex: 1 1 240px;
  position: relative;
}

.search-field input,
.search-field select {
  width: 100%;
  padding: 15px 16px 15px 46px;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-family: inherit;
  color: var(--dark);
  background: #f8fafc;
  transition: var(--transition);
  outline: none;
}

.search-field input:focus,
.search-field select:focus {
  background: #fff;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.15);
}

.search-field .field-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 19px;
  pointer-events: none;
}

.search-btn {
  padding: 15px 32px;
  font-size: 15px;
  border-radius: var(--radius-md);
  font-weight: 800;
}

/* ==========================================================================
   CITY TABS & SPECIALTY PILLS (Interactive Filter Bar)
   ========================================================================== */
.filter-nav-bar {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  position: sticky;
  top: 76px;
  z-index: 90;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03);
}

.city-tabs {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: none;
}

.city-tabs::-webkit-scrollbar {
  display: none;
}

.city-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 20px;
  background: #f1f5f9;
  border: 1px solid transparent;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 700;
  color: var(--slate);
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
}

.city-tab-btn:hover {
  background: #e2e8f0;
  color: var(--dark);
}

.city-tab-btn.active {
  background: var(--dark);
  color: #fff;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.2);
}

.city-tab-badge {
  background: rgba(255, 255, 255, 0.2);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 12px;
}

.city-tab-btn:not(.active) .city-tab-badge {
  background: #e2e8f0;
  color: var(--muted);
}

/* Specialty quick pills */
.specialty-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border-light);
  margin-top: 12px;
  scrollbar-width: none;
}

.specialty-pills::-webkit-scrollbar {
  display: none;
}

.spec-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  color: var(--slate);
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
}

.spec-pill:hover,
.spec-pill.active {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: var(--primary-hover);
}

/* ==========================================================================
   Clinics Feed & Impressionist Artwork Cards
   ========================================================================== */
.section {
  padding: 40px 0 60px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 20px;
  flex-wrap: wrap;
}

.section-title {
  font-size: 26px;
  font-weight: 900;
  color: var(--dark);
  letter-spacing: -0.6px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-desc {
  font-size: 14px;
  color: var(--muted);
  margin-top: 4px;
}

.results-count {
  font-size: 14px;
  color: var(--muted);
  font-weight: 700;
  background: #fff;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
}

/* Grid Layout */
.clinics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 28px;
}

/* Card */
.clinic-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
}

.clinic-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: #cbd5e1;
}

/* TOP SPONSOR STYLING (Pay-for-Placement Winner) */
.clinic-card.is-sponsored {
  border: 2px solid #f59e0b;
  box-shadow: var(--shadow-gold);
  background: linear-gradient(180deg, #fffdfa 0%, #ffffff 100%);
}

.clinic-card.is-sponsored .clinic-thumb-wrap {
  border-bottom: 2px solid #f59e0b;
}

.sponsor-banner-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--gold-gradient);
  color: #fff;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.5px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

.sponsor-bid-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(15, 23, 42, 0.85);
  color: #fbbf24;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 800;
  border-radius: var(--radius-full);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(251, 191, 36, 0.4);
  z-index: 10;
}

/* Impressionist Art Thumbnail */
.clinic-thumb-wrap {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: #0f172a;
}

.clinic-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.clinic-card:hover .clinic-thumb-wrap img {
  transform: scale(1.06);
}

.art-badge-overlay {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  color: #f1f5f9;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Card Body */
.clinic-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
}

.clinic-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  flex-wrap: wrap;
  gap: 8px;
}

.city-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #f1f5f9;
  color: var(--dark);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
}

.verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #ecfdf5;
  color: #065f46;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
}

.clinic-title {
  font-size: 19px;
  font-weight: 800;
  color: var(--dark);
  line-height: 1.35;
  margin-bottom: 8px;
}

.clinic-title a:hover {
  color: var(--primary);
}

.clinic-address {
  font-size: 13px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
}

.clinic-excerpt-text {
  font-size: 14px;
  color: var(--slate);
  line-height: 1.55;
  margin-bottom: 16px;
}

.specialty-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.spec-tag {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  color: var(--slate);
  font-weight: 600;
}

/* Rating & Action Footer */
.clinic-footer {
  border-top: 1px solid var(--border);
  padding-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.rating-display {
  display: flex;
  align-items: center;
  gap: 6px;
}

.star-rating {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #fef3c7;
  color: #b45309;
  font-weight: 800;
  font-size: 14px;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
}

.review-count-text {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}

.card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-call {
  background: #f1f5f9;
  color: var(--dark);
  padding: 8px 14px;
  font-size: 13px;
  border-radius: var(--radius-sm);
  font-weight: 700;
}

.btn-call:hover {
  background: #e2e8f0;
}

.btn-wa {
  background: #22c55e;
  color: #fff;
  padding: 8px 12px;
  font-size: 13px;
  border-radius: var(--radius-sm);
  font-weight: 700;
}

.btn-wa:hover {
  background: #16a34a;
}

/* ==========================================================================
   B2B Promotion CTA Banner
   ========================================================================== */
.b2b-banner {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #fff;
  border-radius: var(--radius-xl);
  padding: 48px;
  margin-top: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.b2b-banner::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -80px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

.b2b-content h3 {
  font-size: 30px;
  font-weight: 900;
  margin-bottom: 12px;
  letter-spacing: -0.6px;
}

.b2b-content p {
  color: #94a3b8;
  font-size: 16px;
  max-width: 620px;
  line-height: 1.6;
}

/* ==========================================================================
   Single Clinic Details Page
   ========================================================================== */
.clinic-header-hero {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 44px 0;
}

.clinic-header-grid {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: 28px;
  align-items: center;
}

.clinic-logo-avatar {
  width: 140px;
  height: 140px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.clinic-logo-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-main-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 36px;
  padding: 44px 0;
}

.content-block {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
}

.content-block h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 14px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 60px 0 30px;
  margin-top: 60px;
  border-top: 1px solid #1e293b;
}

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

.footer-brand h4 {
  color: #fff;
  font-size: 22px;
  font-weight: 900;
  margin-bottom: 12px;
}

.footer-col h5 {
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a:hover {
  color: #fff;
}

.footer-disclaimer {
  font-size: 12px;
  color: #64748b;
  line-height: 1.5;
  margin-top: 16px;
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid #1e293b;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #64748b;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 992px) {
  .clinics-grid {
    grid-template-columns: 1fr 1fr;
  }
  .profile-main-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 680px) {
  .clinics-grid {
    grid-template-columns: 1fr;
  }
  .hero-title {
    font-size: 30px;
  }
  .header-inner {
    height: 64px;
  }
  .nav-links {
    display: none;
  }
  .b2b-banner {
    flex-direction: column;
    text-align: center;
    padding: 30px 20px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
