/* ============================================================
   HOME PAGE STYLES — MTI Resource
   ============================================================ */

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  --background: 210 20% 98%;
  --foreground: 215 30% 15%;
  --card: 0 0% 100%;
  --primary: 215 50% 18%;
  --primary-fg: 210 20% 98%;
  --muted: 210 15% 95%;
  --muted-fg: 215 12% 50%;
  --accent: 35 85% 55%;
  --accent-fg: 215 50% 12%;
  --border: 210 18% 88%;
  --navy-deep: 215 55% 12%;

  --col-bg: hsl(var(--background));
  --col-fg: hsl(var(--foreground));
  --col-primary: hsl(var(--primary));
  --col-primary-fg: hsl(var(--primary-fg));
  --col-accent: hsl(var(--accent));
  --col-muted: hsl(var(--muted));
  --col-muted-fg: hsl(var(--muted-fg));
  --col-border: hsl(var(--border));
  --col-navy: hsl(var(--navy-deep));
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Barlow', sans-serif;
  background: var(--col-bg);
  color: var(--col-fg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  background: var(--col-primary);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.12;
}

.hero-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(hsl(var(--primary-fg) / 0.03) 1px, transparent 1px),
    linear-gradient(90deg, hsl(var(--primary-fg) / 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* Diagonal accent */
.hero::after {
  content: '';
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 35%;
  background: hsl(var(--accent) / 0.05);
  clip-path: polygon(12% 0, 100% 0, 100% 100%, 0% 100%);
  pointer-events: none;
}

/* Main text area */
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 82rem;
  margin: auto;
  width: 100%;
  padding: 5rem 2rem 3.5rem;
}

.hero-left { max-width: 48rem; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--col-accent);
  margin-bottom: 1.25rem;
}
.eyebrow::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--col-accent);
}

.hero-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  line-height: 1.0;
  color: var(--col-primary-fg);
  text-transform: uppercase;
}
.hero-title em { font-style: normal; color: var(--col-accent); }

.hero-subtitle {
  margin-top: 1.5rem;
  color: hsl(var(--primary-fg) / 0.65);
  font-size: 1.05rem;
  line-height: 1.75;
  max-width: 36rem;
}

.hero-actions {
  margin-top: 2.25rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ============================================================
   STAT BAR — horizontal strip at bottom of hero
   ============================================================ */
.stat-bar {
  position: relative;
  z-index: 2;
  background: hsl(var(--navy-deep));
  border-top: 1px solid hsl(var(--primary-fg) / 0.1);
}

.stat-bar-inner {
  max-width: 82rem;
  margin: auto;
  padding: 0 2rem;
  display: flex;
  align-items: stretch;
}

.stat-bar-item {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.6rem 2rem;
}

.stat-bar-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 2.8rem;
  line-height: 1;
  color: var(--col-accent);
  white-space: nowrap;
  flex-shrink: 0;
}

.stat-bar-num sup {
  font-size: 1.2rem;
  vertical-align: super;
}

.stat-bar-text {
  font-size: 0.82rem;
  font-weight: 500;
  color: hsl(var(--primary-fg) / 0.5);
  line-height: 1.5;
  letter-spacing: 0.02em;
}

.stat-bar-divider {
  width: 1px;
  background: hsl(var(--primary-fg) / 0.1);
  align-self: stretch;
  margin: 0.75rem 0;
  flex-shrink: 0;
}

/* ============================================================
   MARQUEE STRIP
   ============================================================ */
.marquee-strip {
  background: var(--col-accent);
  overflow: hidden;
  padding: 0.65rem 0;
  white-space: nowrap;
}
.marquee-track {
  display: inline-flex;
  gap: 3rem;
  animation: marquee 30s linear infinite;
}
.marquee-item {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: hsl(var(--accent-fg));
  display: flex;
  align-items: center;
  gap: 1rem;
}
.marquee-dot {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: hsl(var(--accent-fg) / 0.4);
  flex-shrink: 0;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================================
   SECTION SHELL
   ============================================================ */
.section { padding: 5.5rem 2rem; }
.section--muted  { background: var(--col-muted); }
.section--white  { background: hsl(var(--card)); }
.section--why { background: var(--col-muted); }

.wrap { max-width: 82rem; margin: auto; }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--col-accent);
  margin-bottom: 1rem;
}
.section-label::before {
  content: '';
  width: 20px; height: 2px;
  background: var(--col-accent);
  flex-shrink: 0;
}

.section-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: clamp(1.9rem, 3.2vw, 2.8rem);
  text-transform: uppercase;
  line-height: 1.05;
  color: var(--col-fg);
}

/* ============================================================
   EXPERIENCE SECTION
   ============================================================ */
.exp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.exp-body {
  color: var(--col-muted-fg);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-top: 1.2rem;
}
.exp-img-wrap { position: relative; }
.exp-img-wrap::before {
  content: '';
  position: absolute;
  inset: -12px 12px 12px -12px;
  border: 2px solid var(--col-accent);
  border-radius: 3px;
  z-index: 0;
}
.exp-img {
  position: relative;
  z-index: 1;
  width: 100%;
  border-radius: 3px;
  object-fit: cover;
  aspect-ratio: 4/3;
}

/* ============================================================
   SERVICES
   ============================================================ */
.services-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--col-border);
  border: 1px solid var(--col-border);
  margin-top: 3rem;
}
.svc-card {
  background: var(--col-bg);
  padding: 2.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  overflow: hidden;
  transition: background 0.25s;
}
.svc-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--col-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.svc-card:hover { background: hsl(var(--muted)); }
.svc-card:hover::after { transform: scaleX(1); }
.svc-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 2.5rem;
  color: hsl(var(--border));
  line-height: 1;
  transition: color 0.25s;
}
.svc-card:hover .svc-num { color: hsl(var(--accent) / 0.25); }
.svc-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--col-fg);
}
.svc-desc { font-size: 0.9rem; color: var(--col-muted-fg); line-height: 1.7; }

/* ============================================================
   INDUSTRIES
   ============================================================ */

.section-subtitle {
  margin-top: 0.75rem;
  font-size: 1rem;
  color: var(--col-muted-fg);
  line-height: 1.7;
  max-width: 40rem;
  text-align: left;
}
.ind-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.5rem;
}
.ind-tag {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: hsl(var(--card));
  border: 1.5px solid var(--col-border);
  padding: 0.65rem 1.25rem;
  border-radius: 2px;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--col-fg);
  transition: border-color 0.2s, color 0.2s;
}
.ind-tag:hover { border-color: var(--col-accent); color: var(--col-accent); }
.ind-tag svg {
  width: 14px; height: 14px;
  stroke: var(--col-accent);
  fill: none;
  flex-shrink: 0;
}

/* ============================================================
   WHY US — light/muted theme
   ============================================================ */
.why-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 3rem;
}

.why-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: clamp(2.2rem, 3.5vw, 3.2rem);
  text-transform: uppercase;
  line-height: 1.05;
  color: var(--col-fg);
}

.why-subtitle {
  max-width: 28rem;
  font-size: 0.95rem;
  color: var(--col-muted-fg);
  line-height: 1.75;
  text-align: right;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.why-card {
  background: var(--col-bg);
  border: 1px solid var(--col-border);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  border-top: 3px solid transparent;
  transition: border-top-color 0.25s, box-shadow 0.25s;
}
.why-card:hover {
  border-top-color: var(--col-accent);
  box-shadow: 0 6px 20px rgba(0,0,0,0.07);
}

.why-icon-wrap {
  width: 48px; height: 48px;
  border: 1.5px solid hsl(var(--accent) / 0.3);
  background: hsl(var(--accent) / 0.07);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.why-icon {
  width: 22px; height: 22px;
  stroke: var(--col-accent);
  fill: none;
}

.why-card-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--col-fg);
}
.why-card-desc {
  font-size: 0.875rem;
  color: var(--col-muted-fg);
  line-height: 1.7;
}

/* ============================================================
   ABOUT / FOUNDER
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.about-body {
  font-size: 1.05rem;
  color: var(--col-muted-fg);
  line-height: 1.8;
  margin-top: 1.25rem;
}

/* ============================================================
   CTA
   ============================================================ */
.cta-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: center;
  border-left: 4px solid var(--col-accent);
  padding-left: 2.5rem;
}
.cta-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  text-transform: uppercase;
  line-height: 1.05;
  color: var(--col-fg);
}
.cta-sub {
  margin-top: 0.65rem;
  font-size: 0.95rem;
  color: var(--col-muted-fg);
  line-height: 1.7;
}

/* ============================================================
   SHARED BUTTONS & LINKS
   ============================================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--col-accent);
  color: hsl(var(--accent-fg));
  font-weight: 700;
  font-size: 0.875rem;
  padding: 0.9rem 1.75rem;
  border-radius: 2px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: opacity 0.2s, transform 0.15s;
  white-space: nowrap;
}
.btn-primary:hover { opacity: 0.87; transform: translateY(-1px); }
.btn-primary svg { width: 16px; height: 16px; stroke: currentColor; fill: none; }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1.5px solid hsl(var(--primary-fg) / 0.3);
  color: hsl(var(--primary-fg) / 0.8);
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.9rem 1.75rem;
  border-radius: 2px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: border-color 0.2s, color 0.2s;
}
.btn-outline:hover {
  border-color: hsl(var(--primary-fg) / 0.7);
  color: var(--col-primary-fg);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--col-accent);
  margin-top: 2rem;
  transition: gap 0.2s;
}
.link-arrow:hover { gap: 0.7rem; }
.link-arrow svg { width: 16px; height: 16px; stroke: currentColor; fill: none; }

.mt-2 { margin-top: 2rem; }
.no-wrap { white-space: nowrap; }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .services-strip { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .section { padding: 4rem 1.25rem; }
  .exp-grid { grid-template-columns: 1fr; }
  .exp-img-wrap::before { display: none; }
  .why-header { flex-direction: column; align-items: flex-start; }
  .why-subtitle { text-align: left; }
  .cta-inner { grid-template-columns: 1fr; border-left: none; padding-left: 0; border-top: 4px solid var(--col-accent); padding-top: 1.5rem; }
  .about-grid { grid-template-columns: 1fr; }
  /* Stat bar stacks on mobile */
  .stat-bar-inner { flex-direction: column; }
  .stat-bar-divider { width: 100%; height: 1px; margin: 0; }
  .stat-bar-item { padding: 1.25rem 1.5rem; }
}

@media (max-width: 640px) {
  .services-strip { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
}
