/* =========================================================
   HOME PAGE
========================================================= */

body.home {
  --home-navy: #08111f;
  --home-blue: #173ea8;
  --home-sky: #2d8cff;
  --home-text: #0f172a;
  --home-muted: #64748b;
  --home-border: #e5e7eb;
  --home-soft: #f8fbff;

  background: #ffffff;
  color: var(--home-text);
}

/* =========================
   Generic
========================= */

.home-page {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0 84px;
}

.home-section + .home-section {
  margin-top: 72px;
}

.section-head-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 24px;
}

.section-head-row h2 {
  margin: 0;
  font-size: clamp(28px, 3vw, 36px);
  line-height: 1.15;
}

.section-sub {
  margin: 8px 0 0;
  font-size: 15px;
  color: var(--home-muted);
  line-height: 1.7;
}

.home-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.78rem 1.15rem;
  border-radius: 999px;
  border: 1px solid var(--home-border);
  background: #ffffff;
  color: var(--home-text);
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.home-link-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
  border-color: #cfd8e3;
}

/* =========================
   HERO - TWO IMAGES
========================= */

.home-hero-dual {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #02050b;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 8px;
  height: calc(100vh - 64px);
  min-height: 580px;
  max-height: 800px;
}

.hero-item {
  position: relative;
  overflow: hidden;
  background: #02050b;
}

.hero-item img {
  width: 100%;
  height: 100%;
  display: block;
}

.hero-item-optic img {
  object-fit: cover;
}

.hero-item-result {
  background: #000000;
}

.hero-item-result img {
  object-fit: contain;
  background: #000000;
  padding: 18px;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background:
    linear-gradient(180deg, rgba(2, 5, 11, 0.18) 0%, rgba(2, 5, 11, 0.56) 100%),
    linear-gradient(90deg, rgba(2, 5, 11, 0.34) 0%, rgba(2, 5, 11, 0.12) 50%, rgba(2, 5, 11, 0.28) 100%);
}

.hero-content {
  max-width: 780px;
  text-align: center;
  color: #ffffff;
  padding: 28px 30px;
  border-radius: 24px;
  background: rgba(8, 17, 31, 0.20);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
}

.hero-kicker {
  display: inline-block;
  margin-bottom: 14px;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-content h1 {
  margin: 0;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.hero-content p {
  max-width: 720px;
  margin: 18px auto 0;
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.92);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 28px;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.95rem 1.35rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.hero-btn:hover {
  transform: translateY(-2px);
}

.hero-btn-primary {
  background: #ffffff;
  color: var(--home-navy);
  box-shadow: 0 14px 32px rgba(255, 255, 255, 0.18);
}

.hero-btn-primary:hover {
  background: #f7f9ff;
}

.hero-btn-secondary {
  background: rgba(255, 255, 255, 0.10);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.16);
}

/* =========================
   SHOWCASE / SLIDER
========================= */

.home-showcase-card {
  padding: 18px;
  border: 1px solid var(--home-border);
  border-radius: 28px;
  background: linear-gradient(180deg, #ffffff 0%, var(--home-soft) 100%);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.06);
}

.photo-slider {
  position: relative;
  width: 100%;
}

.slider-viewport {
  overflow: hidden;
  border-radius: 22px;
}

.slider-track {
  display: flex;
  transition: transform 0.55s ease;
}

.slider-image {
  min-width: 100%;
  height: 560px;
  object-fit: cover;
  display: block;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: rgba(8, 17, 31, 0.58);
  color: #ffffff;
  font-size: 28px;
  cursor: pointer;
  z-index: 2;
  transition: background 0.2s ease;
}

.slider-btn:hover {
  background: rgba(8, 17, 31, 0.82);
}

.slider-btn.prev {
  left: 16px;
}

.slider-btn.next {
  right: 16px;
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
}

.slider-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: #cbd5e1;
  cursor: pointer;
}

.slider-dots .dot.active {
  background: var(--home-navy);
}

/* =========================
   NEWS
========================= */

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

.news-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--home-border);
  border-radius: 18px;
  padding: 22px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.news-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--home-blue), var(--home-sky));
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.1);
}

.news-meta {
  font-size: 12px;
  color: var(--home-muted);
  margin-bottom: 8px;
}

.news-title {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 700;
}

.news-desc {
  margin: 0 0 12px;
  font-size: 14px;
  color: #475569;
  line-height: 1.75;
}

.news-link {
  font-size: 14px;
  font-weight: 700;
  color: var(--home-text);
  text-decoration: none;
}

.news-link:hover {
  text-decoration: underline;
}

/* =========================
   Responsive
========================= */

@media (max-width: 1024px) {
  .section-head-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .slider-image {
    height: 500px;
  }
}

@media (max-width: 768px) {
  .home-page {
    width: min(1160px, calc(100% - 24px));
  }

  .hero-grid {
    grid-template-columns: 1fr;
    grid-template-rows: 52vh 34vh;
    height: auto;
    min-height: 0;
    max-height: none;
  }

  .hero-content {
    width: 100%;
    max-width: 640px;
    padding: 24px 20px;
  }

  .hero-content h1 {
    font-size: clamp(36px, 10vw, 56px);
  }

  .hero-content p {
    font-size: 16px;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-btn {
    width: 100%;
  }

  .slider-image {
    height: 400px;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .home-page {
    padding: 44px 0 72px;
  }

  .hero-item-result img {
    padding: 10px;
  }

  .home-showcase-card {
    padding: 12px;
    border-radius: 20px;
  }

  .slider-image {
    height: 300px;
  }

  .slider-btn {
    width: 42px;
    height: 42px;
    font-size: 24px;
  }
}