/* ============================================================
   DXB DECOR — MAIN CSS
   Design Tokens, Reset, Typography, Layout
   ============================================================ */

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

/* ── DESIGN TOKENS ────────────────────────────────────────── */
:root {
  /* Brand Colors */
  --gold:         #C8A96E;
  --gold-light:   #DFC08A;
  --gold-dark:    #A88A50;
  --charcoal:     #1A1A2E;
  --charcoal-mid: #2E2E45;
  --cream:        #FAF7F2;
  --cream-dark:   #F0EBE1;
  --terracotta:   #C2714F;
  --sage:         #7A9E7E;

  /* Text */
  --text-dark:    #2C2C2C;
  --text-mid:     #555555;
  --text-light:   #888888;
  --text-white:   #FFFFFF;
  --text-gold:    #C8A96E;

  /* Backgrounds */
  --bg-cream:     #FAF7F2;
  --bg-white:     #FFFFFF;
  --bg-charcoal:  #1A1A2E;
  --bg-dark-card: #242438;
  --bg-light:     #F5F0E8;

  /* Borders */
  --border-light: #E5DDD0;
  --border-gold:  rgba(200, 169, 110, 0.3);

  /* Typography */
  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;
  --font-accent:  'Outfit', system-ui, sans-serif;

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

  /* Radius */
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   16px;
  --radius-pill: 100px;

  /* Shadows */
  --shadow-sm:   0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:   0 4px 16px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg:   0 8px 32px rgba(0,0,0,0.12), 0 4px 8px rgba(0,0,0,0.06);
  --shadow-gold: 0 4px 20px rgba(200, 169, 110, 0.25);

  /* Transitions */
  --transition-fast:   150ms ease;
  --transition-base:   250ms ease;
  --transition-slow:   400ms ease;
  --transition-spring: 350ms cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Layout */
  --max-width:        1440px;
  --container-pad:    clamp(16px, 4vw, 80px);
  --header-height:    76px;
  --announce-height:  40px;
}

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

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

body {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--bg-cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

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

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

ul, ol {
  list-style: none;
}

svg {
  display: block;
}

/* ── TYPOGRAPHY ───────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.15;
  color: var(--text-dark);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.75rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 1.875rem); }
h4 { font-size: clamp(1.1rem, 2vw, 1.375rem); }
h5 { font-size: 1.125rem; }

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

.lead {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--text-mid);
}

.overline {
  font-family: var(--font-accent);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ── LAYOUT ───────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

.section {
  padding: var(--space-3xl) 0;
}

.section-sm {
  padding: var(--space-2xl) 0;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.section-header .overline {
  margin-bottom: var(--space-sm);
  display: block;
}

.section-header h2 {
  margin-bottom: var(--space-md);
}

.section-header p {
  max-width: 500px;
  margin: 0 auto;
  color: var(--text-mid);
}

/* ── BUTTONS ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-accent);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: 2px;
  transition: all var(--transition-base);
  cursor: pointer;
  border: 2px solid transparent;
  white-space: nowrap;
  text-decoration: none;
}

.btn-primary {
  background: var(--charcoal);
  color: var(--text-white);
  border-color: var(--charcoal);
}

.btn-primary:hover {
  background: var(--gold);
  border-color: var(--gold);
  transform: translateY(-1px);
  box-shadow: var(--shadow-gold);
}

.btn-outline {
  background: transparent;
  color: var(--charcoal);
  border-color: var(--charcoal);
}

.btn-outline:hover {
  background: var(--charcoal);
  color: var(--text-white);
}

.btn-gold {
  background: var(--gold);
  color: var(--charcoal);
  border-color: var(--gold);
  font-weight: 600;
}

.btn-gold:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-gold);
}

.btn-outline-gold {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold);
}

.btn-outline-gold:hover {
  background: var(--gold);
  color: var(--charcoal);
}

.btn-white {
  background: var(--bg-white);
  color: var(--text-dark);
  border-color: var(--bg-white);
}

.btn-white:hover {
  background: var(--cream);
  transform: translateY(-1px);
}

.btn-sm {
  font-size: 0.75rem;
  padding: 10px 20px;
}

.btn-lg {
  font-size: 0.9375rem;
  padding: 18px 44px;
}

.btn-full {
  width: 100%;
}

.btn-icon {
  padding: 12px;
  border-radius: 50%;
  aspect-ratio: 1;
}

/* ── GRID UTILITIES ───────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-lg); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-lg); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-lg); }

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ── FLEX UTILITIES ───────────────────────────────────────── */
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-col { display: flex; flex-direction: column; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }

/* ── DECORATIVE ───────────────────────────────────────────── */
.divider {
  width: 48px;
  height: 2px;
  background: var(--gold);
  margin: var(--space-md) auto;
}

.divider-left {
  margin: var(--space-md) 0;
}

/* ── BADGE ───────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-family: var(--font-accent);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.badge-new { background: var(--charcoal); color: var(--text-white); }
.badge-sale { background: var(--terracotta); color: var(--text-white); }
.badge-bestseller { background: var(--gold); color: var(--charcoal); }

/* ── STARS ────────────────────────────────────────────────── */
.stars {
  display: flex;
  gap: 2px;
}

.star {
  color: var(--gold);
  font-size: 0.875rem;
}

/* ── PAGE PADDING FOR FIXED HEADER ───────────────────────── */
.page-content {
  padding-top: calc(var(--header-height) + var(--announce-height));
}

/* ── SCROLL REVEAL ────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── LOADING OVERLAY ─────────────────────────────────────── */
.page-loader {
  position: fixed;
  inset: 0;
  background: var(--bg-cream);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.page-loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--gold);
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

/* ── UTILITIES ───────────────────────────────────────────── */
.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-gold   { color: var(--gold); }
.text-cream  { color: var(--cream); }
.text-mid    { color: var(--text-mid); }
.text-light-color { color: var(--text-light); }
.mb-0 { margin-bottom: 0; }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.w-full { width: 100%; }
.d-none { display: none !important; }

@media (max-width: 768px) {
  .hidden-mobile { display: none !important; }
}

@media (min-width: 769px) {
  .hidden-desktop { display: none !important; }
}
