/* ==========================================================================
   YAQOUT PERFUMES LUXE THEME - BASE DESIGN SYSTEM
   Brand Positioning: Accessible Luxury, Arabian Heritage & Modern Elegance
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700&family=Amiri:ital,wght@0,400;0,700;1,400&family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;1,400&display=swap');

:root {
  /* Brand Luxury Palette */
  --color-brand-black: #111111;
  --color-brand-charcoal: #1c1a17;
  --color-brand-sand: #f8f5ee;
  --color-brand-cream: #efe7da;
  --color-brand-cream-deep: #e2d7c5;
  --color-brand-gold: #b38538;
  --color-brand-gold-light: #dfbd74;
  --color-brand-gold-dark: #8c6020;
  --color-brand-gold-glow: rgba(179, 133, 56, 0.15);
  --color-brand-white: #ffffff;
  --color-brand-muted: #736c64;
  --color-brand-border: rgba(17, 17, 17, 0.1);
  --color-brand-border-light: rgba(255, 255, 255, 0.15);
  
  /* Semantic Tokens */
  --color-bg-primary: var(--color-brand-sand);
  --color-bg-secondary: #ffffff;
  --color-bg-dark: var(--color-brand-charcoal);
  --color-text-primary: var(--color-brand-black);
  --color-text-secondary: var(--color-brand-muted);
  --color-text-inverse: var(--color-brand-sand);
  --color-accent: var(--color-brand-gold);
  --color-accent-hover: var(--color-brand-gold-dark);

  /* Typography */
  --font-serif: 'Cinzel', 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-arabic: 'Amiri', 'Traditional Arabic', serif;
  
  /* Layout & Spacing */
  --site-max-width: 1440px;
  --gutter-mobile: 1.25rem;
  --gutter-desktop: 3.5rem;
  --section-spacing-mobile: 4rem;
  --section-spacing-desktop: 7rem;
  
  /* Transitions & Radii */
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-editorial: 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  --radius-subtle: 2px;
  --radius-badge: 9999px;
  --shadow-luxury: 0 16px 40px rgba(17, 17, 17, 0.06);
  --shadow-hover: 0 24px 60px rgba(17, 17, 17, 0.12);
  --shadow-drawer: -10px 0 40px rgba(0, 0, 0, 0.25);
  
  /* Z-Index Layers */
  --z-base: 1;
  --z-sticky: 100;
  --z-header: 500;
  --z-drawer: 900;
  --z-modal: 1000;
  --z-toast: 1100;
}

/* Resets & Core Elements */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--color-text-primary);
  background-color: var(--color-bg-primary);
  overflow-x: hidden;
}

/* Accessibility Focus */
:focus-visible {
  outline: 2px solid var(--color-brand-gold);
  outline-offset: 3px;
}

/* Headings & Editorial Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 500;
  color: var(--color-brand-black);
  letter-spacing: 0.06em;
  line-height: 1.25;
}

h1 {
  font-size: clamp(2.25rem, 5vw, 4rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  letter-spacing: 0.06em;
}

h4 {
  font-size: 1.125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

p {
  margin-bottom: 1.25rem;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: none;
}

ul, ol {
  list-style: none;
}

/* Layout Utilities */
.page-container {
  width: 100%;
  max-width: var(--site-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter-mobile);
  padding-right: var(--gutter-mobile);
}

@media (min-width: 768px) {
  .page-container {
    padding-left: var(--gutter-desktop);
    padding-right: var(--gutter-desktop);
  }
}

.section-spacing {
  padding-top: var(--section-spacing-mobile);
  padding-bottom: var(--section-spacing-mobile);
}

@media (min-width: 768px) {
  .section-spacing {
    padding-top: var(--section-spacing-desktop);
    padding-bottom: var(--section-spacing-desktop);
  }
}

/* Section Header Component */
.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3.5rem auto;
}

.section-subtitle {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--color-brand-gold);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.section-subtitle::before,
.section-subtitle::after {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background-color: var(--color-brand-gold);
  opacity: 0.6;
}

.section-title {
  margin-bottom: 1rem;
}

.section-description {
  font-size: 1.05rem;
  color: var(--color-brand-muted);
  font-weight: 300;
  line-height: 1.7;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.1rem 2.4rem;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border-radius: var(--radius-subtle);
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--color-brand-black);
  color: var(--color-brand-sand);
  border: 1px solid var(--color-brand-black);
}

.btn-primary:hover {
  background-color: var(--color-brand-gold);
  border-color: var(--color-brand-gold);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--color-brand-gold-glow);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-brand-black);
  border: 1px solid var(--color-brand-black);
}

.btn-secondary:hover {
  background-color: var(--color-brand-black);
  color: var(--color-brand-sand);
  transform: translateY(-2px);
}

.btn-gold {
  background-color: var(--color-brand-gold);
  color: #ffffff;
  border: 1px solid var(--color-brand-gold);
}

.btn-gold:hover {
  background-color: var(--color-brand-gold-dark);
  border-color: var(--color-brand-gold-dark);
  transform: translateY(-2px);
}

.btn-white {
  background-color: #ffffff;
  color: var(--color-brand-black);
  border: 1px solid #ffffff;
}

.btn-white:hover {
  background-color: var(--color-brand-cream);
  border-color: var(--color-brand-cream);
}

.btn-full {
  width: 100%;
}

/* Visually Hidden for Screen Readers */
.visually-hidden {
  position: absolute !important;
  overflow: hidden;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  clip: rect(0 0 0 0);
  word-wrap: normal !important;
}

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