/* ============================================
   KIBAL GLOBAL GOLD TRADING — GLASSMORPHISM v3
   Premium High-End Design — Audit Fixes Applied
   ============================================ */

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

/* L1: Focus-visible for keyboard accessibility */
*:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* L8: Skip to content */
.skip-to-content {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: var(--dark);
  padding: 0.8rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  z-index: 10001;
  transition: top 0.3s ease;
}
.skip-to-content:focus { top: 1rem; color: var(--dark); }

:root {
  --dark: #060606;
  --dark-2: #0d0d0d;
  --dark-3: #151515;
  --dark-4: #1c1c1c;
  --gold: #D4AF37;
  --gold-light: #F0D672;
  --gold-dark: #A8842A;
  --gold-glow: rgba(212, 175, 55, 0.4);
  --emerald: #0D4A35;
  --emerald-light: #1A6B4A;
  --white: #FFFFFF;
  --off-white: #F5F0E8;
  --text-primary: #EDEAE4;
  --text-secondary: #A8A29E;
  --text-muted: #6B6560;
  --glass-bg: rgba(255, 255, 255, 0.06);
  --glass-bg-strong: rgba(255, 255, 255, 0.10);
  --glass-bg-hover: rgba(255, 255, 255, 0.14);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-border-strong: rgba(255, 255, 255, 0.2);
  --glass-border-hover: rgba(212, 175, 55, 0.35);
  --glass-blur: blur(24px);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --shadow-glass: 0 8px 32px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255,255,255,0.05);
  --shadow-gold: 0 4px 40px rgba(212, 175, 55, 0.2);
  --shadow-heavy: 0 20px 60px rgba(0, 0, 0, 0.6);
  --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-fast: all 0.25s ease;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--dark);
  background-image:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(212,175,55,0.04) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 100%, rgba(13,74,53,0.06) 0%, transparent 50%);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--white);
}

a { color: var(--gold); text-decoration: none; transition: var(--transition-fast); }
a:hover { color: var(--gold-light); }

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

/* --- Loading Screen --- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}
.loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--gold);
  margin-top: 2rem;
  letter-spacing: 6px;
  text-transform: uppercase;
}
.loader-bar { width: 200px; height: 2px; background: var(--dark-3); margin-top: 1.5rem; border-radius: 2px; overflow: hidden; }
.loader-bar-fill { width: 0%; height: 100%; background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-light)); transition: width 0.3s ease; }
#loader-canvas { width: 150px; height: 150px; }

/* --- Navigation --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.2rem 0;
  transition: var(--transition);
}
.navbar.scrolled {
  background: rgba(6, 6, 6, 0.9);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border-bottom: 1px solid rgba(212,175,55,0.1);
  padding: 0.7rem 0;
  box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}
.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0;
}
.nav-logo img {
  height: 48px;
  width: auto;
  display: block;
}
/* Footer logo slightly larger */
.footer-brand .nav-logo img {
  height: 64px;
}
.nav-links { display: flex; align-items: center; gap: 2.2rem; list-style: none; }
.nav-links a {
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  position: relative;
  padding: 0.3rem 0;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transition: var(--transition);
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--gold); }
.nav-links a.active::after { width: 100%; }

.nav-cta {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold), var(--gold-light));
  color: var(--dark) !important;
  padding: 0.65rem 1.6rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  box-shadow: 0 2px 15px rgba(212,175,55,0.2);
}
.nav-cta::after { display: none; }
.nav-cta:hover {
  color: var(--dark) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(212,175,55,0.35);
}

/* Mobile Menu */
.hamburger { display: none; flex-direction: column; gap: 6px; cursor: pointer; padding: 5px; z-index: 1001; }
.hamburger span { display: block; width: 28px; height: 2px; background: var(--gold); transition: var(--transition); border-radius: 2px; }
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }

/* L3: Smooth mobile menu open/close animation */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(6, 6, 6, 0.97);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}
.mobile-menu.active { opacity: 1; visibility: visible; }
.mobile-menu a { color: var(--text-primary); font-family: 'Playfair Display', serif; font-size: 1.8rem; letter-spacing: 3px; }
.mobile-menu a:hover { color: var(--gold); }

/* ============================================
   GLASS COMPONENTS — STRONG VISIBILITY
   ============================================ */
.glass-card {
  background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.03) 100%);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-glass);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
/* Top highlight edge for depth */
.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  pointer-events: none;
}
.glass-card:hover {
  background: linear-gradient(135deg, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0.05) 100%);
  border-color: var(--glass-border-hover);
  transform: translateY(-6px);
  box-shadow: var(--shadow-heavy), 0 0 40px rgba(212,175,55,0.08);
}

.glass-card-gold {
  background: linear-gradient(135deg, rgba(212,175,55,0.08) 0%, rgba(212,175,55,0.02) 100%);
  border: 1px solid rgba(212,175,55,0.18);
}
.glass-card-gold::before {
  background: linear-gradient(90deg, transparent, rgba(212,175,55,0.25), transparent);
}
.glass-card-gold:hover {
  border-color: rgba(212,175,55,0.4);
  box-shadow: var(--shadow-heavy), 0 0 50px rgba(212,175,55,0.12);
  background: linear-gradient(135deg, rgba(212,175,55,0.12) 0%, rgba(212,175,55,0.04) 100%);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2.2rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.8px;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-transform: uppercase;
  font-family: 'Inter', sans-serif;
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold), var(--gold-light));
  color: var(--dark);
  box-shadow: 0 4px 20px rgba(212,175,55,0.25);
}
.btn-gold:hover {
  color: var(--dark);
  transform: translateY(-3px);
  box-shadow: 0 8px 35px rgba(212,175,55,0.4);
}
.btn-outline {
  background: transparent;
  color: var(--gold);
  border: 2px solid rgba(212,175,55,0.5);
}
.btn-outline:hover {
  background: rgba(212,175,55,0.1);
  border-color: var(--gold);
  color: var(--gold-light);
  transform: translateY(-3px);
  box-shadow: 0 4px 20px rgba(212,175,55,0.15);
}
.btn-glass {
  background: var(--glass-bg-strong);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border-strong);
  color: var(--white);
}
.btn-glass:hover { background: var(--glass-bg-hover); border-color: var(--gold); color: var(--white); }

/* ============================================
   LAYOUT
   ============================================ */
.container { max-width: 1400px; margin: 0 auto; padding: 0 2.5rem; }
.section { padding: 8rem 0; position: relative; }
.section-sm { padding: 5rem 0; }

/* Alternating section backgrounds for depth */
.section-dark { background: var(--dark-2); }
.section-darker {
  background: var(--dark-2);
  background-image: radial-gradient(ellipse 50% 50% at 20% 50%, rgba(212,175,55,0.03) 0%, transparent 100%);
}

/* ============================================
   SECTION HEADERS
   ============================================ */
.section-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
  position: relative;
  padding-left: 3.5rem;
  font-family: 'Inter', sans-serif;
}
.section-label::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 2.5rem;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
}
.section-title {
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  margin-bottom: 1.5rem;
  color: var(--white);
  letter-spacing: -0.5px;
}
.section-title .gold { color: var(--gold); }
.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 620px;
  line-height: 1.9;
}

/* ============================================
   GRIDS
   ============================================ */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.grid-6 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }

/* ============================================
   HERO SECTION
   ============================================ */
/* ============================================
   HERO — Premium anchored layout
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  /* 1. Push content down from nav, anchor vertically */
  padding: 7rem 0 5rem;
  background: var(--dark);
}

/* Hero Background Video */
.hero-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* 6. Overlay — darken left zone for text, preserve right visuals */
.hero-video-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6,6,6,0.92) 0%, rgba(6,6,6,0.75) 35%, rgba(6,6,6,0.35) 65%, rgba(6,6,6,0.15) 100%),
    linear-gradient(180deg, rgba(6,6,6,0.5) 0%, transparent 25%, transparent 75%, rgba(6,6,6,0.95) 100%);
  z-index: 1;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 180px;
  background: linear-gradient(to top, var(--dark), transparent);
  z-index: 2;
  pointer-events: none;
}

/* Hero container override — full width so content sits LEFT */
.hero > .container {
  width: 100%;
  max-width: 100%;
  padding: 0 5% 0 6%;
}

/* 1 & 2. Text block — anchored LEFT, constrained width */
.hero-content {
  position: relative;
  z-index: 3;
  max-width: 600px;
  padding-top: 2rem;
}

/* 6. Localized text backing — subtle dark zone behind text only */
.hero-content::before {
  content: '';
  position: absolute;
  top: -2rem;
  left: -3rem;
  right: -2rem;
  bottom: -2rem;
  background: radial-gradient(ellipse at 30% 50%, rgba(6,6,6,0.4) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
}

/* 3. Title — intentional line breaks, tight leading, strong weight */
.hero-title {
  font-size: clamp(2.4rem, 4vw, 3.8rem);
  margin-bottom: 1.4rem;
  line-height: 1.12;
  letter-spacing: -0.3px;
  font-weight: 700;
  /* 8. Text shadow for readability against video */
  text-shadow: 0 2px 20px rgba(0,0,0,0.5), 0 1px 3px rgba(0,0,0,0.3);
}
/* 8. Gold highlight — slightly brighter for pop */
.hero-title .text-gold {
  color: var(--gold-light);
  text-shadow: 0 2px 20px rgba(212,175,55,0.25), 0 1px 3px rgba(0,0,0,0.3);
}

/* 4. Subtitle — tighter gap to title, consistent to buttons */
.hero-subtitle {
  font-size: clamp(0.95rem, 1.2vw, 1.05rem);
  color: var(--text-secondary);
  max-width: 480px;
  margin-bottom: 2.2rem;
  line-height: 1.85;
  font-weight: 400;
  text-shadow: 0 1px 8px rgba(0,0,0,0.4);
}

/* 5. Buttons — left-aligned under text, consistent gap */
.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

/* Badge — above title, anchored */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.65rem;
  color: var(--gold);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 1.8rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  background: rgba(212,175,55,0.08);
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  border: 1px solid rgba(212,175,55,0.15);
}
.hero-badge .dot {
  width: 7px;
  height: 7px;
  background: var(--gold);
  border-radius: 50%;
  animation: pulse-dot 2.5s ease infinite;
  box-shadow: 0 0 8px var(--gold-glow);
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 8px var(--gold-glow); }
  50% { opacity: 0.5; transform: scale(1.6); box-shadow: 0 0 16px var(--gold-glow); }
}

#hero-3d-canvas {
  position: absolute;
  right: 0;
  top: 0;
  width: 55%;
  height: 100%;
  z-index: 1;
}

/* Page Hero (inner pages) */
.page-hero {
  padding: 12rem 0 6rem;
  position: relative;
  overflow: hidden;
  text-align: center;
  background: linear-gradient(180deg, var(--dark) 0%, var(--dark-2) 100%);
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6,6,6,0.7) 0%, rgba(6,6,6,0.3) 40%, rgba(6,6,6,0.5) 70%, var(--dark-2) 100%);
  z-index: 1;
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.25;
}
/* 3D hero background canvas */
.page-hero-3d {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.page-hero-3d canvas {
  width: 100% !important;
  height: 100% !important;
}
.page-hero-content { position: relative; z-index: 2; }
.page-hero-title {
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  margin-bottom: 1.2rem;
  letter-spacing: -0.5px;
}
.page-hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ============================================
   CARD STYLES
   ============================================ */
/* M1: Standardized card padding */
.service-card {
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
}
/* H6: Unified H3 sizing */
.service-card h3, .mineral-card-body h3, .cert-card h3, .step-content h3, .testimonial-card h3 {
  font-size: 1.3rem;
}
.service-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 2rem;
  right: 2rem;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(212,175,55,0.2), transparent);
}
.service-card .card-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, rgba(212,175,55,0.15) 0%, rgba(212,175,55,0.05) 100%);
  border: 1px solid rgba(212,175,55,0.25);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  color: var(--gold);
  box-shadow: 0 4px 15px rgba(212,175,55,0.1);
}
.service-card h3 { font-size: 1.3rem; margin-bottom: 1rem; }
.service-card p { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.75; }
.service-card .card-points { list-style: none; margin-top: 1.2rem; }
.service-card .card-points li {
  color: var(--text-secondary);
  font-size: 0.9rem;
  padding: 0.4rem 0;
  padding-left: 1.5rem;
  position: relative;
}
.service-card .card-points li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-size: 0.85rem;
}

/* Mineral Card */
.mineral-card { padding: 0; overflow: hidden; }
.mineral-card-img { height: 250px; overflow: hidden; position: relative; }
.mineral-card-img::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: linear-gradient(to top, var(--dark-2), transparent);
  pointer-events: none;
}
.mineral-card-img img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); }
.mineral-card:hover .mineral-card-img img { transform: scale(1.08); }
.mineral-card-body { padding: 2rem; }
.mineral-card-body h3 { font-size: 1.35rem; margin-bottom: 0.5rem; }
.mineral-card-body .mineral-tag {
  font-size: 0.7rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 2.5px;
  margin-bottom: 1rem;
  display: block;
  font-weight: 700;
}
.mineral-card-body p { color: var(--text-secondary); font-size: 0.95rem; margin-bottom: 1.5rem; line-height: 1.7; }
.mineral-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; margin-bottom: 1.5rem; }
.mineral-spec { font-size: 0.85rem; }
.mineral-spec .spec-label { color: var(--text-muted); display: block; margin-bottom: 0.25rem; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; }
.mineral-spec .spec-value { color: var(--white); font-weight: 600; }

/* Stat Card */
.stat-card { padding: 2.5rem 2rem; text-align: center; }
.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.7rem;
  text-shadow: 0 0 30px rgba(212,175,55,0.2);
}
.stat-label { color: var(--text-secondary); font-size: 0.85rem; letter-spacing: 1.5px; text-transform: uppercase; font-weight: 500; }

/* Testimonial Card */
.testimonial-card { padding: 2.5rem; position: relative; }
.testimonial-card::before {
  content: '"';
  font-family: 'Playfair Display', serif;
  font-size: 6rem;
  color: var(--gold);
  opacity: 0.15;
  position: absolute;
  top: 0.5rem;
  left: 1.5rem;
  line-height: 1;
}
.testimonial-card p {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  color: var(--text-secondary);
  font-style: italic;
  line-height: 1.9;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}
.testimonial-author { font-size: 0.85rem; color: var(--gold); font-weight: 700; letter-spacing: 0.5px; }

/* Certification Card */
.cert-card { padding: 2.5rem; }
.cert-status {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 0.35rem 1rem;
  border-radius: 50px;
  margin-bottom: 1.2rem;
}
.cert-status.compliant { background: rgba(13, 74, 53, 0.4); color: #4ADE80; border: 1px solid rgba(74, 222, 128, 0.3); }
.cert-status.certified { background: rgba(212, 175, 55, 0.15); color: var(--gold); border: 1px solid rgba(212, 175, 55, 0.3); }
.cert-status.licensed { background: rgba(59, 130, 246, 0.15); color: #60A5FA; border: 1px solid rgba(96, 165, 250, 0.3); }
.cert-card h3 { font-size: 1.25rem; margin-bottom: 0.8rem; }
.cert-card p { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.7; }

/* Process Step */
.process-step { padding: 2rem 2.5rem; display: flex; gap: 2rem; align-items: flex-start; margin-bottom: 1.5rem; }
.step-number {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  font-weight: 700;
  background: linear-gradient(180deg, var(--gold), var(--gold-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  min-width: 60px;
}
.step-content h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.step-content p { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.7; }

/* ============================================
   TWO COLUMN LAYOUTS
   ============================================ */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.two-col-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-heavy);
}
.two-col-img img { width: 100%; height: 100%; object-fit: cover; }
.two-col-img::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(212,175,55,0.15);
  pointer-events: none;
}
.two-col-img::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: calc(var(--radius-lg) + 4px);
  background: linear-gradient(135deg, rgba(212,175,55,0.2), transparent, rgba(212,175,55,0.1));
  z-index: -1;
}

/* ============================================
   CTA SECTIONS
   ============================================ */
.cta-section {
  background:
    linear-gradient(135deg, rgba(13, 74, 53, 0.25) 0%, rgba(212, 175, 55, 0.08) 50%, rgba(13, 74, 53, 0.15) 100%);
  border-top: 1px solid rgba(212,175,55,0.12);
  border-bottom: 1px solid rgba(212,175,55,0.12);
  text-align: center;
  position: relative;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.cta-section .section-title { max-width: 750px; margin: 0 auto 1.2rem; }
.cta-section p { color: var(--text-secondary); max-width: 600px; margin: 0 auto 2.5rem; font-size: 1.1rem; line-height: 1.8; }

/* ============================================
   CONTACT FORM
   ============================================ */
.form-group { margin-bottom: 1.5rem; }
.form-group label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 0.6rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 600;
}
/* C3: Form inputs — strong visibility on dark bg */
.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  padding: 1rem 1.3rem;
  background: rgba(255,255,255,0.08);
  border: 1.5px solid rgba(255,255,255,0.18);
  border-radius: var(--radius-sm);
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  transition: var(--transition);
  outline: none;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 25px rgba(212,175,55,0.15), inset 0 0 20px rgba(212,175,55,0.04);
  background: rgba(255,255,255,0.1);
}
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--text-muted); }
/* M8: Form validation states */
.form-group input:invalid:not(:placeholder-shown) { border-color: #ef4444; }
.form-group input:valid:not(:placeholder-shown) { border-color: rgba(74, 222, 128, 0.4); }
.form-group textarea { min-height: 150px; resize: vertical; }
.form-group select option { background: var(--dark-2); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--dark-2);
  border-top: 1px solid rgba(212,175,55,0.1);
  padding: 5rem 0 2rem;
  position: relative;
}
.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212,175,55,0.3), transparent);
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-brand p { color: var(--text-secondary); font-size: 0.9rem; margin-top: 1.2rem; max-width: 320px; line-height: 1.7; }
.footer h4 {
  font-size: 0.75rem;
  margin-bottom: 1.5rem;
  color: var(--gold);
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.8rem; }
.footer-links a { color: var(--text-secondary); font-size: 0.9rem; }
.footer-links a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ============================================
   MINERALS — PREMIUM COMMODITY SHOWCASE
   ============================================ */

/* Mineral Grid */
.mineral-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.mineral-grid-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
  background: var(--dark-3);
}
.mineral-grid-card .mg-img,
.mineral-grid-card .mg-3d {
  position: absolute;
  inset: 0;
  transition: transform 0.6s cubic-bezier(0.25,0.46,0.45,0.94);
}
.mineral-grid-card .mg-img {
  background-size: cover;
  background-position: center;
  filter: brightness(0.55) saturate(0.9);
}
.mineral-grid-card:hover .mg-img {
  transform: scale(1.08);
  filter: brightness(0.7) saturate(1.1);
}
/* 3D canvas container */
.mineral-grid-card .mg-3d {
  background: radial-gradient(ellipse at center, var(--dark-3) 0%, var(--dark) 100%);
}
.mineral-grid-card .mg-3d canvas {
  width: 100% !important;
  height: 100% !important;
}
.mineral-grid-card .mg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(6,6,6,0.9) 0%, rgba(6,6,6,0.3) 40%, transparent 100%);
  z-index: 1;
}
/* Slim overlay — only bottom strip, lets 3D breathe */
.mineral-grid-card .mg-overlay-slim {
  background: linear-gradient(0deg, rgba(6,6,6,0.95) 0%, rgba(6,6,6,0.5) 25%, transparent 50%);
}
.mineral-grid-card .mg-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem;
  z-index: 2;
}
/* Slim content — tighter padding, no description */
.mineral-grid-card .mg-content-slim {
  padding: 1.2rem 1.5rem;
}
.mineral-grid-card .mg-tag {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
  font-family: 'Inter', sans-serif;
}
.mineral-grid-card .mg-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.4rem;
  line-height: 1.2;
}
.mineral-grid-card .mg-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 1rem;
}
.mineral-grid-card .mg-link {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: gap 0.3s ease, color 0.3s ease;
}
.mineral-grid-card:hover .mg-link {
  gap: 0.8rem;
  color: var(--gold-light);
}
/* Gold border accent on hover */
.mineral-grid-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-md);
  border: 1.5px solid transparent;
  transition: border-color 0.4s ease;
  z-index: 3;
  pointer-events: none;
}
.mineral-grid-card:hover::after {
  border-color: rgba(212,175,55,0.4);
}

/* Mineral Detail Page Styles */
.mineral-hero {
  padding: 12rem 0 4rem;
  position: relative;
  overflow: hidden;
  background: var(--dark);
}
.mineral-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.25;
}
.mineral-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6,6,6,0.6) 0%, rgba(6,6,6,0.3) 40%, var(--dark) 100%);
  z-index: 1;
}
.mineral-hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}
.mineral-hero-content .mg-tag {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
  font-family: 'Inter', sans-serif;
  display: inline-block;
  background: rgba(212,175,55,0.08);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  border: 1px solid rgba(212,175,55,0.15);
}
.mineral-hero-content h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 1rem;
  letter-spacing: -0.5px;
}
.mineral-hero-content .mineral-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.9;
  max-width: 600px;
}

/* Process Timeline — Horizontal desktop, vertical mobile */
.process-flow {
  display: flex;
  gap: 0;
  position: relative;
  margin: 3rem 0;
}
.process-flow::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 40px;
  right: 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-dark));
  z-index: 0;
}
.pf-step {
  flex: 1;
  text-align: center;
  position: relative;
  z-index: 1;
  padding: 0 0.5rem;
}
.pf-num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  box-shadow: 0 4px 20px rgba(212,175,55,0.3);
  position: relative;
}
.pf-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.3rem;
  font-family: 'Inter', sans-serif;
}
.pf-desc {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 140px;
  margin: 0 auto;
}

/* Specs Grid */
.specs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.spec-card {
  padding: 1.5rem;
  text-align: center;
}
.spec-card .spec-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  display: block;
}
.spec-card .spec-value {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
}

/* Visual Block */
.mineral-visual {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  height: 400px;
  background: var(--dark-3);
}
.mineral-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mineral-visual .mv-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 600;
  background: linear-gradient(135deg, var(--dark-3), var(--dark-4));
  border: 2px dashed rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
}

/* Back link */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 2rem;
  transition: color 0.3s ease;
}
.back-link:hover { color: var(--gold); }

/* ============================================
   IMMERSIVE PROCESS STEPS
   Zigzag connector, alternating layout
   ============================================ */
.immersive-process {
  position: relative;
  padding: 0;
}

/* SVG zigzag connector — injected by JS, positioned absolute */
.ip-zigzag-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: visible;
}
.ip-zigzag-path {
  fill: none;
  stroke: url(#zigzagGradient);
  stroke-width: 2.5;
  stroke-dasharray: 12 6;
  filter: drop-shadow(0 0 6px rgba(212,175,55,0.3));
}
/* Animated glow pulse traveling along the path */
.ip-zigzag-glow {
  fill: none;
  stroke: var(--gold-light);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 40 2000;
  filter: drop-shadow(0 0 10px rgba(212,175,55,0.6));
  animation: zigzagPulse 6s linear infinite;
}
@keyframes zigzagPulse {
  0% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -2000; }
}

/* Gold dots at each step junction */
.ip-dot {
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  border: 3px solid var(--dark-2);
  z-index: 3;
  box-shadow: 0 0 15px rgba(212,175,55,0.35), 0 0 30px rgba(212,175,55,0.15);
  transform: translate(-50%, -50%);
}
/* Pulsing ring around dot */
.ip-dot::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid rgba(212,175,55,0.25);
  animation: dotRing 2.5s ease infinite;
}
@keyframes dotRing {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.5); opacity: 0; }
}

.ip-step {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: 5rem 0;
  position: relative;
  z-index: 1;
}
/* Alternating: even steps flip image to right */
.ip-step:nth-child(even) { direction: rtl; }
.ip-step:nth-child(even) > * { direction: ltr; }

/* Image block */
.ip-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 400px;
  position: relative;
  box-shadow: var(--shadow-heavy);
}
.ip-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ip-image::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(212,175,55,0.15);
  pointer-events: none;
}
/* 3D container inside image block */
.ip-image .suv-3d-container,
.ip-image .ip-3d {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-lg);
  background: radial-gradient(ellipse at center, var(--dark-3) 0%, var(--dark) 100%);
}
.ip-image .suv-3d-container canvas,
.ip-image .ip-3d canvas {
  width: 100% !important;
  height: 100% !important;
}

/* Text block */
.ip-text {
  position: relative;
  padding-left: 2rem;
}

/* Watermark step number */
.ip-num {
  font-family: 'Playfair Display', serif;
  font-size: clamp(5rem, 10vw, 8rem);
  font-weight: 700;
  color: rgba(255,255,255,0.04);
  line-height: 1;
  margin-bottom: -1.5rem;
  position: relative;
  z-index: 0;
  user-select: none;
}
/* Small gold number badge */
.ip-num-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: var(--dark);
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 1rem;
  box-shadow: 0 4px 15px rgba(212,175,55,0.25);
}

.ip-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1rem;
  line-height: 1.2;
  position: relative;
  z-index: 1;
}

.ip-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.9;
  max-width: 520px;
  position: relative;
  z-index: 1;
}

/* Glass card wrapper for text */
.ip-text-card {
  background: linear-gradient(135deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.02) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  position: relative;
  z-index: 1;
}
.ip-text-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212,175,55,0.2), transparent);
  pointer-events: none;
}

/* Section header for the process */
.ip-header {
  text-align: center;
  padding-bottom: 4rem;
}

/* Responsive */
@media (max-width: 1024px) {
  .ip-zigzag-svg { display: none; }
  .ip-dot { display: none; }
  .ip-step { grid-template-columns: 1fr; gap: 2rem; padding: 3rem 0; }
  .ip-step:nth-child(even) { direction: ltr; }
  .ip-image { height: 300px; }
}
/* Premium mobile experience — mineral detail pages */
@media (max-width: 768px) {
  .container { padding: 0 1.5rem; }

  .mineral-hero { padding: 6.5rem 1.5rem 2.5rem; }
  .mineral-hero-content h1 { font-size: clamp(2.2rem, 9vw, 2.8rem); line-height: 1.1; letter-spacing: -1px; }
  .mineral-hero-content .mineral-desc { font-size: 1rem; line-height: 1.65; }

  .ip-step {
    padding: 2rem 0 3rem;
    gap: 0;
    grid-template-columns: 1fr;
  }
  .ip-image {
    height: 320px;
    border-radius: 18px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  }
  .ip-text {
    padding-left: 0;
    margin-top: -2.5rem;
    position: relative;
    z-index: 2;
    padding-right: 0.75rem;
    padding-left: 0.75rem;
  }
  .ip-num { display: none; }
  .ip-num-badge {
    width: 48px;
    height: 48px;
    font-size: 1.05rem;
    margin-bottom: 0.85rem;
    box-shadow: 0 8px 20px rgba(212,175,55,0.35), 0 0 0 4px rgba(15,15,20,0.9);
  }
  .ip-text-card {
    padding: 1.75rem 1.5rem;
    border-radius: 16px;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: linear-gradient(180deg, rgba(20,20,24,0.96) 0%, rgba(14,14,18,0.96) 100%);
    border: 1px solid rgba(212,175,55,0.18);
    box-shadow: 0 12px 40px rgba(0,0,0,0.45);
  }
  .ip-title { font-size: 1.4rem; line-height: 1.25; margin-bottom: 0.85rem; }
  .ip-desc { font-size: 0.95rem; line-height: 1.7; }
  .ip-header { padding-bottom: 2.5rem; }

  .specs-grid { grid-template-columns: 1fr !important; gap: 0.85rem; }
  .spec-card { padding: 1.4rem 1.5rem; text-align: left; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
  .spec-card .spec-label { margin-bottom: 0; flex-shrink: 0; }
  .spec-card .spec-value { font-size: 0.95rem; text-align: right; }
}
@media (max-width: 480px) {
  .mineral-hero { padding: 6rem 1.25rem 2rem; }
  .ip-image { height: 260px; }
  .ip-text-card { padding: 1.5rem 1.25rem; }
  .ip-title { font-size: 1.3rem; }
}

/* Responsive — minerals */
@media (max-width: 1024px) {
  .mineral-grid, .mineral-grid[style] { grid-template-columns: repeat(2, 1fr) !important; }
  .specs-grid { grid-template-columns: repeat(2, 1fr); }
  .process-flow { flex-wrap: wrap; justify-content: center; gap: 1.5rem; }
  .process-flow::before { display: none; }
  .pf-step { flex: 0 0 30%; }
}
@media (max-width: 640px) {
  .mineral-grid, .mineral-grid[style] { grid-template-columns: 1fr !important; }
  .mineral-grid-card { aspect-ratio: 16/9; }
  .specs-grid { grid-template-columns: 1fr 1fr; }
  .process-flow { flex-direction: column; align-items: center; gap: 1.5rem; }
  .pf-step { flex: none; width: 100%; max-width: 280px; }
  .mineral-visual { height: 280px; }
}

/* ============================================
   DECORATIVE ELEMENTS
   ============================================ */
/* L4: Glow orbs — clamped to viewport, contained by parent overflow */
.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
  max-width: 80vw;
  max-height: 80vw;
}
.glow-gold { background: rgba(212, 175, 55, 0.12); width: min(500px, 70vw); height: min(500px, 70vw); }
.glow-emerald { background: rgba(13, 74, 53, 0.15); width: min(600px, 80vw); height: min(600px, 80vw); }

.gold-line {
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light), transparent);
  margin-bottom: 2rem;
  border-radius: 2px;
}
.gold-line-center { margin-left: auto; margin-right: auto; }

.divider {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  margin: 1.5rem 0;
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
/* Scroll reveal — elements always visible, subtle entrance via JS */
.reveal { opacity: 1; transform: none; }
.reveal.visible { opacity: 1; transform: none; }

/* Three.js Canvas */
.three-canvas { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }

/* ============================================
   UTILITIES
   ============================================ */
.text-center { text-align: center; }
.text-gold { color: var(--gold); }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mt-4 { margin-top: 2rem; }

/* 3D SUV container in cards and steps */
.suv-3d-container {
  width: 100%;
  height: 220px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: radial-gradient(ellipse at center, var(--dark-3) 0%, var(--dark) 100%);
  margin-bottom: 1.5rem;
}
.suv-3d-container canvas {
  width: 100% !important;
  height: 100% !important;
}
/* Smaller SUV in process flow steps */
.pf-suv {
  width: 100%;
  height: 120px;
  margin-top: 0.8rem;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: radial-gradient(ellipse at center, var(--dark-3) 0%, var(--dark) 100%);
}
.pf-suv canvas {
  width: 100% !important;
  height: 100% !important;
}

/* L9: SVG Icons for cross-browser consistency */
.icon-svg { width: 28px; height: 28px; fill: none; stroke: var(--gold); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.card-icon .icon-svg { width: 28px; height: 28px; }

/* M5: 3D canvas fallback */
.three-canvas-fallback {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(212,175,55,0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Back to Top */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, rgba(212,175,55,0.15), rgba(212,175,55,0.05));
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid rgba(212,175,55,0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 100;
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover {
  background: rgba(212,175,55,0.2);
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: 0 4px 20px rgba(212,175,55,0.2);
}

/* ============================================
   TRADE INQUIRY FORM — submit status messages
   ============================================ */
.form-status {
  margin-top: 1rem;
  padding: 0;
  font-size: 0.9rem;
  line-height: 1.6;
  border-radius: 10px;
  transition: all 0.3s ease;
  font-family: 'Inter', sans-serif;
}
.form-status:not(:empty) { padding: 0.85rem 1.1rem; margin-top: 1.25rem; }
.form-status-success {
  background: rgba(74,222,128,0.08);
  border: 1px solid rgba(74,222,128,0.25);
  color: #86efac;
}
.form-status-error {
  background: rgba(248,113,113,0.08);
  border: 1px solid rgba(248,113,113,0.25);
  color: #fca5a5;
}
.form-status-info {
  background: rgba(212,175,55,0.08);
  border: 1px solid rgba(212,175,55,0.2);
  color: var(--gold);
}

/* ============================================
   LIVE PRICE TICKER (homepage strip below hero)
   ============================================ */
.price-ticker {
  background: linear-gradient(90deg, #07070a, #14141a, #07070a);
  border-top: 1px solid rgba(212,175,55,0.18);
  border-bottom: 1px solid rgba(212,175,55,0.18);
  padding: 0.85rem 0;
  position: relative;
  overflow: hidden;
}
.price-ticker::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(212,175,55,0.04) 0%, transparent 70%);
  pointer-events: none;
}
.ticker-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}
.ticker-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  flex-shrink: 0;
}
.ticker-items {
  display: flex;
  gap: 2.5rem;
  flex: 1;
  justify-content: center;
  flex-wrap: wrap;
}
.ticker-item {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}
.ticker-name {
  font-size: 0.78rem;
  color: var(--text-secondary);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.ticker-price {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  font-variant-numeric: tabular-nums;
  transition: color 0.4s ease;
}
.ticker-price.up   { color: #4ade80; }
.ticker-price.down { color: #f87171; }
.ticker-unit {
  font-size: 0.68rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.ticker-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  flex-shrink: 0;
}
.ticker-pulse {
  width: 8px; height: 8px;
  background: #4ade80;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px rgba(74,222,128,0.7);
  animation: ticker-pulse 1.6s ease-in-out infinite;
}
@keyframes ticker-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.4; transform: scale(0.8); }
}

/* ============================================
   TRUST / COMPLIANCE BAND
   ============================================ */
.trust-band {
  background: var(--dark-2);
  padding: 2.5rem 0 2.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  position: relative;
}
.trust-label {
  text-align: center;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 2rem;
}
.trust-items {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
}
.trust-item {
  text-align: center;
  padding: 0.6rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  border-left: 1px solid rgba(212,175,55,0.18);
}
.trust-item:first-child { border-left: none; }
.trust-item strong {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.3px;
}
.trust-item span {
  font-size: 0.68rem;
  color: var(--text-muted);
  letter-spacing: 0.6px;
  font-weight: 500;
}

@media (max-width: 1024px) {
  .ticker-items { gap: 1.5rem; }
  .ticker-inner { gap: 1.2rem; }
}
@media (max-width: 768px) {
  .price-ticker { padding: 0.7rem 0; }
  .ticker-inner { flex-direction: column; gap: 0.5rem; }
  .ticker-label { font-size: 0.6rem; letter-spacing: 2px; }
  .ticker-items { gap: 1.1rem; }
  .ticker-name { font-size: 0.7rem; }
  .ticker-price { font-size: 1rem; }
  .ticker-unit { font-size: 0.6rem; }

  .trust-band { padding: 1.75rem 0 2rem; }
  .trust-label { font-size: 0.6rem; margin-bottom: 1.25rem; padding: 0 1rem; }
  .trust-items { grid-template-columns: repeat(3, 1fr); gap: 0.5rem 0.25rem; }
  .trust-item { padding: 0.55rem 0.4rem; }
  .trust-item:nth-child(4) { border-left: none; }
  .trust-item strong { font-size: 0.85rem; }
  .trust-item span { font-size: 0.6rem; }
}

/* Floating WhatsApp Chat Button */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(37,211,102,0.45);
  z-index: 1000;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: wa-pulse 2.4s ease-in-out infinite;
}
.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 32px rgba(37,211,102,0.6);
}
@keyframes wa-pulse {
  0%, 100% { box-shadow: 0 8px 24px rgba(37,211,102,0.45), 0 0 0 0 rgba(37,211,102,0.5); }
  50%      { box-shadow: 0 8px 24px rgba(37,211,102,0.5), 0 0 0 18px rgba(37,211,102,0); }
}
.whatsapp-tooltip {
  position: absolute;
  right: calc(100% + 14px);
  top: 50%;
  transform: translateY(-50%);
  background: #14141a;
  color: #fff;
  padding: 0.55rem 0.95rem;
  border-radius: 8px;
  font-size: 0.78rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  border: 1px solid rgba(212,175,55,0.25);
  font-family: 'Inter', sans-serif;
  font-weight: 500;
}
.whatsapp-tooltip::after {
  content: '';
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-left-color: #14141a;
}
.whatsapp-float:hover .whatsapp-tooltip {
  opacity: 1;
  transform: translateY(-50%) translateX(-4px);
}
/* Stack back-to-top above WhatsApp on the right */
.back-to-top { bottom: 6.5rem; }
@media (max-width: 768px) {
  .whatsapp-float { width: 54px; height: 54px; bottom: 1.25rem; right: 1.25rem; }
  .whatsapp-tooltip { display: none; }
  .back-to-top { bottom: 5.5rem; right: 1.25rem; }
}

/* ============================================
   RESPONSIVE
   ============================================ */
/* C1/C2: Fixed tablet overflow — hero canvas, glow orbs, container */
@media (max-width: 1024px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  /* 7. Responsive hero — keep left alignment, don't drift center */
  .hero { min-height: auto; padding: 7rem 0 4rem; }
  #hero-3d-canvas { position: absolute; width: 100%; height: 100%; opacity: 0.3; right: 0; }
  .hero .container { position: relative; z-index: 3; }
  .hero-content { max-width: 90%; padding-top: 1rem; }
  .hero-content::before { display: none; }
  .two-col { grid-template-columns: 1fr; gap: 3rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .container { padding: 0 2rem; }
  /* Only clip overflow on hero areas where glow orbs escape */
  .hero, .page-hero { overflow: hidden; }
}

@media (max-width: 768px) {
  html { font-size: 15px; }
  .section { padding: 5rem 0; }
  .container { padding: 0 1.5rem; }
  .grid-2, .grid-3, .grid-6 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  /* 7. Mobile hero — maintain structure, stack buttons */
  .hero-title { font-size: clamp(1.8rem, 7vw, 2.6rem); line-height: 1.15; }
  .hero-subtitle { font-size: 0.95rem; max-width: 100%; }
  .hero-content { max-width: 100%; }
  .hero-buttons { flex-direction: column; gap: 0.8rem; }
  .hero-buttons .btn { width: 100%; justify-content: center; }
  .page-hero { padding: 9rem 0 4rem; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
  .stat-number { font-size: 2.8rem; }
  .two-col-img { height: 300px; }
  .mobile-menu a { font-size: 1.4rem; }
  .two-col { gap: 2rem; }
}

@media (max-width: 480px) {
  .container { padding: 0 1rem; }
  .section { padding: 3.5rem 0; }
  .page-hero { padding: 8rem 0 3rem; }
  .service-card { padding: 2rem; }
  .mineral-card-img { height: 200px; }
  .btn { padding: 0.85rem 1.5rem; font-size: 0.85rem; }
}
