/* ============================================
   Geneva Dental Clinic — Clean Clinical
   Style 02: Pristine white + teal accent
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Source+Serif+4:opsz,wght@8..60,400;8..60,600;8..60,700&family=Inter:wght@400;500;600&display=swap');

:root {
  --bg: #ffffff;
  --surface: #f7fafa;
  --accent: #0e8a7b;
  --accent-hover: #0ba392;
  --text: #1a2332;
  --text-muted: #5a6a7a;
  --border: #e2e8f0;
  --accent-rgb: 14, 138, 123;
  --bg-rgb: 255, 255, 255;
  --heading-font: 'Source Serif 4', serif;
  --body-font: 'Inter', sans-serif;
  --heading-weight: 600;
  --body-weight: 400;
  --radius: 20px;
  --radius-sm: 10px;
  --shadow: 0 4px 30px rgba(0,0,0,0.06);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.1);
  --transition: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── 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(--body-font);
  font-weight: var(--body-weight);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--heading-font);
  font-weight: var(--heading-weight);
  line-height: 1.2;
  letter-spacing: -0.01em;
  overflow-wrap: break-word;
  word-break: break-word;
}

/* Text safety — long Russian words */
.service-card,
.team-card,
.hero h1,
.section-header h2 {
  overflow-wrap: break-word;
  word-break: break-word;
}

/* ── Preloader ── */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  transition: opacity 0.6s, visibility 0.6s;
}

.preloader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-logo {
  font-family: var(--heading-font);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--accent);
}

.preloader-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ── Container ── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ── Navigation ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-logo img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.nav-logo span {
  font-family: var(--heading-font);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.3s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s;
}

.nav-links a:hover { color: var(--accent); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--accent); }
.nav-links a.active::after { width: 100%; }

.nav-cta {
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.5rem 1.25rem;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.nav-cta:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

/* 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.is-active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.burger.is-active span:nth-child(2) { opacity: 0; }
.burger.is-active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  background: var(--bg);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  transition: right 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-menu.is-active { right: 0; }

.mobile-menu a {
  font-family: var(--heading-font);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
  transition: color 0.3s;
}

.mobile-menu a:hover { color: var(--accent); }

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 72px;
  background: var(--bg);
  overflow: hidden;
}

/* Hero decor — subtle medical cross / pulse SVG */
.hero::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 600' fill='none'%3E%3Cpath d='M230 50h140v180h180v140H370v180H230V370H50V230h180z' stroke='%230e8a7b' stroke-width='1' opacity='0.07'/%3E%3Cpath d='M50 300 Q150 250 200 300 Q250 350 300 300 Q350 250 400 300 Q450 350 500 300 Q550 250 600 300' stroke='%230e8a7b' stroke-width='1' opacity='0.05' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 1;
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.25rem;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(14, 138, 123, 0.08);
  border: 1px solid rgba(14, 138, 123, 0.15);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 2rem;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1.25rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 4rem;
}

/* Evidence wall — stats grid */
.evidence-wall {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.hero-stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: var(--transition);
}

.hero-stat:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.hero-stat .stat-number {
  font-family: var(--heading-font);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.hero-stat .stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  font-family: var(--body-font);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  min-height: 48px;
  text-align: center;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(14, 138, 123, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
}

.btn-outline:hover {
  background: rgba(14, 138, 123, 0.06);
  transform: translateY(-2px);
}

/* ── Section ── */
.section {
  padding: 5rem 0;
}

.section--surface {
  background: var(--surface);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
}

.section-header h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  color: var(--text);
  margin-bottom: 0.75rem;
}

.section-header p {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Section divider — accent lines */
.section-divider {
  width: 60px;
  height: 1px;
  background: var(--accent);
  margin: 0 auto 1rem;
  opacity: 0.4;
}

/* ── Services Grid — 2 columns on desktop ── */
.services-grid {
  display: grid;
  grid-template-columns: 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: var(--transition);
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  border-left: 3px solid var(--accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.service-card-img {
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
}

.service-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.service-card:hover .service-card-img img {
  transform: scale(1.04);
}

.service-card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.service-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
}

.service-card .btn {
  margin-top: 1rem;
  align-self: flex-start;
  padding: 0.5rem 1.25rem;
  font-size: 0.8rem;
}

/* First card horizontal on desktop */
.service-card--featured {
  flex-direction: row;
}

.service-card--featured .service-card-img {
  width: 50%;
  aspect-ratio: auto;
  min-height: 280px;
  border-radius: var(--radius) 0 0 var(--radius);
}

.service-card--featured .service-card-body {
  padding: 2rem;
  justify-content: center;
}

.service-card--featured h3 {
  font-size: 1.4rem;
}

/* ── Team Grid — 3:4 photos ── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.team-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: visible;
  transition: var(--transition);
  text-align: center;
}

.team-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-left: 3px solid var(--accent);
}

.team-card-img {
  width: 100%;
  aspect-ratio: 3/4;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
}

.team-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.team-card:hover .team-card-img img {
  transform: scale(1.03);
}

.team-card-body {
  padding: 1.25rem;
}

.team-card h3 {
  font-size: 1.05rem;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.team-card .team-role {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.team-card .team-spec {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ── Gallery Grid ── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1;
  position: relative;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.gallery-item:hover img {
  transform: scale(1.06);
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(14, 138, 123, 0.15) 100%);
  opacity: 0;
  transition: opacity 0.3s;
}

.gallery-item:hover::after { opacity: 1; }

.gallery-label {
  position: absolute;
  bottom: 0.75rem;
  left: 0.75rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text);
  z-index: 1;
  opacity: 0;
  transform: translateY(8px);
  transition: var(--transition);
}

.gallery-item:hover .gallery-label {
  opacity: 1;
  transform: translateY(0);
}

/* ── USP / Features ── */
.usp-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.usp-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: var(--transition);
}

.usp-item:hover {
  border-left: 3px solid var(--accent);
  box-shadow: var(--shadow);
}

.usp-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: rgba(14, 138, 123, 0.08);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.usp-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.5;
}

.usp-text h3 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.usp-text p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── CTA Section ── */
.cta-section {
  padding: 5rem 0;
  background: var(--surface);
  text-align: center;
}

.cta-section h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 1rem;
}

.cta-section p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 500px;
  margin: 0 auto 2rem;
}

.cta-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ── Contact List ── */
.contact-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: var(--transition);
}

.contact-item:hover {
  border-left: 3px solid var(--accent);
  box-shadow: var(--shadow);
}

.contact-item svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.5;
}

.contact-item a {
  color: var(--text);
  font-weight: 500;
  transition: color 0.3s;
}

.contact-item a:hover { color: var(--accent); }

/* ── Map Container ── */
.map-container {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  margin-top: 2rem;
  aspect-ratio: 16/9;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ── Footer ── */
.footer {
  background: var(--text);
  color: rgba(255, 255, 255, 0.7);
  padding: 3rem 0 2rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
  text-align: center;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-logo img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.footer-logo span {
  font-family: var(--heading-font);
  font-weight: 600;
  font-size: 1rem;
  color: #fff;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.3s;
}

.footer-links a:hover { color: #fff; }

.footer-copy {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
}

/* ── Floating WhatsApp ── */
.floating-whatsapp {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 56px;
  height: 56px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  z-index: 998;
  transition: var(--transition);
}

.floating-whatsapp:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5);
}

.floating-whatsapp svg {
  width: 28px;
  height: 28px;
  fill: #fff;
}

/* ── Services page ── */
.services-hero {
  padding: 8rem 0 3rem;
  background: var(--surface);
  text-align: center;
}

.services-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 0.75rem;
}

.services-hero p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.services-full-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.service-detail-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.service-detail-card:hover {
  border-left: 3px solid var(--accent);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.service-detail-img {
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
}

.service-detail-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.service-detail-card:hover .service-detail-img img {
  transform: scale(1.04);
}

.service-detail-body {
  padding: 1.5rem;
  flex: 1;
}

.service-detail-body h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.service-detail-body p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ── Gallery page hero ── */
.gallery-hero {
  padding: 8rem 0 3rem;
  background: var(--surface);
  text-align: center;
}

.gallery-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 0.75rem;
}

.gallery-hero p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.gallery-full-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

/* ── Pseudo decorations ── */
.section-header::before {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background: var(--accent);
  margin: 0 auto 1.25rem;
  opacity: 0.5;
}

.cta-section::before {
  content: '';
  display: block;
  width: 60px;
  height: 1px;
  background: var(--accent);
  margin: 0 auto 2rem;
  opacity: 0.3;
}

/* ── Responsive ── */
@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-grid .service-card:first-child {
    grid-column: 1 / -1;
  }

  .team-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-full-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .usp-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-full-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

@media (min-width: 1024px) {
  .team-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-full-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .evidence-wall {
    grid-template-columns: repeat(4, 1fr);
  }

  .service-card--featured {
    flex-direction: row;
  }
}

@media (max-width: 767px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .burger { display: flex; }

  .evidence-wall {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .hero-stat {
    padding: 1.25rem 1rem;
  }

  .hero-stat .stat-number {
    font-size: 1.8rem;
  }

  .section {
    padding: 3.5rem 0;
  }

  .service-card--featured {
    flex-direction: column;
  }

  .service-card--featured .service-card-img {
    width: 100%;
    min-height: auto;
    aspect-ratio: 16/10;
    border-radius: var(--radius) var(--radius) 0 0;
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .gallery-full-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .btn {
    min-height: 48px;
    padding: 0.875rem 1.5rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 480px) {
  .team-grid {
    grid-template-columns: 1fr;
  }
}
