/* ─────────────────────────────────────────
   style_index.css — Homepage only styles
   Requires: style_shared.css
───────────────────────────────────────── */

body {
  padding-top: 64px;
}

/* ── WARNING POPUP ── */
.warn-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 20, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 1rem;
  animation: warnIn 0.3s ease forwards;
}
.warn-overlay.hide {
  animation: warnOut 0.25s ease forwards;
}
@keyframes warnIn  { from { opacity: 0; } to { opacity: 1; } }
@keyframes warnOut { from { opacity: 1; } to { opacity: 0; } }

.warn-modal {
  background: var(--white);
  border-radius: 8px;
  width: 100%;
  max-width: 600px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  animation: warnUp 0.35s cubic-bezier(0.22, 0.68, 0, 1.2) forwards;
}
@keyframes warnUp {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0)    scale(1);    }
}

.warn-image {
  width: 100%;
  aspect-ratio: 679 / 381;
  overflow: hidden;
  background: var(--surface);
}
.warn-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.warn-body {
  padding: 1.25rem 1.5rem 0.5rem;
  border-top: 3px solid #c0001a;
}
.warn-headline {
  font-size: 0.72rem;
  font-weight: 700;
  color: #c0001a;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
}
.warn-body p:last-child {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.65;
}

.warn-footer {
  padding: 0.875rem 1.5rem 1.25rem;
  display: flex;
  justify-content: flex-end;
}
.btn-warn-close {
  background: #c0001a;
  color: var(--white);
  border: none;
  padding: 0.625rem 2rem;
  border-radius: 4px;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
  letter-spacing: 0.02em;
}
.btn-warn-close:hover {
  background: #a00016;
  transform: translateY(-1px);
}

/* ── HERO SPLIT ── */
.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - 64px);
}

.hero-split__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 5rem 3rem 5rem 2rem;
}

@media (min-width: 1280px) {
  .hero-split__text {
    padding-left: calc((100vw - 1280px) / 2 + 2rem);
  }
}

.hero-split__text .eyebrow {
  margin-bottom: 1rem;
}

.hero-split__text h1 {
  font-size: clamp(2.25rem, 3.5vw, 3.5rem);
  font-weight: 900;
  color: var(--navy-dark);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.hero-divider {
  width: 32px;
  height: 3px;
  background: var(--orange);
  border-radius: 2px;
  margin-bottom: 1.25rem;
}

.hero-split__text p {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 420px;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  gap: 0.875rem;
  flex-wrap: wrap;
}

/* Hero media */
.hero-split__media {
  position: relative;
  overflow: hidden;
  background: var(--surface);
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Stats strip */
.hero-stats {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--navy);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 1rem 1.5rem;
  gap: 0.5rem;
}

.stat-item {
  text-align: center;
}

.stat-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 1px;
  line-height: 1;
  margin-bottom: 0.3rem;
}

.stat-num {
  font-size: 1.625rem;
  font-weight: 900;
  color: var(--orange);
  line-height: 1;
}

.stat-suffix {
  font-size: 1.125rem;
  font-weight: 900;
  color: var(--orange);
  line-height: 1;
}

.stat-label {
  display: block;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

/* ── SERVICES ── */
.services-section {
  padding: 5rem 0;
  background: var(--surface);
}

.section-intro {
  max-width: 560px;
  margin-bottom: 2.5rem;
}

.section-intro h2 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--navy-dark);
  letter-spacing: -0.02em;
  margin-bottom: 0.625rem;
}

.section-intro p {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.7;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 3px solid transparent;
  border-radius: 6px;
  padding: 1.75rem;
  transition: border-top-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
  border-top-color: var(--orange);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.07);
}

.service-icon {
  width: 44px;
  height: 44px;
  background: var(--surface);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  transition: background 0.2s ease;
}

.service-card:hover .service-icon {
  background: rgba(229, 107, 31, 0.1);
}

.service-icon i {
  font-size: 1.375rem;
  color: var(--navy);
  transition: color 0.2s ease;
}

.service-card:hover .service-icon i {
  color: var(--orange);
}

.service-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy-dark);
  margin-bottom: 0.5rem;
}

.service-card p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.service-link {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: color 0.15s ease, gap 0.15s ease;
}

.service-link:hover {
  color: var(--orange);
  gap: 0.55rem;
}

.services-cta {
  text-align: center;
}

/* ── CLIENTS ── */
.clients-section {
  padding: 4rem 0;
  background: var(--white);
  border-top: 1px solid var(--border);
}

.clients-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.clients-header h2 {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--navy-dark);
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.clients-header p {
  font-size: 0.9rem;
  color: var(--muted);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.7;
}

.clients-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.clients-logos img {
  max-height: 50px;
  width: auto;
  filter: grayscale(100%) opacity(0.5);
  transition: filter 0.25s ease, transform 0.25s ease;
  object-fit: contain;
}

.clients-logos img:hover {
  filter: grayscale(0%) opacity(1);
  transform: scale(1.05);
}

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

@media (max-width: 768px) {
  .hero-split {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .hero-split__text {
    padding: 3rem 1.5rem 2.5rem;
    order: 1;
  }
  .hero-split__media {
    order: 2;
    min-height: 280px;
  }
  .hero-stats {
    position: static;
  }
  .services-section {
    padding: 3.5rem 0;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .clients-logos {
    gap: 2rem;
  }
}

@media (max-width: 480px) {
  .hero-split__text {
    padding: 2.5rem 1rem 2rem;
  }
  .hero-split__text h1 {
    font-size: 2rem;
  }
  .hero-actions {
    flex-direction: column;
  }
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    padding: 1rem;
  }
  .warn-body {
    padding: 1rem 1.25rem 0.5rem;
  }
  .warn-footer {
    padding: 0.75rem 1.25rem 1rem;
  }
  .btn-warn-close {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}
