/* ==========================================================================
   BAKOBABS INVESTMENT LIMITED - Corporate & Industrial Design System
   Color Palette:
   - Primary Gold: #D4AF37 / #C9A227
   - Warm Amber: #F2A81D
   - Cream Highlight: #F5E9C8
   - Dark Base: #121417 / #1A1A1A / #0E1012
   - Light Neutral: #FAF9F6 / #FFFFFF / #F0EFEA
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  /* Brand Colors */
  --gold-primary: #D4AF37;
  --gold-dark: #C9A227;
  --gold-deep: #A47D1C;
  --gold-light: #E7C86A;
  --amber-warm: #F2A81D;
  --amber-dark: #D4880B;
  --cream-highlight: #F5E9C8;
  --cream-soft: #FDFBF7;

  /* Neutrals */
  --bg-dark: #121417;
  --bg-dark-card: #1A1D22;
  --bg-dark-elevated: #22262D;
  --bg-dark-deep: #0B0D0F;

  --bg-light: #FAF9F6;
  --bg-light-surface: #FFFFFF;
  --bg-light-muted: #F1EFEA;

  --text-dark-primary: #0F172A;
  --text-dark-secondary: #334155;
  --text-dark-muted: #475569;

  --text-light-primary: #FFFFFF;
  --text-light-secondary: #E2E8F0;
  --text-light-muted: #CBD5E1;

  --border-gold-subtle: rgba(212, 175, 55, 0.25);
  --border-gold-glow: rgba(242, 168, 29, 0.4);
  --border-dark: #2A2F37;
  --border-light: #E5E4DE;

  /* Typography */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Layout */
  --container-max: 1240px;
  --container-narrow: 920px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.12);
  --shadow-gold: 0 4px 20px rgba(212, 175, 55, 0.25);
}

/* Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark-primary);
  background-color: var(--bg-light);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.dark-theme {
  color: var(--text-light-primary);
  background-color: var(--bg-dark);
}

/* Typography Presets */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: inherit;
}

h1 {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.85rem, 3.5vw, 2.75rem);
}

h3 {
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
}

h4 {
  font-size: 1.2rem;
}

p {
  margin-bottom: 1rem;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* Utility Containers */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(1.25rem, 3vw, 2rem);
  padding-right: clamp(1.25rem, 3vw, 2rem);
}

.container-narrow {
  max-width: var(--container-narrow);
}

.section {
  padding-top: clamp(4rem, 8vw, 7rem);
  padding-bottom: clamp(4rem, 8vw, 7rem);
}

.section-compact {
  padding-top: clamp(2.5rem, 5vw, 4rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-dark {
  background-color: var(--bg-dark);
  color: var(--text-light-primary);
  position: relative;
}

.section-dark-alt {
  background-color: var(--bg-dark-deep);
  color: var(--text-light-primary);
}

.section-light-alt {
  background-color: var(--bg-light-muted);
}

/* Section Header Component */
.section-header {
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-header.text-center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  max-width: 760px;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold-dark);
  margin-bottom: 0.75rem;
}

.section-dark .section-eyebrow {
  color: var(--amber-warm);
}

.section-title {
  margin-bottom: 1rem;
}

.section-desc {
  font-size: clamp(1.05rem, 1.2vw, 1.2rem);
  color: var(--text-dark-secondary);
  max-width: 680px;
}

.section-dark .section-desc {
  color: var(--text-light-secondary);
}

/* Gold Gradient Text */
.text-gold-gradient {
  background: linear-gradient(135deg, #F5E9C8 0%, #D4AF37 45%, #F2A81D 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gold-solid {
  color: var(--gold-dark);
}

.section-dark .text-gold-solid {
  color: var(--gold-primary);
}

/* ==========================================================================
   Header & Navbar
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: background-color var(--transition-normal),
              box-shadow var(--transition-normal),
              padding var(--transition-normal),
              backdrop-filter var(--transition-normal);
  padding: 1.1rem 0;
  background-color: transparent;
}

.site-header.scrolled {
  background-color: rgba(18, 20, 23, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  padding: 0.75rem 0;
}

.site-header.header-light:not(.scrolled) {
  background-color: rgba(250, 249, 246, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  z-index: 1001;
}

.brand-logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.brand-title-wrap {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #FFFFFF;
  line-height: 1.1;
}

.site-header.header-light:not(.scrolled) .brand-name {
  color: var(--text-dark-primary);
}

.brand-sub {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber-warm);
}

/* Nav Links */
.main-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

.nav-link {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 500;
  color: #E2E8F0;
  position: relative;
  padding: 0.35rem 0;
}

.site-header.header-light:not(.scrolled) .nav-link {
  color: var(--text-dark-primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-primary), var(--amber-warm));
  transition: width var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
  color: var(--gold-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Mobile Toggle */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: #FFFFFF;
  z-index: 1001;
}

.site-header.header-light:not(.scrolled) .mobile-nav-toggle {
  color: var(--text-dark-primary);
}

.hamburger {
  width: 24px;
  height: 18px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  background-color: currentColor;
  border-radius: 2px;
  transition: transform var(--transition-normal), opacity var(--transition-normal);
}

.mobile-nav-toggle[aria-expanded="true"] .hamburger span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.mobile-nav-toggle[aria-expanded="true"] .hamburger span:nth-child(2) {
  opacity: 0;
}

.mobile-nav-toggle[aria-expanded="true"] .hamburger span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Buttons & Badges */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.75rem 1.65rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-dark) 100%);
  color: #121417;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #E6C454 0%, var(--gold-primary) 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.45);
  color: #0E1012;
}

.btn-outline-gold {
  background: transparent;
  border-color: var(--gold-primary);
  color: var(--gold-primary);
}

.btn-outline-gold:hover {
  background: rgba(212, 175, 55, 0.15);
  color: #FFFFFF;
  border-color: var(--amber-warm);
}

.btn-outline-dark {
  background: transparent;
  border-color: var(--border-dark);
  color: var(--text-light-primary);
}

.btn-outline-dark:hover {
  border-color: var(--gold-primary);
  color: var(--gold-primary);
  background: rgba(255, 255, 255, 0.04);
}

.btn-light {
  background-color: var(--bg-light-surface);
  color: var(--text-dark-primary);
  border: 1px solid var(--border-light);
}

.btn-light:hover {
  border-color: var(--gold-dark);
  color: var(--gold-deep);
}

.btn-sm {
  font-size: 0.85rem;
  padding: 0.5rem 1rem;
}

.btn-lg {
  font-size: 1.05rem;
  padding: 0.95rem 2.2rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.badge-gold {
  background: rgba(212, 175, 55, 0.15);
  color: var(--gold-primary);
  border: 1px solid rgba(212, 175, 55, 0.35);
}

.badge-amber {
  background: rgba(242, 168, 29, 0.15);
  color: var(--amber-warm);
  border: 1px solid rgba(242, 168, 29, 0.35);
}

.badge-dark {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-light-secondary);
  border: 1px solid var(--border-dark);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  background-color: var(--bg-dark-deep);
  color: #FFFFFF;
  padding: 7.5rem 0 5rem;
  overflow: hidden;
}

.hero-media-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-media-wrapper img,
.hero-media-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(14, 16, 18, 0.82) 0%,
    rgba(18, 20, 23, 0.72) 40%,
    rgba(14, 16, 18, 0.95) 100%
  );
  z-index: 2;
}

.hero-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(212, 175, 55, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 860px;
}

.hero-badge {
  margin-bottom: 1.5rem;
}

.hero-title {
  margin-bottom: 1.5rem;
  font-weight: 800;
  line-height: 1.12;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 1.4vw, 1.35rem);
  line-height: 1.6;
  color: #E2E8F0;
  margin-bottom: 2.25rem;
  max-width: 740px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: center;
  margin-bottom: 3.5rem;
}

/* Page Banner Hero (for subpages) */
.page-banner {
  position: relative;
  background-color: var(--bg-dark);
  color: #FFFFFF;
  padding: clamp(7.5rem, 12vw, 9.5rem) 0 clamp(3.5rem, 6vw, 5rem);
  overflow: hidden;
}

.page-banner-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.3;
}

.page-banner-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-banner-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, rgba(18, 20, 23, 0.8) 0%, rgba(18, 20, 23, 0.98) 100%);
}

.page-banner-content {
  position: relative;
  z-index: 3;
}

.page-banner-title {
  margin-bottom: 0.75rem;
}

.page-banner-desc {
  font-size: clamp(1.1rem, 1.3vw, 1.25rem);
  color: var(--text-light-secondary);
  max-width: 720px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-light-muted);
  margin-bottom: 1rem;
}

.breadcrumb a {
  color: var(--amber-warm);
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* ==========================================================================
   Highlights & Metrics Strip
   ========================================================================== */
.highlights-strip {
  background-color: var(--bg-dark-card);
  border-top: 1px solid var(--border-gold-subtle);
  border-bottom: 1px solid var(--border-gold-subtle);
  padding: 2.25rem 0;
  position: relative;
  z-index: 10;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.metric-card {
  display: flex;
  flex-direction: column;
  border-left: 2px solid var(--gold-primary);
  padding-left: 1.25rem;
}

.metric-number {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3vw, 2.75rem);
  font-weight: 800;
  line-height: 1;
  color: #FFFFFF;
  margin-bottom: 0.35rem;
}

.metric-number span {
  color: var(--amber-warm);
}

.metric-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--cream-highlight);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.2rem;
}

.metric-sub {
  font-size: 0.8rem;
  color: var(--text-light-muted);
  line-height: 1.35;
}

/* ==========================================================================
   Grids & Content Cards
   ========================================================================== */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

@media (max-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
}

/* Card Modern System */
.card {
  background-color: var(--bg-light-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
  color: var(--text-dark-primary);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold-light);
}

.card-dark {
  background-color: var(--bg-dark-card);
  border: 1px solid var(--border-dark);
  color: #FFFFFF;
}

.card-dark:hover {
  border-color: var(--border-gold-glow);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(212, 175, 55, 0.15);
}

.card-body {
  padding: 1.75rem;
}

.card-title {
  margin-bottom: 0.75rem;
  font-size: 1.3rem;
  color: inherit;
}

.card-dark .card-title {
  color: #FFFFFF;
}

.card-dark p {
  color: var(--text-light-secondary);
}

.card-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background-color: var(--bg-dark-elevated);
}

.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.card:hover .card-img-wrap img {
  transform: scale(1.05);
}

/* Mineral Card Feature */
.mineral-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.mineral-symbol {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background-color: rgba(18, 20, 23, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--gold-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--gold-primary);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.95rem;
  line-height: 1;
  z-index: 2;
}

.mineral-symbol span {
  font-size: 0.6rem;
  font-weight: 500;
  color: var(--cream-highlight);
}

.mineral-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--border-dark);
}

.mineral-spec-tag {
  font-size: 0.78rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  background-color: #F1F5F9;
  color: #1E293B;
  border: 1px solid #CBD5E1;
  font-weight: 500;
}

.section-dark .mineral-spec-tag,
.card-dark .mineral-spec-tag {
  background-color: rgba(255, 255, 255, 0.08);
  color: #E2E8F0;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Feature Row (Split Media + Content) */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
  margin-bottom: clamp(3.5rem, 6vw, 6rem);
}

.feature-row:last-child {
  margin-bottom: 0;
}

.feature-row.reverse {
  direction: rtl;
}

.feature-row.reverse > * {
  direction: ltr;
}

@media (max-width: 900px) {
  .feature-row,
  .feature-row.reverse {
    grid-template-columns: 1fr;
    gap: 2rem;
    direction: ltr;
  }
}

.feature-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-gold-subtle);
}

.feature-media img,
.feature-media video {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.feature-media.leadership-media {
  max-width: 440px;
  margin: 0 auto;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.feature-media.leadership-media:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15), 0 0 25px rgba(212, 175, 55, 0.2);
}

.feature-media.leadership-media img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center;
}

.feature-media.banner-media {
  background-color: #0E1012;
  cursor: pointer;
}

.feature-media.banner-media img {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  display: block;
  transition: transform var(--transition-normal);
}

.feature-media.banner-media:hover img {
  transform: scale(1.02);
}

/* Pillars / Values Grid */
.pillar-card {
  padding: 2.25rem;
  background-color: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-md);
  position: relative;
  transition: all var(--transition-normal);
  color: #0F172A;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

.pillar-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background: linear-gradient(180deg, var(--gold-primary), var(--amber-warm));
  transition: height var(--transition-normal);
  border-radius: var(--radius-md) 0 0 var(--radius-md);
}

.pillar-card:hover {
  border-color: var(--gold-primary);
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(212, 175, 55, 0.18);
}

.pillar-card:hover::before {
  height: 100%;
}

.pillar-card .card-title {
  color: #0F172A;
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.85rem;
}

.pillar-card p {
  color: #334155;
  font-size: 0.95rem;
  line-height: 1.65;
}

.pillar-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid rgba(212, 175, 55, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #92400E;
  margin-bottom: 1.25rem;
  font-size: 1.4rem;
}

/* When .pillar-card is placed in dark sections */
.section-dark .pillar-card,
.section-dark-alt .pillar-card,
.pillar-card-dark {
  background-color: var(--bg-dark-card);
  border-color: var(--border-dark);
  color: var(--text-light-primary);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.section-dark .pillar-card .card-title,
.section-dark-alt .pillar-card .card-title,
.pillar-card-dark .card-title {
  color: #FFFFFF;
}

.section-dark .pillar-card p,
.section-dark-alt .pillar-card p,
.pillar-card-dark p {
  color: #E2E8F0;
}

.section-dark .pillar-card .pillar-icon,
.section-dark-alt .pillar-card .pillar-icon,
.pillar-card-dark .pillar-icon {
  background: rgba(212, 175, 55, 0.15);
  border-color: rgba(212, 175, 55, 0.35);
  color: var(--gold-primary);
}

.section-dark .pillar-card:hover,
.section-dark-alt .pillar-card:hover,
.pillar-card-dark:hover {
  border-color: var(--border-gold-glow);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(212, 175, 55, 0.15);
}

/* Official Credentials Certificate Display */
.cert-card {
  background-color: var(--bg-light-surface);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  color: var(--text-dark-primary);
}

.cert-card:hover {
  border-color: var(--gold-dark);
  box-shadow: var(--shadow-gold);
}

.cert-card-header {
  padding: 1rem 1.25rem;
  background-color: var(--bg-dark);
  color: #FFFFFF;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cert-card-body {
  padding: 1.25rem;
}

.cert-card h4 {
  color: #0F172A;
}

.cert-card p {
  color: #334155;
}

.cert-preview-img {
  width: 100%;
  aspect-ratio: 1.35;
  object-fit: contain;
  background-color: #F8F9FA;
  border: 1px solid #E5E7EB;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: transform var(--transition-fast);
}

.cert-preview-img:hover {
  transform: scale(1.02);
}

/* Info Table / Specs */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid #CBD5E1;
  background-color: #FFFFFF;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.95rem;
  background-color: #FFFFFF;
}

.data-table th {
  background-color: #111827;
  color: #F5E9C8;
  font-family: var(--font-heading);
  font-weight: 700;
  padding: 1.15rem 1.35rem;
  border-bottom: 2px solid var(--gold-primary);
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.data-table td {
  padding: 1.15rem 1.35rem;
  border-bottom: 1px solid #E2E8F0;
  color: #1E293B;
  font-weight: 500;
  line-height: 1.55;
}

.data-table td strong {
  color: #92400E;
  font-weight: 700;
}

.data-table tr:nth-child(even) td {
  background-color: #F8FAFC;
}

.data-table tr:hover td {
  background-color: #EEF2F6;
}

/* When table is in dark section */
.section-dark .table-responsive,
.section-dark-alt .table-responsive {
  background-color: var(--bg-dark-card);
  border-color: var(--border-dark);
}

.section-dark .data-table,
.section-dark-alt .data-table {
  background-color: var(--bg-dark-card);
}

.section-dark .data-table td,
.section-dark-alt .data-table td {
  color: #E2E8F0;
  border-bottom-color: var(--border-dark);
}

.section-dark .data-table td strong,
.section-dark-alt .data-table td strong {
  color: var(--gold-primary);
}

.section-dark .data-table tr:nth-child(even) td,
.section-dark-alt .data-table tr:nth-child(even) td {
  background-color: rgba(255, 255, 255, 0.02);
}

.section-dark .data-table tr:hover td,
.section-dark-alt .data-table tr:hover td {
  background-color: rgba(255, 255, 255, 0.06);
}

/* ==========================================================================
   Gallery & Lightbox
   ========================================================================== */
.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  margin-bottom: 3rem;
}

.filter-btn {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.55rem 1.25rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-dark);
  color: var(--text-light-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn:hover {
  border-color: var(--gold-primary);
  color: #FFFFFF;
}

.filter-btn.active {
  background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-dark) 100%);
  color: #121417;
  border-color: var(--gold-primary);
  box-shadow: 0 2px 10px rgba(212, 175, 55, 0.3);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background-color: var(--bg-dark-card);
  border: 1px solid var(--border-dark);
  cursor: pointer;
  aspect-ratio: 4 / 3;
  transition: all var(--transition-normal);
}

.gallery-item:hover {
  border-color: var(--gold-primary);
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.gallery-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.gallery-item:hover .gallery-thumb {
  transform: scale(1.08);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(14, 16, 18, 0.92) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-caption {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: #FFFFFF;
  margin-bottom: 0.25rem;
}

.gallery-tag {
  font-size: 0.75rem;
  color: var(--amber-warm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.gallery-icon-expand {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: rgba(18, 20, 23, 0.8);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-primary);
  font-size: 0.9rem;
}

/* Lightbox Modal (<dialog>) */
dialog#lightboxDialog {
  position: fixed;
  inset: 0;
  margin: auto;
  border: none;
  background: transparent;
  padding: 0;
  max-width: 90vw;
  max-height: 90vh;
  overflow: visible;
  outline: none;
}

dialog#lightboxDialog::backdrop {
  background-color: rgba(10, 12, 14, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.lightbox-content {
  position: relative;
  background-color: var(--bg-dark-card);
  border: 1px solid var(--border-gold-subtle);
  border-radius: var(--radius-md);
  padding: 1rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  max-width: 1000px;
  max-height: 88vh;
}

.lightbox-media-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: #000000;
  border-radius: var(--radius-sm);
  max-height: 72vh;
}

.lightbox-media-wrap img {
  max-width: 100%;
  max-height: 72vh;
  object-fit: contain;
}

.lightbox-media-wrap video {
  max-width: 100%;
  max-height: 72vh;
}

.lightbox-caption-wrap {
  padding: 0.85rem 0.5rem 0.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #FFFFFF;
}

.lightbox-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
}

.lightbox-close-btn {
  position: absolute;
  top: -16px;
  right: -16px;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background-color: var(--gold-primary);
  color: #121417;
  border: 2px solid #121417;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-fast);
  z-index: 10;
}

.lightbox-close-btn:hover {
  transform: scale(1.1);
  background-color: var(--amber-warm);
}

/* Video Showcase Cards */
.video-card {
  background-color: var(--bg-dark-card);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-normal);
}

.video-card:hover {
  border-color: var(--gold-primary);
}

.video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: #000000;
}

.video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-info {
  padding: 1.25rem;
}

.video-title {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
  color: #FFFFFF;
}

.video-desc {
  font-size: 0.88rem;
  color: var(--text-light-muted);
}

/* ==========================================================================
   Forms & Inputs
   ========================================================================== */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-dark-primary);
}

.form-dark .form-label {
  color: var(--text-light-primary);
}

.form-control {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  background-color: var(--bg-light-surface);
  color: var(--text-dark-primary);
  font-size: 0.95rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-dark .form-control {
  background-color: var(--bg-dark-elevated);
  border-color: var(--border-dark);
  color: #FFFFFF;
}

.form-control:focus {
  outline: none;
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

textarea.form-control {
  min-height: 130px;
  resize: vertical;
}

.form-status {
  padding: 1rem;
  border-radius: var(--radius-sm);
  margin-top: 1rem;
  font-size: 0.95rem;
  display: none;
}

.form-status.success {
  display: block;
  background-color: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.4);
  color: #86efac;
}

/* Notice & Placeholder Banners */
.placeholder-notice {
  font-size: 0.78rem;
  color: var(--amber-dark);
  background: rgba(242, 168, 29, 0.12);
  border: 1px dashed var(--amber-warm);
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-sm);
  margin-top: 0.5rem;
  display: inline-block;
}

/* ==========================================================================
   Call to Action (CTA) Banner
   ========================================================================== */
.cta-banner {
  background: linear-gradient(135deg, #1A1D22 0%, #121417 100%);
  border: 1px solid var(--border-gold-subtle);
  border-radius: var(--radius-lg);
  padding: clamp(2.5rem, 5vw, 4.5rem);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.cta-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2.5rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

@media (max-width: 860px) {
  .cta-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .cta-actions {
    justify-content: center;
  }
}

.cta-title {
  color: #FFFFFF;
  margin-bottom: 0.75rem;
}

.cta-desc {
  color: var(--text-light-secondary);
  font-size: 1.05rem;
  margin-bottom: 0;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: flex-end;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background-color: var(--bg-dark-deep);
  color: var(--text-light-secondary);
  border-top: 1px solid var(--border-dark);
  padding-top: clamp(4rem, 6vw, 5.5rem);
  padding-bottom: 2rem;
  font-size: 0.92rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1.4fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

@media (max-width: 992px) {
  .footer-top {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }
}

@media (max-width: 580px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.footer-brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-logo-img {
  height: 44px;
  width: auto;
}

.footer-col-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-col-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 28px;
  height: 2px;
  background: var(--gold-primary);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-link {
  color: var(--text-light-muted);
  transition: color var(--transition-fast), transform var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.footer-link:hover {
  color: var(--gold-primary);
  transform: translateX(3px);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  color: var(--text-light-muted);
}

.footer-contact-item svg {
  flex-shrink: 0;
  margin-top: 0.25rem;
  color: var(--amber-warm);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.82rem;
  color: var(--text-light-muted);
}

.footer-socials {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.social-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light-secondary);
  transition: all var(--transition-fast);
}

.social-icon-btn:hover {
  background: var(--gold-primary);
  border-color: var(--gold-primary);
  color: #121417;
  transform: translateY(-2px);
}

/* ==========================================================================
   Responsive Navigation Drawer
   ========================================================================== */
@media (max-width: 920px) {
  .mobile-nav-toggle {
    display: block;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 380px;
    height: 100vh;
    background-color: var(--bg-dark);
    border-left: 1px solid var(--border-gold-subtle);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.6);
    flex-direction: column;
    align-items: flex-start;
    padding: 6rem 2rem 2rem;
    gap: 2rem;
    transition: right var(--transition-normal);
    z-index: 1000;
    overflow-y: auto;
  }

  .main-nav.open {
    right: 0;
  }

  .nav-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    width: 100%;
  }

  .nav-link {
    font-size: 1.15rem;
    width: 100%;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-dark);
  }

  .nav-actions {
    width: 100%;
    flex-direction: column;
  }

  .nav-actions .btn {
    width: 100%;
  }
}

/* Animations */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .fade-up {
    opacity: 1 !important;
    transform: none !important;
  }
}
