/* AnnaBay Club — Our Rums page.
   Photo hero with the three classics, a sand intro block, then one photo block
   per classic (White, Amber, Aged), a sand intro for the flavours, the flavours
   line-up swiping over the rocks photo, and the invitation to the RumLocker.
   Sand and photo blocks take turns; nothing dark brown. */

/* ---------- Shared bits (kicker lives in home.css, repeated here) ---------- */
.kicker {
  font-family: var(--display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
}

.kicker--light {
  color: var(--white);
}

/* ---------- 1. Hero: the three classics on the Curaçao flag ----------
   No filter over the photo. The title lies big on the photo: along the foot on a phone, in the
   corner of the flag, left of the Amber bottle, on a wide screen. */
.rhero {
  position: relative;
  color: var(--white);
  background: var(--red);
  overflow: hidden;
  isolation: isolate;
}

.rhero__bg {
  display: block;
  aspect-ratio: 5 / 4;
}

.rhero__bg img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}

.rhero__copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  display: grid;
  padding-block: 0 44px;
  text-shadow: 0 2px 16px rgba(18, 36, 84, 0.6);
}

.rhero .big {
  font-size: clamp(56px, 16vw, 110px);
}

@media (min-width: 768px) {
  .rhero__bg {
    aspect-ratio: 1600 / 872;
  }
  .rhero__copy {
    padding-block: 0 40px;
  }
}

@media (min-width: 900px) {
  .rhero__copy {
    left: 3vw;
    right: auto;
    width: 19.5vw;
    padding: 0 0 2.6vw;
  }
  .rhero__copy.container {
    max-width: none;
    margin: 0;
    padding-inline: 0;
  }
  .rhero .big {
    font-size: clamp(64px, 8.2vw, 132px);
  }
}

/* ---------- Intro blocks on sand: a kicker, a big title and a few lines ---------- */
.intro {
  --ink: var(--red);
  padding-block: 96px 80px;
  background: var(--sand);
  color: var(--black);
  text-align: center;
}

.intro__inner {
  display: grid;
  justify-items: center;
  gap: 10px;
}

/* The line under the big title, in the display face */
.intro__line {
  margin-top: 6px;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(24px, 6.5vw, 40px);
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--red);
}

.intro .sub {
  margin: 6px 0 0;
  max-width: 44ch;
}

@media (min-width: 900px) {
  .intro {
    padding-block: 120px 100px;
  }
  .intro .sub {
    font-size: 19px;
  }
}

/* ---------- 2. One photo block per classic ----------
   Phone: the photo on top, the text on a red panel under it.
   Desktop: photo and text side by side, the photo swapping sides from rum to rum. */
.rumblock {
  --ink: var(--white);
  position: relative;
  color: var(--white);
  background: var(--red);
  isolation: isolate;
  overflow: hidden;
}

.rumblock__photo {
  position: relative;
}

.rumblock__bg {
  display: block;
  aspect-ratio: 4 / 5;
}

.rumblock__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rumblock__copy {
  display: grid;
  justify-items: start;
  gap: 12px;
  padding-block: 36px 48px;
}

@media (min-width: 768px) {
  .rumblock {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  }
  .rumblock__photo {
    min-height: 620px;
    height: 100%;
  }
  /* Every other block has the photo on the right */
  .rumblock--flip {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  }
  .rumblock--flip .rumblock__photo {
    order: 2;
  }
  .rumblock__bg {
    position: absolute;
    inset: 0;
    aspect-ratio: auto;
  }
  .rumblock__bg img {
    position: absolute;
    inset: 0;
  }
  .rumblock__inner {
    display: flex;
    align-items: center;
    padding-inline: clamp(40px, 6vw, 96px);
  }
  .rumblock__copy {
    max-width: 520px;
    padding-block: 72px;
  }
  .rumblock__copy p {
    font-size: 18px;
  }
  .rumblock__name {
    font-size: clamp(60px, 6vw, 88px);
  }
}

.rumblock__facts {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 0;
  padding: 64px var(--gutter) 20px;
  background: linear-gradient(to top, rgba(62, 43, 46, 0.82) 0%, rgba(62, 43, 46, 0) 100%);
  font-family: var(--display);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
}

.rumblock__facts li {
  display: flex;
  align-items: center;
  margin-right: 18px;
}

/* A small gold dot before every fact, so a wrapped line never starts with a stray separator */
.rumblock__facts li::before {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--gold-bright);
}

.rumblock__name {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(48px, 13vw, 76px);
  line-height: 0.88;
  text-transform: uppercase;
}

/* Thin line above a name: the family the product belongs to */
.rumblock__eyebrow {
  margin-bottom: 8px;
  font-family: var(--display);
  font-weight: 500;
  font-size: 20px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent, var(--gold-bright));
}

.rumblock__copy p {
  max-width: 44ch;
}

/* One line in the rum's own voice, in the panel's accent colour */
.rumblock__tagline {
  font-family: var(--display);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.2;
  color: var(--accent, var(--gold-bright));
}

/* The medals, one row each: medal, result, competition */
.rumblock__awards {
  display: grid;
  gap: 10px;
  margin-top: 6px;
}

.rumblock__awards li {
  display: flex;
  align-items: center;
  gap: 12px;
}

.rumblock__awards img {
  width: 44px;
  height: auto;
  flex: none;
  filter: drop-shadow(1px 2px 0 rgba(0, 0, 0, 0.25));
}

.rumblock__awards span {
  display: grid;
  font-family: var(--display);
  line-height: 1.15;
}

.rumblock__awards strong {
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.rumblock__awards span {
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.04em;
}

.rumblock__serve {
  font-size: 15px;
  color: var(--accent, var(--gold-bright));
}

.rumblock__copy .btn {
  margin-top: 8px;
}

/* Kima Kòrá: the sand of the other pages, red type */
.rumblock--sand {
  --ink: var(--red);
  --accent: var(--red);
  background: var(--sand);
  color: var(--black);
}

.rumblock--sand .rumblock__name,
.rumblock--sand .rumblock__batch strong {
  color: var(--red);
}

.rumblock--sand .rumblock__batch {
  border-top-color: rgba(62, 43, 46, 0.3);
}

/* The current batch or edition, as a stamped line under the text */
.rumblock__batch {
  display: grid;
  gap: 2px;
  padding-top: 10px;
  border-top: 1.5px solid rgba(255, 255, 255, 0.4);
  font-family: var(--display);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.rumblock__batch strong {
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.18em;
  color: var(--accent, var(--gold-bright));
}

/* Each classic gets its own panel colour: red, gold, black */
.rumblock--gold {
  --ink: var(--black);
  --accent: var(--red);
  background: #d8a312; /* a few shades lighter than the brand gold */
  color: var(--white);
}

.rumblock--gold .rumblock__name {
  color: var(--red);
}

.rumblock--black {
  background: #151112; /* true black, warmed a touch towards the brand black */
}

.rumblock--black .rumblock__name {
  color: var(--gold-bright);
}

/* ---------- 3. The flavours: line-up swiping over the rocks photo (same as the homepage) ---------- */
.intro.torn {
  z-index: 2; /* its torn edge lies over the photo block that follows */
}

.flavours {
  --ink: var(--white);
  position: relative;
  z-index: 1;
  margin-bottom: -30px; /* the next block slides under the tear */
  padding: 84px 0 96px;
  -webkit-mask: linear-gradient(#000 0 0) top / 100% calc(100% - 29px) no-repeat,
    url("../img/tear-bottom.svg") bottom / 600px 30px repeat-x;
  mask: linear-gradient(#000 0 0) top / 100% calc(100% - 29px) no-repeat,
    url("../img/tear-bottom.svg") bottom / 600px 30px repeat-x;
  color: var(--white);
  background: var(--red); /* ground while the photo loads */
  isolation: isolate;
  overflow: hidden;
}

.flavours__bg,
.flavours__bg img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 30% 100%; /* bottom of the photo: the bottles stand on the sand, the palms stay behind the heading */
}

.flavours::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to bottom, rgba(62, 43, 46, 0.32) 0%, rgba(62, 43, 46, 0) 40%, rgba(62, 43, 46, 0.1) 100%);
}

.flavours__head {
  display: grid;
  gap: 4px;
  text-shadow: 0 1px 10px rgba(62, 43, 46, 0.55);
}

.flavours__head .sub {
  margin-bottom: 0;
  max-width: 30ch;
}

.row--lineup {
  --item: 52vw;
  gap: 6px;
  padding-top: 24px;
  padding-bottom: 0;
}

.row--lineup > li:not(.is-active) {
  transform: scale(0.8) translateY(8%);
  opacity: 0.7;
}

.bottle {
  display: grid;
  justify-items: center;
  gap: 4px;
  padding-bottom: 22px;
  text-decoration: none;
  text-align: center;
  text-shadow: 0 1px 8px rgba(62, 43, 46, 0.5);
}

.bottle img {
  height: 330px;
  width: auto;
  margin-bottom: 10px;
  filter: drop-shadow(6px 8px 0 rgba(62, 43, 46, 0.3));
}

.bottle span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.bottle span::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--cap, var(--gold-light));
  box-shadow: 0 0 0 2px var(--white);
}

.bottle__img {
  display: block;
}

.bottle .btn {
  /* the button in the flavor's own color, white text, a darker tab for the arrow */
  --bg: var(--label, var(--red));
  --tab: color-mix(in srgb, var(--label, var(--red)) 78%, #000);
  --fg: var(--white);
  margin-top: 10px;
  text-shadow: none;
}

.btn--sm {
  min-height: 44px;
  padding: 0 40px 0 12px;
  font-size: 15px;
  line-height: 1.05;
  max-width: 100%;
}

.btn--sm::before {
  right: 12px;
  width: 11px;
}

.btn--sm::after {
  right: 12px;
}

.bottle small {
  font-size: 14px;
}

.arrows--center {
  justify-content: center;
  margin-top: 8px;
}

@media (min-width: 768px) {
  .row--lineup {
    --item: 230px;
  }
}

@media (min-width: 900px) {
  .flavours {
    padding: 120px 0 72px;
  }
}

/* ---------- 4. Taste them all at the RumLocker ---------- */
.taste {
  --ink: var(--red);
  padding-block: 104px 96px;
  background: var(--sand);
  color: var(--black);
}

.taste__inner {
  display: grid;
  justify-items: center;
  text-align: center;
}

.taste__inner .sub {
  margin: 14px 0 28px;
}

.taste__cta {
  display: grid;
  gap: 14px;
  width: 100%;
  max-width: 340px;
}

@media (min-width: 600px) {
  .taste__cta {
    grid-template-columns: auto auto;
    justify-content: center;
    max-width: none;
  }
}

/* ---------- No torn edge above the footer on this page ---------- */
/* The last section before the footer: a torn top only, no tear against the footer */
main > .torn:last-child {
  margin-bottom: 0;
  -webkit-mask: url("../img/tear-top.svg") top / 600px 30px repeat-x,
    linear-gradient(#000 0 0) bottom / 100% calc(100% - 29px) no-repeat;
  mask: url("../img/tear-top.svg") top / 600px 30px repeat-x,
    linear-gradient(#000 0 0) bottom / 100% calc(100% - 29px) no-repeat;
}

.foot.torn {
  margin-block: 0;
  -webkit-mask: none;
  mask: none;
}

/* A line without a medal (a finalist place) lines up with the ones that have one */
.rumblock__awards .no-medal {
  padding-left: 56px;
}

/* ---------- Hero title bigger; the classics text closer to the photo ---------- */
.rhero .big {
  font-size: clamp(64px, 21vw, 130px);
}

.rhero .big span {
  display: inline;
}

#the-classics {
  padding-top: 44px;
}

@media (min-width: 900px) {
  .rhero__copy {
    width: auto;
  }
  .rhero .big {
    font-size: clamp(90px, 10.6vw, 175px);
  }
  .rhero .big span {
    display: block;
  }
  #the-classics {
    padding-top: 64px;
  }
}


/* ---------- Bigger hero: the whole photo. A phone: tall, the title on the sea above the bottles. A computer: a full screen. ---------- */
.rhero__bg {
  aspect-ratio: 2 / 3;
}

.rhero__copy {
  top: 24px;
  bottom: auto;
  padding-block: 0;
}

@media (min-width: 768px) {
  .rhero__bg {
    aspect-ratio: auto;
    height: calc(100svh - var(--header-h, 64px));
    min-height: 560px;
  }
  .rhero__copy {
    top: auto;
    bottom: 0;
    padding-block: 0 40px;
  }
}

@media (min-width: 900px) {
  .rhero__copy {
    padding: 0 0 2.6vw;
  }
}


/* The photo blocks: taller on a computer, so the photos are not zoomed in */
@media (min-width: 768px) {
  .rumblock__photo {
    min-height: 0;
    aspect-ratio: 10 / 11;
    height: auto;
  }
}

/* "Our rums" in the hero: both words solid white */
.rhero .big .hollow {
  color: var(--white);
  -webkit-text-stroke: 0;
}


/* Square photos in the blocks: less zoomed in, on a phone and on a computer */
.rumblock__bg {
  aspect-ratio: 1 / 1;
}

@media (min-width: 768px) {
  .rumblock__photo {
    aspect-ratio: auto;
    min-height: 0;
    height: 100%;
  }
  .rumblock {
    align-items: stretch;
  }
  .rumblock__bg img {
    object-position: 50% 50%;
  }
}


/* The photo of each block is a square on a computer too, so it shows the whole picture */
@media (min-width: 768px) {
  .rumblock__photo {
    aspect-ratio: 1 / 1;
    height: auto;
  }
  .rumblock {
    align-items: center;
  }
}


/* Aged: the wide rocks photo, centred on the bottle */
#aged-rum .rumblock__bg img {
  object-position: 62% 50%;
}


/* ---------- Computer: the text fills its panel, larger type beside the photos ---------- */
@media (min-width: 900px) {
  .rumblock__copy {
    max-width: 660px;
    gap: 16px;
    padding-block: 88px;
  }
  .rumblock__copy p {
    max-width: 50ch;
    font-size: 22px;
    line-height: 1.5;
  }
  .rumblock__name {
    font-size: clamp(72px, 7.4vw, 118px);
  }
  .rumblock__eyebrow {
    font-size: 24px;
  }
  .rumblock__tagline {
    font-size: 32px;
  }
  .rumblock__awards {
    gap: 14px;
  }
  .rumblock__awards img {
    width: 58px;
  }
  .rumblock__awards strong {
    font-size: 25px;
  }
  .rumblock__awards span {
    font-size: 17px;
  }
  .rumblock__awards .no-medal {
    padding-left: 70px;
  }
  .rumblock__batch {
    font-size: 20px;
  }
  .rumblock__batch strong {
    font-size: 16px;
  }
  .rumblock__serve {
    font-size: 19px;
  }
  .rumblock__copy .btn {
    margin-top: 12px;
  }
}


/* ---------- Computer: the photo always fills its whole half of the block ----------
   At least a square (the photo column is 1.1 of 2.1 parts of the width); when the text beside it
   is taller, the photo grows with it, so no strip of background shows above or below. */
@media (min-width: 768px) {
  .rumblock {
    align-items: stretch;
  }
  .rumblock__photo {
    aspect-ratio: auto;
    height: auto;
    min-height: calc(100vw * 1.1 / 2.1);
  }
  .rumblock__bg {
    aspect-ratio: auto;
  }
}
