/* Homepage, desktop only (1024px+) (Mark, 6 Nov 2026): hero A (the line and four doors),
   section order. Below 1024px nothing here applies, so phones render as before. */

.jos-hero-a {
  display: none;
}

@media (min-width: 1024px) {
  .jos-hero-a {
    display: block;
    padding: 0;
  }

  .jos-hero-a ul {
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .jos-hero-a picture {
    display: block;
    height: 100%;
  }

  .jos-hero-a img {
    display: block;
    height: 100%;
    object-fit: cover;
    object-position: 50% 16%;
    width: 100%;
  }

  .jos-hero-a a {
    color: inherit;
    display: block;
    text-decoration: none;
  }

  /* Full-bleed bean photo under the header, text overlay on the left (Mark, 6 Nov 2026) */
  /* Round 17 (Mark, 8 Nov 2026): the hero itself is 78% of the viewport height, below the
     header, so it reads as three quarters of the screen at least. The top of The Cafe still
     peeks in under it on a laptop. Capped on very tall screens. */
  .jos-hero-a .jos-hero-a-banner {
    background: #1c1408;
    height: clamp(480px, 78vh, 920px);
    height: clamp(480px, 78svh, 920px);
    overflow: hidden;
    position: relative;
    width: 100%;
  }

  .jos-hero-a .jos-hero-a-banner picture,
  .jos-hero-a .jos-hero-a-banner img {
    height: 100%;
  }

  /* Soft scrim over the dark left of the photo, behind the text */
  .jos-hero-a .jos-hero-a-banner::after {
    background: radial-gradient(ellipse 56% 64% at 0% 50%, rgba(20, 14, 4, 0.8) 0%, rgba(20, 14, 4, 0.5) 50%, rgba(20, 14, 4, 0) 100%);
    content: "";
    inset: 0;
    pointer-events: none;
    position: absolute;
  }

  /* The dark, soft left of the photo, level with the scoop and in line with the content gutter
     (never closer than 24px to the edge) */
  .jos-hero-a .jos-hero-a-copy {
    left: max(24px, min(calc((100% - 1280px) / 2 + 56px), 6vw));
    position: absolute;
    top: 40%;
    z-index: 1;
  }

  .jos-hero-a .jos-hero-a-title {
    color: var(--jos-cream);
    font-family: "Baron Neue", sans-serif;
    font-size: clamp(32px, 3.5vw, 54px);
    font-weight: 400;
    letter-spacing: 0.04em;
    line-height: 1.1;
    margin: 0 0 14px;
    /* Mark's longer headline (round 19) wraps to two lines inside the dark left of the photo */
    max-width: 15em;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
    text-transform: uppercase;
  }

  .jos-hero-a .jos-hero-a-sub {
    color: var(--jos-cream);
    font-family: "Josefin Sans", "Josefin Sans Fallback", sans-serif;
    font-size: clamp(15px, 1.5vw, 24px);
    font-weight: 400;
    letter-spacing: 0.01em;
    line-height: 1.4;
    margin: 0;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
  }

  /* Alternate section backgrounds: sand against cream. Sand is the cream pulled toward the
     site gold, so the page palette stays the same. Body text 5.4:1, labels and links 5.4:1. */
  .jos-dhome > section:nth-child(odd):not(.jos-dhome-dark) {
    --jos-gold-text: #6a4f18;
    background: #e1dbbe;
  }

  .jos-dhome > section:nth-child(even):not(.jos-dhome-dark) {
    background: var(--jos-cream);
  }

  /* Optional reel (?hero=video) sits over the poster, same crop as the photo */
  .jos-hero-a .jos-hero-a-video {
    height: 100%;
    inset: 0;
    object-fit: cover;
    position: absolute;
    width: 100%;
  }

  .jos-hero-a .jos-hero-a-video[hidden] {
    display: none;
  }

  /* Find us block: sand, so it separates from the cream "It's a date" above and the
     cream sign-up below. Text 5.4:1 or better, gold links darkened to match round 9. */
  .jos-home-map {
    --jos-gold-text: #6a4f18;
    background: #e1dbbe;
  }
}

/* Phone hero subline under the headline (Mark, 7 Nov 2026) */
.jos-hero-subline {
  color: #f0f4e6;
  font-family: "Josefin Sans", "Josefin Sans Fallback", sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.4;
  margin: 10px 0 14px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
  text-transform: uppercase;
}

/* Phones only (up to 767px): the hero shows the headline, the address line and Shop.
   The paragraph under them is dropped (Mark, 8 Nov 2026). Tablets keep it. */
@media (max-width: 767px) {
  #hero .jos-hero-lead {
    display: none;
  }
}
