/* ═══════════════════════════════════════════════════════
   LONGHORN MINING — Shared Stylesheet
   ═══════════════════════════════════════════════════════ */

/* ── TOKENS ───────────────────────────────────────────── */
:root {
  --red:        #91252a;
  --red-hover:  #b02e33;
  --dark:       #1a1a22;
  --dark-alt:   #13131a;
  --surface:    #22222d;
  --white:      #ffffff;
  --muted:      #9a9aaa;
  --light-bg:   #f5f5f7;
  --light-mid:  #ebebee;
  --text:       #1a1a22;
  --text-mid:   #555;
  --text-light: #888;
  --border:     #e0e0e4;
  --nav-h:      84px;
}

/* ── RESET ────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--white);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ── LAYOUT ───────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 5%; }
.section     { padding: 90px 0; }
.section--dark { background: var(--red); }
.section--gray { background: var(--light-bg); }

/* ── TYPOGRAPHY HELPERS ───────────────────────────────── */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--red);
  margin-bottom: 0.75rem;
}
.eyebrow::before {
  content: ''; display: block;
  width: 20px; height: 2px; background: var(--red);
  flex-shrink: 0;
}
.eyebrow--white { color: rgba(255,255,255,0.5); }
.eyebrow--white::before { background: rgba(255,255,255,0.3); }

.section-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--dark);
}
.section-title--white { color: var(--white); }
.section-title span { color: var(--red); }

.rule { width: 40px; height: 3px; background: var(--red); margin: 1rem 0 1.6rem; }

.body-text { font-size: 1rem; color: var(--text-mid); line-height: 1.8; }
.body-text--white { color: rgba(255,255,255,0.62); }
.body-text--sm { font-size: 0.9rem; }

/* ── BUTTONS ──────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; padding: 0.75rem 1.8rem;
  border-radius: 2px; border: 2px solid transparent;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
  cursor: pointer; white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary   { background: var(--dark);     color: var(--white); border-color: var(--dark); }
.btn-primary:hover { background: var(--surface); border-color: var(--surface); }
.btn-outline   { background: transparent;   color: var(--dark);   border-color: var(--dark); }
.btn-outline:hover { background: var(--dark); color: var(--white); }
.btn-ghost     { background: transparent;   color: var(--white); border-color: rgba(255,255,255,0.4); }
.btn-ghost:hover { border-color: var(--white); }
.btn-dark      { background: var(--dark);    color: var(--white); border-color: var(--dark); }
.btn-dark:hover { background: var(--surface); border-color: var(--surface); }
.btn svg { flex-shrink: 0; }

/* ── NAVBAR ───────────────────────────────────────────── */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: var(--nav-h);
  background: var(--red);
  border-bottom: 1px solid rgba(0,0,0,0.2);
  transition: box-shadow 0.3s;
}
#navbar.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.4); }

.nav-inner {
  height: 100%;
  display: flex; align-items: center; justify-content: space-between;
}

.nav-logo img {
  height: 72px;
  width: auto;
  background: #fff;
  padding: 3px 8px;
  border-radius: 5px;
  box-shadow: 0 3px 16px rgba(0,0,0,0.45);
  transition: transform 0.2s, box-shadow 0.2s;
}
.nav-logo:hover img {
  transform: scale(1.03);
  box-shadow: 0 5px 22px rgba(0,0,0,0.55);
}

.nav-menu { display: flex; align-items: center; gap: 0; }

.nav-item { position: relative; }

.nav-link {
  display: block;
  padding: 0 0.9rem;
  height: var(--nav-h);
  line-height: var(--nav-h);
  font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.07em; text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  transition: color 0.2s;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.nav-link:hover,
.nav-link.active { color: var(--white); border-color: rgba(255,255,255,0.8); }

.nav-link--cta {
  margin-left: 0.5rem;
  background: var(--dark);
  color: var(--white) !important;
  border: none !important;
  line-height: 1 !important;
  height: auto !important;
  padding: 0.45rem 1.1rem !important;
  border-radius: 2px;
}
.nav-link--cta:hover { background: var(--surface) !important; }

/* Dropdown */
.nav-dropdown {
  display: flex; align-items: center; gap: 0.3rem;
  cursor: pointer;
}
.nav-dropdown-icon {
  width: 10px; height: 10px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  display: inline-block;
  transition: transform 0.2s;
}
.nav-item:hover .nav-dropdown-icon { transform: rotate(225deg) translateY(-2px); }

.nav-submenu {
  display: none;
  position: absolute; top: calc(var(--nav-h) - 1px); left: 0;
  min-width: 220px;
  background: var(--dark);
  border: 1px solid rgba(255,255,255,0.07);
  border-top: 2px solid var(--white);
  z-index: 300;
}
.nav-item:hover .nav-submenu { display: block; }

.nav-submenu a {
  display: block;
  padding: 0.75rem 1.2rem;
  font-size: 0.8rem; font-weight: 400;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.65);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: background 0.15s, color 0.15s, padding-left 0.15s;
}
.nav-submenu a:last-child { border-bottom: none; }
.nav-submenu a:hover { background: rgba(255,255,255,0.07); color: var(--white); padding-left: 1.5rem; }
.nav-submenu-label {
  padding: 0.5rem 1.2rem 0.25rem;
  font-size: 0.63rem; font-weight: 700;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

/* Hamburger */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 4px;
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--white); border-radius: 1px; transition: 0.3s;
}

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed; top: var(--nav-h); left: 0; right: 0; bottom: 0;
  background: var(--red);
  overflow-y: auto;
  z-index: 199;
  padding: 1rem 5% 2rem;
  flex-direction: column;
  border-top: 1px solid rgba(0,0,0,0.15);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  display: block;
  padding: 0.85rem 0;
  font-size: 1rem; font-weight: 500;
  letter-spacing: 0.05em; text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.mobile-menu a:hover { color: var(--white); }
.mobile-menu-label {
  padding: 1rem 0 0.3rem;
  font-size: 0.63rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}
.mobile-menu a.indent { padding-left: 1rem; font-size: 0.9rem; color: rgba(255,255,255,0.5); }

/* ── PAGE HERO (inner pages) ──────────────────────────── */
.page-hero {
  position: relative;
  padding: calc(var(--nav-h) + 60px) 0 70px;
  background: var(--red);
  overflow: hidden;
}
.page-hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0.2;
  filter: saturate(0.4);
}
.page-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(145,37,42,0.97) 40%, rgba(145,37,42,0.7) 100%);
}
.page-hero-content { position: relative; z-index: 2; }
.page-hero-breadcrumb {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 1.2rem;
}
.page-hero-breadcrumb a { color: rgba(255,255,255,0.35); transition: color 0.2s; }
.page-hero-breadcrumb a:hover { color: rgba(255,255,255,0.7); }
.page-hero-breadcrumb span { color: rgba(255,255,255,0.55); }
.page-hero h1 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.02em; line-height: 1.05;
  color: var(--white); margin-bottom: 1rem;
}
.page-hero h1 span { color: var(--red); }
.page-hero p { color: rgba(255,255,255,0.6); max-width: 560px; font-size: 1.05rem; }

/* ── CARD GRID ────────────────────────────────────────── */
.card-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px; background: var(--border); }
.card-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--border); }
.card-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; background: var(--border); }

.card {
  background: var(--white);
  overflow: hidden;
  transition: box-shadow 0.25s;
}
.card:hover { box-shadow: 0 4px 24px rgba(0,0,0,0.1); }
.card--dark { background: rgba(0,0,0,0.25); }

.card-img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover;
  display: block;
  filter: saturate(0.7) brightness(0.85);
  transition: transform 0.5s, filter 0.4s;
}
.card:hover .card-img { transform: scale(1.04); filter: saturate(0.9) brightness(0.93); }

.card-body {
  padding: 1.6rem 1.5rem 1.8rem;
  border-top: 3px solid transparent;
  transition: border-color 0.25s;
}
.card:hover .card-body { border-color: var(--red); }
.card-body--dark { border-top-color: rgba(255,255,255,0.05); }
.card:hover .card-body--dark { border-color: rgba(255,255,255,0.5); }

.card-cat {
  font-size: 0.65rem; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--red); margin-bottom: 0.35rem;
}
.card-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.2rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--dark); margin-bottom: 0.5rem;
}
.card-name--white { color: var(--white); }
.card-desc { font-size: 0.87rem; color: var(--text-mid); line-height: 1.6; }
.card-desc--white { color: rgba(255,255,255,0.55); }
.card-link {
  display: inline-flex; align-items: center; gap: 0.4rem;
  margin-top: 1rem;
  font-size: 0.73rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--red); transition: gap 0.2s;
}
.card-link:hover { gap: 0.7rem; }

/* ── STATS BAND ───────────────────────────────────────── */
.stats-band { background: var(--red); border-top: 3px solid rgba(0,0,0,0.15); padding: 2.8rem 0; }
.stats-inner { display: flex; justify-content: center; gap: 0; }
.stat-item { padding: 0 6rem; border-right: 1px solid rgba(255,255,255,0.2); text-align: center; }
.stat-item:last-child { border-right: none; }
.stat-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 2.4rem; font-weight: 700;
  color: var(--white); line-height: 1; margin-bottom: 0.35rem;
}
.stat-num span { color: rgba(255,255,255,0.65); }
.stat-label { font-size: 0.7rem; font-weight: 500; letter-spacing: 0.13em; text-transform: uppercase; color: var(--muted); }

/* ── PILLARS / FEATURES ───────────────────────────────── */
.pillars { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--light-mid); border: 1px solid var(--light-mid); }
.pillar { background: var(--white); padding: 1.5rem; border-left: 3px solid transparent; transition: border-color 0.2s; }
.pillar:hover { border-color: var(--red); }
.pillar-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--dark); margin-bottom: 0.3rem;
}
.pillar-body { font-size: 0.87rem; color: var(--text-light); line-height: 1.55; }

/* ── CONTACT FORM ─────────────────────────────────────── */
.contact-form { display: flex; flex-direction: column; gap: 1.1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.35rem; }
.form-group label { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 1px;
  padding: 0.75rem 1rem;
  color: var(--white);
  font-family: 'Inter', sans-serif; font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--red); background: rgba(255,255,255,0.07); }
.form-group select option { background: var(--dark); }
.form-group textarea { resize: vertical; min-height: 110px; }
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,0.22); }

/* ── FOOTER ───────────────────────────────────────────── */
#footer {
  background: var(--dark);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 60px 0 30px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-brand img {
  height: 68px;
  margin-bottom: 1.2rem;
  background: #fff;
  padding: 4px 8px;
  border-radius: 5px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.35);
}
.footer-brand p { font-size: 0.87rem; color: var(--muted); max-width: 260px; line-height: 1.65; }
.footer-col h4 { font-size: 0.65rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--red); margin-bottom: 1rem; }
.footer-col ul { display: flex; flex-direction: column; gap: 0.55rem; }
.footer-col a { font-size: 0.87rem; color: var(--muted); transition: color 0.2s; }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 1.5rem;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem;
}
.footer-copy { font-size: 0.78rem; color: var(--muted); }

/* ── REVEAL ANIMATION ─────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ── RESPONSIVE ───────────────────────────────────────── */
@media (max-width: 1024px) {
  .card-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.07); padding: 1.5rem 2rem; }
  .stat-item:last-child { border-bottom: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 768px) {
  .card-grid-2,
  .card-grid-3 { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .section { padding: 70px 0; }
}
@media (max-width: 680px) {
  .nav-menu { display: none; }
  .hamburger { display: flex; }
  .card-grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* ── HERO (Home Page) ──────────────────────────────── */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(105deg,
    rgba(0,0,0,0.82) 0%,
    rgba(0,0,0,0.55) 55%,
    rgba(0,0,0,0.25) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  color: var(--white);
  text-align: left;
}
.hero-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.05;
  letter-spacing: 0.02em;
  margin-bottom: 1.2rem;
}
.hero-title span { color: var(--red); }
.hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 600px;
}
.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.btn--primary {
  background: var(--dark);
  color: var(--white);
  border-color: var(--dark);
}
.btn--primary:hover {
  background: var(--surface);
  border-color: var(--surface);
}
.btn--secondary {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
}
.btn--secondary:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.08);
}

/* ── STATS BAND ────────────────────────────────────– */
.stat-value {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 3rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  margin-bottom: 0.5rem;
  letter-spacing: 0.05em;
}
.stat-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
}

/* ── CTA BANNER ────────────────────────────────────– */
.cta-banner {
  background: linear-gradient(135deg, var(--red) 0%, #7a1f23 100%);
  padding: 60px 0;
  text-align: center;
}
.cta-banner--dark {
  background: linear-gradient(135deg, var(--red) 0%, #7a1f23 100%);
}
.cta-banner h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 0.8rem;
}
.cta-banner p {
  font-size: 1rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 1.8rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ── CONTACT STRIP ────────────────────────────────– */
.contact-strip {
  background: #7a1f23;
  padding: 50px 0;
  border-top: 1px solid rgba(0,0,0,0.15);
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.contact-item {
  text-align: center;
  color: var(--white);
}
.contact-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 0.6rem;
}
.contact-item a,
.contact-item span {
  display: block;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--white);
}
.contact-item a {
  transition: color 0.2s;
}
.contact-item a:hover {
  color: var(--red);
}
@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .hero-cta {
    flex-direction: column;
  }
}

/* ── CARD IMAGE BACKGROUND ────────────────────────– */
.card-image {
  width: 100%;
  aspect-ratio: 4/3;
  background-size: cover;
  background-position: center;
  display: block;
  filter: saturate(0.7) brightness(0.85);
  transition: transform 0.5s, filter 0.4s;
}
.card:hover .card-image {
  transform: scale(1.04);
  filter: saturate(0.9) brightness(0.93);
}

/* ── HERO BRAND LOGO ──────────────────────────────– */
.hero-brand {
  margin-bottom: 1.8rem;
}
.hero-brand img {
  height: 110px;
  width: auto;
  background: #fff;
  padding: 8px 20px;
  border-radius: 8px;
  box-shadow: 0 6px 32px rgba(0,0,0,0.55), 0 2px 8px rgba(0,0,0,0.35);
  display: block;
}

/* ── EQUIPMENT GALLERY ────────────────────────────– */
.equipment-gallery {
  background: var(--dark-alt);
  padding: 70px 0 0;
}
.gallery-header {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5% 44px;
}
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 300px 300px;
  gap: 3px;
}
.gallery-item {
  background-size: cover;
  background-position: center;
  overflow: hidden;
  position: relative;
  filter: saturate(0.75) brightness(0.88);
  transition: filter 0.4s;
}
.gallery-item:hover {
  filter: saturate(1) brightness(1);
}
.gallery-item--tall {
  grid-row: span 2;
}
.gallery-item--wide {
  grid-column: span 2;
}
@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
  .gallery-item { height: 220px; }
  .gallery-item--tall { grid-row: span 1; }
  .gallery-item--wide { grid-column: span 2; }
}
@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item--wide { grid-column: span 1; }
}
