/* Trubear Minerals — site styles
   Palette and type carried over from the original WordPress/Elementor build:
   Urbanist, gold #FAB711, near-black #1D1D1B, muted grey #7A7A7A. */

:root {
  --gold: #fab711;
  --gold-dark: #d99c00;
  --ink: #111111;
  --charcoal: #1d1d1b;
  --muted: #6b6b6b;
  --line: #eaeaea;
  --bg: #ffffff;
  --bg-alt: #fafafa;
  --maxw: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 84px;
  --font: "Urbanist", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video, iframe { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--gold); color: #000; padding: 10px 16px; font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }

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

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  transition: background-color .25s ease, box-shadow .25s ease, height .25s ease;
}
.site-header.is-solid, .site-header.menu-open {
  background: rgba(29, 29, 27, .97);
  box-shadow: 0 2px 18px rgba(0, 0, 0, .25);
  --header-h: 72px;
}
.site-header .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand img { height: 52px; width: auto; transition: height .25s ease; }
.site-header.is-solid .brand img { height: 46px; }

.nav-list { list-style: none; margin: 0; padding: 0; display: flex; gap: 36px; }
.nav-list a {
  color: #fff; text-decoration: none; font-weight: 500; font-size: 16px; letter-spacing: .01em;
  padding: 6px 0; position: relative;
}
.nav-list a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px; background: var(--gold);
  transition: right .2s ease;
}
.nav-list a:hover::after, .nav-list a[aria-current="page"]::after { right: 0; }
.nav-list a[aria-current="page"] { color: var(--gold); }

.menu-toggle {
  display: none; background: none; border: 0; padding: 10px; margin-right: -10px; cursor: pointer; color: #fff;
}
.menu-toggle svg { width: 28px; height: 28px; }
.menu-toggle .icon-close { display: none; }
.site-header.menu-open .menu-toggle .icon-open { display: none; }
.site-header.menu-open .menu-toggle .icon-close { display: block; }

@media (max-width: 860px) {
  .menu-toggle { display: block; }
  .site-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    background: rgba(29, 29, 27, .98);
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .site-header.menu-open .site-nav { max-height: 420px; }
  .nav-list { flex-direction: column; gap: 0; padding: 8px var(--gutter) 24px; }
  .nav-list a { display: block; padding: 14px 0; font-size: 19px; border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav-list a::after { display: none; }
  .brand img { height: 44px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--gold); color: #111; border: 2px solid var(--gold);
  font: 600 15px/1 var(--font); text-transform: uppercase; letter-spacing: .06em;
  padding: 17px 30px; text-decoration: none; cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.btn:hover { background: var(--charcoal); border-color: var(--charcoal); color: #fff; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn-ghost:hover { background: #fff; color: #111; border-color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; color: #fff; overflow: hidden;
  display: flex; align-items: center;
  min-height: min(92vh, 860px);
  padding: calc(var(--header-h) + 40px) 0 80px;
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(0,0,0,.72) 0%, rgba(0,0,0,.45) 55%, rgba(0,0,0,.25) 100%);
}
.hero::after { /* small notch, as on the original */
  content: ""; position: absolute; left: 50%; bottom: -1px; transform: translateX(-50%);
  border-left: 16px solid transparent; border-right: 16px solid transparent; border-bottom: 14px solid var(--bg);
}
.hero-content { max-width: 820px; }
.hero h1 { font-size: clamp(36px, 5.4vw, 64px); font-weight: 600; margin: 10px 0 22px; }
.hero p { font-size: clamp(17px, 1.6vw, 19px); color: rgba(255,255,255,.9); max-width: 760px; }

.page-hero { min-height: 420px; text-align: center; justify-content: center; padding-bottom: 64px; }
.page-hero::before { background: rgba(0,0,0,.55); }
.page-hero .hero-content { margin: 0 auto; }
.page-hero h1 { font-size: clamp(36px, 5vw, 56px); margin-bottom: 0; }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-alt { background: var(--bg-alt); }
.section-tight { padding-top: 0; }
.eyebrow { display: block; color: var(--gold); font-size: 20px; font-weight: 500; margin-bottom: 8px; }
.hero .eyebrow { font-size: clamp(18px, 1.8vw, 22px); }
.section h2 { font-size: clamp(30px, 3.4vw, 42px); margin-bottom: 22px; }
.section h3 { font-size: 24px; margin-bottom: 12px; }
.lead { color: var(--muted); font-size: 18px; }
.prose { color: var(--muted); }
.prose strong { color: var(--ink); font-weight: 600; }
.center { text-align: center; }
.narrow { max-width: 880px; }
.narrow.center { margin-left: auto; margin-right: auto; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.split.reverse > :first-child { order: 2; }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split.reverse > :first-child { order: 0; }
}

/* Gold offset frame behind photos — signature detail of the original layout */
.framed { position: relative; margin: 18px 0 0 18px; }
.framed::before {
  content: ""; position: absolute; z-index: 0;
  top: -18px; left: -18px; width: 88%; height: 82%; background: var(--gold);
}
.framed.right { margin: 18px 18px 0 0; }
.framed.right::before { left: auto; right: -18px; }
.framed img, .framed video { position: relative; z-index: 1; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.framed.tall img { aspect-ratio: 4 / 5; }

.wide-media { margin-top: clamp(40px, 6vw, 64px); }

/* ---------- Video ---------- */
.video-frame { position: relative; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.video-frame iframe, .video-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.yt-facade { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; cursor: pointer; background: #000; }
.yt-facade img { width: 100%; height: 100%; object-fit: cover; opacity: .82; transition: opacity .2s ease; }
.yt-facade:hover img { opacity: 1; }
.yt-facade .play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 84px; height: 84px; border-radius: 50%; background: var(--gold);
  display: grid; place-items: center; box-shadow: 0 8px 30px rgba(0,0,0,.35);
}
.yt-facade .play svg { width: 30px; height: 30px; margin-left: 5px; }
.yt-facade .yt-title {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 22px; text-align: left;
  color: #fff; font: 600 18px/1.3 var(--font); background: linear-gradient(transparent, rgba(0,0,0,.7));
}

/* ---------- Minerals accordion (home) ---------- */
.minerals-panel {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center;
}
.minerals-card {
  position: relative; z-index: 2; background: #fff; padding: clamp(28px, 4vw, 48px);
  box-shadow: 0 20px 60px rgba(0,0,0,.08); margin-right: -80px;
}
.minerals-photo img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; }
@media (max-width: 900px) {
  .minerals-panel { grid-template-columns: 1fr; }
  .minerals-card { margin: 0 0 -40px; }
  .minerals-photo { order: 2; }
}
.accordion { margin-top: 20px; border-top: 1px solid var(--line); }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary {
  list-style: none; cursor: pointer; padding: 15px 0; font-weight: 600; font-size: 17px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
  content: ""; width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-3px); transition: transform .2s ease; flex-shrink: 0;
}
.accordion details[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.accordion details[open] summary { color: var(--gold-dark); }
.accordion details p { color: var(--muted); padding: 0 0 16px; margin: 0; }

/* ---------- Mineral list (targeted minerals page) ---------- */
.mineral { padding: clamp(56px, 8vw, 96px) 0; border-bottom: 1px solid var(--line); }
.mineral:last-of-type { border-bottom: 0; }
.mineral-symbol {
  display: inline-grid; place-items: center; width: 58px; height: 58px; margin-bottom: 18px;
  background: var(--gold); color: #111; font-weight: 700; font-size: 22px;
}
.mineral .split { align-items: start; }
.mineral .sticky-media { position: sticky; top: calc(var(--header-h) + 24px); }
.mineral-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 28px; }
.mineral-nav a {
  text-decoration: none; border: 1px solid var(--line); padding: 10px 20px; font-weight: 600; font-size: 15px;
  transition: border-color .2s ease, background-color .2s ease;
}
.mineral-nav a:hover { border-color: var(--gold); background: #fff8e6; }

/* ---------- Expedition galleries ---------- */
.expedition + .expedition { margin-top: clamp(64px, 8vw, 96px); }
.expedition-head { text-align: center; margin-bottom: 32px; }
.expedition-head h2 { margin-bottom: 6px; }
.expedition-head .eyebrow { font-weight: 700; font-size: 18px; margin: 0; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.gallery a { display: block; overflow: hidden; position: relative; background: #eee; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .4s ease; }
.gallery a:hover img { transform: scale(1.05); }
@media (max-width: 700px) { .gallery { grid-template-columns: repeat(2, 1fr); gap: 8px; } }

.lightbox {
  position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,.92);
  display: none; align-items: center; justify-content: center; padding: 56px 16px;
}
.lightbox.open { display: flex; }
.lightbox img { max-height: 100%; max-width: 100%; width: auto; object-fit: contain; }
.lightbox button {
  position: absolute; background: rgba(255,255,255,.1); color: #fff; border: 0; cursor: pointer;
  width: 52px; height: 52px; display: grid; place-items: center; font-size: 28px; line-height: 1;
}
.lightbox button:hover { background: var(--gold); color: #111; }
.lightbox .lb-close { top: 12px; right: 12px; }
.lightbox .lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 12px; top: 50%; transform: translateY(-50%); }

/* ---------- Feature grid (about / home) ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line); margin-top: 48px; }
.stat { padding: 28px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font-size: 44px; line-height: 1; font-weight: 700; color: var(--ink); }
.stat strong span { color: var(--gold); }
.stat p { color: var(--muted); margin: 10px 0 0; font-size: 16px; }
@media (max-width: 760px) {
  .stat-grid { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: 0; }
}

.callout { border-left: 4px solid var(--gold); background: var(--bg-alt); padding: 22px 26px; margin: 24px 0; color: var(--muted); }
.callout strong { color: var(--ink); }

/* ---------- CTA band ---------- */
.cta-band { position: relative; isolation: isolate; color: #fff; text-align: center; padding: clamp(80px, 11vw, 140px) 0; overflow: hidden; }
.cta-band .hero-media { z-index: -2; }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(0,0,0,.62); }
.cta-band h2 { font-size: clamp(30px, 3.6vw, 46px); margin-bottom: 18px; }
.cta-band p { color: rgba(255,255,255,.88); max-width: 760px; margin: 0 auto; }
.cta-band .btn-row { justify-content: center; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(36px, 6vw, 72px); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; margin-top: 28px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 7px; }
.field label .req { color: #c62828; }
.field label .opt { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; font: 400 16px/1.4 var(--font); color: var(--ink);
  padding: 14px 16px; border: 1px solid #d9d9d9; border-radius: 0; background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(250,183,17,.25); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 16px; font-weight: 500; min-height: 1.5em; }
.form-status.ok { color: #1b7a3a; }
.form-status.err { color: #c62828; }

.info-cards { display: grid; gap: 18px; }
.info-card {
  display: flex; gap: 18px; align-items: flex-start; background: #fff; padding: 24px;
  border-left: 4px solid var(--gold); box-shadow: 0 10px 34px rgba(0,0,0,.06);
}
.info-card .ico { flex-shrink: 0; width: 46px; height: 46px; border-radius: 50%; background: #fff4d6; color: var(--gold-dark); display: grid; place-items: center; }
.info-card .ico svg { width: 20px; height: 20px; }
.info-card h3 { font-size: 20px; margin-bottom: 4px; }
.info-card a, .info-card p { color: var(--muted); text-decoration: none; margin: 0; }
.info-card a:hover { color: var(--ink); text-decoration: underline; }
.map-frame { margin-top: 18px; aspect-ratio: 4 / 3; border: 0; width: 100%; filter: grayscale(.3); }

/* ---------- Footer ---------- */
.site-footer { background: var(--charcoal); color: rgba(255,255,255,.82); padding: 72px 0 0; font-size: 16px; }
.footer-top { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding-bottom: 56px; }
.footer-brand img { height: 64px; width: auto; margin-bottom: 26px; }
.footer-brand a { color: #fff; }
.footer-brand p { margin: 0 0 4px; }
.footer-menu { border-left: 2px solid var(--gold); padding-left: 32px; }
.footer-menu h2 { color: #fff; font-size: 20px; margin-bottom: 18px; }
.footer-menu ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; }
.footer-menu a { color: rgba(255,255,255,.82); text-decoration: none; }
.footer-menu a:hover, .footer-menu a[aria-current="page"] { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding: 24px 0;
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; font-size: 14px;
}
.footer-bottom a { color: #fff; }
.social { display: flex; align-items: center; gap: 14px; text-transform: uppercase; letter-spacing: .06em; font-size: 13px; }
.social a { color: #fff; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.08); }
.social a:hover { background: var(--gold); color: #111; }
.social svg { width: 17px; height: 17px; }
@media (max-width: 760px) {
  .footer-top { grid-template-columns: 1fr; }
  .footer-menu { border-left: 0; border-top: 2px solid var(--gold); padding: 28px 0 0; }
}

/* ---------- Motion ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 0s !important; }
}
.no-js .reveal { opacity: 1; transform: none; }
