/* ============================================================
   PROPHACITE — BASE RESET + TYPOGRAPHY
   Depends on: variables.css
   ============================================================ */

/* ── Font Import ── */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@700&family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;0,9..40,800&family=Open+Sans:wght@400;500;600;700&display=swap');

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

html {
  scroll-behavior: smooth;
}

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

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--bg-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

/* ── Type Scale ── */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: white;
}

h3 {
  font-size: clamp(2rem, 4vw, 2.875rem);
  letter-spacing: -0.025em;
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(1.25rem, 3vw, 1.75rem) !important;
}

h4 {
  font-size: clamp(1.125rem, 2vw, 1.375rem);
}

p {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  line-height: 1.7;
  color: var(--text-gray);
}

/* ── Overlines ── */
.overline {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  display: block;
  margin-bottom: 0.625rem;
}

.overline--teal {
  color: var(--teal);
}

.overline--gold {
  color: var(--gold);
}

/* ── Utility ── */
.teal {
  color: var(--teal);
}

.gold {
  color: var(--gold);
}

/* Screen-reader only utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Subtle inline link: invisible underline until hover */
.subtle-link {
  color: inherit !important;
  text-decoration: none !important;
  border-bottom: none;
  transition: border-bottom var(--transition-fast), opacity var(--transition-fast);
}

.subtle-link:hover {
  border-bottom: 1px solid currentColor;
  opacity: 0.85;
}

/* Tabular numbers for stats */

/* ── Scroll Animations ── */
.animate-on-scroll {
  opacity: 1;
  transform: none;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: none;
}

.delay-1 {
  transition-delay: 0.1s;
}

.delay-2 {
  transition-delay: 0.2s;
}

.delay-3 {
  transition-delay: 0.3s;
}

.delay-4 {
  transition-delay: 0.4s;
}

/* ── Dark section overrides ── */
.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4,
.section--dark h5,
.section--dark h6 {
  color: var(--text-white);
}

.section--dark p {
  color: rgba(255, 255, 255, 0.7);
}
