/* R32: the subpage template (pages plan §2, "Rules every subpage follows"). Loaded after style.css and fonts.css
   by every page except the home page; scoped to <html class="subpage">. A short navy header band (kicker, h1,
   sub, button), a light sand body for reading, a navy closing band with mark C (landed: centre dot set, still)
   and the button. No near-black, ribbon or drop. Header and footer: partials/*.html, styled in style.css. */

.subpage, .subpage body { background: var(--navy); color: var(--sand); }
.subpage body { font-family: var(--sans); }

/* The header, static here (the home page fixes it over the hero, with a canvas only). Sticky, opaque navy. */
.subpage .bar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 52px;
  padding: 0 16px;
  background: var(--navy);
  box-shadow: 0 1px 0 rgba(248, 235, 218, 0.14);
}

.sp-wrap { max-width: 40rem; margin: 0 auto; }

/* ---- Header band (navy): kicker, h1, sub, button; centred like the home hero, shorter. */
.sp-band { background: var(--navy); padding: clamp(3rem, 8vw, 5.5rem) 16px clamp(3rem, 7vw, 5rem); }
.sp-band .sp-wrap { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1.15rem; }
.sp-kicker {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.3rem, 2.3vw, 1.6rem);
  letter-spacing: 0.02em;
  opacity: 0.9;
}
.subpage h1 { max-width: 20ch; font-family: var(--serif); font-size: clamp(2.4rem, 5.4vw, 4rem); line-height: 1.04; }
.sp-sub { margin: 0; max-width: 34rem; font-size: 1.1rem; line-height: 1.5; opacity: 0.88; }
.sp-band .cta { margin-top: 0.4rem; }
.sp-band .sp-actions .cta { margin-top: 0; }   /* beside a second button (404): both on one line */

/* ---- Body (sand): one reading column, sections divided by a hairline. */
.sp-body { background: var(--sand); color: var(--navy); font-size: 1.1rem; line-height: 1.6; padding: 0 16px; }
.sp-sec { max-width: 40rem; margin: 0 auto; padding: clamp(2.8rem, 6vw, 4.5rem) 0; }
.sp-sec + .sp-sec { border-top: 1px solid rgba(14, 59, 74, 0.14); }
.sp-body h2, .sp-close h2 {
  margin: 0 0 1.2rem;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.08;
  letter-spacing: 0.005em;
}
.sp-body h3 { margin: 1.8rem 0 0.5rem; font-family: var(--sans); font-weight: 700; font-size: 1.2rem; line-height: 1.3; }
.sp-body p, .sp-close p { margin: 0 0 1.2rem; }
.sp-body p + h2 { margin-top: 2.4rem; }   /* Privacy: the intro sits above the first heading */
.sp-body p:last-child, .sp-close p:last-child { margin-bottom: 0; }
.sp-body ul, .sp-body ol { margin: 0 0 1.2rem; padding-left: 1.3rem; }
.sp-body li { margin-bottom: 0.6rem; }
.sp-actions { display: flex; flex-wrap: wrap; gap: 1rem 1.2rem; align-items: center; margin-top: 1.6rem; }

/* The "what happens next" steps (Book, Booking confirmed). */
.sp-body .sp-steps { list-style: none; counter-reset: step; padding: 0; }
.sp-steps li { counter-increment: step; position: relative; padding-left: 3rem; margin-bottom: 1.2rem; min-height: 2.2rem; }
.sp-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: 0;
  width: 2.1rem; height: 2.1rem;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--navy);
  color: var(--sand);
  font-weight: 700;
  font-size: 1rem;
}

/* ---- Closing band (navy): mark C landed and still, then the ask. */
.sp-close { background: var(--navy); padding: clamp(3.5rem, 8vw, 5.5rem) 16px; text-align: center; }
.sp-mark { display: block; width: 120px; height: 120px; margin: 0 auto 1.6rem; }
.sp-band .sp-mark { margin-bottom: 0.4rem; }
@media (max-width: 480px) { .sp-mark { width: 96px; height: 96px; } }
.sp-close p { max-width: 34rem; margin-left: auto; margin-right: auto; opacity: 0.92; }
.sp-close .sp-actions, .sp-band .sp-actions { justify-content: center; }
.sp-404 { min-height: calc(100vh - 52px - 14rem); display: flex; align-items: center; }
.sp-404 .sp-wrap { width: 100%; }

/* ---- Links (S3) and the focus ring (S2) by ground: navy-raised ramp on navy, deep ramp on sand. */
.sp-band a:not(.cta):not(.cta-alt), .sp-close a:not(.cta):not(.cta-alt), .sp-body a:not(.cta):not(.cta-alt) {
  color: inherit;
  text-decoration: none;
  padding-bottom: 3px;
  background: linear-gradient(90deg, var(--sheen-navy)) 0 100% / 100% 2px no-repeat;
}
.sp-body a:not(.cta):not(.cta-alt) { background-image: linear-gradient(90deg, var(--sheen-deep)); }
.subpage a:focus-visible::after { background: linear-gradient(100deg, var(--sheen-navy)); }
.sp-body a:focus-visible::after { background: linear-gradient(100deg, var(--sheen-deep)); }

/* B3: second-rank action. Navy fill, sand label, sheen border (sheen catalog B3). */
.cta-alt {
  position: relative;
  display: inline-block;
  padding: 0.75rem 1.6rem;
  border: 2px solid transparent;
  border-radius: 999px;
  background: linear-gradient(var(--navy), var(--navy)) padding-box, linear-gradient(100deg, var(--sheen-navy)) border-box;
  color: var(--sand);
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  white-space: nowrap;
}
@media (forced-colors: active) { .cta-alt { border-color: ButtonText; } }

/* T4: one sheen sweep across the sand headline, once, at load (About). Sand before and after; motion allowed only. */
@media (prefers-reduced-motion: no-preference) {
  @supports ((-webkit-background-clip: text) or (background-clip: text)) {
    .sheen-sweep {
      background: linear-gradient(100deg, var(--sand) 0 35%, var(--sheen-navy), var(--sand) 65% 100%) 100% 50% / 300% 100%;
      -webkit-background-clip: text;
      background-clip: text;
      -webkit-text-fill-color: transparent;
      animation: sheen-sweep 2.4s ease-in-out 0.6s 1 both;
    }
  }
}
@keyframes sheen-sweep { from { background-position: 100% 50%; } to { background-position: 0% 50%; } }
@media (forced-colors: active) { .sheen-sweep { background: none; -webkit-text-fill-color: currentColor; animation: none; } }

/* About: client quotes on sand (the page's quote pattern, a step smaller). */
.sp-body blockquote { margin: 0 0 2.2rem; font-size: 1.35rem; line-height: 1.45; }
.sp-body blockquote:last-child { margin-bottom: 0; }
.sp-body blockquote p { margin: 0; }
.sp-body blockquote .sp-by { margin-top: 0.8rem; font-family: var(--sans); font-weight: 400; font-size: 0.95rem; line-height: 1.5; }

/* An address printed as text (only the Book and Referrals pages and the footer carry a mailto). */
.sp-email { overflow-wrap: anywhere; }