/* ============================================
   BASE — Variables, Reset, Typography
   Rafif Modest Wear
   ============================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;1,300;1,400&family=Tajawal:wght@300;400;500&display=swap');

/* --- CSS Variables --- */
:root {
  /* Colors */
  --color-bg:           #F7F4EF;
  --color-bg-alt:       #EDE7DC;
  --color-bg-dark:      #2C2218;
  --color-text-primary: #2C2218;
  --color-text-muted:   #6B5E52;
  --color-text-faint:   #9C8E82;
  --color-text-light:   #B8AFA6;
  --color-border:       #D9D0C4;
  --color-border-dark:  #3E3028;
  --color-accent:       #7A5C3A;

  /* Product card placeholder colors */
  --color-swatch-brown: #7A5C3A;
  --color-swatch-gray:  #B8AFA6;
  --color-swatch-dark:  #2C2218;
  --color-swatch-cream: #D4C9BA;
  --color-swatch-taupe: #C4B5A5;

  /* Typography */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Tajawal', sans-serif;

  /* Spacing */
  --section-padding: 64px 40px;
  --nav-height: 64px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-mid:  300ms ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  background-color: var(--color-bg);
  color: var(--color-text-primary);
  direction: rtl;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

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

ul {
  list-style: none;
}

button {
  cursor: pointer;
  font-family: var(--font-body);
  border: none;
  background: none;
}

/* --- Utility Classes --- */
.u-display-font {
  font-family: var(--font-display);
}

.u-section-label {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  font-weight: 400;
}

.u-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
