/* ===================================================================
   BLUE-RAY MINING & CONSTRUCTION CO. (SL) LTD.
   Bold industrial design system
   =================================================================== */

:root {
  --bg:           #0a0e1a;
  --bg-2:         #0f1525;
  --surface:      #141a2a;
  --surface-2:    #1c2438;
  --border:       #232c44;
  --text:         #e9edf5;
  --text-muted:   #9aa6c0;
  --text-dim:     #6b7793;
  --accent:       #ff6b1a;
  --accent-hot:   #ff8536;
  --accent-2:     #ffc107;
  --blue:         #2a8bff;
  --shadow-lg:    0 20px 60px rgba(0,0,0,.6);
  --shadow-md:    0 10px 30px rgba(0,0,0,.45);
  --container:    1200px;
  --radius:       6px;
  --radius-lg:    14px;
  --tx:           cubic-bezier(.2,.7,.2,1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color .2s var(--tx); }
a:hover { color: var(--accent-hot); }

h1, h2, h3, h4 {
  font-family: 'Oswald', 'Inter', sans-serif;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

h1 { font-size: clamp(2.4rem, 5vw, 4.5rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }

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

/* ============== NAVIGATION ============== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10,14,26,.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background .3s var(--tx);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

.nav-brand-text { line-height: 1; }
.nav-brand-text span {
  display: block;
  font-size: 0.7rem;
  color: var(--accent);
  letter-spacing: 0.15em;
  margin-top: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 10px 16px;
  border-radius: var(--radius);
  transition: all .2s var(--tx);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: var(--surface-2);
}

.nav-cta {
  background: var(--accent) !important;
  color: #0a0e1a !important;
  padding: 12px 22px !important;
  font-weight: 700 !important;
}

.nav-cta:hover { background: var(--accent-hot) !important; }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 12px;
  border-radius: var(--radius);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed;
    top: 76px; left: 0; right: 0;
    flex-direction: column;
    background: var(--bg-2);
    border-bottom: 1px solid var(--border);
    padding: 20px;
    gap: 4px;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: all .3s var(--tx);
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; }
}

/* ============== HERO ============== */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding-top: 76px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(.45) contrast(1.05);
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10,14,26,.5) 0%, rgba(10,14,26,.85) 100%),
    linear-gradient(90deg, rgba(10,14,26,.85) 0%, rgba(10,14,26,.2) 60%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 80px 0;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 24px;
  padding: 8px 16px;
  background: rgba(255,107,26,.1);
  border: 1px solid rgba(255,107,26,.3);
  border-radius: 999px;
}

.hero-eyebrow::before {
  content: '';
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--accent);
}

.hero h1 {
  max-width: 900px;
  margin-bottom: 24px;
}
.hero h1 span { color: var(--accent); }

.hero-sub {
  max-width: 640px;
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ============== BUTTONS ============== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all .2s var(--tx);
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #0a0e1a;
}
.btn-primary:hover {
  background: var(--accent-hot);
  color: #0a0e1a;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(255,107,26,.4);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  background: var(--surface-2);
  color: var(--text);
  border-color: var(--accent);
}

.btn-arrow::after {
  content: '→';
  transition: transform .2s var(--tx);
}
.btn-arrow:hover::after { transform: translateX(4px); }

/* ============== SECTIONS ============== */
section { position: relative; }

.section {
  padding: 100px 0;
}

.section-tight { padding: 70px 0; }

.section-eyebrow {
  display: inline-block;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  margin-bottom: 16px;
  padding-left: 28px;
  position: relative;
}
.section-eyebrow::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  width: 20px; height: 2px;
  background: var(--accent);
  transform: translateY(-50%);
}

.section-title {
  margin-bottom: 20px;
}

.section-lead {
  max-width: 720px;
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 56px;
}

.section-header {
  text-align: center;
  margin: 0 auto 64px;
  max-width: 800px;
}
.section-header .section-eyebrow { padding-left: 28px; padding-right: 28px; }
.section-header .section-eyebrow::before { left: 0; }
.section-header .section-eyebrow::after {
  content: '';
  position: absolute;
  right: 0; top: 50%;
  width: 20px; height: 2px;
  background: var(--accent);
  transform: translateY(-50%);
}
.section-header .section-lead { margin-left: auto; margin-right: auto; margin-bottom: 0; }

.section-alt { background: var(--bg-2); }

/* ============== STATS STRIP ============== */
.stats {
  background: linear-gradient(135deg, var(--accent) 0%, #d44e0a 100%);
  padding: 56px 0;
  position: relative;
  overflow: hidden;
}
.stats::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(45deg, transparent, transparent 20px, rgba(0,0,0,.05) 20px, rgba(0,0,0,.05) 22px);
  pointer-events: none;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
  z-index: 1;
}
.stat { text-align: center; color: #0a0e1a; }
.stat-num {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  opacity: 0.85;
}

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

/* ============== SERVICE CARDS ============== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  position: relative;
  overflow: hidden;
  transition: all .3s var(--tx);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--tx);
}

.service-card:hover {
  background: var(--surface-2);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(255,107,26,.4);
}

.service-card:hover::before { transform: scaleX(1); }

.service-icon {
  width: 56px; height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,107,26,.12);
  color: var(--accent);
  border-radius: var(--radius);
  margin-bottom: 22px;
  font-size: 1.7rem;
}

.service-card h3 { margin-bottom: 12px; }
.service-card p { color: var(--text-muted); font-size: 0.98rem; }

.service-card ul {
  list-style: none;
  margin-top: 16px;
}
.service-card ul li {
  padding: 6px 0 6px 22px;
  font-size: 0.9rem;
  color: var(--text-muted);
  position: relative;
}
.service-card ul li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* ============== FEATURE GRID (about page, why-us) ============== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}

.feature {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px;
  background: var(--surface);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}
.feature-num {
  font-family: 'Oswald', sans-serif;
  font-size: 2rem;
  color: var(--accent);
  line-height: 1;
}
.feature h4 {
  font-family: 'Oswald', sans-serif;
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.feature p { color: var(--text-muted); font-size: 0.95rem; }

/* ============== TWO COLUMN ============== */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.two-col img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
@media (max-width: 800px) {
  .two-col { grid-template-columns: 1fr; gap: 40px; }
}

/* ============== PARTNERS ============== */
.partners {
  background:
    linear-gradient(rgba(10,14,26,.92), rgba(10,14,26,.92)),
    url('/assets/img/projects/civil-works-800.jpg') center/cover;
  padding: 80px 0;
  border-block: 1px solid var(--border);
}
.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 40px;
}
.partner {
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  padding: 28px 24px;
  border-radius: var(--radius);
  text-align: center;
  transition: all .2s var(--tx);
}
.partner:hover { background: rgba(255,107,26,.08); border-color: var(--accent); }
.partner-name {
  font-family: 'Oswald', sans-serif;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}
.partner-loc {
  font-size: 0.85rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ============== CLIENTS LIST ============== */
.clients {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 36px;
}
.client {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  background: var(--surface);
  border-left: 3px solid var(--blue);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.95rem;
}
.client-flag {
  font-size: 1.4rem;
  flex-shrink: 0;
}

/* ============== CTA BAND ============== */
.cta-band {
  background:
    linear-gradient(135deg, rgba(255,107,26,.94), rgba(212,78,10,.94)),
    url('/assets/img/hero/road-equipment-800.jpg') center/cover;
  padding: 80px 0;
  text-align: center;
  color: #0a0e1a;
}
.cta-band h2 {
  color: #0a0e1a;
  margin-bottom: 14px;
}
.cta-band p {
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 32px;
  color: rgba(10,14,26,.85);
}
.cta-band .btn-primary {
  background: #0a0e1a;
  color: var(--accent);
}
.cta-band .btn-primary:hover {
  background: #000;
  color: var(--accent-hot);
}

/* ============== PAGE HERO (sub-pages) ============== */
.page-hero {
  position: relative;
  padding: 200px 0 100px;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.page-hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(.35) contrast(1.05);
}
.page-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,14,26,.7), rgba(10,14,26,.92));
}
.page-hero .container { position: relative; z-index: 1; }
.breadcrumb {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 20px;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent); }

/* ============== LEADERSHIP ============== */
.leadership-grid {
  display: grid;
  /* Capped rather than 1fr so a single card does not stretch the full
     container width, and centred so any count sits balanced. */
  grid-template-columns: repeat(auto-fit, minmax(280px, 360px));
  justify-content: center;
  gap: 24px;
  margin-top: 40px;
}
.leader {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
}
.leader-avatar {
  width: 120px; height: 120px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Oswald', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: #0a0e1a;
  border: 3px solid var(--border);
}
.leader-name {
  font-family: 'Oswald', sans-serif;
  font-size: 1.3rem;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.leader-role {
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 16px;
}
.leader-contact {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.8;
}
.leader-contact a { color: var(--text-muted); }
.leader-contact a:hover { color: var(--accent); }

/* ============== CONTACT ============== */
.contact-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 50px;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 36px; } }

.contact-info-card {
  background: var(--surface);
  padding: 36px 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}
.contact-info-card h3 { margin-bottom: 24px; }
.contact-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.contact-row:last-child { border-bottom: none; }
.contact-icon {
  width: 44px; height: 44px;
  flex-shrink: 0;
  background: rgba(255,107,26,.12);
  color: var(--accent);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
}
.contact-row-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  color: var(--text-dim);
  letter-spacing: 0.15em;
  margin-bottom: 4px;
}
.contact-row-value { color: var(--text); font-size: 0.98rem; line-height: 1.5; }
.contact-row-value a { color: var(--text); }
.contact-row-value a:hover { color: var(--accent); }

/* Form */
.contact-form {
  background: var(--surface);
  padding: 36px 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.form-group {
  margin-bottom: 18px;
}
.form-group label {
  display: block;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 8px;
  font-weight: 600;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: inherit;
  font-size: 0.98rem;
  transition: border-color .2s var(--tx);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255,107,26,.15);
}
.form-group textarea { resize: vertical; min-height: 130px; }

/* ============== FOOTER ============== */
.footer {
  background: #060912;
  border-top: 1px solid var(--border);
  padding: 70px 0 28px;
  margin-top: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 48px;
  margin-bottom: 48px;
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 500px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-brand img { height: 56px; margin-bottom: 18px; }
.footer-brand p {
  color: var(--text-muted);
  font-size: 0.92rem;
  max-width: 320px;
}
.footer h5 {
  font-family: 'Oswald', sans-serif;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text);
  margin-bottom: 18px;
  position: relative;
  padding-bottom: 10px;
}
.footer h5::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 30px; height: 2px;
  background: var(--accent);
}
.footer ul { list-style: none; }
.footer ul li {
  margin-bottom: 10px;
  font-size: 0.92rem;
}
.footer ul li a {
  color: var(--text-muted);
}
.footer ul li a:hover { color: var(--accent); }
.footer-contact-row {
  display: flex; align-items: flex-start; gap: 10px;
  margin-bottom: 14px;
  font-size: 0.92rem;
  color: var(--text-muted);
}
.footer-contact-row span:first-child { color: var(--accent); flex-shrink: 0; }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 26px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.85rem;
  color: var(--text-dim);
}
.footer-bottom a { color: var(--text-dim); }
.footer-bottom a:hover { color: var(--accent); }

/* ============== UTILITIES ============== */
.text-accent { color: var(--accent); }
.muted { color: var(--text-muted); }
.center { text-align: center; }
.mt-md { margin-top: 24px; }
.mt-lg { margin-top: 40px; }

/* Scroll-in animation — only hides when JS is available (graceful no-JS fallback) */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s var(--tx), transform .6s var(--tx);
}
.js .reveal.visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============== WHATSAPP FLOATING BUTTON ============== */
.wa-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  background: #25D366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 90;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4),
              0 2px 6px rgba(0, 0, 0, 0.3);
  text-decoration: none;
  transition: transform .2s var(--tx), box-shadow .2s var(--tx);
}
.wa-fab:hover {
  transform: scale(1.08);
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.55),
              0 2px 6px rgba(0, 0, 0, 0.3);
  color: #fff;
}
.wa-fab svg {
  width: 32px;
  height: 32px;
  fill: #fff;
}
/* Pulse ring */
.wa-fab::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid #25D366;
  opacity: 0;
  animation: wa-pulse 2.4s ease-out infinite;
}
@keyframes wa-pulse {
  0%   { transform: scale(0.95); opacity: 0.7; }
  70%  { transform: scale(1.25); opacity: 0;   }
  100% { transform: scale(1.25); opacity: 0;   }
}
/* Tooltip on hover */
.wa-fab::after {
  content: 'Chat on WhatsApp';
  position: absolute;
  right: 72px;
  top: 50%;
  transform: translateY(-50%);
  background: #0a0e1a;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s var(--tx);
  box-shadow: 0 4px 12px rgba(0,0,0,.3);
}
.wa-fab::after {
  /* small arrow */
  background: #0a0e1a;
}
.wa-fab:hover::after { opacity: 1; }
@media (max-width: 640px) {
  .wa-fab { width: 56px; height: 56px; bottom: 18px; right: 18px; }
  .wa-fab svg { width: 28px; height: 28px; }
  .wa-fab::after { display: none; }
}

/* Filter chips for projects page */
.filter-chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 40px;
}
.chip {
  padding: 10px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-muted);
  font-family: 'Oswald', sans-serif;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: all .2s var(--tx);
}
.chip:hover { color: var(--text); border-color: var(--accent); }
.chip.active { background: var(--accent); color: #0a0e1a; border-color: var(--accent); }

/* ===================================================================
   GALLERY, MEDIA AND PAGE COMPONENTS
   Added in the 2026 rebuild. The gallery deliberately respects each
   photo's native aspect ratio: most of the mining media is portrait
   phone footage, and cropping it into 16:9 tiles loses the subject.
   =================================================================== */

/* ---- skip link ---- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--accent);
  color: #0a0e1a;
  font-weight: 700;
  padding: 12px 20px;
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; color: #0a0e1a; }

/* ---- visible focus for keyboard users ---- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.tile:focus-visible,
video:focus-visible {
  outline: 3px solid var(--accent-2);
  outline-offset: 2px;
}

body.no-scroll { overflow: hidden; }

/* ---- mineral quick-nav chips ---- */
.mineral-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 10px 0 0;
}
.chip-link {
  display: inline-block;
  padding: 10px 20px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-muted);
  font-family: 'Oswald', sans-serif;
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: all .2s var(--tx);
}
.chip-link:hover,
.chip-link:focus-visible {
  color: #0a0e1a;
  background: var(--accent);
  border-color: var(--accent);
}

/* ---- mineral sections ---- */
.mineral { scroll-margin-top: 92px; }
.mineral-head { max-width: 780px; margin-bottom: 36px; }
.mineral-body { font-size: 1.02rem; margin-top: 14px; }

/* ---- the gallery ---- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
  align-items: start;
}
@media (max-width: 600px) {
  .gallery { grid-template-columns: 1fr 1fr; gap: 12px; }
}

.tile {
  position: relative;
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: zoom-in;
  transition: transform .25s var(--tx), box-shadow .25s var(--tx), border-color .25s var(--tx);
}
.tile:hover,
.tile:focus-visible {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(255, 107, 26, .45);
}
.tile picture { display: block; }
.tile img {
  width: 100%;
  height: auto;
  display: block;
  background: var(--surface-2);
}
/* Portrait tiles stay portrait but are capped so one photo cannot
   dominate the column. */
.tile-portrait img { max-height: 520px; object-fit: cover; object-position: center; }

.tile figcaption {
  padding: 12px 14px 14px;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--text-muted);
}
.tile figcaption strong {
  display: block;
  color: var(--text);
  font-family: 'Oswald', sans-serif;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 4px 0 2px;
}
.tile figcaption span { display: block; }

.project-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ---- video ---- */
.vid-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
  margin-top: 22px;
  align-items: start;
}
.vid {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.vid video {
  display: block;
  width: 100%;
  height: auto;
  background: #000;
}
.vid-portrait { max-width: 340px; }
.vid-portrait video { max-height: 600px; }
.vid figcaption {
  padding: 12px 14px 14px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* ---- figure cards in two-column layouts ---- */
.figure-card {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.figure-card img { width: 100%; height: auto; display: block; }
.figure-card figcaption {
  padding: 12px 16px 14px;
  font-size: 0.86rem;
  color: var(--text-muted);
  text-align: center;
}

/* ---- lightbox ---- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
  background: rgba(5, 7, 13, .94);
  backdrop-filter: blur(4px);
}
.lightbox.open { display: flex; }
.lightbox figure {
  margin: 0;
  max-width: 1100px;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.lightbox img {
  max-width: 100%;
  max-height: calc(100vh - 130px);
  width: auto;
  object-fit: contain;
  border-radius: var(--radius);
  margin: 0 auto;
}
.lightbox figcaption {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.92rem;
}
.lightbox-close {
  position: absolute;
  top: 18px;
  right: 22px;
  width: 46px;
  height: 46px;
  font-size: 1.8rem;
  line-height: 1;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 50%;
  cursor: pointer;
}
.lightbox-close:hover { background: var(--accent); color: #0a0e1a; }

/* ---- achievements ---- */
.achievement-list { display: flex; flex-direction: column; gap: 28px; }
.achievement {
  display: grid;
  grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.achievement.featured { border-left: 4px solid var(--accent); }
@media (max-width: 860px) {
  .achievement { grid-template-columns: 1fr; gap: 0; }
}
.achievement-media img { width: 100%; height: 100%; max-height: 420px; object-fit: cover; display: block; }
.achievement-body { padding: 26px 28px 28px; }
@media (max-width: 860px) { .achievement-body { padding: 22px; } }
.achievement-year {
  display: inline-block;
  font-family: 'Oswald', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 8px;
}
.achievement-body h3 { margin-bottom: 12px; }
.achievement-body > p { color: var(--text-muted); font-size: 0.98rem; }
.achievement-meta {
  margin-top: 20px;
  border-top: 1px solid var(--border);
  padding-top: 16px;
  display: grid;
  gap: 10px;
}
.achievement-meta > div {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 12px;
  font-size: 0.92rem;
}
@media (max-width: 520px) {
  .achievement-meta > div { grid-template-columns: 1fr; gap: 2px; }
}
.achievement-meta dt {
  color: var(--text-dim);
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  padding-top: 3px;
}
.achievement-meta dd { margin: 0; color: var(--text); }

/* ---- trust panel ---- */
.trust-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.trust-panel h2 {
  font-size: 1.3rem;
  margin-bottom: 14px;
}
.trust-panel strong { color: var(--text); }

/* ---- forms ---- */
.req { color: var(--accent); }
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-submit { width: 100%; justify-content: center; }
.form-note { text-align: center; font-size: 0.82rem; margin-top: 14px; }
.form-status { margin-top: 12px; text-align: center; font-size: 0.9rem; color: var(--text-muted); }
.form-status.error { color: #ff8a7a; }
.contact-form h2 { margin-bottom: 24px; }
.contact-info-card h2 { margin-bottom: 24px; }

/* ---- map ---- */
.map-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  line-height: 0;
}
.map-wrap iframe { border: 0; display: block; filter: invert(0.9) hue-rotate(180deg); }

/* ---- clients (emoji flags removed; they read badly on screen readers) ---- */
.client::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 12px;
  flex-shrink: 0;
}

/* ---- footer heading (was an h5, now a real heading element) ---- */
.footer-heading {
  font-family: 'Oswald', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text);
  margin-bottom: 18px;
  position: relative;
  padding-bottom: 10px;
}
.footer-heading::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 28px;
  height: 2px;
  background: var(--accent);
}
.fc-icon { color: var(--accent); flex-shrink: 0; }

/* ---- 404 ---- */
.error-page { padding-top: 160px; }
.error-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 32px;
}

/* ---- misc utilities used by the new pages ---- */
.lead-copy { font-size: 1.05rem; }
.mt-xl { margin-top: 60px; }
.small { font-size: 0.9rem; }
.two-up { grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) { .two-up { grid-template-columns: 1fr; } }
.service-card.compact { padding: 24px; }
.service-card.compact h3 { font-size: 1.05rem; }
.sub-head {
  font-family: 'Oswald', sans-serif;
  font-size: 1.4rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}
.sub-lead { font-size: 0.98rem; max-width: 700px; margin-bottom: 32px; }
.nav-brand-text { display: block; line-height: 1; }

/* The reveal animation is quick on purpose: a slow fade leaves blank
   space on a fast scroll, which reads as a broken page. */
.js .reveal { transition: opacity .35s var(--tx), transform .35s var(--tx); }

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .tile, .tile:hover { transition: none; transform: none; }
  html { scroll-behavior: auto; }
}
