/* ==========================================================================
   AFRIGOLD MINING — Stylesheet
   --------------------------------------------------------------------------
   Design system grounded in the mineral/mining subject matter rather than
   generic "luxury site" defaults:
     - Basalt / Ore / Slate / Quartz / Gold — named after real rock & metal
     - Fraunces (soft-contrast serif) for display type, Manrope for UI/body
     - Asymmetric, left-aligned editorial layout (not a centered SaaS hero)
     - Motion is restrained: one orchestrated hero entrance + one animated
       "Africa to the World" moment; everything else uses quiet, functional
       micro-interactions only.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Reset & base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

input,
select,
textarea {
  font: inherit;
  color: inherit;
}

/* --------------------------------------------------------------------------
   2. Design tokens
   -------------------------------------------------------------------------- */
:root {
  /* --- Color: named after real rock & metal, not generic "dark/accent" --- */
  --basalt: #12100d;        /* primary background — volcanic rock, warm near-black */
  --basalt-deep: #0a0907;   /* deepest background, hero base */
  --ore: #211d17;           /* secondary surface — raised panels, cards on dark */
  --ore-light: #362f24;     /* hairlines / borders on dark surfaces */
  --gold: #c79a3d;          /* primary metallic gold accent */
  --gold-pale: #e8ce8e;     /* light gold — hover states, small highlights */
  --gold-deep: #8f6b24;     /* deep gold — gradients, pressed states */
  --quartz: #f6f3ec;        /* off-white — light section backgrounds */
  --quartz-dim: #ece6d8;    /* slightly deeper quartz for subtle contrast */
  --ink: #18150f;           /* near-black text on light backgrounds */
  --slate: #9c9384;         /* muted warm gray — secondary text on dark */
  --slate-dim: #6b6558;     /* muted text on light backgrounds */

  /* --- Type --- */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Manrope', -apple-system, 'Segoe UI', sans-serif;

  /* --- Layout --- */
  --container-w: 1240px;
  --gutter: clamp(1.5rem, 4vw, 3rem);
  --radius: 3px;

  /* --- Motion --- */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* --------------------------------------------------------------------------
   3. Base typography
   -------------------------------------------------------------------------- */
body {
  font-family: var(--font-body);
  background: var(--quartz);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0.01em;
}

p {
  max-width: 62ch;
}

.container {
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Visible keyboard focus — accessibility floor */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.03em;
  padding: 0.95em 1.9em;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: transform 0.35s var(--ease), background-color 0.35s var(--ease),
    border-color 0.35s var(--ease), color 0.35s var(--ease);
  white-space: nowrap;
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold-pale), var(--gold) 60%, var(--gold-deep));
  color: var(--basalt-deep);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -8px rgba(199, 154, 61, 0.55);
}

.btn-outline {
  border-color: rgba(246, 243, 236, 0.35);
  color: var(--quartz);
}

.btn-outline:hover {
  border-color: var(--gold-pale);
  color: var(--gold-pale);
}

.btn-outline-dark {
  border-color: rgba(24, 21, 15, 0.25);
  color: var(--ink);
}

.btn-outline-dark:hover {
  border-color: var(--gold-deep);
  color: var(--gold-deep);
}

.btn-sm {
  padding: 0.65em 1.4em;
  font-size: 0.82rem;
}

.btn-block {
  width: 100%;
  justify-content: center;
}

/* --------------------------------------------------------------------------
   5. Header / Navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.4rem 0;
  background: transparent;
  transition: background-color 0.4s var(--ease), padding 0.4s var(--ease),
    box-shadow 0.4s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(10, 9, 7, 0.92);
  backdrop-filter: blur(10px);
  padding: 0.9rem 0;
  box-shadow: 0 8px 30px -12px rgba(0, 0, 0, 0.5);
}

/* Utility bar — quick contact + language switcher, collapses on scroll */
.utility-bar {
  border-bottom: 1px solid var(--ore-light);
  transition: max-height 0.4s var(--ease), opacity 0.3s var(--ease),
    margin 0.4s var(--ease), border-color 0.4s var(--ease);
  max-height: 44px;
  opacity: 1;
  overflow: hidden;
  margin-bottom: 1rem;
}

.site-header.is-scrolled .utility-bar {
  max-height: 0;
  opacity: 0;
  margin-bottom: 0;
  border-color: transparent;
}

.utility-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.7rem;
  font-size: 0.78rem;
}

.utility-contact {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.utility-contact a {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  color: rgba(246, 243, 236, 0.58);
  transition: color 0.3s var(--ease);
}

.utility-contact a:hover {
  color: var(--gold-pale);
}

.utility-lang {
  display: flex;
  align-items: center;
  gap: 0.5em;
}

.lang-link {
  color: rgba(246, 243, 236, 0.5);
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: color 0.3s var(--ease);
}

.lang-link:hover {
  color: var(--gold-pale);
}

.lang-link.is-active {
  color: var(--gold-pale);
  pointer-events: none;
}

.lang-sep {
  color: rgba(246, 243, 236, 0.28);
  font-size: 0.75rem;
}

@media (max-width: 640px) {
  .utility-contact {
    display: none;
  }
  .utility-bar-inner {
    justify-content: flex-end;
  }
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo {
  display: flex;
  align-items: baseline;
  gap: 0.35em;
  font-family: var(--font-display);
  font-size: 1.28rem;
  color: var(--quartz);
}

.logo-text {
  font-weight: 700;
  letter-spacing: 0.04em;
}

.logo-accent {
  font-weight: 400;
  font-style: italic;
  color: var(--gold-pale);
}

.main-nav .nav-list {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 1.8vw, 2.1rem);
}

.nav-link {
  position: relative;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(246, 243, 236, 0.78);
  padding: 0.3em 0;
  transition: color 0.3s var(--ease);
}

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

.nav-link:hover,
.nav-link.active {
  color: var(--quartz);
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.header-cta {
  display: none;
}

@media (min-width: 480px) {
  .header-cta {
    display: inline-flex;
  }
}

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 26px;
  height: 20px;
}

.hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--quartz);
  border-radius: 2px;
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
}

.hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (min-width: 900px) {
  .hamburger {
    display: none;
  }
}

@media (max-width: 899px) {
  .main-nav {
    position: fixed;
    inset: 0 0 0 30%;
    background: var(--basalt-deep);
    display: flex;
    align-items: center;
    padding: 6rem 2.2rem 2.2rem;
    transform: translateX(100%);
    transition: transform 0.45s var(--ease);
    border-left: 1px solid var(--ore-light);
  }

  .main-nav.is-open {
    transform: translateX(0);
  }

  .main-nav .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.6rem;
    width: 100%;
  }

  .nav-link {
    font-size: 1.05rem;
  }
}

/* --------------------------------------------------------------------------
   6. Hero — asymmetric, left-aligned, one orchestrated entrance
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--basalt-deep);
  overflow: hidden;
  padding-top: 8.5rem;
}

.hero-carousel {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-color: #1a160f;
  background-image: linear-gradient(160deg, #1a160f, #0a0907 70%);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.6s var(--ease);
}

.hero-slide.is-active {
  opacity: 1;
}

.hero-carousel-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(115deg, rgba(10, 9, 7, 0.94) 0%, rgba(10, 9, 7, 0.86) 45%, rgba(10, 9, 7, 0.6) 100%),
    radial-gradient(ellipse at 78% 30%, rgba(199, 154, 61, 0.16), transparent 55%);
}

.hero-carousel-overlay::after {
  /* fine strata texture — thin horizontal lines evoking rock layers */
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    180deg,
    rgba(246, 243, 236, 0.025) 0px,
    rgba(246, 243, 236, 0.025) 1px,
    transparent 1px,
    transparent 34px
  );
  opacity: 0.6;
}

.hero-carousel-nav {
  position: absolute;
  z-index: 3;
  right: var(--gutter);
  bottom: 2.2rem;
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.hero-carousel-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  border: 1px solid rgba(246, 243, 236, 0.35);
  background: transparent;
  color: var(--quartz);
  font-size: 0.85rem;
  cursor: pointer;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease), background-color 0.25s var(--ease);
}

.hero-carousel-arrow:hover,
.hero-carousel-arrow:focus-visible {
  border-color: var(--gold-pale);
  color: var(--gold-pale);
  background: rgba(199, 154, 61, 0.08);
}

.hero-carousel-dots {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.hero-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  border: 1px solid rgba(246, 243, 236, 0.5);
  background: transparent;
  padding: 0;
  cursor: pointer;
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.hero-dot:hover,
.hero-dot:focus-visible {
  border-color: var(--gold-pale);
}

.hero-dot.is-active {
  background: var(--gold-pale);
  border-color: var(--gold-pale);
  transform: scale(1.25);
}

@media (max-width: 599px) {
  .hero-carousel-nav {
    right: auto;
    left: var(--gutter);
    bottom: 4.6rem;
  }
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 62%) 1fr;
  gap: 2rem;
  align-items: end;
  min-height: calc(100vh - 8.5rem);
  padding-bottom: 5rem;
}

.hero-content {
  border-left: 2px solid var(--gold);
  padding-left: clamp(1.2rem, 3vw, 2.4rem);
}

.hero-eyebrow {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--gold-pale);
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(14px);
}

.hero-title {
  font-size: clamp(2.6rem, 6vw, 5.1rem);
  color: var(--quartz);
  margin-top: 0.5rem;
  opacity: 0;
  transform: translateY(18px);
}

.hero-subtitle {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  color: var(--gold-pale);
  margin-top: 0.9rem;
  opacity: 0;
  transform: translateY(18px);
}

.hero-desc {
  font-size: 1.02rem;
  color: rgba(246, 243, 236, 0.75);
  margin-top: 1.4rem;
  max-width: 46ch;
  opacity: 0;
  transform: translateY(18px);
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.2rem;
  opacity: 0;
  transform: translateY(18px);
}

/* Orchestrated load-in sequence — the one deliberate entrance moment */
.hero.is-ready .hero-eyebrow { animation: hero-rise 0.9s var(--ease) 0.15s forwards; }
.hero.is-ready .hero-title { animation: hero-rise 0.9s var(--ease) 0.32s forwards; }
.hero.is-ready .hero-subtitle { animation: hero-rise 0.9s var(--ease) 0.5s forwards; }
.hero.is-ready .hero-desc { animation: hero-rise 0.9s var(--ease) 0.66s forwards; }
.hero.is-ready .hero-buttons { animation: hero-rise 0.9s var(--ease) 0.82s forwards; }

@keyframes hero-rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-mark {
  justify-self: end;
  width: min(220px, 80%);
  opacity: 0.85;
}

.scroll-indicator {
  position: absolute;
  bottom: 2.2rem;
  left: var(--gutter);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: rgba(246, 243, 236, 0.55);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.scroll-indicator .line {
  width: 34px;
  height: 1px;
  background: rgba(246, 243, 236, 0.4);
  position: relative;
  overflow: hidden;
}

.scroll-indicator .line::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gold-pale);
  animation: scroll-line 2.2s ease-in-out infinite;
}

@keyframes scroll-line {
  0% { transform: translateX(-100%); }
  50% { transform: translateX(0); }
  100% { transform: translateX(100%); }
}

@media (max-width: 899px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }
  .hero-mark {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   7. Sections — shared rhythm
   -------------------------------------------------------------------------- */
.section {
  padding: clamp(4.5rem, 9vw, 7.5rem) 0;
  scroll-margin-top: 90px;
}

.section-dark {
  background: var(--basalt);
  color: var(--quartz);
}

.section-ore {
  background: var(--ore);
  color: var(--quartz);
}

.section-light {
  background: var(--quartz);
  color: var(--ink);
}

.section-head {
  max-width: 640px;
  margin-bottom: 3rem;
}

.section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--gold-deep);
  margin-bottom: 0.9rem;
}

.section-dark .section-label,
.section-ore .section-label {
  color: var(--gold-pale);
}

.section-title {
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
}

.section-intro {
  margin-top: 1rem;
  font-size: 1.02rem;
  color: var(--slate-dim);
}

.section-dark .section-intro,
.section-ore .section-intro {
  color: var(--slate);
}

/* --------------------------------------------------------------------------
   8. About / Who We Are
   -------------------------------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
}

.about-media {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  background:
    linear-gradient(200deg, rgba(199, 154, 61, 0.22), transparent 60%),
    url('../images/mining/mining-operation.jpg') center/cover no-repeat,
    linear-gradient(155deg, var(--ore), var(--basalt-deep));
  border: 1px solid var(--ore-light);
}

.about-list {
  display: grid;
  gap: 0.9rem;
  margin-top: 1.8rem;
}

.about-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.8em;
  font-size: 0.98rem;
  color: var(--slate-dim);
  padding-bottom: 0.9rem;
  border-bottom: 1px solid rgba(24, 21, 15, 0.08);
}

.about-list li i {
  color: var(--gold-deep);
  margin-top: 0.28em;
  font-size: 0.85rem;
}

.flow-stat {
  margin-top: 2.2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  color: var(--ink);
}

.flow-stat .flow-arrow {
  color: var(--gold-deep);
  font-size: 1.2rem;
}

/* --------------------------------------------------------------------------
   9. Products — Gold vs Diamonds, deliberately differentiated
   -------------------------------------------------------------------------- */
.products-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem;
}

.product-card {
  position: relative;
  padding: clamp(2.2rem, 4vw, 3rem);
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}

.product-card-title {
  font-size: 1.7rem;
  margin-bottom: 0.7rem;
}

.product-card-text {
  color: var(--slate);
  font-size: 0.96rem;
  margin-bottom: 1.6rem;
}

/* Gold: solid, warm, rounded — molten metal */
.product-card.card-gold {
  border-radius: 6px;
  background:
    radial-gradient(ellipse at 20% 15%, rgba(232, 206, 142, 0.25), transparent 55%),
    linear-gradient(155deg, #2a2013, var(--basalt-deep) 75%);
  border: 1px solid var(--ore-light);
}

.product-card.card-gold .product-card-icon {
  color: var(--gold-pale);
}

/* Diamonds: angular, faceted, cooler — cut clip-path echoing a facet */
.product-card.card-diamonds {
  border-radius: 0;
  clip-path: polygon(0 0, 100% 0, 100% 92%, 92% 100%, 0 100%);
  background:
    linear-gradient(135deg, rgba(246, 243, 236, 0.06), transparent 45%),
    linear-gradient(200deg, #201c22, var(--basalt-deep) 80%);
  border: 1px solid #3a3540;
}

.product-card.card-diamonds .product-card-icon {
  color: var(--quartz);
}

.product-card-icon {
  font-size: 1.8rem;
  margin-bottom: 1.4rem;
}

.product-card-facets {
  position: absolute;
  top: 0;
  right: 0;
  width: 55%;
  height: 100%;
  opacity: 0.5;
  pointer-events: none;
}

@media (max-width: 780px) {
  .products-grid {
    grid-template-columns: 1fr;
  }
  .product-card.card-diamonds {
    clip-path: polygon(0 0, 100% 0, 100% 96%, 96% 100%, 0 100%);
  }
}

/* --------------------------------------------------------------------------
   10. Why partner with us
   -------------------------------------------------------------------------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--ore-light);
  border-left: 1px solid var(--ore-light);
}

.why-card {
  padding: 2.4rem 2rem;
  border-right: 1px solid var(--ore-light);
  border-bottom: 1px solid var(--ore-light);
  transition: background-color 0.3s var(--ease);
}

.why-card:hover {
  background: rgba(199, 154, 61, 0.05);
}

.why-icon {
  color: var(--gold-pale);
  font-size: 1.4rem;
  margin-bottom: 1.1rem;
}

.why-title {
  font-size: 1.08rem;
  margin-bottom: 0.55rem;
}

.why-text {
  font-size: 0.92rem;
  color: var(--slate);
}

@media (max-width: 900px) {
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .why-grid {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   11. Process timeline — genuinely sequential, numbering is earned
   -------------------------------------------------------------------------- */
.process-list {
  display: grid;
  gap: 0;
  margin-top: 1rem;
}

.process-step {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 1.5rem;
  padding: 1.9rem 0;
  border-bottom: 1px solid rgba(24, 21, 15, 0.1);
  align-items: baseline;
}

.process-step:first-child {
  border-top: 1px solid rgba(24, 21, 15, 0.1);
}

.process-number {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--gold-deep);
  font-weight: 600;
}

.process-title {
  font-size: 1.12rem;
  margin-bottom: 0.35rem;
}

.process-text {
  color: var(--slate-dim);
  font-size: 0.95rem;
}

@media (max-width: 560px) {
  .process-step {
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }
}

/* --------------------------------------------------------------------------
   12. Africa to the World — the second deliberate animated moment
   -------------------------------------------------------------------------- */
.africa-section {
  position: relative;
}

.africa-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.africa-graphic {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
}

.africa-graphic svg {
  width: 100%;
  height: 100%;
}

.africa-node-label {
  font-family: var(--font-body);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  fill: var(--slate);
  text-transform: uppercase;
}

.africa-route {
  stroke: var(--gold);
  stroke-width: 1.2;
  fill: none;
  stroke-dasharray: 320;
  stroke-dashoffset: 320;
}

.africa-section.is-visible .africa-route {
  animation: draw-route 1.6s var(--ease) forwards;
}

.africa-section.is-visible .africa-route:nth-child(2) { animation-delay: 0.15s; }
.africa-section.is-visible .africa-route:nth-child(3) { animation-delay: 0.3s; }
.africa-section.is-visible .africa-route:nth-child(4) { animation-delay: 0.45s; }
.africa-section.is-visible .africa-route:nth-child(5) { animation-delay: 0.6s; }

@keyframes draw-route {
  to { stroke-dashoffset: 0; }
}

.africa-node {
  fill: var(--gold-pale);
  opacity: 0;
}

.africa-section.is-visible .africa-node {
  animation: node-in 0.5s var(--ease) forwards;
  animation-delay: 1.2s;
}

@keyframes node-in {
  to { opacity: 1; }
}

.africa-text .section-title {
  margin-bottom: 1.2rem;
}

/* --------------------------------------------------------------------------
   13. Responsible sourcing
   -------------------------------------------------------------------------- */
.responsible-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2.5rem, 5vw, 4.5rem);
}

.responsible-list {
  display: grid;
  gap: 1.5rem;
}

.responsible-item {
  display: flex;
  gap: 1rem;
}

.responsible-item i {
  color: var(--gold-pale);
  font-size: 1.1rem;
  margin-top: 0.2rem;
}

.responsible-item h4 {
  font-size: 1rem;
  margin-bottom: 0.3rem;
}

.responsible-item p {
  font-size: 0.9rem;
  color: var(--slate);
}

.responsible-note {
  margin-top: 2rem;
  padding: 1.4rem 1.6rem;
  border-left: 2px solid var(--gold);
  background: rgba(199, 154, 61, 0.06);
  font-style: italic;
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--quartz);
}

/* --------------------------------------------------------------------------
   14. CTA band
   -------------------------------------------------------------------------- */
.cta-section {
  background: linear-gradient(120deg, var(--basalt-deep), #1c160c 120%);
  padding: clamp(4rem, 8vw, 6rem) 0;
  position: relative;
  overflow: hidden;
}

.cta-inner {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.cta-title {
  color: var(--quartz);
  font-size: clamp(1.7rem, 3.6vw, 2.6rem);
  margin-bottom: 1.1rem;
}

.cta-text {
  color: var(--slate);
  margin-bottom: 2rem;
  font-size: 1.02rem;
}

/* --------------------------------------------------------------------------
   15. Contact
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2.5rem, 5vw, 4.5rem);
}

.contact-info-block {
  margin-bottom: 2.2rem;
}

.contact-info-block h3 {
  font-size: 1rem;
  letter-spacing: 0.05em;
  margin-bottom: 0.6rem;
  color: var(--gold-deep);
}

.contact-info-block p,
.contact-info-block a {
  font-size: 0.98rem;
  color: var(--slate-dim);
}

.contact-social {
  display: flex;
  gap: 0.9rem;
  margin-top: 1.6rem;
}

.contact-social a {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(24, 21, 15, 0.18);
  border-radius: 50%;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}

.contact-social a:hover {
  border-color: var(--gold-deep);
  color: var(--gold-deep);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.2rem;
}

.form-group.full {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.form-control {
  padding: 0.85em 1em;
  border: 1px solid rgba(24, 21, 15, 0.18);
  border-radius: var(--radius);
  background: #fff;
  font-size: 0.96rem;
  transition: border-color 0.3s var(--ease);
}

.form-control:focus {
  border-color: var(--gold-deep);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

.form-note {
  font-size: 0.82rem;
  color: var(--slate-dim);
  margin-top: 0.8rem;
}

.form-status {
  font-size: 0.88rem;
  margin-top: 1rem;
  min-height: 1.2em;
}

.form-status.is-error {
  color: #a03a2c;
}

.form-status.is-success {
  color: #4d7a3f;
}

/* --------------------------------------------------------------------------
   16. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--basalt-deep);
  color: var(--slate);
}

.footer-inner {
  padding: 4rem 0 3rem;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 2.5rem;
}

.footer-brand .logo {
  color: var(--quartz);
}

.footer-tagline {
  margin-top: 0.8rem;
  font-family: var(--font-display);
  font-style: italic;
  color: var(--gold-pale);
  font-size: 0.98rem;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-nav a {
  font-size: 0.92rem;
  color: var(--slate);
  transition: color 0.3s var(--ease);
}

.footer-nav a:hover {
  color: var(--gold-pale);
}

.footer-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.2rem;
}

.footer-location {
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  gap: 0.5em;
}

.footer-social {
  display: flex;
  gap: 0.8rem;
}

.footer-social a {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ore-light);
  border-radius: 50%;
  font-size: 0.85rem;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}

.footer-social a:hover {
  border-color: var(--gold-pale);
  color: var(--gold-pale);
}

.footer-bottom {
  border-top: 1px solid var(--ore-light);
  padding: 1.4rem 0;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--slate);
  opacity: 0.75;
}

@media (max-width: 780px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2.2rem;
  }
}

/* --------------------------------------------------------------------------
   17. Page hero (secondary pages: about / gold / diamonds / services / contact)
   -------------------------------------------------------------------------- */
.page-hero {
  background: var(--basalt-deep);
  padding: 10.5rem 0 4.5rem;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 85% 0%, rgba(199, 154, 61, 0.14), transparent 55%);
}

.page-hero-inner {
  position: relative;
  border-left: 2px solid var(--gold);
  padding-left: clamp(1.2rem, 3vw, 2.4rem);
  max-width: 760px;
}

.page-hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--gold-pale);
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}

.page-hero-title {
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  color: var(--quartz);
}

.page-hero-desc {
  margin-top: 1.1rem;
  color: var(--slate);
  font-size: 1.02rem;
  max-width: 56ch;
}

.breadcrumb {
  margin-top: 1.6rem;
  font-size: 0.82rem;
  color: var(--slate);
  display: flex;
  gap: 0.5em;
}

.breadcrumb a {
  color: var(--slate);
  transition: color 0.3s var(--ease);
}

.breadcrumb a:hover {
  color: var(--gold-pale);
}

/* --------------------------------------------------------------------------
   18. Two-column content block (used on gold / diamonds / about / services)
   -------------------------------------------------------------------------- */
.split-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
}

.split-block.reverse .split-media {
  order: 2;
}

.split-media {
  aspect-ratio: 5 / 4;
  border-radius: var(--radius);
  border: 1px solid var(--ore-light);
  background: linear-gradient(160deg, var(--ore), var(--basalt-deep));
  position: relative;
  overflow: hidden;
}

.split-media.media-gold {
  background:
    radial-gradient(ellipse at 25% 20%, rgba(232, 206, 142, 0.3), transparent 60%),
    url('../images/gold/gold-supply.jpg') center/cover no-repeat,
    linear-gradient(160deg, #2a2013, var(--basalt-deep));
}

.split-media.media-diamonds {
  background:
    linear-gradient(135deg, rgba(246, 243, 236, 0.1), transparent 55%),
    url('../images/diamonds/diamonds-supply.jpg') center/cover no-repeat,
    linear-gradient(160deg, #201c22, var(--basalt-deep));
}

.split-media.media-landscape {
  background:
    linear-gradient(200deg, rgba(199, 154, 61, 0.18), transparent 60%),
    url('../images/mining/african-landscape.jpg') center/cover no-repeat,
    linear-gradient(155deg, var(--ore), var(--basalt-deep));
}

.split-text ul {
  margin-top: 1.5rem;
  display: grid;
  gap: 0.9rem;
}

.split-text ul li {
  display: flex;
  gap: 0.7em;
  font-size: 0.96rem;
  color: var(--slate-dim);
}

.split-text ul li i {
  color: var(--gold-deep);
  margin-top: 0.3em;
  font-size: 0.8rem;
}

@media (max-width: 860px) {
  .split-block,
  .split-block.reverse .split-media {
    order: initial;
  }
  .split-block {
    grid-template-columns: 1fr;
  }
  .about-grid,
  .africa-grid,
  .responsible-grid,
  .contact-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-group.full {
    grid-column: auto;
  }
}

/* --------------------------------------------------------------------------
   19. Product Gallery
   -------------------------------------------------------------------------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: minmax(140px, auto);
  gap: 1.4rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--ore-light);
  background: var(--ore);
  cursor: pointer;
  grid-column: span 3;
  min-height: 260px;
}

.gallery-item.g-featured {
  grid-column: span 4;
  grid-row: span 2;
  min-height: 340px;
}

.gallery-item.g-a,
.gallery-item.g-b {
  grid-column: span 2;
}

.gallery-item.g-c,
.gallery-item.g-d {
  grid-column: span 3;
}

.gallery-item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.gallery-item:hover img,
.gallery-item:focus-visible img {
  transform: scale(1.06);
}

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(10, 9, 7, 0.92) 0%, rgba(10, 9, 7, 0.55) 34%, transparent 62%);
}

.gallery-item-body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.4rem 1.5rem;
}

.gallery-item-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--basalt-deep);
  background: linear-gradient(135deg, var(--gold-pale), var(--gold) 60%, var(--gold-deep));
  padding: 0.32em 0.75em;
  border-radius: 2px;
  margin-bottom: 0.7rem;
}

.gallery-item-title {
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  color: var(--quartz);
  margin-bottom: 0.35rem;
}

.gallery-item.g-featured .gallery-item-title {
  font-size: clamp(1.3rem, 2.4vw, 1.85rem);
}

.gallery-item-desc {
  font-size: 0.88rem;
  color: var(--slate);
  max-width: 42ch;
}

.gallery-item-expand {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  width: 2.2rem;
  height: 2.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(10, 9, 7, 0.55);
  border: 1px solid rgba(246, 243, 236, 0.25);
  color: var(--quartz);
  font-size: 0.85rem;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease);
}

.gallery-item:hover .gallery-item-expand,
.gallery-item:focus-visible .gallery-item-expand {
  opacity: 1;
  transform: translateY(0);
}

.gallery-item:hover .gallery-item-expand,
.gallery-item:focus-visible .gallery-item-expand {
  border-color: var(--gold-pale);
  color: var(--gold-pale);
}

@media (max-width: 900px) {
  .gallery-item.g-featured {
    grid-column: span 6;
    grid-row: span 1;
    min-height: 300px;
  }
  .gallery-item.g-a,
  .gallery-item.g-b,
  .gallery-item.g-c,
  .gallery-item.g-d {
    grid-column: span 3;
  }
}

@media (max-width: 620px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .gallery-item,
  .gallery-item.g-featured,
  .gallery-item.g-a,
  .gallery-item.g-b,
  .gallery-item.g-c,
  .gallery-item.g-d {
    grid-column: span 1;
    grid-row: span 1;
    min-height: 260px;
  }
}

/* Lightbox ------------------------------------------------------------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.2rem, 5vw, 4rem);
  background: rgba(10, 9, 7, 0.92);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease);
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox-inner {
  position: relative;
  width: 100%;
  max-width: 1040px;
  max-height: 100%;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  background: var(--ore);
  border: 1px solid var(--ore-light);
  border-radius: var(--radius);
  overflow: hidden;
  transform: translateY(14px);
  transition: transform 0.35s var(--ease);
}

.lightbox.is-open .lightbox-inner {
  transform: translateY(0);
}

.lightbox-media {
  position: relative;
  background: var(--basalt-deep);
  min-height: 260px;
}

.lightbox-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lightbox-text {
  padding: clamp(1.8rem, 3vw, 2.8rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow-y: auto;
}

.lightbox-tag {
  display: inline-block;
  width: fit-content;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--basalt-deep);
  background: linear-gradient(135deg, var(--gold-pale), var(--gold) 60%, var(--gold-deep));
  padding: 0.32em 0.75em;
  border-radius: 2px;
  margin-bottom: 1rem;
}

.lightbox-title {
  font-size: clamp(1.3rem, 2.6vw, 1.75rem);
  color: var(--quartz);
  margin-bottom: 0.9rem;
}

.lightbox-desc {
  color: var(--slate);
  font-size: 0.98rem;
  max-width: 50ch;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  width: 2.4rem;
  height: 2.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(10, 9, 7, 0.6);
  border: 1px solid rgba(246, 243, 236, 0.25);
  color: var(--quartz);
  font-size: 1rem;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}

.lightbox-close:hover {
  border-color: var(--gold-pale);
  color: var(--gold-pale);
}

@media (max-width: 700px) {
  .lightbox-inner {
    grid-template-columns: 1fr;
    max-height: 90vh;
    overflow-y: auto;
  }
  .lightbox-media {
    min-height: 220px;
  }
}

/* --------------------------------------------------------------------------
   20. Utility
   -------------------------------------------------------------------------- */
.text-center { text-align: center; }
.mt-lg { margin-top: 3rem; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
