/* ════════════════════════════════════════════════════════
   ALBIR — main.css
   Global CSS custom properties, reset, and typography
════════════════════════════════════════════════════════ */

/* ── Custom Properties ─────────────────────────────── */
:root {
  /* Colors */
  --black:      #000000;
  --white:      #ffffff;
  --gray-50:    #fafafa;
  --gray-100:   #f0f0f0;
  --gray-200:   #e8e8e8;
  --gray-300:   #d0d0d0;
  --gray-500:   #888888;
  --gray-700:   #444444;
  --accent:     #c8a96e;
  --accent-dark:#a88045;

  /* Typography */
  --font-serif:  'Cormorant Garamond', Georgia, serif;
  --font-body:   'DM Sans', system-ui, sans-serif;
  --font-arabic: 'Amiri', 'Times New Roman', serif;

  /* Spacing scale */
  --space-xs:  4px;
  --space-sm:  8px;
  --space-md:  16px;
  --space-lg:  24px;
  --space-xl:  40px;
  --space-2xl: 64px;
  --space-3xl: 80px;

  /* Border radius */
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   16px;
  --radius-full: 9999px;

  /* Transitions */
  --ease:        cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition:  0.3s var(--ease);
  --transition-slow: 0.6s var(--ease);

  /* Shadows */
  --shadow-sm:   0 1px 4px rgba(0,0,0,0.08);
  --shadow-md:   0 4px 20px rgba(0,0,0,0.10);
  --shadow-lg:   0 8px 40px rgba(0,0,0,0.15);

  /* Layout */
  --container:   1200px;
  --header-h:    64px;
}

/* Mobile spacing overrides */
@media (max-width: 768px) {
  :root {
    --space-3xl: 56px;
    --space-2xl: 40px;
    --space-xl:  28px;
  }
}

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

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

body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--black);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.nav-open,
body.drawer-open {
  overflow: hidden;
}

img, video {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font: inherit;
  color: inherit;
}

input, textarea, select {
  font: inherit;
}

/* ── Typography ─────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.2rem, 6vw, 4rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.6rem); }
h4 { font-size: 1.1rem; }

p { max-width: 65ch; }

.serif   { font-family: var(--font-serif); }
.arabic  { font-family: var(--font-arabic); }

/* ── Container ──────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-lg);
}

@media (max-width: 768px) {
  .container { padding-inline: var(--space-md); }
}

/* ── Utility Classes ─────────────────────────────────── */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.text-center { text-align: center; }
.text-right  { text-align: right; }

.mt-auto { margin-top: auto; }

/* ── Section Titles ──────────────────────────────────── */
.section-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-sm);
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  margin-bottom: var(--space-sm);
}

.section-sub {
  color: var(--gray-500);
  font-size: 0.95rem;
  max-width: 50ch;
}

/* ── Arabic text ──────────────────────────────────────── */
[lang="ar"], .ar {
  font-family: var(--font-arabic);
  direction: rtl;
}

/* ── Simple entrance animations (no AOS dependency) ─── */
/* Elements with data-aos attrs are now just plain HTML  */
/* — they show immediately with no blocking side-effects */

/* ── CLICK-PROTECTION: all interactive elements always clickable ── */
a, button, .btn, .filter-tab, .nav-link, .mobile-nav-link,
.header-action, .hero__cta, .hero__cta a, .hero__cta button,
.category-tile, .product-card, .product-card__image-wrap {
  pointer-events: auto !important;
  position: relative;
  z-index: auto;
}

/* ── Focus visible ───────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

