/* ==========================================================================
   AUREVIA DENTAL CLINIC — BASE & FOUNDATIONAL STYLES
   ========================================================================== */

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

html {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text-body);
  background-color: var(--color-canvas);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
}

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

input, button, textarea, select {
  font: inherit;
  color: inherit;
}

p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  color: var(--color-text-main);
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.015em;
}

h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); font-family: var(--font-sans); font-weight: 600; }
h5 { font-size: var(--text-lg); font-family: var(--font-sans); font-weight: 600; }

p {
  margin-bottom: var(--space-4);
  color: var(--color-text-body);
  font-size: var(--text-base);
  line-height: 1.65;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--color-gold-primary);
  outline-offset: 3px;
}

/* Containers */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-gutter);
  padding-right: var(--container-gutter);
}

.container-wide {
  width: 100%;
  max-width: var(--container-wide);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-gutter);
  padding-right: var(--container-gutter);
}

.container-narrow {
  width: 100%;
  max-width: var(--container-narrow);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-gutter);
  padding-right: var(--container-gutter);
}

/* Section Header Typography */
.section-header {
  margin-bottom: var(--space-12);
}

.section-header.text-center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  max-width: 680px;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-gold-primary);
  margin-bottom: var(--space-3);
}

.section-title {
  margin-bottom: var(--space-3);
  letter-spacing: -0.02em;
}

.section-lead {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  line-height: 1.5;
  max-width: 60ch;
}

.text-center .section-lead {
  margin-left: auto;
  margin-right: auto;
}

/* Button System */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1;
  padding: 0.875rem 1.625rem;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: all var(--transition-normal);
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--color-surface-dark);
  color: var(--color-surface-white);
  border-color: var(--color-surface-dark);
  box-shadow: 0 4px 14px rgba(24, 21, 19, 0.15);
}

.btn-primary:hover {
  background-color: #2e2823;
  border-color: #2e2823;
  color: var(--color-surface-white);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(24, 21, 19, 0.22);
}

.btn-gold {
  background: linear-gradient(135deg, #d4b36d 0%, #c5a059 100%);
  color: #181513;
  border-color: rgba(197, 160, 89, 0.4);
  font-weight: 700;
}

.btn-gold:hover {
  background: linear-gradient(135deg, #dfbf78 0%, #ceaa62 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(197, 160, 89, 0.3);
}

.btn-secondary {
  background-color: var(--color-surface-cream);
  color: var(--color-text-main);
  border-color: var(--color-border-subtle);
}

.btn-secondary:hover {
  background-color: #ede5da;
  color: var(--color-text-main);
  border-color: #ded6c9;
}

.btn-outline {
  background-color: transparent;
  color: var(--color-text-main);
  border-color: var(--color-border-hairline);
}

.btn-outline:hover {
  background-color: var(--color-surface-cream);
  border-color: var(--color-border-subtle);
}

.btn-outline-white {
  background-color: transparent;
  color: var(--color-surface-white);
  border-color: rgba(255, 255, 255, 0.35);
}

.btn-outline-white:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.7);
}

.btn-whatsapp {
  background-color: #25d366;
  color: #ffffff;
  border-color: #25d366;
}

.btn-whatsapp:hover {
  background-color: #1ebe5b;
  border-color: #1ebe5b;
  color: #ffffff;
}

.btn-sm {
  padding: 0.625rem 1.125rem;
  font-size: var(--text-xs);
}

.btn-lg {
  padding: 1.05rem 2.25rem;
  font-size: var(--text-base);
}

/* Accessibility screen-reader only class */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
