@layer components, overrides;

@layer overrides{
  /* Hero: text left, image right (Home only) */
  body.home .hero-section.full-bleed{
    width:100vw;
    margin-left:calc(50% - 50vw);
    margin-right:calc(50% - 50vw);
    background:#fff;
    overflow:hidden;
  }

  body.home .hero-section .hero-container{
    display:grid;
    /* Equal columns: text and image same size */
    grid-template-columns:1fr 1fr;
    grid-template-areas: "text image";
    align-items:stretch;
    gap:0;
    min-height:clamp(520px, 55vw, 600px);
  }

  body.home .hero-section .hero-text{
    grid-area:text;
    background:#fff;
    color:#111;
    padding:40px;
    display:flex;
    flex-direction:column;
    justify-content:center;
  }

  body.home .hero-section .hero-image{
    grid-area:image;
    position:relative;
    overflow:hidden;
    display:block;
    background:#fff;
  }

  body.home .hero-section .hero-image > img{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    object-fit:cover;
    object-position:center;
    display:block;
  }

  /* Stack only on smaller screens */
  @media (max-width:720px){
    body.home .hero-section.full-bleed{
      width:100%;
      margin-left:0;
      margin-right:0;
      padding:16px 0;
    }

    body.home .hero-section.full-bleed .hero-container{
      display:flex;
      flex-direction:column;
      gap:12px;
      min-height:unset;
      padding:0 12px;
    }

    body.home .hero-section.full-bleed .hero-image{ order:1; }
    body.home .hero-section.full-bleed .hero-text{ order:2; }

    body.home .hero-section.full-bleed .hero-image{
      position:relative;
      height:auto;
      border-radius:12px;
      margin:0 0 12px;
    }

    body.home .hero-section.full-bleed .hero-image > img{
      position:static;
      width:100%;
      height:auto;
      object-fit:contain;
    }

    body.home .hero-section.full-bleed .hero-text{
      padding:16px;
      border-radius:12px;
    }
  }
}

