/* Padel Society opening mockups: shared base.
   Token values copied from site/src/app/globals.css and
   design-system/design-tokens-padel-society.json. Directions layer on top. */
@import url("https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Inter:wght@400;500;600&family=Plus+Jakarta+Sans:wght@500;600;700;800&display=swap");

:root {
  --color-navy: #0A1628;
  --color-navy-400: #4A5C87;
  --color-navy-700: #152345;
  --color-navy-900: #0C142C;
  --color-court-blue: #1E5FA6;
  --color-court-blue-hover: #17508E;
  --color-court-blue-active: #114076;
  --color-court-blue-50: #E9F0F8;
  --color-warm-wood: #B8763C;
  --color-warm-wood-hover: #A66832;
  --color-warm-wood-50: #F8F0E6;
  /* Proposed token: wood darkened for small text on cream (5.15:1). #B8763C is 3.30:1, below WCAG AA for 12px. */
  --color-warm-wood-text: #8E5A2B;
  --color-cream: #F5F2EC;
  --color-cream-50: #FDFCFA;
  --color-cream-100: #FAF8F4;
  --color-cream-400: #EFEBE3;
  --color-cream-500: #E8E4DA;
  --color-charcoal: #2D2D2D;
  --color-charcoal-300: #9E9E9E;
  --color-charcoal-600: #4A4A4A;
  --color-amber-gold: #D4A853;
  --color-amber-gold-50: #FBF5E6;
  --color-amber-gold-800: #8E6624;
  --color-forest-green: #2D5A3D;
  --color-forest-green-50: #E8F0EB;
  --color-alert-red: #C44B3F;

  --font-display: "Plus Jakarta Sans", "Helvetica Neue", Helvetica, sans-serif;
  --font-body: "Inter", "Helvetica Neue", Helvetica, sans-serif;
  --font-accent: "DM Serif Display", Georgia, "Times New Roman", serif;

  --text-hero: clamp(44px, 7vw + 12px, 112px);
  --text-2xl: clamp(30px, 3.5vw + 14px, 56px);
  --text-xl: clamp(24px, 2vw + 14px, 36px);
  --text-lg: clamp(18px, 1.5vw + 12px, 24px);
  --text-base: clamp(16px, 0.5vw + 14px, 18px);
  --text-sm: clamp(14px, 0.3vw + 13px, 16px);
  --text-xs: clamp(12px, 0.2vw + 11px, 14px);

  --shadow-sm: 0 2px 6px 0 rgba(10,22,40,0.10);
  --shadow-md: 0 4px 12px 0 rgba(10,22,40,0.12);
  --shadow-lg: 0 8px 24px 0 rgba(10,22,40,0.14);
  --shadow-xl: 0 16px 40px 0 rgba(10,22,40,0.16);
  --shadow-focus-blue: 0 0 0 3px rgba(30,95,166,0.45);

  --ease-decelerate: cubic-bezier(0.0, 0.0, 0.2, 1);
  --ease-accelerate: cubic-bezier(0.4, 0.0, 1, 1);
  --ease-standard: cubic-bezier(0.4, 0.0, 0.2, 1);

  --gutter: 20px;
  --maxw: 1440px;
  --proto-h: 36px;
}
@media (min-width: 768px) { :root { --gutter: 40px; } }
@media (min-width: 1280px) { :root { --gutter: 80px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 120px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.5;
  color: var(--color-charcoal);
  background: var(--color-cream);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
h1, h2, h3, h4 { text-wrap: balance; margin: 0; }
p, li { text-wrap: pretty; }
a { color: inherit; }
button { font: inherit; color: inherit; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 1000;
  background: var(--color-navy); color: #fff; padding: 12px 18px; border-radius: 9999px;
  font-weight: 600; text-decoration: none;
}
.skip:focus { top: calc(var(--proto-h) + 8px); }

:focus-visible { outline: 3px solid var(--color-court-blue); outline-offset: 3px; border-radius: 6px; }
.on-dark :focus-visible, .on-dark:focus-visible { outline-color: var(--color-amber-gold); }

/* ── Prototype bar (review chrome, not part of the design) ───────────────── */
.proto-bar {
  position: sticky; top: 0; z-index: 200; height: var(--proto-h);
  display: flex; align-items: center; gap: 12px; justify-content: space-between;
  padding: 0 12px; background: #1a1a1a; color: #eee;
  font: 500 12px/1 var(--font-body); letter-spacing: 0.2px;
}
.proto-bar a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.proto-bar .pb-left { display: flex; gap: 10px; align-items: center; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.proto-bar .pb-tag { background: #D4A853; color: #1a1a1a; padding: 4px 8px; border-radius: 4px; font-weight: 700; }
.proto-bar button {
  background: transparent; border: 1px solid #555; color: #fff; border-radius: 9999px;
  padding: 5px 10px; font: 600 12px/1 var(--font-body); cursor: pointer; white-space: nowrap;
}
.proto-bar button[aria-pressed="true"] { background: #D4A853; color: #1a1a1a; border-color: #D4A853; }
@media (max-width: 520px) { .proto-bar .pb-hide-sm { display: none; } }

/* Review flags: only visible when review mode is on. */
[data-status="confirm"], [data-status="missing"], [data-gate] { transition: box-shadow 200ms; }
body.review-on [data-status="confirm"],
body.review-on [data-status="missing"] {
  box-shadow: 0 0 0 2px #E0A21B; border-radius: 4px; background-color: rgba(224,162,27,0.12);
  cursor: help;
}
body.review-on [data-status="missing"] { box-shadow: 0 0 0 2px #C44B3F; background-color: rgba(196,75,63,0.10); }
/* Launch-gated copy keeps its own colours; a dashed outline marks it. */
body.review-on [data-gate] { outline: 2px dashed #E0A21B; outline-offset: 3px; cursor: help; }
/* Buttons keep their real colours; a corner dot marks the unconfirmed destination. */
body.review-on .btn[data-status] { box-shadow: none; position: relative; }
body.review-on .btn-primary[data-status] { background-color: var(--color-court-blue); }
body.review-on .btn-ghost[data-status], body.review-on .btn-ghost-light[data-status] { background-color: transparent; }
body.review-on .btn-gold[data-status] { background-color: var(--color-amber-gold); }
body.review-on .btn[data-status]::after { content: ""; position: absolute; top: -3px; right: -3px; width: 12px; height: 12px; border-radius: 50%; background: #E0A21B; border: 2px solid #fff; }
body.review-on a.text-link[data-status], body.review-on .b-tab[data-status] { background-color: transparent; }
.fact-missing { font-style: italic; opacity: 0.85; }
body:not(.review-on) .review-only { display: none !important; }
.review-note {
  display: inline-block; margin-top: 8px; font: 600 12px/1.4 var(--font-body);
  color: #7a5200; background: #FFF4D6; border: 1px dashed #E0A21B; padding: 6px 10px; border-radius: 6px;
}

/* ── Buttons (component.button.*) ────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 24px; border-radius: 9999px; border: 2px solid transparent;
  font: 600 16px/1.2 var(--font-display); text-decoration: none; cursor: pointer;
  transition: background-color 200ms var(--ease-standard), color 200ms, border-color 200ms, transform 200ms;
}
.btn-primary { background: var(--color-court-blue); color: #fff; }
.btn-primary:hover { background: var(--color-court-blue-hover); }
.btn-primary:active { background: var(--color-court-blue-active); }
.btn-ghost { background: transparent; color: var(--color-navy); border-color: var(--color-navy); }
.btn-ghost:hover { background: var(--color-navy); color: #fff; }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.7); }
.btn-ghost-light:hover { background: #fff; color: var(--color-navy); }
.btn-gold { background: var(--color-amber-gold); color: var(--color-navy); }
.btn-gold:hover { background: #c99a43; }
.btn-lg { min-height: 56px; padding: 16px 32px; font-size: 18px; }
.btn .ext { width: 14px; height: 14px; flex: none; }
.text-link { color: var(--color-court-blue); font-weight: 600; text-underline-offset: 4px; }

.overline { font: 600 12px/1.2 var(--font-body); letter-spacing: 2px; text-transform: uppercase; }

/* ── FAQ accordion: native details/summary (keyboard + SR for free) ─────── */
.faq details { border-bottom: 1px solid var(--faq-line, var(--color-cream-500)); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 0; font: 600 var(--text-base)/1.35 var(--font-display); min-height: 48px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .chev { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  border: 1.5px solid currentColor; transition: transform 200ms var(--ease-standard); opacity: 0.8; }
.faq details[open] summary .chev { transform: rotate(45deg); }
.faq .answer { padding: 0 44px 20px 0; color: var(--faq-answer, var(--color-charcoal-600)); }
.faq .answer p { margin: 0 0 10px; }

/* Reveal on scroll: only animates when motion is allowed. */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 400ms var(--ease-decelerate), transform 400ms var(--ease-decelerate); }
  .js .reveal.in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

/* Mobile sticky booking bar (shared mechanics, styled per direction). */
.sticky-book {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 150;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  display: flex; gap: 10px; transform: translateY(110%); transition: transform 250ms var(--ease-decelerate);
}
.sticky-book.show { transform: none; }
.sticky-book .btn { flex: 1; }
@media (min-width: 1024px) { .sticky-book { display: none; } }
