/* Typography & Font Homogeneity */
@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,500;1,600&family=Inter:wght@100;200;300;400;500;600;700;800;900&family=IBM+Plex+Sans+Arabic:wght@100;200;300;400;500;600;700&family=Mrs+Saint+Delafield&display=swap');
@import url('components/footer.css');

:root {
  --primary-deep: #32160A;
  --secondary-rich: #F2B54A;
  --neutral-soft: #FAFAF9;
  --white-translucent: rgba(255, 255, 255, 0.9);
  --gold-scrollbar: #F2B54A;
  --ink-scrollbar: #1D0D06;
}

/* Arabic Optimization Logic */
html[lang="ar"] body {
  font-family: 'IBM Plex Sans Arabic', sans-serif;
}

html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] h3,
html[lang="ar"] h4,
html[lang="ar"] h5,
html[lang="ar"] h6 {
  font-family: 'IBM Plex Sans Arabic', sans-serif;
}

/* Scaling Arabic span/a - Fixes 'too small' report */
html[lang="ar"] nav ul li a {
  font-size: 0.82rem !important; /* Approx 13px */
  letter-spacing: 0 !important;
  font-weight: 600 !important;
}



html[lang="ar"] .v-dots {
  right: auto !important;
  left: 2rem !important;
}

html[lang="ar"] label {
  font-size: 0.75rem !important;
  letter-spacing: 0.1em !important;
  font-weight: 600 !important;
}

html[lang="ar"] .text-gold-caps {
  font-size: 0.8rem !important;
  letter-spacing: 0.1em !important;
}

html[lang="ar"] input,
html[lang="ar"] textarea,
html[lang="ar"] select {
  font-size: 1rem !important;
}

/* Substantial Submit Buttons for Arabic */
html[lang="ar"] .btn-submit {
  font-size: 0.88rem !important;
  letter-spacing: 0 !important;
  padding: 1.2rem 2.8rem !important;
}

/* Mobile Menu Beauty & Typography */
html[lang="ar"] #mobileMenu,
html[lang="ar"] #mobileMenu * {
  font-family: 'IBM Plex Sans Arabic', sans-serif !important;
}

html[lang="ar"] #mobileMenu a {
  font-size: 1.4rem !important;
  line-height: 1.8 !important;
  letter-spacing: 0 !important;
}

html[lang="ar"] #mobileMenu .border-t span:first-child {
  font-size: 0.8rem !important;
  letter-spacing: 0.2rem !important;
  color: var(--secondary-rich) !important;
  opacity: 0.6;
}

/* Premium Background for Mobile Overlay in Arabic */
html[lang="ar"] #mobileMenu.hero-bg {
  background: linear-gradient(170deg, #1D0D06 0%, #32160A 70%, #1D0D06 100%) !important;
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
  width: 3px;
}

::-webkit-scrollbar-track {
  background: var(--ink-scrollbar);
}

::-webkit-scrollbar-thumb {
  background: var(--gold-scrollbar);
}


* {
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--neutral-soft);
  color: var(--primary-deep);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Grainy Texture for Premium Feel */
body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("https://www.transparenttextures.com/patterns/natural-paper.png");
  opacity: 0.03;
  pointer-events: none;
  z-index: 9999;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Cormorant Garamond', serif;
  font-variant-ligatures: normal;
}

/* Fix Hidden Parts Overlay */
section {
  position: relative;
  z-index: 10;
}

/* Form Styling - Premium & Clear */
input,
textarea,
select {
  background: transparent !important;
  border: 1px solid rgba(50, 22, 10, 0.1);
  padding: 1.25rem 1rem;
  transition: all 0.4s ease;
  font-weight: 300;
  width: 100%;
  border-radius: 0.75rem;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--secondary-rich);
  background: white !important;
  box-shadow: 0 10px 30px -10px rgba(45, 21, 8, 0.1);
  outline: none;
}

label {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(50, 22, 10, 0.5);
  margin-bottom: 0.75rem;
}

/* Gradients with Better Contrast */
.hero-gradient {
  background: linear-gradient(180deg, rgba(50, 22, 10, 0.9) 0%, rgba(50, 22, 10, 0.5) 40%, rgba(250, 250, 249, 1) 100%);
}

.dark-section-gradient {
  background: linear-gradient(135deg, #32160A 0%, #1D0D06 100%);
}

.nav-blur {
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
}

/* Scroll Reveal Effects - Subtle & Robust */
.reveal {
  opacity: 0;
  transform: translate3d(0, 30px, 0) scale(0.98);
  will-change: transform, opacity;
  transition: opacity 0.8s cubic-bezier(0.2, 0, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0, 0.2, 1);
}

.reveal-left {
  opacity: 0;
  transform: translate3d(-30px, 0, 0) scale(0.98);
  will-change: transform, opacity;
  transition: opacity 0.8s cubic-bezier(0.2, 0, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0, 0.2, 1);
}

.reveal-right {
  opacity: 0;
  transform: translate3d(30px, 0, 0) scale(0.98);
  will-change: transform, opacity;
  transition: opacity 0.8s cubic-bezier(0.2, 0, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0, 0.2, 1);
}

.reveal.active,
.reveal-left.active,
.reveal-right.active {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

@media (max-width: 768px) {

  .reveal-left,
  .reveal-right {
    transform: translateY(40px) scale(0.98);
  }
}

.reveal-delay-1 {
  transition-delay: 0.15s;
}

.reveal-delay-2 {
  transition-delay: 0.3s;
}

.reveal-delay-3 {
  transition-delay: 0.45s;
}

/* Signature elements */
.signature-underline {
  position: relative;
  display: inline-block;
  padding-bottom: 0.5rem;
}

/* --- Hero Background System --- */
.hero-bg {
  background: var(--primary-deep);
}

.hero-img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  animation: slowPan 50s ease-in-out infinite alternate;
  filter: brightness(0.55) contrast(1.1);
}

.hero-overlay {
  background: linear-gradient(170deg,
      rgba(29, 13, 6, 0.0) 0%,
      rgba(29, 13, 6, 0.3) 40%,
      rgba(29, 13, 6, 0.82) 75%,
      rgba(29, 13, 6, 1) 100%);
}

.hero-side-gradient {
  background: linear-gradient(to right, rgba(29, 13, 6, 0.7), transparent 40%, transparent 60%, rgba(29, 13, 6, 0.7));
}

@keyframes slowPan {
  from {
    transform: scale(1.06) translate(0, 0);
  }

  to {
    transform: scale(1.14) translate(-2%, 1%);
  }
}

.signature-underline::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background-color: var(--secondary-rich);
}

/* Footer Touches */
.footer-link {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.85rem;
  transition: all 0.3s;
  display: block;
}

.footer-link:hover {
  color: var(--secondary-rich);
  transform: translateX(4px);
}

/* --- High-End Luxury Utilities --- */
.text-gold-caps {
  color: var(--secondary-rich);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  display: inline-block;
}

.luxury-card {
  background: transparent;
  border: 1px solid rgba(50, 22, 10, 0.1);
  border-radius: 2rem;
  padding: 2.5rem;
  transition: border-color 0.4s ease, transform 0.4s ease;
  position: relative;
  overflow: hidden;
  display: block;
}

.luxury-card:hover {
  border-color: var(--secondary-rich);
  transform: translateY(-5px);
}


.card-icon-box {
  width: 60px;
  height: 60px;
  background: var(--neutral-soft);
  border-radius: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary-rich);
  margin-bottom: 2rem;
  transition: all 0.7s cubic-bezier(0.19, 1, 0.22, 1);
}

.luxury-card:hover .card-icon-box {
  background: var(--secondary-rich);
  color: white;
}

.editorial-line {
  height: 1px;
  background: linear-gradient(90deg, var(--secondary-rich) 0%, transparent 100%);
  width: 100px;
  transition: width 1.2s cubic-bezier(0.19, 1, 0.22, 1);
}

.reveal.active .editorial-line {
  width: 250px;
}

.video-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 5, 2, 0.95);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: all 0.8s cubic-bezier(0.19, 1, 0.22, 1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}


.drop-shadow-2xl {
  filter: drop-shadow(0 25px 25px rgba(0, 0, 0, 0.5));
}


/* Refined drop-shadow utility for Hero text */
.drop-shadow-2xl {
  filter: drop-shadow(0 20px 25px rgba(26, 26, 26, 0.4));
}

/* --- Mobile Optimization Utilities --- */
@media (max-width: 768px) {
  .mobile-stack {
    flex-direction: column !important;
    gap: 2rem !important;
  }

  .mobile-static {
    position: static !important;
    inset: auto !important;
    transform: none !important;
    margin: 1.5rem auto !important;
    width: 100% !important;
  }

  .mobile-text-center {
    text-align: center !important;
  }

  .mobile-p-small {
    padding: 2rem 1.5rem !important;
  }

  .mobile-hide {
    display: none !important;
  }

  /* Standardizing mobile grid gaps */
  .grid {
    gap: 1.5rem !important;
  }

  /* Section padding standard for mobile */
  section {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }

  /* Specific hero sections can override if needed */
  .hero-bg section,
  section.hero-bg {
    padding-top: initial !important;
    padding-bottom: initial !important;
  }

  /* Luxury Card Mobile Polish */
  .luxury-card {
    padding: 1.75rem !important;
    border-radius: 1.5rem !important;
    border-color: var(--secondary-rich) !important;
  }

  .card-icon-box {
    width: 48px !important;
    height: 48px !important;
    margin-bottom: 1.5rem !important;
  }

  /* Stat blocks margin on mobile */
  .stat-block {
    margin-bottom: 0 !important;
  }

  /* Reset margin for the last row if inside a grid */
  .grid .stat-block:last-child,
  .grid .stat-block:nth-last-child(2) {
    margin-bottom: 2rem !important;
  }

  /* Hero text adjustment for smaller screens */
  h1 {
    font-size: 2.75rem !important;
    line-height: 1.1 !important;
  }

  h2 {
    font-size: 2rem !important;
  }

  .hero-word {
    display: inline !important;
  }

  /* Mobile menu item polish */
  #mobileMenu a {
    font-size: 2rem !important;
    transition: color 0.3s ease;
  }
}

.shadow-glow {
  box-shadow: 0 0 30px rgba(242, 181, 74, 0.2);
}

.hover\:shadow-glow-secondary:hover {
  box-shadow: 0 0 40px rgba(242, 181, 74, 0.35);
}

/* --- Smart Header --- */
header {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease, padding 0.5s ease;
}

header.header-hidden {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

header.header-scrolled {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

header.header-scrolled nav {
  height: 4.5rem !important;
  background-color: rgba(255, 255, 255, 0.9) !important;
  backdrop-filter: blur(16px) !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08) !important;
}