/* ================================================================
   HOME PAGE: HERO + PARTNERS
   ================================================================= */

/* HERO SECTION wrapper */
.hero-section{
  padding: 0.5rem 0 0.5rem;                   /* tighter top/bottom */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: transparent;
}



/* 2-column hero layout (desktop) */
.hero-row{
  display: flex;
  gap: 0rem;
  align-items: flex-start;
  flex-wrap: nowrap;
}

/* Left column: poster */
.hero-left{
  flex: 0 0 50%;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

/* Poster wrapper becomes positioning context for overlay */
.hero-poster{
  position: relative;                        /* enables absolute overlay */
  display: inline-block;
  line-height: 0;
}

/* Hero image sizing */
.hero-img{
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 75vh;
  object-fit: contain;
  display: block;
}

/* CTA overlay: bottom-centered on the image (desktop/tablet) */
.hero-cta--overlay{
  position: absolute;
  left: 50%;
  bottom: -45px;                              /* controls distance from image bottom */
  transform: translateX(-50%);
  z-index: 5;
  margin: 0;
  text-align: center;
}

/* CTA button styling (remove underline from <a>) */
.hero-cta--overlay .btn{
  text-decoration: none;
  padding: 0.55rem 1.4rem;
  font-weight: 600;
  border-radius: 8px;
}

/* Right column: intro text */
.hero-right{
  flex: 1;
  font-size: 1rem;
  line-height: 1.65;
  color: #000;
}

/* White readability card */
.hero-text-box{
  display: inline-block;
  background: rgba(255,255,255,0.5);
  padding: 1.5rem 1.75rem;
  border-radius: 6px;
  max-width: 40rem;
}


/* ================================================================
   MOBILE HERO (BUTTON ALIGN + LESS SPACE)
   ================================================================= */
@media (max-width: 768px){

  /* Stack image and text */
  .hero-row{
    flex-direction: column;
    gap: 0.75rem;
  }

  /* On mobile, DO NOT overlay (cleaner, avoids covering poster details) */
  .hero-cta--overlay{
    position: static;
    transform: none;
    margin-top: 0.35rem;                     /* reduce space under image */
    margin-bottom: 0.15rem;                  /* reduce gap before text */
  }

  /* Make the button look centered and consistent */
  .hero-cta--overlay .btn{
    display: inline-block;
    width: min(92vw, 420px);                 /* responsive width */
    padding: 0.9rem 1.1rem;
    font-size: 1rem;
  }

  /* Ensure poster and button center align in a column */
  .hero-poster{
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  /* Tighten text spacing directly under the button */
  .hero-right{ margin-top: 0; }
  .hero-text-box{ padding: 1.15rem 1.1rem; } /* smaller card padding on mobile */
}


/* ================================================================
   PARTNERS (LESS SPACE + SAME LOGO HEIGHT WITHOUT STRETCH)
   ================================================================= */

/* Reduce space between hero and partners */
.partners-section{
  padding: 0 0 0 0;               /* smaller top padding */
  background: transparent;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-top: -2rem;                          /* pull section up closer */
}

/* Reduce gap between title and logos */
.partners-title{
  text-align: center;
  margin: 0 0 0.5rem 0;                      /* tighter */
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.7;
}

/* Each logo cell should have a consistent “box height” */
.partner-logo-wrap{
  height: 90px;                               /* all logos share this visual height */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Actual image keeps aspect ratio (no distortion) */
.partner-logo{
  max-height: 100%;                           /* fit inside wrapper height */
  max-width: 100%;                            /* fit inside wrapper width */
  width: auto;                                /* preserve aspect ratio */
  height: auto;                               /* preserve aspect ratio */
  object-fit: contain;                        /* safe even if width/height constrained */
  display: block;
  opacity: 0.9;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

/* Hover effect */
.partner-logo-wrap:hover .partner-logo{
  opacity: 1;
  transform: scale(1.05);
}

/* Smaller logo boxes on small phones */
@media (max-width: 768px){
  .partner-logo-wrap{ height: 60px; }
}

/* ================================================================
   MOBILE HERO CTA – FINAL ALIGNMENT FIX
   ================================================================ */

@media (max-width: 768px) {

  /* Ensure poster content stacks cleanly */
  .hero-poster {
    display: flex;
    flex-direction: column;
    align-items: center;      /* hard-center everything */
  }

  /* Remove overlay positioning on mobile */
  .hero-cta--overlay {
    position: static;         /* no absolute positioning */
    transform: none;
    margin-top: 0.75rem;      /* closer to image */
    margin-bottom: 0rem;   /* breathing room before text */
    width: 100%;
    display: flex;
    justify-content: center;  /* center button horizontally */
  }

  /* Button sizing + alignment */
  .hero-cta--overlay .btn {
    display: block;
    width: 80%;               /* visually centered with margins */
    max-width: 320px;         /* prevent oversized button */
    padding: 0.3rem 1rem;
    font-size: 1rem;
    border-radius: 5px;
    text-align: center;
  }
}
