/* ============================================================================
   SANCTUARY PENARTH — SHARED CORE STYLESHEET  (sp-core.css)
   ----------------------------------------------------------------------------
   Paste this ONCE into Appearance → Editor → Styles → Additional CSS
   (or Customize → Additional CSS). Every page block, the header and the
   footer all read their look from here, so it is your single source of truth.
   The @import below also loads the brand fonts — one paste does both.

   Everything is scoped under .sp-root so it will not fight the theme.
   ============================================================================ */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;1,300;1,400&family=Jost:wght@300;400;500;600&family=Cinzel:wght@400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

/* ---------------------------------------------------------------------------
   1. BRAND TOKENS — edit colours / fonts here and everything cascades
   --------------------------------------------------------------------------- */
.sp-root {
  --sp-cream:      #efe0d1;
  --sp-cream-2:    #e6d5c4;
  --sp-dark:       #393534;
  --sp-dark-2:     #393534;
  --sp-green:      #98887b;
  --sp-green-deep: #a06a4a;
  --sp-brown:      #a06a4a;
  --sp-brown-lt:   #cdbcaa;
  --sp-line:       rgba(57,53,52, 0.18);
  --sp-line-light: rgba(152,136,123, 0.25);

  --sp-display:    'Cinzel', serif;
  --sp-editorial:  'Cormorant Garamond', serif;
  --sp-ui:         'Jost', sans-serif;

  --sp-ease:       cubic-bezier(0.16, 1, 0.3, 1);
  --sp-ease-out:   cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------------------------------------------------------------------------
   2. RESET (within .sp-root only)
   --------------------------------------------------------------------------- */
.sp-root,
.sp-root * { box-sizing: border-box; }
.sp-root {
  font-family: var(--sp-ui);
  color: var(--sp-dark);
  background: var(--sp-cream);
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.sp-root img { max-width: 100%; height: auto; display: block; }
.sp-root a { color: inherit; text-decoration: none; }
.sp-root button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ---------------------------------------------------------------------------
   3. FULL-BLEED ESCAPE + INNER WRAP
   --------------------------------------------------------------------------- */
.sp-root .sp-section {
  display: block;
  width: 100vw;
  max-width: 100vw;
  margin-left:  calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  position: relative;
  overflow: hidden;
}
.sp-root .sp-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 64px);
  position: relative;
}
.sp-root .sp-inner--narrow { max-width: 980px; }

/* ---------------------------------------------------------------------------
   4. TYPOGRAPHY
   --------------------------------------------------------------------------- */
.sp-eyebrow {
  font-family: var(--sp-ui);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--sp-green-deep);
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 28px 0;
}
.sp-eyebrow::before {
  content: "";
  width: 36px;
  height: 1px;
  background: currentColor;
  display: inline-block;
}
.sp-eyebrow--center { justify-content: center; }
.sp-eyebrow--center::after {
  content: "";
  width: 36px;
  height: 1px;
  background: currentColor;
  display: inline-block;
}
.sp-eyebrow--light { color: var(--sp-green); }

.sp-display {
  font-family: var(--sp-display);
  font-weight: 400;
  letter-spacing: 0.03em;
  line-height: 1.05;
  margin: 0;
  color: var(--sp-dark);
}
.sp-display em {
  font-family: var(--sp-editorial);
  font-style: italic;
  font-weight: 400;
  color: var(--sp-brown);
  letter-spacing: 0;
  font-size: 1.08em;
}
.sp-display--light, .sp-display--light em { color: var(--sp-cream); }
.sp-display--light em { color: var(--sp-brown-lt); }

.sp-h-xl { font-size: clamp(2.6rem, 7.5vw, 6.5rem); }
.sp-h-lg { font-size: clamp(2.2rem, 5vw, 4rem); }
.sp-h-md { font-size: clamp(1.6rem, 3vw, 2.4rem); }

.sp-h3 {
  font-family: var(--sp-display);
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sp-dark);
  margin: 0 0 14px 0;
}
.sp-h3--light { color: var(--sp-cream); }

.sp-lede {
  font-family: var(--sp-editorial);
  font-size: clamp(1.15rem, 1.5vw, 1.4rem);
  font-style: italic;
  font-weight: 400;
  color: var(--sp-brown);
  line-height: 1.6;
  margin: 0 0 24px 0;
}
.sp-lede--light { color: var(--sp-brown-lt); }

.sp-body {
  font-family: var(--sp-ui);
  font-size: 0.98rem;
  font-weight: 400;
  color: var(--sp-dark-2);
  line-height: 1.75;
  margin: 0 0 18px 0;
}
.sp-body--light { color: var(--sp-brown-lt); }
.sp-body:last-child { margin-bottom: 0; }

/* Editorial serif paragraph — Cormorant Garamond, UPRIGHT (not italic).
   A larger, softer alternative to .sp-body for intros and pull text. */
.sp-prose {
  font-family: var(--sp-editorial);
  font-style: normal;
  font-weight: 400;
  font-size: clamp(1.15rem, 1.5vw, 1.4rem);
  line-height: 1.7;
  color: var(--sp-dark-2);
  margin: 0 0 22px 0;
}
.sp-prose--light { color: var(--sp-brown-lt); }
.sp-prose:last-child { margin-bottom: 0; }
/* if you ever want a single italic phrase inside it */
.sp-prose em { font-style: italic; color: var(--sp-brown); }

.sp-caption {
  font-family: var(--sp-ui);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sp-brown);
}

/* ---------------------------------------------------------------------------
   5. BUTTONS + LINKS
   --------------------------------------------------------------------------- */
.sp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: var(--sp-dark);
  color: var(--sp-cream);
  font-family: var(--sp-ui);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 18px 32px;
  border: 1px solid var(--sp-dark);
  transition: background 0.4s var(--sp-ease), color 0.4s var(--sp-ease), border-color 0.4s var(--sp-ease);
  position: relative;
  overflow: hidden;
}
.sp-btn::after {
  content: "→";
  display: inline-block;
  transition: transform 0.4s var(--sp-ease);
  font-family: var(--sp-ui);
  letter-spacing: 0;
}
.sp-btn:hover { background: var(--sp-brown); border-color: var(--sp-brown); color: var(--sp-cream); }
.sp-btn:hover::after { transform: translateX(6px); }
.sp-btn--noarrow::after { content: none; }

.sp-btn--ghost {
  background: transparent;
  color: var(--sp-dark);
  border-color: var(--sp-dark);
}
.sp-btn--ghost:hover { background: var(--sp-dark); color: var(--sp-cream); }

.sp-btn--light {
  background: var(--sp-cream);
  color: var(--sp-dark);
  border-color: var(--sp-cream);
}
.sp-btn--light:hover { background: var(--sp-green); border-color: var(--sp-green); color: var(--sp-dark); }

.sp-btn--ghost-light {
  background: transparent;
  color: var(--sp-cream);
  border-color: var(--sp-brown-lt);
}
.sp-btn--ghost-light:hover { background: var(--sp-cream); color: var(--sp-dark); border-color: var(--sp-cream); }

.sp-link {
  font-family: var(--sp-ui);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sp-dark);
  padding-bottom: 6px;
  border-bottom: 1px solid var(--sp-dark);
  transition: color 0.3s, border-color 0.3s, letter-spacing 0.3s;
  display: inline-block;
}
.sp-link--light { color: var(--sp-cream); border-color: var(--sp-cream); }
.sp-link:hover { color: var(--sp-brown); border-color: var(--sp-brown); letter-spacing: 0.28em; }
.sp-link--light:hover { color: var(--sp-green); border-color: #efe0d1; }

/* small inline arrow link */
.sp-arrowlink {
  font-family: var(--sp-ui);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sp-dark);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.3s, gap 0.4s var(--sp-ease);
}
.sp-arrowlink::after { content: "→"; transition: transform 0.4s var(--sp-ease); }
.sp-arrowlink:hover { color: var(--sp-brown); gap: 14px; }
.sp-arrowlink--light { color: var(--sp-green); }
.sp-arrowlink--light:hover { color: var(--sp-cream); }

/* ---------------------------------------------------------------------------
   6. SCROLL REVEAL
   --------------------------------------------------------------------------- */
/* Content is ALWAYS fully opaque — the entrance is a transform-only rise.
   This stays elegant for live visitors yet never captures blank in tools
   that freeze animations on their first frame. */
.sp-reveal, .sp-stagger > * { opacity: 1; transform: none; }

@media (prefers-reduced-motion: no-preference) {
  .sp-root.sp-js .sp-reveal:not(.in),
  .sp-root.sp-js .sp-stagger:not(.in) > * { transform: translateY(22px); }

  .sp-root.sp-js .sp-reveal.in { animation: sp-rise 1.0s var(--sp-ease) both; }
  .sp-root.sp-js .sp-reveal-slow.in { animation-duration: 1.4s; }

  .sp-root.sp-js .sp-stagger.in > * { animation: sp-rise 0.9s var(--sp-ease) both; }
  .sp-stagger.in > *:nth-child(1) { animation-delay: 0.05s; }
  .sp-stagger.in > *:nth-child(2) { animation-delay: 0.12s; }
  .sp-stagger.in > *:nth-child(3) { animation-delay: 0.19s; }
  .sp-stagger.in > *:nth-child(4) { animation-delay: 0.26s; }
  .sp-stagger.in > *:nth-child(5) { animation-delay: 0.33s; }
  .sp-stagger.in > *:nth-child(6) { animation-delay: 0.40s; }
  .sp-stagger.in > *:nth-child(7) { animation-delay: 0.47s; }
  .sp-stagger.in > *:nth-child(8) { animation-delay: 0.54s; }
  .sp-stagger.in > *:nth-child(9) { animation-delay: 0.61s; }
}

@keyframes sp-rise {
  from { transform: translateY(22px); }
  to   { transform: translateY(0); }
}

/* ===========================================================================
   7. HEADER  (utility topbar + sticky main nav + mobile drawer)
   =========================================================================== */
.sp-headstack { position: sticky; top: 0; z-index: 90; }

/* --- Utility top bar --- */
.sp-topbar {
  background: var(--sp-topbar-bg, var(--sp-dark));
  color: var(--sp-cream);
  border-bottom: 1px solid rgba(152,136,123,0.18);
  font-family: var(--sp-ui);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
}
.sp-topbar-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 10px clamp(20px, 5vw, 64px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.sp-topbar-left {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--sp-brown-lt);
  text-transform: uppercase;
}
.sp-topbar-left::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--sp-green);
  display: inline-block;
  box-shadow: 0 0 0 4px rgba(152,136,123,0.15);
}
.sp-topbar-right { display: inline-flex; align-items: center; gap: 22px; }
.sp-topbar-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--sp-brown-lt);
  text-transform: uppercase;
  font-size: 0.66rem;
  letter-spacing: 0.22em;
}
.sp-topbar-meta svg { opacity: 0.7; }
.sp-topbar-phone {
  font-family: var(--sp-ui);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  color: var(--sp-cream);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: color 0.3s;
}
.sp-topbar-phone:hover { color: var(--sp-green); }
.sp-topbar-phone svg { opacity: 0.85; }
@media (max-width: 720px) {
  .sp-topbar-inner { padding: 9px 16px; gap: 12px; }
  .sp-topbar-left { font-size: 0.6rem; letter-spacing: 0.14em; }
  .sp-topbar-meta { display: none; }
  .sp-topbar-phone { font-size: 0.7rem; letter-spacing: 0.12em; }
}

/* --- Main header --- */
.sp-header {
  background: rgba(239,224,209, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--sp-line);
  transition: background 0.4s;
}
.sp-header-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 18px clamp(20px, 5vw, 64px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 32px;
}
.sp-logo { display: inline-flex; align-items: center; justify-self: start; }
.sp-logo-name {
  font-family: var(--sp-display);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sp-dark);
}
.sp-logo-sub {
  font-family: var(--sp-ui);
  font-size: 0.58rem;
  letter-spacing: 0.28em;
  color: var(--sp-brown);
  text-transform: uppercase;
}
.sp-nav { display: flex; gap: 32px; justify-content: center; }
.sp-nav a {
  font-family: var(--sp-ui);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sp-dark);
  position: relative;
  padding: 6px 0;
  transition: color 0.3s;
}
.sp-nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--sp-brown);
  transition: width 0.4s var(--sp-ease);
}
.sp-nav a:hover { color: var(--sp-brown); }
.sp-nav a:hover::after,
.sp-nav a.is-current::after { width: 100%; }
.sp-nav a.is-current { color: var(--sp-brown); }

/* --- Primary nav rendered by the WordPress Navigation block --- */
/* The block's links are <a> elements, so .sp-nav a (font, underline,
   hover) already applies. These rules cover the block's list container
   and the current-page state (core adds .current-menu-item on the <li>). */
.sp-nav.wp-block-navigation { justify-content: center; }
.sp-nav .wp-block-navigation__container { gap: 32px; align-items: center; flex-wrap: nowrap; }
.sp-nav .wp-block-navigation-item__content {
  font-family: var(--sp-ui);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sp-dark);
  padding: 6px 0;
  text-decoration: none;
}
.sp-nav .wp-block-navigation-item__content:hover { color: var(--sp-brown); }
.sp-nav .current-menu-item > .wp-block-navigation-item__content { color: var(--sp-brown); }
.sp-nav .current-menu-item > .wp-block-navigation-item__content::after { width: 100%; }
.sp-header-cta { justify-self: end; display: flex; align-items: center; gap: 18px; }
.sp-header-book {
  font-family: var(--sp-ui);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sp-dark);
  padding: 13px 24px;
  border: 1px solid var(--sp-dark);
  white-space: nowrap;
  transition: background 0.3s, color 0.3s;
}
.sp-header-book:hover { background: var(--sp-dark); color: var(--sp-cream); }

/* --- Burger --- */
.sp-burger {
  display: none;
  width: 44px; height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  justify-self: end;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.sp-burger span {
  width: 24px; height: 1.5px;
  background: var(--sp-dark);
  display: block;
  transition: transform 0.4s var(--sp-ease), opacity 0.3s;
}
body.sp-menu-open .sp-burger span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
body.sp-menu-open .sp-burger span:nth-child(2) { opacity: 0; }
body.sp-menu-open .sp-burger span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* --- Mobile drawer --- */
.sp-drawer {
  position: fixed;
  inset: 0;
  background: var(--sp-dark);
  color: var(--sp-cream);
  z-index: 200;
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 8vw, 64px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity 0.45s var(--sp-ease), transform 0.55s var(--sp-ease), visibility 0.45s;
}
body.sp-menu-open .sp-drawer { opacity: 1; visibility: visible; transform: translateY(0); }
.sp-drawer-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: auto; }
.sp-drawer-top .sp-logo-name { color: var(--sp-cream); }
.sp-drawer-close {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  color: var(--sp-cream); font-size: 1.5rem;
}
.sp-drawer-nav { display: flex; flex-direction: column; gap: 4px; margin: 40px 0; }
.sp-drawer-nav a {
  font-family: var(--sp-display);
  font-size: clamp(1.8rem, 8vw, 2.8rem);
  font-weight: 400;
  letter-spacing: 0.03em;
  color: var(--sp-cream);
  padding: 8px 0;
  border-bottom: 1px solid rgba(152,136,123,0.15);
  display: flex;
  align-items: baseline;
  gap: 16px;
  transition: color 0.3s, padding-left 0.4s var(--sp-ease);
}
.sp-drawer-nav a .sp-drawer-idx {
  font-family: var(--sp-ui);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  color: var(--sp-green);
}
.sp-drawer-nav a:hover { color: var(--sp-brown-lt); padding-left: 12px; }
.sp-drawer-foot { display: flex; flex-direction: column; gap: 14px; margin-top: auto; }
.sp-drawer-foot a { color: var(--sp-brown-lt); font-size: 0.9rem; letter-spacing: 0.06em; }

@media (max-width: 980px) {
  .sp-header .sp-nav,
  .sp-header .sp-header-cta { display: none !important; }
  .sp-header .sp-header-inner { display: flex !important; align-items: center; justify-content: space-between; gap: 16px; }
  .sp-header .sp-burger { display: flex; }
}

/* ===========================================================================
   8. INTERIOR PAGE HERO  (shared across About / Join / Contact / Blog / Shop)
   =========================================================================== */
.sp-pagehero {
  padding: clamp(72px, 10vw, 130px) 0 clamp(48px, 6vw, 80px);
  background: var(--sp-cream);
  position: relative;
}
.sp-pagehero--dark { background: var(--sp-dark); color: var(--sp-cream); }
.sp-pagehero-inner { max-width: 1320px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 64px); }
.sp-breadcrumb {
  font-family: var(--sp-ui);
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sp-brown);
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 34px;
}
.sp-breadcrumb a { transition: color 0.3s; }
.sp-breadcrumb a:hover { color: var(--sp-dark); }
.sp-breadcrumb span { opacity: 0.5; }
.sp-pagehero-title {
  font-family: var(--sp-display);
  font-weight: 400;
  font-size: clamp(2.6rem, 7vw, 5.6rem);
  line-height: 1.0;
  letter-spacing: 0.02em;
  color: var(--sp-dark);
  margin: 0;
  max-width: 16ch;
}
.sp-pagehero--dark .sp-pagehero-title { color: var(--sp-cream); }
.sp-pagehero-title em {
  font-family: var(--sp-editorial);
  font-style: italic;
  font-weight: 400;
  color: var(--sp-brown);
  font-size: 1.06em;
  letter-spacing: 0;
}
.sp-pagehero--dark .sp-pagehero-title em { color: var(--sp-brown-lt); }
.sp-pagehero-lede {
  font-family: var(--sp-editorial);
  font-style: italic;
  font-size: clamp(1.15rem, 1.7vw, 1.5rem);
  color: var(--sp-brown);
  line-height: 1.55;
  margin: 28px 0 0;
  max-width: 52ch;
}
.sp-pagehero--dark .sp-pagehero-lede { color: var(--sp-brown-lt); }
.sp-pagehero-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: end;
}
@media (max-width: 820px) { .sp-pagehero-grid { grid-template-columns: 1fr; gap: 28px; } }

/* thin rule used to separate page sections */
.sp-rule { height: 1px; background: var(--sp-line); width: 100%; }

/* ===========================================================================
   9. IMAGE PLACEHOLDER (striped — for slots the client fills later)
   =========================================================================== */
.sp-ph {
  background-color: var(--sp-cream-2);
  background-image: repeating-linear-gradient(
    -45deg,
    rgba(57,53,52,0.06) 0,
    rgba(57,53,52,0.06) 1px,
    transparent 1px,
    transparent 11px
  );
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--sp-brown);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid var(--sp-line);
}

/* ===========================================================================
   10. FOOTER
   =========================================================================== */
.sp-footer {
  background: var(--sp-cream-2);
  padding: 80px 0 32px;
  border-top: 1px solid var(--sp-line);
}
.sp-footer-cta {
  padding: 0 0 56px;
  margin-bottom: 56px;
  border-bottom: 1px solid var(--sp-line);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
}
.sp-footer-cta h2 {
  font-family: var(--sp-display);
  font-size: clamp(1.6rem, 3.5vw, 3rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  margin: 0;
  color: var(--sp-dark);
  line-height: 1.05;
}
.sp-footer-cta em { font-family: var(--sp-editorial); font-style: italic; color: var(--sp-brown); font-size: 1.06em; letter-spacing: 0; }
.sp-footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.4fr;
  gap: 56px;
  margin-bottom: 56px;
}
@media (max-width: 880px) {
  .sp-footer-cta { grid-template-columns: 1fr; }
  .sp-footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 480px) { .sp-footer-grid { grid-template-columns: 1fr; } }

.sp-footer h4 {
  font-family: var(--sp-display);
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--sp-dark);
  margin: 0 0 22px 0;
  font-weight: 500;
}
.sp-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.sp-footer ul a {
  font-family: var(--sp-ui);
  font-size: 0.88rem;
  color: var(--sp-dark-2);
  transition: color 0.3s;
}
.sp-footer ul a:hover { color: var(--sp-brown); }
.sp-footer-logo {
  font-family: var(--sp-display);
  font-size: 0.9rem;
  letter-spacing: 0.22em;
  color: var(--sp-dark);
  text-transform: uppercase;
}
.sp-newsletter { display: flex; border-bottom: 1px solid var(--sp-line); padding-bottom: 6px; }
.sp-newsletter input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 10px 0;
  font-family: var(--sp-ui);
  font-size: 0.9rem;
  color: var(--sp-dark);
  outline: none;
}
.sp-newsletter input::placeholder { color: var(--sp-dark-2); opacity: 0.7; }
.sp-newsletter button {
  font-family: var(--sp-ui);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sp-dark);
  padding-left: 12px;
}
.sp-footer-bottom {
  border-top: 1px solid var(--sp-line);
  padding-top: 24px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  font-family: var(--sp-ui);
  font-size: 0.74rem;
  color: var(--sp-brown);
  letter-spacing: 0.06em;
}
.sp-footer-bottom .sp-socials { display: flex; gap: 18px; justify-self: end; }
.sp-footer-bottom .sp-socials a {
  font-family: var(--sp-ui);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sp-dark);
  transition: color 0.3s;
}
.sp-footer-bottom .sp-socials a:hover { color: var(--sp-brown); }
@media (max-width: 600px) {
  .sp-footer-bottom { grid-template-columns: 1fr; text-align: center; }
  .sp-footer-bottom .sp-socials { justify-self: center; }
}

/* ===========================================================================
   11. TWENTY TWENTY-FIVE INTEGRATION
   ---------------------------------------------------------------------------
   The theme wraps any Custom HTML block in Group/Row wrappers that cap the
   width, add side padding, and (for a Row) shrink the content to one side.
   That pushes the full-bleed header/footer off-centre. These rules detect
   the theme wrappers that contain our .sp-root and flatten them so the
   full-width bars line up with the viewport. Uses :has() (all modern
   browsers). Only affects wrappers that actually contain a Sanctuary block.
   =========================================================================== */
.wp-block-group:has(> .sp-root),
.wp-block-group:has(.sp-root),
.wp-block-template-part:has(.sp-root) > .wp-block-group {
  max-width: none !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  display: block !important;   /* cancels the Row flex / space-between */
  margin-left: 0 !important;
  margin-right: 0 !important;
}
/* Let our block take the full width of the (now-flattened) wrapper */
.wp-site-blocks .sp-root { width: 100%; max-width: none; }

/* ===========================================================================
   12. TWENTY TWENTY-FIVE: full-bleed our pages
   ---------------------------------------------------------------------------
   On any PAGE or POST whose content contains a Sanctuary block, hide the
   theme's automatic title and strip the <main>/group/post-content spacing &
   width cap — so our sections sit flush under the header and run edge to edge.
   Scoped with :has() so ordinary pages/posts are untouched.
   =========================================================================== */

/* hide the automatic page/post title that sits above our content */
.wp-block-post-title:has(~ .wp-block-post-content .sp-root),
.wp-block-post-title:has(~ .entry-content .sp-root) {
  display: none !important;
}

/* remove width cap, side padding and vertical spacing on the wrappers
   that hold our content */
main:has(.sp-root),
main:has(.sp-root) > .wp-block-group,
.wp-block-group:has(> .wp-block-post-content .sp-root),
.wp-block-group:has(> .entry-content .sp-root),
.wp-block-post-content:has(.sp-root),
.entry-content:has(.sp-root) {
  max-width: none !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}
