/* =========================================================
   S & I DENTAL CLINIC — GLOBAL STYLES
   style.css → design tokens, reset, base typography
   ========================================================= */

/* ---------- Design Tokens ---------- */
:root {
  /* Brand colors */
  --color-forest: #3F6654;
  --color-deep-green: #527A67;
  --color-sage: #A8BDAF;
  --color-soft-sage: #DCE7DF;
  --color-cream: #F7F5EF;
  --color-warm-white: #FCFBF7;
  --color-gold: #C7A45A;
  --color-soft-gold: #D9C48A;
  --color-charcoal: #252824;
  --color-muted: #6D726B;
  --color-white: #FFFFFF;
  --color-black: #111311;
  /* RGB helpers for alpha use */
  --rgb-forest: 23, 60, 46;
  --rgb-gold: 199, 164, 90;
  --rgb-charcoal: 37, 40, 36;
  /* Typography */
  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-body: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --space-3xl: 8rem;
  /* Layout */
  --container-width: 1320px;
  --container-pad: 1.5rem;
  /* Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  /* Shadows — soft, green-tinted */
  --shadow-sm: 0 2px 10px rgba(var(--rgb-forest), 0.06);
  --shadow-md: 0 10px 30px rgba(var(--rgb-forest), 0.10);
  --shadow-lg: 0 20px 50px rgba(var(--rgb-forest), 0.14);
  --shadow-gold: 0 10px 26px rgba(var(--rgb-gold), 0.25);
  /* Transitions */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --transition-fast: 0.2s var(--ease);
  --transition-base: 0.35s var(--ease);
  --transition-slow: 0.6s var(--ease);
  /* Header height (used for scroll offsets) */
  --header-height: 88px;
}

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

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

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

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body, h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd {
  margin: 0;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

img {
  height: auto;
}

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

input, textarea, select {
  font: inherit;
}

/* ---------- Base ---------- */
body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-charcoal);
  background-color: var(--color-warm-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  color: var(--color-forest);
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2.5rem, 4.4vw, 4.25rem);
}

h2 {
  font-size: clamp(2rem, 3.2vw, 3rem);
}

h3 {
  font-size: clamp(1.35rem, 1.8vw, 1.75rem);
}

h4 {
  font-size: 1.15rem;
}

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

.lede {
  font-size: 1.15rem;
  line-height: 1.7;
}

/* Eyebrow label — used above section headings */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-gold);
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
  opacity: 0.8;
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

/* ---------- Accessibility ---------- */
.skip-link {
  position: absolute;
  top: -60px;
  left: 1rem;
  z-index: 1000;
  background: var(--color-forest);
  color: var(--color-warm-white);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: 1rem;
}

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

.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;
}

/* ---------- Selection ---------- */
::selection {
  background: var(--color-gold);
  color: var(--color-forest);
}
