/**
 * Flavor marketing pages — premium dark editorial (Sorrel / Ginger Beer / hub).
 */

.fp {
  --fp-ink: #f6f1ea;
  --fp-muted: rgba(246, 241, 234, 0.72);
  --fp-soft: rgba(246, 241, 234, 0.55);
  --fp-line: rgba(197, 164, 115, 0.28);
  --fp-accent: #c5a473;
  --fp-tone: #9a2f45;
  --fp-glow: rgba(154, 47, 69, 0.35);
  --fp-surface: #12100e;
  --fp-panel: #1a1714;
  background: #0b0a09;
  color: var(--fp-ink);
  overflow: clip;
}

.fp.is-ginger {
  --fp-tone: #2f6b45;
  --fp-glow: rgba(47, 107, 69, 0.32);
}

.fp .eyebrow {
  border-color: rgba(197, 164, 115, 0.45) !important;
  color: var(--fp-accent) !important;
  background: rgba(197, 164, 115, 0.08) !important;
}

.fp h1,
.fp h2,
.fp h3,
.fp-subhead,
.fp-cinematic__tradition {
  color: var(--fp-ink) !important;
  letter-spacing: -0.035em;
}

.fp h1 em,
.fp h2 em {
  display: block;
  font-style: italic;
  font-weight: 400;
  color: var(--fp-accent);
}

.fp p {
  color: var(--fp-muted) !important;
  font-size: clamp(15px, 1.15vw, 17px) !important;
  line-height: 1.75 !important;
  max-width: 38rem;
}

.fp .fp-lead {
  color: var(--fp-ink) !important;
  font-weight: 500;
  font-size: clamp(16px, 1.25vw, 18px) !important;
  line-height: 1.55 !important;
  margin: 0 0 0.85rem;
}

.fp .fp-close {
  color: var(--fp-ink) !important;
  font-weight: 600;
  margin-top: 1.25rem;
}

.fp .fp-subhead {
  margin: 2.25rem 0 0.75rem;
  font-size: clamp(22px, 2.4vw, 28px) !important;
}

.fp .text-link {
  color: var(--fp-accent) !important;
}

.fp .btn.outline {
  background: transparent;
  border: 1px solid rgba(246, 241, 234, 0.35);
  color: var(--fp-ink);
}

.fp .btn.outline:hover {
  border-color: var(--fp-accent);
  color: var(--fp-accent);
}

/* —— Hero —— */
.fp-hero {
  position: relative;
  min-height: min(92vh, 920px);
  padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 7vw, 5.5rem);
  isolation: isolate;
}

.fp-hero__glow {
  position: absolute;
  inset: -10% 35% auto -15%;
  height: 70%;
  background:
    radial-gradient(ellipse at 40% 40%, var(--fp-glow), transparent 65%),
    radial-gradient(ellipse at 70% 20%, rgba(197, 164, 115, 0.12), transparent 55%);
  pointer-events: none;
  z-index: 0;
}

.fp-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.fp-hero__copy h1 {
  margin: 0 0 1.1rem;
  font-size: clamp(44px, 6.5vw, 78px) !important;
  line-height: 1.02 !important;
}

.fp-hero__intro {
  margin: 0 0 1.35rem;
  font-size: clamp(16px, 1.3vw, 18px) !important;
  max-width: 34rem;
}

.fp-hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0 0 1.75rem;
}

.fp-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(246, 241, 234, 0.14);
  background: rgba(255, 255, 255, 0.03);
  color: var(--fp-soft);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-family: var(--font-body, Inter, sans-serif);
}

.fp-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.35rem;
}

.fp-hero__stage {
  position: relative;
  display: block;
  width: 100%;
  min-height: clamp(360px, 48vw, 560px);
  align-self: stretch;
  border-radius: 18px;
  overflow: hidden;
}

.fp-hero__ring {
  display: none !important;
}

.fp-hero__bottle {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover;
  object-position: center;
  border-radius: 18px;
  filter: none;
  animation: fp-rise 1.1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes fp-pulse {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.06); opacity: 1; }
}

@keyframes fp-rise {
  from { opacity: 0; transform: translateY(28px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* —— About —— */
.fp-about {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(1.75rem, 4.5vw, 3.75rem);
  align-items: center;
  padding: clamp(3.5rem, 8vw, 6.5rem) var(--tr-gutter, 1.5rem);
}

.fp-about__media {
  position: relative;
  border-radius: 2px;
  overflow: hidden;
  isolation: isolate;
}

.fp-about__media::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(197, 164, 115, 0.22);
  pointer-events: none;
}

.fp-about__media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.fp-about__media:hover img {
  transform: scale(1.045);
}

.fp-about__copy h2 {
  margin: 0 0 1rem;
}

.fp-about__copy p + p {
  margin-top: 0.85rem;
}

/* —— Cinematic band —— */
.fp-cinematic {
  position: relative;
  min-height: clamp(520px, 72vh, 760px);
  display: grid;
  align-items: end;
  padding: clamp(3.5rem, 8vw, 6rem) 0;
  background:
    linear-gradient(90deg, rgba(8, 7, 6, 0.92) 0%, rgba(8, 7, 6, 0.72) 42%, rgba(8, 7, 6, 0.35) 100%),
    var(--fp-cinema) center / cover no-repeat;
  background-color: #0b0a09;
}

.fp-cinematic__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 7, 6, 0.35) 0%, rgba(8, 7, 6, 0.15) 40%, rgba(8, 7, 6, 0.78) 100%);
  pointer-events: none;
}

.fp-cinematic__inner {
  position: relative;
  z-index: 1;
  max-width: 40rem;
  padding-block: 0.5rem;
}

.fp-cinematic__inner h2 {
  margin: 0 0 1rem;
  font-size: clamp(34px, 4.5vw, 52px) !important;
}

.fp-cinematic__tradition {
  margin: 2.35rem 0 0.75rem;
  font-size: clamp(24px, 3vw, 34px) !important;
  max-width: 22ch;
}

/* —— Gather —— */
.fp-gather {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(1.75rem, 4.5vw, 3.75rem);
  align-items: center;
  padding: clamp(3.5rem, 8vw, 6.5rem) var(--tr-gutter, 1.5rem);
}

.fp-gather__frame {
  position: relative;
  padding: 0.85rem;
  background:
    linear-gradient(145deg, rgba(197, 164, 115, 0.22), transparent 42%),
    var(--fp-panel);
  border: 1px solid var(--fp-line);
}

.fp-gather__frame::before,
.fp-gather__frame::after {
  content: "";
  position: absolute;
  width: 42px;
  height: 42px;
  border: 2px solid var(--fp-tone);
  pointer-events: none;
}

.fp-gather__frame::before {
  top: 10px;
  left: 10px;
  border-right: 0;
  border-bottom: 0;
}

.fp-gather__frame::after {
  right: 10px;
  bottom: 10px;
  border-left: 0;
  border-top: 0;
}

.fp-gather__frame img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 5 / 4;
  object-fit: cover;
}

.fp-gather__copy h2 {
  margin: 0 0 1rem;
  max-width: 14ch;
}

/* —— Serve —— */
.fp-serve {
  padding: 0 var(--tr-gutter, 1.5rem) clamp(3rem, 7vw, 5.5rem);
}

.fp-serve__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 0;
  align-items: stretch;
  border: 1px solid var(--fp-line);
  background: var(--fp-panel);
  overflow: hidden;
  border-radius: 0;
  min-height: clamp(360px, 48vw, 520px);
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

/* Ginger: photo left, copy right */
.fp.is-ginger .fp-serve__grid {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
}

.fp.is-ginger .fp-serve__media {
  order: -1;
}

.fp-serve__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
  padding: clamp(1.75rem, 4vw, 2.75rem);
  background:
    linear-gradient(145deg, rgba(197, 164, 115, 0.1), transparent 55%),
    var(--fp-panel);
  min-width: 0;
  max-width: 100%;
}

.fp-serve__copy h2 {
  margin: 0 0 0.75rem;
  max-width: 12ch;
}

.fp-serve__copy > p {
  margin: 0 0 1.1rem;
}

.fp-serve__tips {
  list-style: none;
  margin: 0 0 1.15rem;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.fp-serve__tip {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: center;
  padding: 0.7rem 0.85rem;
  border: 1px solid rgba(246, 241, 234, 0.1);
  background: rgba(255, 255, 255, 0.03);
}

.fp-serve__num {
  font-family: var(--font-display, "DM Sans", sans-serif);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--fp-accent);
  min-width: 1.6rem;
}

.fp-serve__tip-text {
  color: var(--fp-ink);
  font-size: 15px;
  line-height: 1.4;
  font-family: var(--font-body, Inter, sans-serif);
}

.fp-serve__copy .text-link {
  display: inline-flex;
  margin-top: 0.15rem;
  width: fit-content;
}

.fp-serve__media {
  position: relative;
  min-height: 280px;
  background: #000;
  border-radius: 0;
}

.fp-serve__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  border-radius: 0;
}

.fp-serve__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(26, 23, 20, 0.35), transparent 35%);
  pointer-events: none;
  border-radius: 0;
}

.fp.is-ginger .fp-serve__media::after {
  background: linear-gradient(-90deg, rgba(26, 23, 20, 0.35), transparent 35%);
}

/* —— Bottom CTA —— */
.fp-bottom {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 0%, var(--fp-glow), transparent 55%),
    #090807;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.fp-bottom .wrap {
  max-width: 42rem;
}

.fp-bottom h2 {
  margin: 0 0 0.85rem;
}

.fp-bottom p {
  margin: 0 auto 1.6rem;
}

.fp-bottom .actions {
  justify-content: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1rem;
}

/* Page chrome when flavor article is present */
#main:has(.fp) {
  padding-top: 0;
  background: #0b0a09;
}

@media (max-width: 960px) {
  .fp {
    overflow-x: hidden;
  }

  .fp-hero__grid,
  .fp-about,
  .fp.is-ginger .fp-about,
  .fp-gather,
  .fp.is-ginger .fp-gather,
  .fp-serve__grid,
  .fp.is-ginger .fp-serve__grid {
    grid-template-columns: minmax(0, 1fr) !important;
    width: 100% !important;
    max-width: 100% !important;
    gap: 1.5rem;
  }

  .fp.is-ginger .fp-about__media,
  .fp.is-ginger .fp-about__copy,
  .fp.is-ginger .fp-gather__frame,
  .fp.is-ginger .fp-gather__copy,
  .fp.is-ginger .fp-serve__media {
    order: initial !important;
  }

  .fp-hero,
  .fp-about,
  .fp-gather,
  .fp-serve,
  .fp-cinematic__inner,
  .fp-bottom .wrap {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box;
  }

  .fp-hero {
    min-height: 0;
    padding: calc(var(--header-h, 78px) + 1rem) 1.15rem 2.25rem !important;
  }

  .fp-hero__grid {
    gap: 1.25rem !important;
  }

  .fp-hero__copy h1 {
    font-size: clamp(34px, 9vw, 44px) !important;
    line-height: 1.05 !important;
  }

  .fp-hero__stage {
    order: -1;
    width: 100% !important;
    min-height: 280px !important;
    aspect-ratio: 4 / 3;
    margin-bottom: 1.5rem;
  }

  .fp-hero__bottle {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
  }

  .fp-hero__actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
  }

  .fp-hero__actions .btn,
  .fp-hero__actions .text-link {
    justify-content: center;
    text-align: center;
  }

  .fp-about,
  .fp-gather {
    padding: 2.75rem 1.15rem !important;
  }

  .fp-about__media,
  .fp-gather__frame,
  .fp-about__copy,
  .fp-gather__copy,
  .fp-serve__copy,
  .fp-serve__media,
  .fp-serve__grid {
    min-width: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
  }

  .fp-about__copy h2,
  .fp-gather__copy h2,
  .fp-serve__copy h2,
  .fp-cinematic__inner h2 {
    max-width: none;
    font-size: clamp(28px, 7.5vw, 36px) !important;
  }

  .fp p,
  .fp .fp-lead,
  .fp-hero__intro {
    max-width: none !important;
  }

  .fp-cinematic {
    min-height: 0 !important;
    padding: 3rem 0 !important;
    background-position: 70% center;
    /* Full-bleed dark wash so the photo never peeks past the overlay */
    background:
      linear-gradient(180deg, rgba(8, 7, 6, 0.72) 0%, rgba(8, 7, 6, 0.88) 45%, rgba(8, 7, 6, 0.96) 100%),
      var(--fp-cinema) 70% center / cover no-repeat !important;
    background-color: #0b0a09 !important;
  }

  .fp-cinematic__shade {
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(
      180deg,
      rgba(8, 7, 6, 0.55) 0%,
      rgba(8, 7, 6, 0.78) 40%,
      rgba(8, 7, 6, 0.94) 100%
    ) !important;
  }

  .fp-cinematic__inner {
    max-width: none !important;
    margin-inline: 0 !important;
    padding: 3.5rem 1.15rem 0.75rem !important;
    background: none !important;
  }

  .fp-cinematic__tradition {
    max-width: none;
    font-size: clamp(22px, 6vw, 28px) !important;
  }

  .fp-serve {
    padding: 0 1.15rem 2.75rem !important;
  }

  .fp-serve__grid {
    min-height: 0 !important;
    overflow: hidden;
  }

  .fp-serve__copy {
    padding: 1.35rem 1.15rem !important;
  }

  .fp-serve__media {
    min-height: 260px !important;
    /* Taller frame so the bottle + red cap stay fully visible */
    aspect-ratio: 4 / 3;
    height: auto;
  }

  .fp-serve__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover !important;
    /* Anchor to the top so the cap is never cropped */
    object-position: center top !important;
  }

  .fp-serve__media::after {
    background: linear-gradient(0deg, rgba(26, 23, 20, 0.45), transparent 40%) !important;
  }

  .fp-serve__tip {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .fp-bottom {
    padding: 3rem 1.15rem !important;
  }

  .fp-bottom h2 {
    max-width: none;
  }
}

@media (max-width: 640px) {
  .fp-hero__tags {
    gap: 0.4rem;
  }

  .fp-tag {
    font-size: 11px;
    padding: 0.4rem 0.7rem;
  }

  .fp-about__media img,
  .fp-gather__frame img {
    aspect-ratio: 1 / 1;
  }

  .fp-bottom .actions {
    flex-direction: column;
    align-items: stretch;
  }

  .fp-bottom .actions .btn {
    justify-content: center;
    text-align: center;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fp-hero__ring,
  .fp-hero__bottle,
  .fp-about__media img {
    animation: none !important;
    transition: none !important;
  }
}
