/* ============================================
   Ghazal Fine-Dine — GLOBAL DESIGN SYSTEM
   "Antique Gold & Warm Charcoal" Luxury Aesthetic
   ============================================ */

:root {
  /* ========== COLOR PALETTE — inspired by the Ghazal crest ========== */

  /* Deep background tones (warm charcoal, not pure black) */
  --color-black: #0B0807;
  --color-charcoal: #141210;
  --color-charcoal-light: #1E1A16;
  --color-charcoal-lighter: #2A2420;
  --color-charcoal-dark: #0B0807;
  --color-brown-deep: #1A120B;
  --color-brown-warm: #241810;

  /* Gold / amber accents — matched to the logo */
  --color-gold: #C9A24A;            /* primary antique gold */
  --color-gold-light: #E8C778;      /* highlight glow */
  --color-gold-bright: #F2D98C;     /* brightest shimmer */
  --color-gold-dark: #8A6A2E;       /* deep amber shadow */
  --color-amber: #B8833A;           /* warm amber */
  --color-amber-deep: #7C5520;      /* deep amber */
  --color-bronze: #9C7A3A;          /* muted bronze */

  /* Legacy primary aliases — everything in style.css points here */
  --color-primary: var(--color-gold);
  --color-primary-light: var(--color-gold-light);
  --color-primary-dark: var(--color-gold-dark);
  --color-ember: var(--color-amber);
  --color-flame: var(--color-gold);

  /* Neutral / text tones (warm cream, not pure white) */
  --color-cream: #EFE4CC;
  --color-cream-dark: #D8C9A8;
  --color-white: #FBF7EE;
  --color-gray: #978B76;
  --color-gray-light: #B5AB97;
  --color-gray-dark: #5A5248;

  /* Alert / accent */
  --color-alert: #E25A3C;

  /* Translucent gold variants (driven by the accent color) */
  --color-primary-5: rgba(201, 162, 74, 0.05);
  --color-primary-10: rgba(201, 162, 74, 0.1);
  --color-primary-15: rgba(201, 162, 74, 0.15);
  --color-primary-30: rgba(201, 162, 74, 0.3);
  --color-cream-10: rgba(239, 228, 204, 0.1);
  --color-cream-30: rgba(239, 228, 204, 0.3);
  --color-black-50: rgba(11, 8, 7, 0.5);
  --color-black-80: rgba(11, 8, 7, 0.85);

  /* ========== LEGACY / COMPATIBILITY ALIASES ==========
     Retained so that any hard-coded class references remain consistent. */
  --primaryLight: var(--color-gold-light);
  --primary: var(--color-gold);
  --secondary: var(--color-amber);
  --secondaryLight: var(--color-gold-light);
  --headerColor: var(--color-cream);
  --bodyTextColor: var(--color-gray);
  --bodyTextColorWhite: var(--color-cream);
  --primary-color: var(--color-gold);
  --primary-color-light: var(--color-gold-light);
  --primary-color-dark: var(--color-gold-dark);
  --text-dark: var(--color-cream);
  --text-light: var(--color-gray);
  --white: var(--color-white);
  --main-color: var(--color-gold);

  /* ========== GRADIENTS — richness without flat black ========== */
  --gradient-surface: linear-gradient(180deg, #120F0C 0%, #0B0807 100%);
  --gradient-surface-warm: linear-gradient(160deg, #1A120B 0%, #0B0807 60%, #120F0C 100%);
  --gradient-card: linear-gradient(145deg, #1E1A16 0%, #161210 100%);
  --gradient-card-hover: linear-gradient(145deg, #252019 0%, #1A1512 100%);
  --gradient-gold: linear-gradient(135deg, #E8C778 0%, #C9A24A 45%, #8A6A2E 100%);
  --gradient-gold-soft: linear-gradient(135deg, #D4B367 0%, #B08937 100%);
  --gradient-gold-shimmer: linear-gradient(
    110deg,
    #8A6A2E 0%,
    #C9A24A 35%,
    #F2D98C 50%,
    #C9A24A 65%,
    #8A6A2E 100%
  );
  --gradient-divider: linear-gradient(
    90deg,
    transparent 0%,
    rgba(201, 162, 74, 0.5) 50%,
    transparent 100%
  );

  /* ========== TYPOGRAPHY ========== */
  --font-display: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-accent: 'Marcellus', 'Cormorant Garamond', Georgia, serif;
  --heading-font: var(--font-display);
  --body-font: var(--font-body);

  /* Font Sizes */
  --topperFontSize: clamp(0.75rem, 1.5vw, 0.875rem);
  --headerFontSize: clamp(2rem, 4vw, 3rem);
  --bodyFontSize: 1rem;
  --fs-hero-title: clamp(3rem, 8vw, 6rem);
  --fs-section-title: clamp(2rem, 4vw, 3rem);
  --fs-card-title: clamp(1.25rem, 2vw, 1.5rem);

  /* ========== SPACING ========== */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --sectionPadding: clamp(4rem, 8vw, 6rem) 1rem;
  --max-width: 1200px;

  /* ========== TRANSITIONS ========== */
  --transition-fast: 0.2s ease;
  --transition-medium: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.35s cubic-bezier(0.22, 1, 0.36, 1);

  /* ========== BORDERS & SHADOWS ========== */
  --border-radius-sm: 3px;
  --border-radius-md: 6px;
  --border-radius-lg: 12px;
  --border-radius-full: 50px;

  --border-gold-subtle: 1px solid rgba(201, 162, 74, 0.18);
  --border-gold-soft: 1px solid rgba(201, 162, 74, 0.35);

  --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 6px 24px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 18px 50px rgba(0, 0, 0, 0.6);
  --shadow-inset-warm: inset 0 1px 0 rgba(232, 199, 120, 0.08);
  --shadow-glow-primary: 0 4px 30px rgba(201, 162, 74, 0.28);
  --shadow-glow-primary-light: 0 4px 20px rgba(232, 199, 120, 0.25);
  --shadow-glow-gold-strong: 0 10px 40px rgba(201, 162, 74, 0.45);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(232, 199, 120, 0.06);
  --shadow-card-hover: 0 24px 60px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(201, 162, 74, 0.25);

  /* ========== Z-INDEX LAYERS ========== */
  --z-base: 1;
  --z-dropdown: 100;
  --z-sticky: 500;
  --z-fixed: 1000;
  --z-modal: 2000;
  --z-tooltip: 3000;
}

/* ============================================
   CSS RESET & BASE STYLES
   ============================================ */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-black);
  background-image:
    radial-gradient(ellipse 80% 60% at 20% 0%, rgba(201, 162, 74, 0.06) 0%, transparent 55%),
    radial-gradient(ellipse 70% 50% at 80% 100%, rgba(138, 106, 46, 0.05) 0%, transparent 60%),
    linear-gradient(180deg, #120F0C 0%, #0B0807 100%);
  background-attachment: fixed;
  color: var(--color-cream);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-weight: 400;
  letter-spacing: 0.015em;
}

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

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

ul {
  list-style: none;
}

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

::selection {
  background: rgba(201, 162, 74, 0.35);
  color: var(--color-cream);
}

/* ============================================
   TYPOGRAPHY CLASSES
   ============================================ */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.2;
  color: var(--color-cream);
  letter-spacing: 0.01em;
}

.cs-topper,
.section-label {
  font-size: var(--topperFontSize);
  line-height: 1.2em;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-weight: 600;
  background: var(--gradient-gold-soft);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--color-gold);
  margin-bottom: var(--space-sm);
  display: inline-block;
  position: relative;
}

.cs-title,
.section-title {
  font-size: var(--headerFontSize);
  font-weight: 500;
  line-height: 1.2em;
  max-width: 43.75rem;
  margin: 0 auto var(--space-sm) auto;
  color: var(--color-cream);
  font-family: var(--font-display);
  text-align: center;
  letter-spacing: 0.005em;
}

.section-title em {
  font-style: italic;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--color-gold);
}

.cs-text,
.section-subtitle {
  font-size: var(--bodyFontSize);
  line-height: 1.8em;
  max-width: 40.625rem;
  margin: 0;
  color: var(--color-gray-light);
  font-weight: 300;
}

.text-accent {
  color: var(--color-gold);
}

.text-italic {
  font-style: italic;
}

.link-alert {
  color: var(--color-alert);
  font-weight: bold;
  text-decoration: underline;
}

.link-alert:hover {
  color: var(--color-gold-light);
}

/* ============================================
   LAYOUT CONTAINERS
   ============================================ */

.section__container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--sectionPadding);
}

.section-container {
  max-width: var(--max-width);
  margin: 0 auto;
}

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

.section-header .section-subtitle {
  margin: var(--space-sm) auto 0;
}

/* Refined ornamental divider inspired by the logo flourishes */
.ornament-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  margin: var(--space-md) auto;
  color: var(--color-gold);
  opacity: 0.85;
}

.ornament-divider::before,
.ornament-divider::after {
  content: '';
  display: block;
  width: 80px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(201, 162, 74, 0.65) 100%
  );
}

.ornament-divider::after {
  background: linear-gradient(
    90deg,
    rgba(201, 162, 74, 0.65) 0%,
    transparent 100%
  );
}

.ornament-diamond {
  width: 6px;
  height: 6px;
  background: var(--color-gold);
  transform: rotate(45deg);
  box-shadow: 0 0 10px rgba(232, 199, 120, 0.6);
}

/* ============================================
   BUTTON STYLES — refined gold luxury
   ============================================ */

.btn,
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: 1rem 2.2rem;
  background: var(--gradient-gold);
  color: #1A120B;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border-radius: var(--border-radius-sm);
  transition: var(--transition-smooth);
  box-shadow:
    0 4px 18px rgba(201, 162, 74, 0.35),
    inset 0 1px 0 rgba(255, 234, 180, 0.4);
  cursor: pointer;
  border: 1px solid rgba(232, 199, 120, 0.5);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn::before,
.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    110deg,
    transparent 0%,
    rgba(255, 255, 255, 0.22) 50%,
    transparent 100%
  );
  transition: left 0.7s ease;
}

.btn:hover,
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 10px 36px rgba(201, 162, 74, 0.5),
    inset 0 1px 0 rgba(255, 234, 180, 0.5);
}

.btn:hover::before,
.btn-primary:hover::before {
  left: 100%;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: 1rem 2.2rem;
  background: transparent;
  color: var(--color-cream);
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: 1px solid rgba(201, 162, 74, 0.5);
  border-radius: var(--border-radius-sm);
  transition: var(--transition-smooth);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn-secondary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(201, 162, 74, 0.12), rgba(201, 162, 74, 0));
  opacity: 0;
  transition: opacity var(--transition-medium);
}

.btn-secondary:hover {
  color: var(--color-gold-light);
  border-color: var(--color-gold);
  box-shadow: 0 0 20px rgba(201, 162, 74, 0.2);
}

.btn-secondary:hover::after {
  opacity: 1;
}

.btn-ember,
.location-btn-primary {
  background: var(--gradient-gold);
  color: #1A120B;
  box-shadow: var(--shadow-glow-primary-light);
}

.btn-ember:hover,
.location-btn-primary:hover {
  box-shadow: var(--shadow-glow-gold-strong);
  transform: translateY(-2px);
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Subtle decorative pattern inspired by the logo mandala — use as a faint overlay on sections */
.pattern-overlay {
  position: relative;
}

.pattern-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.035;
  background-image: radial-gradient(
      circle at 2px 2px,
      rgba(201, 162, 74, 0.9) 1px,
      transparent 0
    );
  background-size: 32px 32px;
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes glowPulse {
  0%, 100% {
    opacity: 0.55;
    transform: translateX(-50%) scale(1);
  }
  50% {
    opacity: 0.9;
    transform: translateX(-50%) scale(1.04);
  }
}

@keyframes flameDance {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.15);
  }
}

@keyframes scrollLine {
  0%, 100% {
    transform: scaleY(1);
    opacity: 1;
  }
  50% {
    transform: scaleY(0.5);
    opacity: 0.45;
  }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
