/* ============================================================
   AMERI FABRIC — Luxury Atelier Design System (v4)
   Palette  : Warm Alabaster · Deep Obsidian · Dual Antique Gold
   Contrast : Verified WCAG 2.1 AA / AAA across all text & CTAs
   Type     : Cormorant Garamond (Display) + Plus Jakarta Sans (UI)
   ============================================================ */
:root {
  /* Light surfaces */
  --alabaster: #FAF8F5;      /* primary page canvas */
  --ivory: #FFFFFF;          /* elevated cards & drawers */
  --sand: #F2EDE4;           /* alternate section tint */
  --champagne: #EFE6D5;      /* soft gold tint */
  --line: #E6E0D6;           /* crisp 1px hairlines */

  /* Dark surfaces */
  --obsidian: #141413;       /* primary dark & headings (17.39:1 on alabaster) */
  --charcoal: #1E1E1C;       /* elevated dark cards */
  --dark-line: rgba(250, 248, 245, 0.12);

  /* Text tokens (WCAG Verified) */
  --ink: #141413;            /* 17.39:1 AAA on alabaster */
  --ink-soft: #4A4640;       /* 8.84:1 AAA on alabaster */
  --ink-muted: #635D55;      /* 6.14:1 AA+ on alabaster */
  --on-dark: #FAF8F5;        /* 17.39:1 AAA on obsidian */
  --on-dark-soft: #D6CEC2;   /* 11.82:1 AAA on obsidian */

  /* Dual-Gold Accessibility System */
  --gold-text: #8A6728;      /* 4.89:1 AA on alabaster (eyebrows/links) */
  --gold-cta: #C8A253;       /* 7.68:1 AAA with obsidian text */
  --gold-cta-hover: #B38D40;
  --gold-dark: #D4AF6A;      /* 8.90:1 AAA on obsidian */

  /* Status tokens (WCAG AAA with white text) */
  --sale: #9E2A2B;           /* 7.45:1 AAA */
  --emerald: #1F5C43;        /* 7.86:1 AAA */

  /* Typography */
  --f-display: 'Cormorant Garamond', Georgia, serif;
  --f-ui: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;

  --fs-display: clamp(2.6rem, 5.4vw, 4.7rem);
  --fs-h2: clamp(2rem, 3.3vw, 3.1rem);
  --fs-h3: 1.25rem;
  --fs-body: 0.96rem;
  --fs-sm: 0.87rem;
  --fs-xs: 0.76rem;
  --fs-micro: 0.67rem;

  /* Spacing & Layout */
  --max: 1320px;
  --r-sm: 4px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-pill: 999px;
  --sh-sm: 0 8px 24px rgba(20, 20, 19, 0.06);
  --sh-md: 0 18px 48px rgba(20, 20, 19, 0.11);
  --sh-lg: 0 28px 72px rgba(20, 20, 19, 0.18);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* --- Base Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  font-family: var(--f-ui);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--alabaster);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }
input[type="file"] { position: absolute !important; width: 1px; height: 1px; opacity: 0; overflow: hidden; }

h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 500;
  line-height: 1.1;
  color: var(--ink);
  letter-spacing: -0.01em;
}
h1 { font-size: var(--fs-display); font-weight: 500; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }

/* --- Utilities --- */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 32px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-ui);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-text);
}
.eyebrow.on-dark { color: var(--gold-dark); }
.muted { color: var(--ink-muted); }

/* --- Buttons (WCAG Verified) --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 30px;
  font-family: var(--f-ui);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.btn:active { transform: scale(0.98); }
.btn-gold {
  background: linear-gradient(135deg, #D5B165 0%, #C8A253 100%);
  color: var(--obsidian);
  border-color: var(--gold-cta);
  box-shadow: 0 6px 20px rgba(200, 162, 83, 0.25);
}
.btn-gold:hover {
  background: linear-gradient(135deg, #DFBE76 0%, #B89143 100%);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(200, 162, 83, 0.35);
}
.btn-dark {
  background: var(--obsidian);
  color: var(--on-dark);
  border-color: var(--obsidian);
}
.btn-dark:hover { background: #262624; transform: translateY(-2px); }
.btn-line {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-line:hover { background: var(--obsidian); color: var(--on-dark); }
.btn-ghost-light {
  background: rgba(250, 248, 245, 0.1);
  backdrop-filter: blur(8px);
  color: var(--on-dark);
  border-color: rgba(250, 248, 245, 0.45);
}
.btn-ghost-light:hover { background: var(--ivory); color: var(--obsidian); border-color: var(--ivory); }
.btn-sm { padding: 10px 18px; font-size: 0.68rem; }

/* --- Toast Notification --- */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(90px);
  background: var(--obsidian);
  color: var(--on-dark);
  padding: 13px 22px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(212, 175, 106, 0.35);
  box-shadow: var(--sh-lg);
  font-size: 0.84rem;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 120;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
}
.toast.on { transform: translateX(-50%) translateY(0); opacity: 1; pointer-events: auto; }
.toast button {
  background: var(--gold-cta);
  color: var(--obsidian);
  border: none;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}

@media (max-width: 768px) {
  .wrap { padding: 0 18px; }
  .toast { bottom: 82px; width: calc(100% - 32px); justify-content: space-between; }
}
