/* Shared event page layout — Weddings, Corporate, Celebrations */

.ev-intro {
  padding-block: clamp(5rem, 9vw, 9rem);
  background: var(--bg);
}
.ev-intro .grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.ev-intro .text { grid-column: 1 / 7; }
.ev-intro .visual { grid-column: 8 / 13; }
@media (max-width: 880px) {
  .ev-intro .text, .ev-intro .visual { grid-column: 1 / -1; }
}
.ev-intro h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.6rem);
  line-height: 1;
  font-weight: 320;
  letter-spacing: -0.02em;
  font-variation-settings: 'opsz' 144, 'SOFT' 60, 'WONK' 1;
  max-width: 14ch;
}
.ev-intro h2 em { font-style: italic; color: var(--c-azul); }
.ev-intro p { margin-top: var(--s-5); max-width: 42ch; color: var(--fg-soft); font-size: 1.05rem; line-height: 1.6; }
.ev-intro p + p { margin-top: var(--s-3); }
.ev-intro .visual .plate { aspect-ratio: 4/5; }

.ev-spec {
  background: var(--bg-lift);
  padding-block: clamp(5rem, 9vw, 9rem);
  border-block: 1px solid var(--line);
}
.ev-spec .grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 3vw, 3rem);
}
@media (max-width: 720px) { .ev-spec .grid { grid-template-columns: 1fr 1fr; } }
.ev-spec .item {
  border-top: 1px solid var(--line);
  padding-top: var(--s-4);
}
.ev-spec .item dt {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-mute);
  font-weight: 500;
  margin-bottom: var(--s-2);
}
.ev-spec .item dd {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 350;
  line-height: 1.05;
  font-variation-settings: 'opsz' 96, 'SOFT' 50, 'WONK' 1;
}
.ev-spec .item dd em { font-style: italic; color: var(--c-clay); }
.ev-spec .item p { margin-top: var(--s-3); color: var(--fg-soft); font-size: 0.92rem; max-width: 22ch; }

.ev-packages {
  background: var(--bg);
  padding-block: clamp(6rem, 10vw, 9rem);
}
.ev-packages .heading {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: var(--s-5);
  margin-bottom: var(--s-7);
}
.ev-packages h2 {
  font-family: var(--font-display);
  font-size: var(--t-h2);
  font-weight: 320;
  line-height: 1;
  font-variation-settings: 'opsz' 96, 'SOFT' 50;
  max-width: 18ch;
}
.ev-packages h2 em { font-style: italic; color: var(--c-azul); }

/* The tile row is a carousel at every width now (Thomas, 2026-08-07): one line,
   arrows to page through it. That replaces the old grid — auto-fit tracks plus
   :has(:nth-child(4)) and :has(:nth-child(5)) overrides plus an 880px flex
   fallback — because the count differs per page (4 on corporate, 5 on weddings
   and celebrations) and every count needed its own rule. A single scrolling
   track has no such cases.

   Layout comes from .carousel__track in components.css; this only sets the card
   width and the room the "Most chosen" badge needs. */
.ev-packages .carousel {
  /* Breaks out of .wrap so the tiles use more than the 86rem text container
     (Thomas, 2026-08-07) — but capped at --band-max, because the track is an
     overflow container and padding does not clip it: at 100vw on a 3008px
     display the heading ended at 2145 while the cards ran to 2977. The width
     has to shrink, not the padding grow.

     The inset is derived from that width, so the first card lands under the
     section heading and the last stops level with its right edge at every
     viewport. Verified at 1440 and 3008. */
  --carousel-min: 19rem;
  --carousel-width: min(100vw, var(--band-max));
  /* Just the gutter, not an inset derived from --col-max. That inset aligned
     the first card under the section heading, but it also took 496px out of the
     row on an ultrawide — which left no free space for the cards to grow into,
     so they never filled the width however wide the display got. The row is
     wider than the heading above it now, which is the ordinary editorial shape
     for a card band under a text heading, and it is what lets every card fit. */
  --carousel-inset: var(--gutter);
  width: var(--carousel-width);
  margin-inline: calc(50% - var(--carousel-width) / 2);
}
/* Flush to the tile row's own edges rather than inset from them. The row is
   clipped at the carousel box, so the box edge is the tile edge on both sides —
   offsetting by --carousel-inset only lined the left one up and left the right
   arrow floating 226px inside the visible tiles. */
.ev-packages .carousel__nav--prev { left: 0; }
.ev-packages .carousel__nav--next { right: 0; }
.ev-packages .carousel__track {
  /* The badge is positioned at top:-10px and the track is an overflow
     container, so without room above it the badge is clipped off. */
  padding-block: 14px 4px;
  align-items: stretch;
  /* proximity, not mandatory. A mandatory snap resolves the moment a
     programmatic scrollBy starts and lands the row on the next snap point in
     one frame — the arrows teleported rather than scrolled. proximity lets the
     smooth scroll play out and only tidies up the resting position. */
  scroll-snap-type: x proximity;
}
@media (max-width: 900px) {
  .ev-packages .carousel {
    --carousel-min: 82%;
    --carousel-inset: var(--gutter);
  }
}

.pkg {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: var(--bg-lift);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  position: relative;
  transition: border-color var(--d-base) ease, transform var(--d-base) var(--ease-out-expo);
}
.pkg:hover { transform: translateY(-3px); border-color: color-mix(in oklch, var(--c-saffron) 50%, transparent); }
.pkg--feature {
  background: var(--c-ink);
  color: var(--c-bone);
  border-color: var(--c-ink);
}
.pkg--feature .pkg-name { color: var(--c-saffron); }
.pkg--feature .pkg-price-num { color: var(--c-bone); }
.pkg--feature .pkg-list li { border-top-color: var(--line-on-deep); }
.pkg--feature .pkg-list li::before { color: var(--c-saffron); }
.pkg--feature .pkg-foot { color: color-mix(in oklch, var(--c-bone) 70%, transparent); }

/* On .pkg, not .pkg--feature. The canapé tile carries "Most chosen" and became
   a light card on 2026-08-13, which left its badge with no rules at all.
   --c-on-saffron rather than a hardcoded --c-ink: .pkg--feature is in the
   dark-section list in tokens.css, so inside it --c-saffron is cream and
   --c-on-saffron is ink, while on a light card they are navy and cream. The
   pair inverts together, so one rule is correct on both. */
.pkg .badge {
  position: absolute;
  top: -10px; left: 50%;
  transform: translateX(-50%);
  background: var(--c-saffron);
  color: var(--c-on-saffron);
  padding: 0.3em 0.85em;
  border-radius: var(--r-pill);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* The signature tier — Ashton asked for the Luxury Wedding Menu to lead the row
   with "the strongest visual priority" (2026-08-13). It gets that three ways:
   first in the track, the only navy card on a row of light ones, and half a
   card wider. The extra basis is what stops "strongest" resting on colour
   alone, since the row scrolls and colour is only persuasive once you see the
   others beside it. */
.pkg--signature {
  flex: 1.5 0 calc(var(--carousel-min, 19rem) * 1.4);
}
/* Below 900px --carousel-min is a PERCENTAGE (82%), so that 1.4x basis resolved
   to 114.8% — 402px inside a 390px viewport. The card could never be seen
   whole, and being wider than the screen it also killed the peek of the next
   card that tells you the row scrolls. On a phone you see one card at a time
   anyway, so leading and being the only navy card is the whole of its priority.

   This has to sit AFTER the rule above, not in the earlier
   @media (max-width: 900px) block with the other carousel overrides: both
   selectors are one class, so source order decides and the block up there
   silently lost. */
@media (max-width: 900px) {
  .pkg--signature { flex-basis: var(--carousel-min); }
}

.pkg-name {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  font-weight: 380;
  font-variation-settings: 'opsz' 36, 'SOFT' 50, 'WONK' 1;
  color: var(--c-clay);
}
.pkg-price {
  display: flex;
  align-items: baseline;
  gap: 0.4ch;
  margin-top: var(--s-3);
  margin-bottom: var(--s-5);
}
.pkg-price-num {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5vw, 3.8rem);
  font-weight: 320;
  line-height: 1;
  font-variation-settings: 'opsz' 144, 'SOFT' 60, 'WONK' 1;
}
.pkg-price-unit {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-mute);
}

.pkg-list {
  display: grid;
  gap: 0;
}
.pkg-list li {
  position: relative;
  padding: var(--s-3) 0 var(--s-3) 1.6em;
  border-top: 1px solid var(--line);
  font-size: 0.96rem;
}
.pkg-list li:last-child { border-bottom: 1px solid var(--line); }
.pkg-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 1.4em;
  width: 0.8em; height: 1px;
  background: var(--c-clay);
}


/* "And N more" wrap-up line beneath the dish list */
.pkg-list-more {
  margin-top: var(--s-3);
  padding-top: var(--s-3);
  border-top: 1px solid var(--line);
  font-size: 0.83rem;
  font-style: italic;
  color: var(--fg-mute);
  line-height: 1.55;
}
.pkg--feature .pkg-list-more {
  border-top-color: var(--line-on-deep);
  color: color-mix(in oklch, var(--c-bone) 62%, transparent);
}

.pkg-foot {
  margin-top: var(--s-5);
  font-size: 0.84rem;
  color: var(--fg-mute);
}

/* Per-card menu download. Sits last in the card so it lands in the implicit
   grid row beneath the list/foot, and is deliberately quiet — the price and the
   dish list are what the card is selling, this is just the take-away. */
.pkg-dl {
  margin-top: var(--s-5);
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 0.7ch;
  padding: 0.65em 1.15em;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-soft);
  text-decoration: none;
  transition: border-color var(--d-base) var(--ease-out-expo),
              color var(--d-base) var(--ease-out-expo),
              background-color var(--d-base) var(--ease-out-expo);
}
.pkg-dl svg { flex: none; }
.pkg-dl:hover {
  border-color: var(--c-azul);
  color: var(--c-azul);
}
.pkg-dl:focus-visible {
  outline: 2px solid var(--c-azul);
  outline-offset: 3px;
}

.pkg--feature .pkg-dl {
  border-color: var(--line-on-deep);
  color: color-mix(in oklch, var(--c-bone) 78%, transparent);
}
.pkg--feature .pkg-dl:hover {
  border-color: var(--c-saffron);
  color: var(--c-saffron);
}
.pkg--feature .pkg-dl:focus-visible {
  outline-color: var(--c-saffron);
}

.ev-includes {
  background: var(--bg-deep);
  color: var(--fg-on-deep);
  padding-block: clamp(5rem, 9vw, 9rem);
}
.ev-includes .heading { margin-bottom: var(--s-6); }
.ev-includes h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 320;
  line-height: 1;
  font-variation-settings: 'opsz' 96, 'SOFT' 50;
  max-width: 22ch;
}
.ev-includes h2 em { font-style: italic; color: var(--c-saffron); }
.ev-includes .grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
}
@media (max-width: 720px) { .ev-includes .grid { grid-template-columns: 1fr; } }
.ev-includes ul {
  display: grid;
  gap: 0;
}
.ev-includes ul li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--s-4);
  padding-block: var(--s-4);
  border-top: 1px solid var(--line-on-deep);
}
.ev-includes ul li:last-child { border-bottom: 1px solid var(--line-on-deep); }
.ev-includes ul li::before {
  content: '✦';
  color: var(--c-saffron);
  font-size: 0.85em;
  align-self: start;
  margin-top: 0.35em;
}
.ev-includes ul li b {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.15rem;
  font-variation-settings: 'opsz' 36, 'SOFT' 30;
  display: block;
  margin-bottom: 0.35rem;
}
.ev-includes ul li p { color: color-mix(in oklch, var(--c-bone) 75%, transparent); font-size: 0.95rem; }


.ev-enquiry {
  background: var(--bg-lift);
  padding-block: clamp(5rem, 9vw, 9rem);
  border-top: 1px solid var(--line);
}
.ev-enquiry .grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
}
.ev-enquiry .heading { grid-column: 1 / 5; position: sticky; top: var(--s-9); align-self: start; }
.ev-enquiry .form { grid-column: 6 / 13; }
@media (max-width: 880px) {
  .ev-enquiry .heading, .ev-enquiry .form { grid-column: 1 / -1; }
  .ev-enquiry .heading { position: static; }
}
.ev-enquiry h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 320;
  line-height: 1;
  font-variation-settings: 'opsz' 96, 'SOFT' 50;
}
.ev-enquiry h2 em { font-style: italic; color: var(--c-clay); }
.ev-enquiry p { margin-top: var(--s-4); color: var(--fg-soft); max-width: 32ch; }
.ev-enquiry .meta {
  margin-top: var(--s-6);
  padding-top: var(--s-5);
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
}
.ev-enquiry .meta a { color: var(--c-azul); }

form.event-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-4) var(--s-5);
}
form.event-form .field-full { grid-column: 1 / -1; }
form.event-form .submit-row {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: var(--s-4);
  flex-wrap: wrap;
  margin-top: var(--s-3);
}
form.event-form .submit-note {
  font-size: 0.84rem;
  color: var(--fg-mute);
  flex: 1;
  min-width: 16ch;
}
@media (max-width: 720px) {
  form.event-form { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════════════════
   Shared across /weddings, /corporate and /celebrations after the 2026-08-07
   restructure. These started in weddings.css and moved here the moment the
   second page needed them — corporate loads events.css but not weddings.css,
   so the canapé tile rendered unstyled there.
   ═══════════════════════════════════════════════════════════════════════ */

/* ── Packages: three canapé tiers on one tile ────────────────────────── */

/* Sub-line under the "Your day, your way" heading on the navy includes band. */
.ev-includes__lead {
  margin-top: var(--s-4);
  max-width: 46ch;
  color: color-mix(in oklch, var(--c-cream) 76%, transparent);
}

/* "From $69" on the canapé card. The numeral keeps the display size the set
   menus use; only the qualifier is small, so the three cards read as one set. */
.pkg-price-from {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-mute);
  align-self: center;
}
.pkg--feature .pkg-price-from { color: color-mix(in oklch, var(--c-bone) 70%, transparent); }

/* ── Gallery strip ───────────────────────────────────────────────────────
   Started on /weddings; moved here when /celebrations and /corporate took it
   for their client photography (#277). Those two use it without a heading. */
.w-strip {
  background: var(--bg-sky);
  padding-block: clamp(3.5rem, 7vw, 5.5rem);
}
.w-strip__head { margin-bottom: clamp(1.75rem, 3.5vw, 2.75rem); }
.w-strip h2 {
  font-family: var(--font-display);
  font-size: var(--t-h3);
  font-weight: 300;
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-tight);
  margin-top: var(--s-2);
}
.w-strip h2 em { font-style: italic; color: var(--c-azul); }
/* Full width and auto-rotating (Thomas, 2026-08-07). The heading stays inside
   .wrap; the marquee is a direct child of the section, so it already spans the
   viewport — it just needs no inset of its own. Mechanics from .marquee. */
.w-strip__marquee {
  --marquee-item: clamp(13rem, 21vw, 19rem);
  --marquee-gap: clamp(0.5rem, 1.2vw, 0.9rem);
  --marquee-duration: 90s;
  /* Capped like the bands above, so it stops short of the edges on an
     ultrawide rather than running the full 3008px. */
  width: min(100vw, var(--band-max));
  margin-inline: auto;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 3%, #000 97%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 3%, #000 97%, transparent);
}
.w-strip__row img {
  width: 100%;
  height: clamp(9rem, 15vw, 13rem);
  object-fit: cover;
  display: block;
}
