/*  send-out-band.css — the warm visual band that sits directly under the header
 *  on the pages we send to people mid-conversation: /faq, /reviews-and-vet-package
 *  and /start.
 *
 *  Three cards: the family YouTube photo, the Animal Center LI vet-package flyer,
 *  and a tap-to-call card for the vet. Side by side on desktop, stacked on mobile.
 *
 *  The cards are warm-white on a cream backing, which reads correctly on a cream
 *  page (/reviews-and-vet-package, /start) and on the FAQ's dark chocolate page
 *  alike. `.sob-band.is-dark` carries the few adjustments the dark page needs.
 *
 *  Tokens (--cream, --brown, --gold, --radius, --shadow-card …) come from each
 *  page's own :root, so the band inherits that page's palette rather than
 *  redefining it. Fallbacks are given for anything that might be missing.
 */

.sob-band {
  padding: 22px clamp(14px, 3.5vw, 40px) 26px;
  background:
    radial-gradient(120% 90% at 12% 0%, rgba(232, 184, 106, 0.20) 0%, transparent 62%),
    radial-gradient(120% 90% at 88% 100%, rgba(201, 137, 58, 0.14) 0%, transparent 58%),
    var(--cream, #FAF7F0);
  border-bottom: 1px solid rgba(58, 32, 16, 0.10);
}

/* The FAQ page is dark chocolate, so the band gets its own cream plate there
   rather than bleeding into a white-ish edge. */
.sob-band.is-dark {
  background:
    radial-gradient(120% 90% at 12% 0%, rgba(232, 184, 106, 0.16) 0%, transparent 62%),
    radial-gradient(120% 90% at 88% 100%, rgba(201, 137, 58, 0.12) 0%, transparent 58%),
    #F5F0E8;
  border-bottom: 1px solid rgba(58, 32, 16, 0.14);
}

.sob-inner {
  max-width: 1040px;
  margin: 0 auto;
}

/* Screen-reader-only. The band adds no visible copy of its own beyond the three
   captions the cards were specified with, so the "opens in a new tab" hints and
   the band's own label live here. */
.sob-vh {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.sob-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(12px, 1.8vw, 20px);
  align-items: stretch;
}

/* Each card is the whole tap target — a link, so it works without JS and gets
   a real focus ring from the browser. */
.sob-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(58, 32, 16, 0.10);
  border-radius: var(--radius, 18px);
  background: var(--warm-white, #FFFDF7);
  box-shadow: var(--shadow-card, 0 4px 28px rgba(58, 32, 16, 0.10));
  color: var(--brown, #3A2010);
  text-decoration: none;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.sob-card:hover,
.sob-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(201, 137, 58, 0.45);
  box-shadow: 0 10px 34px rgba(58, 32, 16, 0.18);
}

.sob-card:active {
  transform: translateY(-1px);
}

.sob-card:focus-visible {
  outline: 3px solid var(--gold, #C9893A);
  outline-offset: 2px;
}

/* Square media box keeps the row even whether the card holds a photo or a
   portrait flyer, and stays compact once the cards stack on a phone.
   The images are taken out of flow (absolute) on purpose: left in flow, their
   own tall portrait proportions win over `aspect-ratio` and every card ends up
   a different height, which knocks the three captions out of line. */
.sob-media {
  position: relative;
  flex: 0 0 auto;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #EFE7DA;
}

.sob-media > img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

/* A photograph: fill the box. Biased slightly upward so the family's faces and
   the puppy both survive the crop. */
.sob-media > img.sob-fit-cover {
  object-fit: cover;
  object-position: center 40%;
}

/* A document: never crop it. The flyer sits whole on a warm plate, and the card
   links through to the full-size file for anyone who wants to read the detail. */
.sob-media > img.sob-fit-contain {
  object-fit: contain;
  background: var(--warm-white, #FFFDF7);
}

.sob-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  background: rgba(58, 32, 16, 0.78);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.38);
  pointer-events: none;
  transition: transform 0.22s ease, background 0.22s ease;
}

.sob-play > svg {
  width: 20px;
  height: 20px;
  margin-left: 3px;
  fill: #fff;
}

.sob-card:hover .sob-play,
.sob-card:focus-visible .sob-play {
  transform: translate(-50%, -50%) scale(1.08);
  background: rgba(58, 32, 16, 0.92);
}

.sob-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 13px 15px 15px;
  border-top: 1px solid rgba(58, 32, 16, 0.07);
}

.sob-caption {
  margin: 0;
  font-family: 'Playfair Display', serif;
  font-size: clamp(0.98rem, 1.2vw, 1.1rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--brown, #3A2010);
}

/* ── The vet card carries no photograph, so its "media" area is a gold plate
      holding the phone number itself. ───────────────────────────────────── */

.sob-card-call .sob-media {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 18px;
  text-align: center;
  background:
    linear-gradient(155deg, #4a2810 0%, var(--brown, #3A2010) 58%, #2a1508 100%);
}

.sob-ring {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border: 1px solid rgba(232, 184, 106, 0.55);
  border-radius: 50%;
  background: rgba(232, 184, 106, 0.14);
}

.sob-ring > svg {
  width: 22px;
  height: 22px;
  fill: var(--gold-light, #E8B86A);
}

.sob-call-label {
  font-family: 'Nunito', sans-serif;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-light, #E8B86A);
}

.sob-call-number {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.15rem, 1.9vw, 1.45rem);
  font-weight: 700;
  line-height: 1.1;
  color: #FFFDF7;
}

/* ── Stacked on phones ─────────────────────────────────────────────────── */

@media (max-width: 760px) {
  .sob-band {
    padding: 16px 14px 20px;
  }

  .sob-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  /* Stacked, a square photo eats the screen — go wide and short instead, and
     put the caption beside the image so each card stays one thumb tall. */
  .sob-card {
    flex-direction: row;
    align-items: stretch;
  }

  .sob-media {
    flex: 0 0 38%;
    max-width: 148px;
    aspect-ratio: 4 / 3;
  }

  .sob-body {
    border-top: 0;
    border-left: 1px solid rgba(58, 32, 16, 0.07);
    padding: 12px 14px;
  }

  .sob-card-call .sob-media {
    gap: 6px;
    padding: 12px;
  }

  .sob-ring {
    width: 38px;
    height: 38px;
  }

  .sob-ring > svg {
    width: 17px;
    height: 17px;
  }

  .sob-call-number {
    font-size: 1rem;
  }

  .sob-play {
    width: 42px;
    height: 42px;
  }

  .sob-play > svg {
    width: 16px;
    height: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sob-card,
  .sob-play {
    transition: none;
  }

  .sob-card:hover,
  .sob-card:focus-visible,
  .sob-card:active {
    transform: none;
  }

  .sob-card:hover .sob-play,
  .sob-card:focus-visible .sob-play {
    transform: translate(-50%, -50%);
  }
}
