/* =========================================================
   COFFEE HERO 6.0 — GOOGLE CORE WEB VITALS READY
========================================================= */

.coffee-hero {
  position: relative;
  min-height: clamp(720px, 92vh, 980px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(5rem, 7vw, 9rem) 1.25rem;
  text-align: center;
  contain: layout style paint;
  -webkit-mask-image: linear-gradient(to bottom, black 82%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 82%, transparent 100%);}

/* =========================================================
   BACKGROUND SYSTEM (PERFORMANCE SAFE)
========================================================= */

.coffee-hero__bg-layer {
  position: absolute;
  inset: 0;
  z-index: -3;
}

.coffee-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s ease;
  will-change: opacity;
  transform: translateZ(0);
}

.coffee-hero__bg.is-active {
  opacity: 1;
}

/* =========================================================
   OVERLAY
========================================================= */

.coffee-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(
      180deg,
      rgba(15,23,42,0.45) 0%,
      rgba(15,23,42,0.72) 55%,
      rgba(15,23,42,0.9) 100%
    );
}

/* =========================================================
   CONTENT PANEL (MODERN GLASS)
========================================================= */

.coffee-hero__inner {
  max-width: 1100px;
  width: 100%;
}

.coffee-hero__content {
  max-width: 860px;
  margin: 0 auto;
  padding: clamp(2.2rem,4vw,4rem);
  border-radius: 28px;
  background: rgba(0,0,0,0.42);
  backdrop-filter: blur(10px);
  box-shadow: 0 25px 70px rgba(0,0,0,.35);
}

/* Typography */

.coffee-hero__eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--clr-primary);
  margin-bottom: 1.1rem;
}

.coffee-hero h1 {
  font-size: clamp(2.4rem,4.5vw,4rem);
  font-weight: 700;
  line-height: 1.07;
  letter-spacing: -.02em;
  margin-bottom: 1.4rem;
  color: #fff;
}

.coffee-hero__lead {
  font-size: clamp(1.05rem,1.2vw,1.28rem);
  line-height: 1.75;
  color: rgba(255,255,255,.95);
  margin-bottom: 2.5rem;
}

/* Buttons */

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

.coffee-hero .btn {
  min-height: 54px;
  padding: 1rem 2.4rem;
  border-radius: 999px;
  font-weight: 600;
  transition: transform .25s ease, background .25s ease;
}

.coffee-hero .btn--primary {
  background: linear-gradient(135deg,var(--clr-primary),var(--clr-secondary));
  color:#fff;
  box-shadow: 0 14px 35px rgba(37,99,235,.35);
}

.coffee-hero .btn--primary:hover {
  transform: translateY(-3px);
}

.coffee-hero .btn--secondary {
  background: rgba(255,255,255,.14);
  border:1px solid rgba(255,255,255,.35);
  color:#fff;
}

.coffee-hero .btn--secondary:hover {
  background: rgba(255,255,255,.25);
  transform: translateY(-3px);
}

/* Trust */

.coffee-hero__trust {
  margin-top: 1.8rem;
  font-size: .9rem;
  opacity:.85;
  display:flex;
  justify-content:center;
  flex-wrap:wrap;
  gap:.5rem;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width:768px){

  .coffee-hero{
    min-height:auto;
    padding:4.5rem 1rem;
  }

  .coffee-hero__content{
    padding:2rem;
  }

  .coffee-hero__actions{
    flex-direction:column;
  }

  .coffee-hero .btn{
    width:100%;
    max-width:320px;
  }
}

/* =========================================================
   ACCESSIBILITY
========================================================= */

@media (prefers-reduced-motion: reduce){
  .coffee-hero__bg{
    transition:none;
  }
}