/* ==========================================================================
   VIRETTO — Base Styles
   Typography, global styles, utility classes
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

/* ── Body ────────────────────────────────────────────────────────────────── */
body {
  font-family: var(--v-font-body);
  font-size: var(--v-fs-body);
  font-weight: 400;
  line-height: var(--v-lh-body);
  color: var(--v-text-primary);
  background-color: var(--v-bg-primary);
  overflow-x: hidden;
}

/* ── Headings ────────────────────────────────────────────────────────────── */
.heading-display {
  font-family: var(--v-font-heading);
  font-size: var(--v-fs-display);
  font-weight: 700;
  line-height: var(--v-lh-tight);
  letter-spacing: var(--v-ls-tight);
  color: var(--v-text-primary);
}

h1, .h1 {
  font-family: var(--v-font-heading);
  font-size: var(--v-fs-h1);
  font-weight: 700;
  line-height: var(--v-lh-tight);
  letter-spacing: var(--v-ls-tight);
}

h2, .h2 {
  font-family: var(--v-font-heading);
  font-size: var(--v-fs-h2);
  font-weight: 700;
  line-height: var(--v-lh-heading);
  letter-spacing: var(--v-ls-tight);
}

h3, .h3 {
  font-family: var(--v-font-heading);
  font-size: var(--v-fs-h3);
  font-weight: 600;
  line-height: var(--v-lh-heading);
  letter-spacing: var(--v-ls-tight);
}

h4, .h4 {
  font-family: var(--v-font-heading);
  font-size: var(--v-fs-h4);
  font-weight: 600;
  line-height: var(--v-lh-heading);
}

/* ── Display / Drama text ────────────────────────────────────────────────── */
.text-display {
  font-family: var(--v-font-display);
  font-style: italic;
  font-weight: 400;
}

.text-display-accent {
  font-family: var(--v-font-display);
  font-style: italic;
  font-weight: 500;
  color: var(--v-copper);
}

/* ── Body variants ───────────────────────────────────────────────────────── */
.text-lg {
  font-size: var(--v-fs-body-lg);
  line-height: var(--v-lh-body);
}

.text-sm {
  font-size: var(--v-fs-body-sm);
}

.text-caption {
  font-size: var(--v-fs-caption);
  color: var(--v-text-tertiary);
}

/* ── Overline / Label ────────────────────────────────────────────────────── */
.overline {
  font-family: var(--v-font-heading);
  font-size: var(--v-fs-overline);
  font-weight: 600;
  letter-spacing: var(--v-ls-overline);
  text-transform: uppercase;
  color: var(--v-copper);
}

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

/* ── Mono / Data ─────────────────────────────────────────────────────────── */
.text-mono {
  font-family: var(--v-font-mono);
  font-size: var(--v-fs-body-sm);
}

.text-price {
  font-family: var(--v-font-heading);
  font-weight: 700;
  color: var(--v-white);
  letter-spacing: var(--v-ls-tight);
}

/* ── Text Colors ─────────────────────────────────────────────────────────── */
.text-primary { color: var(--v-text-primary); }
.text-secondary { color: var(--v-text-secondary); }
.text-tertiary { color: var(--v-text-tertiary); }
.text-accent { color: var(--v-copper); }
.text-teal { color: var(--v-teal-vivid); }
.text-gold { color: var(--v-gold); }

/* ── Links ───────────────────────────────────────────────────────────────── */
a:not([class]) {
  color: var(--v-teal-vivid);
  transition: color var(--v-duration-fast) var(--v-ease-out);
}

a:not([class]):hover {
  color: var(--v-copper);
}

/* ── Dividers ────────────────────────────────────────────────────────────── */
.divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(184, 115, 51, 0.3),
    transparent
  );
  border: none;
}

.divider--short {
  width: 64px;
  height: 2px;
  background: var(--v-copper);
  border-radius: 1px;
}

.divider--teal {
  background: linear-gradient(
    90deg,
    transparent,
    rgba(58, 139, 168, 0.3),
    transparent
  );
}

/* ── Section Titles ──────────────────────────────────────────────────────── */
.section-header {
  text-align: center;
  margin-bottom: var(--v-space-9);
}

.section-header .overline {
  margin-bottom: var(--v-space-3);
  display: block;
}

.section-header h2 {
  margin-bottom: var(--v-space-4);
}

.section-header .section-subtitle {
  font-size: var(--v-fs-body-lg);
  color: var(--v-text-secondary);
  max-width: 640px;
  margin: 0 auto;
  line-height: var(--v-lh-body);
}

/* ── Scrollbar reveal animation ──────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity var(--v-duration-slower) var(--v-ease-out),
    transform var(--v-duration-slower) var(--v-ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 100ms; }
.reveal-delay-2 { transition-delay: 200ms; }
.reveal-delay-3 { transition-delay: 300ms; }
.reveal-delay-4 { transition-delay: 400ms; }

/* ── Utility Classes ─────────────────────────────────────────────────────── */
.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-right  { text-align: right; }

.mx-auto { margin-left: auto; margin-right: auto; }
.w-full  { width: 100%; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: var(--v-space-2); }
.gap-3 { gap: var(--v-space-3); }
.gap-4 { gap: var(--v-space-4); }
.gap-5 { gap: var(--v-space-5); }
.gap-6 { gap: var(--v-space-6); }

/* ── Image fallback ──────────────────────────────────────────────────────── */
.img-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--v-dark-card), var(--v-dark-elevated));
  color: var(--v-gray-600);
  font-family: var(--v-font-heading);
  font-weight: 600;
  font-size: var(--v-fs-body-sm);
  letter-spacing: var(--v-ls-wide);
}
