/*
Theme Name: Dentist WP Safe
Theme URI: https://dentist.ch
Author: dentist.ch
Author URI: https://dentist.ch
Description: WordPress-safe premium multilingual dental clinic theme
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: dentist-wp-safe
*/
:root {
  --bg: #0b1320;
  --bg-alt: #0f1b2d;
  --page-bg: radial-gradient(circle at top right, #1a2a45 0%, #0b1320 46%, #070d18 100%);
  --surface: rgba(16, 30, 48, 0.75);
  --line: rgba(198, 166, 100, 0.22);
  --text: #eaf0f7;
  --text-muted: #a9b7c8;
  --gold: #c6a664;
  --gold-soft: #dfc38a;
  --header-bg: linear-gradient(to bottom, rgba(8, 15, 26, 0.88), rgba(8, 15, 26, 0.66));
  --header-border: rgba(255, 255, 255, 0.06);
  --section-contrast-bg: linear-gradient(135deg, rgba(19, 32, 49, 0.62), rgba(8, 14, 25, 0.54));
  --section-divider: rgba(255, 255, 255, 0.05);
  --card-border: rgba(255, 255, 255, 0.07);
  --ghost-bg: rgba(8, 15, 26, 0.3);
  --lang-bg: rgba(11, 19, 32, 0.55);
  --input-bg: rgba(255, 255, 255, 0.04);
  --input-border: rgba(255, 255, 255, 0.12);
  --slot-border: rgba(255, 255, 255, 0.2);
  --slot-label-bg: rgba(8, 16, 29, 0.56);
  --slot-label-border: rgba(255, 255, 255, 0.2);
  --footer-border: rgba(255, 255, 255, 0.08);
  --soft-text: #c4d0de;
  --meta-text: #ccdaea;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 18px 45px rgba(4, 10, 20, 0.35);
}

html[data-theme="light"] {
  --bg: #f4f8fd;
  --bg-alt: #e9f0f8;
  --page-bg: radial-gradient(circle at top right, #ffffff 0%, #f3f7fc 55%, #e7eef8 100%);
  --surface: rgba(255, 255, 255, 0.82);
  --line: rgba(139, 112, 54, 0.28);
  --text: #192130;
  --text-muted: #5b6779;
  --gold: #b28b45;
  --gold-soft: #c39c56;
  --header-bg: linear-gradient(to bottom, rgba(244, 248, 253, 0.92), rgba(244, 248, 253, 0.72));
  --header-border: rgba(18, 36, 58, 0.1);
  --section-contrast-bg: linear-gradient(135deg, rgba(231, 239, 248, 0.82), rgba(245, 249, 254, 0.84));
  --section-divider: rgba(18, 36, 58, 0.09);
  --card-border: rgba(22, 38, 58, 0.13);
  --ghost-bg: rgba(255, 255, 255, 0.6);
  --lang-bg: rgba(20, 44, 72, 0.09);
  --input-bg: rgba(255, 255, 255, 0.95);
  --input-border: rgba(28, 48, 70, 0.2);
  --slot-border: rgba(17, 35, 54, 0.22);
  --slot-label-bg: rgba(255, 255, 255, 0.78);
  --slot-label-border: rgba(17, 35, 54, 0.24);
  --footer-border: rgba(18, 36, 58, 0.12);
  --soft-text: #48566a;
  --meta-text: #334760;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--page-bg);
  color: var(--text);
  font-family: "Manrope", sans-serif;
  line-height: 1.55;
  min-height: 100vh;
  overflow-x: hidden;
}

h1,
h2,
h3 {
  font-family: "Playfair Display", serif;
  line-height: 1.15;
  margin: 0;
}

p {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1120px, 92vw);
  margin-inline: auto;
}

.bg-orb {
  position: fixed;
  width: 32rem;
  height: 32rem;
  border-radius: 50%;
  z-index: -1;
  filter: blur(95px);
  opacity: 0.18;
}

.bg-orb-a {
  top: -8rem;
  right: -10rem;
  background: #b08e4d;
}

.bg-orb-b {
  left: -9rem;
  bottom: -8rem;
  background: #4a6f98;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: var(--header-bg);
  border-bottom: 1px solid var(--header-border);
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 82px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.58rem;
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--card-border);
}

.brand span {
  font-family: "Playfair Display", serif;
  font-size: 1.2rem;
  letter-spacing: 0.01em;
}

.brand span:last-child {
  color: var(--text);
}

.main-nav {
  display: flex;
  gap: 1.45rem;
  color: var(--text-muted);
  font-weight: 600;
}

.main-nav ul {
  display: flex;
  gap: 1.45rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav li {
  margin: 0;
}

.main-nav a:hover {
  color: var(--text);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--lang-bg);
}

.lang-switch button {
  border: 0;
  padding: 0.45rem 0.55rem;
  color: var(--text-muted);
  background: transparent;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.7rem;
}

.lang-switch a {
  border: 0;
  padding: 0.45rem 0.55rem;
  color: var(--text-muted);
  background: transparent;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.7rem;
}

.lang-switch a.active,
.lang-switch .wpml-ls-current-language > a {
  background: rgba(198, 166, 100, 0.18);
  color: var(--gold-soft);
}

.wpml-switcher .wpml-ls-legacy-list-horizontal {
  border: 0;
  padding: 0;
}

.wpml-switcher .wpml-ls-item {
  margin: 0;
}

.lang-switch button.active {
  background: rgba(198, 166, 100, 0.18);
  color: var(--gold-soft);
}

.btn {
  border-radius: 999px;
  padding: 0.72rem 1.1rem;
  font-weight: 700;
  font-size: 0.88rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: 180ms ease;
  border: 1px solid transparent;
}

.btn-solid {
  background: linear-gradient(130deg, #dbc38f 0%, var(--gold) 100%);
  color: #1f2430;
  box-shadow: 0 8px 26px rgba(198, 166, 100, 0.35);
}

.btn-solid:hover {
  transform: translateY(-1px);
}

.btn-ghost {
  border-color: var(--line);
  color: var(--text);
  background: var(--ghost-bg);
}

.btn-ig {
  background: linear-gradient(135deg, #f58529, #dd2a7b 45%, #8134af 75%, #515bd4);
  color: #fff;
  border-color: transparent;
}

.theme-toggle {
  width: 46px;
  min-width: 46px;
  height: 46px;
  padding: 0;
  border-radius: 50%;
  font-size: 1.1rem;
  line-height: 1;
}

.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
  display: inline-block;
}

.theme-toggle .icon-sun {
  display: none;
}

html[data-theme="dark"] .theme-toggle .icon-sun {
  display: none;
}

html[data-theme="dark"] .theme-toggle .icon-moon {
  display: inline-block;
}

html[data-theme="light"] .theme-toggle .icon-sun {
  display: inline-block;
}

html[data-theme="light"] .theme-toggle .icon-moon {
  display: none;
}

.section {
  padding: 5.5rem 0;
}

.section-contrast {
  background: var(--section-contrast-bg);
  border-top: 1px solid var(--section-divider);
  border-bottom: 1px solid var(--section-divider);
}

.hero {
  padding-top: 6.4rem;
  padding-bottom: 3.8rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
}

.eyebrow {
  color: var(--gold-soft);
  text-transform: uppercase;
  letter-spacing: 0.11em;
  font-size: 0.73rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(2rem, 5.5vw, 4.2rem);
  margin-bottom: 1rem;
}

.hero-sub {
  max-width: 56ch;
  color: var(--text-muted);
}

.hero-ctas {
  margin-top: 1.55rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.trust-list {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 0;
  list-style: none;
  color: var(--soft-text);
  font-size: 0.92rem;
}

.hero-card,
.card,
.faq-card,
.contact-form,
.image-panel {
  background: var(--surface);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-card {
  padding: 1.3rem;
}

.mini-heading {
  font-weight: 700;
  margin-bottom: 0.45rem;
}

.mini-text {
  color: var(--text-muted);
}

.stats {
  margin-top: 1.2rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.stats article {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
}

.stat-value {
  font-family: "Playfair Display", serif;
  font-size: 1.55rem;
}

.stat-label {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.section-head {
  max-width: 700px;
  margin-bottom: 1.7rem;
}

.section-head h2 {
  font-size: clamp(1.6rem, 4vw, 2.8rem);
}

.media-section {
  padding-top: 1rem;
}

.media-layout {
  display: block;
}

.vsl-card {
  background: var(--surface);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem;
}

.vsl-spotlight {
  width: min(820px, 100%);
  margin: 0 auto;
}

.vsl-placeholder {
  min-height: 360px;
  aspect-ratio: 16 / 9;
  border: 1px dashed rgba(223, 195, 138, 0.55);
  border-radius: calc(var(--radius) - 6px);
  display: block;
  text-align: center;
  background:
    linear-gradient(to bottom, rgba(198, 166, 100, 0.1), rgba(198, 166, 100, 0.04)),
    repeating-linear-gradient(
      -45deg,
      rgba(255, 255, 255, 0.05) 0 10px,
      rgba(255, 255, 255, 0.02) 10px 20px
    );
  padding: 0.5rem;
}

.vsl-placeholder iframe {
  width: 100%;
  height: 100%;
  min-height: 360px;
  border: 0;
  border-radius: 12px;
}

.vsl-label {
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-soft);
  font-weight: 700;
}

.vsl-text {
  max-width: 48ch;
  color: var(--text-muted);
}

.vsl-cta {
  margin-top: 0.95rem;
  width: 100%;
}

.gallery-head {
  margin-top: 2.2rem;
}

.image-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.image-grid-wide {
  margin-top: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.map-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1rem;
}

.map-card {
  background: var(--surface);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  min-height: 360px;
}

.map-card iframe {
  width: 100%;
  min-height: 360px;
  border: 0;
}

.map-details {
  background: var(--surface);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.1rem;
  display: grid;
  align-content: start;
  gap: 0.8rem;
}

.map-details h3 {
  font-size: 1.2rem;
}

.carousel {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.7rem;
  align-items: center;
}

.carousel-viewport {
  background: var(--surface);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.carousel-track {
  position: relative;
  min-height: 420px;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.45s ease;
  margin: 0;
}

.carousel-slide.active {
  opacity: 1;
}

.carousel-slide img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
}

.our-team {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
  border-radius: 15px;
}

.carousel-btn {
  min-width: 64px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--ghost-bg);
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.image-slot {
  min-height: 350px;
  border-radius: var(--radius-sm);
  border: 1px dashed var(--slot-border);
  background:
    linear-gradient(160deg, rgba(8, 18, 33, 0.4), rgba(8, 18, 33, 0.65)),
    radial-gradient(circle at 85% 15%, rgba(198, 166, 100, 0.28), transparent 48%),
    var(--slot-image, none);
  background-size: cover;
  background-position: center;
  display: grid;
  align-items: end;
  text-align: left;
  padding: 0.8rem;
  overflow: hidden;
}

.image-slot span {
  color: var(--text);
  font-weight: 600;
  font-size: 0.82rem;
  background: var(--slot-label-bg);
  border: 1px solid var(--slot-label-border);
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
}

.image-facility {
  --slot-image: url("assets/img/Modern-reception-and-waiting-area.jpg");
}

.image-tools {
  --slot-image: url("assets/img/Advanced-dental-tools-and-equipment.avif");
}

.image-doctor {
  --slot-image: url("assets/img/Doctor-at-work-with-patient-care.avif");
}

.image-team {
  --slot-image: url("assets/img/Clinical-team-and-treatment-workflow.avif");
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.1rem;
}

.testimonial-card p {
  color: var(--text);
  margin-bottom: 0.8rem;
}

.testimonial-card h3 {
  font-size: 1.05rem;
}

.testimonial-card small {
  color: var(--text-muted);
  display: block;
  margin-top: 0.2rem;
}

.card {
  padding: 1.15rem;
}

.card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.45rem;
}

.card p {
  color: var(--text-muted);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.3rem;
  align-items: center;
}

.copy {
  color: var(--text-muted);
  margin-top: 0.8rem;
}

.team-list {
  margin: 1rem 0 0;
  padding-left: 1rem;
  color: var(--soft-text);
  display: grid;
  gap: 0.34rem;
}

.image-panel {
  min-height: 380px;
  background-image:
    linear-gradient(to top, rgba(7, 12, 21, 0.45), rgba(7, 12, 21, 0.12)),
    url("https://images.unsplash.com/photo-1588776814546-ec7e7fd77d8f?auto=format&fit=crop&w=1200&q=80");
  background-size: cover;
  background-position: center;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.faq-card {
  padding: 1.1rem;
}

.faq-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.52rem;
}

.faq-card p {
  color: var(--text-muted);
}

.faq-question {
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}

.faq-answer {
  max-height: none;
  overflow: visible;
  opacity: 1;
  transition: max-height 0.35s ease, opacity 0.35s ease, margin-top 0.35s ease;
  margin-top: 0.52rem;
}

html.js-ready .faq-answer {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  margin-top: 0;
}

html.js-ready .faq-item.open .faq-answer {
  max-height: 240px;
  opacity: 1;
  margin-top: 0.52rem;
}

.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.3rem;
}

.meta {
  margin-top: 0.58rem;
  color: var(--meta-text);
}

.contact-form {
  padding: 1rem;
  display: grid;
  gap: 0.72rem;
}

.contact-form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.85rem;
}

.contact-form input,
.contact-form textarea {
  border: 1px solid var(--input-border);
  border-radius: 10px;
  background: var(--input-bg);
  color: var(--text);
  padding: 0.68rem 0.8rem;
  font: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--gold-soft);
  box-shadow: 0 0 0 3px rgba(198, 166, 100, 0.2);
}

.site-footer {
  border-top: 1px solid var(--footer-border);
  padding: 1.25rem 0 1.55rem;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.55rem;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.reveal {
  opacity: 1;
  transform: none;
}

html.js-ready .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

html.js-ready .reveal.active {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 940px) {
  .main-nav {
    display: none;
  }

  .hero-grid,
  .split,
  .contact-wrap,
  .media-layout,
  .map-layout {
    grid-template-columns: 1fr;
  }

  .services-grid,
  .faq-grid,
  .testimonials-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .nav-actions .btn-solid {
    display: none;
  }

  .nav-actions .btn-ig {
    display: none;
  }

  .section {
    padding: 4.3rem 0;
  }

  .services-grid,
  .faq-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .image-grid {
    grid-template-columns: 1fr;
  }

  .carousel {
    grid-template-columns: 1fr;
  }

  .carousel-btn {
    display: none;
  }

  .carousel-track,
  .carousel-slide img {
    min-height: 280px;
    height: 280px;
  }

  .vsl-placeholder {
    min-height: auto;
    aspect-ratio: 16 / 9;
  }

  .vsl-placeholder iframe {
    min-height: auto;
    height: 100%;
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 5.4rem;
  }
}
