/* ==========================================================================
   AYS.HƏDİYYƏ — Design Tokens
   Ported from design/css/tokens.css. Palette values are unchanged (they
   already match the real logo's gold, #A9814F). Light theme only — no dark
   mode, no dark sections anywhere on the site (hero, statement, nav,
   footer all use the same light background layer below).
   ========================================================================== */

:root {
  /* ---- Color: neutrals (dominant) ---- */
  --color-ink: #16151a;
  --color-ink-soft: #211f24;
  --color-ink-text: #1d1b19;
  --color-paper: #f7f2ea;
  --color-paper-soft: #efe7da;
  --color-paper-text: #f3eee4;
  --color-line: #dcd2c0;
  --color-line-on-ink: rgba(247, 242, 234, 0.14);

  /* ---- Color: accent (muted gold/champagne — sparingly, never dominant) ---- */
  --color-gold: #a9814f;
  --color-gold-soft: #d9c6a0;
  --color-gold-deep: #7c5c34;

  /* ---- Color: secondary emotional accents (category duotones only) ---- */
  --color-rose: #b98c86;
  --color-rose-deep: #8c5c56;
  --color-lavender: #9c93b3;
  --color-sage: #6e7a5c;

  /* ---- Typography ---- */
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-ui: 'Archivo', -apple-system, 'Segoe UI', Roboto, sans-serif;

  --text-display-xl: clamp(3.75rem, 2.6rem + 5.4vw, 8.5rem);
  --text-display-lg: clamp(2.75rem, 2.1rem + 3vw, 5.25rem);
  --text-display-md: clamp(2rem, 1.65rem + 1.6vw, 3.25rem);
  --text-display-sm: 1.75rem;
  --text-ui-lg: 1.125rem;
  --text-ui-base: 1rem;
  --text-ui-sm: 0.875rem;
  --text-ui-xs: 0.75rem;

  --leading-display: 1.05;
  --leading-body: 1.6;
  --tracking-wide: 0.08em;
  --tracking-wider: 0.14em;

  /* ---- Spacing (8px scale — no values outside this list) ---- */
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-6: 48px;
  --space-8: 64px;
  --space-12: 96px;
  --space-16: 128px;
  --space-20: 160px;

  /* ---- Radius (soft, rounded — no hard-edged rectangles) ---- */
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;
  --radius-full: 999px;

  /* ---- Soft elevation ---- */
  --shadow-soft: 0 24px 48px -28px rgba(36, 30, 22, 0.22);
  --shadow-lift: 0 32px 56px -24px rgba(36, 30, 22, 0.3);

  /* ---- Motion ---- */
  --ease-editorial: cubic-bezier(0.65, 0, 0.35, 1);
  --duration-fast: 240ms;
  --duration-base: 400ms;
  --duration-slow: 700ms;

  /* ---- Texture: shared film-grain (data URI, no network fetch) ---- */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");

  /* ---- Semantic layer (used across nav/occasions/category/product/footer) ---- */
  --bg-page: var(--color-paper);
  --bg-surface: var(--color-paper-soft);
  --text-primary: var(--color-ink-text);
  --border-subtle: var(--color-line);
}

/* ---- Reset (minimal) ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-ui);
  font-size: var(--text-ui-base);
  line-height: var(--leading-body);
  color: var(--text-primary);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  transition: background-color var(--duration-base) var(--ease-editorial), color var(--duration-base) var(--ease-editorial);
}
h1, h2, h3, p, figure { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
img, svg { display: block; max-width: 100%; }
ul { margin: 0; padding: 0; list-style: none; }

.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;
}

.icon { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

.eyebrow {
  font-family: var(--font-ui);
  font-size: var(--text-ui-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
}

/* ---- Shared buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-family: var(--font-ui);
  font-size: var(--text-ui-sm);
  font-weight: 600;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  white-space: nowrap;
  transition: background-color var(--duration-base) var(--ease-editorial),
              color var(--duration-base) var(--ease-editorial),
              border-color var(--duration-base) var(--ease-editorial),
              transform var(--duration-fast) var(--ease-editorial);
}
.btn:active { transform: scale(0.98); }
.btn:focus-visible { outline: 2px solid var(--color-gold); outline-offset: 3px; }

.btn--primary {
  position: relative;
  overflow: hidden;
  padding: var(--space-2) var(--space-4);
  background: var(--color-ink);
  color: var(--color-paper-text);
  border: 1px solid var(--color-ink);
  border-radius: var(--radius-full);
}
.btn--primary::before {
  content: '';
  position: absolute; top: 0; left: -60%; width: 35%; height: 100%;
  background: linear-gradient(115deg, transparent, rgba(217, 198, 160, 0.55), transparent);
  transform: skewX(-20deg);
  transition: left 0.7s var(--ease-editorial);
  pointer-events: none;
}
.btn--primary:hover::before { left: 130%; }
.btn--primary:hover { background: transparent; color: var(--color-ink); }
.btn--primary.on-ink { background: var(--color-paper); color: var(--color-ink); border-color: var(--color-paper); }
.btn--primary.on-ink:hover { background: transparent; color: var(--color-paper); }

.btn--secondary {
  padding: var(--space-2) 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid currentColor;
}
.btn--secondary .icon { transition: transform var(--duration-base) var(--ease-editorial); width: 16px; height: 16px; }
.btn--secondary:hover { color: var(--color-gold-deep); }
.btn--secondary:hover .icon { transform: translateX(4px); }
.btn--secondary.on-ink:hover { color: var(--color-gold-soft); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}
