/* ================================================
   Hero Section Styles – Qubic3D Home & Pages
   ================================================ */

.hero {
  position: relative;
  padding-top: 3rem;
  padding-bottom: 6rem;
}

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  filter: brightness(.4);
}

.hero .container {
  max-width: 40rem;
  margin-inline: auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-family: 'Poppins', sans-serif;
  font-size: var(--fs-h1);
  margin-bottom: 1rem;
  background: linear-gradient(90deg, var(--c-grad-a), var(--c-grad-b));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: var(--fs-p);
  color: var(--c-text-med);
  margin-bottom: 2rem;
}

.hero .btn { 
  margin: 0 .5rem .5rem 0; 
}

/* ================================================
   Split Hero Layout (Home Page)
   ================================================ */

.hero--split {
  position: relative;
  isolation: isolate;
  margin-top: -4.5rem;
  padding-top: calc(3rem + 4.5rem);
  background-image: none;
  background-color: transparent;
}

.hero--split::before {
  display: none;
}

.hero--split::after {
  display: none;
}

/* Split hero container - full width with padding */
.hero--split .container {
  max-width: 1700px !important;
  width: 100% !important;
  padding-left: 8%;
  padding-right: 8%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  text-align: left;
  position: relative;
  z-index: 2;
  gap: 2rem;
  margin-inline: auto;
}

.hero__content h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  text-align: left;
  max-width: 50rem;
  background: none !important;
  -webkit-text-fill-color: inherit;
  -webkit-background-clip: initial;
  color: #ffffff;
}

.hero__content p {
  font-size: 1.25rem;
  line-height: 1.6;
  margin-bottom: 2.5rem;
  max-width: 50rem;
  text-align: left;
}

.hero__actions { 
  display: flex; 
  flex-wrap: wrap; 
  gap: 1rem; 
  justify-content: flex-start;
}

.hero__image {
  flex-shrink: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero__image img { 
  max-width: 100%;
  height: auto;
  width: auto;
}

/* Page-specific overrides */
.page-advertisers .hero--split,
.page-drivers .hero--split {
  margin-top: -4.5rem;
  padding-top: calc(2.25rem + 4.5rem);
}

.page-advertisers .hero--split::before,
.page-drivers .hero--split::before {
  display: none !important;
  margin-top: 0 !important;
}

/* ================================================
   Mobile Styles
   ================================================ */

@media (max-width: 767px) {
  .hero {
    margin-top: 0;
    padding-left: 1rem;
    padding-right: 1rem;
    padding-bottom: 0.5rem;
  }

  .hero__actions {
    gap: .5rem;
  }

  .hero__content p {
    margin-bottom: 1.5rem;
    line-height: 1.7;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    font-size: 1rem;
  }

  .hero--split {
    background-image: none;
    background-color: transparent;
    margin-top: 0;
    padding-top: 2rem;
  }

  .hero--split .container {
    align-items: center;
    text-align: center;
  }

  .hero__content h1 {
    text-align: center;
  }

  .hero__actions {
    flex-direction: column;
    width: 100%;
    justify-content: center;
  }

  /* Image below content on mobile - already handled by flex-direction: column */

  .hero--split::before {
    content: "";
    position: absolute;
    inset: 0 1rem;
    margin-top: 1rem;
    margin-left: -.3rem;
    margin-right: -.3rem;
    z-index: -1;
    background:
      radial-gradient(130% 90% at 0% 100%, #102d69 0%, rgba(86, 27, 163, 0.096) 60%),
      radial-gradient(130% 90% at 100% 0%, #910e6c 0%, rgba(255,44,195,0) 60%),
      #1a0b24;
    border-radius: 1.5rem;
  }

  .hero__bg { 
    display: block; 
  }
}

/* ================================================
   Desktop Styles
   ================================================ */

@media (min-width: 768px) {
  .hero__bg {
    display: block;
  }

  .hero--split {
    background-image: none;
    background-color: transparent;
  }

  .hero--split::before {
    display: none;
  }

  /* Desktop: image on the right */
  .hero--split .container {
    flex-direction: row;
    align-items: center;
    gap: 3rem;
  }

  .hero__content {
    flex: 1;
  }

  .hero__image {
    flex: 0 0 auto;
    width: auto;
    max-width: 50%;
  }

  .hero__image img {
    max-width: 100%;
    max-height: 600px;
    width: auto;
    height: auto;
  }
}