/* The featured card (assets/js/hi-feature.js): at the top of /hi and, the
 * same card, near the top of the home page, so both sides of the home page
 * vs hi page test show the same special (Brendan, 13 Nov 2026). Moved here
 * from v2-hi.css. */

/* ---------- Featured card ----------
 * One rotating special above the four cards, set by Gemmy in the admin
 * ("Featured on /hi"; markup from assets/js/hi-feature.js). Same family as
 * the cards (navy edge, hard shadow, a rounded-off corner) but full width,
 * with an optional photo strip across the top, its words on show and a
 * labelled button, so it reads as "this month" without shouting. */

.hi-feature-item {
  margin-bottom: 0.35rem;
}

.hi-feature {
  --f-bg: var(--berry);
  --f-ink: var(--cream);
  --f-accent: var(--acid);
  --f-tag-bg: var(--acid);
  --f-tag-ink: var(--navy);
  --f-go-bg: var(--acid);
  --f-go-ink: var(--navy);
  position: relative;
  display: block;
  overflow: hidden;
  color: var(--f-ink);
  background: var(--f-bg);
  border: 3px solid var(--navy);
  border-radius: 1.8rem 1rem 1rem 1rem;
  box-shadow: 0.3rem 0.3rem 0 var(--navy);
  text-decoration: none;
  transform: rotate(-0.3deg);
  transition: transform 180ms ease, box-shadow 180ms ease;
  -webkit-tap-highlight-color: transparent;
}

.hi-feature--navy {
  --f-bg: var(--navy);
  --f-accent: var(--aqua);
  --f-tag-bg: var(--pink);
  --f-go-bg: var(--aqua);
}

.hi-feature--coral,
.hi-feature--pink,
.hi-feature--aqua,
.hi-feature--acid {
  --f-ink: var(--navy);
  --f-accent: var(--berry);
  --f-tag-bg: var(--navy);
  --f-tag-ink: var(--cream);
  --f-go-bg: var(--navy);
  --f-go-ink: var(--acid);
}

.hi-feature--coral { --f-bg: var(--coral); --f-accent: var(--navy); }
.hi-feature--pink { --f-bg: var(--pink); }
.hi-feature--aqua { --f-bg: var(--aqua); }
.hi-feature--acid { --f-bg: var(--acid); }

/* The card is a box: its link fills it, and the coupon strip (when there is
   one) sits under the link, since a copy button can't go inside a link. */
.hi-feature__main {
  display: block;
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.hi-feature__main:focus-visible {
  outline: none;
}

.hi-feature:has(a.hi-feature__main:hover) {
  transform: translate(-0.2rem, -0.2rem) rotate(0);
  box-shadow: 0.5rem 0.5rem 0 var(--navy);
}

.hi-feature:has(a.hi-feature__main:active),
.hi-feature:has(a.hi-feature__main.is-opening) {
  transform: translate(0.2rem, 0.2rem) rotate(0);
  box-shadow: 0.1rem 0.1rem 0 var(--navy);
}

/* After a tap on a "DM to book" card, while Instagram opens (v2-site.js). */
.hi-feature__main.is-opening .hi-feature__go {
  opacity: 0.85;
}

.hi-feature:has(a.hi-feature__main:focus-visible) {
  outline: 4px solid var(--navy);
  outline-offset: 4px;
}

.hi-feature__photo {
  display: block;
  aspect-ratio: 2 / 1;
  background: var(--navy);
  border-bottom: 3px solid var(--navy);
}

.hi-feature__photo img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

/* Only ever seen in the admin's preview, before a photo is chosen. */
.hi-feature__photo--empty {
  display: grid;
  place-items: center;
  color: var(--cream);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hi-feature__body {
  display: grid;
  /* One column in source order, so a card without a tag or a price has no
     empty row (and no gap) where it would be. */
  grid-template-columns: minmax(0, 1fr);
  justify-items: start;
  gap: 0.3rem 0.75rem;
  padding: 0.8rem 0.9rem 0.9rem;
}

/* Words only: a little more room, and a sparkle in the corner in place of the
   photo. */
.hi-feature--words .hi-feature__body {
  padding: 1rem 3.4rem 1rem 1rem;
}

.hi-feature--words::after {
  content: "";
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  width: 2rem;
  height: 2rem;
  background: var(--f-accent);
  /* The four-point sparkle from the site's ticker (✦). */
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
  transform: rotate(8deg);
}

.hi-feature__tag {
  padding: 0.14rem 0.55rem 0.18rem;
  color: var(--f-tag-ink);
  background: var(--f-tag-bg);
  border-radius: 999px;
  font-family: var(--serif);
  font-size: 0.66rem;
  font-style: italic;
  letter-spacing: 0.08em;
  line-height: 1.25;
  text-transform: uppercase;
}

.hi-feature__title {
  font-family: "Gemmy Display", Arial, sans-serif;
  font-size: clamp(1.15rem, 5.6vw, 1.6rem);
  line-height: 1.02;
  letter-spacing: -0.06em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.hi-feature__price {
  color: var(--f-accent);
  font-family: var(--serif);
  font-size: clamp(1.3rem, 5.6vw, 1.7rem);
  font-style: italic;
  line-height: 1;
}

.hi-feature__blurb {
  font-size: 0.88rem;
  line-height: 1.32;
}

.hi-feature__go {
  display: inline-flex;
  min-height: 2.5rem;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.25rem;
  padding: 0.45rem 0.85rem 0.45rem 1rem;
  color: var(--f-go-ink);
  background: var(--f-go-bg);
  border: 2px solid var(--navy);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.1;
}

.hi-feature__go .icon {
  width: 1.1rem;
  height: 1.1rem;
}

/* Two buttons (a card with a second link): each is its own link, so each
   presses on its own and the card stays put. */
.hi-feature__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.hi-feature__buttons .hi-feature__go {
  text-decoration: none;
  transition: transform 120ms ease;
}

.hi-feature__buttons .hi-feature__go:hover {
  transform: translate(-0.1rem, -0.1rem);
}

.hi-feature__buttons .hi-feature__go:active,
.hi-feature__buttons .hi-feature__go.is-opening {
  transform: translate(0.1rem, 0.1rem);
  opacity: 0.85;
}

.hi-feature__buttons .hi-feature__go:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 2px;
}

/* Coupon: a ticket stub along the bottom, torn off along a dashed line. The
   code keeps her capitals exactly (codes can be case-sensitive). */
.hi-feature__code {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.6rem;
  padding: 0.7rem 0.9rem 0.8rem;
  color: var(--navy);
  background: var(--cream);
  border-top: 3px dashed var(--navy);
}

.hi-feature__code-label {
  font-family: var(--serif);
  font-size: 0.72rem;
  font-style: italic;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hi-feature__code-value {
  padding: 0.15rem 0.5rem;
  font-family: "Gemmy Sans", Arial, sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  background: var(--white);
  border: 2px solid var(--navy);
  border-radius: 0.4rem;
  user-select: all;
  -webkit-user-select: all;
}

.hi-feature__copy {
  display: inline-flex;
  min-height: 2.5rem;
  align-items: center;
  gap: 0.35rem;
  margin-left: auto;
  padding: 0.35rem 0.85rem;
  color: var(--acid);
  background: var(--navy);
  border: 2px solid var(--navy);
  border-radius: 999px;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.hi-feature__copy .icon {
  width: 1rem;
  height: 1rem;
}

.hi-feature__copy:hover,
.hi-feature__copy.is-copied {
  color: var(--navy);
  background: var(--acid);
}

.hi-feature__copy:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 3px;
}

.hi-feature__code-note {
  flex-basis: 100%;
  font-size: 0.8rem;
  line-height: 1.3;
}

@media (min-width: 40rem) {
  .hi-feature__code {
    padding: 0.85rem 1.3rem 0.95rem;
  }

  .hi-feature {
    border-radius: 2.6rem 1rem 1rem 1rem;
  }

  .hi-feature__body {
    padding: 1rem 1.3rem 1.15rem;
  }

  .hi-feature--words .hi-feature__body {
    padding: 1.3rem 4.5rem 1.3rem 1.4rem;
  }

  .hi-feature--words::after {
    top: 1.1rem;
    right: 1.2rem;
    width: 2.6rem;
    height: 2.6rem;
  }

  .hi-feature__tag {
    font-size: 0.74rem;
  }

  .hi-feature__title {
    font-size: 1.9rem;
  }

  .hi-feature__blurb {
    font-size: 0.98rem;
  }
}

/* Home page: the card in its own band at the top, above the hero (first
   thing on a phone, as on /hi), as wide as a reading column. */
.home-feature {
  position: relative;
  z-index: 2;
  padding: 1rem 1rem 0.25rem;
}
.home-feature__list {
  max-width: 44rem;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}
.home-feature .hi-feature-item {
  margin-bottom: 0;
}

/* On the home page the card is a banner, not the first screen: a short
   photo strip on a phone, and on wider screens the photo on the left with
   the words beside it. (Same card and markup as /hi; only the shape.) */
.home-feature .hi-feature__photo {
  aspect-ratio: auto;
  height: 7.5rem;
  overflow: hidden;
}

@media (min-width: 48rem) {
  .home-feature__list {
    max-width: 62rem;
  }

  .home-feature .hi-feature__main {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: stretch;
  }

  .home-feature .hi-feature__photo {
    height: auto;
    min-height: 11rem;
    border-bottom: 0;
    border-right: 3px solid var(--navy);
  }

  .home-feature .hi-feature__body {
    align-content: center;
  }
}

/* ---------- Promo cards taking turns ----------
 * The page carries every promo card that's on, each numbered data-promo="0",
 * "1"... (PROMO_MAX in assets/js/hi-feature.js is 8). assets/js/v2-promo.js
 * picks one in <head>, before anything paints, and names it on <html> as
 * data-promo-show; only that card shows. Without scripts, the first one
 * does. "none": no card is on today, so the home page's band goes too. */
html[data-promo-show] [data-promo],
html:not([data-promo-show]) [data-promo]:not([data-promo="0"]),
html[data-promo-show="none"] .home-feature {
  display: none;
}

html[data-promo-show="0"] [data-promo="0"],
html[data-promo-show="1"] [data-promo="1"],
html[data-promo-show="2"] [data-promo="2"],
html[data-promo-show="3"] [data-promo="3"],
html[data-promo-show="4"] [data-promo="4"],
html[data-promo-show="5"] [data-promo="5"],
html[data-promo-show="6"] [data-promo="6"],
html[data-promo-show="7"] [data-promo="7"] {
  display: block;
}

@media (prefers-reduced-motion: reduce) {
  .hi-feature,
  .hi-feature:has(a.hi-feature__main:hover),
  .hi-feature:has(a.hi-feature__main:active),
  .hi-feature:has(a.hi-feature__main.is-opening),
  .hi-feature__buttons .hi-feature__go {
    transition: none;
    transform: none;
  }
}

/* Compact photo card (Brendan, 16 Nov 2026: "way less tall… still look special").
 * The photo moves from a strip across the top to a column on the left, like
 * the service cards below it (a bit wider than theirs, so it still reads as the
 * special), and the words sit beside it. The words-only look is unchanged.
 * On phones the blurb is clamped to three lines; the full text stays in the
 * markup, and wider screens show all of it. */
.hi-feature--photo .hi-feature__main {
  display: grid;
  grid-template-columns: 9.5rem minmax(0, 1fr);
}

.hi-feature--photo .hi-feature__photo {
  aspect-ratio: auto;
  height: 100%;
  min-height: 100%;
  border-bottom: 0;
  border-right: 3px solid var(--navy);
}

.hi-feature--photo .hi-feature__photo img {
  height: 100%;
  object-fit: cover;
  object-position: 60% 40%;
}

.hi-feature--photo .hi-feature__body {
  padding: 0.7rem 0.8rem 0.75rem;
  gap: 0.22rem 0.6rem;
}

.hi-feature--photo .hi-feature__title {
  font-size: clamp(1.05rem, 4.4vw, 1.4rem);
}

.hi-feature--photo .hi-feature__price {
  font-size: clamp(1.15rem, 4.6vw, 1.45rem);
}

.hi-feature--photo .hi-feature__blurb {
  display: -webkit-box;
  overflow: hidden;
  font-size: 0.8rem;
  line-height: 1.3;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.hi-feature--photo .hi-feature__go {
  min-height: 2.1rem;
  margin-top: 0.15rem;
  padding: 0.3rem 0.7rem 0.3rem 0.85rem;
  font-size: 0.82rem;
}

@media (min-width: 700px) {
  .hi-feature--photo .hi-feature__main {
    grid-template-columns: 13rem minmax(0, 1fr);
  }

  .hi-feature--photo .hi-feature__blurb {
    display: block;
    -webkit-line-clamp: unset;
  }
}
