/* ============================================================
   SONALEK Mining Company Ltd — Custom CSS
   ============================================================ */

:root {
  --color-primary:       #157A6E;
  --color-primary-dark:  #0C2722;
  --color-primary-light: #4A9B88;
  --color-secondary:     #C4A035;
  --color-accent:        #3D8B7A;
  --color-ink:           #15251F;
  --color-bg-alt:        #F1F5F4;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, .font-serif {
  font-family: 'Fraunces', Georgia, serif;
}
.font-condensed, .stat-value {
  font-family: Sora, system-ui, sans-serif;
}

/* ===== PAGE HERO (inner pages) ===== */
.page-hero {
  position: relative;
  background: url('/assets/images/sonalek1.jpg') center/cover no-repeat;
  background-attachment: fixed;
  color: #fff;
  overflow: hidden;
  border-bottom: 3px solid var(--color-secondary);
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(12, 39, 34, 0.92) 0%,
    rgba(21, 122, 110, 0.60) 50%,
    rgba(12, 39, 34, 0.88) 100%
  );
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.page-hero > * {
  position: relative;
  z-index: 1;
}
@media (max-width: 767px) {
  .page-hero {
    background-attachment: scroll;
  }
  .page-hero h1 {
    font-size: 1.65rem !important;
    line-height: 1.2;
  }
  .page-hero .hero-sub {
    font-size: 0.8rem;
    line-height: 1.5;
  }
}

/* ===== HERO (home slider) ===== */
.hero-overlay {
  background: linear-gradient(
    135deg,
    rgba(12, 39, 34, 0.88) 0%,
    rgba(21, 122, 110, 0.66) 100%
  );
}
.confidence-bar {
  position: fixed;
  top: 4.1rem;
  left: 0;
  right: 0;
  z-index: 45;
  background: rgba(12, 39, 34, 0.78);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.confidence-bar.is-hidden {
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
}
.hero-slide {
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 0.8s ease, transform 1.1s ease;
  z-index: 1;
  pointer-events: none;
}
.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
  z-index: 2;
  pointer-events: auto;
}
.hero-slide-content {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.hero-slide.is-active .hero-slide-content {
  opacity: 1;
  transform: translateY(0);
}
.hero-nav-btn {
  position: absolute;
  top: 50%;
  z-index: 30;
  transform: translateY(-50%);
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(12, 39, 34, 0.4);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  transition: all 0.2s ease;
}
.hero-nav-btn:hover {
  background: rgba(12, 39, 34, 0.68);
  border-color: rgba(255, 255, 255, 0.7);
}
.hero-nav-btn:focus-visible {
  outline: 2px solid var(--color-secondary);
  outline-offset: 2px;
}
.hero-nav-prev {
  left: 1rem;
}
.hero-nav-next {
  right: 1rem;
}
.hero-dots {
  position: absolute;
  z-index: 30;
  bottom: 4rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.hero-dot {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: all 0.25s ease;
}
.hero-dot.is-active {
  width: 1.6rem;
  background: white;
  border-color: white;
}

@media (max-width: 767px) {
  .hero-nav-btn {
    width: 2.4rem;
    height: 2.4rem;
  }
  .hero-dots {
    bottom: 2.75rem;
  }
}

/* ===== COUNTER ANIMATION ===== */
.counter-card .counter {
  font-family: Sora, system-ui, sans-serif;
  font-weight: 700;
  font-size: 2.5rem;
  color: var(--color-primary);
  transition: all 0.5s ease;
}

/* ===== DROPDOWN HOVER ===== */
.group:hover .dropdown-content {
  visibility: visible !important;
  opacity: 1 !important;
}

/* ===== SECTION DIVIDERS ===== */
.section-alt {
  background-color: var(--color-bg-alt);
}

/* ===== TIMELINE ===== */
.timeline-item::before {
  content: '';
  position: absolute;
  left: 1.25rem;
  top: 2rem;
  bottom: -1rem;
  width: 2px;
  background: var(--color-primary-light);
}
.timeline-item:last-child::before {
  display: none;
}

/* ===== MINERAL CARDS ===== */
.mineral-card:hover .mineral-icon {
  transform: scale(1.1) rotate(3deg);
  transition: transform 0.3s ease;
}

/* ===== STAT BADGE ===== */
.kpi-badge {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ===== PROCESS STEPS ===== */
.step-number {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--color-primary);
  color: white;
  font-family: Sora, system-ui, sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ===== SCROLL ANIMATIONS ===== */
.fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== ADMIN SIDEBAR ===== */
.admin-sidebar {
  width: 260px;
  min-height: 100vh;
  background: var(--color-primary-dark);
  color: white;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: var(--color-primary-light); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--color-primary); }

/* ===== FAQ ACCORDION ===== */
.faq-details[open] .faq-chevron {
  transform: translateY(-50%) rotate(180deg);
}

/* ===== MOBILE NAV ACCORDION ===== */
.mob-acc-icon {
  transition: transform 0.2s ease;
}
.mob-acc-btn[aria-expanded="true"] {
  border-color: rgba(21,122,110,.25);
  background-color: rgba(21,122,110,.05);
}

/* ===== FONT AWESOME (fa fa-*) ===== */
.btn .fa,
.hero-nav-btn .fa {
  line-height: 1;
  vertical-align: middle;
}

/* ===== PRINT ===== */
@media print {
  .navbar, footer, .btn { display: none; }
}
