/*
Theme Name: Basin Mine
Theme URI: http://localhost/basinmine
Author: Basin Mine
Description: Custom minimalist theme for Basin Mine — investor-focused, modern, quiet. Navy, steel blue, coral and sand palette drawn from the Basin brand guide.
Version: 1.2
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: basinmine
*/

:root {
  --navy: #1D324A;
  --navy-deep: #16273B;
  --blue: #435E7A;
  --coral: #EC7C2E;
  --coral-dark: #CF6620;
  --sand: #D2D0C6;
  --paper: #FAFAF8;
  --paper-alt: #F3F2ED;
  --ink: #22303F;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--coral-dark); text-decoration: none; }
a:hover { color: var(--navy); }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 780px; margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 250, 248, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(29, 50, 74, 0.08);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand img { height: 44px; width: auto; }

.brand-text { line-height: 1.15; }

.brand-name {
  display: block;
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy);
}

.brand-since {
  display: block;
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--coral);
}

.site-nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
}

.site-nav a {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover,
.site-nav .current-menu-item > a,
.site-nav .current_page_item > a {
  color: var(--coral-dark);
  border-bottom-color: var(--coral);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--navy);
}

.nav-toggle svg { display: block; }

/* ---------- Hero (front page) ---------- */

.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  background: var(--navy);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 65%;
  opacity: 0.45;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: 0.45;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(22, 39, 59, 0.92) 20%, rgba(22, 39, 59, 0.4) 75%);
}

.hero .container { position: relative; z-index: 1; }

.hero-inner { max-width: 640px; padding: 120px 0; }

.eyebrow {
  display: block;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2.4rem, 5.4vw, 4rem);
  font-weight: 300;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: #fff;
  margin-bottom: 26px;
}

.hero h1 strong { font-weight: 600; }

.hero p {
  font-size: 1.12rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 38px;
}

.hero p.hero-narrative {
  font-size: 1.05rem;
  margin-bottom: 16px;
}

.hero .hero-narrative + h1 { margin-top: 26px; margin-bottom: 38px; }

.btn {
  display: inline-block;
  padding: 15px 34px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  background: var(--coral);
  border: 1px solid var(--coral);
  transition: background 0.2s, color 0.2s;
}

.btn:hover { background: var(--coral-dark); border-color: var(--coral-dark); color: #fff; }

.btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.4);
  margin-left: 14px;
}

.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); border-color: #fff; }

/* ---------- Sections ---------- */

.section { padding: 104px 0; }
.section-alt { background: var(--paper-alt); }
.section-navy { background: var(--navy); color: rgba(255, 255, 255, 0.85); }
.section-navy h2, .section-navy h3 { color: #fff; }

.section h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--navy);
  margin-bottom: 24px;
  max-width: 640px;
}

.section p { max-width: 680px; margin-bottom: 18px; }

.lede {
  font-size: 1.22rem;
  line-height: 1.65;
  color: var(--blue);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.split-media img {
  width: 100%;
  height: 480px;
  object-fit: cover;
}

/* Simple divergence chart */
.chart-frame { margin-top: 40px; }
.chart-frame svg { width: 100%; max-width: 640px; height: auto; }
.chart-caption {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--blue);
  margin-top: 10px;
}

/* Hero infographic — Coal Market Reality */
.chart-hero { margin-top: 64px; }
.chart-hero img {
  width: 100%;
  max-width: 960px;
  border: 1px solid rgba(29, 50, 74, 0.1);
}

/* Framed image figure */
.figure-frame { margin: 0; }
.figure-frame img { width: 100%; max-width: 520px; margin: 0 auto; }
.figure-frame figcaption {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--blue);
  margin-top: 14px;
  text-align: center;
}

/* ---------- Video ---------- */

.video-frame { margin: 48px 0; }

.video-frame video {
  width: 100%;
  display: block;
  background: var(--navy);
}

.video-frame figcaption {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  padding-top: 12px;
}

.video-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 48px 0;
}

.video-gallery .video-frame { margin: 0; }

.video-gallery video {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

@media (max-width: 900px) {
  .video-gallery { grid-template-columns: 1fr; }
}

/* ---------- Stats ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 48px;
  margin-top: 56px;
}

.stat {
  border-top: 2px solid var(--coral);
  padding-top: 20px;
}

.stat-value {
  display: block;
  font-size: 2rem;
  font-weight: 300;
  letter-spacing: -0.01em;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 6px;
}

.section-navy .stat-value { color: #fff; }

.stat-label {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
}

.section-navy .stat-label { color: var(--sand); }

/* ---------- CTA band ---------- */

.cta-band { text-align: center; padding: 120px 0; }

.cta-band h2 { margin-left: auto; margin-right: auto; }

.cta-band p { margin: 0 auto 36px; }

/* ---------- Interior pages ---------- */

.page-hero {
  background: var(--navy);
  padding: 96px 0 72px;
}

.page-hero h1 {
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  font-weight: 300;
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: #fff;
  max-width: 780px;
}

.page-content { padding: 88px 0 112px; }

.page-content h2 {
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.25;
  color: var(--navy);
  margin: 72px 0 20px;
}

.page-content h2:first-child { margin-top: 0; }

.page-content h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--navy);
  margin: 40px 0 10px;
}

.page-content p { margin-bottom: 18px; }

.page-content .lede { margin-bottom: 26px; }

.page-content ul {
  list-style: none;
  margin: 0 0 24px;
}

.page-content ul li {
  padding: 10px 0 10px 26px;
  position: relative;
  border-bottom: 1px solid rgba(29, 50, 74, 0.08);
}

.page-content ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.15em;
  width: 10px;
  height: 2px;
  background: var(--coral);
}

.statement {
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  font-weight: 300;
  line-height: 1.5;
  color: var(--navy);
  margin: 48px 0;
  padding-left: 28px;
  border-left: 3px solid var(--coral);
}

.page-content .stats { margin: 48px 0 24px; grid-template-columns: repeat(2, 1fr); }

/* ---------- Leadership ---------- */

.person {
  margin: 56px 0;
  padding: 40px 0 8px;
  border-top: 1px solid rgba(29, 50, 74, 0.12);
}

.person-head {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-bottom: 20px;
}

.person-monogram {
  flex: 0 0 auto;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--paper-alt);
  border: 1px solid var(--sand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 300;
  letter-spacing: 0.05em;
  color: var(--navy);
}

.person h2 { margin: 0 0 2px !important; font-size: 1.4rem !important; }

.person-title {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--coral-dark);
}

.person details { margin-top: 18px; }

.person summary {
  cursor: pointer;
  list-style: none;
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--coral-dark);
  padding: 10px 0;
}

.person summary::-webkit-details-marker { display: none; }
.person summary::after { content: " +"; }
.person details[open] summary::after { content: " –"; }
.person summary:hover { color: var(--navy); }

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin: 48px 0;
}

.contact-card {
  background: var(--paper-alt);
  padding: 36px;
}

.contact-card .stat-label { display: block; margin-bottom: 8px; }

.contact-card a {
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--navy);
}

.contact-card a:hover { color: var(--coral-dark); }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.65);
  padding: 72px 0 40px;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}

.site-footer .brand-name { color: #fff; }

.site-footer img { height: 52px; margin-bottom: 16px; }

.footer-heading {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sand);
  margin-bottom: 16px;
}

.site-footer ul { list-style: none; }
.site-footer ul li { margin-bottom: 8px; }
.site-footer a { color: rgba(255, 255, 255, 0.75); }
.site-footer a:hover { color: var(--coral); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 28px;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.4);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .nav-toggle { display: block; }

  .site-nav {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid rgba(29, 50, 74, 0.1);
    padding: 12px 24px 24px;
  }

  .site-nav.open { display: block; }

  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav a { display: block; padding: 12px 0; border-bottom: 1px solid rgba(29, 50, 74, 0.06); }

  .split { grid-template-columns: 1fr; gap: 40px; }
  .split-media img { height: 320px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .page-content .stats { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .section { padding: 72px 0; }
  .hero-inner { padding: 96px 0; }
  .btn-ghost { margin-left: 0; margin-top: 12px; }
}

@media (max-width: 560px) {
  .stats { grid-template-columns: 1fr; }
  .person-head { align-items: flex-start; }
}
