/* KM Minerals — from Figma screenshots
   Colors: navy #0B1D33, gold #C5A059, white, grey body #555
   Type: Montserrat — hero 48px/700, section 32px/700, body 16px/400
   Spacing: section 100px desktop / 64px mobile, container 1200px
   Radius: buttons 4px, cards 8px | Breakpoint: 1024px desktop */

@font-face {
  font-family: 'KMFont';
  src: url('../fonts/do-hyeon-119-400-normal.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'BodyFont';
  src: url('../fonts/Montserrat-VariableFont_wght.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}

:root {
  --font-heading: "KMFont", sans-serif;
  --font-body: "BodyFont", sans-serif;
}

:root {
  --navy-900: #0b1d33;
  --navy-800: #112132;
  --navy-700: #1a2b48;
  --gold-500: #B8860B;
  /*--gold-500: #c5a059;*/
  --gold-400: #d4af37;
  --gold-600: #b8860b;
  --white: #F9FAFB;
  --grey-50: #f4f4f4;
  --grey-600: #555555;
  --grey-400: #9ca3af;
  --black: #050a14;
  --font: "KMFont", system-ui, sans-serif;
  --container: 1200px;
  --pad-x: clamp(1.25rem, 4vw, 1.5rem);
  --section-y: clamp(4rem, 10vw, 6.25rem);
  --radius-btn: 10px;
  --radius-card: 8px;
  --transition: 0.2s ease;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--grey-600);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--gold-400); outline-offset: 2px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.container {
  width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--pad-x);
}
.container .contact-copy {
  text-align: left;
  color: var(--grey-50);
}
.section { padding-block: var(--section-y); }
.section--grey { background: var(--grey-50); }
.text-center { text-align: center; }

.eyebrow {
  margin: 0 0 0.625rem; font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-500);
}
.heading-hero {
  margin: 0 0 1.25rem; font-size: clamp(1.75rem, 4vw, 3rem); font-weight: 700;
  line-height: 1.15; letter-spacing: -0.02em; color: var(--white);
}
.heading-section {
  margin: 0 0 1rem; font-size: clamp(2rem, 2.5vw, 2rem); font-weight: 700;
  line-height: 1.25; letter-spacing: -0.02em; color: var(--navy-900);
}
.heading-section--light { color: var(--white); }
.body-copy { margin: 0 0 2rem; font-size: 1rem; color: var(--grey-600); font-family: var(--font-body);}
.body-copy:last-child { margin-bottom: 0; }
.body-copy--light { color: rgba(255,255,255,0.88); }

.link-more {
  display: inline-flex; align-items: center; gap: 0.35rem; margin-top: 0.75rem;
  font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--gold-600); transition: color var(--transition);
}
.link-more:hover { color: var(--gold-500); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.35rem;
  padding: 0.875rem 1.75rem; font-family: inherit; font-size: 0.8125rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; border: none; border-radius: var(--radius-btn);
  cursor: pointer; transition: background var(--transition);
}
.btn--gold {
  background: var(--gold-500);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.rem 1.5rem;
}

.btn__arrow {
  display: flex;
  align-items: center;
}

.btn__arrow svg {
  width: 20px;
  height: 20px;
}
.btn--gold svg{ transition: transform 0.3s ease; }
.btn--gold:hover svg{ transform: translateX(2px); }
.btn--gold:hover { background-color:#d4af37; }
.btn--navy { background: var(--navy-900); color: var(--white); }
.btn--navy:hover { background: var(--navy-800); }

/* Header */
.site-header { position: absolute; inset: 0 0 auto; z-index: 100; padding-block: 1.125rem; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.logo {
  font-size: 1rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--white);
}
.logo__mark { color: var(--gold-500); }
.nav-desktop { display: none; }
.nav-desktop__list { display: flex; align-items: center; gap: clamp(1rem,2.5vw,2rem); margin: 0; padding: 0; list-style: none; }
.nav-desktop__link {
  font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--white); transition: color var(--transition);
}
.nav-desktop__link:hover { color: var(--gold-400); }

.menu-toggle:checked ~ .site-header .nav-mobile__panel,
.menu-toggle:checked ~ .site-header .nav-mobile__backdrop { opacity: 1; visibility: visible; pointer-events: auto; }
.menu-toggle:checked ~ .site-header .nav-mobile__burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle:checked ~ .site-header .nav-mobile__burger span:nth-child(2) { opacity: 0; }
.menu-toggle:checked ~ .site-header .nav-mobile__burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.site-header .nav-mobile__backdrop {
  position: fixed; inset: 0; z-index: 110; background: rgba(0,0,0,0.55);
  opacity: 0; visibility: hidden; pointer-events: none; transition: opacity var(--transition); cursor: pointer;
}
.nav-mobile__burger {
  position: relative; z-index: 130; display: flex; flex-direction: column; justify-content: center;
  gap: 6px; width: 44px; height: 44px; padding: 10px; cursor: pointer;
}
.nav-mobile__burger span { display: block; height: 2px; background: var(--white); transition: transform 0.25s, opacity 0.2s; }
.nav-mobile__panel {
  position: fixed; top: 0; right: 0; z-index: 120; width: min(300px,85vw); height: 100vh;
  padding: 5rem 1.5rem 2rem; background: var(--navy-900); box-shadow: -8px 0 32px rgba(0,0,0,0.35);
  opacity: 0; visibility: hidden; pointer-events: none; transition: opacity var(--transition); overflow-y: auto;
}
.nav-mobile__list { margin: 0; padding: 0; list-style: none; }
.nav-mobile__link {
  display: block; padding: 0.85rem 0; font-size: 0.8125rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--white);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav-mobile__link:hover { color: var(--gold-400); }

@media (min-width: 1024px) {
  .nav-desktop { display: block; }
  .nav-mobile__burger, .nav-mobile__panel, .nav-mobile__backdrop { display: none; }
}



/* Hero */
.hero {
  position: relative; min-height: min(100vh,880px); display: flex; align-items: center;
  padding-block: clamp(6.5rem,16vh,9rem) var(--section-y); color: var(--white);
}
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero__overlay {
  position: absolute; inset: 0;
  background-color: rgba(30, 58, 95, 0.05);
}
.hero .container { position: relative; z-index: 1; }
.hero__content { max-width: 36rem; }
.hero__lead { margin: 0 0 1.75rem; font-size: clamp(0.9375rem,1.2vw,1.0625rem); color: rgba(255,255,255,0.92); max-width: 34rem; }

@media (max-width: 1023px) {
  .hero__content { max-width: none; text-align: center; margin-inline: auto; }
  .hero__lead { margin-inline: auto; }
  .hero__actions { display: flex; justify-content: center; }
}
@media (min-width: 1024px) { .hero__content { max-width: 52%; } }

/* Feature rows */
.feature-row {
  display: grid; grid-template-columns: 1fr; gap: clamp(1.75rem,4vw,3rem); align-items: center;
}
.feature-row + .feature-row { margin-top: clamp(3rem,6vw,4.5rem); }

@media (max-width: 1023px) {
  .feature-row { text-align: center; }
  .feature-row__content { order: 1; }
  .feature-row__media { order: 2; }
}
@media (min-width: 1024px) {
  .feature-row { grid-template-columns: 1fr 1fr; gap: 3.5rem 4rem; }
  .feature-row--reverse .feature-row__media { order: 2; }
  .feature-row--reverse .feature-row__content { order: 1; }
}

.hex-frame { position: relative; width: 100%; margin-inline: auto; }
@media (min-width: 1024px) {
  .hex-frame { width: 100%; max-width: 400px; margin-inline: 0; }
  .feature-row--reverse .hex-frame { margin-left: auto; }
  .feature-row:not(.feature-row--reverse) .hex-frame { margin-right: auto; }
}
.hex-frame__shadow {
  position: absolute; width: 100%; aspect-ratio: 1/1.12; left: -7%; bottom: -5%;
}
.hex-frame__inner {
  position: relative; z-index: 1; width: 100%; aspect-ratio: 1/1.12;
  overflow: hidden; 
}
.hex-frame__inner img { width: 100%; height: 100%; object-fit: cover; }

/* Gold banner */
.gold-banner {
  padding-block: clamp(3rem,7vw,4.5rem);
  background: url("../images/partner-bg.png") no-repeat center center scroll;
  background-size: cover;
  color: var(--navy-900); text-align: center;
}
.gold-banner__title {
  margin: 0 0 0.75rem; font-size: clamp(2rem,2.5vw,2rem); font-weight: 700;
  line-height: 1.25; color: var(--grey-50);
}
.gold-banner__text { margin: 0 auto; max-width: 42rem; font-size: 1rem; line-height: 1.65; color: var(--grey-50); opacity: 0.92; }

/* Stats */
.stats { position: relative; padding-block: clamp(3rem,7vw,4.5rem); color: var(--white); background: url("../images/blue-banner.jpg") #0b1d33 no-repeat center center fixed; background-size: cover; }
.stats__bg { position: absolute; inset: 0; z-index: 0; }
.stats__bg img { width: 100%; height: 100%; object-fit: cover; }
.stats__overlay { position: absolute; inset: 0; background: rgba(11, 29, 51, 0.88); }
.stats .container { position: relative; z-index: 1; }
.stats__grid { display: grid;  grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 768px) { .stats__grid { grid-template-columns: repeat(3,1fr); gap: 1.5rem; } }
.stat-item { text-align: center; }
.stat-item__icon { width: 48px; height: 48px; margin: 0 auto 0.75rem; display: grid; place-items: center; color: var(--gold-500); }
.stat-item__icon svg { width: 28px; height: 28px; }
.stat-item__value { margin: 0 0 0.25rem; font-size: clamp(1.75rem,3vw,2.25rem); font-weight: 700; color: var(--white); }
.stat-item__label { margin: 0; font-size: 0.8125rem; color: rgba(255,255,255,0.85); }

/* Minerals */
.minerals__grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 0.75rem; }
@media (min-width: 640px) { .minerals__grid { grid-template-columns: repeat(3,1fr); gap: 1rem; } }
@media (min-width: 1024px) { .minerals__grid { grid-template-columns: repeat(6,1fr); } }
.mineral-card { border-radius: var(--radius-card); overflow: hidden; background: var(--white); }
.mineral-card__img { aspect-ratio: 1; overflow: hidden; }
.mineral-card__img img { width: 100%; height: 100%; object-fit: cover; }
.mineral-card__label {
  margin: -35px 0 0; padding: 0.5rem; font-size: .8rem; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase; text-align: center; color: var(--grey-50);
}

/* Overlap */
.overlap-block { display: grid; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 1024px) {
  .overlap-block { grid-template-columns: 1fr 1fr; min-height: 420px; }
  .overlap-block--reverse { direction: rtl; }
  .overlap-block--reverse > * { direction: ltr; }
}
.overlap-block__media { min-height: 280px; }
.overlap-block__media img { width: 100%; height: 100%; min-height: 280px; object-fit: cover; }
.overlap-block__card {
  position: relative; z-index: 2; padding: clamp(1.75rem,4vw,2.5rem);
}

.mineral-section {
  background: url("../images/mineral-section-bg.jpg") no-repeat center center scroll;
  background-size: cover;
}

.overlap-block__card_2 {
  position: relative; z-index: 2; padding: clamp(1.75rem,4vw,2.5rem);
  background: var(--white); box-shadow: 0 20px 50px rgba(0,0,0,0.12);
}

@media (min-width: 1024px) {
  .overlap-block__card_2 { margin: 2.5rem 0 2.5rem -3rem; }
  .overlap-block--reverse .overlap-block__card { margin: 2.5rem 0 2.5rem -3rem; }
}
.overlap-block--gold { background: linear-gradient(135deg, var(--gold-600), var(--gold-500)); }

/* Values dark */
.values-dark { background: var(--navy-700); color: var(--white); }
.values-dark__grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 768px) { .values-dark__grid { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 1024px) { .values-dark__grid { grid-template-columns: repeat(4,1fr); gap: 1.5rem; } }
.value-dark { text-align: center; }
.value-dark__icon { width: 56px; height: 56px; margin: 0 auto 1rem; display: grid; place-items: center; color: var(--gold-500); }
.value-dark__icon svg { width: 32px; height: 32px; }
.value-dark__title {
  display: inline-block;
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  transition: transform 0.2s ease;
}

.value-dark__title:hover {
  transform: scale(1.1);
}
.value-dark__text { margin: 0; font-size: 0.875rem; line-height: 1.6; color: rgba(255,255,255,0.85); }

/* Philosophy */
.philosophy__list { display: grid; grid-template-columns: 1fr; gap: 2.5rem; max-width: 640px; margin-inline: auto; }
.philosophy__list svg { margin: 0 auto;}
.philosophy-item { text-align: center; }
.philosophy-item__icon { width: 64px; height: 64px; margin: 0 auto 0.875rem; display: grid; place-items: center; color: var(--gold-500); }
.philosophy-item__icon svg { width: 64px; height: 64px; }
.philosophy-item__title { margin: 0 0 0.5rem; font-size: 1.125rem; font-weight: 700; color: var(--navy-900); }

/* Split */
/*.split-section { display: grid; grid-template-columns: 1fr; }
@media (min-width: 1024px) { .split-section { grid-template-columns: 1fr 1fr; min-height: 380px; } }*/
.split-section {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-content: center;
  justify-items: center;
}
.split-section.navy {
    margin-top: 50px;
  }
.split-section__panel {
  display: flex; 
  flex-direction: column; 
  justify-items: center;
  align-content: center;
  padding: 60px 80px;
  width: 40%;
  text-align: center;
}
.split-section__panel img {
  margin: 0 auto;
}

.split-section__panel--gold { background: linear-gradient(135deg, #795703, #B8860B);}
.split-section__panel--navy { background: linear-gradient(135deg, #133A6A, #31588C);}
.split-section__panel--gold .heading-section, .split-section__panel--gold .body-copy { color: var(--grey-50); }
.split-section__media { width: 60%;}
.split-section__media img { width: 100%; height: 100%; max-height: 680px; min-height: 280px; object-fit: cover; }
.split-section__quote {
  margin: 0; font-size: clamp(1.125rem,2vw,1.5rem); font-weight: 600; line-height: 1.45; color: var(--navy-900);
}
@media (max-width: 767px) {
  .split-section__panel {
    width: 100% !important;
  }

  .split-section__media { 
    width: 100%;
  }
 
  .split-section.gold .split-section__panel {
    order: 1 !important;
  }
  .heading-hero {
    margin: 0 auto 1.25rem !important;
    width: 90% !important;
  }
  
  .heading-hero {
  font-size: 36px;
}



}

/* Triple hex */
.hex-triple { display: grid; grid-template-columns: 1fr; gap: 1.5rem; justify-items: center; }
@media (min-width: 768px) { .hex-triple { grid-template-columns: repeat(3,1fr); gap: 1.25rem; } }
.hex-triple .hex-frame { max-width: 280px; }

/* CTA row */
.cta-row { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; text-align: center; }
@media (min-width: 1024px) { .cta-row { flex-direction: row; justify-content: center; text-align: center; } }
.cta-row__title { margin: 0; font-size: clamp(1.25rem,2vw,1.75rem); font-weight: 700; color: var(--grey-50); }

/* Footer */
.site-footer { background: var(--black); color: rgba(255,255,255,0.85); padding-block: clamp(3rem,7vw,4rem) 1.25rem; }
.site-footer__grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 640px) { .site-footer__grid { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 1024px) { .site-footer__grid { grid-template-columns: 1.3fr 1fr 1fr; } }
.footer-heading {
  margin: 0 0 0.875rem; font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-500);
}
.footer-list { margin: 0; padding: 0; list-style: none; }
.footer-list li { margin-bottom: 0.45rem; }
.footer-list a { font-size: 0.875rem; color: rgba(255,255,255,0.88); transition: color var(--transition); }
.footer-list a:hover { color: var(--gold-400); }
.footer-text { margin: 0 0 0.5rem; font-size: 0.875rem; line-height: 1.6; color: var(--grey-400); }
.site-footer__bottom {
  display: flex; flex-direction: column; align-items: center; gap: 1rem;
  margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,0.1);
}
@media (min-width: 768px) { .site-footer__bottom { flex-direction: row; justify-content: space-between; } }
.footer-social { display: flex; gap: 0.625rem; }
.footer-social a {
  width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%;
background-color: #0C1D2E;
color: #fffff);
transition: background-color var(--transition);
}
.footer-social a:hover { background: #; }
.footer-social svg { width: 16px; height: 16px; }
.intro-copy {
  max-width: 36rem;
  margin-inline: auto;
  margin-bottom: 2rem;
}

.values-dark__heading {
  margin-bottom: 2.5rem;
}

.footer-brand {
  margin-top: 0.75rem;
}

#backToTop {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 52px;
  height: 52px;
  border: none;
  border-radius: 50%;
  background: #B8860B;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 9999;

  /* Subtle drop shadow */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

  #backToTop.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  #backToTop:hover {
    transform: translateY(-2px);
  }

 
.gold-banner {
  background: url("../images/partner-bg.png") center center / cover fixed;
}

.mineral-section {
  background: url("../images/mineral-section-bg.jpg") center center / cover fixed;
}

/* Scroll reveal animation */
#about .feature-row,
.section--grey .feature-row,
.section--grey .overlap-block {
  opacity: 0;
  transition: all 0.8s ease;
}

#about .feature-row:nth-child(odd),
.section--grey .feature-row:nth-child(odd),
.section--grey .overlap-block:nth-child(odd) {
  transform: translateX(-60px);
}

#about .feature-row:nth-child(even),
.section--grey .feature-row:nth-child(even),
.section--grey .overlap-block:nth-child(even) {
  transform: translateX(25px);
}

#about .feature-row.show,
.section--grey .feature-row.show,
.section--grey .overlap-block.show {
  opacity: 1;
  transform: translateX(0);
}


.gold-banner__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.gold-banner__icon img {
    display: block;
    margin: 0 auto;
}

