/* ============================================================================
 * base.css — Design system, reset, primitives
 * Style: Contemporary Eastern × Premium Jewellery × Quiet Luxury
 * ========================================================================== */

/* ---------- Google Fonts -------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;500;600&family=Inter:wght@300;400;500;600&display=swap');

/* ---------- Design tokens ----------------------------------------------- */
:root {
  /* Color */
  --fe-cream: #faf6ee;
  --fe-cream-2: #f3ebdc;
  --fe-sand: #e6d8c0;
  --fe-sand-2: #d8c5a4;
  --fe-ink: #1d140d;
  --fe-ink-2: #2c2018;
  --fe-mute: #7a6a58;
  --fe-mute-2: #a89880;
  --fe-gold: #b8893a;
  --fe-gold-2: #d4af6e;
  --fe-gold-soft: #e9d6ad;
  --fe-line: rgba(29, 20, 13, 0.12);
  --fe-line-2: rgba(29, 20, 13, 0.06);
  --fe-bg-card: #fffaf0;
  --fe-bg-card-2: #f6ecd9;
  --fe-error: #b54040;
  --fe-success: #4f7a4a;

  /* Type */
  --fe-serif: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --fe-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;

  /* Spacing */
  --fe-gutter: 20px;
  --fe-r: 14px;
  --fe-r-sm: 10px;
  --fe-r-lg: 22px;
  --fe-r-pill: 999px;

  /* Shadow */
  --fe-shadow-1: 0 1px 2px rgba(29, 20, 13, 0.04), 0 4px 14px rgba(29, 20, 13, 0.06);
  --fe-shadow-2: 0 6px 24px rgba(29, 20, 13, 0.10);

  /* Layout */
  --fe-maxw: 480px;
  --fe-section-pad-y: 64px;
}

/* ---------- Reset (minimal) --------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  font-family: var(--fe-sans);
  font-weight: 400;
  color: var(--fe-ink);
  background: var(--fe-cream);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img {
  max-width: 100%;
  display: block;
}

/* V1.1: ensure [hidden] always wins over component display rules */
[hidden] { display: none !important; }
button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

/* ---------- Typography --------------------------------------------------- */
.fe-eyebrow {
  font-family: var(--fe-sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fe-gold);
  font-weight: 500;
}
.fe-h1,
.fe-h2,
.fe-h3 {
  font-family: var(--fe-serif);
  font-weight: 500;
  color: var(--fe-ink);
  letter-spacing: -0.005em;
  line-height: 1.18;
  margin: 0;
}
.fe-h1 {
  font-size: 32px;
}
.fe-h2 {
  font-size: 24px;
}
.fe-h3 {
  font-size: 18px;
}
.fe-body {
  font-size: 14px;
  color: var(--fe-ink-2);
  line-height: 1.7;
}
.fe-mute {
  color: var(--fe-mute);
  font-size: 13px;
}
.fe-center {
  text-align: center;
}
.fe-pre {
  white-space: pre-line;
}

/* ---------- Container --------------------------------------------------- */
.fe-wrap {
  width: 100%;
  max-width: var(--fe-maxw);
  margin: 0 auto;
  padding: 0 var(--fe-gutter);
}
.fe-section {
  padding: var(--fe-section-pad-y) 0;
}
.fe-section--tight {
  padding: 36px 0;
}
.fe-section--gold {
  background: var(--fe-bg-card-2);
}
.fe-section--cream {
  background: var(--fe-cream);
}
.fe-section--ink {
  background: var(--fe-ink);
  color: var(--fe-cream);
}
.fe-section--ink .fe-h2,
.fe-section--ink .fe-h3 {
  color: var(--fe-cream);
}
.fe-section--ink .fe-body {
  color: rgba(250, 246, 238, 0.75);
}
.fe-divider {
  width: 36px;
  height: 1px;
  background: var(--fe-gold);
  border: 0;
  margin: 14px auto;
}

/* ---------- Buttons ------------------------------------------------------ */
.fe-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 16px 20px;
  border-radius: var(--fe-r-pill);
  font-family: var(--fe-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: transform 200ms ease, background 200ms ease, color 200ms ease,
    box-shadow 200ms ease, border-color 200ms ease, opacity 200ms ease;
  user-select: none;
  cursor: pointer;
  text-align: center;
}
.fe-btn:active {
  transform: scale(0.985);
}
.fe-btn--primary {
  background: linear-gradient(180deg, #c79848 0%, #a47424 100%);
  color: #fff8ec;
  box-shadow: var(--fe-shadow-1);
}
.fe-btn--primary:hover {
  filter: brightness(1.04);
}
.fe-btn--primary[disabled],
.fe-btn--primary.is-disabled {
  opacity: 0.42;
  cursor: not-allowed;
}
.fe-btn--ghost {
  background: transparent;
  color: var(--fe-ink);
  border: 1px solid var(--fe-line);
}
.fe-btn--ghost:hover {
  border-color: var(--fe-gold);
  color: var(--fe-gold);
}
.fe-btn--gift {
  background: transparent;
  color: var(--fe-gold-dark);
  border: 1px solid var(--fe-gold);
  box-shadow: none;
}
.fe-btn--gift:hover {
  background: rgba(184, 137, 58, 0.06);
}
.fe-btn--red {
  background: #b53228;
  color: #fff8ec;
}
.fe-btn--red:hover {
  background: #a32a22;
}
.fe-btn--inline {
  display: inline-flex;
  width: auto;
  padding: 10px 16px;
  font-size: 11px;
}
.fe-btn .arrow {
  display: inline-block;
  transition: transform 200ms ease;
}
.fe-btn:hover .arrow {
  transform: translateX(2px);
}

/* ---------- Card primitive ---------------------------------------------- */
.fe-card {
  background: var(--fe-bg-card);
  border: 1px solid var(--fe-line);
  border-radius: var(--fe-r);
  padding: 18px;
  transition: border-color 200ms ease, transform 200ms ease,
    box-shadow 200ms ease;
}
.fe-card--selectable {
  cursor: pointer;
  position: relative;
}
.fe-card--selectable:hover {
  border-color: var(--fe-gold-soft);
}
.fe-card--selectable.is-selected {
  border-color: var(--fe-gold);
  box-shadow: 0 0 0 2px rgba(184, 137, 58, 0.18);
}
.fe-card__check {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--fe-gold);
  color: #fff8ec;
  display: none;
  align-items: center;
  justify-content: center;
}
.fe-card--selectable.is-selected .fe-card__check {
  display: inline-flex;
}

/* ---------- Chip / Pill -------------------------------------------------- */
.fe-pill {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--fe-r-pill);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fe-gold);
  border: 1px solid var(--fe-gold-soft);
  background: rgba(255, 250, 240, 0.6);
}
.fe-pill--solid {
  background: var(--fe-gold);
  color: #fff8ec;
  border-color: var(--fe-gold);
}

/* ---------- Image frame -------------------------------------------------- */
.fe-img {
  border-radius: var(--fe-r);
  overflow: hidden;
  background: var(--fe-cream-2);
  position: relative;
}
.fe-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------- Utility ----------------------------------------------------- */
.fe-hide {
  display: none !important;
}
.fe-mt-0 { margin-top: 0 !important; }
.fe-mt-1 { margin-top: 8px !important; }
.fe-mt-2 { margin-top: 16px !important; }
.fe-mt-3 { margin-top: 24px !important; }
.fe-mt-4 { margin-top: 32px !important; }
.fe-mb-0 { margin-bottom: 0 !important; }
.fe-mb-1 { margin-bottom: 8px !important; }
.fe-mb-2 { margin-bottom: 16px !important; }
.fe-mb-3 { margin-bottom: 24px !important; }
.fe-mb-4 { margin-bottom: 32px !important; }
.fe-stack > * + * { margin-top: 12px; }
.fe-row { display: flex; align-items: center; gap: 8px; }
.fe-row--wrap { flex-wrap: wrap; }
.fe-grow { flex: 1 1 auto; min-width: 0; }

/* ---------- Section header (eyebrow + heading + sub) ------------------- */
.fe-sec-head {
  text-align: center;
  margin-bottom: 28px;
}
.fe-sec-head .fe-eyebrow {
  display: block;
  margin-bottom: 10px;
}
.fe-sec-head .fe-h2 {
  margin: 0 auto 8px;
  max-width: 26ch;
}
.fe-sec-head .fe-body {
  max-width: 38ch;
  margin: 6px auto 0;
}

/* ---------- Animation keyframes ---------------------------------------- */
@keyframes fe-fade-up {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fe-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ---------- Responsive base -------------------------------------------- */
@media (min-width: 640px) {
  :root {
    --fe-gutter: 28px;
    --fe-section-pad-y: 80px;
  }
  .fe-h1 { font-size: 38px; }
  .fe-h2 { font-size: 28px; }
}
@media (min-width: 960px) {
  :root {
    --fe-section-pad-y: 96px;
  }
}
