/* ═══════════════════════════════════════════════════
   CLEVER DENTAL — Design System v2.0
   Straumann-inspired: Premium Minimalism
   Lots of whitespace, large typography, photo-centric
   ═══════════════════════════════════════════════════ */

/* ── TOKENS ──────────────────────────────────── */
:root {
  /* Palette — Straumann-inspired neutral + brand accent */
  --black: #0A0A0A;
  --dark: #141414;
  --dark-2: #1C1C1E;
  --dark-3: #2C2C2E;
  --gray-900: #1D1D1F;
  --gray-800: #333336;
  --gray-700: #48484A;
  --gray-600: #636366;
  --gray-500: #8E8E93;
  --gray-400: #AEAEB2;
  --gray-300: #C7C7CC;
  --gray-200: #D1D1D6;
  --gray-100: #E5E5EA;
  --gray-50: #F2F2F7;
  --white: #FFFFFF;
  --off-white: #FAFAFA;

  /* Brand */
  --brand: #C8A96E;          /* Warm gold — premium, medical, trust */
  --brand-light: #D4BA85;
  --brand-dark: #A88B4A;
  --brand-bg: rgba(200,169,110,0.06);
  --brand-bg-2: rgba(200,169,110,0.12);

  /* Accent (for CTAs) */
  --accent: #1A73E8;         /* Professional blue */
  --accent-dark: #1557B0;
  --accent-light: #4A90E2;

  /* Success */
  --green: #34C759;
  --green-bg: #F0FDF4;

  /* Text */
  --text: #1D1D1F;
  --text-2: #48484A;
  --text-3: #8E8E93;
  --text-inv: #FFFFFF;
  --text-inv-2: rgba(255,255,255,0.75);
  --text-inv-3: rgba(255,255,255,0.45);

  /* UI */
  --border: #E5E5EA;
  --border-dark: rgba(255,255,255,0.08);
  --radius: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
  --shadow-xl: 0 24px 64px rgba(0,0,0,0.16);
  --transition: 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
  --transition-fast: 0.2s ease;

  /* Layout */
  --max-width: 1280px;
  --max-narrow: 800px;
  --header-h: 64px;
  --section-py: clamp(80px, 10vw, 140px);
}

/* ── RESET ───────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--white);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { font: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }
input, select, textarea { font: inherit; }

/* ── TYPOGRAPHY — Straumann-scale ────────────── */
h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
}
h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
h4 { font-size: 1.125rem; font-weight: 600; line-height: 1.35; }
p { font-size: 1.0625rem; line-height: 1.75; color: var(--text-2); }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.text-lg { font-size: 1.25rem; line-height: 1.65; }
.text-xl { font-size: 1.5rem; line-height: 1.55; }

/* ── LAYOUT ──────────────────────────────────── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
}
.container--narrow {
  max-width: var(--max-narrow);
}
.section {
  padding: var(--section-py) 0;
}
.section--dark {
  background: var(--dark);
  color: var(--text-inv);
}
.section--dark p { color: var(--text-inv-2); }
.section--black {
  background: var(--black);
  color: var(--text-inv);
}
.section--gray {
  background: var(--gray-50);
}

/* ── HEADER — Straumann-minimal ──────────────── */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  transition: var(--transition);
}
.header.scrolled {
  box-shadow: var(--shadow);
}
.header--dark {
  background: rgba(10,10,10,0.92);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
}
.header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.header__logo img {
  height: 28px;
  width: auto;
}
.header__logo-text {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text);
}
.header--dark .header__logo-text { color: var(--text-inv); }
.header__logo-text span { color: var(--brand); }
.header__nav {
  display: flex;
  align-items: center;
  gap: 36px;
}
.header__link {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-2);
  transition: color var(--transition-fast);
  letter-spacing: 0.02em;
}
.header--dark .header__link { color: var(--text-inv-2); }
.header__link:hover,
.header__link.active {
  color: var(--text);
}
.header--dark .header__link:hover,
.header--dark .header__link.active { color: var(--text-inv); }
.header__phone {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.02em;
}
.header--dark .header__phone { color: var(--text-inv); }
.header__cta {
  padding: 8px 24px;
  background: var(--brand);
  color: var(--white);
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: 100px;
  transition: var(--transition);
  letter-spacing: 0.02em;
}
.header__cta:hover {
  background: var(--brand-dark);
}

/* Burger */
.header__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}
.header__burger span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--text);
  transition: var(--transition-fast);
}
.header--dark .header__burger span { background: var(--text-inv); }

/* ── BUTTONS — Straumann-style ───────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 100px;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  white-space: nowrap;
  letter-spacing: 0.01em;
}
.btn--primary {
  padding: 16px 40px;
  background: var(--brand);
  color: var(--white);
}
.btn--primary:hover {
  background: var(--brand-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(200,169,110,0.25);
}
.btn--secondary {
  padding: 16px 40px;
  background: transparent;
  color: var(--text-inv);
  border: 1px solid rgba(255,255,255,0.25);
}
.btn--secondary:hover {
  border-color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.05);
}
.btn--dark {
  padding: 16px 40px;
  background: var(--dark);
  color: var(--white);
}
.btn--dark:hover {
  background: var(--dark-2);
  transform: translateY(-1px);
}
.btn--outline {
  padding: 14px 36px;
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn--outline:hover {
  border-color: var(--brand);
  color: var(--brand);
}
.btn--sm {
  padding: 10px 24px;
  font-size: 0.8125rem;
}
.btn--lg {
  padding: 20px 48px;
  font-size: 1rem;
}
.btn--full { width: 100%; }
.btn--icon {
  width: 48px; height: 48px;
  padding: 0;
  border-radius: 50%;
}

/* ── CARDS — Clean, lots of space ────────────── */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 40px;
  transition: var(--transition);
}
.card:hover {
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.card--dark {
  background: var(--dark-2);
  border-color: var(--border-dark);
  color: var(--text-inv);
}

/* ── BADGE / TAG ─────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border-radius: 100px;
}
.badge--brand {
  background: var(--brand-bg-2);
  color: var(--brand-dark);
}
.badge--dark {
  background: rgba(255,255,255,0.06);
  color: var(--text-inv-2);
  border: 1px solid rgba(255,255,255,0.1);
}

/* ── FORMS ───────────────────────────────────── */
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-2);
  margin-bottom: 8px;
}
.form-input {
  width: 100%;
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  background: var(--white);
  color: var(--text);
  transition: var(--transition-fast);
}
.form-input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-bg);
}
.form-input::placeholder { color: var(--gray-400); }
.form-select {
  width: 100%;
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  background: var(--white);
  color: var(--text);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 8L1 3h10z' fill='%238E8E93'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 20px center;
  cursor: pointer;
  transition: var(--transition-fast);
}
.form-select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-bg);
}
.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.75rem;
  color: var(--text-3);
  line-height: 1.5;
}
.form-consent input[type="checkbox"] { margin-top: 2px; accent-color: var(--brand); }
.form-consent a { color: var(--brand); text-decoration: underline; }

/* ── FOOTER — Minimal ────────────────────────── */
.footer {
  background: var(--black);
  color: var(--text-inv);
  padding: 80px 0 40px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 60px;
}
.footer__brand {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--text-inv-3);
  margin-bottom: 20px;
  text-transform: uppercase;
}
.footer__brand span { color: var(--brand); }
.footer__desc {
  font-size: 0.9rem;
  color: var(--text-inv-3);
  line-height: 1.7;
  max-width: 300px;
}
.footer__title {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-inv-3);
  margin-bottom: 24px;
}
.footer__links { display: flex; flex-direction: column; gap: 14px; }
.footer__link {
  font-size: 0.875rem;
  color: var(--text-inv-2);
  transition: color var(--transition-fast);
}
.footer__link:hover { color: var(--brand); }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer__copy { font-size: 0.75rem; color: var(--text-inv-3); }
.footer__legal { display: flex; gap: 24px; }
.footer__legal a {
  font-size: 0.75rem;
  color: var(--text-inv-3);
  transition: color var(--transition-fast);
}
.footer__legal a:hover { color: var(--text-inv-2); }
.footer__disclaimer {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 20px;
  margin-bottom: 20px;
}
.footer__disclaimer p {
  font-size: 0.6875rem;
  color: rgba(255,255,255,0.25);
  line-height: 1.6;
  max-width: 800px;
}

/* ── FLOATING BUTTONS ────────────────────────── */
.float-buttons {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.float-btn {
  width: 52px; height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
}
.float-btn:hover { transform: scale(1.08); box-shadow: var(--shadow-xl); }
.float-btn--wa { background: #25D366; color: #fff; }
.float-btn--tg { background: #0088cc; color: #fff; }
.float-btn--phone { background: var(--brand); color: #fff; }
.float-btn svg { width: 22px; height: 22px; }

/* ── COOKIE CONSENT ──────────────────────────── */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 10000;
  background: var(--dark);
  color: var(--text-inv);
  padding: 20px 32px;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--border-dark);
}
.cookie-banner.show { display: flex; }
.cookie-banner p { font-size: 0.8125rem; color: var(--text-inv-2); flex: 1; }
.cookie-banner a { color: var(--brand); text-decoration: underline; }

/* ── MODAL ───────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(8px);
  z-index: 10001;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal-overlay.show { display: flex; }
.modal {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 48px;
  max-width: 480px;
  width: 100%;
  position: relative;
  animation: modalIn 0.4s cubic-bezier(0.25,0.1,0.25,1);
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.modal__close {
  position: absolute;
  top: 20px; right: 20px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--gray-50);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--text-2);
  transition: var(--transition-fast);
}
.modal__close:hover { background: var(--gray-100); }

/* ── ANIMATIONS — Smooth, premium ────────────── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s cubic-bezier(0.25,0.1,0.25,1), transform 0.8s cubic-bezier(0.25,0.1,0.25,1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Parallax-like image zoom */
.img-zoom {
  overflow: hidden;
  border-radius: var(--radius-lg);
}
.img-zoom img {
  transition: transform 0.6s cubic-bezier(0.25,0.1,0.25,1);
}
.img-zoom:hover img {
  transform: scale(1.03);
}

/* ── STATS ───────────────────────────────────── */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 40px;
}
.stat { text-align: center; }
.stat__number {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--brand);
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.stat__label {
  font-size: 0.8125rem;
  color: var(--text-3);
  letter-spacing: 0.02em;
}

/* ── RESPONSIVE ──────────────────────────────── */
@media (max-width: 1024px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  :root { --header-h: 56px; }
  .header__nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0; bottom: 0;
    background: var(--white);
    flex-direction: column;
    padding: 40px 24px;
    gap: 28px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 999;
  }
  .header--dark .header__nav { background: var(--dark); }
  .header__nav.open { transform: translateX(0); }
  .header__burger { display: flex; }
  .header__phone { order: -1; font-size: 1.1rem; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .footer__bottom { flex-direction: column; text-align: center; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .float-buttons { bottom: 20px; right: 20px; }
  .float-btn { width: 46px; height: 46px; }
  .cookie-banner { flex-direction: column; text-align: center; padding: 20px; }
  .modal { padding: 32px 24px; }
}

@media (max-width: 480px) {
  .btn--lg { padding: 16px 32px; font-size: 0.9375rem; }
}
