/* ============================================
   Clean Clinical — Dr. Kerimkulov Taalai
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Source+Serif+4:wght@400;600;700&family=Inter:wght@400;500;600&display=swap');

/* --- CSS Variables --- */
:root {
  --bg: #ffffff;
  --bg-rgb: 255, 255, 255;
  --surface: #f7fafa;
  --accent: #0e8a7b;
  --accent-rgb: 14, 138, 123;
  --accent-hover: #0ba392;
  --text: #1a2332;
  --text-muted: #5a6a7a;
  --border: #e2e8f0;
  --heading-font: 'Source Serif 4', serif;
  --body-font: 'Inter', sans-serif;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--body-font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-hover); }

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading-font);
  font-weight: 600;
  color: var(--text);
  line-height: 1.2;
  letter-spacing: -0.01em;
  overflow-wrap: break-word;
  word-break: break-word;
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); }

p { color: var(--text-muted); line-height: 1.7; }

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  margin-bottom: 0.75rem;
  overflow-wrap: break-word;
  word-break: break-word;
}

.section-header p {
  max-width: 560px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* --- Word Break Safety --- */
.service-card, .team-card, .hero h1, .section-header h2 {
  overflow-wrap: break-word;
  word-break: break-word;
}

/* --- Container --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* --- Section --- */
.section {
  padding: 5rem 0;
}

.section--surface {
  background: var(--surface);
}

/* --- Accent Divider Lines --- */
.accent-line {
  width: 60px;
  height: 2px;
  background: var(--accent);
  margin: 0 auto 1.5rem;
}

/* =============================================
   NAVIGATION
   ============================================= */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--bg);
  z-index: 1000;
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}

.nav.scrolled {
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.nav__logo {
  height: 52px;
  width: 52px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
}

.nav__name {
  font-family: var(--heading-font);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text);
  line-height: 1.2;
}

.nav__name small {
  display: block;
  font-family: var(--body-font);
  font-weight: 400;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav__links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  transition: color var(--transition);
  position: relative;
}

.nav__links a:hover {
  color: var(--accent);
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--transition);
}

.nav__links a:hover::after {
  width: 100%;
}

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.4rem;
  background: var(--accent);
  color: #fff !important;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.nav__cta:hover {
  background: var(--accent-hover);
  transform: scale(1.03);
  box-shadow: 0 4px 12px rgba(var(--accent-rgb), 0.3);
  color: #fff !important;
}

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: var(--transition);
  border-radius: 2px;
}

.burger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* =============================================
   HERO — Evidence Wall
   ============================================= */
.hero {
  position: relative;
  padding: 8rem 0 5rem;
  background: var(--bg);
  overflow: hidden;
  min-height: 80vh;
  display: flex;
  align-items: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  height: 400px;
  opacity: 0.04;
  background:
    linear-gradient(var(--accent) 2px, transparent 2px),
    linear-gradient(90deg, var(--accent) 2px, transparent 2px);
  background-size: 80px 80px;
  border-radius: 50%;
  pointer-events: none;
}

/* Medical cross SVG background */
.hero::after {
  content: '';
  position: absolute;
  top: 10%;
  right: 5%;
  width: 300px;
  height: 300px;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Crect x='35' y='10' width='30' height='80' rx='4' fill='none' stroke='%230e8a7b' stroke-width='1.5'/%3E%3Crect x='10' y='35' width='80' height='30' rx='4' fill='none' stroke='%230e8a7b' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(var(--accent-rgb), 0.08);
  color: var(--accent);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(var(--accent-rgb), 0.15);
}

.hero h1 {
  margin-bottom: 1rem;
}

.hero h1 span {
  color: var(--accent);
}

.hero__subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

/* Evidence Wall — stats cards */
.evidence-wall {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 3rem;
}

.evidence-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1rem;
  text-align: center;
  transition: border-color var(--transition), box-shadow var(--transition), border-left-width var(--transition);
}

.evidence-card:hover {
  border-color: var(--accent);
  border-left: 3px solid var(--accent);
  box-shadow: var(--shadow-sm);
}

.evidence-card__number {
  font-family: var(--heading-font);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.4rem;
}

.evidence-card__label {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.3;
}

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: var(--radius-sm);
  font-family: var(--body-font);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  min-height: 48px;
  text-decoration: none;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
}

.btn--primary:hover {
  background: var(--accent-hover);
  transform: scale(1.03);
  box-shadow: 0 6px 20px rgba(var(--accent-rgb), 0.3);
  color: #fff;
}

.btn--outline {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
}

.btn--outline:hover {
  background: rgba(var(--accent-rgb), 0.06);
  transform: scale(1.03);
  color: var(--accent);
}

.btn--white {
  background: #fff;
  color: var(--accent);
  border: 1px solid var(--border);
}

.btn--white:hover {
  box-shadow: var(--shadow-md);
  transform: scale(1.03);
  color: var(--accent);
}

/* =============================================
   SERVICES — 2 Col Grid, First Full-Width
   ============================================= */
.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.services-grid .service-card:first-child {
  grid-column: 1 / -1;
}

.service-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: visible;
  transition: border-color var(--transition), box-shadow var(--transition), border-left var(--transition);
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  border-color: var(--accent);
  border-left: 3px solid var(--accent);
  box-shadow: var(--shadow-md);
}

.service-card:first-child {
  flex-direction: row;
}

.service-card__img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius) var(--radius) 0 0;
}

.service-card:first-child .service-card__img {
  width: 45%;
  height: auto;
  min-height: 280px;
  border-radius: var(--radius) 0 0 var(--radius);
  flex-shrink: 0;
}

.service-card__body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-card__body h3 {
  margin-bottom: 0.6rem;
  font-size: 1.15rem;
}

.service-card__body p {
  font-size: 0.9rem;
  line-height: 1.6;
  flex: 1;
}

.service-card__price {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.3rem 0.8rem;
  background: rgba(var(--accent-rgb), 0.08);
  color: var(--accent);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
}

.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.75rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent);
}

.service-card__link:hover { gap: 0.6rem; }

/* =============================================
   TEAM
   ============================================= */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  justify-items: center;
}

.team-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: visible;
  text-align: center;
  max-width: 380px;
  width: 100%;
  transition: box-shadow var(--transition), border-color var(--transition);
}

.team-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}

.team-card__img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: var(--radius) var(--radius) 0 0;
}

.team-card__body {
  padding: 1.5rem;
}

.team-card__body h3 {
  margin-bottom: 0.3rem;
}

.team-card__body p {
  font-size: 0.9rem;
}

.team-card__spec {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.75rem;
  padding: 0.3rem 0.75rem;
  background: rgba(var(--accent-rgb), 0.08);
  color: var(--accent);
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 500;
}

/* =============================================
   GALLERY
   ============================================= */
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}

.gallery-item img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  transition: transform var(--transition);
}

.gallery-item:hover img {
  transform: scale(1.03);
}

.gallery-item--full {
  grid-column: 1 / -1;
}

.gallery-item--full img {
  height: 380px;
}

.gallery-category {
  margin-bottom: 2.5rem;
}

.gallery-category h3 {
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

/* Before-After Slider */
.before-after {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  max-width: 800px;
  margin: 0 auto 2.5rem;
  aspect-ratio: 16/10;
  cursor: col-resize;
  border: 1px solid var(--border);
}

.before-after img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.before-after__after {
  clip-path: inset(0 50% 0 0);
}

.before-after__slider {
  position: absolute;
  top: 0;
  left: 50%;
  width: 3px;
  height: 100%;
  background: var(--accent);
  z-index: 5;
  transform: translateX(-50%);
}

.before-after__slider::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  background: var(--accent);
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: var(--shadow-md);
}

.before-after__label {
  position: absolute;
  bottom: 1rem;
  padding: 0.3rem 0.8rem;
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-size: 0.75rem;
  border-radius: 100px;
  z-index: 4;
  font-weight: 500;
}

.before-after__label--before { left: 1rem; }
.before-after__label--after { right: 1rem; }

/* =============================================
   CTA SECTION
   ============================================= */
.cta-section {
  background: var(--text);
  color: #fff;
  padding: 4rem 0;
  text-align: center;
}

.cta-section h2 {
  color: #fff;
  margin-bottom: 0.75rem;
}

.cta-section p {
  color: rgba(255,255,255,0.7);
  max-width: 500px;
  margin: 0 auto 2rem;
}

.cta-section .btn--primary {
  background: var(--accent);
  color: #fff;
}

.cta-section .btn--primary:hover {
  background: var(--accent-hover);
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 3rem 0 1.5rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.footer__brand img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.footer__brand span {
  font-family: var(--heading-font);
  font-weight: 600;
  font-size: 1rem;
}

.footer h4 {
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  font-family: var(--body-font);
  font-weight: 600;
}

.footer ul {
  list-style: none;
}

.footer ul li {
  margin-bottom: 0.4rem;
}

.footer ul a {
  font-size: 0.9rem;
  color: var(--text);
}

.footer ul a:hover {
  color: var(--accent);
}

.footer__bottom {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* =============================================
   STICKY BOTTOM BAR (Mobile CTA)
   ============================================= */
.sticky-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 0.75rem 1rem;
  z-index: 999;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.08);
}

.sticky-bar__inner {
  display: flex;
  gap: 0.75rem;
  max-width: 600px;
  margin: 0 auto;
}

.sticky-bar .btn {
  flex: 1;
  min-height: 48px;
  justify-content: center;
  font-size: 0.9rem;
}

/* =============================================
   UTP SECTION
   ============================================= */
.utp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.utp-card {
  padding: 2rem 1.5rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.utp-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
}

.utp-card__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  background: rgba(var(--accent-rgb), 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.utp-card__icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.5;
}

.utp-card h3 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

.utp-card p {
  font-size: 0.85rem;
}

/* =============================================
   CONTACT SECTION
   ============================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--transition);
}

.contact-item:hover {
  border-color: var(--accent);
}

.contact-item__icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  background: rgba(var(--accent-rgb), 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-item__icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.5;
}

.contact-item h4 {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: none;
  letter-spacing: 0;
  margin-bottom: 0.2rem;
}

.contact-item a, .contact-item p {
  font-size: 1rem;
  color: var(--text);
  font-weight: 500;
}

.contact-map {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  height: 100%;
  min-height: 300px;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

/* =============================================
   PAGE HEADER (inner pages)
   ============================================= */
.page-header {
  padding: 7rem 0 3rem;
  background: var(--surface);
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.page-header h1 {
  margin-bottom: 0.5rem;
}

.page-header p {
  font-size: 1.05rem;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .evidence-wall {
    grid-template-columns: repeat(2, 1fr);
  }
  .utp-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  body { padding-bottom: 70px; }

  .nav__links { display: none; }
  .nav__cta-desktop { display: none; }
  .burger { display: flex; }

  /* Mobile Menu */
  .nav__links.active {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 72px;
    left: 0;
    width: 100%;
    background: var(--bg);
    padding: 2rem 1.5rem;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    gap: 1.25rem;
    z-index: 999;
  }

  .nav__links.active a {
    font-size: 1.1rem;
    padding: 0.5rem 0;
  }

  /* Hero */
  .hero { padding: 7rem 0 3rem; min-height: auto; }
  .hero::after { width: 200px; height: 200px; top: 5%; right: 0; }
  .evidence-wall { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
  .evidence-card { padding: 1rem 0.75rem; }
  .evidence-card__number { font-size: 1.6rem; }

  /* Services */
  .services-grid { grid-template-columns: 1fr; }
  .service-card:first-child { flex-direction: column; }
  .service-card:first-child .service-card__img {
    width: 100%;
    min-height: 200px;
    border-radius: var(--radius) var(--radius) 0 0;
  }

  /* Gallery */
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item img { height: 220px; }
  .gallery-item--full img { height: 260px; }

  /* UTP */
  .utp-grid { grid-template-columns: 1fr; }

  /* Contact */
  .contact-grid { grid-template-columns: 1fr; }

  /* Footer */
  .footer__grid { grid-template-columns: 1fr; gap: 1.5rem; }

  /* Sticky bar */
  .sticky-bar { display: block; }

  /* Section */
  .section { padding: 3.5rem 0; }
}

@media (max-width: 480px) {
  .evidence-wall { grid-template-columns: 1fr 1fr; gap: 0.5rem; }
  .evidence-card__number { font-size: 1.4rem; }
  .hero h1 { font-size: 1.8rem; }
  .hero__subtitle { font-size: 1rem; }
  .hero__actions { flex-direction: column; align-items: center; }
  .hero__actions .btn { width: 100%; }
}
