/**
 * Golfly Design System & Visual Direction
 * Bridges Olympic-grade athleticism with high-end desert championship luxury.
 */

:root {
  /* Primary Color Palette */
  --color-fairway-noir:    #0A1D16;
  --color-fairway-deep:    #06130E;
  --color-fairway-surface: #10261E;
  --color-sand-gold:       #C5A059;
  --color-sand-gold-hover: #D9B46E;
  --color-sand-muted:      rgba(197, 160, 89, 0.15);
  --color-clubhouse-white: #F9FAF8;
  --color-carbon-slate:    #1E232A;
  --color-carbon-card:     #15191F;
  --color-carbon-border:   rgba(255, 255, 255, 0.08);
  --color-text-muted:      #9AA3AE;

  /* Typography */
  --font-fa: 'Vazirmatn', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-ar: 'Vazirmatn', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-en: 'Futura PT', 'Futura', 'Trebuchet MS', -apple-system, sans-serif;

  /* Transitions & Shadows */
  --transition-smooth: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-gold: 0 10px 30px rgba(197, 160, 89, 0.25);
  --shadow-card: 0 12px 35px rgba(0, 0, 0, 0.35);
}

/* Base Body */
body {
  background-color: var(--color-fairway-noir);
  color: var(--color-clubhouse-white);
  min-height: 100vh;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

[lang="fa"], [lang="ar"] {
  font-family: var(--font-fa);
}

[lang="en"] {
  font-family: var(--font-en);
}

/* Typography & Text Utilities */
h1, h2, h3, h4, h5, h6 {
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-clubhouse-white);
}

.text-gold {
  color: var(--color-sand-gold) !important;
}

.text-muted-custom {
  color: var(--color-text-muted) !important;
}

/* Header & Glassmorphism Navigation */
.navbar-golfly {
  background: rgba(10, 29, 22, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(197, 160, 89, 0.2);
  transition: var(--transition-smooth);
}

.navbar-brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 900;
  font-size: 1.35rem;
  color: #fff;
  text-decoration: none;
}

.navbar-brand-logo .crest {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1.5px solid var(--color-sand-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, #1A362B, #0A1D16);
  color: var(--color-sand-gold);
  font-size: 1.25rem;
}

.nav-link-golfly {
  color: rgba(249, 250, 248, 0.82) !important;
  font-weight: 600;
  font-size: 0.98rem;
  padding-inline: 1rem !important;
  padding-block: 0.5rem !important;
  transition: var(--transition-smooth);
}

.nav-link-golfly:hover,
.nav-link-golfly.active {
  color: var(--color-sand-gold) !important;
}

/* Gold Buttons & Badges */
.btn-gold {
  background: linear-gradient(135deg, var(--color-sand-gold), #B58F48);
  color: #000 !important;
  font-weight: 700;
  border: none;
  padding-inline: 1.5rem;
  padding-block: 0.75rem;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition-smooth);
}

.btn-gold:hover {
  background: linear-gradient(135deg, #E0BC75, var(--color-sand-gold));
  color: #000 !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

.btn-outline-gold {
  background: transparent;
  color: var(--color-sand-gold) !important;
  border: 1.5px solid var(--color-sand-gold);
  font-weight: 700;
  padding-inline: 1.5rem;
  padding-block: 0.75rem;
  border-radius: 6px;
  transition: var(--transition-smooth);
}

.btn-outline-gold:hover {
  background: var(--color-sand-muted);
  color: #fff !important;
  border-color: var(--color-sand-gold-hover);
}

.badge-gold {
  background: var(--color-sand-muted);
  color: var(--color-sand-gold);
  border: 1px solid rgba(197, 160, 89, 0.4);
  padding-inline: 0.85rem;
  padding-block: 0.35rem;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.5px;
}

/* Language Selector Dropdown */
.lang-selector-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--color-carbon-border);
  color: #fff;
  border-radius: 6px;
  padding-inline: 0.85rem;
  padding-block: 0.45rem;
  font-size: 0.9rem;
  font-weight: 600;
}

/* Hero Carousel */
.banner-slider-wrapper {
  position: relative;
  background: var(--color-fairway-noir);
}

.mainHeroSwiper .swiper-slide {
  height: 85vh;
  min-height: 620px;
}

.hero-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 29, 22, 0.45) 0%, rgba(10, 29, 22, 0.92) 100%);
  z-index: 2;
  transition: background 0.3s ease, backdrop-filter 0.3s ease;
}

.hero-clean-hdr h1, .hero-clean-hdr .display-4 {
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.95), 0 2px 4px rgba(0, 0, 0, 0.9);
}
.hero-clean-hdr p.lead {
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9);
}
.hero-frosted-glass-box {
  transition: var(--transition-smooth);
}
@media (max-width: 768px) {
  .mainHeroSwiper .swiper-slide {
    height: 82vh;
    min-height: 560px;
  }

  .mainHeroSwiper .swiper-slide img {
    object-position: var(--pos-x-mobile, var(--mobile-pos-x, 80%)) var(--pos-y-mobile, var(--mobile-pos-y, 35%)) !important;
  }

  /* Ensure directional overlay transitions into a clean bottom-weighted wash on mobile */
  .hero-slide-overlay {
    background: linear-gradient(180deg, rgba(10, 29, 22, 0.2) 0%, rgba(10, 29, 22, 0.65) 45%, rgba(10, 29, 22, 0.94) 100%) !important;
  }

  .hero-slide-overlay.has-frosted-glass {
    background: rgba(10, 29, 22, 0.35) !important;
  }

  .mainHeroSwiper .container {
    padding-inline: 1.25rem;
    align-items: flex-end !important;
    padding-bottom: 3.5rem !important;
  }

  .mainHeroSwiper h1,
  .mainHeroSwiper .display-4 {
    font-size: 1.65rem !important;
    line-height: 1.35 !important;
    letter-spacing: -0.01em !important;
    margin-bottom: 0.65rem !important;
  }

  .mainHeroSwiper p.lead {
    font-size: 0.88rem !important;
    line-height: 1.6 !important;
    margin-bottom: 1.15rem !important;
    max-width: 100% !important;
    opacity: 0.95 !important;
  }

  .mainHeroSwiper .badge {
    font-size: 0.72rem !important;
    padding: 0.35rem 0.75rem !important;
    margin-bottom: 0.65rem !important;
  }

  .mainHeroSwiper .btn {
    padding: 0.55rem 1.1rem !important;
    font-size: 0.84rem !important;
  }

  .hero-frosted-glass-box {
    padding: 1.25rem 1.25rem !important;
    max-width: 100% !important;
    border-radius: 14px !important;
  }
}

/* Stats Counter Bar */
.stats-strip {
  background: #081611;
  border-top: 1px solid rgba(197, 160, 89, 0.15);
  border-bottom: 1px solid rgba(197, 160, 89, 0.15);
  padding-block: 2.2rem;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--color-sand-gold);
  line-height: 1;
  margin-bottom: 0.35rem;
  font-feature-settings: 'tnum' on;
}

.stat-label {
  font-size: 0.92rem;
  color: var(--color-text-muted);
  font-weight: 600;
}

/* Dynamic Cards Grid */
.golf-card {
  background: var(--color-carbon-card);
  border: 1px solid var(--color-carbon-border);
  border-radius: 12px;
  padding: 1.85rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.golf-card::before {
  content: '';
  position: absolute;
  top: 0;
  inset-inline-start: 0;
  width: 100%;
  height: 3px;
  background: transparent;
  transition: var(--transition-smooth);
}

.golf-card:hover {
  transform: translateY(-6px);
  border-color: rgba(197, 160, 89, 0.4);
  box-shadow: var(--shadow-card);
}

.golf-card:hover::before {
  background: linear-gradient(90deg, var(--color-sand-gold), transparent);
}

.golf-card .card-icon {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  background: rgba(197, 160, 89, 0.1);
  border: 1px solid rgba(197, 160, 89, 0.25);
  color: var(--color-sand-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

/* Package Pricing Cards */
.package-card {
  background: linear-gradient(180deg, #131A17 0%, #0D1411 100%);
  border: 1px solid var(--color-carbon-border);
  border-radius: 16px;
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  transition: var(--transition-smooth);
}

.package-card.featured {
  border-color: var(--color-sand-gold);
  box-shadow: 0 10px 40px rgba(197, 160, 89, 0.2);
}

.package-card.featured::after {
  content: '';
  position: absolute;
  top: 0;
  inset-inline-start: 15%;
  inset-inline-end: 15%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-sand-gold), transparent);
}

.package-card:hover {
  transform: translateY(-8px);
  border-color: var(--color-sand-gold);
}

.package-price {
  font-size: 2.25rem;
  font-weight: 900;
  color: #fff;
  margin-block: 1.25rem;
}

.package-features-list {
  list-style: none;
  padding: 0;
  margin-block: 1.5rem;
  flex-grow: 1;
}

.package-features-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  font-size: 0.95rem;
  color: rgba(249, 250, 248, 0.85);
}

.package-features-list li i {
  color: var(--color-sand-gold);
  font-size: 1.1rem;
}

/* Bi-directional (Bidi) Adjustments */
[dir="rtl"] .bi-arrow-right,
[dir="rtl"] .bi-arrow-right-circle,
[dir="rtl"] .bi-arrow-right-circle-fill {
  transform: scaleX(-1);
}

/* Footer */
.footer-golfly {
  background: #050D0A;
  border-top: 1px solid rgba(197, 160, 89, 0.15);
  padding-top: 4.5rem;
  padding-bottom: 2.5rem;
}

/* ==========================================================================
   Editorial Bio Collage (Option A)
   ========================================================================== */
.bio-editorial-section {
  position: relative;
  background: radial-gradient(circle at 80% 20%, rgba(26, 60, 47, 0.25) 0%, transparent 65%),
              linear-gradient(180deg, #0A1D16 0%, #06140F 100%);
  padding-block: 5.5rem;
  overflow: hidden;
}

.bio-collage-container {
  position: relative;
  padding-inline: 1rem;
}

.bio-hero-portrait {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 2px solid rgba(197, 160, 89, 0.4);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
  background: #081611;
  transition: var(--transition-smooth);
}

.bio-hero-portrait img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.bio-hero-portrait:hover img {
  transform: scale(1.03);
}

.bio-floating-thumb {
  position: absolute;
  border-radius: 14px;
  overflow: hidden;
  border: 2px solid var(--color-sand-gold);
  box-shadow: 0 20px 35px rgba(0, 0, 0, 0.65);
  background: #0A1D16;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  z-index: 4;
}

.bio-floating-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bio-floating-thumb:hover {
  transform: translateY(-5px) scale(1.04);
  box-shadow: 0 25px 45px rgba(197, 160, 89, 0.35);
}

/* Positional variants for thumbs */
.bio-thumb-tee {
  width: 170px;
  height: 170px;
  bottom: -25px;
  inset-inline-start: -25px;
}

.bio-thumb-fairway {
  width: 150px;
  height: 190px;
  top: 30px;
  inset-inline-end: -25px;
}

.bio-thumb-putting {
  width: 140px;
  height: 140px;
  bottom: 40px;
  inset-inline-end: -20px;
}

.bio-floating-badge {
  position: absolute;
  top: 25px;
  inset-inline-start: 15px;
  background: rgba(10, 29, 22, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(197, 160, 89, 0.45);
  border-radius: 50px;
  padding: 0.55rem 1.15rem;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  z-index: 5;
}

.bio-floating-badge i {
  color: var(--color-sand-gold);
}

.bio-quote-card {
  background: rgba(19, 26, 23, 0.7);
  border: 1px solid rgba(197, 160, 89, 0.2);
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  margin-block: 1.5rem;
  position: relative;
  backdrop-filter: blur(8px);
}

.bio-quote-card::before {
  content: '"';
  position: absolute;
  top: -10px;
  inset-inline-start: 15px;
  font-size: 3.5rem;
  line-height: 1;
  color: rgba(197, 160, 89, 0.25);
  font-family: Georgia, serif;
}

.bio-signature-script {
  font-family: 'Brush Script MT', cursive, 'Vazirmatn';
  font-size: 1.75rem;
  color: var(--color-sand-gold);
  letter-spacing: 0.05em;
}

/* ==========================================================================
   Edge-to-Edge Panoramic Golf Course Section
   ========================================================================== */
.edge-to-edge-course {
  position: relative;
  width: 100%;
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: #050D0A;
}

.edge-to-edge-course-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transform: scale(1.02);
  transition: transform 10s ease;
}

.edge-to-edge-course:hover .edge-to-edge-course-bg {
  transform: scale(1.08);
}

.edge-to-edge-course-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(10, 29, 22, 0.6) 0%, rgba(5, 13, 10, 0.88) 100%),
              linear-gradient(180deg, rgba(10, 29, 22, 0.5) 0%, rgba(6, 20, 15, 0.95) 100%);
  z-index: 2;
}

.edge-to-edge-course-content {
  position: relative;
  z-index: 5;
  max-width: 860px;
  text-align: center;
  padding: 4rem 1.5rem;
}

.edge-to-edge-quote {
  font-size: 1.85rem;
  line-height: 1.65;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.01em;
  margin-bottom: 1.5rem;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.7);
}

.edge-to-edge-quote .text-gold {
  color: var(--color-sand-gold) !important;
}

/* Card Image Header */
.golf-card-thumb {
  width: 100%;
  height: 180px;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(197, 160, 89, 0.15);
}

.golf-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.golf-card:hover .golf-card-thumb img {
  transform: scale(1.08);
}

