/* Meadow Events site styles. Colours and fonts come from brand/tokens.css; don't add others here.
   Layout: header, footer and the inquiry band are shared blocks kept in sync by scripts/sync-layout.mjs. */

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 104px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--me-fog);
  color: var(--me-coal);
  font-family: var(--me-font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, video, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
address { font-style: normal; }
a { color: var(--me-sea); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--me-coal); }
:focus-visible { outline: 2px solid var(--me-sea); outline-offset: 3px; }
.on-dark :focus-visible { outline-color: var(--me-fog); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 100; padding: 12px 20px; border-radius: var(--me-radius-pill); background: var(--me-sea); color: var(--me-fog); font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 12px; color: var(--me-fog); }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: clamp(20px, 3vw, 40px); }
.wrap--wide { max-width: 1320px; }
.wrap--narrow { max-width: 860px; }
.section { padding-block: clamp(72px, 9vw, 128px); }
.section--tight { padding-block: clamp(56px, 7vw, 96px); }
.section--flush-top { padding-top: 0; }
.bg-mist { background: var(--me-mist); }
.bg-coal { background: var(--me-coal); color: var(--me-fog); }
.bg-sea { background: var(--me-sea); color: var(--me-fog); }
.stack { display: flex; flex-direction: column; gap: 20px; }
.stack--tight { gap: 14px; }
.split { display: flex; flex-wrap: wrap; gap: clamp(40px, 6vw, 96px); align-items: center; }
.split > * { flex: 1 1 420px; min-width: 0; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: clamp(40px, 5vw, 56px); }
.section-head > .stack { max-width: 680px; }
.center { text-align: center; align-items: center; margin-inline: auto; }

/* ---------- Type ---------- */
.eyebrow { font-size: 0.8125rem; font-weight: 600; letter-spacing: var(--me-track-label); text-transform: uppercase; color: var(--me-sea); }
.bg-sea .eyebrow, .hero .eyebrow { color: var(--me-mist); }
.bg-coal .eyebrow { color: var(--me-poppy); }
.display { font-family: var(--me-font-display); font-weight: 360; font-size: clamp(3.25rem, 6.6vw, 6rem); line-height: 1; letter-spacing: var(--me-track-display); }
.page-title { font-family: var(--me-font-display); font-weight: 360; font-size: clamp(2.75rem, 5.6vw, 5rem); line-height: 1.02; letter-spacing: var(--me-track-display); }
.headline { font-family: var(--me-font-display); font-weight: 380; font-size: clamp(2.125rem, 3.8vw, 3.25rem); line-height: 1.1; letter-spacing: -0.015em; }
.headline--sm { font-size: clamp(1.75rem, 3vw, 2.5rem); line-height: 1.12; letter-spacing: -0.01em; }
.subhead { font-family: var(--me-font-display); font-weight: 440; font-size: 1.625rem; line-height: 1.2; }
.lede { font-size: 1.1875rem; line-height: 1.55; max-width: 44ch; }
.body-lg { font-size: 1.125rem; line-height: 1.7; max-width: 46ch; }
.muted { color: var(--me-coal-80); }
.bg-sea .muted, .bg-coal .muted { color: var(--me-mist); }
.num { font-variant-numeric: tabular-nums; }

/* ---------- Buttons and links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 26px; border: 0; border-radius: var(--me-radius-pill);
  font: inherit; font-size: 0.8125rem; font-weight: 600; letter-spacing: var(--me-track-button); text-transform: uppercase;
  text-decoration: none; text-align: center; cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}
.btn--sea { background: var(--me-sea); color: var(--me-fog); }
.btn--sea:hover { background: var(--me-coal); color: var(--me-fog); }
.btn--fog { background: var(--me-fog); color: var(--me-sea); }
.btn--fog:hover { background: var(--me-mist); color: var(--me-coal); }
.btn--outline { background: transparent; color: var(--me-sea); box-shadow: inset 0 0 0 1.5px var(--me-sea); }
.btn--outline:hover { background: var(--me-sea); color: var(--me-fog); }
.btn--outline-light { background: transparent; color: var(--me-fog); box-shadow: inset 0 0 0 1.5px var(--me-fog); }
.btn--outline-light:hover { background: var(--me-fog); color: var(--me-sea); }
.btn--sm { min-height: 44px; padding: 0 22px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.text-link { align-self: flex-start; font-size: 0.9375rem; font-weight: 600; color: var(--me-sea); text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1.5px; }
.text-link:hover { color: var(--me-coal); }
.on-dark .text-link { color: var(--me-fog); }
.on-dark .text-link:hover { color: var(--me-mist); }
.center .text-link { align-self: center; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--me-fog); transition: box-shadow 0.2s ease; }
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--me-rule); }
.site-header__bar { display: flex; align-items: center; gap: 24px; min-height: 88px; }
.site-header__logo { display: flex; flex: none; }
.site-header__logo img { height: 40px; width: auto; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 28px; }
.site-nav ul { display: flex; gap: 28px; list-style: none; padding: 0; }
.site-nav a { color: var(--me-coal); text-decoration: none; font-size: 0.9375rem; font-weight: 500; white-space: nowrap; }
.site-nav ul a { padding-block: 6px; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat; transition: background-size 0.2s ease; }
.site-nav ul a:hover, .site-nav ul a[aria-current="page"] { background-size: 100% 1.5px; color: var(--me-coal); }
.site-nav__tel { font-variant-numeric: tabular-nums; }
.site-nav__cta { display: none; }
.nav-toggle { display: none; flex: none; width: 44px; height: 44px; margin-right: -8px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--me-coal); cursor: pointer; }
.nav-toggle svg { margin: auto; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 960px) {
  .site-header__bar { gap: 12px; min-height: 72px; }
  .site-header__logo img { height: 30px; }
  .site-header__cta { order: 1; margin-left: auto; min-height: 44px; padding: 0 18px; }
  .nav-toggle { order: 2; display: grid; }
  .site-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px clamp(20px, 3vw, 40px) 28px; background: var(--me-fog); box-shadow: 0 1px 0 var(--me-rule), 0 18px 30px -18px rgba(30, 20, 17, 0.35);
  }
  .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { display: block; padding: 14px 0; border-bottom: 1px solid var(--me-rule); font-family: var(--me-font-display); font-size: 1.625rem; font-weight: 380; background: none; }
  .site-nav ul a[aria-current="page"] { color: var(--me-sea); }
  .site-nav__tel { padding: 20px 0 4px; font-size: 1.0625rem; }
}
@media (max-width: 420px) {
  .site-header__cta { padding: 0 16px; }
  .site-header__cta .cta-long { display: none; }
}
@media (max-width: 374px) {
  .site-header__cta { display: none; }
  .nav-toggle { margin-left: auto; }
  .site-nav__cta { display: inline-flex; margin-top: 16px; }
}

/* ---------- Home hero ---------- */
.hero { padding-inline: clamp(12px, 1.5vw, 20px); }
.hero__frame { position: relative; display: flex; align-items: flex-end; min-height: clamp(540px, 46vw, 680px); border-radius: 16px; overflow: hidden; background: var(--me-coal); color: var(--me-fog); }
.hero__media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(30, 20, 17, 0.78) 0%, rgba(30, 20, 17, 0.44) 46%, rgba(30, 20, 17, 0) 78%); }
.hero__content { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 22px; max-width: 780px; padding: clamp(28px, 4.5vw, 64px); }
.hero__content .lede { color: var(--me-fog); max-width: 34ch; }
.hero__content .btn-row { margin-top: 6px; }
.video-toggle { position: absolute; right: 20px; bottom: 20px; z-index: 2; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: rgba(242, 240, 234, 0.92); color: var(--me-coal); cursor: pointer; }
.video-toggle .icon-play { display: none; }
.video-toggle[data-paused="true"] .icon-play { display: block; }
.video-toggle[data-paused="true"] .icon-pause { display: none; }
@media (max-width: 640px) {
  .hero__frame { min-height: 600px; }
  .hero__frame::after { background: linear-gradient(0deg, rgba(30, 20, 17, 0.84) 0%, rgba(30, 20, 17, 0.5) 55%, rgba(30, 20, 17, 0.1) 100%); }
  .hero__content { padding-bottom: 84px; }
  .hero__content .btn-row .btn { flex: 1 1 100%; }
}

/* ---------- Inner page head ---------- */
.page-head { padding-block: clamp(48px, 7vw, 104px) clamp(40px, 5vw, 72px); }
.page-head .stack { gap: 22px; }
.page-head .page-title { max-width: 18ch; }
.page-head .lede { max-width: 52ch; }
.page-banner { padding-inline: clamp(12px, 1.5vw, 20px); }
.page-banner img { width: 100%; height: clamp(280px, 38vw, 560px); object-fit: cover; border-radius: 16px; }

/* ---------- Photos ---------- */
.photo { width: 100%; object-fit: cover; border-radius: var(--me-radius); }
.photo--5x4 { aspect-ratio: 5 / 4; }
.photo--4x3 { aspect-ratio: 4 / 3; }
.photo--4x5 { aspect-ratio: 4 / 5; }

/* ---------- Services (home) ---------- */
.service-grid { display: flex; flex-wrap: wrap; gap: 44px 32px; }
.service-grid > * { flex: 1 1 230px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.service-grid p { font-size: 1rem; line-height: 1.65; }
.illo { height: 80px; width: auto; align-self: flex-start; }
.illo--sm { height: 64px; }

/* ---------- Services page rows ---------- */
.service-rows { display: flex; flex-direction: column; gap: clamp(64px, 8vw, 112px); }
.service-row { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(32px, 6vw, 88px); }
.service-row > * { flex: 1 1 400px; min-width: 0; }
@media (min-width: 900px) { .service-row:nth-child(even) .service-row__media { order: 2; } }
.service-row__text { display: flex; flex-direction: column; gap: 18px; max-width: 520px; }
.service-row__text p { font-size: 1.0625rem; line-height: 1.7; }

/* ---------- Partner logos ---------- */
.logo-cloud { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 36px 56px; max-width: 1080px; margin-inline: auto; }
.logo-cloud img { max-width: 100%; height: auto; }

/* ---------- Client stories ---------- */
.stories { display: flex; flex-wrap: wrap; gap: 40px 48px; }
.story { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 18px; padding-top: 28px; border-top: 1px solid var(--me-rule); }
.story__mark { font-family: var(--me-font-display); font-size: 4rem; line-height: 0.6; color: var(--me-sourdough); }
.story blockquote { font-family: var(--me-font-display); font-style: italic; font-weight: 380; font-size: 1.5rem; line-height: 1.38; }
.story figcaption { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--me-sea); }

/* ---------- Inquiry (home + contact) ---------- */
.inquiry { display: flex; flex-wrap: wrap; gap: clamp(40px, 5vw, 80px); align-items: flex-start; }
.inquiry__intro { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
@media (min-width: 1000px) { .inquiry__intro { position: sticky; top: 124px; } }
/* On the contact page the form comes first once the columns stack */
@media (max-width: 999px) { .inquiry--form-first .inquiry__form { order: -1; } }
.inquiry__form { flex: 1 1 560px; min-width: 0; padding: clamp(20px, 3vw, 36px); border-radius: 16px; background: #FFFFFF; color: var(--me-coal); }
/* Toast's form is about 1370px tall at desktop widths and 1510px on phones */
.inquiry__form iframe { width: 100%; height: 1400px; border: 0; }
@media (max-width: 520px) { .inquiry__form iframe { height: 1530px; } }
.inquiry__form .form-fallback { margin-top: 16px; font-size: 0.9375rem; color: var(--me-coal-80); }
.bg-sea .inquiry__form a:not(.btn) { color: var(--me-sea); }
.contact-list { display: flex; flex-direction: column; gap: 18px; padding: 0; list-style: none; }
.contact-list .label { display: block; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.bg-sea a:not(.btn), .bg-coal a:not(.btn) { color: var(--me-fog); }
.bg-sea a:not(.btn):hover, .bg-coal a:not(.btn):hover { color: var(--me-mist); }
.steps { display: flex; flex-direction: column; gap: 14px; padding: 0; list-style: none; counter-reset: step; }
.steps li { display: flex; gap: 14px; align-items: baseline; counter-increment: step; }
.steps li::before { content: counter(step); flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px currentColor; font-size: 0.8125rem; font-weight: 600; }

/* ---------- Inquiry band (inner pages) ---------- */
.cta-band__inner { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 32px 56px; }
.cta-band__inner .stack { max-width: 720px; }
.cta-band__actions { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.cta-band__actions p { color: var(--me-mist); font-size: 1rem; }

/* ---------- Venue and vendor cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 48px 32px; }
.card { display: flex; flex-direction: column; gap: 10px; }
.card .photo { margin-bottom: 10px; }
.card address { color: var(--me-coal-80); }

/* ---------- Gallery ---------- */
.gallery { columns: 3 300px; column-gap: 20px; }
.gallery__item { display: block; margin-bottom: 20px; break-inside: avoid; border-radius: var(--me-radius); overflow: hidden; background: var(--me-mist); }
.gallery__item img { width: 100%; transition: transform 0.4s ease; }
.gallery__item:hover img { transform: scale(1.03); }
@media (prefers-reduced-motion: reduce) { .gallery__item img, .gallery__item:hover img { transition: none; transform: none; } }
.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(30, 20, 17, 0.94); color: var(--me-fog); }
.lightbox::backdrop { background: rgba(30, 20, 17, 0.94); }
.lightbox__inner { display: grid; grid-template-rows: 1fr auto; height: 100%; padding: 64px clamp(12px, 6vw, 96px) 24px; }
.lightbox__inner img { align-self: center; justify-self: center; max-width: 100%; max-height: calc(100vh - 160px); border-radius: 8px; object-fit: contain; }
.lightbox__caption { max-width: 70ch; margin: 16px auto 0; text-align: center; font-size: 0.9375rem; color: var(--me-mist); }
.lightbox__btn { position: absolute; display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%; background: rgba(242, 240, 234, 0.92); color: var(--me-coal); cursor: pointer; }
.lightbox__btn:hover { background: var(--me-fog); }
.lightbox__close { top: 12px; right: 12px; }
.lightbox__prev, .lightbox__next { top: 50%; transform: translateY(-50%); }
.lightbox__prev { left: 12px; }
.lightbox__next { right: 12px; }

/* ---------- FAQs ---------- */
.faq-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.faq-aside { max-width: 340px; }
@media (min-width: 901px) { .faq-aside { position: sticky; top: 124px; } }
@media (max-width: 900px) { .faq-layout { grid-template-columns: minmax(0, 1fr); } .faq-aside { order: 2; } }
.faq { border-top: 1px solid var(--me-rule); }
.faq details { border-bottom: 1px solid var(--me-rule); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 26px 0; cursor: pointer; list-style: none; font-family: var(--me-font-display); font-weight: 440; font-size: clamp(1.25rem, 2.2vw, 1.625rem); line-height: 1.25; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 14px; height: 14px; border-right: 1.5px solid var(--me-sea); border-bottom: 1.5px solid var(--me-sea); transform: translateY(-4px) rotate(45deg); transition: transform 0.2s ease; }
.faq details[open] summary::after { transform: translateY(3px) rotate(225deg); }
.faq details > div { padding: 0 0 28px; max-width: 64ch; font-size: 1.0625rem; line-height: 1.7; }

/* ---------- Careers ---------- */
.photo-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.photo-row img:nth-child(odd) { margin-top: 40px; }
@media (max-width: 760px) { .photo-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.jobs { padding: 0; list-style: none; border-top: 1px solid var(--me-rule); }
.job { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; padding: 26px 0; border-bottom: 1px solid var(--me-rule); }
.job__title { flex: 1 1 260px; }
.job__team { flex: 1 1 200px; color: var(--me-coal-80); }

/* ---------- Long text (legal) ---------- */
.prose { max-width: 68ch; font-size: 1.0625rem; line-height: 1.75; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 2em; font-family: var(--me-font-display); font-weight: 440; font-size: 1.5rem; line-height: 1.25; }
.prose .meta { color: var(--me-coal-80); }

/* ---------- Footer ---------- */
.site-footer { padding: 72px 0 36px; background: var(--me-coal); color: var(--me-fog); }
.site-footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; }
.site-footer__brand { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.site-footer__brand img { height: 36px; width: auto; align-self: flex-start; }
.site-footer__brand p { font-size: 0.9375rem; color: var(--me-mist); }
.site-footer__col { flex: 0 1 200px; display: flex; flex-direction: column; gap: 10px; font-size: 0.9375rem; }
.site-footer__label { font-size: 0.75rem; font-weight: 600; letter-spacing: var(--me-track-label); text-transform: uppercase; color: var(--me-poppy); }
.site-footer__col ul { display: flex; flex-direction: column; gap: 10px; padding: 0; list-style: none; }
.site-footer a { color: var(--me-fog); text-decoration: none; }
.site-footer a:hover { color: var(--me-mist); text-decoration: underline; }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--me-rule-light); font-size: 0.8125rem; color: var(--me-mist); }
.site-footer__bottom ul { display: flex; flex-wrap: wrap; gap: 20px; padding: 0; list-style: none; }
.site-footer__bottom a { color: var(--me-mist); text-decoration: underline; }
