/**
 * AJWA ROYALE - Main Luxury CSS
 * Seamless ultra-luxury design system
 * No WordPress-style boxes - pure elegance
 */

/* ============================================
   CSS CUSTOM PROPERTIES (Design Tokens)
   ============================================ */
:root {
  /* Luxury Color Palette */
  --black-sable: #0a0a0a;
  --gold-24k: #d4af37;
  --gold-rose: #b76e79;
  --velvet-green: #1a472a;
  --parchment: #f5f1e8;
  --carbon: #2c2c2c;
  --white-pure: #ffffff;
  --gray-light: #f9f9f9;
  --gray-medium: #666666;
  --gray-dark: #333333;

  /* Typography Scale (Perfect Fourth - 1.333) */
  --text-xs: 0.75rem;
  /* 12px */
  --text-sm: 0.875rem;
  /* 14px */
  --text-base: 1rem;
  /* 16px */
  --text-lg: 1.125rem;
  /* 18px */
  --text-xl: 1.333rem;
  /* 21px */
  --text-2xl: 1.777rem;
  /* 28px */
  --text-3xl: 2.369rem;
  /* 38px */
  --text-4xl: 3.157rem;
  /* 50px */
  --text-5xl: 4.209rem;
  /* 67px */

  /* Spacing Scale */
  --space-xs: 0.5rem;
  /* 8px */
  --space-sm: 1rem;
  /* 16px */
  --space-md: 1.5rem;
  /* 24px */
  --space-lg: 2rem;
  /* 32px */
  --space-xl: 3rem;
  /* 48px */
  --space-2xl: 4rem;
  /* 64px */
  --space-3xl: 6rem;
  /* 96px */

  /* Animation Easing */
  --ease-luxury: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-smooth: cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.16);
  --shadow-gold: 0 4px 20px rgba(212, 175, 55, 0.2);

  /* Borders */
  --border-radius-sm: 4px;
  --border-radius-md: 8px;
  --border-radius-lg: 16px;
  --border-radius-full: 9999px;
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Georgia', 'Times New Roman', serif;
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--gray-dark);
  background-color: var(--parchment);
  overflow-x: hidden;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 400;
  line-height: 1.2;
  color: var(--black-sable);
  letter-spacing: 0.02em;
}

h1 {
  font-size: var(--text-5xl);
  letter-spacing: 0.05em;
}

h2 {
  font-size: var(--text-4xl);
}

h3 {
  font-size: var(--text-3xl);
}

h4 {
  font-size: var(--text-2xl);
}

h5 {
  font-size: var(--text-xl);
}

h6 {
  font-size: var(--text-lg);
}

p {
  margin-bottom: var(--space-md);
  color: var(--gray-medium);
}

a {
  color: var(--gold-24k);
  text-decoration: none;
  transition: all 0.3s var(--ease-luxury);
}

a:hover {
  color: var(--velvet-green);
}

/* ============================================
   LUXURY NAVIGATION (Seamless)
   ============================================ */
.luxury-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.1);
  transition: all 0.4s var(--ease-luxury);
}

.luxury-nav.scrolled {
  background: rgba(10, 10, 10, 0.98);
  box-shadow: var(--shadow-md);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: var(--space-md) var(--space-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-size: var(--text-xl);
  color: var(--gold-24k);
  letter-spacing: 0.15em;
  font-weight: 400;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: var(--space-xl);
}

.nav-menu a {
  color: rgba(255, 255, 255, 0.8);
  font-size: var(--text-sm);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  position: relative;
  padding: var(--space-xs) 0;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold-24k);
  transition: width 0.4s var(--ease-luxury);
}

.nav-menu a:hover {
  color: var(--gold-24k);
}

.nav-menu a:hover::after {
  width: 100%;
}

/* ============================================
   CINEMATIC HERO SECTION
   ============================================ */
.cinematic-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-gradient-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a472a 100%);
  z-index: 1;
}

.hero-overlay-image {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 2;
  opacity: 0.6;
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg,
      rgba(10, 10, 10, 0.7) 0%,
      rgba(26, 71, 42, 0.6) 100%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  color: var(--white-pure);
  padding: var(--space-lg);
  max-width: 900px;
}

.luxury-badge-animated {
  width: 120px;
  height: 120px;
  margin: 0 auto var(--space-xl);
  position: relative;
  animation: badge-float 6s ease-in-out infinite;
}

@keyframes badge-float {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-20px) rotate(5deg);
  }
}

.badge-svg {
  width: 100%;
  height: 100%;
}

.badge-path {
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
  animation: badge-draw 3s ease-in-out forwards;
}

@keyframes badge-draw {
  to {
    stroke-dashoffset: 0;
  }
}

.badge-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: var(--text-xs);
  letter-spacing: 0.15em;
  color: var(--gold-24k);
  text-align: center;
  line-height: 1.3;
}

.split-headline {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.split-headline .line {
  font-size: var(--text-4xl);
  letter-spacing: 0.1em;
  opacity: 0;
  transform: translateY(30px);
  animation: line-reveal 1s var(--ease-luxury) forwards;
}

.split-headline .line:nth-child(1) {
  animation-delay: 0.3s;
}

.split-headline .line:nth-child(2) {
  animation-delay: 0.6s;
}

.split-headline .highlight {
  color: var(--gold-24k);
  font-size: var(--text-5xl);
}

@keyframes line-reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.typewriter-subhead {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: 0.05em;
  margin-bottom: var(--space-2xl);
  opacity: 0;
  animation: fade-in 1s var(--ease-luxury) 1.2s forwards;
}

@keyframes fade-in {
  to {
    opacity: 1;
  }
}

/* ============================================
   LUXURY CTA BUTTON
   ============================================ */
.luxury-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  background: transparent;
  border: 2px solid var(--gold-24k);
  color: var(--gold-24k);
  font-size: var(--text-sm);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.4s var(--ease-luxury);
}

.luxury-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--gold-24k);
  transition: left 0.4s var(--ease-luxury);
  z-index: -1;
}

.luxury-cta:hover {
  color: var(--black-sable);
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

.luxury-cta:hover::before {
  left: 0;
}

.cta-arrow {
  font-size: var(--text-lg);
  transition: transform 0.4s var(--ease-luxury);
}

.luxury-cta:hover .cta-arrow {
  transform: translate(5px, -5px);
}

/* ============================================
   SCROLL INDICATOR
   ============================================ */
.luxury-scroll-indicator {
  position: absolute;
  bottom: var(--space-xl);
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  opacity: 0;
  animation: fade-in 1s var(--ease-luxury) 2s forwards;
}

.scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom,
      transparent,
      var(--gold-24k),
      transparent);
  animation: scroll-pulse 2s ease-in-out infinite;
}

@keyframes scroll-pulse {

  0%,
  100% {
    opacity: 0.3;
  }

  50% {
    opacity: 1;
  }
}

.scroll-text {
  font-size: var(--text-xs);
  letter-spacing: 0.2em;
  color: var(--gold-24k);
}

/* ============================================
   SECTION CONTAINER (Seamless)
   ============================================ */
.section {
  padding: var(--space-3xl) var(--space-lg);
  position: relative;
}

.section-dark {
  background-color: var(--black-sable);
  color: var(--white-pure);
}

.section-light {
  background-color: var(--parchment);
}

.section-white {
  background-color: var(--white-pure);
}

.container {
  max-width: 1400px;
  margin: 0 auto;
}

.container-narrow {
  max-width: 900px;
  margin: 0 auto;
}

/* ============================================
   PRODUCT GRID (Seamless Layout)
   ============================================ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-2xl);
  margin-top: var(--space-2xl);
}

.product-card {
  background: var(--white-pure);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  transition: all 0.4s var(--ease-luxury);
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.product-image {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  transition: transform 0.6s var(--ease-luxury);
}

.product-card:hover .product-image {
  transform: scale(1.05);
}

.product-info {
  padding: var(--space-lg);
}

.product-name {
  font-size: var(--text-xl);
  color: var(--black-sable);
  margin-bottom: var(--space-sm);
  letter-spacing: 0.05em;
}

.product-weight {
  font-size: var(--text-sm);
  color: var(--gray-medium);
  margin-bottom: var(--space-md);
}

.product-price {
  font-size: 1.75rem;
  font-weight: 600;
  color: #0a0a0a;
  letter-spacing: 0.02em;
  font-family: 'Montserrat', sans-serif;
}

.product-price-original {
  font-size: 1rem;
  color: #999;
  text-decoration: line-through;
  margin-left: 0.75rem;
  font-weight: 400;
}

/* ============================================
   FORM ELEMENTS (Luxury Style)
   ============================================ */
.form-group {
  margin-bottom: var(--space-lg);
}

.form-label {
  display: block;
  font-size: var(--text-sm);
  color: var(--gray-dark);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--space-xs);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: var(--space-md);
  font-size: var(--text-base);
  font-family: inherit;
  color: var(--gray-dark);
  background: var(--white-pure);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--border-radius-sm);
  transition: all 0.3s var(--ease-luxury);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--gold-24k);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-center {
  text-align: center;
}

.text-gold {
  color: var(--gold-24k);
}

.text-green {
  color: var(--velvet-green);
}

.mt-sm {
  margin-top: var(--space-sm);
}

.mt-md {
  margin-top: var(--space-md);
}

.mt-lg {
  margin-top: var(--space-lg);
}

.mt-xl {
  margin-top: var(--space-xl);
}

.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);
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s var(--ease-luxury);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
  :root {
    --text-5xl: 2.5rem;
    --text-4xl: 2rem;
    --text-3xl: 1.5rem;
  }

  .nav-menu {
    display: none;
  }

  .split-headline .line {
    font-size: var(--text-2xl);
  }

  .split-headline .highlight {
    font-size: var(--text-3xl);
  }

  .section {
    padding: var(--space-2xl) var(--space-md);
  }

  .product-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  /* Hide hero overlay image on mobile */
  .hero-overlay-image {
    display: none;
  }

  /* Adjust hero height on mobile */
  .cinematic-hero {
    height: 80vh;
  }

  .hero-content {
    padding: 1rem;
  }

  .luxury-badge-animated {
    width: 80px;
    height: 80px;
  }
}

/* ============================================
   WHATSAPP FLOATING BUTTON
   ============================================ */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: all 0.3s var(--ease-luxury);
  cursor: pointer;
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
  background: #20BA5A;
}

.whatsapp-float svg {
  width: 32px;
  height: 32px;
  fill: #fff;
}

@media (max-width: 768px) {
  .whatsapp-float {
    width: 50px;
    height: 50px;
    bottom: 20px;
    right: 20px;
  }

  .whatsapp-float svg {
    width: 28px;
    height: 28px;
  }
}