/* Nextwave Mines & Metals — Premium Styles */

:root {
  --navy: #0F2D4C;
  --bronze: #E48B53;
  --warm-white: #F8F5F1;
  --dark-text: #1E2732;
  --light-gray: #EFEAE4;
  --black: #111111;
  --max-width: 1320px;
}

/* Base */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
}

html.lenis, html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--dark-text);
  background-color: var(--warm-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Typography */
.font-display {
  font-family: 'Cormorant Garamond', Georgia, serif;
}

/* Container */
.container-main {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

@media (min-width: 768px) {
  .container-main {
    padding-left: 2.5rem;
    padding-right: 2.5rem;
  }
}

@media (min-width: 1024px) {
  .container-main {
    padding-left: 3rem;
    padding-right: 3rem;
  }
}

/* Navigation */
.nav-transparent {
  background: transparent;
  border-bottom: 1px solid transparent;
}

.nav-scrolled {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(239, 234, 228, 0.8);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.04);
}

.nav-link {
  position: relative;
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--bronze);
  transition: width 0.3s ease;
}

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

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  background: var(--bronze);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary:hover {
  background: #d07a45;
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(228, 139, 83, 0.35);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  background: transparent;
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
  transform: translateY(-2px);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  background: transparent;
  color: var(--navy);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 9999px;
  border: 1px solid var(--navy);
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-outline:hover {
  background: var(--navy);
  color: #fff;
  transform: translateY(-2px);
}

/* Cards */
.card-premium {
  background: #fff;
  border-radius: 12px;
  border: 1px solid rgba(239, 234, 228, 0.8);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-premium:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

/* Hero */
.hero-title{
  line-height: 1.2!important;
}

.hero-media {
  width: 100%;
  height: clamp(340px, 52vh, 620px);
  overflow: hidden;
}

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

/* Stats Card */
.stats-card {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 12px;
  border: 1px solid rgba(239, 234, 228, 0.6);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

/* Hero floating stats card */
.hero-stats-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  padding: 1.75rem;
  max-width: 640px;
  box-shadow: 0 30px 70px rgba(15, 45, 76, 0.18);
}

.hero-stats-card .stat-cell {
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--light-gray);
}

.hero-stats-card .stat-cell:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

@media (min-width: 768px) {
  .hero-stats-card {
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    padding: 2rem 2.5rem;
    max-width: none;
  }

  .hero-stats-card .stat-cell {
    padding: 0 2rem;
    border-bottom: none;
    border-left: 1px solid var(--light-gray);
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .hero-stats-card .stat-cell:first-child {
    padding-left: 0;
    border-left: none;
  }

  .hero-stats-card .stat-cell:last-child {
    padding-right: 0;
  }
}

/* Expertise List */
.expertise-item {
  position: relative;
  padding: 1.125rem 0;
  border-bottom: 1px solid var(--light-gray);
  font-size: 0.9375rem;
  font-weight: 300;
  letter-spacing: 0.02em;
  cursor: default;
  transition: color 0.3s ease;
}

.expertise-item::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--bronze);
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.expertise-item:hover {
  color: var(--bronze);
}

.expertise-item:hover::after {
  width: 100%;
}

/* Leadership Cards */
.leader-card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid rgba(15, 45, 76, 0.1);
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.leader-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.12);
}

.leader-portrait {
  aspect-ratio: 4 / 5;
  min-height: 280px;
  overflow: hidden;
  background: var(--light-gray);
}

.leader-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Quote Section */
.quote-mark {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(6rem, 12vw, 10rem);
  line-height: 0.7;
  color: var(--bronze);
  opacity: 0.9;
}

/* Metrics */
.metric-number {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: clamp(3rem, 6vw, 4.5rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--navy);
}

/* Editorial Sections */
.editorial-image {
  overflow: hidden;
}

.editorial-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.editorial-block:hover .editorial-image img {
  transform: scale(1.04);
}

/* Image Reveal */
.img-reveal {
  overflow: hidden;
}

.img-reveal-inner {
  transform: scale(1.15);
  transition: transform 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.img-reveal.revealed .img-reveal-inner {
  transform: scale(1);
}

/* Fade Up — visibility handled by GSAP; content stays visible if JS fails */
.fade-up {
  will-change: transform, opacity;
}

/* Mobile Menu */
.mobile-menu {
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.open {
  transform: translateX(0);
}

/* Hamburger */
.hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: currentColor;
  transition: all 0.3s ease;
}

.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Contact */
.contact-link {
  transition: color 0.3s ease;
}

.contact-link:hover {
  color: var(--bronze);
}

/* Section Spacing */
.section-padding {
  padding-top: clamp(5rem, 10vw, 8rem);
  padding-bottom: clamp(5rem, 10vw, 8rem);
}

/* Read More Link */
.read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bronze);
  transition: gap 0.3s ease;
}

.read-more:hover {
  gap: 0.75rem;
}

button.read-more {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

/* Leadership Modals */
.leader-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

@media (min-width: 768px) {
  .leader-modal {
    padding: 1.5rem;
  }
}

.leader-modal.open {
  visibility: visible;
  opacity: 1;
}

.leader-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 45, 76, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.leader-modal__panel {
  position: relative;
  width: 100%;
  max-width: 900px;
  max-height: 92vh;
  max-height: 92dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.3);
  transform: translateY(30px) scale(0.98);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  -webkit-overflow-scrolling: touch;
}

.leader-modal.open .leader-modal__panel {
  transform: translateY(0) scale(1);
}

.leader-modal__close {
  position: absolute;
  top: 0.875rem;
  right: 0.875rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  border: none;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  color: var(--navy);
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

@media (min-width: 768px) {
  .leader-modal__close {
    top: 1.25rem;
    right: 1.25rem;
    width: 2.75rem;
    height: 2.75rem;
  }
}

.leader-modal__close:hover {
  background: var(--navy);
  color: #fff;
  transform: rotate(90deg);
}

.leader-modal__grid {
  display: grid;
  grid-template-columns: 1fr;
}

.leader-modal__media {
  position: relative;
  overflow: hidden;
  background: var(--light-gray);
}

.leader-modal__media img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.leader-modal__body {
  padding: 1.5rem;
}

.leader-modal__prose p {
  font-size: 0.9375rem;
  font-weight: 300;
  line-height: 1.75;
  color: var(--dark-text);
  margin-bottom: 1.25rem;
}

.leader-modal__prose p:last-child {
  margin-bottom: 0;
}

.leader-modal__prose strong {
  font-weight: 600;
  color: var(--navy);
}

@media (min-width: 768px) {
  .leader-modal__grid {
    grid-template-columns: 5fr 7fr;
  }

  .leader-modal__media {
    height: 100%;
    min-height: 480px;
  }

  .leader-modal__media img {
    height: 100%;
    object-fit: cover;
    object-position: center top;
  }

  .leader-modal__body {
    padding: 3rem 3rem 3rem 2.75rem;
  }

  .leader-modal__prose p {
    font-size: 1rem;
  }
}

body.modal-open {
  overflow: hidden;
}

/* Focus States */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--bronze);
  outline-offset: 3px;
}

/* Selection */
::selection {
  background: var(--bronze);
  color: #fff;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .fade-up,
  [data-stagger] > * {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Logo sizing */
.logo-img {
  height: 64px;
  width: auto;
}

@media (min-width: 768px) {
  .logo-img {
    height: 80px;
  }
}

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