/* /var/www/relyn/static_src/css/hero.css */

.hero-section {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 21px 24px 80px;
}

.hero-shell {
  width: 100%;
  display: flex;
  justify-content: center;
}

.hero-box {
  position: relative;
  width: 100%;
  max-width: 1874px;
  height: 900px;
  border-radius: 30px;
  overflow: hidden;
  border: 1px solid var(--hero-border);
  background: #000000;
  box-shadow:
    0 40px 120px rgba(0, 0, 0, 0.95),
    0 0 0 1px rgba(255, 255, 255, 0.02);
}

/* Background video */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  z-index: 0;
  pointer-events: none;
}

.hero-box::before {
  content: "";
  position: absolute;
  inset: 0;
  background: none;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  height: 100%;
  padding: 172px 140px;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 34px;
  align-items: center;
}

.hero-heading {
  font-size: 56px;
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin: 0 0 30px;
  text-align: left;
  color: #FFFFFF;
}

.hero-heading-line {
  display: block;
}

.hero-heading-line-accent {
  color: #8253E6;
}

.hero-subtitle {
  max-width: 560px;
  font-size: 20px;
  line-height: 1.6;
  font-weight: 400;
  color: #FFFFFF;
  margin: 0 0 32px;
  text-align: left;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.hero-cta-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.22) 0%, transparent 48%),
    linear-gradient(135deg, #633EB2, #272E67);
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  box-shadow: 0 22px 55px rgba(2, 5, 18, 0.9);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition:
    transform 0.18s ease-out,
    box-shadow 0.18s ease-out,
    filter 0.18s ease-out;
}

.hero-cta-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.04);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.95);
}

/* Rating boxes row */
.hero-rating-row {
  margin-top: 97px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

/* Box 1 */
.hero-rating-box {
  width: 140px;
  height: 170px;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.85);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 5px 4px 8px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.hero-rating-image-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
}

.hero-rating-image {
  width: 129.43px;
  height: 92.52px;
  border-radius: 10px;
  object-fit: cover;
}

.hero-rating-middle {
  width: 100%;
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hero-rating-logos {
  display: flex;
  align-items: center;
  gap: 4px;
}

.hero-rating-logo {
  width: 20.78px;
  height: 21.18px;
  border-radius: 999px;
  object-fit: cover;
}

.hero-rating-logo + .hero-rating-logo {
  margin-left: -5%;
}

.hero-rating-stars {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 13px;
}

.hero-rating-star {
  color: #FF9324;
}

.hero-rating-score {
  margin-top: auto;
  font-size: 24px;
  font-weight: 700;
  color: #633EB2;
  text-align: center;
}

/* Box 2 */
.hero-rating-box-2 {
  width: 173.8px;
  height: 170px;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.85);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 5px 4px 8px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.hero-rating2-image-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
}

.hero-rating2-image {
  width: 160.68px;
  height: 92.52px;
  border-radius: 10px;
  object-fit: cover;
}

.hero-rating2-count {
  margin-top: 7px;
  font-size: 24px;
  font-weight: 700;
  color: #633EB2;
  text-align: center;
}

.hero-rating2-label {
  margin-top: 7px;
  font-size: 16px;
  font-weight: 600;
  color: #272E67;
  text-align: center;
}

/* Box 3 bottom-right (DESKTOP default) */
.hero-review-box {
  position: absolute;
  bottom: 96px;
  right: 98px;
  width: 190px;
  height: 283px;
  border-radius: 25px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.9);
  padding: 5px 4px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 2;
}

.hero-review-image-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
}

.hero-review-image {
  width: 178px;
  height: 126px;
  border-radius: 20px;
  object-fit: cover;
}

.hero-review-count {
  margin-top: 21px;
  font-size: 24px;
  font-weight: 700;
  color: #633EB2;
  text-align: center;
}

.hero-review-label {
  margin-top: 7px;
  font-size: 16px;
  font-weight: 600;
  color: #272E67;
  text-align: center;
}

.hero-review-avatars {
  margin-top: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-review-avatar {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ffffff;
}

.hero-review-avatar + .hero-review-avatar {
  margin-left: -3%;
}

/* ✅ SOCIAL LAYER (desktop anchor) */
.hero-social-layer {
  position: absolute;
  right: 98px;
  bottom: 96px;
  width: 190px;
  height: 283px;
  z-index: 3;
  pointer-events: none;
}

/* ✅ SOCIAL BUTTONS BASE */
.hero-social-btn {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  pointer-events: auto;
  transition:
    transform 0.22s ease,
    filter 0.22s ease;

  /* ✅ FIX: make the glow anchor to THIS button box */
  width: 60px;
  height: 60px;
}

.hero-social-btn::before {
  content: "";
  position: absolute;

  /* ✅ FIX: center glow exactly behind the icon */
  left: 50%;
  top: 50%;
  width: 90px;
  height: 90px;
  transform: translate(-50%, -50%);

  border-radius: 999px;
  background: radial-gradient(circle, rgba(130, 83, 230, 0.45) 0%, rgba(130, 83, 230, 0.0) 65%);
  filter: blur(10px);
  opacity: 0;
  transition: opacity 0.22s ease;
  pointer-events: none;

  /* ensure glow stays behind icon */
  z-index: 0;
}

.hero-social-btn:hover {
  transform: translateY(-3px) scale(1.03);
  filter: brightness(1.06);
}

.hero-social-btn:hover::before {
  opacity: 1;
}

.hero-social-btn:focus-visible {
  transform: translateY(-3px) scale(1.03);
}

.hero-social-btn:focus-visible::before {
  opacity: 1;
}

.hero-social-icon {
  width: 60px;
  height: 60px;
  object-fit: contain;
  display: block;

  /* keep icon above glow */
  position: relative;
  z-index: 1;
}

.hero-social-insta {
  left: -120px;
  bottom: 60px;
  width: 60px;
  height: 60px;
}

.hero-social-fb {
  left: -180px;
  bottom: 0;

  /* keep same visual layout (icon + text) */
  height: 60px;
  display: inline-flex;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 10px;

  /* ✅ FIX: allow wider content while keeping glow anchored to icon */
  width: auto;
}

/* ✅ FIX: for FB only, anchor glow behind the ICON (not the whole row) */
.hero-social-fb::before {
  left: 30px;
  top: 30px;
  transform: translate(-50%, -50%);
}

.hero-social-text {
  width: 51px;
  height: 44px;
  font-family: "Urbanist", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 500;
  font-size: 18px;
  line-height: 22px;
  color: #FFFFFF;
  text-align: left;
  display: block;
  margin-bottom: 8px;
}

/* Right area placeholder */
.hero-right {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* MOBILE ACTIONS (hidden by default; shown only on mobile/tablet portrait) */
.hero-mobile-actions {
  display: none;
}

/* Desktop-only markers */
.hero-review-box--desktop {
  display: flex;
}

.hero-social-layer--desktop {
  display: block;
}

/* Responsive hero */
@media (max-width: 1280px) {
  .hero-content {
    padding: 64px 48px;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  }

  .hero-heading {
    font-size: 46px;
  }

  .hero-box {
    height: 860px;
  }
}

@media (max-width: 1024px) {
  .hero-content {
    padding: 56px 40px;
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .hero-right {
    justify-content: flex-start;
  }

  .hero-box {
    height: auto;
    min-height: 820px;
  }
}

/* ============================================================
   ✅ TABLET (LANDSCAPE) - MOVE VIDEO LEFT
   - This does NOT touch desktop.
   - Adjust the X% to control how much you shift.
   ============================================================ */
@media (max-width: 1366px) and (orientation: landscape) {
  .hero-video {
    object-position: 32% 50%;
  }
}

/* ============================================================
   ✅ MOBILE + TABLET (PORTRAIT)
   - ✅ Increased hero height
   - ✅ Increased top padding before title
   - Keeps title 20px and subtitle 10px
   - Does NOT touch desktop/laptop/tablet landscape
   ============================================================ */
@media (max-width: 768px), (max-width: 1024px) and (orientation: portrait) {
  .hero-video {
    object-position: 68% 50%;
  }

  /* ✅ DARK TRANSPARENT OVERLAY (ONLY HERE) */
  .hero-box::before {
    background: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.62) 0%,
      rgba(0, 0, 0, 0.44) 55%,
      rgba(0, 0, 0, 0.62) 100%
    );
    z-index: 1;
  }

  /* ✅ Increase hero height in mobile */
  .hero-box {
    height: auto;
    min-height: 920px;
  }

  /* Keep content above the overlay */
  .hero-content {
    z-index: 2;
  }

  .hero-section {
    padding: 21px 16px 64px;
  }

  .hero-content {
    padding: 84px 20px 42px;
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    align-items: start;
  }

  .hero-heading {
    text-align: left;
    font-size: 20px;
    margin: 0 0 18px;
    line-height: 1.2;
    letter-spacing: -0.02em;
  }

  .hero-subtitle {
    text-align: left;
    font-size: 10px;
    margin: 0 0 20px;
    max-width: 520px;
    line-height: 1.55;
  }

  .hero-cta-row {
    justify-content: flex-start;
    margin-bottom: 18px;
  }

  .hero-cta-primary {
    padding: 13px 24px;
    font-size: 14px;
  }

  .hero-review-box--desktop {
    display: none;
  }

  .hero-social-layer--desktop {
    display: none;
  }

  .hero-mobile-actions {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-top: 18px;
  }

  .hero-review-box--mobile {
    position: static;
    width: 160px;
    height: 240px;
    border-radius: 22px;
    padding: 5px 4px 10px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.85);
  }

  .hero-review-box--mobile .hero-review-image {
    width: 150px;
    height: 108px;
    border-radius: 18px;
  }

  .hero-review-box--mobile .hero-review-count {
    margin-top: 14px;
    font-size: 22px;
  }

  .hero-review-box--mobile .hero-review-label {
    margin-top: 6px;
    font-size: 14px;
  }

  .hero-review-box--mobile .hero-review-avatar {
    width: 30px;
    height: 30px;
  }

  .hero-social-mobile {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 14px;
    padding-bottom: 6px;
  }

  .hero-social-insta--mobile,
  .hero-social-fb--mobile {
    position: relative;
    left: auto;
    bottom: auto;
    height: auto;
  }

  .hero-social-insta--mobile {
    width: 52px;
    height: 52px;
  }

  .hero-social-fb--mobile {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
  }

  .hero-social-insta--mobile .hero-social-icon,
  .hero-social-fb--mobile .hero-social-icon {
    width: 52px;
    height: 52px;
  }

  .hero-social-fb--mobile .hero-social-text {
    font-size: 15px;
    line-height: 19px;
    width: 48px;
    height: 38px;
    margin-bottom: 0;
  }

  .hero-rating-row {
    margin-top: 28px;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 12px;
    align-items: flex-start;
  }

  .hero-rating-box {
    width: 138px;
    height: 160px;
    border-radius: 14px;
  }

  .hero-rating-image {
    width: 126px;
    height: 86px;
  }

  .hero-rating-score {
    font-size: 22px;
  }

  .hero-rating-box-2 {
    width: 160px;
    height: 160px;
    border-radius: 14px;
  }

  .hero-rating2-image {
    width: 148px;
    height: 86px;
  }

  .hero-rating2-count {
    font-size: 22px;
  }

  .hero-rating2-label {
    font-size: 14px;
  }

  .hero-right {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero-video {
    object-position: 64% 50%;
  }

  .hero-box {
    min-height: 800px;
  }

  .hero-heading {
    font-size: 30px;
  }

  .hero-subtitle {
    font-size: 15px;
  }

  .hero-mobile-actions {
    gap: 12px;
  }

  .hero-review-box--mobile {
    width: 150px;
    height: 228px;
  }

  .hero-review-box--mobile .hero-review-image {
    width: 140px;
    height: 102px;
  }

  .hero-social-insta--mobile .hero-social-icon,
  .hero-social-fb--mobile .hero-social-icon {
    width: 48px;
    height: 48px;
  }

  .hero-social-fb--mobile .hero-social-text {
    font-size: 14px;
    line-height: 18px;
    width: 46px;
    height: 36px;
  }

  .hero-rating-row {
    gap: 10px;
  }

  .hero-rating-box {
    width: 132px;
    height: 156px;
  }

  .hero-rating-box-2 {
    width: 152px;
    height: 156px;
  }
}
