/* ═══════════════════════════════════════
   MAGNA VENTURES — main stylesheet
   ═══════════════════════════════════════ */

/* ── Tokens ── */
:root {
  --c-black:   #0d0d0d;
  --c-charcoal:#1a1a1a;
  --c-dark:    #111417;
  --c-steel:   #1e2530;
  --c-mid:     #2e3a48;
  --c-ore:     #c8510a;       /* signature amber-orange */
  --c-ore-lt:  #e0661a;
  --c-ore-dim: #7a3106;
  --c-sand:    #f5f0e8;
  --c-white:   #ffffff;
  --c-muted:   #8a95a3;
  --c-line:    rgba(255,255,255,0.08);

  --f-display: 'Barlow Condensed', sans-serif;
  --f-body:    'Inter', sans-serif;

  --r: 4px;
  --r-lg: 10px;
  --shadow: 0 4px 24px rgba(0,0,0,0.35);
}

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

/* ── Utility ── */
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section.dark { background: var(--c-dark); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.section-eyebrow {
  font-family: var(--f-display);
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-ore);
  margin-bottom: 12px;
}
.section-eyebrow.light { color: var(--c-ore-lt); }
h2 {
  font-family: var(--f-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--c-black);
  margin-bottom: 24px;
}
h2.light { color: var(--c-white); }
h3 { font-family: var(--f-display); font-weight: 700; font-size: 1.4rem; }
p { color: #444; line-height: 1.7; }

/* ── Buttons ── */
.btn-primary {
  display: inline-block;
  background: var(--c-ore);
  color: var(--c-white);
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: var(--r);
  transition: background 0.2s, transform 0.15s;
  border: none;
  cursor: pointer;
}
.btn-primary:hover { background: var(--c-ore-lt); transform: translateY(-1px); }
.btn-primary.full { width: 100%; text-align: center; padding: 16px; font-size: 1.05rem; }
.btn-ghost {
  display: inline-block;
  border: 2px solid rgba(255,255,255,0.4);
  color: var(--c-white);
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 12px 30px;
  border-radius: var(--r);
  transition: border-color 0.2s, background 0.2s;
}
.btn-ghost:hover { border-color: var(--c-white); background: rgba(255,255,255,0.08); }

/* ════════════════════════════════════════
   NAVIGATION
═══════════════════════════════════════ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(13,13,13,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--c-line);
}
.nav-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 24px;
  height: 64px;
  display: flex; align-items: center; justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark {
  width: 36px; height: 36px;
  background: var(--c-ore);
  color: var(--c-white);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-display); font-weight: 800; font-size: 1.2rem;
  border-radius: 3px;
}
.logo-text {
  font-family: var(--f-display); font-weight: 800; font-size: 1rem;
  line-height: 1.15; color: var(--c-white); letter-spacing: 0.04em;
}
.logo-text small { font-size: 0.7rem; color: var(--c-muted); letter-spacing: 0.12em; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { color: #bbb; font-size: 0.9rem; letter-spacing: 0.03em; transition: color 0.15s; }
.nav-links a:hover { color: var(--c-white); }
.nav-cta {
  background: var(--c-ore) !important; color: var(--c-white) !important;
  padding: 8px 20px; border-radius: var(--r);
  font-family: var(--f-display); font-weight: 700 !important; font-size: 0.85rem !important;
  letter-spacing: 0.06em; text-transform: uppercase;
}
.nav-cta:hover { background: var(--c-ore-lt) !important; }
.hamburger { display: none; background: none; border: none; color: var(--c-white); font-size: 1.4rem; cursor: pointer; }
.mobile-menu {
  display: none; flex-direction: column; padding: 12px 24px 16px;
  background: var(--c-dark); border-top: 1px solid var(--c-line);
}
.mobile-menu a { color: #ccc; padding: 10px 0; font-size: 1.05rem; border-bottom: 1px solid var(--c-line); }
.mobile-menu.open { display: flex; }

/* ════════════════════════════════════════
   HERO
═══════════════════════════════════════ */
.hero {
  min-height: 100vh;
  background: var(--c-dark);
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: center; gap: 48px;
  padding: 120px 60px 80px;
  position: relative; overflow: hidden;
}
.hero-bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(200,81,10,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200,81,10,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute; bottom: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(200,81,10,0.12), transparent 70%);
  pointer-events: none;
}
.hero-content { max-width: 580px; position: relative; z-index: 1; }
.hero-eyebrow {
  font-family: var(--f-display);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-ore);
  margin-bottom: 20px;
}
.hero-headline {
  font-family: var(--f-display);
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 800;
  line-height: 1.0;
  color: var(--c-white);
  margin-bottom: 24px;
}
.hero-headline em { color: var(--c-ore); font-style: normal; }
.hero-sub { color: #9aabb8; font-size: 1.1rem; line-height: 1.7; margin-bottom: 40px; max-width: 480px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* Orbit visual */
.hero-visual { display: flex; align-items: center; justify-content: center; position: relative; z-index: 1; }
.brand-orbit { position: relative; width: 380px; height: 380px; }
.orbit-ring {
  width: 100%; height: 100%;
  border: 1px dashed rgba(200,81,10,0.3);
  border-radius: 50%;
  position: relative;
  animation: spin 24s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.orbit-brand {
  position: absolute;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--c-ore);
  background: var(--c-dark);
  border: 1px solid var(--c-ore-dim);
  padding: 5px 10px;
  border-radius: 3px;
  white-space: nowrap;
  animation: counter-spin 24s linear infinite;
  transform-origin: center;
}
@keyframes counter-spin { to { transform: rotate(-360deg); } }
.b1 { top: -14px;   left: 50%; transform: translateX(-50%) rotate(0deg); }
.b2 { top: 15%;     right: -20px; }
.b3 { bottom: 12%;  right: -24px; }
.b4 { bottom: -14px;left: 50%; transform: translateX(-50%); }
.b5 { bottom: 12%;  left: -24px; }
.b6 { top: 15%;     left: -20px; }
.orbit-center {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 120px; height: 120px;
  background: var(--c-ore);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 1.6rem;
  line-height: 1.2;
  color: var(--c-white);
  box-shadow: 0 0 40px rgba(200,81,10,0.4);
}

/* ════════════════════════════════════════
   STATS STRIP
═══════════════════════════════════════ */
.stats-strip {
  background: var(--c-ore);
  display: flex; justify-content: space-around; flex-wrap: wrap;
  padding: 28px 24px;
}
.stat {
  display: flex; flex-direction: column; align-items: center;
  padding: 8px 24px;
  color: var(--c-white);
}
.stat strong { font-family: var(--f-display); font-size: 2.4rem; font-weight: 800; line-height: 1; }
.stat span { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.85; margin-top: 4px; }

/* ════════════════════════════════════════
   ABOUT
═══════════════════════════════════════ */
.about-text p { margin-bottom: 16px; color: #555; }
.about-pillars {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 20px;
  margin-top: 36px;
}
.pillar {
  background: var(--c-sand);
  border-radius: var(--r-lg);
  padding: 20px 18px;
  border-left: 3px solid var(--c-ore);
}
.pillar-icon { font-size: 1.1rem; color: var(--c-ore); margin-bottom: 8px; }
.pillar strong { font-family: var(--f-display); font-size: 1rem; font-weight: 700; display: block; margin-bottom: 6px; }
.pillar p { font-size: 0.85rem; color: #666; line-height: 1.5; }

.about-img-stack { position: relative; height: 480px; }
.img-card {
  position: absolute;
  background-size: cover; background-position: center;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
}
.img-card.big  { width: 80%; height: 70%; top: 0; left: 0; }
.img-card.small { width: 55%; height: 50%; bottom: 0; right: 0; border: 4px solid var(--c-white); }

/* ════════════════════════════════════════
   CATEGORIES
═══════════════════════════════════════ */
.categories h2 { margin-bottom: 48px; }
.cat-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px;
}
.cat-card {
  background: var(--c-steel);
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--c-line);
  transition: transform 0.2s, box-shadow 0.2s;
}
.cat-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,0.5); }
.cat-img { height: 200px; background-size: cover; background-position: center; }
.cat-body { padding: 24px; }
.cat-num {
  font-family: var(--f-display);
  font-size: 3rem; font-weight: 800;
  color: var(--c-ore-dim);
  line-height: 1; display: block; margin-bottom: 8px;
}
.cat-body h3 { color: var(--c-white); margin-bottom: 10px; font-size: 1.25rem; }
.cat-body p { color: #8a95a3; font-size: 0.9rem; margin-bottom: 16px; }
.cat-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.cat-tags span {
  background: rgba(200,81,10,0.15);
  border: 1px solid var(--c-ore-dim);
  color: var(--c-ore-lt);
  font-size: 0.72rem;
  font-family: var(--f-display);
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  border-radius: 3px;
  text-transform: uppercase;
}

/* brands header photo strip */
.brands-hero-photos {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin: 28px 0 0;
  border-radius: var(--r-lg);
  overflow: hidden;
}
.bhp {
  height: 140px;
  background-size: cover;
  background-position: center;
  transition: transform 0.3s;
}
.bhp:hover { transform: scale(1.03); }

/* ════════════════════════════════════════
   BRANDS
═══════════════════════════════════════ */
.brands { background: var(--c-sand); }
.brands h2 { text-align: center; margin-bottom: 8px; }
.brands > .container > p { text-align: center; color: #666; margin-bottom: 0; max-width: 600px; margin: 0 auto 16px; }

.brand-group { margin-top: 56px; }
.brand-group-label {
  font-family: var(--f-display);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-ore);
  background: var(--c-ore-dim);
  color: #ffd4b0;
  display: inline-block;
  padding: 6px 16px;
  border-radius: 3px;
  margin: 0 24px 20px;
}
.brand-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 0 24px;
  max-width: 1280px;
  margin: 0 auto;
}
.brand-row.trucks { grid-template-columns: repeat(3,1fr); }
.brand-row.engines { grid-template-columns: repeat(6,1fr); }
.brand-row.mining { grid-template-columns: repeat(3,1fr); }

.brand-tile {
  background: var(--c-white);
  border: 1px solid #ddd;
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s;
}
.brand-tile:hover { box-shadow: 0 8px 28px rgba(0,0,0,0.12); transform: translateY(-3px); }
.brand-tile.compact { flex-direction: column; }

.brand-logo-box {
  height: 72px;
  display: flex; align-items: center; justify-content: center;
  padding: 12px;
  background: #f9f9f9;
  border-bottom: 1px solid #eee;
}
.brand-logo-box img { max-height: 40px; max-width: 130px; object-fit: contain; filter: grayscale(0.2); }
.brand-fallback {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  color: var(--c-charcoal);
  display: flex; align-items: center; justify-content: center;
}

.brand-info { padding: 16px; flex: 1; }
.brand-info h4 { font-family: var(--f-display); font-size: 1rem; font-weight: 700; margin-bottom: 8px; color: var(--c-black); }
.brand-info p { font-size: 0.82rem; color: #666; line-height: 1.5; margin-bottom: 10px; }
.brand-info ul li {
  font-size: 0.78rem; color: #777; padding: 2px 0;
  padding-left: 14px; position: relative;
}
.brand-info ul li::before { content: '›'; position: absolute; left: 0; color: var(--c-ore); font-weight: 700; }

.brand-img { height: 100px; background-size: cover; background-position: center; }

/* compact engine tiles — no img */
.brand-tile.compact .brand-img { display: none; }
.brand-tile.compact .brand-info { padding: 14px 12px; }
.brand-tile.compact .brand-info h4 { font-size: 0.9rem; }
.brand-tile.compact .brand-info p { font-size: 0.77rem; }

/* ════════════════════════════════════════
   HOW IT WORKS
═══════════════════════════════════════ */
.how h2 { text-align: center; margin-bottom: 56px; }
.steps {
  display: flex; align-items: stretch; gap: 0;
  max-width: 900px; margin: 0 auto;
}
.step {
  flex: 1; background: var(--c-sand);
  border-radius: var(--r-lg);
  padding: 36px 28px;
  border: 1px solid #e0d9ce;
  text-align: center;
}
.step-n {
  font-family: var(--f-display);
  font-size: 3.5rem; font-weight: 800;
  color: var(--c-ore);
  line-height: 1; margin-bottom: 12px;
}
.step h3 { font-size: 1.15rem; margin-bottom: 10px; }
.step p { font-size: 0.88rem; color: #666; }
.step-arrow {
  display: flex; align-items: center; justify-content: center;
  color: var(--c-ore); font-size: 2rem; padding: 0 8px; flex-shrink: 0;
}

/* ════════════════════════════════════════
   CONTACT
═══════════════════════════════════════ */
.contact-cols { align-items: start; }
.contact-info h2 { margin-bottom: 16px; }
.contact-info > p.light-muted { color: #8a95a3; margin-bottom: 32px; }
.contact-details { display: flex; flex-direction: column; gap: 20px; }
.contact-item { display: flex; gap: 14px; align-items: flex-start; }
.contact-icon { font-size: 1.2rem; flex-shrink: 0; margin-top: 2px; }
.contact-item strong { display: block; color: var(--c-white); margin-bottom: 4px; font-size: 0.9rem; }
.contact-item p { color: #8a95a3; font-size: 0.85rem; }
.contact-item a { color: var(--c-ore-lt); }
.contact-item a:hover { color: var(--c-white); }

.contact-form {
  background: var(--c-steel);
  border-radius: var(--r-lg);
  padding: 36px;
  border: 1px solid var(--c-line);
}
.contact-form h3 { color: var(--c-white); font-size: 1.3rem; margin-bottom: 24px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; color: #aab; font-size: 0.82rem; margin-bottom: 6px; letter-spacing: 0.04em; }
.form-group input,
.form-group textarea {
  width: 100%;
  background: var(--c-mid);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r);
  color: var(--c-white);
  font-family: var(--f-body);
  font-size: 0.9rem;
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.2s;
  resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--c-ore); }
.form-note { color: #7adf7a; font-size: 0.85rem; margin-top: 10px; text-align: center; min-height: 20px; }

/* ════════════════════════════════════════
   FOOTER
═══════════════════════════════════════ */
.site-footer {
  background: var(--c-black);
  border-top: 1px solid var(--c-line);
  padding: 56px 0 0;
}
.footer-inner {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px;
  padding-bottom: 48px;
}
.footer-brand .logo { margin-bottom: 14px; }
.footer-brand p { font-size: 0.8rem; color: var(--c-muted); line-height: 1.7; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links strong { color: var(--c-white); font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 4px; }
.footer-links a { color: var(--c-muted); font-size: 0.85rem; transition: color 0.15s; }
.footer-links a:hover { color: var(--c-ore-lt); }
.footer-bottom {
  border-top: 1px solid var(--c-line);
  padding: 18px 24px;
  text-align: center;
}
.footer-bottom p { color: #555; font-size: 0.8rem; }

/* ════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════ */
@media (max-width: 1100px) {
  .brand-row { grid-template-columns: repeat(2,1fr); }
  .brand-row.trucks { grid-template-columns: repeat(3,1fr); }
  .brand-row.engines { grid-template-columns: repeat(3,1fr); }
  .brand-row.mining { grid-template-columns: repeat(3,1fr); }
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding: 100px 24px 60px; }
  .hero-visual { display: none; }
  .two-col { grid-template-columns: 1fr; }
  .about-img-stack { height: 280px; }
  .cat-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .about-pillars { grid-template-columns: 1fr; }
  .contact-cols { grid-template-columns: 1fr; }
  .brand-row { grid-template-columns: repeat(2,1fr); }
  .brand-row.trucks { grid-template-columns: repeat(2,1fr); }
  .brand-row.engines { grid-template-columns: repeat(2,1fr); }
  .steps { flex-direction: column; gap: 8px; }
  .step-arrow { transform: rotate(90deg); padding: 4px 0; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .hamburger { display: block; }
  .hero-headline { font-size: 2.8rem; }
  .stats-strip { gap: 0; }
  .stat { padding: 8px 12px; }
  .brand-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .about-img-stack { height: 220px; }
}
