/* ============================================================
   HOMEPAGE — page-specific styles (index.html only)
   Link AFTER global.css.
   ============================================================ */

/* ─── HERO ─── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding: 0 48px 80px;
  padding-top: calc(var(--nav-height) + 60px);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../assets/photos/hero/home-img-2.jpg');
  background-size: cover;
  background-position: center;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 70% 40%, rgba(193,39,45,0.18) 0%, transparent 70%),
    linear-gradient(160deg, rgba(17,17,17,0.65) 0%, rgba(26,26,26,0.75) 50%, rgba(13,13,13,0.85) 100%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: linear-gradient(to bottom, transparent 0%, black 30%, black 70%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 30%, black 70%, transparent 100%);
  pointer-events: none;
}

.hero-accent {
  position: absolute;
  top: 0;
  right: 180px;
  width: 3px;
  height: 100%;
  background: linear-gradient(to bottom, transparent, var(--red) 30%, var(--red-dark) 70%, transparent);
  opacity: 0.6;
  pointer-events: none;
}

.hero-accent-2 {
  position: absolute;
  top: 0;
  right: 188px;
  width: 1px;
  height: 100%;
  background: linear-gradient(to bottom, transparent, rgba(193,39,45,0.3) 40%, transparent);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.hero-eyebrow {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-eyebrow::before {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--red);
}

.hero-headline {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(72px, 9vw, 130px);
  line-height: 0.92;
  letter-spacing: 0.02em;
  color: var(--cream);
  margin-bottom: 32px;
}

.hero-headline .line-accent {
  color: var(--red);
  display: block;
}

.hero-sub {
  font-size: 17px;
  font-weight: 300;
  line-height: 1.65;
  color: var(--light-smoke);
  max-width: 520px;
  margin-bottom: 48px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.hero-stats {
  position: absolute;
  right: 48px;
  bottom: 80px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 32px;
  text-align: right;
}

.stat-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 42px;
  letter-spacing: 0.04em;
  color: var(--cream);
  line-height: 1;
}

.stat-num span { color: var(--red); }

.stat-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--smoke);
  margin-top: 4px;
}

/* ─── MARQUEE STRIP ─── */
.marquee-strip {
  background: var(--red);
  padding: 14px 0;
  overflow: hidden;
  position: relative;
}

.marquee-track {
  display: flex;
  gap: 0;
  animation: marquee 32s linear infinite;
  white-space: nowrap;
  width: max-content;
}

.marquee-track span {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.92);
  padding: 0 40px;
}

.marquee-track span::after {
  content: '◆';
  margin-left: 40px;
  opacity: 0.5;
  font-size: 8px;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ─── SERVICES ─── */
.services {
  background: var(--charcoal);
}

.services::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(193,39,45,0.5) 50%, transparent);
}

.services-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: end;
  margin-bottom: 72px;
}

.services-intro {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--light-smoke);
  max-width: 480px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.service-card {
  background: var(--mid);
  padding: 40px 36px;
  position: relative;
  overflow: hidden;
  transition: background 0.25s;
  text-decoration: none;
  color: inherit;
  display: block;
}

.service-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0;
  height: 2px;
  background: var(--red);
  transition: width 0.35s ease;
}

.service-card:hover { background: #333; }
.service-card:hover::before { width: 100%; }

.service-icon-wrap {
  width: 56px;
  height: 56px;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.service-icon-wrap img {
  max-width: 100%;
  max-height: 100%;
  filter: brightness(1.1);
}

.service-num {
  position: absolute;
  top: 24px;
  right: 28px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 48px;
  color: rgba(255,255,255,0.06);
  line-height: 1;
  pointer-events: none;
}

.service-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cream);
  margin-bottom: 14px;
}

.service-desc {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.65;
  color: var(--smoke);
  margin-bottom: 20px;
}

.service-link {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  text-decoration: none;
}

/* ─── WHY RED ARC ─── */
.why {
  background: var(--near-black);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: center;
}

.why-visual {
  position: relative;
  min-height: 520px;
}

.why-box-main {
  position: absolute;
  inset: 0;
  background-image: url('../assets/photos/hero/home-img.jpg');
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(255,255,255,0.06);
}

.why-box-main::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(17,17,17,0.3) 0%, rgba(193,39,45,0.25) 100%);
}

.why-box-accent {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 60%;
  height: 60%;
  border: 2px solid rgba(193,39,45,0.4);
  pointer-events: none;
}

.why-box-accent-2 {
  position: absolute;
  top: -12px;
  left: -12px;
  width: 30%;
  height: 30%;
  border: 1px solid rgba(255,255,255,0.1);
  pointer-events: none;
}

.why-stat-card {
  position: absolute;
  background: var(--charcoal);
  border-left: 3px solid var(--red);
  padding: 20px 24px;
  z-index: 2;
}

.why-stat-card.top-left { top: 32px; left: -32px; }
.why-stat-card.bottom-right { bottom: 40px; right: -24px; }

.why-stat-val {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 32px;
  color: var(--cream);
  line-height: 1;
}

.why-stat-val span { color: var(--red); }

.why-stat-desc {
  font-size: 11px;
  color: var(--smoke);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 6px;
}

.why-body {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.75;
  color: var(--light-smoke);
  margin-bottom: 40px;
}

.why-pillars {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.pillar {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.pillar-dot {
  width: 8px;
  height: 8px;
  background: var(--red);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 8px;
}

.pillar-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cream);
  margin-bottom: 4px;
}

.pillar-text {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.6;
  color: var(--smoke);
}

/* ─── INDUSTRIES STRIP ─── */
.industries {
  background: var(--charcoal);
}

.industries::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(193,39,45,0.4) 50%, transparent);
}

.industries-header {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 56px;
}

.industry-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-start;
}

.industry-tag {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--smoke);
  padding: 16px 32px;
  border: 1px solid rgba(255,255,255,0.1);
  transition: color 0.2s, border-color 0.2s;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}

.industry-tag:hover {
  color: var(--cream);
  border-color: rgba(193,39,45,0.6);
}

.industry-tag.active {
  color: var(--red);
  border-color: var(--red);
}

/* ─── PROCESS STRIP ─── */
.process {
  background: var(--near-black);
}

.process-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  margin-top: 56px;
}

.process-step {
  background: var(--mid);
  padding: 36px 28px;
  position: relative;
}

.process-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 56px;
  color: rgba(193,39,45,0.22);
  line-height: 1;
  margin-bottom: 16px;
}

.process-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cream);
  margin-bottom: 10px;
}

.process-desc {
  font-size: 13px;
  font-weight: 300;
  line-height: 1.6;
  color: var(--smoke);
}

.process-arrow {
  position: absolute;
  right: -12px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  background: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  font-size: 12px;
  color: white;
}

.process-step:last-child .process-arrow { display: none; }

/* ─── RESPONSIVE ─── */
@media (max-width: 1100px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .process-strip { grid-template-columns: repeat(2, 1fr); }
  .process-step:nth-child(2) .process-arrow { display: none; }
  .hero-stats { position: static; flex-direction: row; gap: 32px; margin-top: 48px; text-align: left; }
  .hero { padding-bottom: 48px; }
}

@media (max-width: 960px) {
  .hero { padding-left: 32px; padding-right: 32px; padding-bottom: 56px; min-height: auto; }
  .hero-accent, .hero-accent-2 { display: none; }
  .services-header { grid-template-columns: 1fr; gap: 24px; margin-bottom: 48px; }
  .why { grid-template-columns: 1fr; gap: 48px; }
  .why-visual { min-height: 380px; }
  .why-stat-card.top-left { left: 0; }
  .why-stat-card.bottom-right { right: 0; }
  .industries-header { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 640px) {
  .services-grid { grid-template-columns: 1fr; }
  .process-strip { grid-template-columns: 1fr; }
  .process-step .process-arrow { display: none; }
  .hero-stats { flex-wrap: wrap; }
  .stat-num { font-size: 36px; }
}
