/* =========================================================================
   Luxora Commerce — base layer: reset, typography, utilities
   ========================================================================= */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  font-feature-settings: "kern" 1, "liga" 1, "cv11" 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -.01em;
  margin: 0 0 var(--sp-4);
  color: var(--text);
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); font-family: var(--font-body); font-weight: 500; letter-spacing: 0; }
p  { margin: 0 0 var(--sp-4); color: var(--text-2); }

a { color: inherit; text-decoration: none; transition: color var(--fast) var(--ease); }
a:hover { color: var(--lux-gold); }

ul, ol { margin: 0 0 var(--sp-4); padding-left: 1.15rem; color: var(--text-2); }
li { margin-bottom: var(--sp-2); }

hr { border: 0; border-top: 1px solid var(--border); margin: var(--sp-7) 0; }

::selection { background: var(--lux-gold); color: var(--text-on-gold); }

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

/* Screen-reader-only, and the skip link that becomes visible on focus */
.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;
}
.skip-link {
  position: fixed; top: -100px; left: var(--sp-4); z-index: 200;
  background: var(--lux-gold); color: var(--text-on-gold);
  padding: var(--sp-3) var(--sp-5); border-radius: var(--radius-btn);
  font-size: var(--step--1); font-weight: 600; letter-spacing: .04em;
  transition: top var(--base) var(--ease);
}
.skip-link:focus { top: var(--sp-4); color: var(--text-on-gold); }

/* ---- Type helpers ------------------------------------------------------ */
.display   { font-family: var(--font-display); font-weight: 300; }
.mono      { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.lead      { font-size: var(--step-1); color: var(--text-2); max-width: 56ch; }
.muted     { color: var(--text-muted); }
.text-gold { color: var(--lux-gold); }

/* Eyebrow: small caps label above a heading. Used as the structural marker
   throughout, so a section always announces what it is before it speaks. */
.eyebrow {
  display: inline-flex; align-items: center; gap: var(--sp-3);
  font-size: var(--step--2); font-weight: 500;
  letter-spacing: var(--tracking-wide); text-transform: uppercase;
  color: var(--lux-gold); margin: 0 0 var(--sp-4);
}
.eyebrow::before {
  content: ""; width: 26px; height: 1px; background: var(--lux-gold); opacity: .55;
}
.eyebrow--center::after {
  content: ""; width: 26px; height: 1px; background: var(--lux-gold); opacity: .55;
}

/* Signature: the hairline-and-lozenge rule lifted from the Luxora logo mark.
   It is the one decorative device in the system, so it carries the identity. */
.rule {
  display: flex; align-items: center; justify-content: center;
  gap: var(--sp-4); margin: var(--sp-6) 0; color: var(--lux-gold);
}
.rule::before, .rule::after {
  content: ""; height: 1px; flex: 1 1 auto; max-width: 180px;
  background: linear-gradient(90deg, transparent, var(--gold-line), transparent);
}
.rule i {
  width: 9px; height: 9px; background: var(--lux-gold);
  transform: rotate(45deg); display: block; flex: none;
}
.rule--tight { margin: var(--sp-4) 0; }
.rule--left { justify-content: flex-start; }
.rule--left::before { display: none; }

/* ---- Layout helpers ---------------------------------------------------- */
.shell { width: min(100% - var(--gutter) * 2, var(--shell)); margin-inline: auto; }
.shell--tight { width: min(100% - var(--gutter) * 2, var(--shell-tight)); }
.section { padding-block: clamp(3.5rem, 7vw, 7rem); }
.section--tight { padding-block: clamp(2.5rem, 4vw, 4rem); }
.section--deep { background: var(--bg-deep); }
.section--surface { background: var(--surface); }
.section-head { max-width: 62ch; margin-bottom: var(--sp-7); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head--split {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: var(--sp-5); max-width: none; flex-wrap: wrap;
}

.stack > * + * { margin-top: var(--sp-4); }
.cluster { display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: center; }
.grid { display: grid; gap: var(--sp-5); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.spread { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-4); }
.center { text-align: center; }
.hide-sm { display: initial; }
@media (max-width: 720px) { .hide-sm { display: none !important; } }

/* ---- Motion ------------------------------------------------------------ */
.reveal {
  opacity: 0; transform: translateY(22px);
  transition: opacity var(--reveal) var(--ease), transform var(--reveal) var(--ease);
  will-change: opacity, transform;
}
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 90ms; }
.reveal[data-delay="2"] { transition-delay: 180ms; }
.reveal[data-delay="3"] { transition-delay: 270ms; }
.reveal[data-delay="4"] { transition-delay: 360ms; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* Thin, dark scrollbars so the chrome stays out of the way */
* { scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: var(--radius-pill); }
*::-webkit-scrollbar-thumb:hover { background: var(--lux-gold); }

@media print {
  .site-header, .site-footer, .btn, .toast-stack { display: none !important; }
  body { background: #fff; color: #000; }
}
