/* ═══════════════════════════════════════════════════════════════
   Shared site chrome: the corporate footer used on every page.
   For pages that load padel/shared.css (tokens come from there);
   company pages (/, /about, …) get the same rules from /site.css —
   keep the two footer blocks in sync.
   Load AFTER shared.css so these rules win where selectors overlap.
   ═══════════════════════════════════════════════════════════════ */

/* ── Logo lockup (footer brand) — scoped so the hero logo-mark
     sizes in shared.css are unaffected ── */
.logo-lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-lockup .logo-mark {
  position: relative;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
}

.logo-lockup .logo-circle,
.logo-lockup .logo-circle-inner {
  position: absolute;
  display: block;
  border-radius: 50%;
}

.logo-lockup .logo-circle {
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 2.8px solid var(--brand);
  clip-path: polygon(0 0, 100% 0, 100% 70%, 0 70%);
}

.logo-lockup .logo-circle-inner {
  top: 19.4%;
  left: 19.4%;
  width: 61.1%;
  height: 61.1%;
  border: 2.8px solid var(--brand-light);
  clip-path: polygon(0 30%, 100% 30%, 100% 100%, 0 100%);
}

.logo-lockup .logo-text {
  font-family: 'Sora', sans-serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--dark);
}

/* ── Footer ── */
.site-footer {
  position: relative;
  z-index: 1;
  width: 100%;
  margin-top: 96px;
  background:
    radial-gradient(ellipse 70% 80% at 0% 0%, color-mix(in srgb, var(--brand) 14%, transparent) 0%, transparent 60%),
    linear-gradient(160deg, var(--footer-a) 0%, var(--footer-b) 55%);
  padding: 60px 32px 0;
}

.site-footer::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.07;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='a'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23a)'/%3E%3C/svg%3E");
}

.footer-inner {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr;
  align-items: start;
  gap: 40px;
  padding-bottom: 48px;
}

.footer-brand .logo-lockup .logo-text { color: rgba(255, 255, 255, 0.9); }
.footer-brand .logo-lockup .logo-circle { border-color: rgba(255, 255, 255, 0.8); }
.footer-brand .logo-lockup .logo-circle-inner { border-color: rgba(255, 255, 255, 0.4); }

.footer-tagline {
  margin-top: 16px;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.65;
  max-width: 230px;
}

.footer-social { display: flex; gap: 16px; margin-top: 20px; }

.footer-social a {
  color: rgba(255, 255, 255, 0.6);
  display: inline-flex;
  transition: color 0.2s;
}

.footer-social a:hover { color: #fff; }

.footer-col h2 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin: 0 0 18px;
}

.footer-col nav { display: flex; flex-direction: column; gap: 12px; }

.footer-col a {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.68);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-col a:hover { color: rgba(255, 255, 255, 0.95); }
/* Activities: each activity is a small group label with its audiences
   indented beneath it, so Padel reads as one thing and Running as another. */
.footer-col .footer-group {
  font-size: 14px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
  margin-top: 8px;
}
.footer-col .footer-group:first-child { margin-top: 0; }
.footer-col a.footer-sub {
  padding-left: 14px;
  border-left: 1px solid rgba(255, 255, 255, 0.16);
}

.footer-col .soon {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  cursor: default;
}

/* Touch pointers get a real tap area on the footer links, which are only
   18px tall by their type size. The row gap shrinks to keep the visual
   rhythm close to the mouse layout, and the social icons pull left by
   their own padding so the column stays optically aligned. */
@media (pointer: coarse) {
  .footer-col .footer-group { padding-top: 13px; margin-top: 0; }
  .footer-col .footer-group:first-child { padding-top: 0; }
  .footer-col nav { gap: 0; }
  .footer-col a,
  .footer-col .soon { padding: 13px 0; }
  .footer-social { gap: 0; margin-left: -12px; }
  .footer-social a { padding: 12px; }
}

.footer-bottom {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom span { line-height: 1.8; }


@media (max-width: 980px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .site-footer { padding: 48px 24px 0; margin-top: 72px; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
}

/* ── Header / top menu (shared) — mirrors /site.css; keep in sync ── */
/* The header's height: 2 x 12px band padding, 2 x 1px frame border,
   2 x 4px frame padding and a 44px chip. chrome.js overwrites it with the
   measured value; this covers the paint before it runs. */
:root { --header-h: 78px; }

/* The header is a transparent sticky band holding two floating groups, in
   the style of lassie.ai: the logo and tabs centred, the CTA at the right.
   Each group is a frosted frame around white chips. The band lets clicks
   through, so only the groups and the open menu catch them. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%; /* shared.css centers body children as flex items */
  pointer-events: none;
}

/* A full-bleed hero opts in to slide up under the transparent band, and
   pads its own top by --header-h to keep its copy clear of the nav. */
.under-header { margin-top: calc(-1 * var(--header-h)); }

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 12px 20px;
}

/* Frosted frame: a warm translucent stone that reads pale on the paper
   background and darker over the hero video. */
.nav-pill,
.nav-actions {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: rgba(227, 221, 207, 0.4);
  backdrop-filter: blur(13px);
  -webkit-backdrop-filter: blur(13px);
}

.nav-pill { grid-column: 2; position: relative; }
.nav-actions { grid-column: 3; justify-self: end; }

.nav-links { display: flex; align-items: center; gap: 2px; }

/* White chips inside the frame. */
.nav-pill .logo-lockup,
.nav-links a,
.nav-burger {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 14px;
  border-radius: 12px;
  background: #fff;
  color: var(--dark);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.3s ease-out, color 0.2s;
}

.nav-burger { border: none; cursor: pointer; font-family: inherit; }

/* Hover, as on lassie.ai: while the pointer is over the group its chips
   turn clear and one white highlight sits under the hovered chip, sliding
   from chip to chip. chrome.js adds that highlight (.nav-glide) and marks
   the group .has-glide; without it, the hovered chip keeps its own white.
   Touch screens keep the resting look, as a tap would leave it stuck.
   The frame's backdrop-filter makes it a stacking context, so z-index -1
   puts the highlight above the frame and under the chips. */
.nav-glide {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 0;
  z-index: -1;
  border-radius: 12px;
  background: #fff;
  opacity: 0;
  pointer-events: none;
  /* Hidden only once the chips have faded back to white, so the hovered
     one never flashes clear on the way out. */
  transition: opacity 0s 0.3s;
}

/* It slides only while the group is hovered, so it lands on the first
   chip entered without travelling there. */
.nav-pill.is-gliding .nav-glide {
  opacity: 1;
  transition: transform 0.25s ease-out, width 0.25s ease-out;
}

@media (hover: hover) {
  .nav-pill:hover .logo-lockup,
  .nav-pill:hover .nav-links a,
  .nav-pill:hover .nav-burger { background: transparent; }

  .nav-pill:not(.has-glide) .logo-lockup:hover,
  .nav-pill:not(.has-glide) .nav-links a:hover,
  .nav-pill:not(.has-glide) .nav-burger:hover { background: #fff; }

  /* Over a video hero (chrome.js sets .on-dark) the clear chips sit on a
     dark frame, so their text and the logo go white; the hovered chip,
     on its white highlight, stays dark. */
  .site-header.on-dark .nav-pill:hover .logo-lockup:not(:hover) .logo-text,
  .site-header.on-dark .nav-pill:hover .nav-links a:not(:hover),
  .site-header.on-dark .nav-pill:hover .nav-burger:not(:hover) { color: #fff; }

  .site-header.on-dark .nav-pill:hover .logo-lockup:not(:hover) .logo-circle { border-color: rgba(255, 255, 255, 0.8); }
  .site-header.on-dark .nav-pill:hover .logo-lockup:not(:hover) .logo-circle-inner { border-color: rgba(255, 255, 255, 0.4); }
}

.nav-links a.active { color: var(--brand); font-weight: 600; }

/* The lockup shrinks to chip size; the footer's copy keeps its own. */
.nav-pill .logo-lockup { gap: 8px; }
.nav-pill .logo-mark { width: 24px; height: 24px; }
.nav-pill .logo-circle,
.nav-pill .logo-circle-inner { border-width: 2px; transition: border-color 0.2s; }
.nav-pill .logo-text { font-size: 17px; transition: color 0.2s; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  letter-spacing: -0.2px;
  text-decoration: none;
  border: none;
  border-radius: 60px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn .arrow { transition: transform 0.2s; }
.btn:hover .arrow { transform: translateX(3px); }

/* padel/shared.css sizes the arrow at 20px for the big in-page CTAs
   (`.btn-primary .arrow`), which on the header's small button made it 8px
   taller than on pages loading site.css, and the whole header with it. Here
   the arrow tracks its own button's size instead. This file is loaded last
   on every padel-family page, which is what lets the rule win -- keep it
   last if you reorder the <link> tags. Also applies to the .mobile-nav CTA
   inside the header, which is intended: it matches the company pages, where
   site.css never sizes .arrow at all. */
.site-header .btn .arrow { font-size: inherit; }

.btn.btn-primary {
  padding: 15px 36px;
  font-size: 16px;
  color: #fff;
  background: var(--brand);
  box-shadow: 0 4px 24px rgba(79, 70, 229, 0.25);
}

.btn.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(79, 70, 229, 0.35);
  background: color-mix(in srgb, var(--brand) 85%, #000);
}

.btn.btn-sm { padding: 10px 22px; font-size: 14px; }

/* The CTA is the one filled chip: brand colour, chip geometry. */
.site-header .nav-actions .btn {
  height: 44px;
  padding: 0 16px;
  border-radius: 12px;
  box-shadow: none;
}

.site-header .nav-actions .btn:hover { transform: none; box-shadow: none; }

/* Phones: the centred group becomes logo + Menu (see the 880px query
   below), and the tabs and the CTA move into the menu card. */
@media (min-width: 881px) {
  .nav-burger { display: none; }
}

.site-header:not(.nav-open) .nav-burger-close,
.site-header.nav-open .nav-burger-open { display: none; }

/* The menu card. It sits in flow under the group when the <noscript>
   fallback shows it, and is laid over the page when JS opens it, so the
   header keeps its height. */
.mobile-nav {
  display: none;
  flex-direction: column;
  pointer-events: auto;
  margin: 0 16px 12px;
  padding: 8px 20px 20px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 40px color-mix(in srgb, var(--dark) 14%, transparent);
}

.mobile-nav a {
  font-size: 16px;
  font-weight: 500;
  color: var(--dark);
  text-decoration: none;
  padding: 13px 8px;
  border-bottom: 1px solid var(--grey-100);
}

.mobile-nav a.active { color: var(--brand); font-weight: 600; }
.mobile-nav .btn { margin-top: 16px; border-bottom: none; }

.site-header.nav-open .mobile-nav {
  display: flex;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
}

@media (max-width: 880px) {
  .header-inner { padding: 12px 16px; }
  .site-header .nav-links { display: none; }
  .nav-actions { display: none; }
}

/* ══════════════ Resilience: keyboard, no-JS, browser-drawn surfaces ══════════════ */

/* Off-canvas until focused, then a real target above the sticky header. */
.skip-link {
  position: absolute;
  left: 16px;
  top: -100%;
  z-index: 200;
  padding: 12px 20px;
  border-radius: 0 0 14px 14px;
  background: var(--brand);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.18s ease-out;
}
.skip-link:focus { top: 0; }
#main:focus { outline: none; }

/* The browser default ring is invisible on the indigo button and on the dark
   footer, so the ring is drawn from the palette instead. :where() keeps the
   specificity at zero so component rules can still override it. */
:where(a, button, [tabindex]):focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}
:where(.site-footer) :where(a, button):focus-visible { outline-color: #fff; }
:where(.btn):focus-visible { outline-color: var(--dark); }

::selection { background: color-mix(in srgb, var(--brand) 22%, transparent); color: var(--dark); }
.site-footer ::selection { background: rgba(255, 255, 255, 0.25); color: #fff; }

/* A long unbroken string (a URL, a compound word in a longer language) wraps
   instead of pushing the layout wider than the viewport. */
h1, h2, h3, h4, p, li, a, .btn { overflow-wrap: break-word; }

@media (prefers-reduced-motion: reduce) {
  /* Collapse the entrance keyframes to their end state rather than killing all
     motion: content arrives without travelling, while hover, focus and menu
     transitions keep the feedback they carry. */
  @keyframes fadeUp { from { opacity: 1; transform: none; } to { opacity: 1; transform: none; } }
  @keyframes slotPop { from { transform: none; } to { transform: none; } }
}

/* padel/shared.css lays the body out as a centred flex column, so the main
   landmark introduced for the skip link became the flex item and collapsed
   to its content width, taking the full-bleed hero gradient with it. It
   inherits the body's layout role rather than interrupting it. */
#main {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
