/* =========================================================
   Mojave Gold — site.css (clean + non-duplicative)
   Key fixes:
   - Default card images remain full-width
   - Team headshots ONLY shrink when you add class="headshot"
   - Remove duplicate footer-grid + callout + wpforms rules
   - FIX: Mobile menu links hidden until Menu button toggles (#site-nav.is-open)
   ========================================================= */

:root{
  --bg:#0b1220;
  --panel:#0f172a;
  --card:#111827;
  --text:#e5e7eb;
  --muted:#9ca3af;
  --line:#253044;
  --gold:#c9a227;
  --gold2:#f5d56b;
  --shadow: 0 12px 32px rgba(0,0,0,.28);
  --radius: 18px;
  --max: 1120px;
  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";

  /* Header layout vars */
  --logo-h: 100px;
  --logo-max-w: 420px;
  --right-stack-h: 92px;
  --header-pad-y: 6px;
  --deck-menu-gap: 8px;
  --menu-gap: 10px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:var(--font);
  color:var(--text);
  background:
    radial-gradient(1200px 600px at 70% 10%, rgba(201,162,39,.18), transparent 60%),
    radial-gradient(900px 500px at 15% 20%, rgba(245,213,107,.12), transparent 55%),
    linear-gradient(180deg, var(--bg), #070b14 75%);
  line-height:1.55;
}
a{color:inherit}
img{max-width:100%; height:auto}
.container{width:100%; max-width:var(--max); margin:0 auto; padding:0 18px}

/* Skip link */
.skip{position:absolute; left:-999px; top:auto; width:1px; height:1px; overflow:hidden;}
.skip:focus{
  left:18px; top:18px; width:auto; height:auto;
  padding:10px 12px;
  background:#111827;
  border:1px solid #374151;
  border-radius:12px;
  z-index:9999;
}

/* =========================================================
   Header
   ========================================================= */
.header{
  position:sticky; top:0; z-index:50;
  background:rgba(7,11,20,.72);
  border-bottom:1px solid rgba(37,48,68,.8);
  backdrop-filter: blur(10px);
}
.header .container.header-grid{
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: end;
  padding-top: var(--header-pad-y);
  padding-bottom: var(--header-pad-y);
  min-height: calc(max(var(--right-stack-h), var(--logo-h)) + (var(--header-pad-y) * 2));
}
/* Logo pinned bottom-left */
.header .brand{
  position:absolute;
  left:18px;
  bottom: var(--header-pad-y);
  display:flex;
  align-items:flex-end;
  line-height:0;
}
.header .brand .custom-logo-link{display:inline-flex; align-items:flex-end;}
.header .brand img.custom-logo{
  height: var(--logo-h);
  width:auto;
  max-width: var(--logo-max-w);
  max-height:none;
  display:block;
}
/* Right stack pinned bottom-right */
.header .header-right{
  grid-column:2;
  justify-self:end;
  align-self:end;
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap: var(--deck-menu-gap);
}

/* Nav reset */
#site-nav ul, #site-nav li{ list-style:none !important; margin:0; padding:0; }

/* =========================================================
   Buttons
   ========================================================= */
.menu-btn{
  appearance:none;
  border:1px solid rgba(55,65,81,.8);
  background:rgba(17,24,39,.6);
  color:var(--text);
  border-radius:14px;
  padding:10px 12px;
  font-weight:700;
  display:inline-flex;
  gap:10px;
  align-items:center;
}
.menu-btn svg{width:18px; height:18px}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:12px 14px;
  border-radius:14px;
  border:1px solid rgba(55,65,81,.85);
  background:rgba(17,24,39,.55);
  color:var(--text);
  text-decoration:none;
  font-weight:750;
  letter-spacing:.2px;
  box-shadow: 0 10px 24px rgba(0,0,0,.18);
}
.btn:hover{border-color:rgba(201,162,39,.8)}
.btn.primary{
  background:linear-gradient(135deg, rgba(201,162,39,.92), rgba(245,213,107,.88));
  color:#0b1220;
  border:1px solid rgba(245,213,107,.95);
}
.btn.primary:hover{filter:saturate(1.04) brightness(1.02)}
.btn.ghost{background:transparent; box-shadow:none}
.btn.small{padding:10px 12px; border-radius:12px; font-weight:700}

/* =========================================================
   Hero
   ========================================================= */
.hero{padding:26px 0 18px;}
.hero-card{
  border:1px solid rgba(55,65,81,.55);
  border-radius: calc(var(--radius) + 10px);
  background: linear-gradient(180deg, rgba(17,24,39,.55), rgba(15,23,42,.68));
  box-shadow: var(--shadow);
  overflow:hidden;
}
.hero-media{
  position:relative;
  min-height:220px;
  background:
    linear-gradient(180deg, rgba(7,11,20,.0), rgba(7,11,20,.75)),
    url("assets/hero.svg");
  background-size: cover;
  background-position:center;
}
/* Live hero image override */
.hero .hero-media{
  background-image: url("https://mojavegold.us/wp-content/uploads/2026/02/PTSC_0030-scaled.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius:16px;
  min-height:340px;
}
.hero-inner{padding:16px 16px 18px;}
.kicker{
  display:inline-flex;
  gap:10px;
  align-items:center;
  color:var(--muted);
  font-weight:700;
  letter-spacing:.18px;
  font-size:13px;
}
.kicker .dot{
  width:10px; height:10px;
  border-radius:50%;
  background:rgba(201,162,39,.92);
  box-shadow: 0 0 0 6px rgba(201,162,39,.14);
}
h1{font-size: clamp(28px, 4.2vw, 46px); margin:10px 0; line-height:1.12;}
.lede{font-size:16px; color:var(--muted); margin:0 0 14px; max-width:62ch;}

/* Metrics */
.metrics{display:grid; grid-template-columns:1fr; gap:10px; margin-top:14px;}
.metric{
  border:1px solid rgba(55,65,81,.45);
  background:rgba(17,24,39,.35);
  border-radius:16px;
  padding:12px;
}
.metric b{display:block; font-size:16px}
.metric span{display:block; color:var(--muted); font-size:13px; margin-top:3px}

/* =========================================================
   Sections + layout
   ========================================================= */
.section{padding:24px 0}
.section h2{font-size: clamp(20px, 3vw, 30px); margin:0 0 10px;}
.section p{color:var(--muted); margin:0 0 12px}

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

.card{
  border:1px solid rgba(55,65,81,.55);
  border-radius: var(--radius);
  background: rgba(17,24,39,.45);
  box-shadow: 0 10px 24px rgba(0,0,0,.15);
  overflow:hidden;
}
.card .pad{padding:14px}
.card h3{margin:0 0 8px; font-size:18px}

/* Lists inside cards (consistent) */
.card ul{
  margin:0;
  padding-left:18px;
  color:var(--muted);
  font-size:13px;
  line-height:1.55;
}
.card li{margin:6px 0}

/* Figures: DEFAULT = full-width images */
.card figure{margin:0}
.card figure img{
  display:block;
  width:100%;
  height:auto;
  margin:0;
}

/* Team headshots ONLY (fix) — add class="headshot" in HTML */
.card figure img.headshot{
  width:160px;
  height:160px;
  object-fit:cover;
  object-position:center;
  border-radius:14px;
  margin:14px 0 0 14px;
}

/* Captions */
.card figcaption{
  padding:12px 14px;
  color:var(--muted);
  font-size:13px;
  border-top:1px solid rgba(37,48,68,.7);
}

.hr{height:1px; background:rgba(37,48,68,.85); margin:12px 0;}
.small{font-size:13px; color:var(--muted)}

/* Tables */
.table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  font-size:14px;
  overflow:hidden;
  border:1px solid rgba(55,65,81,.55);
  border-radius:16px;
}
.table th, .table td{
  padding:10px;
  border-bottom:1px solid rgba(37,48,68,.7);
  vertical-align:top;
}
.table th{
  text-align:left;
  color:#d1d5db;
  font-size:13px;
  letter-spacing:.16px;
  background:rgba(15,23,42,.65);
}
.table tr:last-child td{border-bottom:none}
.table td{color:var(--muted)}

/* =========================================================
   Callouts
   ========================================================= */
.callout{
  border:1px solid rgba(201,162,39,.35);
  background: linear-gradient(180deg, rgba(201,162,39,.08), rgba(17,24,39,.35));
  border-radius: var(--radius);
  padding:14px;
}
.callout b{color:#fef3c7}
.callout ul{
  margin:0;
  padding-left:18px;
  color:var(--muted);
  font-size:13px;
  line-height:1.55;
}
.callout li{margin:6px 0}
.callout-bullets{margin-top:18px}

/* Historic “micro” block */
.card figure .micro{padding:12px 14px 6px;}
.card figure .micro h4{
  margin:0 0 8px;
  font-size:18px;
  font-weight:750;
  letter-spacing:.2px;
  color:var(--text);
}

/* =========================================================
   Embeds (map + timeline)
   ========================================================= */
.map-embed,
.timeline-embed{
  display:block;
  margin-top:10px;
  text-decoration:none;
}
.map-embed img,
.timeline-embed img{
  display:block;
  width:100%;
  height:auto;
  border-radius:14px;
  border:1px solid rgba(55,65,81,.45);
}
.map-caption{
  display:inline-block;
  margin-top:8px;
  font-size:13px;
  color:var(--muted);
}
.callout .timeline-embed{margin-bottom:18px}

/* =========================================================
   Footer
   ========================================================= */
.footer{
  border-top:1px solid rgba(37,48,68,.9);
  padding:18px 0 26px;
  margin-top:18px;
  color:var(--muted);
}
.footer a{color:var(--text); text-decoration:none}
.footer a:hover{text-decoration:underline}

.footer-grid{display:grid; grid-template-columns:1fr; gap:12px;}
.footer h4{margin:0 0 8px;}
.footer .footer-links{
  display:flex;
  flex-direction:column;
  gap:4px;
}
.footer .footer-links a{
  display:block;
  width:fit-content;
  white-space:nowrap;
  padding:2px 0;
  line-height:1.25;
}

/* Footer logo */
.footer .footer-logo{line-height:0; margin:0 0 10px;}
.footer .footer-logo-link{display:inline-flex; align-items:center;}
.footer .footer-logo-img{
  height:56px;
  width:auto;
  max-width:360px;
  display:block;
}

/* =========================================================
   WPForms (theme styling)
   ========================================================= */
.wpforms-container{margin:0}
.wpforms-container .wpforms-field{margin-bottom:14px}

.wpforms-container .wpforms-field-label,
.wpforms-container .wpforms-field-label-inline,
.wpforms-container label.wpforms-field-label{
  display:block;
  margin:0 0 8px;
  font-size:13px;
  font-weight:750;
  color:#d1d5db;
  letter-spacing:.15px;
}
.wpforms-container .wpforms-required-label{
  color:#ef4444;
  font-weight:800;
}

.wpforms-container input[type="text"],
.wpforms-container input[type="email"],
.wpforms-container input[type="tel"],
.wpforms-container input[type="url"],
.wpforms-container select,
.wpforms-container textarea{
  width:100%;
  border-radius:14px;
  border:1px solid rgba(55,65,81,.7);
  background:rgba(17,24,39,.35);
  color:var(--text);
  padding:12px;
  font-size:16px;
  box-shadow:none;
}
.wpforms-container textarea{min-height:130px; resize:vertical}

.wpforms-container input:focus,
.wpforms-container select:focus,
.wpforms-container textarea:focus{
  outline:none;
  border-color: rgba(201,162,39,.75);
  box-shadow: 0 0 0 3px rgba(201,162,39,.15);
}

.wpforms-container .wpforms-field-sublabel{
  color:var(--muted);
  font-size:12px;
  margin-top:6px;
}

.wpforms-container .wpforms-submit{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:12px 14px;
  border-radius:14px;
  border:1px solid rgba(245,213,107,.95);
  background:linear-gradient(135deg, rgba(201,162,39,.92), rgba(245,213,107,.88));
  color:#0b1220;
  font-weight:750;
  letter-spacing:.2px;
  cursor:pointer;
  box-shadow: 0 10px 24px rgba(0,0,0,.18);
}
.wpforms-container .wpforms-submit:hover{filter:saturate(1.04) brightness(1.02)}
.wpforms-container .wpforms-error{color:#fca5a5; font-size:13px; margin-top:6px}

/* =========================================================
   Theme-native forms (if any)
   ========================================================= */
.form{display:grid; grid-template-columns:1fr; gap:10px;}
.input, .textarea{
  width:100%;
  border-radius:14px;
  border:1px solid rgba(55,65,81,.7);
  background:rgba(17,24,39,.35);
  color:var(--text);
  padding:12px;
  font-size:16px;
}
.textarea{min-height:130px; resize:vertical}
.label{font-size:13px; color:var(--muted); font-weight:700}
.inline-actions{display:flex; gap:10px; flex-wrap:wrap}

/* =========================================================
   Responsive
   ========================================================= */
@media (min-width: 740px){
  .menu-btn{display:none}
  .hero{padding:34px 0 22px}
  .hero-media{min-height:320px}
  .hero-inner{padding:20px 20px 22px}

  .metrics{grid-template-columns: repeat(3, 1fr)}
  .grid{grid-template-columns: repeat(3, 1fr)}
  .split{grid-template-columns: 1.25fr .85fr}

  /* Desktop nav pills */
  .navlinks{
    position:static;
    transform:none !important;
    opacity:1 !important;
    pointer-events:auto !important;
    border-bottom:none;
    background:transparent;
  }
  .header .header-right #site-nav{
    position: static !important;
    transform: none !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    background: transparent !important;
    border: none !important;
    display:block; /* FIX: ensure desktop always shows nav */
  }
  .header .header-right #site-nav .navgrid{
    display:flex;
    flex-wrap:wrap;
    justify-content:flex-end;
    align-items:flex-end;
    gap: var(--menu-gap);
    margin:0;
    padding:0;
  }
  .header .header-right #site-nav .navgrid a{
    padding:10px 12px;
    border-radius:14px;
    text-decoration:none;
    border:1px solid rgba(55,65,81,.55);
    background: rgba(17,24,39,.45);
    display:inline-flex;
    align-items:center;
  }
  .header .header-right #site-nav .navgrid a:hover{ border-color: rgba(201,162,39,.75); }
  .header .header-right #site-nav .navgrid a[aria-current="page"]{ border-color: rgba(245,213,107,.9); }

  /* Make Location & access callout fill height nicely */
  .split .callout{display:flex; flex-direction:column;}
  .split .callout .map-embed{margin-top:auto;}

  /* Footer: left column + Company + Resources pushed right */
  .footer-grid{
    grid-template-columns: 1fr auto auto;
    justify-content: end;
    column-gap: 48px;
  }

  /* Optional 2-column grids (when you add class="grid grid-2") */
  .grid.grid-2{ grid-template-columns: repeat(2, 1fr); }
  .card-full{ margin-top: 12px; }
}

@media (max-width: 739px){
  .header .header-right{width:100%}

  /* FIX: Hide nav links by default on mobile; show only when toggled open */
  .header .header-right #site-nav{
    display:none;
  }
  .header .header-right #site-nav.is-open{
    display:block;
  }

  .header .header-right #site-nav .navgrid{
    display:grid;
    grid-template-columns:1fr;
    gap:8px;
  }
  .header .header-right #site-nav .navgrid a{
    padding:12px;
    border-radius:14px;
    text-decoration:none;
    border:1px solid rgba(55,65,81,.55);
    background: rgba(17,24,39,.45);
    display:block;
  }
}

/* =========================================================
   Mobile logo sizing overrides
   ========================================================= */
@media (max-width: 739px){
  :root{
    --logo-h: 54px;          /* shrink logo height on phones */
    --logo-max-w: 220px;     /* keep it from being too wide */
    --right-stack-h: 64px;   /* reduces header min-height */
    --header-pad-y: 8px;
  }

  .header .brand{ left:14px; }
  .header .brand img.custom-logo{
    height: var(--logo-h);
    max-width: min(var(--logo-max-w), 62vw);
  }
}

@media (max-width: 390px){
  :root{
    --logo-h: 46px;
    --logo-max-w: 190px;
  }
}

/* ===== FIX: WPForms label color/weight on dark theme ===== */
.wpforms-container .wpforms-form .wpforms-field-label,
.wpforms-container .wpforms-form label.wpforms-field-label,
.wpforms-container .wpforms-form .wpforms-field-label-inline{
  color: var(--text) !important;
  font-weight: 750 !important;
  font-size: 13px !important;
  line-height: 1.25 !important;
  margin: 0 0 8px !important;
}

.wpforms-container .wpforms-form .wpforms-required-label{
  color: #ef4444 !important;
  font-weight: 800 !important;
}

/* If WPForms is outputting labels inside a <span> in some layouts */
.wpforms-container .wpforms-form .wpforms-field-label span{
  color: var(--text) !important;
}

/* Allow hero-media to hold overlay + label */
.hero-media{
  position: relative;
  overflow: hidden;
}

/* If your hero-media already uses background-image, keep it. This just improves readability */
.hero-media-overlay{
  position:absolute;
  inset:0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,.55) 0%,
    rgba(0,0,0,.18) 45%,
    rgba(0,0,0,0) 70%
  );
  pointer-events:none;
}

/* Label block */
.hero-media-label{
  position:absolute;
  left:18px;
  bottom:16px;
  display:flex;
  flex-direction:column;
  gap:6px;
  pointer-events:none;
}

/* Small eyebrow */
.hero-media-eyebrow{
  display:inline-flex;
  width:fit-content;
  padding:4px 8px;
  border-radius:999px;
  border:1px solid rgba(255,215,0,.45);
  background:rgba(10,15,25,.55);
  color:rgba(255,255,255,.90);
  font-size:11px;
  font-weight:700;
  letter-spacing:.12em;
  text-transform:uppercase;
}

/* Main overlay title */
.hero-media-title{
  color:#fff;
  font-weight:900;
  letter-spacing:.06em;
  text-transform:uppercase;
  font-size:22px;
  line-height:1.05;
  text-shadow: 0 10px 30px rgba(0,0,0,.55);
}

/* Responsive tweak */
@media (max-width: 640px){
  .hero-media-label{ left:14px; bottom:12px; }
  .hero-media-title{ font-size:18px; letter-spacing:.05em; }
}

/* =========================
   Media Library
========================= */
.media-block{ margin-top: 18px; }
.media-block-head{ margin-bottom: 12px; }

.media-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.video-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

@media (max-width: 960px){
  .media-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .video-grid{ grid-template-columns: 1fr; }
}
@media (max-width: 640px){
  .media-grid{ grid-template-columns: 1fr; }
}

.media-card{
  display:block;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow:hidden;
  box-shadow: var(--shadow);
  text-decoration:none;
  color: inherit;
}
.media-thumb{
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display:block;
}
.media-meta{ padding: 12px 14px; }
.media-title{ font-weight: 700; margin: 0 0 4px; }
.media-caption{ color: var(--muted); font-size: .95rem; line-height: 1.35; }

.video-card{
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow:hidden;
  box-shadow: var(--shadow);
}
.video-embed iframe{
  width: 100%;
  aspect-ratio: 16 / 9;
  display:block;
  border:0;
}

/* =========================
   FAQ Accordion
========================= */
.faq-wrap{ margin-top: 18px; }
.faq-list{ display:grid; gap: 10px; }

.faq-item{
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) - 6px);
  overflow:hidden;
}

.faq-q{
  cursor: pointer;
  list-style: none;
  padding: 14px 14px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  font-weight: 700;
}

.faq-q::-webkit-details-marker{ display:none; }

.faq-icon{
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform .18s ease;
  flex: 0 0 auto;
  margin-left: 10px;
}

.faq-item[open] .faq-icon{
  transform: rotate(-135deg);
}

.faq-a{
  padding: 0 14px 14px;
  color: var(--text);
}

.faq-a p{ margin: 0; color: var(--muted); line-height: 1.5; }