/* ================================================
   BUD LIGHT CASE STUDY — Custom components
   Matches Omaze + Southwest + Samsung template
   ================================================ */

/* ========== Accent color — Bud Light blue ========== */
.budlight-page{
  --bl-accent:#004b87;
  --bl-accent-dim:rgba(0,75,135,.6);
}
html.light .budlight-page{
  --bl-accent:#003a6b;
  --bl-accent-dim:rgba(0,58,107,.6);
}

/* ========== Hero overrides ========== */
.budlight-page .proj-hero{
  padding-top:120px;
}
.budlight-page .proj-hero-inner{
  margin-bottom:24px;
}
.budlight-page .proj-title{
  font-size:clamp(28px,4vw,44px);
}
.bl-tagline{
  font-size:clamp(15px,1.6vw,20px) !important;
  max-width:640px;
}

/* Tighter spacing from hero to content */
.budlight-page .proj-content{
  padding-top:48px;
}

/* ========== Hero image ========== */
.bl-hero-img{
  max-width:730px;
  margin:0 auto;
  padding:0 var(--gutter);
}
.bl-hero-img img{
  border-radius:16px;
  width:100%;
  height:auto;
  object-fit:contain;
  aspect-ratio:auto !important;
}

/* ========== Section titles — bold, white, uppercase ========== */
.budlight-page .proj-section-title{
  font-size:clamp(16px,1.6vw,20px);
  font-weight:700;
  color:#fff;
  text-transform:uppercase;
  letter-spacing:.06em;
  font-family:var(--font);
  margin-bottom:24px;
}
html.light .budlight-page .proj-section-title{color:#111}

/* ========== "What I Built" numbered cards ========== */
.bl-built-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:20px;
}
.bl-built-card{
  padding:28px;
  border-radius:16px;
  background:rgba(255,255,255,.03);
  backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);
  border:1px solid rgba(255,255,255,.08);
  box-shadow:0 8px 32px rgba(0,0,0,.15), inset 0 1px 0 rgba(255,255,255,.05);
}
.bl-built-num{
  display:block;
  font-family:var(--font);
  font-size:32px;
  font-weight:800;
  letter-spacing:-.02em;
  color:var(--bl-accent);
  margin-bottom:16px;
  opacity:1;
}
.bl-built-card p{
  font-size:15px;
  color:rgba(255,255,255,.8);
  line-height:1.7;
  margin:0;
}
.bl-built-card strong{
  color:#fff;
  font-weight:700;
}
.bl-built-card a{
  color:var(--bl-accent);
  text-decoration:underline;
  text-underline-offset:3px;
  transition:opacity .3s ease;
}
.bl-built-card a:hover{opacity:.7}
html.light .bl-built-card{
  background:rgba(255,255,255,.5);
  border-color:rgba(0,0,0,.06);
  box-shadow:0 8px 32px rgba(0,0,0,.06), inset 0 1px 0 rgba(255,255,255,.8);
}
html.light .bl-built-card p{color:rgba(0,0,0,.7)}
html.light .bl-built-card strong{color:#111}
html.light .bl-built-num{color:#111}

/* ========== Section images & videos ========== */
.bl-section-img{
  margin:0;
  border-radius:16px;
  overflow:hidden;
}
.bl-section-img img{
  width:100%;
  height:auto;
  display:block;
  border-radius:16px;
  object-fit:cover;
}
.bl-section-img video{
  width:100%;
  height:auto;
  display:block;
  border-radius:16px;
}

/* ========== Click-to-play video player ========== */
.bl-video-player{
  position:relative;
  cursor:pointer;
}
.bl-video-player video{
  width:100%;
  height:auto;
  display:block;
  border-radius:16px;
}
.bl-play-btn{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(0,0,0,.15);
  border:none;padding:0;
  cursor:pointer;
  z-index:2;
  border-radius:16px;
  transition:opacity .3s ease, background .3s ease;
}
.bl-play-btn:hover{
  background:rgba(0,0,0,.25);
}
.bl-play-btn svg{
  transition:transform .3s ease;
  flex-shrink:0;
}
.bl-play-btn:hover svg{transform:scale(1.1)}
.bl-video-player.is-playing .bl-play-btn{
  opacity:0;
  pointer-events:none;
}

/* ========== Placeholder blocks ========== */
.bl-placeholder{
  width:100%;
  aspect-ratio:16/9;
  border-radius:16px;
  background:rgba(255,255,255,.03);
  backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);
  border:1px dashed rgba(255,255,255,.15);
  display:flex;
  align-items:center;
  justify-content:center;
}
.bl-placeholder span{
  font-family:var(--mono);
  font-size:13px;
  color:var(--muted);
  letter-spacing:.04em;
}
html.light .bl-placeholder{
  background:rgba(0,0,0,.03);
  border-color:rgba(0,0,0,.12);
}

/* ========== Media group — tighter internal spacing ========== */
.bl-media-group{
  display:flex;
  flex-direction:column;
  gap:20px;
}

/* ========== Side-by-side media row ========== */
.bl-media-row{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
}
.bl-media-item{
  border-radius:16px;
  overflow:hidden;
  aspect-ratio:1/1;
}
.bl-media-item img,
.bl-media-item video{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
  border-radius:16px;
}

/* ========== Title break — hidden on desktop, shown on mobile ========== */
.bl-title-break{display:none}

/* ========== Responsive ========== */
@media(max-width:810px){
  .bl-built-grid{grid-template-columns:1fr}
  .bl-hero-img{max-width:100%}
  .bl-title-break{display:block}
  .bl-media-row{grid-template-columns:1fr;gap:12px}
}
@media(max-width:480px){
  .bl-built-grid{grid-template-columns:1fr}
  .bl-media-row{grid-template-columns:1fr;gap:10px}
  .bl-play-btn svg{width:48px;height:48px}
}
