/* ============================================================
   Solnyshko Dental — Minimalist Zen
   Palette: warm cream / forest green / charcoal
   Fonts: Cormorant Garamond (headings) + Karla (body)
   ============================================================ */

/* --- Reset & Variables --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #fafaf8;
  --surface: #f0f0ec;
  --accent: #2d5a3d;
  --accent-hover: #3a7250;
  --text: #1a1a18;
  --text-muted: #7a7a72;
  --border: #e0e0da;
  --white: #ffffff;

  --font-heading: 'Cormorant Garamond', serif;
  --font-body: 'Karla', sans-serif;
  --heading-weight: 500;
  --body-weight: 400;
  --base-size: 17px;
  --letter-heading: 0.02em;

  --radius: 6px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.04);
  --shadow-md: 0 4px 20px rgba(0,0,0,.06);
  --shadow-lg: 0 8px 40px rgba(0,0,0,.08);
  --transition: .3s cubic-bezier(.4,0,.2,1);

  --container: 1200px;
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 32px;
  --space-lg: 64px;
  --space-xl: 100px;
  --space-2xl: 140px;
}

html { font-size: var(--base-size); scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-weight: var(--body-weight);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* --- Container --- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: var(--heading-weight);
  letter-spacing: var(--letter-heading);
  line-height: 1.2;
  color: var(--text);
}

h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h3 { font-size: clamp(1.3rem, 3vw, 1.6rem); }
h4 { font-size: 1.1rem; }

p { max-width: 65ch; }

.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-sm);
}

.section-title { margin-bottom: var(--space-md); }

.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.text-accent { color: var(--accent); }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 14px 36px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: .9rem;
  font-weight: 500;
  letter-spacing: .04em;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  border: 1.5px solid var(--accent);
  color: var(--accent);
  background: transparent;
}
.btn-outline:hover {
  background: var(--accent);
  color: var(--white);
}

.btn-ghost {
  color: var(--accent);
  padding: 14px 0;
}
.btn-ghost:hover { opacity: .7; }

.btn-icon {
  width: 52px;
  height: 52px;
  padding: 0;
  border-radius: 50%;
  flex-shrink: 0;
}

/* --- Header --- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(250,250,248,.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo img {
  height: 48px;
  width: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: var(--heading-weight);
  letter-spacing: var(--letter-heading);
  color: var(--text);
}

.logo-sub {
  font-size: .65rem;
  color: var(--text-muted);
  letter-spacing: .06em;
  text-transform: uppercase;
  display: block;
  margin-top: -2px;
}

/* Desktop nav */
.nav-desktop {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-desktop a {
  font-size: .85rem;
  font-weight: 500;
  letter-spacing: .03em;
  color: var(--text-muted);
  transition: color var(--transition);
  position: relative;
}

.nav-desktop a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1.5px;
  background: var(--accent);
  transition: width var(--transition);
}

.nav-desktop a:hover,
.nav-desktop a.active {
  color: var(--text);
}

.nav-desktop a:hover::after,
.nav-desktop a.active::after {
  width: 100%;
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-phone {
  font-size: .85rem;
  font-weight: 500;
  color: var(--text);
  display: none;
}

/* Burger */
.burger {
  display: none;
  width: 44px;
  height: 44px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  z-index: 1010;
}

.burger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text);
  transition: all var(--transition);
  transform-origin: center;
}

.burger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* Mobile nav overlay */
.nav-mobile {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--bg);
  z-index: 1005;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s ease;
}

.nav-mobile.open {
  opacity: 1;
  pointer-events: all;
}

.nav-mobile a {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: var(--heading-weight);
  color: var(--text);
  transition: color var(--transition);
}

.nav-mobile a:hover { color: var(--accent); }

.nav-mobile .mobile-contacts {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}

/* --- Hero Slider --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 72px;
  background: linear-gradient(160deg, var(--bg) 0%, #eef3ec 40%, var(--surface) 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%; right: -10%;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(45,90,61,.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -10%; left: -5%;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(45,90,61,.04) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content { padding: var(--space-lg) 0; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(45,90,61,.08);
  border-radius: 100px;
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-md);
}

.hero-badge::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.hero-title {
  margin-bottom: var(--space-md);
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-lg);
  max-width: 480px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Hero slider (right side) */
.hero-slider {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 3/4;
  max-height: 560px;
  box-shadow: var(--shadow-lg);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .8s ease;
}

.hero-slide.active { opacity: 1; }

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-slide-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 40px 24px 24px;
  background: linear-gradient(transparent, rgba(0,0,0,.5));
  color: var(--white);
}

.hero-slide-caption h4 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.hero-slide-caption p {
  font-size: .8rem;
  opacity: .85;
}

.slider-dots {
  position: absolute;
  bottom: 12px; right: 20px;
  display: flex;
  gap: 8px;
  z-index: 5;
}

.slider-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
  transition: all var(--transition);
  cursor: pointer;
}

.slider-dot.active {
  background: var(--white);
  width: 24px;
  border-radius: 4px;
}

/* --- Section Spacing --- */
.section {
  padding: var(--space-xl) 0;
}

.section-lg {
  padding: var(--space-2xl) 0;
}

/* Thin decorative line */
.divider {
  width: 48px;
  height: 1.5px;
  background: var(--accent);
  margin: var(--space-sm) 0;
}

.divider-center {
  margin-left: auto;
  margin-right: auto;
}

/* --- Service Cards (photo-top) --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-md);
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.service-card-img {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
}

.service-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}

.service-card:hover .service-card-img img {
  transform: scale(1.04);
}

.service-card-body {
  padding: var(--space-md);
}

.service-card-body h3 {
  margin-bottom: 8px;
}

.service-card-body p {
  color: var(--text-muted);
  font-size: .9rem;
  line-height: 1.6;
  margin-bottom: var(--space-sm);
}

.service-price {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: var(--heading-weight);
  color: var(--accent);
}

/* --- Price Table --- */
.price-section {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  margin-bottom: var(--space-md);
}

.price-section-header {
  padding: var(--space-md);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.price-section-header h3 { margin: 0; }

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px var(--space-md);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}

.price-row:last-child { border-bottom: none; }
.price-row:hover { background: rgba(45,90,61,.02); }

.price-name { font-size: .95rem; }

.price-value {
  font-family: var(--font-heading);
  font-weight: var(--heading-weight);
  color: var(--accent);
  white-space: nowrap;
  margin-left: 16px;
}

/* --- Before/After Gallery --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: var(--space-md);
}

.ba-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all var(--transition);
}

.ba-card:hover {
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.ba-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
}

.ba-images::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 2px;
  background: var(--white);
}

.ba-img {
  aspect-ratio: 1;
  overflow: hidden;
  position: relative;
}

.ba-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ba-label {
  position: absolute;
  bottom: 8px;
  font-size: .65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  padding: 4px 10px;
  border-radius: 100px;
  color: var(--white);
}

.ba-img:first-child .ba-label {
  left: 8px;
  background: rgba(0,0,0,.5);
}

.ba-img:last-child .ba-label {
  right: 8px;
  background: var(--accent);
}

.ba-card-body {
  padding: 20px var(--space-md);
}

.ba-card-body h4 { margin-bottom: 4px; }
.ba-card-body p { color: var(--text-muted); font-size: .85rem; }

/* --- Team --- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-md);
}

.team-card {
  text-align: center;
}

.team-card-photo {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto var(--space-sm);
  border: 3px solid var(--border);
  transition: border-color var(--transition);
}

.team-card:hover .team-card-photo {
  border-color: var(--accent);
}

.team-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-card h4 { margin-bottom: 4px; }
.team-card p { color: var(--text-muted); font-size: .85rem; }

/* --- Stats --- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-md);
  padding: var(--space-lg) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stat {
  text-align: center;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.6rem;
  font-weight: var(--heading-weight);
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: .8rem;
  color: var(--text-muted);
  letter-spacing: .04em;
}

/* --- Inline CTA Sections --- */
.cta-inline {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.cta-inline h2 { margin-bottom: 8px; }
.cta-inline p { color: var(--text-muted); }

.cta-inline-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

/* --- Contact Info --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: var(--space-md);
}

.contact-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(45,90,61,.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent);
}

.contact-icon svg { width: 20px; height: 20px; }

.contact-info h4 { margin-bottom: 4px; }
.contact-info p { color: var(--text-muted); font-size: .9rem; }
.contact-info a { color: var(--accent); font-weight: 500; }
.contact-info a:hover { color: var(--accent-hover); }

/* Map embed */
.map-wrapper {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  height: 400px;
}

.map-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* --- Footer --- */
.site-footer {
  background: var(--text);
  color: rgba(255,255,255,.6);
  padding: var(--space-lg) 0 var(--space-md);
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.footer-brand .logo-text { color: var(--white); }
.footer-brand .logo-sub { color: rgba(255,255,255,.4); }
.footer-brand p {
  margin-top: var(--space-sm);
  font-size: .85rem;
  line-height: 1.6;
  max-width: 360px;
}

.footer-col h4 {
  color: var(--white);
  font-size: .9rem;
  margin-bottom: var(--space-sm);
}

.footer-col a {
  display: block;
  font-size: .85rem;
  margin-bottom: 8px;
  transition: color var(--transition);
}

.footer-col a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: var(--space-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .78rem;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.08);
  transition: background var(--transition);
}

.footer-social a:hover { background: rgba(255,255,255,.15); }
.footer-social svg { width: 18px; height: 18px; fill: rgba(255,255,255,.6); }

/* --- Scroll Reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s ease, transform .7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-slider { max-height: 420px; aspect-ratio: 3/3; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: var(--space-md); }
  .header-phone { display: none !important; }
}

@media (max-width: 768px) {
  :root {
    --space-lg: 48px;
    --space-xl: 72px;
    --space-2xl: 100px;
  }

  .nav-desktop { display: none; }
  .burger { display: flex; }
  .nav-mobile { display: flex; }

  .header-cta .btn { display: none; }

  .hero {
    min-height: auto;
    padding-top: 100px;
    padding-bottom: var(--space-lg);
  }

  .hero-content { padding: var(--space-md) 0; }

  .hero-slider {
    max-height: 360px;
    aspect-ratio: auto;
  }

  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }

  .services-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr 1fr; }

  .cta-inline {
    flex-direction: column;
    text-align: center;
    padding: var(--space-md);
  }

  .cta-inline-actions {
    flex-direction: column;
    width: 100%;
  }

  .cta-inline-actions .btn { width: 100%; }

  .stats-row { grid-template-columns: 1fr 1fr; }

  .footer-bottom { flex-direction: column; gap: var(--space-sm); }
}

@media (max-width: 480px) {
  .team-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr; }
  .ba-images { grid-template-columns: 1fr; }
  .ba-images::after { display: none; }
  .ba-img { aspect-ratio: 4/3; }
}

/* --- Utility --- */
.mb-0 { margin-bottom: 0; }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }

/* Page hero (inner pages) */
.page-hero {
  padding: 140px 0 var(--space-lg);
  background: linear-gradient(160deg, var(--bg) 0%, #eef3ec 40%, var(--surface) 100%);
  text-align: center;
}

.page-hero p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 540px;
  margin: var(--space-sm) auto 0;
}

/* Floating WhatsApp button */
.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 900;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37,211,102,.35);
  transition: all var(--transition);
}

.wa-float:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 24px rgba(37,211,102,.45);
}

.wa-float svg { width: 28px; height: 28px; fill: #fff; }

/* Service page extras */
.service-category {
  margin-bottom: var(--space-xl);
}

.service-category-header {
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--border);
}

/* Reviews strip */
.reviews-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-md);
}

.review-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
}

.review-card:hover {
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.review-card img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
}
