/* ============================================================
   BASE — Reset, Typography, Global Styles
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Roboto+Condensed:ital,wght@0,300;0,400;0,500;0,700;1,400&display=swap');

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

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

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--weight-regular);
  line-height: var(--leading-normal);
  color: var(--color-text-primary);
  background-color: var(--color-bg-page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* ─── TYPOGRAPHY ─────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--weight-regular);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--color-text-primary);
}

h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-md); }

p {
  line-height: var(--leading-normal);
  color: var(--color-text-secondary);
}

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

strong {
  font-weight: var(--weight-bold);
  color: var(--color-text-primary);
}

/* Eyebrow / label text */
.eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.eyebrow--sage {
  color: var(--color-sage);
}

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

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

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

.section--sm {
  padding-top: var(--sp-12);
  padding-bottom: var(--sp-12);
}

.section--lg {
  padding-top: var(--sp-32);
  padding-bottom: var(--sp-32);
}

/* ─── SECTION HEADERS ────────────────────────────────────────── */
.section-header {
  margin-bottom: var(--sp-12);
}

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

.section-header__title {
  font-size: var(--text-3xl);
  margin-top: var(--sp-2);
}

.section-header__subtitle {
  font-size: var(--text-md);
  color: var(--color-text-secondary);
  margin-top: var(--sp-3);
  max-width: 56ch;
}

.section-header--center .section-header__subtitle {
  margin-left: auto;
  margin-right: auto;
}

/* ─── UTILITY CLASSES ────────────────────────────────────────── */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

.text-muted  { color: var(--color-text-muted); }
.text-sage   { color: var(--color-sage); }
.text-taupe  { color: var(--color-taupe); }
.text-center { text-align: center; }
.text-right  { text-align: right; }

.mt-auto  { margin-top: auto; }
.flex     { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.gap-2    { gap: var(--sp-2); }
.gap-4    { gap: var(--sp-4); }
.gap-6    { gap: var(--sp-6); }

/* ─── DIVIDER ────────────────────────────────────────────────── */
.divider {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: var(--sp-8) 0;
}

/* ─── FOCUS ──────────────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--color-sage);
  outline-offset: 3px;
  border-radius: var(--radius-xs);
}

/* ─── SCROLLBAR ──────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--color-gray-100); }
::-webkit-scrollbar-thumb {
  background: var(--color-gray-300);
  border-radius: var(--radius-pill);
}
::-webkit-scrollbar-thumb:hover { background: var(--color-gray-500); }

/* ─── SELECTION ──────────────────────────────────────────────── */
::selection {
  background: var(--color-taupe-pale);
  color: var(--color-charcoal);
}

/* ─── PROSE (long-form content) ──────────────────────────────── */
.prose h2 { margin-top: var(--sp-10); margin-bottom: var(--sp-4); }
.prose h3 { margin-top: var(--sp-8);  margin-bottom: var(--sp-3); }
.prose p  { margin-bottom: var(--sp-5); }
.prose ul { list-style: disc; padding-left: var(--sp-6); margin-bottom: var(--sp-5); }
.prose ul li { margin-bottom: var(--sp-2); line-height: var(--leading-normal); }

/* ─── BADGE ──────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: var(--sp-1) var(--sp-3);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  background: var(--color-badge-bg);
  color: var(--color-badge-text);
}

.badge--sage {
  background: rgba(103,109,75,0.12);
  color: var(--color-sage-dark);
}

.badge--dark {
  background: var(--color-charcoal);
  color: var(--color-white);
}

.badge--sale {
  background: #fbe9e7;
  color: #c0392b;
}

/* ─── RESPONSIVE VISIBILITY ──────────────────────────────────── */
@media (max-width: 767px) {
  .hide-mobile { display: none !important; }
  .section { padding-top: var(--sp-12); padding-bottom: var(--sp-12); }
  .section--lg { padding-top: var(--sp-20); padding-bottom: var(--sp-20); }
}

@media (min-width: 768px) {
  .hide-desktop { display: none !important; }
}
