/*
 * Landing page (/black-friday/ only; docs/modules/landing.md). Loaded after brand.css; every rule is scoped to
 * <body class="nk-landing">, so no other page changes.
 *
 * 1. Mode visibility (no flash): <main data-landing-mode="waitlist|sale|hold|ended"
 *    data-landing-storefront="open|closed" data-landing-waitlist="on|off" data-landing-hold="opening|paused">,
 *    written by the server (src/lib/landing/inject.ts) and kept up to date by the page script.
 * 2. Fidelity with the WordPress page (F2–F6 of docs/design/10-landing.md §3.5.8): hero, headings and spacing,
 *    header size, rates block, Deal Yard.
 * 3. Landing chrome (header .nk-lh, footer .nk-lf), the waiting-list places and the hold copy.
 *
 * campaign-fonts.css supplies the same two web fonts used by the Collection campaign.
 */

/* ------------------------------------------------------------------ 1. mode visibility */
.nk-landing [data-landing-mode="waitlist"] [data-mode-show]:not([data-mode-show~="waitlist"]),
.nk-landing [data-landing-mode="hold"] [data-mode-show]:not([data-mode-show~="hold"]),
.nk-landing [data-landing-mode="sale"] [data-mode-show]:not([data-mode-show~="sale"]),
.nk-landing [data-landing-mode="ended"] [data-mode-show]:not([data-mode-show~="ended"]) { display: none !important; }
/* Join controls only in waitlist mode, and only while the waiting list is on (review V56, V71). */
.nk-landing main:not([data-landing-mode="waitlist"]) [data-wl-slot],
.nk-landing [data-landing-waitlist="off"] [data-wl-slot],
.nk-landing [data-landing-waitlist="off"] .nk-hero__signup,
.nk-landing [data-landing-waitlist="off"] #join,
.nk-landing [data-landing-waitlist="off"] a[href="#join"] { display: none !important; }
/* Storefront closed: no cart and nothing that links to a gated page (review V65). */
.nk-landing [data-landing-storefront="closed"] [data-nk-cart-open],
.nk-landing [data-landing-storefront="closed"] [data-storefront-only] { display: none !important; }
/* Hold copy per public reason. */
.nk-landing main:not([data-landing-hold="paused"]) [data-hold-show="paused"],
.nk-landing main[data-landing-hold="paused"] [data-hold-show="opening"] { display: none !important; }

/* Alias anchors of the WordPress page (#bf-how, #bf-choose …): zero-height targets with the sticky sub-nav margin. */
.nk-landing span[data-anchor] { display: block; height: 0; overflow: hidden; }
.nk-landing section[id], .nk-landing [data-anchor] { scroll-margin-top: 72px; }

/* ------------------------------------------------------------------ 2. fidelity (WordPress values) */
.nk-landing {
  --nk-font: "NK Century", "Century Gothic", Arial, sans-serif;
  --nk-font-script: "NK Bergell", cursive;
}
.nk-landing main { font-size: 16px; }
/* Headings without an own rule: line-height 1.2 as on WordPress (zero specificity: own rules still win). */
:where(.nk-landing main) :where(h2, h3, h4) { line-height: 1.2; }

/* F2 hero */
.nk-landing .nk-hero__copy { padding: 50px 9% 54px 12%; }
.nk-landing .nk-discount__num { font-size: clamp(140px, 17vw, 260px); }
.nk-landing .nk-hero h1 { max-width: 490px; letter-spacing: -.035em; }
.nk-landing .nk-hero__ctas { width: 100%; align-items: flex-start; }
.nk-hero__signup summary { min-height: 52px; font-family: var(--nk-font); font-weight: 400; font-size: 12px; letter-spacing: .08em; }
.nk-hero__signup summary::-webkit-details-marker { display: none; }
.nk-hero__signup[open] { width: 100%; }
.nk-hero__signup[open] summary .nk-icon { transform: rotate(180deg); }
.nk-wl-fallback { margin-top: 16px; font-size: 14px; }
.nk-wl--hero:has(.nk-waitlist) .nk-wl-fallback { display: none; }
.nk-wl-fallback a { overflow-wrap: anywhere; }
.nk-landing .nk-script { font-size: clamp(52px, 6vw, 88px); line-height: 1.15; }

/* F3 headings and spacing */
.nk-landing .nk-h2 { font-size: clamp(32px, 4vw, 48px); line-height: 1.2; letter-spacing: 0; }
.nk-landing .nk-section { padding-block: 70px; }
.nk-landing .nk-escapes-intro { padding-top: 100px; }
.nk-landing .nk-rate-title { line-height: 1.2; }
.nk-landing .nk-yard h3 { line-height: 1.2; }

/* F5 rates block */
.nk-landing .nk-filter__copy strong { font-family: Georgia, "Times New Roman", serif; }
.nk-landing .nk-filter__controls { grid-auto-columns: minmax(180px, 290px); }
.nk-landing .nk-filter .nk-select { min-width: min(290px, 100%); min-height: 52px; font-size: 16px; }
.nk-landing .nk-deal__title { font-size: 27px; line-height: 1.18; letter-spacing: 0; }
.nk-landing .nk-deal__price { font-size: clamp(25px, 2.4vw, 38px); }
.nk-landing .nk-deal__room { min-height: 46px; }
.nk-landing .nk-deal__cta { min-height: 48px; }
.nk-landing .nk-deal__cta[aria-disabled="true"], .nk-landing .nk-deal__cta:disabled { opacity: .65; }

/* F6 Deal Yard */
.nk-landing .nk-yard a { text-decoration: none; }
.nk-landing .nk-yard a:hover, .nk-landing .nk-yard a:focus-visible { text-decoration: underline; }

@media (min-width: 1600px) {
  .nk-landing .nk-hero { min-height: 800px; }
  .nk-landing .nk-hero__copy { padding-left: max(12%, calc((100vw - 1320px) / 2)); }
}
@media (max-width: 900px) {
  .nk-landing .nk-hero { min-height: 650px; }
  .nk-landing .nk-hero__copy { padding: 38px 8%; }
  .nk-landing .nk-discount__num { font-size: 21vw; }
}
@media (max-width: 640px) {
  .nk-landing .nk-hero__copy { padding: 32px 7% 36px; }
  .nk-landing .nk-discount__num { font-size: clamp(155px, 47vw, 260px); }
  .nk-landing .nk-hero h1 { font-size: 36px; max-width: 390px; }
  .nk-landing .nk-script { font-size: 64px; }
  .nk-landing .nk-section { padding-block: 48px; }
  .nk-landing .nk-escapes-intro { padding-top: 58px; }
  .nk-landing .nk-escapes-intro h2 { font-size: 37px; }
  .nk-landing .nk-escape__photo { height: 360px; }
  .nk-landing .nk-escape h3 { font-size: 29px; }
  .nk-landing .nk-rates .nk-wrap { padding-inline: max(16px, 4%); }
  .nk-landing .nk-deal__top { min-height: 205px; }
  .nk-landing .nk-deal__title { font-size: 25px; }
  .nk-landing .nk-deal__price { font-size: 25px; }
  .nk-landing .nk-yard__sep { display: none; }
  .nk-landing .nk-yard__contact a[href^="mailto:"] { display: block; }
}

/* ------------------------------------------------------------------ 3a. landing header (F4) */
.nk-landing { --nk-header-h: 119px; }
.nk-landing [data-nk-header] { min-height: var(--nk-header-h); background: var(--nk-navy); }
.nk-lh { position: relative; z-index: 60; background: var(--nk-navy); color: #fff; }
.nk-lh__bar { display: flex; align-items: center; gap: 20px; min-height: var(--nk-header-h); width: min(1320px, 100%); margin-inline: auto; padding-inline: max(16px, 3%); }
.nk-lh__logo { display: block; flex: 0 0 auto; margin-right: auto; }
.nk-lh__logo img { width: 230px; height: auto; }
.nk-lh__nav { display: flex; align-items: center; flex-wrap: nowrap; }
.nk-lh__nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 15px; font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; font-size: 14px; letter-spacing: 0; text-transform: uppercase; text-decoration: none; color: #fff; white-space: nowrap; }
.nk-lh__nav a:hover, .nk-lh__nav a:focus-visible { color: #b3a491; }
.nk-lh__nav a[aria-current="page"] { color: #b3a491; }
.nk-lh__tools { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.nk-lh__tool { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 6px; color: #fff; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; }
.nk-lh__tool:hover { color: #b3a491; }
.nk-lh__join { border-color: var(--nk-sand); background: var(--nk-sand); }
.nk-lh__join:hover { border-color: #e6d8c2; background: #e6d8c2; }
.nk-lh__menubtn { display: none; width: 44px; height: 44px; place-items: center; padding: 0; border: 0; background: rgba(255, 255, 255, .08); color: #fff; cursor: pointer; }
.nk-lh__menubtn .nk-icon { width: 24px; height: 24px; }
@media (max-width: 1360px) {
  .nk-lh__nav a { padding-inline: 9px; font-size: 13px; }
}
/* Below this width the eight WordPress items do not fit beside the logo and the tools: the menu button takes over. */
@media (max-width: 1180px) {
  .nk-lh__bar { gap: 10px; }
  .nk-lh__menubtn { display: inline-grid; order: 3; }
  .nk-lh__tools { order: 2; }
  .nk-lh__nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; padding: 6px 0 12px; background: #fff; box-shadow: 0 18px 30px rgba(0, 0, 0, .25); }
  .nk-lh.is-open .nk-lh__nav { display: flex; }
  .nk-lh__nav a { min-height: 48px; padding: 8px max(16px, 3%); font-size: 15px; color: var(--nk-ink); text-transform: none; border-bottom: 1px solid var(--nk-paper-2); }
  .nk-lh__nav a:hover, .nk-lh__nav a:focus-visible { color: var(--nk-navy); background: var(--nk-paper); }
  .nk-lh__nav a[aria-current="page"] { color: #fff; background: #555; }
}
@media (max-width: 980px) {
  .nk-landing { --nk-header-h: 108px; }
  .nk-lh__logo img { width: 200px; }
}
/* Allow the logo to shrink only when the campaign tools need the space. */
@media (max-width: 640px) {
  .nk-lh__logo { flex-shrink: 1; min-width: 0; }
  .nk-lh__tool span, .nk-lh__tools .nk-cartbtn__label { display: none; }
  .nk-lh__join { padding-inline: 10px; gap: 8px; font-size: 10px; }
}

/* ------------------------------------------------------------------ 3b. landing footer */
.nk-lf { padding: 64px 0 40px; background: var(--nk-ink); color: #fff; text-align: center; }
.nk-lf__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.nk-lf h2 { margin-bottom: 22px; font-family: Roboto, system-ui, -apple-system, "Segoe UI", Arial, sans-serif; font-size: 18px; font-weight: 600; line-height: 1.3; letter-spacing: .02em; text-transform: uppercase; }
.nk-lf ul { margin: 0; padding: 0; list-style: none; }
.nk-lf li a { display: inline-flex; align-items: center; min-height: 40px; padding: 4px 0; font-family: Roboto, system-ui, -apple-system, "Segoe UI", Arial, sans-serif; font-size: 14px; font-weight: 300; color: #f2eee7; text-decoration: none; }
.nk-lf a:hover, .nk-lf a:focus-visible { color: var(--nk-gold); }
.nk-lf address { font-style: normal; font-size: 14px; line-height: 1.6; color: #f2eee7; }
.nk-lf address p + p { margin-top: 12px; }
.nk-lf address a { color: inherit; text-decoration: none; }
.nk-lf__message { display: inline-flex; align-items: center; min-height: 44px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; border-bottom: 1px solid currentColor; }
.nk-lf__shop { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 28px; margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(242, 238, 231, .2); }
.nk-lf__shop a { display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; color: #f2eee7; text-decoration: none; }
.nk-lf__logo { width: 400px; max-width: 80%; height: auto; margin: 56px auto 28px; }
.nk-lf__legal { font-size: 13px; color: var(--nk-on-ink-muted); }
@media (max-width: 900px) {
  .nk-lf__cols { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------------ 3c. waiting-list places, notify, hold */
.nk-wl--hero { width: 100%; max-width: 460px; margin: 0 0 26px; }
.nk-wl--hero > .nk-eyebrow { color: var(--nk-sand); }
.nk-wl-panel { margin: 34px 0 10px; padding: 34px 36px; background: var(--nk-paper); border: 1px solid var(--nk-line); }
.nk-wl-panel:focus { outline: none; }
.nk-wl-panel h3 { margin: 12px 0 10px; font-size: clamp(26px, 3vw, 34px); font-weight: 400; line-height: 1.2; }
.nk-wl-panel .nk-lead { margin-bottom: 18px; }
.nk-wl-panel [tabindex="-1"]:focus { outline: none; }
.nk-wl-noscript { font-size: 14px; color: var(--nk-muted); }
.nk-hero__hold { max-width: 460px; margin: 0 0 26px; padding: 16px 18px; border-left: 3px solid var(--nk-sand); background: rgba(242, 238, 231, .06); font-size: 15px; color: #e2dcd4; }
.nk-hero__hold a { color: var(--nk-gold-soft); text-underline-offset: 3px; }
.nk-hero__contact { display: block; margin-top: 8px; font-size: 13px; color: var(--nk-on-ink-muted); }
.nk-hero__local { margin-top: 6px; font-size: 12px; letter-spacing: .04em; color: var(--nk-on-ink-muted); }
.nk-subnav__cart .nk-btn--sm { min-height: 44px; }
.nk-deal__cta--marked { background: var(--nk-navy); border-color: var(--nk-navy); color: #fff; }
.nk-deal__cta--marked:hover { background: var(--nk-navy-2); border-color: var(--nk-navy-2); }
.nk-save__ended a { color: var(--nk-gold-soft); text-underline-offset: 3px; }
@media (max-width: 640px) {
  .nk-wl-panel { padding: 24px 18px; }
  .nk-subnav__cart .nk-btn--sm { padding-inline: 10px; gap: 8px; font-size: 10px; }
}
