/* ============================================================
   PERFECT CHOICE — Base Styles
   Reset + Typography + Global Defaults
   ============================================================ */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-primary);
  font-size: var(--text-base);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-normal);
  color: var(--color-text-primary);
  background-color: var(--color-white);
  overflow-x: hidden;
  min-height: 100vh;
}

/* When mobile nav is open */
body.nav-open {
  overflow: hidden;
}

/* ── Selection ─────────────────────────────────────────── */
::selection {
  background-color: var(--color-yellow);
  color: var(--color-black);
}

::-moz-selection {
  background-color: var(--color-yellow);
  color: var(--color-black);
}

/* ── Focus Styles (Accessibility) ──────────────────────── */
:focus-visible {
  outline: 2px solid var(--color-yellow);
  outline-offset: 2px;
}

:focus:not(:focus-visible) {
  outline: none;
}

/* ── Images & Media ────────────────────────────────────── */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

img {
  font-style: italic;
  vertical-align: middle;
}

/* ── Typography ────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  letter-spacing: var(--letter-spacing-tight);
  color: var(--color-text-primary);
  text-wrap: balance;
}

h1 {
  font-size: var(--text-5xl);
  font-weight: var(--font-weight-extrabold);
}

h2 {
  font-size: var(--text-4xl);
  font-weight: var(--font-weight-bold);
}

h3 {
  font-size: var(--text-2xl);
  font-weight: var(--font-weight-bold);
}

h4 {
  font-size: var(--text-xl);
  font-weight: var(--font-weight-semibold);
}

h5 {
  font-size: var(--text-lg);
  font-weight: var(--font-weight-semibold);
}

h6 {
  font-size: var(--text-md);
  font-weight: var(--font-weight-semibold);
}

p {
  color: var(--color-text-secondary);
  line-height: var(--line-height-normal);
  max-width: 68ch;
}

p + p {
  margin-top: var(--space-4);
}

strong, b {
  font-weight: var(--font-weight-semibold);
}

small {
  font-size: var(--text-sm);
}

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

a:hover {
  color: var(--color-yellow);
}

/* ── Lists ─────────────────────────────────────────────── */
ul, ol {
  list-style: none;
}

/* ── Forms ─────────────────────────────────────────────── */
input,
textarea,
select,
button {
  font: inherit;
  color: inherit;
  border: none;
  background: none;
}

button {
  cursor: pointer;
}

textarea {
  resize: vertical;
}

/* ── Tables ────────────────────────────────────────────── */
table {
  border-collapse: collapse;
  border-spacing: 0;
}

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

.container--wide {
  max-width: var(--container-wide);
}

.container--narrow {
  max-width: var(--container-narrow);
}

.section {
  padding-top: var(--section-padding-y);
  padding-bottom: var(--section-padding-y);
}

.section--no-top {
  padding-top: 0;
}

.section--no-bottom {
  padding-bottom: 0;
}

/* Text Utilities */
.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-right  { text-align: right; }

.text-yellow   { color: var(--color-yellow); }
.text-white    { color: var(--color-white); }
.text-muted    { color: var(--color-text-muted); }
.text-secondary { color: var(--color-text-secondary); }

.text-uppercase {
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-caps);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
}

/* Display 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-width: 0;
}

.hidden { display: none !important; }

/* ── Scrollbar Styling ─────────────────────────────────── */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-light-grey);
}

::-webkit-scrollbar-thumb {
  background: var(--color-grey-400);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-grey-600);
}
