/* -- index.html - Page-specific styles -- */


/* -- CUSTOM PROPERTIES -- */
:root {
  --gold: #F2B54A;
  --gold-dim: rgba(242, 181, 74, 0.12);
  --ink: #1D0D06;
  --cream: #FAFAF9;
}

/* -- NOISE OVERLAY -- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.4;
}

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

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

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

/* -- SELECTION -- */
::selection {
  background: rgba(242, 181, 74, 0.15);
  color: #1D0D06;
}

/* -- HERO -- */
.hero-bg {
  background: var(--ink);
}

.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%);
  }
}

/* -- MARQUEE -- */
.marquee-track {
  display: flex;
  gap: 3rem;
  white-space: nowrap;
  animation: marqueeScroll 30s linear infinite;
}

@keyframes marqueeScroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* -- ANIMATED LINE -- */
.line-draw {
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  animation: drawLine 1.8s ease-out 0.5s forwards;
}

@keyframes drawLine {
  to {
    stroke-dashoffset: 0;
  }
}

/* -- HERO TEXT ENTRANCE -- */
.hero-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(60px) rotateX(20deg);
  animation: wordReveal 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes wordReveal {
  to {
    opacity: 1;
    transform: translateY(0) rotateX(0);
  }
}

/* -- FLOATING BADGE -- */
.floating-badge {
  animation: floatBadge 6s ease-in-out infinite;
}

@keyframes floatBadge {

  0%,
  100% {
    transform: translateY(0px) rotate(-2deg);
  }

  50% {
    transform: translateY(-12px) rotate(1deg);
  }
}

/* -- STAT COUNTER -- */
.stat-block {
  position: relative;
  border-radius: 1.5rem;
}

/* -- FEATURE TAG -- */
.feature-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1.15rem;
  border: 1px solid rgba(242, 181, 74, 0.2);
  border-radius: 9999px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(242, 181, 74, 0.04);
  white-space: nowrap;
  transition: all 0.3s ease;
}

.luxury-card:hover .feature-tag {
  border-color: rgba(242, 181, 74, 0.4);
  background: rgba(242, 181, 74, 0.08);
}

/* -- GOLD DIVIDER -- */
.gold-divider {
  width: 3rem;
  height: 1px;
  background: linear-gradient(to right, var(--gold), transparent);
}



/* -- HERO COUNTER -- */
.hero-scroll-indicator {
  position: absolute;
  bottom: -1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  opacity: 0;
  animation: fadeInUp 1s 1.8s forwards;
  z-index: 20;
}

@media (max-width: 768px) {
  .hero-scroll-indicator {
    bottom: 2.4rem;
  }

  .stat-block {
    padding: 1.5rem 1rem !important;
  }

  .stat-block p:first-child {
    font-size: 2.75rem !important;
  }

  .stat-block p:first-child span {
    font-size: 1.5rem !important;
  }

  .stat-block p:last-child {
    font-size: 8px !important;
    letter-spacing: 0.15em !important;
  }
}

/* -- DESKTOP CARD REFINEMENTS -- */
.luxury-card .mobile-card-content {
  display: flex;
  flex-direction: column;
  flex: 1;
}

@media (min-width: 769px) {
  #services .luxury-card h2 {
    min-height: 3.5rem; /* Ensures baseline alignment for tags */
  }

  #services .luxury-card p {
    min-height: 4.5rem; /* Ensures baseline alignment for tags */
  }

  #services .mt-auto .flex.items-center.gap-4 {
    justify-content: flex-start !important;
    gap: 1rem !important; /* Fixed gap to prevent arrow pushing */
  }
}

/* -- MOBILE CARD REDESIGN (REFULGENT SIDEBAR) -- */

@media (max-width: 768px) {
  /* Card grid spacing */
  #services .grid {
    gap: 3rem !important;
  }

  /* Card shell — row layout, soft shadow */
  #services .luxury-card {
    flex-direction: row !important;
    align-items: flex-start !important;
    gap: 1.5rem !important;
    padding: 1.75rem !important;
    background: #ffffff !important;
    border: 1px solid rgba(50, 22, 10, 0.08) !important;
    box-shadow: 0 8px 30px -8px rgba(45, 21, 8, 0.07) !important;
    border-radius: 1.5rem !important;
    transform: none !important;
    transition: box-shadow 0.3s ease !important;
  }

  #services .luxury-card:active {
    box-shadow: 0 12px 40px -10px rgba(45, 21, 8, 0.13) !important;
  }

  /* Icon box — cream background, gold icon, fixed square */
  #services .card-icon-box {
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    flex-shrink: 0 !important;
    margin: 2px 0 0 0 !important;
    background: #FAF8F5 !important;
    color: #F2B54A !important;
    border: 1px solid rgba(242, 181, 74, 0.15) !important;
    border-radius: 0.875rem !important;
  }

  #services .card-icon-box svg {
    width: 1.25rem !important;
    height: 1.25rem !important;
  }

  /* Content wrapper — stacks children naturally */
  #services .mobile-card-content {
    flex: 1 !important;
    min-width: 0 !important;
    width: 0 !important;
    display: block !important;
  }

  #services .luxury-card h2 {
    font-size: 1.45rem !important;
    line-height: 1.18 !important;
    letter-spacing: -0.01em !important;
    margin-bottom: 0.35rem !important;
    font-weight: 500 !important;
  }

  #services .luxury-card p {
    font-size: 0.88rem !important;
    line-height: 1.65 !important;
    color: #706860 !important;
    margin-bottom: 0.875rem !important;
  }

  /* Feature tags — ghost style with dots */
  #services .flex.flex-wrap.gap-2 {
    gap: 0.3rem 1rem !important;
    margin-bottom: 0.875rem !important;
  }

  #services .feature-tag {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    font-size: 0.63rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.12em !important;
    color: #F2B54A !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.35rem !important;
  }

  #services .feature-tag::before {
    content: '';
    display: inline-block;
    width: 3px;
    height: 3px;
    min-width: 3px;
    border-radius: 50%;
    background: #F2B54A;
    opacity: 0.5;
  }

  #services .mt-auto {
    margin-top: 0.25rem !important;
  }

  #services .mt-auto > div {
    font-size: 0.6rem !important;
    gap: 0.5rem !important;
    letter-spacing: 0.16em !important;
  }

  #services .card-number,
  #services .gold-divider {
    display: none !important;
  }

  #services {
    padding-bottom: 3.5rem !important;
  }
}

@keyframes fadeInUp {
  to {
    opacity: 1;
  }
}

.scroll-line {
  width: 1px;
  height: 3rem;
  background: linear-gradient(to bottom, rgba(242, 181, 74, 0.6), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {

  0%,
  100% {
    transform: scaleY(1);
    opacity: 0.6;
  }

  50% {
    transform: scaleY(0.6);
    opacity: 1;
  }
}

/* -- PERSPECTIVE CARD -- */
.perspective-wrap {
  perspective: 1200px;
}

.tilt-card {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  transform-style: preserve-3d;
}

/* Extra specific styles for cards */
.card-number {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  font-family: 'Cormorant Garamond', serif;
  font-size: 5rem;
  line-height: 1;
  color: rgba(50, 22, 10, 0.04);
  font-style: italic;
  pointer-events: none;
  transition: color 0.5s;
}

[dir="rtl"] .card-number {
  right: auto;
  left: 2rem;
}

.luxury-card:hover .card-number {
  color: rgba(242, 181, 74, 0.08);
}

/* Bespoke Editorial Card Styles */
.luxury-card {
  background: linear-gradient(180deg, #FFFFFF 0%, #FCFAF7 100%) !important;
  border: 1px solid rgba(29, 13, 6, 0.06) !important;
  box-shadow: 0 10px 40px -15px rgba(29, 13, 6, 0.03) !important;
  transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1) !important;
  position: relative;
  border-radius: 2rem !important;
  padding: 3rem !important;
  display: flex !important;
  flex-direction: column !important;
}

.luxury-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 2rem;
  padding: 1px;
  background: linear-gradient(180deg, rgba(242, 181, 74, 0.3) 0%, transparent 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.luxury-card:hover {
  transform: translateY(-8px) !important;
  border-color: rgba(242, 181, 74, 0.3) !important;
  box-shadow: 0 40px 80px -20px rgba(29, 13, 6, 0.08) !important;
}

.luxury-card:hover::before {
  opacity: 1;
}

.card-icon-box {
  background: #FAF8F5 !important;
  border: 1px solid rgba(29, 13, 6, 0.05) !important;
  color: #1D0D06 !important;
  transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1) !important;
  border-radius: 1.25rem !important;
  width: 4.5rem !important;
  height: 4.5rem !important;
}

.luxury-card:hover .card-icon-box {
  background: #F2B54A !important;
  border-color: #F2B54A !important;
  color: #FFFFFF !important;
  transform: scale(1.05);
}

.feature-tag {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  font-family: 'Hanken Grotesk', sans-serif !important;
  font-size: 0.68rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.18em !important;
  color: #F2B54A !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.4rem !important;
}

.feature-tag::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #F2B54A;
  opacity: 0.6;
}

.editorial-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #F2B54A;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.editorial-btn svg {
  transition: color 0.5s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.luxury-card:hover .editorial-btn {
  color: #1D0D06 !important;
}

.luxury-card:hover .editorial-btn svg {
  color: #1D0D06 !important;
}

/* Mobile Responsive Overrides */
@media (max-width: 768px) {
  .luxury-card {
    flex-direction: row !important;
    align-items: flex-start !important;
    gap: 1.25rem !important;
    padding: 1.5rem !important;
    border-radius: 1.25rem !important;
    background: #FFFFFF !important;
    border: 1px solid rgba(29, 13, 6, 0.08) !important;
    box-shadow: 0 8px 30px -8px rgba(29, 13, 6, 0.06) !important;
  }
  .luxury-card::before {
    border-radius: 1.25rem !important;
  }
  .luxury-card:hover {
    transform: none !important;
    box-shadow: 0 8px 30px -8px rgba(29, 13, 6, 0.06) !important;
  }
  .card-icon-box {
    width: 3.25rem !important;
    height: 3.25rem !important;
    min-width: 3.25rem !important;
    border-radius: 0.85rem !important;
    margin-bottom: 0 !important;
    background: #FAF8F5 !important;
    border-color: rgba(29, 13, 6, 0.05) !important;
    color: #F2B54A !important;
  }
  .luxury-card:hover .card-icon-box {
    transform: none !important;
  }
  .feature-tag {
    font-size: 0.62rem !important;
  }
}

/* Arabic Language Overrides (Direction & Typography Protection) */
html[lang="ar"] .feature-tag,
html[lang="ar"] .editorial-btn {
  font-family: 'IBM Plex Sans Arabic', sans-serif !important;
  letter-spacing: 0 !important;
}
