/* Black Diamond Spa — Base Reset & Typography */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=Inter:wght@300;400;500;600&display=swap');

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
  tab-size: 4;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  font-weight: 400;
  line-height: var(--lh-normal);
  color: var(--text-primary);
  background-color: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
  min-height: 100dvh;
}

/* ── Typography ─────────────────────────────────── */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
  color: var(--text-primary);
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-xl);  font-weight: 500; }
h5 { font-size: var(--fs-lg);  font-weight: 500; }
h6 { font-size: var(--fs-base); font-weight: 600; }

p {
  color: var(--text-secondary);
  line-height: var(--lh-loose);
  max-width: 70ch;
}

a {
  color: var(--tiffany);
  text-decoration: none;
  transition: color var(--transition-base);
}

a:hover { color: var(--tiffany-light); }

a:focus-visible {
  outline: 2px solid var(--tiffany);
  outline-offset: 3px;
  border-radius: 3px;
}

ul, ol { list-style: none; }

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

img {
  height: auto;
  object-fit: cover;
}

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

button {
  cursor: pointer;
  background: none;
  border: none;
}

textarea { resize: vertical; }

table { border-collapse: collapse; }

/* ── Layout ─────────────────────────────────────── */

.container {
  width: 100%;
  max-width: var(--container-xl);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.container--sm { max-width: var(--container-sm); }
.container--md { max-width: var(--container-md); }
.container--lg { max-width: var(--container-lg); }

section {
  padding-block: clamp(3rem, 8vw, 5rem);
}

/* ── 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; }
.text-left    { text-align: left; }
.text-muted   { color: var(--text-muted); }
.text-tiffany { color: var(--tiffany); }
.text-gold    { color: var(--gold); }

.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--tiffany);
  margin-bottom: var(--sp-sm);
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  color: var(--text-primary);
  margin-bottom: var(--sp-md);
}

.section-subtitle {
  font-size: var(--fs-md);
  color: var(--text-secondary);
  max-width: 56ch;
  line-height: var(--lh-loose);
}

.section-header {
  margin-bottom: var(--sp-3xl);
}

.section-header--center {
  text-align: center;
}

.section-header--center .section-subtitle {
  margin-inline: auto;
}

/* ── Safe Area (iOS Safari) ─────────────────────── */

.safe-top    { padding-top: env(safe-area-inset-top); }
.safe-bottom { padding-bottom: env(safe-area-inset-bottom); }
.safe-left   { padding-left: env(safe-area-inset-left); }
.safe-right  { padding-right: env(safe-area-inset-right); }

/* ── Scrollbar ──────────────────────────────────── */

::-webkit-scrollbar       { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--glass-border); border-radius: var(--radius-pill); }
::-webkit-scrollbar-thumb:hover { background: var(--tiffany-dark); }

/* ── Selection ──────────────────────────────────── */

::selection {
  background: var(--tiffany-glow);
  color: var(--text-primary);
}

/* ── Focus ──────────────────────────────────────── */

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

/* ── Divider ────────────────────────────────────── */

hr {
  border: none;
  border-top: 1px solid var(--divider);
  margin-block: var(--sp-xl);
}

/* ── Page Offset for Fixed Nav ──────────────────── */

.page-content {
  padding-top: var(--nav-height);
}
