/* Shared public navigation + footer support. The nav component (components/corporate/
   nav.blade.php) always renders the SAME <header class="club-header"> markup with NO modifier
   class, and this file never edits its markup, dimensions, positioning, pill geometry, spacing,
   or the Start Your Club CTA. It adds only:

   1. An aria-current="page" treatment (the homepage is never "on" one of its own nav items).
   2. A ".public-page-backdrop" element a genuinely DARK page (no cinematic video, but still a
      dark visual background) can place behind the fixed header, so the header's own unmodified
      fade-from-dark background has something dark to fade over. Not currently used by any page —
      every current non-homepage surface is a LIGHT/ivory page and uses treatment 3 instead.
   3. ".light-nav-surface" — applied to <body> on ordinary ivory pages (Club Types, Pricing,
      Discover Clubs, Help, Login, Register). The header's OWN background becomes transparent
      (the page's existing ivory shows straight through, exactly as asked — no dark bar, no dark
      gradient), and only the color values genuinely needed for contrast on a light surface are
      overridden: --club-ink and --club-muted (safe — neither is used by .header-start, so the
      Start Your Club button's own gold-background/dark-text pairing is untouched), plus the two
      nav-pill/menu surfaces themselves (overridden directly rather than via --club-ground,
      because --club-ground is also read for that same button's text color and must stay exactly
      what it already is). Structure, geometry, and the CTA are identical to the homepage; only
      the colors needed for legibility on ivory change.

   Loaded alongside the REAL, unmodified assets/cinematic/front-door.css (never a hand-copied
   second approximation of its rules). All of this is a harmless no-op on the homepage: it has
   neither class, and no nav item's url ever equals the homepage's own url. */

.public-page-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30; /* behind .club-header (z-index 40), above ordinary page content */
  height: clamp(6.5rem, 14vw, 8rem);
  background: linear-gradient(to bottom, var(--club-ground) 0%, var(--club-ground) 55%, transparent 100%);
  pointer-events: none;
}

.light-nav-surface {
  --club-ink: #204a3d; /* dark YCP teal — reuses this app's own existing --corporate-accent-dark */
  --club-muted: #5c6b64; /* reuses this app's own existing --corporate-muted */
  /* --club-ground and --club-accent are deliberately NOT overridden here — both are read by
     .header-start (background: var(--club-accent); color: var(--club-ground)) for the Start
     Your Club button, which must keep its exact existing warm-gold/dark-text pairing. */
}

.light-nav-surface .club-header {
  background: none;
}

.light-nav-surface .club-nav {
  background: color-mix(in srgb, #fffdf8 82%, transparent);
  border-color: #e4dfd0;
}

.light-nav-surface .club-nav:hover,
.light-nav-surface .club-nav:focus-within {
  border-color: color-mix(in srgb, var(--club-accent) 46%, transparent);
}

.light-nav-surface .club-nav-menu {
  background: color-mix(in srgb, #fffdf8 97%, transparent);
  border-color: #e4dfd0;
}

.light-nav-surface .club-nav-toggle {
  border-color: #d7d2c4;
}

/* The fixed header needs the page's real content pushed down by its own rendered height, exactly
   as the cinematic section's own height already does that for free on the homepage. Qualified
   with the element type (not just the bare class) so this reliably outranks a page's own
   same-specificity ".shell{padding:...}" shorthand regardless of stylesheet load order. */
main.public-page-content {
  padding-top: clamp(6.5rem, 14vw, 8rem);
}

/* The Start Your Club button never changes its own appearance when active (Section "Register
   page: Start Your Club represents the current registration destination. Use appropriate
   aria-current semantics without duplicating actions") — aria-current is added there purely for
   assistive-technology correctness, not a second visual treatment on top of the CTA. */
.club-nav__link[aria-current="page"] {
  color: var(--club-accent);
  background: color-mix(in srgb, var(--club-ink) 10%, transparent);
}

.club-nav__link[aria-current="page"]::after {
  transform: scaleX(1);
}

.club-nav-menu__link[aria-current="page"] {
  color: var(--club-accent);
}

/* ---------------------------------------------------------------------------------------------
   ONE global public footer (components/corporate/footer.blade.php) — reused unmodified across
   Home, Club Types, Pricing, Help, Login, and Register. Compact four-group desktop composition:
   Brand | Navigation | Social | Tagline — the social group renders nothing at all when no real
   YourClubPlace social URL is configured (true as of this checkpoint; see the component's own
   docblock), so today's layout is effectively Brand | Navigation | Tagline.

   Deliberately does NOT read --club-ink/--club-muted: those two are intentionally redefined by
   .light-nav-surface above (so the HEADER reads correctly on an ivory page), but the footer's own
   background is always the same deep YCP dark regardless of what the page above it looks like —
   using text colors tied to those two variables would make the footer unreadable on light pages
   the moment .light-nav-surface flips them light-appropriate. --club-ground (always dark) and
   --club-accent (always the warm gold, untouched by any variant) are the only two variables this
   footer needs, plus one literal cream value for its own primary text.
   ------------------------------------------------------------------------------------------- */

.club-global-footer {
  background: var(--club-ground);
  /* FAQ final correction — restored. The prior removal of this border was based on an incorrect
     instruction; the actual issue was excessive space between the environmental region and the
     footer, which was already fixed separately via .ycp-environment__content's own padding-bottom
     (public-theme.css). Global public theme checkpoint — the dark canvas is now the default for
     the page above this footer too, so the two would otherwise share one identical tone with no
     seam at all. A restrained gold-tinted top border gives a clear, deliberate handoff between
     "last page section" and "footer" without changing the footer's own established
     background/padding.

     Gold top border correction — a prior pass raised this to 45% opacity and added an
     absolutely-positioned circular Back to Top button anchored to this element; both were
     rejected on review. This is now exactly the approved value/declaration (65% opacity, still
     the plain 1px solid rule, no box-shadow/glow/gradient/pseudo-element added anywhere on this
     element), and position:relative was removed since nothing here needs it any more — the Back
     to Top control now lives in the existing .club-global-footer__utility row instead. */
  border-top: 1px solid color-mix(in srgb, var(--club-accent) 65%, transparent);
  padding: 3.5rem 4vw 1.5rem;
}

.club-global-footer__inner {
  max-width: 90rem;
  margin: 0 auto;
}

/* Public footer + launch essentials checkpoint — the footer became the complete global public-site
   footer (brand + three navigation columns), replacing the earlier single horizontal nav strip.
   Desktop: four columns side by side. Tablet: two-up. Mobile: one logical stack. */
.club-global-footer__columns {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
}

.club-global-footer__column--brand {
  padding-right: 1rem;
}

.club-global-footer__brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff5e3;
  text-decoration: none;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
}

.club-global-footer__brand img {
  border-radius: 6px;
}

.club-global-footer__heading {
  margin: 0 0 0.85rem;
  color: #fff5e3;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.club-global-footer__column ul {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.club-global-footer__column a {
  color: var(--club-accent);
  text-decoration: none;
  font-size: 0.92rem;
}

.club-global-footer__column a:hover,
.club-global-footer__column a:focus-visible {
  text-decoration: underline;
}

.club-global-footer__social {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
}

.club-global-footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--club-accent);
  border-radius: 50%;
  transition: background 200ms ease, color 200ms ease;
}

.club-global-footer__social a:hover,
.club-global-footer__social a:focus-visible {
  color: #fff5e3;
  background: color-mix(in srgb, var(--club-accent) 16%, transparent);
}

.club-global-footer__social-icon {
  width: 18px;
  height: 18px;
}

.club-global-footer__tagline {
  margin: 0.6rem 0 0;
  color: color-mix(in srgb, #fff5e3 65%, transparent);
  font-size: 0.85rem;
}

/* Deliberately visually subordinate to the columns above it: smaller text, muted color, a
   top border to separate it, and it never grows beyond a plain two-line utility row. */
.club-global-footer__utility {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.4rem 1.5rem;
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid color-mix(in srgb, #fff5e3 18%, transparent);
}

.club-global-footer__utility p {
  margin: 0;
  color: color-mix(in srgb, #fff5e3 55%, transparent);
  font-size: 0.8rem;
}

/* YCP-PILOT-06 — explicit footer ink instead of `inherit`: on light-surface pages (Terms,
   Privacy) the inherited page ink is dark green on this dark footer (1.85:1). #fff5e3 is exactly
   what dark pages already inherited, so their rendering is unchanged (17:1). */
.club-global-footer__utility a,
.club-global-footer__to-top {
  color: #fff5e3;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, #fff5e3 30%, transparent);
}

.club-global-footer__utility a:hover,
.club-global-footer__utility a:focus-visible,
.club-global-footer__to-top:hover,
.club-global-footer__to-top:focus-visible {
  color: #fff5e3;
}

/* Back to Top correction — the rejected circular button is gone entirely; this now sits as a
   plain footer-link-styled control inside the existing .club-global-footer__utility row (grouped
   with the Happy Path Studios attribution in .club-global-footer__utility-links so
   justify-content:space-between on the row still only has two visual groups: copyright on the
   left, "Back to top" + attribution together on the right) — no new absolute positioning, no
   pill/border/circle/background, just the same underline treatment already used by the
   attribution link right next to it. */
.club-global-footer__utility-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.club-global-footer__to-top {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  border: 0;
  background: none;
  padding: 0;
  margin: 0;
  font: inherit;
  font-size: 0.8rem;
  cursor: pointer;
}

.club-global-footer__to-top-arrow {
  display: inline-block;
  transition: transform 150ms ease;
}

.club-global-footer__to-top:hover .club-global-footer__to-top-arrow,
.club-global-footer__to-top:focus-visible .club-global-footer__to-top-arrow {
  transform: translateY(-2px);
}

@media (width <= 900px) {
  .club-global-footer__columns {
    grid-template-columns: 1fr 1fr;
    row-gap: 2.25rem;
  }

  .club-global-footer__column--brand {
    grid-column: 1 / -1;
    padding-right: 0;
  }
}

@media (width <= 560px) {
  .club-global-footer {
    padding: 2.75rem 6vw 1.5rem;
  }

  .club-global-footer__columns {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .club-global-footer__column--brand {
    grid-column: auto;
  }

  .club-global-footer__column a {
    display: inline-block;
    padding: 0.2rem 0;
  }

  .club-global-footer__utility {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
  }

  .club-global-footer__utility-links {
    gap: 1.25rem;
  }
}
