/* ====== HERO CONTAINER ====== */
.hero-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Mobile-first: Image appears first, content second */
.hero.hero-widget {
  order: 1;
}

.hero-info {
  order: 2;
}

/* ====== HERO (image section) ====== */
.hero.hero-widget {
  position: relative;
  min-height: 50vh;
  width: 100%;
  overflow: hidden;
  isolation: isolate;
  flex: 1;
}

/* Optional dotted backdrop & soft glow (behind the image) */
.hero.hero-widget::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(#d3cbb333 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: .6;
  z-index: -2;
}

.hero.hero-widget::after {
  content: "";
  position: absolute;
  right: 5%;
  top: 15%;
  width: 40vmax;
  height: 40vmax;
  translate: 15% -5%;
  background: radial-gradient(closest-side, #a7e9ff66, transparent 70%);
  filter: blur(30px);
  z-index: -1;
  pointer-events: none;
}

/* Full-page image element */
.hero.hero-widget .hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.05);
}

/* Pill CTA inside the image */
.hero.hero-widget .cta-pill {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .9rem 2.2rem;
  border: 2.5px solid rgba(255,255,255,.95);
  border-radius: 999px;
  color: #fff;
  background: rgba(0,0,0,.12);
  backdrop-filter: blur(2px);
  text-decoration: none;
  text-transform: lowercase;
  letter-spacing: .1em;
  font-weight: 500;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}

.hero.hero-widget .cta-pill:hover {
  transform: translate(-50%, -52%);
  background: rgba(0,0,0,.18);
}

.hero.hero-widget .cta-pill:active {
  transform: translate(-50%, -48%);
}

/* ====== INFO BLOCK (content section) ====== */
.hero-info {
  background: var(--beige);
  color: var(--muted);
  flex: 1;
  display: flex;
  align-items: center;
}

.hero-info .info-inner {
  max-width: 100%;
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 4rem) clamp(6%, 7vw, 10%);
  line-height: 1.9;
  width: 100%;
}

.hero-info .script-title {
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  font-weight: 400;
  letter-spacing: .02em;
  margin: 0 0 1rem;
  color: #5e513f;
}

.hero-info p {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  margin: 0 0 2.2rem;
  color: #6b5b47;
}

.hero-info p strong {
  font-weight: 800;
  letter-spacing: .02em;
  color: #6a593f;
}

/* ====== DESKTOP LAYOUT (side-by-side) ====== */
@media (min-width: 1024px) {
  .hero-container {
    flex-direction: row;
    min-height: 100vh;
  }
  
  /* Override mobile order for desktop */
  .hero-info {
    order: 1;
    flex: 0 0 45%;
    min-height: 100vh;
  }
  
  .hero.hero-widget {
    order: 2;
    flex: 0 0 55%;
    min-height: 100vh;
  }
  
  .hero-info .info-inner {
    max-width: 600px;
    padding: clamp(3rem, 8vw, 6rem) clamp(3rem, 5vw, 4rem);
  }
  
  .hero-info .script-title {
    font-size: clamp(2rem, 3vw, 3.2rem);
  }
  
  .hero-info p {
    font-size: clamp(1.1rem, 1.4vw, 1.4rem);
  }
}

/* ====== TABLET ADJUSTMENTS ====== */
@media (min-width: 768px) and (max-width: 1023px) {
  .hero.hero-widget {
    min-height: 60vh;
  }
  
  .hero-info .info-inner {
    padding: clamp(2.5rem, 6vw, 3.5rem) clamp(8%, 8vw, 12%);
  }
}

/* ====== MOBILE OPTIMIZATIONS ====== */
@media (max-width: 767px) {
  .hero.hero-widget {
    min-height: 50vh;
  }
  
  .hero.hero-widget .cta-pill {
    top: 60%;
    padding: .85rem 1.6rem;
    border-width: 2px;
  }
  
  .hero-info .info-inner {
    padding: 2rem 7%;
  }
}

@media (max-width: 480px) {
  .hero.hero-widget {
    min-height: 45vh;
  }
  
  .hero.hero-widget .cta-pill {
    padding: .75rem 1.4rem;
    letter-spacing: .08em;
    /* font-size: 0.2rem; */
  }
  
  /* .hero-info .script-title { */
    /* font-size: clamp(1.6rem, 5vw, 2rem); */
    /* font-size: clamp(1.8rem, 3.6vw, 2.6rem); */
  /* } */
  
  .hero-info p {
    font-size: clamp(0.95rem, 4vw, 1.1rem);
  }
}

/* ====== Motion (optional) ====== */
@media (prefers-reduced-motion: no-preference) {
  .hero.hero-widget { 
    animation: hw-fade-in .6s ease both; 
  }
  .hero-info {
    animation: hi-slide-in .8s ease .2s both;
  }
}

@keyframes hw-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes hi-slide-in {
  from { 
    opacity: 0;
    transform: translateY(20px);
  }
  to   { 
    opacity: 1;
    transform: translateY(0);
  }
}