/* ─── VitaDent · Base ────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  font-family: var(--font-ui);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--graphite);
  background: var(--ivory);
  overflow-x: hidden;
}

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

a {
  color: var(--magenta-vital);
  text-decoration: none;
  transition: color var(--t-fast) var(--ease-out);
}
a:hover { color: var(--purple-clinic); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--graphite);
  margin: 0 0 var(--space-4);
}
h1 { font-size: var(--fs-display); font-weight: 500; }
h2 { font-size: var(--fs-3xl); }
h3 { font-size: var(--fs-2xl); }
h4 { font-size: var(--fs-xl); }

p { margin: 0 0 var(--space-4); color: var(--ink); }

ul, ol { margin: 0 0 var(--space-4); padding-left: var(--space-5); }

button, input, textarea, select {
  font: inherit;
  color: inherit;
}
button { cursor: pointer; border: none; background: none; }

::selection {
  background: var(--magenta-vital);
  color: var(--ivory);
}

:focus-visible {
  outline: 2px solid var(--magenta-vital);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Container helpers */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(1rem, 2vw + 0.5rem, 2rem);
}
.container-narrow {
  width: 100%;
  max-width: var(--max-w-narrow);
  margin: 0 auto;
  padding: 0 clamp(1rem, 2vw + 0.5rem, 2rem);
}

/* Section padding base */
.section {
  padding: clamp(3.5rem, 8vw, 7rem) 0;
  position: relative;
}
.section--tight  { padding: clamp(2.5rem, 5vw, 4.5rem) 0; }
.section--ivory  { background: var(--ivory); }
.section--pearl  { background: var(--pearl); }
.section--blush  { background: var(--rose-blush); }
.section--dark   { background: var(--graphite); color: var(--ivory); }
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: var(--ivory); }
.section--dark p { color: var(--cloud); }

/* Eyebrow + heading rhythm */
.eyebrow {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--magenta-vital);
  margin-bottom: var(--space-3);
}
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto var(--space-7);
}
.section-head p { color: var(--muted); font-size: var(--fs-lg); }

/* Utilities */
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.text-center { text-align: center; }
.flex { display: flex; }
.grid { display: grid; }
.gap-4 { gap: var(--space-4); }
.gap-5 { gap: var(--space-5); }
.gap-6 { gap: var(--space-6); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
