/* ============================================================
   HOME PAGE — hero carousel, inquire, splits
   ============================================================ */

.hero.home-hero.hero-slider,
.hero.mre-hero.hero-slider {
  height: auto;
  min-height: 85vh;
  display: flex;
  align-items: center;
  background: #1a2228;
  background-image: none !important;
  background-attachment: scroll !important;
  color: var(--white);
  padding: 0;
  position: relative;
  overflow: hidden;
}

.hero-slider .hero-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slider .hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.9s ease;
  will-change: opacity;
}

.hero-slider .hero-slide.is-active {
  opacity: 1;
  z-index: 1;
}

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

.hero-slider .hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.52) 0%,
    rgba(0, 0, 0, 0.27) 52%,
    rgba(0, 0, 0, 0.15) 100%
  );
}

html[dir="rtl"] .hero-slider .hero-overlay {
  background: linear-gradient(
    270deg,
    rgba(0, 0, 0, 0.52) 0%,
    rgba(0, 0, 0, 0.27) 52%,
    rgba(0, 0, 0, 0.15) 100%
  );
}

.mre-hero-copy {
  padding-top: calc(var(--nav-height, 72px) + 48px);
  padding-bottom: 72px;
  max-width: 720px;
}

.mre-hero-lead {
  font-size: 1.1rem;
  line-height: 1.7;
  opacity: 0.95;
  color: #fff;
  max-width: 540px;
  margin-bottom: 26px;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.35);
}

.mre-hero-compliance {
  font-size: 0.8rem;
  opacity: 0.8;
  color: #fff;
  max-width: 520px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}

.mre-hero-ghost {
  background: rgba(255, 255, 255, 0.1) !important;
  border: 1px solid rgba(255, 255, 255, 0.28) !important;
  color: #fff !important;
}

.hero-slider .hero h1,
.hero-slider h1 {
  color: #fff;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.45);
}

.hero-slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(18, 34, 58, 0.35);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: background 0.25s ease, border-color 0.25s ease, outline 0.2s ease;
}

.hero-slider-nav:hover,
.hero-slider-nav:focus-visible {
  background: rgba(18, 34, 58, 0.6);
  border-color: rgba(255, 255, 255, 0.5);
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.hero-slider-prev { left: 18px; }
.hero-slider-next { right: 18px; }

html[dir="rtl"] .hero-slider-prev { left: auto; right: 18px; }
html[dir="rtl"] .hero-slider-next { right: auto; left: 18px; }
html[dir="rtl"] .hero-slider-prev .bi-chevron-left,
html[dir="rtl"] .hero-slider-next .bi-chevron-right {
  display: inline-block;
  transform: scaleX(-1);
}

.hero-slider-dots {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 10px;
  align-items: center;
}

.hero-slider-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: none;
  padding: 0;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.35);
  transition: transform 0.25s ease, background 0.25s ease;
}

.hero-slider-dot.is-active {
  background: var(--accent);
  transform: scale(1.25);
}

.hero-slider-dot:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .hero-slider .hero-slide {
    transition: none;
  }
}

/* Inquire section */
.mre-inquire-section {
  position: relative;
}

.mre-inquire-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 420px);
  gap: 40px;
  align-items: start;
}

.mre-inquire-form .lead-form {
  width: 100%;
  max-width: 420px;
  margin-inline-start: auto;
}

.mre-inquire-trust {
  font-size: 0.95rem;
  line-height: 1.65;
  opacity: 0.88;
  margin: 0 0 10px;
}

.mre-inquire-privacy {
  font-size: 0.88rem;
  line-height: 1.6;
  opacity: 0.75;
  margin: 0;
}

/* Split media sections */
.mre-split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: center;
}

.mre-split-reverse {
  grid-template-columns: 0.85fr 1.15fr;
}

.mre-split-reverse .mre-split-copy { order: 2; }
.mre-split-reverse .mre-split-media { order: 1; }

html[dir="rtl"] .mre-split-reverse .mre-split-copy { order: 1; }
html[dir="rtl"] .mre-split-reverse .mre-split-media { order: 2; }

.mre-split-media img {
  width: 100%;
  height: 100%;
  max-height: 460px;
  object-fit: cover;
  border-radius: 24px;
  display: block;
}

.mre-why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.mre-why-card {
  padding: 18px 16px;
  background: #fff;
  border: 1px solid rgba(18, 34, 58, 0.08);
  border-radius: 16px;
}

.mre-why-card h3 {
  font-size: 1.02rem;
  margin: 0 0 8px;
}

.mre-why-card p {
  margin: 0;
  opacity: 0.82;
  line-height: 1.65;
  font-size: 0.92rem;
}

.mre-faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mre-faq-item {
  border: 1px solid rgba(18, 34, 58, 0.1);
  border-radius: 14px;
  padding: 14px 18px;
  background: #fff;
}

.mre-faq-item summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}

.mre-faq-item summary::-webkit-details-marker { display: none; }

.mre-faq-item p {
  margin: 12px 0 4px;
  opacity: 0.85;
  line-height: 1.7;
}

.fade-in {
  animation: fadeIn 0.8s ease-out forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .fade-in { animation: none; }
}

@media (max-width: 991px) {
  .mre-inquire-grid,
  .mre-split,
  .mre-split-reverse {
    grid-template-columns: 1fr;
  }

  .mre-split-reverse .mre-split-copy,
  .mre-split-reverse .mre-split-media {
    order: initial;
  }

  .mre-inquire-form .lead-form {
    margin-inline: 0;
    max-width: none;
  }
}

@media (max-width: 768px) {
  .hero.home-hero.hero-slider,
  .hero.mre-hero.hero-slider {
    min-height: 72vh !important;
    height: auto !important;
    display: flex !important;
    align-items: flex-end;
    text-align: start;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  .hero-slider .hero-overlay {
    background: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.28) 0%,
      rgba(0, 0, 0, 0.52) 100%
    );
  }

  html[dir="rtl"] .hero-slider .hero-overlay {
    background: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.28) 0%,
      rgba(0, 0, 0, 0.52) 100%
    );
  }

  .mre-hero-copy {
    padding-top: calc(var(--nav-height, 64px) + 28px);
    padding-bottom: 88px;
    max-width: none;
  }

  .hero-slider-nav {
    width: 40px;
    height: 40px;
    top: auto;
    bottom: 64px;
    transform: none;
  }

  .hero-slider-prev { left: 14px; }
  .hero-slider-next { right: 14px; }
  html[dir="rtl"] .hero-slider-prev { left: auto; right: 14px; }
  html[dir="rtl"] .hero-slider-next { right: auto; left: 14px; }
  .hero-slider-dots { bottom: 18px; }

  .mre-hero-lead {
    font-size: 1rem;
    max-width: none;
  }
}
