/* ==========================================================================
   KSA Sub-Page — The Kingdom
   Extends style.css with KSA-specific components
   ========================================================================== */

/* ---------- PORTFOLIO BREADCRUMB NAV ---------- */
.portfolio-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 14px 0;
  background: rgba(26,23,20,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(200,165,94,0.1);
}
.portfolio-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.portfolio-breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.5px;
}
.breadcrumb-home {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color 0.3s;
  font-weight: 500;
}
.breadcrumb-home:hover { color: var(--gold); }
.breadcrumb-sep {
  color: rgba(255,255,255,0.3);
  font-size: 14px;
}
.breadcrumb-current {
  color: var(--gold);
  font-weight: 600;
}
.portfolio-back {
  font-family: var(--font-sans);
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  letter-spacing: 0.5px;
  transition: color 0.3s, transform 0.3s;
}
.portfolio-back:hover {
  color: var(--white);
  transform: translateX(-2px);
  display: inline-block;
}

/* Adjust body for fixed nav */
.ksa-page { padding-top: 0; }

/* ---------- KSA HERO ---------- */
.ksa-hero {
  position: relative;
  height: 100vh;
  min-height: 680px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: var(--white);
}
.ksa-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}
.ksa-hero-bg img,
.ksa-hero-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Subtle zoom only on still image (video already has camera motion) */
.ksa-hero-bg:not(.ksa-hero-video) img {
  animation: slow-zoom 20s ease-in-out infinite alternate;
}
@keyframes slow-zoom {
  0% { transform: scale(1); }
  100% { transform: scale(1.08); }
}
.ksa-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(to bottom,
    rgba(26,23,20,0.55) 0%,
    rgba(26,23,20,0.25) 40%,
    rgba(26,23,20,0.7) 100%);
}
.ksa-hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 900px;
  padding: 0 24px;
}
/* KSA hero typography — mirrors the homepage hero pattern (3-line credit
   block + Playfair brand block + italic tagline). */
.ksa-hero-eyebrow,
.ksa-hero-presents {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
  margin: 0;
}
.ksa-hero-eyebrow { margin-bottom: 14px; }
.ksa-hero-presents { margin-bottom: 44px; }
.ksa-hero-title {
  font-family: var(--font-serif);
  font-size: clamp(44px, 7vw, 80px);
  font-weight: 500;
  color: var(--white);
  line-height: 1.05;
  margin-bottom: 14px;
  text-shadow: 0 4px 40px rgba(0,0,0,0.4);
}
.ksa-hero-title span {
  color: var(--gold);
  font-weight: 600;
}
.ksa-hero-tagline {
  font-family: var(--font-serif);
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0.3px;
  color: rgba(255,255,255,0.9);
  margin-bottom: 0;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
/* Override the cinematic-entrance opacity:0 default since KSA doesn't have
   the .hero.visible parent that fades the scroll button in. */
.ksa-hero-scroll-btn {
  opacity: 1;
  margin-top: 48px;
}
.ksa-hero-scroll {
  position: absolute;
  bottom: 48px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 50px;
  background: rgba(255,255,255,0.2);
  overflow: hidden;
}
.ksa-hero-scroll span {
  display: block;
  width: 100%;
  height: 50%;
  background: var(--gold);
  animation: scroll-hint 2.4s ease-in-out infinite;
}
@keyframes scroll-hint {
  0%, 100% { transform: translateY(-100%); }
  50% { transform: translateY(100%); }
}

/* ---------- KSA MISSION / VISION TEXT ---------- */
.ksa-mission-text {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}
.ksa-mission-text .section-desc-secondary {
  max-width: none;
  margin-bottom: 20px;
}
.ksa-mission-text .section-desc-secondary:last-child {
  margin-bottom: 0;
}

/* ---------- VISION 2030 STATS ---------- */
.ksa-stats {
  margin-top: 36px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 36px;
}
.ksa-stat {
  display: flex;
  flex-direction: column;
}
.ksa-stat-num {
  font-family: var(--font-serif);
  font-size: 38px;
  font-weight: 500;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 6px;
}
.ksa-stat-label {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ---------- 5-COMPONENT SCOPE ---------- */
.scope-render {
  margin: 64px auto 72px;
  max-width: 1100px;
  text-align: center;
}
.scope-render img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 48px rgba(0,0,0,0.1);
  background: #F5F2ED;
}
.scope-render-caption {
  margin-top: 16px;
  font-family: var(--font-sans);
  font-size: 12px;
  color: #8A8478;
  font-style: italic;
  letter-spacing: 0.3px;
}
/* ---------- COMPONENT SECTIONS (01–05 alternating splits) ---------- */
.component-section {
  padding: 80px 0 !important;
}
.component-section + .component-section {
  padding-top: 0 !important;
}
.component-eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-link);
  margin-bottom: 18px;
  padding: 0;
  background: none;
  border: none;
  border-radius: 0;
}

/* Signature accent for Component 05 */
.component-eyebrow-signature {
  background: none;
  border: none;
  color: var(--gold-link);
  font-weight: 700;
}
.component-section.component-signature .section-title {
  background: linear-gradient(135deg, var(--dark) 0%, #6B4F2B 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

@media (max-width: 768px) {
  .component-section { padding: 56px 0 !important; }
  /* On mobile, content FIRST then image, for all 5 components. Plain column +
     the global flex `order` rule in style.css (.split-content:0 / .split-image:1)
     keeps content on top regardless of desktop orientation. */
  .component-section .split-section,
  .component-section .split-section.reverse {
    flex-direction: column;
  }
}

/* ---------- GALLERY FEATURES (legacy, no longer used but kept safe) ---------- */
.gallery-features {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.gallery-feature-eyebrow {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 1.8px;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.gallery-feature-body {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--text-body);
  line-height: 1.7;
  margin: 0;
}

/* ---------- HERITAGE GRID ---------- */
.heritage-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 300px;
  gap: 14px;
}
.heritage-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 100%;
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
  transition: transform 0.5s var(--ease), box-shadow 0.5s;
}
.heritage-item:hover {
  transform: none;
  box-shadow: 0 20px 50px rgba(0,0,0,0.12);
}
.heritage-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease), filter 0.5s;
}
.heritage-item:hover img {
  transform: scale(1.08);
  filter: brightness(1.08);
}
.heritage-item span {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 48px 20px 20px;
  background: linear-gradient(transparent, rgba(26,23,20,0.75));
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: var(--white);
}

/* ---------- VENUE CONCEPT GRID ---------- */
.venue-concept-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 48px;
}
.venue-concept-image {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(0,0,0,0.1);
}
.venue-concept-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 16/10;
}
.venue-concept-text {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.venue-concept-text .section-desc-secondary {
  max-width: none;
  margin-bottom: 16px;
}
.venue-concept-text .section-desc-secondary:last-child {
  margin-bottom: 0;
}

/* ---------- TEAM SUBHEAD ---------- */
.team-subhead {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold);
  text-align: center;
  margin-bottom: 40px;
}
.team-grid-3 {
  grid-template-columns: repeat(3, 1fr) !important;
  max-width: 1100px;
  margin: 0 auto;
}

/* ---------- TEAM PHOTO PLACEHOLDER (for KSA execs without photos) ---------- */
.team-photo-placeholder {
  background: linear-gradient(135deg, var(--gold) 0%, #8B5E3C 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.team-photo-placeholder span {
  font-family: var(--font-serif);
  font-size: 48px;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
  letter-spacing: 2px;
}

/* ---------- FOOTER PORTFOLIO NAV ---------- */
.footer-portfolio-nav {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-sans);
  font-size: 12px;
}
.footer-portfolio-nav a {
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 0.3px;
  transition: color 0.3s;
}
.footer-portfolio-nav a:hover,
.footer-portfolio-nav a.active {
  color: var(--gold);
}
.footer-sep {
  color: rgba(26,23,20,0.22);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .component-grid { grid-template-columns: repeat(2, 1fr); }
  .heritage-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid-3 { grid-template-columns: repeat(2, 1fr) !important; }
}

@media (max-width: 768px) {
  .portfolio-nav-inner { flex-direction: column; gap: 6px; align-items: flex-start; padding: 4px 0; }
  .portfolio-back { font-size: 11px; }
  .breadcrumb-current, .breadcrumb-home { font-size: 11px; }

  .ksa-hero { min-height: 540px; height: 85vh; }

  .ksa-stats { grid-template-columns: 1fr 1fr; gap: 20px; }

  .component-grid { grid-template-columns: 1fr; }
  .heritage-grid { grid-template-columns: 1fr 1fr; }

  .venue-concept-grid { grid-template-columns: 1fr; }

  .team-grid-3 { grid-template-columns: 1fr !important; gap: 48px; }

  .footer-inner { flex-direction: column; gap: 14px; text-align: center; }
  .footer-portfolio-nav { justify-content: center; }
}

@media (max-width: 480px) {
  .heritage-grid { grid-template-columns: 1fr; }
  .ksa-stat-num { font-size: 30px; }
}
