/* The Sauna Corner: shared styles for every page.
   Dark-first brand: Ink ground, Charcoal panels, Cream text, a rose to coral to marigold gradient.
   Young Serif for display, Figtree for text. Layout is fluid from 320px phones to wide desktops. */
:root {
  --ink: #211E22;
  --charcoal: #2E2A2E;
  --cream: #FBF4EC;
  --stone: #CFC4BA;
  --rose: #EFA3B2;
  --coral: #F19264;
  --marigold: #F6B23A;
  --gut: max(16px, env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
  --header-h: 92px;
  color-scheme: dark;
}
@media (min-width: 700px) { :root { --gut: max(28px, env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px)); } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: var(--ink); color: var(--cream); font-family: 'Figtree', 'Segoe UI', system-ui, -apple-system, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; }
h1, h2, h3 { text-wrap: balance; overflow-wrap: break-word; hyphens: manual; }
p { text-wrap: pretty; }
a { color: var(--cream); text-decoration: none; }
a:hover { color: var(--marigold); }
:focus-visible { outline: 2px solid var(--marigold); outline-offset: 3px; border-radius: 6px; }
main section { overflow-wrap: break-word; }
[hidden] { display: none !important; }

/* Decorative leaf shapes */
.leaf-a { -webkit-mask: url(assets/leaves-trio.webp) center/contain no-repeat; mask: url(assets/leaves-trio.webp) center/contain no-repeat; max-width: 90vw; }
.leaf-b { -webkit-mask: url(assets/leaf.webp) center/contain no-repeat; mask: url(assets/leaf.webp) center/contain no-repeat; max-width: 80vw; }

/* Hover lifts and borders used by cards */
.lift:hover { transform: translateY(-4px); }
.mod:hover, .ev:hover { border-color: var(--marigold) !important; }

/* Marquee */
@keyframes marq { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marq { animation: marq 38s linear infinite; }
@media (prefers-reduced-motion: reduce) { .marq { animation: none; } html { scroll-behavior: auto; } .lift:hover { transform: none; } }

/* ---------- header ---------- */
.site-header { position: relative; z-index: 30; color: var(--cream); }
.site-header.overlay { position: absolute; top: 0; left: 0; right: 0; }
.nav { max-width: 1400px; margin: 0 auto; padding: 14px var(--gut); display: flex; align-items: center; justify-content: space-between; gap: 14px 24px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 12px; color: var(--cream); flex: none; }
.brand img { width: 56px; height: auto; display: block; }
.brand span { font-family: 'Young Serif', Georgia, serif; font-size: 20px; white-space: nowrap; }
.menu { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 6px 22px; font-size: 15px; font-weight: 600; }
.menu a { padding: 10px 0; border-bottom: 2px solid transparent; white-space: nowrap; }
.menu a[aria-current="page"] { color: var(--marigold); border-bottom-color: var(--marigold); }
.menu a.book { background: var(--cream); color: var(--ink); padding: 12px 20px; border-radius: 999px; border: 0; font-weight: 700; }
.menu a.book:hover { background: var(--marigold); color: var(--ink); }
.menu-btn { display: none; align-items: center; gap: 8px; min-height: 44px; padding: 10px 16px; border-radius: 999px; border: 1.5px solid rgba(251,244,236,.4); background: rgba(33,30,34,.55); color: var(--cream); font: 700 15px 'Figtree', sans-serif; cursor: pointer; }
.menu-btn svg path { transition: transform .2s, opacity .2s; transform-origin: center; }
.menu-btn[aria-expanded="true"] .l1 { transform: translateY(5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .l2 { opacity: 0; }
.menu-btn[aria-expanded="true"] .l3 { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 1179px) {
  .menu-btn { display: inline-flex; }
  .nav { flex-wrap: wrap; }
  .menu { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 0 18px; font-size: 18px; }
  .menu.open { display: flex; }
  .menu a { padding: 15px 4px; border-bottom: 1px solid rgba(251,244,236,.12); }
  .menu a[aria-current="page"] { border-bottom-color: rgba(251,244,236,.12); }
  .menu a.book { margin-top: 14px; text-align: center; padding: 16px 20px; }
  .site-header.menu-open { background: var(--ink); }
  .site-header.overlay.menu-open { box-shadow: 0 20px 40px rgba(0,0,0,.35); }
}
@media (max-width: 420px) {
  .brand img { width: 44px; }
  .brand span { font-size: 17px; }
  .menu-btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .menu-btn { padding: 10px 12px; }
}

/* ---------- home: training list with changing photo ---------- */
.svc-item { color: var(--cream); }
@media (hover: hover) and (min-width: 900px) {
  .svc-item { opacity: .5; }
  .svc-item.is-active, .svc-item:focus-visible { opacity: 1; }
}
@media (max-width: 899px) { .svc-figure { display: none; } }
@media (min-width: 900px) { .stick { position: sticky; top: 28px; align-self: start; } }
.span2 { min-width: 0; }
@media (min-width: 760px) { .span2 { grid-column: span 2; } }

/* ---------- FAQ ---------- */
.faq { border-bottom: 1px solid rgba(251,244,236,.18); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; min-height: 44px; font-family: 'Young Serif', Georgia, serif; font-size: clamp(19px, 2vw, 22px); line-height: 1.25; color: var(--cream); }
.faq summary::-webkit-details-marker { display: none; }
.faq-icon { position: relative; width: 18px; height: 18px; flex: none; }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; left: 0; right: 0; top: 8px; height: 2px; background: var(--marigold); border-radius: 2px; transition: transform .2s; }
.faq-icon::after { transform: rotate(90deg); }
.faq[open] .faq-icon::after { transform: rotate(0deg); }
.faq p { font-size: 16px; line-height: 1.7; margin: 0; padding: 0 0 24px; max-width: 62ch; color: var(--stone); }

/* ---------- events ---------- */
.chip-btn { font: 700 15px 'Figtree', sans-serif; min-height: 44px; padding: 8px 18px; border-radius: 999px; cursor: pointer; border: 1.5px solid rgba(251,244,236,.35); background: transparent; color: var(--cream); }
.chip-btn[aria-pressed="true"] { background: var(--cream); border-color: var(--cream); color: var(--ink); }
.event-card { display: grid; grid-template-columns: 220px minmax(0, 1fr); border-radius: 22px; overflow: hidden; background: var(--charcoal); border: 1.5px solid rgba(251,244,236,.1); color: var(--cream); }
.event-date { color: var(--ink); padding: 24px; display: flex; flex-direction: column; justify-content: space-between; gap: 10px; }
.event-body { padding: 24px 28px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
@media (max-width: 640px) {
  .event-card { grid-template-columns: minmax(0, 1fr); }
  .event-date { flex-direction: row; align-items: baseline; justify-content: flex-start; gap: 12px; padding: 16px 20px; }
  .event-date > span:nth-child(2) { font-size: 34px !important; order: -1; }
  .event-body { padding: 20px; }
}

/* ---------- forms ---------- */
input, textarea, select { max-width: 100%; }
input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 2px solid var(--coral); outline-offset: 1px; }
button { touch-action: manipulation; }

/* Phones: keep big type and wide chips from crowding */
@media (max-width: 480px) {
  main ul[aria-label="Why train with us"] li { font-size: 13px !important; }
  main dl dd { font-size: 20px !important; }
}

/* Demo notice for the preview build */
.preview-note { position: fixed; z-index: 40; left: 50%; transform: translateX(-50%); bottom: max(14px, env(safe-area-inset-bottom, 0px)); background: var(--cream); color: var(--ink); padding: 12px 20px; border-radius: 999px; font: 700 14px 'Figtree', sans-serif; box-shadow: 0 10px 30px rgba(0,0,0,.35); max-width: calc(100% - 32px); text-align: center; }

/* Forms: spam trap, messages */
.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-msg { margin: 4px 0 0; padding: 12px 14px; border-radius: 12px; background: #FDE3DE; color: #7A2318; font-size: 15px; line-height: 1.5; text-align: left; }
[data-state="done"]:focus { outline: none; }
button[disabled] { opacity: .7; cursor: progress; }

/* Preview only: submissions inbox for the owner */
.inbox-btn { position: fixed; z-index: 45; right: max(16px, env(safe-area-inset-right, 0px)); bottom: max(16px, env(safe-area-inset-bottom, 0px)); min-height: 44px; padding: 10px 18px; border-radius: 999px; border: 0; background: var(--marigold); color: var(--ink); font: 700 14px 'Figtree', sans-serif; cursor: pointer; box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.inbox-panel { position: fixed; z-index: 46; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(max(16px, env(safe-area-inset-bottom, 0px)) + 56px); width: min(440px, calc(100vw - 32px)); max-height: min(70vh, 640px); overflow-y: auto; background: var(--cream); color: var(--ink); border-radius: 22px; padding: 20px; box-shadow: 0 20px 50px rgba(0,0,0,.45); display: flex; flex-direction: column; gap: 12px; }
.inbox-panel h2 { font-family: 'Young Serif', Georgia, serif; font-weight: 400; font-size: 24px; margin: 0; }
.inbox-panel .chip-btn { color: var(--ink); border-color: rgba(33,30,34,.3); }
.inbox-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.inbox-note { margin: 0; font-size: 13px; line-height: 1.5; color: #5A5057; }
.inbox-item { border-top: 1px solid rgba(33,30,34,.15); padding-top: 12px; display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.inbox-item b { font-size: 16px; }
.inbox-item p { margin: 4px 0 0; white-space: pre-line; }
