/* Denta Family — demo site styles */

:root {
  --color-bg: #FFFFFF;
  --color-bg-soft: #F5F8F7;
  --color-text: #12201D;
  --color-text-muted: #5B6864;
  --color-accent: #0E9C86;
  --color-accent-dark: #0B7A69;
  --color-border: #E3E8E6;
  /* Sole semantic exception to the mint/teal + neutral palette: form validation
     state only (input border + error text below). Never use decoratively. */
  --color-error: #C6453D;

  --font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius-card: 20px;
  --radius-btn: 12px;
  --shadow-card: 0 10px 30px rgba(18, 32, 29, 0.06);

  --header-offset: 128px;
}

/* Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

html, body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-family);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img, svg {
  display: block;
  max-width: 100%;
}

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

ul {
  list-style: none;
}

button, input {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

h1, h2, h3 {
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

h1 { font-size: 34px; }
h2 { font-size: 26px; }
h3 { font-size: 18px; font-weight: 700; }

p { color: var(--color-text); }

section[id] {
  scroll-margin-top: var(--header-offset);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  background: var(--color-accent);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius-btn);
  font-weight: 600;
  z-index: 100;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 12px;
}

.container {
  width: 100%;
  max-width: 1140px;
  margin-inline: auto;
  padding-inline: 20px;
}

@media (min-width: 768px) {
  .container { padding-inline: 32px; }
}

@media (min-width: 1200px) {
  .container { padding-inline: 40px; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: var(--radius-btn);
  font-weight: 600;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.15s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--color-accent-dark);
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-lg {
  padding: 16px 28px;
  font-size: 16px;
  white-space: normal;
}

.btn-block {
  width: 100%;
}

.btn-header {
  display: none;
}

.btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-btn);
  border: 1px solid var(--color-accent);
  background: var(--color-bg);
  color: var(--color-accent-dark);
  font-weight: 600;
  font-size: 14px;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.btn-pill:hover {
  background: var(--color-accent);
  color: #fff;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-block: 14px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.logo-word {
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: var(--color-text);
}

.main-nav {
  order: 3;
  flex-basis: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.main-nav::-webkit-scrollbar {
  display: none;
}

.main-nav ul {
  display: flex;
  gap: 20px;
  white-space: nowrap;
  padding-block: 2px;
}

.main-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color 0.2s ease;
}

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

@media (min-width: 768px) {
  .header-inner {
    flex-wrap: nowrap;
  }

  .main-nav {
    order: 2;
    flex-basis: auto;
    overflow-x: visible;
  }

  .main-nav ul {
    gap: 28px;
  }

  .btn-header {
    display: inline-flex;
    order: 3;
    padding: 10px 18px;
    font-size: 14px;
    flex-shrink: 0;
  }
}

/* Hero */
.hero {
  padding-block: 64px 56px;
}

.hero-inner {
  max-width: 640px;
}

.hero h1 {
  font-size: 34px;
  margin-bottom: 16px;
}

.hero .subline {
  font-size: 17px;
  color: var(--color-text-muted);
  margin-bottom: 28px;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 40px;
}

.trust-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.trust-num {
  font-size: 20px;
  font-weight: 800;
  color: var(--color-text);
}

.trust-label {
  font-size: 13px;
  color: var(--color-text-muted);
}

.trust-divider {
  width: 1px;
  height: 32px;
  background: var(--color-border);
}

/* Hero illustration — mobile: stacked below the trust row */
.hero-illustration {
  margin-top: 48px;
  max-width: 100%;
}

.hero-illustration svg {
  width: 100%;
  max-width: 340px;
  height: auto;
  margin-inline: auto;
  display: block;
}

@media (min-width: 768px) {
  .hero { padding-block: 88px 72px; }
  .hero h1 { font-size: 44px; }

  .hero-inner {
    max-width: none;
    display: flex;
    align-items: center;
    gap: 40px;
  }

  .hero-text {
    flex: 1 1 54%;
    min-width: 0;
    max-width: 560px;
  }

  .hero-illustration {
    flex: 1 1 46%;
    min-width: 0;
    margin-top: 0;
  }

  .hero-illustration svg {
    max-width: 420px;
  }
}

@media (min-width: 1200px) {
  .hero { padding-block: 120px 96px; }
  .hero h1 { font-size: 52px; }

  .hero-illustration svg {
    max-width: 460px;
  }
}

/* Sections */
.section {
  padding-block: 64px;
  border-top: 1px solid var(--color-border);
}

.section h2 {
  margin-bottom: 10px;
}

.section-lead {
  color: var(--color-text-muted);
  font-size: 15px;
  margin-bottom: 40px;
  max-width: 520px;
}

@media (min-width: 768px) {
  .section { padding-block: 96px; }
  .section-lead { margin-bottom: 48px; }
}

@media (min-width: 1200px) {
  .section { padding-block: 120px; }
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Grid + cards */
.grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}

.grid-services,
.grid-doctors,
.grid-safety,
.grid-reviews {
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .grid-services { grid-template-columns: repeat(2, 1fr); }
  .grid-doctors { grid-template-columns: repeat(3, 1fr); }
  .grid-safety { grid-template-columns: repeat(3, 1fr); }
  .grid-reviews { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1200px) {
  .grid-services { grid-template-columns: repeat(3, 1fr); }
  .grid-reviews { grid-template-columns: repeat(3, 1fr); }
}

.card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 28px 24px;
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--color-bg-soft);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.service-card h3 {
  margin-bottom: 6px;
}

.price {
  font-weight: 700;
  color: var(--color-accent-dark);
  font-size: 15px;
  margin-bottom: 12px;
}

.card-text {
  color: var(--color-text-muted);
  font-size: 14.5px;
  line-height: 1.6;
}

/* Doctors */
.doctor-avatar {
  margin-bottom: 20px;
}

.doctor-avatar text {
  font-family: var(--font-family);
}

.doctor-role {
  color: var(--color-accent-dark);
  font-weight: 600;
  font-size: 14px;
  margin-top: 4px;
}

.doctor-exp {
  color: var(--color-text-muted);
  font-size: 13px;
  margin-bottom: 14px;
}

/* Safety */
.safety-item {
  padding: 4px 0;
}

.safety-illustration {
  margin-bottom: 40px;
}

.safety-illustration svg {
  width: 100%;
  max-width: 640px;
  height: auto;
  display: block;
  margin-inline: auto;
}

@media (min-width: 768px) {
  .safety-illustration {
    margin-bottom: 48px;
  }
}

/* Reviews */
.google-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-bg-soft);
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 32px;
}

.review-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.review-avatar {
  flex-shrink: 0;
  border-radius: 50%;
}

.stars {
  display: flex;
  gap: 3px;
}

.review-author {
  margin-top: 14px;
  font-weight: 600;
  font-size: 14px;
  color: var(--color-text);
}

/* Booking */
.booking-container {
  max-width: 640px;
}

.booking-panel {
  margin-top: 8px;
}

.booking-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  font-size: 14px;
  font-weight: 600;
}

.field input {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-btn);
  padding: 13px 16px;
  background: var(--color-bg-soft);
  font-size: 15px;
}

.field input:focus {
  outline: none;
  border-color: var(--color-accent);
  background: var(--color-bg);
}

.field input.has-error {
  border-color: var(--color-error);
}

.field-error {
  color: var(--color-error);
  font-size: 13px;
  min-height: 16px;
}

.form-note {
  color: var(--color-text-muted);
  font-size: 13px;
  text-align: center;
}

.success-panel {
  text-align: center;
  padding: 24px 8px;
}

.success-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-bg-soft);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.success-panel p {
  color: var(--color-text-muted);
  max-width: 420px;
  margin-inline: auto;
}

.success-panel h3 {
  margin-bottom: 10px;
}

/* Contacts */
.contacts-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .contacts-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.contacts-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 28px;
}

.contacts-row dt {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: 2px;
}

.contacts-row dd a {
  color: var(--color-accent-dark);
  font-weight: 600;
}

.messenger-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.map-placeholder {
  position: relative;
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 32px 24px;
  text-align: center;
  overflow: hidden;
}

.map-building {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.1;
}

.map-pin {
  position: relative;
  margin: 0 auto 16px;
}

.map-address {
  position: relative;
  color: var(--color-text-muted);
  font-size: 14px;
  margin-bottom: 20px;
  line-height: 1.5;
}

.map-placeholder > .btn {
  position: relative;
}

/* Footer */
.site-footer {
  background: var(--color-bg-soft);
  border-top: 1px solid var(--color-border);
  padding-block: 48px 24px;
}

.footer-inner {
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr;
  padding-bottom: 32px;
}

@media (min-width: 768px) {
  .footer-inner {
    grid-template-columns: 1.2fr 1fr 1fr;
  }
}

.footer-line {
  color: var(--color-text-muted);
  font-size: 14px;
  margin-top: 12px;
}

.footer-contacts p {
  color: var(--color-text-muted);
  font-size: 14px;
  margin-bottom: 8px;
}

.footer-contacts a {
  color: var(--color-text);
  font-weight: 600;
}

.footer-nav ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-nav a {
  color: var(--color-text-muted);
  font-size: 14px;
}

.footer-nav a:hover {
  color: var(--color-accent-dark);
}

.fine-print {
  color: var(--color-text-muted);
  font-size: 12.5px;
  border-top: 1px solid var(--color-border);
  padding-top: 20px;
}

/* Mobile floating CTA */
.mobile-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(180%) blur(8px);
  border-top: 1px solid var(--color-border);
  transition: transform 0.3s ease;
}

.mobile-cta.is-hidden {
  transform: translateY(120%);
}

@media (min-width: 768px) {
  .mobile-cta {
    display: none;
  }
}
