/* ─────────────────────────────────────────────────────────────────────────
   Weddings — Ashton's mock-up, 2026-08-07

   The page alternates full-width bands of text against a photo, rather than
   the wrap-and-grid layout the other event pages use. Everything here is
   specific to that shape; the shared .ev-* components (packages, includes,
   spec, enquiry) stay in events.css and are unchanged by this file.

   Band order and background, which must keep alternating:
     .w-hero          navy        --bg-deep
     .w-why           cream       --bg
     .w-band--sky     soft blue   --bg-sky
     .w-band--lift    warm white  --bg-lift
     .w-band--ink     navy        --bg-deep
     .ev-packages     cream       --bg          (events.css)
     .ev-includes     navy        --bg-deep     (events.css)
     .ev-spec         warm white  --bg-lift     (events.css)
     .w-strip         soft blue   --bg-sky       (events.css)
     .ev-enquiry      warm white  --bg-lift     (events.css)

   .w-hero and .w-band--ink are dark, so both are listed in the dark-section
   override in tokens.css. Without that, --c-saffron stays navy and every
   accent on them disappears into the background.
   ───────────────────────────────────────────────────────────────────────── */

/* ── Hero ────────────────────────────────────────────────────────────────
   The aerial sits behind the text now, not beside it — .page-hero--photo in
   components.css does the work (background image, scrim, breadcrumbs, dark
   accents). Everything below is only what this page adds on top of it. */
.w-hero {
  /* Three lines of headline, so not --t-display, which is sized for the one or
     two lines the other page heroes carry. */
  padding-block: clamp(9rem, 20vh, 14rem) clamp(5rem, 11vh, 8rem);
}
.w-hero h1 {
  font-size: clamp(2.2rem, 1.1rem + 3.2vw, 4.25rem);
  line-height: 1.1;
  font-weight: 300;
  max-width: 20ch;
}
.w-hero h1 em {
  font-style: italic;
  font-weight: 280;
  color: var(--c-marina);
}
.w-hero .lead { max-width: 46ch; }
.w-hero .lead + .lead { margin-top: var(--s-4); }
.w-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin-top: var(--s-6);
}
/* Location pin, bottom right of the band, as in the mock. */
.w-hero__pin {
  position: absolute;
  right: clamp(0.75rem, 2vw, 1.5rem);
  bottom: clamp(0.75rem, 2vw, 1.5rem);
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-cream);
  background: color-mix(in oklch, var(--c-navy) 55%, transparent);
  backdrop-filter: blur(6px);
  padding: 0.5em 0.9em;
  border-radius: var(--r-pill);
}
.w-hero__pin::before {
  content: '';
  width: 0.75em;
  height: 0.75em;
  flex: none;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 22s-7-5.2-7-11a7 7 0 1 1 14 0c0 5.8-7 11-7 11Z'/%3E%3C/svg%3E") no-repeat center / contain;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 22s-7-5.2-7-11a7 7 0 1 1 14 0c0 5.8-7 11-7 11Z'/%3E%3C/svg%3E") no-repeat center / contain;
}
@media (max-width: 720px) {
  /* The pin lands on the last line of the lead at this width. */
  .w-hero__pin { display: none; }
}

/* ── Why couples choose Azul — icon list + photo ─────────────────────── */
.w-why {
  background: var(--bg);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
  padding-block: clamp(3.5rem, 7vw, 6rem);
  /* Zero below --band-max, so the bleed is unchanged at ordinary widths; above
     it the band centres its content rather than spreading to both edges of an
     ultrawide. The section background still runs the full width. */
  padding-inline: max(0px, calc((100vw - var(--band-max)) / 2));
}
.w-why__text {
  padding-left: clamp(var(--gutter), calc((100vw - var(--col-max)) / 2 + var(--gutter)), 7rem);
  padding-right: var(--s-2);
}
.w-why h2 {
  font-family: var(--font-display);
  font-size: var(--t-h2);
  font-weight: 300;
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-tight);
  margin-top: var(--s-3);
}
.w-why h2 em { font-style: italic; color: var(--c-azul); }
.w-why__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.25rem, 2.5vw, 2rem) clamp(1.5rem, 3vw, 2.5rem);
  margin-top: clamp(1.75rem, 3.5vw, 2.75rem);
}
.w-why__list li {
  display: flex;
  align-items: flex-start;
  gap: var(--s-3);
}
.w-why__list svg {
  width: 1.5rem;
  height: 1.5rem;
  flex: none;
  margin-top: 0.15rem;
  color: var(--c-azul);
  opacity: 0.75;
}
.w-why__list b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
}
.w-why__list p {
  font-size: 0.875rem;
  line-height: var(--leading-norm);
  color: var(--fg-soft);
}
/* No fixed height and no cover crop: the source is already a 4:5 crop of the
   original, and cropping it again to the band height cut the couple's heads off
   (Thomas, 2026-08-07). Height follows the image's own ratio now. */
.w-why__photo img {
  width: 100%;
  height: auto;
  max-height: 40rem;
  object-fit: contain;
  display: block;
}

@media (max-width: 900px) {
  .w-why { grid-template-columns: 1fr; gap: var(--s-6); }
  .w-why__text { padding-inline: var(--gutter); }
  .w-why__photo img { max-height: 28rem; }
}
@media (max-width: 560px) {
  .w-why__list { grid-template-columns: 1fr; }
}

/* ── Alternating text/photo bands ────────────────────────────────────── */
.w-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
  /* Same ultrawide cap as .w-why above. */
  padding-inline: max(0px, calc((100vw - var(--band-max)) / 2));
}
.w-band__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--s-4);
  padding-block: clamp(3rem, 6vw, 5rem);
  padding-left: clamp(var(--gutter), calc((100vw - var(--col-max)) / 2 + var(--gutter)), 7rem);
  padding-right: var(--s-2);
}
.w-band h2 {
  font-family: var(--font-display);
  font-size: var(--t-h2);
  font-weight: 300;
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-tight);
}
.w-band h2 em { font-style: italic; }
.w-band p { color: var(--fg-soft); max-width: 42ch; }
.w-band__photo img {
  width: 100%;
  height: clamp(20rem, 38vw, 32rem);
  object-fit: cover;
  display: block;
}

.w-band--sky  { background: var(--bg-sky); }
.w-band--lift { background: var(--bg-lift); }
.w-band--ink  { background: var(--bg-deep); color: var(--fg-on-deep); }
/* .eyebrow is --fg-mute (#6D6D6D), and the dark-section override in tokens.css
   deliberately does not touch --fg-mute — it only flips --c-saffron/--c-azul.
   On navy that grey lands at about 2.3:1, so the eyebrow needs stating here.
   Same fix the Sundays band on the homepage already carries. */
.w-hero .eyebrow,
.w-band--ink .eyebrow {
  color: color-mix(in oklch, var(--c-cream) 72%, transparent);
}
.w-band--sky h2 em  { color: var(--c-azul); }
.w-band--lift h2 em { color: var(--c-clay); }
/* On navy, --c-azul has already been flipped to cream by the dark-section
   override, so the italic needs the marina blue explicitly to stay an accent. */
.w-band--ink h2 em { color: var(--c-marina); }
.w-band--ink p { color: color-mix(in oklch, var(--c-cream) 76%, transparent); }

/* Photo leads on the flipped band, so two consecutive bands never stack their
   photos down the same edge. */
.w-band--flip { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.w-band--flip .w-band__text {
  order: 2;
  padding-left: var(--s-2);
  padding-right: clamp(var(--gutter), calc((100vw - var(--col-max)) / 2 + var(--gutter)), 7rem);
}
.w-band--flip .w-band__photo { order: 1; }

@media (max-width: 900px) {
  .w-band,
  .w-band--flip { grid-template-columns: 1fr; gap: 0; }
  .w-band__text,
  .w-band--flip .w-band__text {
    order: 2;
    padding-inline: var(--gutter);
    padding-block: clamp(2.25rem, 7vw, 3rem);
  }
  .w-band__photo,
  .w-band--flip .w-band__photo { order: 1; }
  .w-band__photo img { height: clamp(14rem, 52vw, 20rem); }
}
