/* JPG Media "simple blocks" layout rules (JP, 2026-11-18)
   1. Text/buttons may sit on images ONLY in hero banners (.text_banner_sec), with a dark scrim
      behind white text (WCAG AA for large text).
   2. Everywhere else, text and images are separate blocks: side by side on desktop, stacked on
      mobile, headings in normal flow. No captions on photos, no oversized headings spilling over. */

/* ---------- 1. Hero banners: keep overlay, guarantee contrast ---------- */
.text_banner_sec{ position:relative; overflow:hidden; }
.text_banner_sec::after{
  content:""; position:absolute; inset:0; pointer-events:none; z-index:1;
  background:linear-gradient(to bottom, rgba(0,0,0,.42), rgba(0,0,0,.55) 55%, rgba(0,0,0,.48));
}
.text_banner_sec .container{ z-index:2; }
.text_banner_sec .section_title,
.text_banner_sec h1, .text_banner_sec h2, .text_banner_sec h3, .text_banner_sec p{
  color:#fff !important;
  text-shadow:0 2px 14px rgba(0,0,0,.55), 0 1px 2px rgba(0,0,0,.7);
}

/* ---------- 2. Oversized / floated headings back into normal flow ---------- */
.section1 h1, .section1 .section_title,
.section2 .section_title, .section3 .section_title,
.alternate-img-content .section_title,
.alternate-img-content .flex-row.right .section_title{
  float:none !important; width:auto !important; max-width:100%;
}
.section1 h1.section_title{ font-size:clamp(34px, 4.2vw, 64px); line-height:1.08; margin-bottom:20px; }
.section1 .col-content{ padding-top:0; }
.section4 .section_title{ padding-left:0; }
.section4 .flex-row{ margin-top:28px; }
.section4 .title_wrap{ position:relative; z-index:auto; }

/* ---------- 3. Alternating image/text blocks (industry heroes etc.) ---------- */
.alternate-img-content .col-img{ height:auto; display:block; }
.alternate-img-content .col-img img{
  min-width:0 !important; max-width:100% !important; width:100%;
  height:auto; aspect-ratio:4/3; object-fit:cover; border-radius:4px;
}
.alternate-img-content .flex-row.left .col-img,
.alternate-img-content .flex-row.right .col-img{ padding-left:15px; padding-right:15px; }
.alternate-img-content .col-content{ padding-left:30px; padding-right:30px; }
.alternate-img-content .section_title{ font-size:clamp(32px, 3.8vw, 60px); line-height:1.1; overflow-wrap:break-word; }

/* ---------- 4. Photo cards: caption BELOW the image, not on it ---------- */
figure .subheader,
.carousel figure figcaption,
.section12 figure figcaption{
  position:static !important; padding:14px 2px 0 !important; border-top:0 !important;
  color:#1f1f1f !important; background:none; text-shadow:none; width:auto;
}
.carousel figure .darken,
.section12 figure .darken{ display:none !important; }
.carousel figure a, .section12 figure a{ display:block; color:#1f1f1f; }
.carousel figure img{ height:clamp(260px, 36vw, 520px); border-radius:4px; }
.section12 figure img{ border-radius:4px; }
.carousel figure:hover figcaption, .section12 figure a:hover figcaption{ color:#eb1e8b !important; }

/* ---------- 5. Long-form headings (articles, case studies) ---------- */
.section16 h2, .section16 h3, .section16 h4{ line-height:1.25 !important; margin:1.1em 0 .45em !important; }
.section16 h3 strong, .section16 h2 strong{ padding:0; background:none; }

/* ---------- 6. Mobile: everything stacks ---------- */
@media (max-width:767px){
  .alternate-img-content .flex-row, .alternate-img-content .flex-row.left{ flex-direction:column; }
  .alternate-img-content .col-content{ padding:18px 15px 0; text-align:left; }
  .section1 .col-img{ padding-bottom:20px; }
  .carousel figure img{ height:260px; }
}

/* ---------- 7. section3 (solutions pages): title lifted above the image grid by layout_hook.py ---------- */
.section3 .blocks-title{ margin-bottom:28px; }
.section3 .blocks-title .section_title{ font-size:clamp(36px, 4.6vw, 76px); line-height:1.08; margin:0; }
.section3 .image-5{ margin-top:0; }

/* ---------- 8. Homepage hero typing headline (JP pick, 2026-11-18) ---------- */
.home-hero .hero-typing{ margin:0 0 10px; font-size:clamp(30px, 4vw, 60px); line-height:1.1; width:100%; max-width:100%; }
.home-hero .flex-row.content-center,
.home-hero .flex-row.content-center .col-75{ width:100%; max-width:100%; }
.home-hero .ht-line{ display:block; white-space:nowrap; }
.home-hero .ht-slot{ display:inline-grid; text-align:left; vertical-align:bottom; }
.home-hero .ht-slot > span{ grid-area:1/1; }
.home-hero .ht-slot::before{ content:"foot traffic"; visibility:hidden; grid-area:1/1; padding-right:.22em; } /* reserves the longest word + cursor: no layout shift (CSS only, so it is not in the H1 text) */
.home-hero .ht-live{ white-space:nowrap; }
.home-hero .ht-word{
  color:#FF2D95 !important;
  text-shadow:0 2px 16px rgba(0,0,0,.8), 0 0 3px rgba(0,0,0,.95), 0 1px 2px rgba(0,0,0,.9);
}
.home-hero .ht-cursor{ display:inline-block; width:.07em; height:.95em; margin-left:.06em; background:#FF2D95;
  box-shadow:0 1px 8px rgba(0,0,0,.55);
  vertical-align:-.08em; animation:ht-blink 1s steps(1) infinite; }
@keyframes ht-blink{ 50%{ opacity:0; } }
.ht-static .home-hero .ht-cursor{ display:none; }
@media (prefers-reduced-motion: reduce){ .home-hero .ht-cursor{ animation:none; display:none; } }
.home-hero .hero-sub{ color:#fff !important; font-size:clamp(16px, 1.5vw, 22px); line-height:1.35; margin:0 auto 18px; max-width:760px; text-align:center; }
.home-hero .ctas{ margin-top:0; }
/* Desktop: keep "We help brands in Hawaiʻi" on one line, "get more ___" on the next.
   Mobile (390px): that first phrase does not fit at 30px, so break after "brands"
   (not after "in") — "We help brands" / "in Hawaiʻi" / "get more ___". */
.home-hero .ht-lead{ white-space:nowrap; }
.home-hero .ht-place{ white-space:nowrap; }
@media (max-width:767px){
  .home-hero .hero-typing{ font-size:30px; }
  .home-hero .ht-lead{ white-space:normal; }
  .home-hero .ht-place{ display:block; }
  .home-hero .hero-sub{ font-size:15px; margin-bottom:14px; padding:0 8px; }
}
.section1 .section_title{ font-size:clamp(34px, 4.2vw, 64px); line-height:1.08; margin-bottom:20px; }
.home-hero .text_banner_sec::after{ background:linear-gradient(to bottom, rgba(0,0,0,.45), rgba(0,0,0,.55) 55%, rgba(0,0,0,.5)); }

/* ---------- 9. Homepage two-path section (Advertise / Become a Venue Partner) ---------- */
.two-path{ padding:56px 0; background:#fff; }
.two-path__title{ text-align:center; font-family:ITCAvantGardePro-Bold,sans-serif; font-size:clamp(28px,3vw,44px); line-height:1.15; color:#2b2b2b; margin:0 0 28px; }
.two-path__grid{ display:grid; grid-template-columns:1fr 1fr; gap:28px; }
.two-path__card{ display:flex; flex-direction:column; border:1px solid #e6e6e6; border-top:6px solid #eb1e8b; border-radius:8px; padding:32px; background:#fafafa; }
.two-path__card + .two-path__card{ border-top-color:#2b2b2b; }
.two-path__eyebrow{ margin:0 0 8px; font-size:15px; letter-spacing:.02em; color:#6b6b6b; }
.two-path__h{ margin:0 0 12px; font-family:ITCAvantGardePro-Bold,sans-serif; font-size:clamp(28px,2.6vw,40px); line-height:1.12; color:#2b2b2b; }
.two-path__copy{ margin:0 0 24px; font-size:18px; line-height:1.5; color:#4a4a4a; flex:1; }
.two-path__ctas{ display:flex; flex-wrap:wrap; align-items:center; gap:14px 22px; }
.two-path__btn{ margin:0; }
.two-path__btn2{ font-family:ITCAvantGardePro-Bold,sans-serif; font-size:18px; color:#eb1e8b; text-decoration:underline; text-underline-offset:4px; }
@media (max-width:767px){
  .two-path{ padding:36px 0; }
  .two-path__grid{ grid-template-columns:1fr; gap:18px; }
  .two-path__card{ padding:22px 18px; }
  .two-path__copy{ font-size:16px; }
}
