/* =========================================================
   BASE — tokens, reset, typography, layout, buttons
   Source of truth: docs/design-system.md
   ========================================================= */

:root {
  /* Colors */
  --color-white: #FFFFFF;
  --color-navy: #081A28;
  --color-gold: #E4B273;
  --color-black: #000000;
  --color-primary: #3260A1;
  --color-primary-60: rgba(50, 96, 161, 0.6);
  --color-primary-30: rgba(50, 96, 161, 0.3);
  --color-gold-light: #FFD482;
  --color-dark: #141414;
  --color-light: #F4F7F9;
  --color-yellow: #FDC400;
  --color-gray: #A8A8A8;
  --color-cream: #FFF0D9; /* sampled: cart circle */
  --color-slate: #4E546F; /* sampled: section copy + category labels */
  --color-danger: rgb(220 53 69); /* #DC3545 — strikethrough original price (replaces the low-contrast gray in the design) */
  --color-ivory: #FFFCF7; /* sampled: reviews section background */
  --color-royal: #004099; /* sampled: review stars, dots, sparkles */
  --color-navy-deep: #001833; /* sampled: footer bottom bar, social buttons */
  --gradient-dark: linear-gradient(180deg, #666666 0%, #000000 10%);

  /* Typography */
  --font-base: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-serif: "Crimson Pro", Georgia, "Times New Roman", serif; /* footer headings only */

  /* Layout */
  --container-max: 1440px;
  --gutter: 48px;

  /* Radii */
  --radius-pill: 999px;
  --radius-card: 12px;
  --radius-media: 10px;
  --radius-tag: 4px;

  /* Bootstrap overrides */
  --bs-body-font-family: var(--font-base);
  --bs-body-font-size: 16px;
  --bs-body-line-height: 1.375; /* 22/16 */
  --bs-body-color: var(--color-navy);
}

@media (max-width: 1199.98px) { :root { --gutter: 24px; } }
@media (max-width: 767.98px)  { :root { --gutter: 16px; } }

/* ---------- Reset ---------- */
html, body { overflow-x: hidden; }
body {
  font-family: var(--font-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; }

/* ---------- Layout ---------- */
.site-container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Typography ---------- */
.text-h1 { font-size: clamp(40px, 4.45vw, 64px); line-height: 0.9375; font-weight: 700; letter-spacing: 0; }
.text-h2 { font-size: 36px; line-height: 40px; font-weight: 600; letter-spacing: -0.04em; }
.text-h3 { font-size: 18px; line-height: normal; font-weight: 400; letter-spacing: -0.02em; }
.text-h4 { font-size: 26px; line-height: 36px; font-weight: 700; letter-spacing: 0; }
.text-p,
.text-p-secondary { font-size: 16px; line-height: 22px; font-weight: 400; }
.text-card-btn { font-size: 11.9px; line-height: 22px; font-weight: 400; }
.text-price { font-size: 17.42px; line-height: normal; font-weight: 500; letter-spacing: -0.02em; }

.text-gold { color: var(--color-gold); }

/* ---------- Buttons ---------- */
.btn-ds {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-family: inherit;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.btn-ds:focus-visible { outline: 2px solid var(--color-gold); outline-offset: 2px; }

.btn-ds--sm { height: 36px; padding: 0 18px; font-size: 14px; font-weight: 600; line-height: 1; }
.btn-ds--lg { height: 48px; padding: 0 24px; font-size: 16px; font-weight: 500; line-height: 1; }
.btn-ds--xs { height: 38px; padding: 0 14px; gap: 6px; font-size: 11.9px; font-weight: 400; line-height: 1; }
.btn-ds--icon { padding-right: 10px; }
.btn-ds--xs.btn-ds--icon { padding-right: 5px; }

.btn-ds--light { background: var(--color-light); color: var(--color-navy); }
.btn-ds--light:hover { background: var(--color-white); color: var(--color-navy); }

.btn-ds--navy { background: var(--color-navy); color: var(--color-white); }
.btn-ds--navy:hover { background: var(--color-dark); color: var(--color-white); }

.btn-ds--primary { background: var(--color-primary); color: var(--color-white); }
.btn-ds--primary:hover { background: #2a5490; color: var(--color-white); }

.btn-ds--outline-light { background: transparent; color: var(--color-white); border-color: var(--color-white); }
.btn-ds--outline-light:hover { background: var(--color-white); color: var(--color-navy); }

.btn-ds--white { background: var(--color-white); color: var(--color-navy); }
.btn-ds--white:hover { background: var(--color-light); color: var(--color-navy); }

/* White circle holding the arrow-up-right icon */
.icon-circle {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-white);
}
.icon-circle img { width: 12px; height: 12px; }
/* Blue circle + white arrow, for light buttons */
.icon-circle--primary { background: var(--color-primary); }
.icon-circle--primary img { filter: brightness(0) invert(1); }

/* ---------- Shared components ---------- */
.glass-card {
  border-radius: var(--radius-card);
  background: rgba(20, 20, 20, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  color: var(--color-white);
}
.glass-card--primary { background: var(--color-primary-60); }

.tag-chip {
  display: inline-block;
  padding: 2px 6px;
  border-radius: var(--radius-tag);
  background: var(--color-white);
  color: var(--color-black);
  font-size: 12px;
  line-height: 16px;
  font-weight: 700;
  text-transform: uppercase;
}

/* ---------- Scroll reveal ----------
   [data-reveal="left"] slides in from the right. The hidden state only applies once
   js/main.js adds .js-reveal to <html>, so without JS (or for crawlers that don't run
   it) content is always visible. Transform/opacity only → no layout shift (CLS). */
.js-reveal [data-reveal] {
  opacity: 0;
  transition: opacity .8s ease, transform .9s cubic-bezier(.2, .7, .2, 1);
  transition-delay: var(--reveal-delay, 0ms);
}
.js-reveal [data-reveal="left"] { transform: translateX(80px); }
.js-reveal [data-reveal].is-revealed { opacity: 1; transform: none; }
.js-reveal--init [data-reveal] { transition: none; }
