/* =========================================================================
   style.css — Design tokens, resets, base typography & layout primitives
   ========================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800;900&family=Readex+Pro:wght@400;500;600;700&display=swap');

:root {
  /* ---- Brand color system --------------------------------------------- */
  --color-primary: #D35400;
  --color-primary-rgb: 211, 84, 0;
  --color-accent: #E67E22;
  --color-accent-rgb: 230, 126, 34;
  --color-bg: #FDFBF7;
  --color-surface: #FFFFFF;
  --color-dark: #1A1A1A;
  --color-dark-2: #2B2B2B;
  --color-border: rgba(0, 0, 0, 0.08);
  --color-muted: #837c72;

  --shadow-soft: 0 2px 8px rgba(26, 20, 14, 0.06), 0 1px 2px rgba(26, 20, 14, 0.04);
  --shadow-lift: 0 18px 40px -12px rgba(26, 20, 14, 0.22);
  --glow-primary: 0 0 0 1px rgba(var(--color-primary-rgb), 0.08), 0 8px 24px -6px rgba(var(--color-primary-rgb), 0.28);

  /* ---- Type ------------------------------------------------------------ */
  --font-display: 'Cairo', 'Readex Pro', sans-serif;
  --font-body: 'Readex Pro', 'Cairo', sans-serif;

  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.375rem;
  --fs-xl: 1.75rem;
  --fs-2xl: 2.25rem;
  --fs-3xl: clamp(2.5rem, 6vw, 4.25rem);

  /* ---- Spacing / radius -------------------------------------------------*/
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  --container: 1240px;
  --header-h: 84px;
  --header-h-shrunk: 62px;

  --ease-out: cubic-bezier(.16,1,.3,1);
  --ease-spring: cubic-bezier(.34,1.56,.64,1);

  color-scheme: light;
}

/* ---- Reset -------------------------------------------------------------*/
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

html:has(.modal[open]), html:has(.cart-drawer.is-open) {
  scroll-behavior: auto;
}

body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-dark);
  line-height: 1.6;
  min-height: 100svh;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

img, picture, svg { display: block; max-width: 100%; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }

:focus-visible {
  outline: 2.5px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: rgba(var(--color-primary-rgb), .22); }

.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: -60px;
  right: 12px;
  z-index: 999;
  background: var(--color-dark);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  transition: top .25s var(--ease-out);
}
.skip-link:focus { top: 12px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.2;
}

.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: .01em;
}
.eyebrow::before {
  content: '';
  width: 22px; height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
}

.section-heading {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-block-end: 28px;
}
.section-heading h2 {
  font-size: var(--fs-2xl);
}
.section-heading p {
  color: var(--color-muted);
  font-size: var(--fs-md);
}

/* ---- Buttons -------------------------------------------------------- */
.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: var(--fs-base);
  transition: transform .35s var(--ease-spring), box-shadow .35s var(--ease-out), background .25s;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: #fff;
  box-shadow: var(--glow-primary);
}
.btn-primary:hover { box-shadow: 0 12px 30px -8px rgba(var(--color-primary-rgb), .45); transform: translateY(-2px); }

.btn-ghost {
  background: rgba(255,255,255,.08);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.55);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { background: rgba(255,255,255,.18); transform: translateY(-2px); }

.btn-outline {
  background: transparent;
  color: var(--color-dark);
  border: 1.5px solid var(--color-border);
}
.btn-outline:hover { border-color: var(--color-primary); color: var(--color-primary); }

.btn-block { width: 100%; }
.btn-sm { padding: 10px 18px; font-size: var(--fs-sm); }

.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,.55);
  transform: scale(0);
  animation: ripple .6s var(--ease-out);
  pointer-events: none;
}

/* ---- Icon button -------------------------------------------------------*/
.icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  color: var(--color-dark);
  transition: background .25s, color .25s, transform .25s var(--ease-spring);
}
.icon-btn:hover { background: rgba(var(--color-primary-rgb), .08); color: var(--color-primary); }
.icon-btn svg { width: 22px; height: 22px; }

/* ---- Visually-hidden loading screen ------------------------------------*/
#loading-screen {
  position: fixed; inset: 0;
  z-index: 999;
  display: grid;
  place-items: center;
  background: var(--color-bg);
  transition: opacity .6s var(--ease-out), visibility .6s;
}
#loading-screen.is-hidden { opacity: 0; visibility: hidden; }
#loading-screen .loading-mark {
  width: 120px; height: 120px;
  animation: flame-pulse 1.6s ease-in-out infinite;
}
#loading-screen p {
  margin-top: 16px;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-primary);
  font-size: var(--fs-sm);
  letter-spacing: .04em;
}

/* ---- Utility ------------------------------------------------------------*/
.visually-empty { display: none !important; }
.text-muted { color: var(--color-muted); }
main { display: block; }
