/* Breakpoints: tablet 768px, desktop 1024px (mobile-first, min-width) */

:root {
  /* Colours (approved mockup) */
  --color-primary: #0d3b45;
  --color-accent: #1b7480; /* darkened from #1f7f8c for WCAG AA 4.5:1 on --color-soft */
  --color-gold: #c8a27a;
  --color-soft: #eef6f6;
  --color-text: #4f6b72;
  --color-white: #fff;
  --color-line: rgba(13, 59, 69, 0.1);
  --color-line-light: rgba(255, 255, 255, 0.15);
  --color-error: #c0392b;

  /* Type */
  --font-heading: "Playfair Display", serif;
  --font-base: "Poppins", sans-serif;
  --fs-base: 1rem;
  --fs-sm: 0.875rem;
  --fs-h1: clamp(2.4rem, 1.6rem + 3vw, 3.75rem);
  --fs-h2: clamp(2rem, 1.4rem + 2.2vw, 2.9rem);
  --fs-h3: 1.3rem;

  /* Space & size */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-section: clamp(4.375rem, 3rem + 4vw, 6.25rem);
  --width-inner: 1240px;
  --radius-sm: 12px;
  --radius-md: 24px;
  --radius-lg: 30px;
  --radius-pill: 99px;
  --shadow-card: 0 4px 40px rgba(0, 0, 0, 0.06);

  /* Motion (values taken from the Dentaire demo) */
  --ease: ease-in-out;
  --duration-fast: 0.3s;
  --duration-base: 0.4s;
  --duration-slow: 0.5s;
  --opacity-hover: 0.7;
}

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

body {
  margin: 0;
  font-family: var(--font-base);
  font-size: var(--fs-base);
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
}

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

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

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-primary);
}

h1 em,
h2 em {
  font-style: italic;
  color: var(--color-accent);
}

p,
figure {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

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

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

/* Screen-reader only text */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Keyframes */
@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes rotate-loading {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

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