/* ============================================
   OUR MINES PAGE - Mine Profile Cards Design
   ============================================ */

/* Hero */
.mines-hero {
  position: relative;
  height: 45vh;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: var(--navbar-height);
}

.mines-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.mines-hero__bg picture {
  display: block;
  width: 100%;
  height: 100%;
}

.mines-hero__bg img {
  width: 100%;
  height: 120%;
  object-fit: cover;
  object-position: center;
}

.mines-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 31, 58, 0.6) 0%, rgba(15, 31, 58, 0.6) 100%);
  z-index: 1;
}

.mines-hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  padding: 0 2rem;
  color: white;
}

.mines-hero__overline {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--primary-gold-400);
  margin-bottom: 1rem;
  padding: 0.4rem 1rem;
  border: 1px solid var(--primary-gold-400);
}

.mines-hero__title {
  font-family: var(--font-heading);
  font-size: var(--display-size);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.mines-hero__text {
  font-size: var(--text-base) !important;
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.9);
  text-wrap: pretty;
}

/* Mine Cards Section */
.mines-overview {
  padding: 3.5rem var(--section-padding-x);
  background: var(--bg-primary);
}

.mines-overview__container {
  max-width: var(--max-width);
  margin: 0 auto;
}

.mines-overview__header {
  text-align: center;
  max-width: 750px;
  margin: 0 auto 2.5rem;
}

.mines-overview__overline {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--primary-gold-400);
  margin-bottom: 0.75rem;
  padding: 0.4rem 1rem;
  background: rgba(230, 92, 26, 0.1);
  border: 1px solid rgba(230, 92, 26, 0.3);
}

.mines-overview__title {
  font-family: var(--font-heading);
  font-size: var(--h1-size);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.mines-overview__subtitle {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.7;
}

.mine-section-intro {
  max-width: 760px;
  margin: clamp(2.4rem, 5vw, 4rem) auto clamp(1.2rem, 3vw, 2rem);
  padding-top: 1rem;
  text-align: center;
  border-top: 3px solid var(--primary-gold-500);
}

.mine-section-intro__eyebrow {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--primary-gold-500);
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.mine-section-intro__title {
  margin-bottom: 0.45rem;
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  font-weight: 600;
  line-height: 1.08;
  text-transform: uppercase;
  text-wrap: balance;
}

.mine-section-intro__text {
  max-width: 64ch;
  margin-inline: auto;
  color: var(--text-secondary);
  font-size: var(--text-sm);
  line-height: 1.7;
}

/* Mine Profile Card */
.mine-profile {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(247, 244, 236, 0.96)),
    var(--bg-card);
  border: 1px solid rgba(14, 25, 35, 0.08);
  border-radius: 0;
  overflow: hidden;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
  box-shadow: 0 24px 70px rgba(14, 25, 35, 0.08);
  transition: transform 0.4s var(--ease-smooth), box-shadow 0.4s var(--ease-smooth);
}

.mine-profile:hover {
  transform: translateY(-4px);
  box-shadow: 0 34px 90px rgba(14, 25, 35, 0.13);
}

.mine-profile--reverse {
  direction: rtl;
}

.mine-profile--reverse>* {
  direction: ltr;
}

.mine-profile__image {
  position: relative;
  align-self: stretch;
  height: 100%;
  min-height: 340px;
  overflow: hidden;
  background: #101923;
  isolation: isolate;
}

.mine-profile__image::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(5, 10, 16, 0) 48%, rgba(5, 10, 16, 0.34));
}

.mine-profile__image picture {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.mine-profile__image img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-smooth);
}

.mine-profile:hover .mine-profile__image img {
  transform: scale(1.05);
}

.mine-profile__slides {
  position: absolute;
  inset: 0;
}

.mine-profile__slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.42s var(--ease-smooth);
}

.mine-profile__slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.mine-profile__carousel-controls {
  position: absolute;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 3;
  display: flex;
  gap: 0.45rem;
}

.mine-profile__carousel-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  color: #101923;
  font-family: var(--font-ui);
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1;
  background: rgba(245, 240, 232, 0.92);
  border: 1px solid rgba(245, 240, 232, 0.72);
  box-shadow: 0 14px 28px rgba(3, 8, 15, 0.28);
  transition: background 0.2s var(--ease-smooth), transform 0.2s var(--ease-smooth);
}

.mine-profile__carousel-btn:hover {
  background: var(--primary-gold-500);
  color: #fff;
  transform: translateY(-1px);
}

.mine-profile__badges {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  right: 1.25rem;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  pointer-events: none;
}

.mine-profile__status-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.35rem 0.875rem;
  background: var(--primary-gold-500);
  color: white;
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.mine-profile__badges .mine-profile__status-badge {
  position: static;
  flex: 0 0 auto;
}

.mine-profile__badges .ops-pulse {
  flex: 0 1 auto;
  max-width: 52%;
  justify-content: center;
  color: #101923;
  overflow: visible;
  text-align: center;
  white-space: nowrap;
}

.mine-profile__badges .ops-pulse__dot {
  position: relative;
  flex: 0 0 8px;
  width: 8px;
  height: 8px;
  min-width: 8px;
  min-height: 8px;
  background: #10b981;
  border-radius: 999px !important;
  animation: mineOpsDotGlow 1.8s ease-in-out infinite !important;
}

.mine-profile__badges .ops-pulse__dot::after {
  content: '';
  position: absolute;
  inset: -5px;
  border: 2px solid #10b981;
  border-radius: 999px !important;
  animation: mineOpsRipple 1.8s ease-out infinite !important;
}

@keyframes mineOpsDotGlow {
  0%,
  100% {
    box-shadow: 0 0 0 rgba(16, 185, 129, 0);
  }

  50% {
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.78);
  }
}

@keyframes mineOpsRipple {
  0% {
    opacity: 0.82;
    transform: scale(0.62);
  }

  100% {
    opacity: 0;
    transform: scale(1.95);
  }
}

.mine-profile__status-badge--processing {
  background: var(--primary-gold-500);
}

.mine-profile__status-badge--exploration {
  background: var(--primary-gold-500);
}

.mine-profile__status-badge--sourcing {
  background: var(--primary-gold-500);
}

.mine-profile__info {
  position: relative;
  z-index: 2;
  padding: clamp(2rem, 4vw, 3.25rem);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.mine-profile__name {
  font-family: var(--font-heading);
  font-size: clamp(1.35rem, 2.1vw, 1.95rem);
  font-weight: 600;
  color: var(--text-primary);
  text-transform: uppercase;
  line-height: 1.05;
  text-wrap: balance;
}

.mine-profile__location {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.mine-profile__text {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.7;
}

.mine-profile__details {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(14, 25, 35, 0.1);
  border-left: 1px solid rgba(14, 25, 35, 0.08);
}

.mine-profile__detail {
  padding: 0.95rem;
  background: rgba(255, 255, 255, 0.46);
  border-right: 1px solid rgba(14, 25, 35, 0.08);
  border-bottom: 1px solid rgba(14, 25, 35, 0.08);
  text-align: left;
}

.mine-profile__detail-value {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--primary-gold-500);
}

.mine-profile__detail-label {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.mine-profile__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--navy-900);
  color: white;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all 0.3s var(--ease-smooth);
  align-self: flex-start;
  margin-top: auto;
}

.mine-profile__cta:hover {
  background: var(--primary-gold-500);
}

.mine-profile--feature {
  grid-template-columns: minmax(0, 1.22fr) minmax(330px, 0.78fr);
  min-height: 520px;
  background: linear-gradient(135deg, #101923, #172637);
  color: #f5f0e8;
}

.mine-profile--feature .mine-profile__image {
  min-height: 520px;
}

.mine-profile--feature .mine-profile__image::after {
  background: linear-gradient(90deg, rgba(5, 10, 16, 0.1), rgba(5, 10, 16, 0.52));
}

.mine-profile--feature .mine-profile__name,
.mine-profile--feature .mine-profile__location,
.mine-profile--feature .mine-profile__text {
  color: #f5f0e8;
}

.mine-profile--feature .mine-profile__text,
.mine-profile--panel .mine-profile__text {
  color: rgba(245, 240, 232, 0.72);
}

.mine-profile--feature .mine-profile__details,
.mine-profile--panel .mine-profile__details {
  border-color: rgba(245, 240, 232, 0.12);
}

.mine-profile--feature .mine-profile__detail,
.mine-profile--panel .mine-profile__detail {
  background: rgba(255, 255, 255, 0.055);
  border-color: rgba(245, 240, 232, 0.12);
}

.mine-profile--feature .mine-profile__detail-label,
.mine-profile--panel .mine-profile__detail-label {
  color: rgba(245, 240, 232, 0.62);
}

.mine-profile--feature .mine-profile__cta {
  background: #f5f0e8;
  color: #101923;
}

.mine-profile--wide {
  grid-template-columns: 1fr;
  overflow: visible;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.mine-profile--wide:hover {
  box-shadow: none;
}

.mine-profile--wide .mine-profile__image {
  min-height: clamp(340px, 45vw, 470px);
}

.mine-profile--wide .mine-profile__info {
  width: min(88%, 980px);
  margin: clamp(-5rem, -8vw, -3rem) auto 0;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 246, 240, 0.98)),
    var(--bg-card);
  border: 1px solid rgba(14, 25, 35, 0.08);
  box-shadow: 0 28px 74px rgba(14, 25, 35, 0.14);
}

.mine-profile--wide .mine-profile__details {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.mine-profile--compact {
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
  background: #fbfaf6;
}

.mine-profile--compact .mine-profile__image {
  min-height: 300px;
}

.mine-profile--compact .mine-profile__details {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.mine-profile--panel {
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  background:
    linear-gradient(135deg, rgba(16, 25, 35, 0.98), rgba(32, 42, 52, 0.96)),
    #101923;
}

.mine-profile--panel .mine-profile__info {
  color: #f5f0e8;
}

.mine-profile--panel .mine-profile__name,
.mine-profile--panel .mine-profile__location {
  color: #f5f0e8;
}

.mine-profile--panel .mine-profile__cta {
  background: #f5f0e8;
  color: #101923;
}

/* Quick Stats Bar */
.mines-stats {
  padding: 2.5rem var(--section-padding-x);
  background: var(--bg-secondary);
}

.mines-stats__container {
  max-width: var(--max-width);
  margin: 0 auto;
}

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

.mines-stat {
  text-align: center;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
}

.mines-stat__value {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--primary-gold-500);
  margin-bottom: 0.35rem;
}

.mines-stat__label {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* CTA */
.mines-cta {
  position: relative;
  padding: 3.5rem var(--section-padding-x);
  background: var(--bg-primary);
  overflow: hidden;
}

.mines-cta::before {
  content: '';
  position: absolute;
  top: -10%;
  left: -5%;
  width: 110%;
  height: 120%;
  background: var(--navy-900);
  transform: rotate(-3deg);
  z-index: 0;
}

.mines-cta__container {
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.mines-cta__content {
  color: white;
}

.mines-cta__overline {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--primary-gold-400);
  margin-bottom: 0.75rem;
}

.mines-cta__title {
  font-family: var(--font-heading);
  font-size: var(--h1-size);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.mines-cta__text {
  font-size: var(--text-sm);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 1.25rem;
}

.mines-cta__image {
  border-radius: var(--radius-md);
  overflow: hidden;
}

.mines-cta__image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Responsive */
@media (max-width: 1200px) {
  .mine-profile,
  .mine-profile--feature,
  .mine-profile--compact,
  .mine-profile--panel {
    grid-template-columns: 1fr;
  }

  .mine-profile--reverse {
    direction: ltr;
  }

  .mine-profile__image {
    min-height: 240px;
  }

  .mine-profile--feature .mine-profile__image,
  .mine-profile--wide .mine-profile__image {
    min-height: 360px;
  }

  .mine-profile--compact .mine-profile__details,
  .mine-profile--wide .mine-profile__details {
    grid-template-columns: repeat(2, 1fr);
  }

  .mines-cta__container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .mines-hero {
    height: auto;
    min-height: 450px;
    padding-top: calc(var(--navbar-height) + 2rem);
    padding-bottom: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
  }

  .mines-hero__content {
    position: relative;
    z-index: 10;
    width: 100%;
    padding: 0 1.5rem;
    margin: 0;
  }

  .mines-hero__title {
    font-size: var(--display-size);
    line-height: 1.1;
  }

  .mines-overview {
    padding: 2.5rem var(--section-padding-x);
  }

  .mine-profile__info {
    padding: 2rem 1.5rem;
  }

  .mine-profile {
    margin-bottom: 2rem;
  }

  .mine-profile--wide .mine-profile__info {
    width: calc(100% - 1.5rem);
    margin-top: -2.25rem;
  }

  .mine-profile--feature .mine-profile__image,
  .mine-profile--wide .mine-profile__image {
    min-height: 280px;
  }

  .mine-profile__badges {
    top: 0.9rem;
    left: 0.9rem;
    right: 0.9rem;
    gap: 0.5rem;
  }

  .mine-profile__badges .mine-profile__status-badge,
  .mine-profile__badges .ops-pulse {
    font-size: 0.65rem;
  }

  .mine-profile__badges .ops-pulse {
    padding: 0.4rem 0.7rem;
    max-width: 56%;
  }

  .mine-profile__badges .ops-pulse__dot {
    flex-basis: 7px;
    min-width: 7px;
    width: 7px;
    height: 7px;
  }

  .mine-profile__details,
  .mine-profile--compact .mine-profile__details,
  .mine-profile--wide .mine-profile__details {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mine-profile__detail {
    padding: 0.8rem 0.65rem;
    text-align: center;
  }

  .mines-stats {
    padding: 2rem var(--section-padding-x);
  }

  .mines-stats__grid {
    grid-template-columns: 1fr;
  }

  .mines-cta {
    padding: 2.5rem var(--section-padding-x);
  }

  .mines-cta::before {
    transform: rotate(0deg);
  }
}
