/**
 * Homepage CSS — U.S. Green Magnesium Americana
 * Sections: HERO, TICKER, IMPACT, MISSION, PROCESS, STRATEGIC EDGE, APPLICATIONS, LEADERSHIP, CTA
 */

/* ══════════════════════════════════════════
   HERO — full-bleed cinematic, centred text
   ══════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  border-bottom: 4px solid var(--red-accent);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(10, 22, 40, 0.85) 0%,
      rgba(10, 22, 40, 0.7) 40%,
      rgba(10, 22, 40, 0.92) 100%
    ),
    url("https://www.usgreenmagnesium.com/wp-content/uploads/2026/03/mg_background_hq.jpg")
      center/cover no-repeat;
}
.hero-grid {
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image:
    linear-gradient(var(--blue-accent) 1px, transparent 1px),
    linear-gradient(90deg, var(--blue-accent) 1px, transparent 1px);
  background-size: 80px 80px;
}
.hero-content {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
  padding: 180px 40px 140px;
}
.hero-flag {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
}
.hero-flag-bar {
  width: 32px;
  height: 3px;
}
.hero-flag-bar:nth-child(1) {
  background: var(--red-accent);
}
.hero-flag-bar:nth-child(2) {
  background: var(--white);
}
.hero-flag-bar:nth-child(3) {
  background: var(--blue-accent);
}
.hero-title {
  font-family: "Oswald", sans-serif;
  font-size: clamp(48px, 7vw, 88px);
  font-weight: 700;
  line-height: 1;
  color: var(--white);
  text-transform: uppercase;
  margin-bottom: 28px;
  letter-spacing: -1px;
}
.hero-title span {
  color: var(--blue-accent);
}
.hero-subtitle {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0 auto 44px;
  max-width: 580px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
}
.hero-badges {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin-top: 56px;
  flex-wrap: wrap;
}
.hero-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  background: rgba(59, 130, 246, 0.06);
  border: 1px solid var(--border);
}
.hero-badge-icon {
  font-family: "Oswald", sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: var(--blue-accent);
  letter-spacing: 1px;
}
.hero-badge-text {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}

/* ══════════════════════════════════════════
   TICKER — red announcement strip
   ══════════════════════════════════════════ */
.ticker {
  background: var(--red-accent);
  padding: 14px 0;
  overflow: hidden;
}
.ticker-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.ticker-label {
  font-family: "Oswald", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--white);
  background: rgba(0, 0, 0, 0.2);
  padding: 4px 12px;
  flex-shrink: 0;
}
.ticker-text {
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  flex: 1;
}
.ticker-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 6px 16px;
  white-space: nowrap;
  transition: all 0.2s;
}
.ticker-link:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.7);
  opacity: 1;
}

/* ══════════════════════════════════════════
   IMPACT — stat blocks with red top borders on hover
   ══════════════════════════════════════════ */
.impact {
  background: var(--navy-mid);
}
.impact-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.impact-stat {
  padding: 48px 32px;
  text-align: center;
  border-right: 1px solid var(--border);
  border-top: 3px solid transparent;
  transition: border-color 0.3s;
}
.impact-stat:last-child {
  border-right: none;
}
.impact-stat:hover {
  border-top-color: var(--red-accent);
}
.impact-number {
  font-family: "Oswald", sans-serif;
  font-size: 56px;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
  margin-bottom: 8px;
}
.impact-unit {
  font-family: "Oswald", sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue-accent);
  letter-spacing: 2px;
  text-transform: uppercase;
}
.impact-context {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 6px;
}

/* ══════════════════════════════════════════
   MISSION — editorial: narrow heading column + wide text
   ══════════════════════════════════════════ */
.mission {
  padding: 120px 0;
  border-bottom: 1px solid var(--border);
}
.mission-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 80px;
  align-items: start;
}
.mission-left {
  position: sticky;
  top: 120px;
}
.mission-left .red-bar {
  width: 40px;
  height: 3px;
  background: var(--red-accent);
  margin-bottom: 24px;
}
.mission-text {
  font-size: 16px;
  line-height: 1.85;
  color: var(--text-secondary);
}
.mission-text p {
  margin-bottom: 24px;
}
.mission-text p:last-child {
  margin-bottom: 0;
}
.mission-text a {
  color: var(--blue-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(59, 130, 246, 0.4);
}
.mission-text a:hover {
  text-decoration-color: var(--blue-accent);
  opacity: 1;
}
.mission-callout {
  margin-top: 32px;
  padding: 28px 32px;
  background: var(--navy-card);
  border-left: 3px solid var(--red-accent);
}
.mission-callout p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-primary);
  font-weight: 500;
  margin-bottom: 0;
}
.mission-callout strong {
  color: var(--white);
}

/* ══════════════════════════════════════════
   PROCESS — vertical timeline
   ══════════════════════════════════════════ */
.process {
  padding: 120px 0;
  background: var(--navy-mid);
  border-bottom: 1px solid var(--border);
}
.process-header {
  margin-bottom: 72px;
  text-align: center;
}
.process-header p {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 540px;
  margin: 8px auto 0;
}
.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border-strong);
  transform: translateX(-50%);
}
.timeline-item {
  display: grid;
  grid-template-columns: 1fr 60px 1fr;
  align-items: start;
  margin-bottom: 48px;
}
.timeline-item:last-child {
  margin-bottom: 0;
}
.timeline-left {
  text-align: right;
}
.timeline-right {
  text-align: left;
}
.timeline-dot {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin: 0 auto;
  background: var(--navy-mid);
  border: 2px solid var(--blue-accent);
  border-radius: 50%;
  position: relative;
  z-index: 1;
  font-family: "Oswald", sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--blue-accent);
  transition: all 0.3s;
}
.timeline-item:hover .timeline-dot {
  background: var(--blue-accent);
  color: var(--navy);
}
.timeline-card {
  padding: 28px 32px;
  background: var(--navy-card);
  border: 1px solid var(--border);
  transition: border-color 0.3s;
}
.timeline-item:hover .timeline-card {
  border-color: var(--border-strong);
}
.timeline-card h3 {
  font-family: "Oswald", sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--white);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.timeline-card p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-secondary);
}

/* ══════════════════════════════════════════
   STRATEGIC EDGE — bento grid
   ══════════════════════════════════════════ */
.edge {
  padding: 120px 0;
  border-bottom: 1px solid var(--border);
}
.edge-header {
  margin-bottom: 60px;
}
.edge-header .red-bar {
  width: 40px;
  height: 3px;
  background: var(--red-accent);
  margin-top: 24px;
}
.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 2px;
}
.bento-card {
  background: var(--navy-card);
  padding: 40px 36px;
  transition: background 0.3s;
  position: relative;
  overflow: hidden;
}
.bento-card:hover {
  background: var(--navy-surface);
}
.bento-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--blue-accent);
  opacity: 0;
  transition: opacity 0.3s;
}
.bento-card:hover::before {
  opacity: 1;
}
.bento-num {
  font-family: "Oswald", sans-serif;
  font-size: 48px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 20px;
  -webkit-text-stroke: 1px var(--text-dim);
  transition: all 0.3s;
}
.bento-card:hover .bento-num {
  color: var(--red-accent);
  -webkit-text-stroke-color: var(--red-accent);
}
.bento-title {
  font-family: "Oswald", sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--white);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.bento-text {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary);
}
.bento-text a {
  color: var(--blue-accent);
}

/* ══════════════════════════════════════════
   APPLICATIONS — horizontal card strip with red left borders on hover
   ══════════════════════════════════════════ */
.applications {
  padding: 120px 0;
  background: var(--navy-mid);
  border-bottom: 1px solid var(--border);
}
.applications-header {
  margin-bottom: 60px;
}
.applications-header p {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 500px;
  margin-top: 8px;
}
.app-stack {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.app-row {
  display: grid;
  grid-template-columns: 200px 1fr 160px;
  align-items: center;
  background: var(--navy-card);
  border-left: 3px solid var(--text-dim);
  padding: 32px 36px;
  transition: all 0.3s;
}
.app-row:hover {
  border-left-color: var(--red-accent);
  background: var(--navy-surface);
}
.app-industry {
  font-family: "Oswald", sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--white);
  text-transform: uppercase;
}
.app-desc {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-secondary);
  padding: 0 24px;
}
.app-metric {
  text-align: right;
}
.app-metric-num {
  font-family: "Oswald", sans-serif;
  font-size: 36px;
  font-weight: 700;
  color: var(--blue-accent);
  line-height: 1;
}
.app-metric-label {
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  margin-top: 4px;
}

/* ══════════════════════════════════════════
   LEADERSHIP — card grid
   ══════════════════════════════════════════ */
.leadership {
  padding: 120px 0;
  border-bottom: 1px solid var(--border);
}
.leadership-header {
  margin-bottom: 60px;
}
.leadership-subtitle {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 500px;
  margin-top: 16px;
}
.leadership-subtitle a {
  color: var(--blue-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(59, 130, 246, 0.4);
}
.leadership-subtitle a:hover {
  text-decoration-color: var(--blue-accent);
  opacity: 1;
}
.leader-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}
.leader-card {
  background: var(--navy-card);
  transition: background 0.3s;
  overflow: hidden;
}
.leader-card:hover {
  background: var(--navy-surface);
}
.leader-photo {
  height: 220px;
  background: var(--navy-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 3px solid var(--blue-accent);
}
.leader-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.leader-photo-placeholder {
  font-family: "Oswald", sans-serif;
  font-size: 48px;
  color: var(--text-dim);
  opacity: 0.3;
}
.leader-info {
  padding: 28px 28px 32px;
}
.leader-name {
  font-family: "Oswald", sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--white);
  text-transform: uppercase;
  margin-bottom: 4px;
}
.leader-role {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--red-accent);
  margin-bottom: 14px;
}
.leader-bio {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-secondary);
}

/* ══════════════════════════════════════════
   CTA — full-width blue band
   ══════════════════════════════════════════ */
.cta {
  padding: 100px 0;
  background: var(--blue-steel);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image:
    linear-gradient(var(--white) 1px, transparent 1px),
    linear-gradient(90deg, var(--white) 1px, transparent 1px);
  background-size: 60px 60px;
}
.cta-inner {
  position: relative;
  z-index: 1;
}
.cta h2 {
  font-family: "Oswald", sans-serif;
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
  text-transform: uppercase;
}
.cta p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.75);
  max-width: 480px;
  margin: 0 auto 36px;
  line-height: 1.7;
}
.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.cta .btn-primary {
  background: var(--red-accent);
}
.cta .btn-primary:hover {
  background: var(--red-light);
}
.cta .btn-secondary {
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--white);
}
.cta .btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.08);
}

/* ══════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════ */
@media (max-width: 900px) {
  .hero-content {
    padding: 160px 24px 100px;
  }
  .mission-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .mission-left {
    position: static;
  }
  .impact-inner {
    grid-template-columns: 1fr 1fr;
  }
  .impact-stat:nth-child(2) {
    border-right: none;
  }
  .timeline::before {
    left: 18px;
  }
  .timeline-item {
    grid-template-columns: 36px 1fr;
    grid-auto-flow: dense;
    column-gap: 16px;
    gap: 0;
    margin-bottom: 32px;
  }
  .timeline-dot {
    grid-column: 1;
    width: 36px;
    height: 36px;
    margin: 0;
    align-self: start;
    margin-top: 18px;
    font-size: 13px;
  }
  .timeline-left,
  .timeline-right {
    grid-column: 2;
    text-align: left;
    padding-left: 0;
  }
  .timeline-empty {
    display: none;
  }
  .bento {
    grid-template-columns: 1fr;
  }
  .app-row {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 24px 28px;
  }
  .app-desc {
    padding: 0;
  }
  .app-metric {
    text-align: left;
  }
  .leader-grid {
    grid-template-columns: 1fr;
  }
  .ticker-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}
@media (max-width: 768px) {
  .hero-badges {
    flex-direction: column;
    align-items: center;
  }
}
@media (max-width: 600px) {
  .impact-inner {
    grid-template-columns: 1fr;
  }
  .impact-stat {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .impact-stat:last-child {
    border-bottom: none;
  }
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }
  .cta-actions {
    flex-direction: column;
    align-items: center;
  }
}
