/* ============================================================
   ReachSwim — main stylesheet
   Ported from prototype, production-ready.
   ============================================================ */

:root {
  --ink:    #0c2233;
  --ink-2:  #355063;
  --ink-3:  #7d97a8;
  --paper:  #f6f1e6;
  --paper-2:#ece5d3;
  --cream:  #f8efd9;
  --mist:   #dff1fb;
  --pool:   #4fb3d9;
  --deep:   #0a3d62;
  --accent: #e88a4e;
  --line:   rgba(12, 34, 51, 0.12);
  --line-strong: rgba(12, 34, 51, 0.28);

  --rad-sm: 6px;
  --rad-md: 14px;
  --rad-lg: 28px;
  --rad-pill: 999px;

  --shadow-sm: 0 1px 0 rgba(12,34,51,0.06), 0 1px 2px rgba(12,34,51,0.04);
  --shadow-md: 0 10px 30px -12px rgba(12,34,51,0.18);
  --shadow-lg: 0 30px 80px -30px rgba(12,34,51,0.35);

  --font-display: "Instrument Serif", "Times New Roman", serif;
  --font-body: "Manrope", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}

/* ============================================================
   Reset & Base
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body { overflow-x: hidden; }
img { max-width: 100%; display: block; }

button {
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  border: 0;
  background: none;
  color: inherit;
}

a { color: inherit; text-decoration: none; }
input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }

::selection { background: var(--ink); color: var(--paper); }

/* ============================================================
   Typography
   ============================================================ */

.h-display {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.01em;
  font-feature-settings: "liga", "dlig";
}

.h-display em {
  font-style: italic;
  color: var(--deep);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
  font-weight: 500;
}

.mono { font-family: var(--font-mono); }

/* ============================================================
   Layout
   ============================================================ */

.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 32px;
}

.section {
  padding: 120px 0;
  position: relative;
}

.section--alt { background: var(--paper-2); }

/* ============================================================
   Buttons
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: var(--rad-pill);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.005em;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid transparent;
  white-space: nowrap;
  text-decoration: none;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--deep); }

.btn-ghost { background: transparent; border: 1px solid var(--line-strong); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.btn-cream { background: var(--cream); color: var(--ink); border: 1px solid var(--line); }
.btn-cream:hover { background: var(--paper-2); }

.btn-sm { padding: 10px 16px; font-size: 14px; }
.btn-lg { padding: 18px 28px; font-size: 16px; }

/* ============================================================
   Nav
   ============================================================ */

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 18px 0;
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
  border-bottom: 1px solid transparent;
  color: var(--paper);
}

/* On pages without heroes, always show dark nav */
body[data-has-hero="False"] .site-nav {
  background: rgba(246, 241, 230, 0.85);
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  border-bottom-color: var(--line);
  color: var(--ink);
}

.site-nav.scrolled {
  background: rgba(246, 241, 230, 0.85);
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  border-bottom-color: var(--line);
  color: var(--ink);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo { display: inline-flex; align-items: center; }
.nav-logo img { height: 56px; width: auto; }

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

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  opacity: 0.85;
  transition: opacity 0.2s;
}

.nav-links a:hover { opacity: 1; }

.nav-actions { display: flex; gap: 10px; align-items: center; }

.nav-account-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  color: #fff;
  transition: color .2s;
}
.nav-account-link:hover { color: var(--ink); }
.scrolled .nav-account-link { color: var(--ink); }
.scrolled .nav-account-link:hover { opacity: .7; }

.nav-cta {
  background: var(--paper);
  color: var(--ink);
}

.site-nav.scrolled .nav-cta {
  background: var(--ink);
  color: var(--paper);
}

/* ============================================================
   Hero
   ============================================================ */

.hero {
  position: relative;
  height: 100vh;
  min-height: 680px;
  overflow: hidden;
  color: var(--paper);
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: 55% 50%;
  animation: kenburns 24s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes kenburns {
  0%   { transform: scale(1.05) translate(0, 0); }
  100% { transform: scale(1.12) translate(-1.5%, -1%); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8,28,42,0.55) 0%, rgba(8,28,42,0.05) 30%, rgba(8,28,42,0.15) 55%, rgba(8,28,42,0.78) 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-top: 110px;
  padding-bottom: 80px;
  z-index: 2;
}

.hero-top {
  display: flex;
  align-items: baseline;
  gap: 14px;
}

.hero-line {
  width: 36px;
  height: 1px;
  background: rgba(255,255,255,0.7);
}

.hero-eyebrow { color: rgba(255,255,255,0.9); }

.hero-headline {
  font-size: clamp(56px, 11vw, 168px);
  margin: 0;
  max-width: 16ch;
}

.hero-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: 48px;
  flex-wrap: wrap;
  gap: 24px;
}

.hero-sub {
  max-width: 480px;
  font-size: 18px;
  line-height: 1.5;
  margin: 0;
  color: rgba(255,255,255,0.94);
}

.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-cta-primary {
  background: var(--paper);
  color: var(--ink);
}

.hero-cta-secondary {
  color: var(--paper);
  border-color: rgba(255,255,255,0.45);
}

.hero-strip {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px 0;
  background: rgba(8, 28, 42, 0.45);
  backdrop-filter: blur(8px);
  border-top: 1px solid rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.92);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  z-index: 2;
}

.marquee-row {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

/* ============================================================
   Section Head
   ============================================================ */

.section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: end;
}

.section-title {
  font-size: clamp(48px, 6.5vw, 96px);
  margin: 16px 0 0;
}

.section-head-right {
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 480px;
  margin: 0;
}

/* ============================================================
   Photo placeholders
   ============================================================ */

.photo {
  position: relative;
  overflow: hidden;
  border-radius: var(--rad-md);
  background: var(--mist);
  isolation: isolate;
}

.photo::after {
  content: attr(data-label);
  position: absolute;
  left: 14px;
  bottom: 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.85);
  text-shadow: 0 1px 2px rgba(0,0,0,0.4);
  z-index: 2;
  pointer-events: none;
}

.photo--surface {
  background:
    repeating-linear-gradient(95deg, rgba(255,255,255,0.15) 0 2px, transparent 2px 18px),
    repeating-linear-gradient(85deg, rgba(255,255,255,0.08) 0 1px, transparent 1px 12px),
    linear-gradient(180deg, #cfe9f3 0%, #6fb6d6 60%, #1f6a8c 100%);
}

.photo--lane {
  background:
    linear-gradient(180deg, transparent 0 38%, rgba(255,235,150,0.85) 38% 41%, transparent 41% 60%, rgba(255,235,150,0.85) 60% 63%, transparent 63% 100%),
    linear-gradient(180deg, #2e9bc4 0%, #0e5a82 100%);
}

.photo--tile {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.18), transparent 30%),
    repeating-conic-gradient(from 0deg, #4fb3d9 0deg 90deg, #5fc1e3 90deg 180deg) 0 0 / 36px 36px,
    #4fb3d9;
}

.photo--pool {
  background:
    radial-gradient(ellipse at 30% 20%, rgba(255,255,255,0.45), transparent 50%),
    radial-gradient(ellipse at 75% 80%, rgba(255,255,255,0.25), transparent 55%),
    linear-gradient(160deg, #6ec7e2 0%, #2a8db0 45%, #0a3d62 100%);
}

.photo--sun {
  background:
    radial-gradient(circle at 70% 30%, rgba(255,225,170,0.9), rgba(255,180,90,0.3) 25%, transparent 50%),
    linear-gradient(180deg, #fbd9a0 0%, #e88a4e 40%, #6b3f1d 100%);
}

.photo--deep {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(120,200,230,0.7), transparent 60%),
    linear-gradient(180deg, #1a5d80 0%, #062c43 70%, #03192a 100%);
}

.photo--mist {
  background:
    radial-gradient(ellipse at 50% 60%, rgba(255,255,255,0.6), transparent 70%),
    linear-gradient(170deg, #e8f4fa 0%, #b8dcec 60%, #7fb8d2 100%);
}

.photo--grain::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 3px 3px;
  mix-blend-mode: overlay;
  z-index: 1;
  pointer-events: none;
}

/* ============================================================
   Offerings
   ============================================================ */

.offering-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 64px;
}

.offering-card {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.offering-photo {
  aspect-ratio: 4/3;
  border-radius: 0;
}

.offering-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.offering-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}

.offering-title { font-size: 36px; margin: 0; }
.offering-desc { margin: 0; color: var(--ink-2); line-height: 1.55; }

.offering-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }

.meta-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 5px 10px;
  border-radius: var(--rad-pill);
  border: 1px solid var(--line-strong);
}

.offering-spacer { flex: 1; }
.offering-cta { align-self: flex-start; margin-top: 16px; }

/* ============================================================
   Cards
   ============================================================ */

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--rad-md);
  padding: 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover { box-shadow: var(--shadow-md); border-color: var(--line-strong); }

/* ============================================================
   Approach
   ============================================================ */

.approach-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.approach-headline {
  font-size: clamp(48px, 6vw, 88px);
  margin: 24px 0 32px;
}

.approach-body {
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 480px;
}

.stats-row { display: flex; gap: 48px; margin-top: 48px; }

.stat-value { font-size: 48px; }
.stat-label {
  font-size: 11px;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 4px;
}

.pillar-list { display: flex; flex-direction: column; }

.pillar {
  padding: 28px 0;
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 24px;
}

.pillar--border { border-bottom: 1px solid var(--line); }

.pillar-num { font-size: 12px; color: var(--ink-3); padding-top: 6px; }
.pillar-title { font-size: 28px; margin: 0 0 8px; }
.pillar-desc { margin: 0; color: var(--ink-2); line-height: 1.55; }

/* ============================================================
   Testimonials
   ============================================================ */

.quote-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
}

.quote-card {
  margin: 0;
  padding: 32px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--rad-md);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.quote-mark {
  font-family: var(--font-display);
  font-size: 60px;
  line-height: 0.5;
  color: var(--pool);
  margin-bottom: 12px;
}

.quote-text {
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1.25;
  margin: 0;
  flex: 1;
}

.quote-footer { margin-top: 24px; font-size: 13px; }
.quote-author { font-weight: 600; }
.quote-role { color: var(--ink-3); margin-top: 2px; }

/* ============================================================
   FAQ
   ============================================================ */

.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  align-items: start;
}

.faq-headline {
  font-size: clamp(48px, 6vw, 88px);
  margin: 16px 0;
}

.faq-sub { color: var(--ink-2); max-width: 380px; }

.faq-item { border-bottom: 1px solid var(--line-strong); }
.faq-item--first { border-top: 1px solid var(--line-strong); }

.faq-trigger {
  width: 100%;
  text-align: left;
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  cursor: pointer;
}

.faq-question {
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1.2;
  padding-right: 24px;
}

.faq-icon {
  font-size: 22px;
  transition: transform 0.3s;
  flex-shrink: 0;
}

.faq-trigger[aria-expanded="true"] .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.faq-answer--open { max-height: 200px; }

.faq-answer p {
  padding-bottom: 24px;
  margin: 0;
  color: var(--ink-2);
  line-height: 1.6;
  max-width: 560px;
}

/* ============================================================
   Footer
   ============================================================ */

.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding-top: 80px;
  overflow: hidden;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 64px;
}

.footer-desc {
  margin-top: 24px;
  max-width: 320px;
  color: rgba(255,255,255,0.65);
  line-height: 1.55;
}

.footer-logo { filter: brightness(0) invert(1); }

.footer-socials { display: flex; gap: 12px; margin-top: 22px; }

.social-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.9);
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.15s;
}

.social-icon:hover {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
  transform: translateY(-2px);
}

.footer-col-title {
  font-family: var(--font-mono);
  font-size: 11px;
  opacity: 0.55;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 14px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a { color: rgba(255,255,255,0.85); font-size: 14px; }
.footer-col a:hover { color: #fff; }

.footer-wordmark-wrap {
  overflow: hidden;
  border-top: 1px solid rgba(255,255,255,0.12);
  display: flex;
  justify-content: center;
}

.footer-wordmark {
  font-size: clamp(48px, 13vw, 160px);
  line-height: 0.95;
  text-align: center;
  margin: 0;
  padding-top: 40px;
  color: var(--paper);
  letter-spacing: -0.03em;
  white-space: nowrap;
  flex-shrink: 0;
}

.footer-wordmark em { color: var(--pool); font-style: italic; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  padding: 20px 32px;
  flex-wrap: wrap;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ============================================================
   Legal Pages
   ============================================================ */

.legal-page { padding-top: 160px; }

.legal-title {
  font-size: clamp(48px, 6vw, 88px);
  margin: 16px 0 0;
}

.legal-updated {
  font-size: 12px;
  color: var(--ink-3);
  margin-top: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.legal-content {
  max-width: 720px;
  margin-top: 48px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-2);
}

.legal-content h2 {
  font-family: var(--font-display);
  font-size: 32px;
  color: var(--ink);
  margin: 48px 0 16px;
  font-weight: 400;
}

.legal-content h3 {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--ink);
  margin: 32px 0 12px;
  font-weight: 400;
}

.legal-content p { margin: 0 0 16px; }
.legal-content ul { padding-left: 20px; margin: 0 0 16px; }
.legal-content li { margin-bottom: 8px; }
.legal-content a { color: var(--deep); text-decoration: underline; }

/* ============================================================
   Contact Page
   ============================================================ */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
  padding-top: 80px;
}

.contact-headline {
  font-size: clamp(48px, 6vw, 88px);
  margin: 16px 0 24px;
}

.contact-sub {
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 420px;
}

.contact-info {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-label {
  font-size: 10px;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.contact-row a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  grid-column: span 2;
}

.form-field--half { grid-column: span 1; }

.form-label {
  font-size: 11px;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.contact-form input,
.contact-form textarea {
  padding: 14px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--paper);
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--ink);
}

.form-field--error input,
.form-field--error textarea {
  border-color: var(--accent);
}

.form-error {
  font-size: 12px;
  color: var(--accent);
}

.contact-submit {
  grid-column: span 2;
  justify-content: center;
  margin-top: 8px;
}

.contact-success {
  text-align: center;
  padding: 60px 0;
}

.contact-success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 20px;
}

.contact-success p {
  font-size: 18px;
  color: var(--ink-2);
  max-width: 400px;
  margin: 0 auto;
  line-height: 1.55;
}

/* ============================================================
   Scroll Reveal
   ============================================================ */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: calc(var(--delay, 0) * 0.08s);
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 1024px) {
  .offering-grid,
  .quote-grid {
    grid-template-columns: 1fr 1fr;
  }

  .approach-grid,
  .faq-grid,
  .section-head,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 900px) {
  .section { padding: 72px 0; }
}

@media (max-width: 720px) {
  /* Use longhand so we don't accidentally reset padding-top/bottom on
     elements that also carry a layout class (e.g. .hero-content.container) */
  .container { padding-left: 20px; padding-right: 20px; }
  .nav-links { display: none; }

  /* Hero — restore vertical padding and tighten layout */
  .hero-content {
    padding-top: 90px;
    padding-bottom: 64px;
  }

  .hero-headline {
    font-size: clamp(36px, 12vw, 56px);
  }

  .hero-sub {
    font-size: 16px;
    max-width: 100%;
  }

  .hero-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin-top: 24px;
  }

  .hero-ctas { flex-wrap: wrap; }

  .offering-grid,
  .quote-grid {
    grid-template-columns: 1fr;
  }

  .marquee-row > *:nth-child(n+3) { display: none; }

  .stats-row { gap: 24px; flex-wrap: wrap; }
}

@media (max-width: 480px) {
  /* Hide the nav "Book a session" button at very small screens —
     the hero already has a prominent CTA */
  .nav-cta { display: none; }

  .hero-content {
    padding-top: 80px;
    padding-bottom: 60px;
  }

  .hero-headline {
    font-size: clamp(32px, 11vw, 48px);
  }

  .btn-lg {
    padding: 14px 20px;
    font-size: 15px;
  }
}


/* ========================================================================= */
/* BOOKING PAGE                                                              */
/* ========================================================================= */

.booking-section { padding-top: 140px; }

.booking-headline {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  margin-bottom: 8px;
}

.booking-sub {
  color: var(--ink-muted);
  font-size: 1.05rem;
  max-width: 520px;
  margin-bottom: 48px;
}

/* Steps */
.booking-step-title {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 20px;
}

/* Option cards (session types + locations) */
.booking-options {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.booking-option-card,
.booking-location-card {
  background: var(--paper);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: var(--font-sans);
}

.booking-option-card:hover,
.booking-location-card:hover {
  border-color: var(--pool);
}

.booking-option-card.selected,
.booking-location-card.selected {
  border-color: var(--pool);
  box-shadow: 0 0 0 3px rgba(86, 178, 193, 0.2);
  background: rgba(86, 178, 193, 0.06);
}

.booking-option-name {
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
  margin-bottom: 6px;
}

.booking-option-meta {
  display: flex;
  gap: 12px;
  font-size: 0.82rem;
  color: var(--ink-muted);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.booking-option-desc {
  font-size: 0.9rem;
  color: var(--ink-muted);
  line-height: 1.5;
}

/* Empty state */
.booking-empty {
  color: var(--ink-muted);
  font-style: italic;
  padding: 20px 0;
}

/* ---- Calendly-style calendar panel ---- */

.cal-panel {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 0;
  background: var(--paper);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-top: 32px;
  max-width: 1000px;
}

.cal-left {
  padding: 28px 32px;
}

.cal-right {
  border-left: 2px solid var(--border);
  padding: 28px 24px;
  min-height: 380px;
}

/* Location bar */
.cal-location-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding: 8px 12px;
  background: rgba(0,0,0,.03);
  border-radius: 10px;
}

.cal-location-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-family: var(--font-mono);
}

.cal-location-select {
  -webkit-appearance: none;
  appearance: none;
  padding: 6px 28px 6px 12px;
  border: 1.5px solid var(--border);
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 500;
  font-family: var(--font-sans);
  background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 10px center;
  color: var(--ink);
  cursor: pointer;
  transition: border-color .2s;
}
.cal-location-select:focus {
  outline: none;
  border-color: var(--pool);
}

.cal-price {
  margin-left: auto;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}

/* Month navigation */
.cal-month-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.cal-month-label {
  font-weight: 600;
  font-size: 1.05rem;
}

.cal-nav-btn {
  background: none;
  border: 2px solid var(--border);
  border-radius: 6px;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--ink);
  transition: border-color .2s, background .2s;
  font-family: inherit;
}
.cal-nav-btn:hover { border-color: var(--pool); background: rgba(86,178,193,.06); }
.cal-nav-btn--disabled {
  opacity: .25;
  cursor: default;
  pointer-events: none;
}

/* Calendar grid */
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.cal-header {
  text-align: center;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
  padding: 10px 0;
}

.cal-day {
  aspect-ratio: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 0.93rem;
  font-weight: 500;
  border: none;
  background: none;
  font-family: var(--font-sans);
  padding: 0;
  line-height: 1;
}

/* Available — clickable */
.cal-day--available {
  color: var(--ink);
  cursor: pointer;
  transition: background .15s, color .15s;
  font-weight: 600;
}
.cal-day--available:hover {
  background: var(--pool);
  color: var(--paper);
}
.cal-day--available.cal-day--selected {
  background: var(--pool);
  color: var(--paper);
}

/* Disabled — greyed out (in month but no availability or past) */
.cal-day--disabled {
  color: var(--ink-muted);
  opacity: .35;
  cursor: default;
}

.cal-day--past {
  opacity: .2;
}

/* Outside current month — blank */
.cal-day--outside {
  visibility: hidden;
}

/* Today ring */
.cal-day--today {
  box-shadow: inset 0 0 0 2px var(--pool);
}

/* ---- Slots (right panel) ---- */

.cal-slots-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 260px;
  text-align: center;
  color: var(--ink-muted);
  gap: 12px;
  font-size: 0.85rem;
  hyphens: none;
}

.cal-slots {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cal-slots-date {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 16px;
  color: var(--ink);
  padding-bottom: 12px;
  border-bottom: 1.5px solid var(--border);
}

.cal-slot {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: var(--paper);
  transition: border-color .2s, box-shadow .2s;
}
.cal-slot:hover { border-color: var(--pool); box-shadow: 0 2px 12px rgba(86,178,193,.12); }

.cal-slot--full {
  opacity: .45;
  pointer-events: none;
}

.cal-slot-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.cal-slot-time {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}

.cal-slot-meta {
  display: flex;
  align-items: center;
  gap: 6px;
}

.cal-slot-price {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}

.cal-slot-spots {
  font-size: 0.72rem;
  color: var(--ink-muted);
  font-family: var(--font-mono);
  white-space: nowrap;
}

.cal-slot-btn { flex-shrink: 0; }

.cal-slot-full {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  color: var(--ink-muted);
}

.cal-slots-empty {
  color: var(--ink-muted);
  font-style: italic;
  font-size: 0.9rem;
  padding: 16px 0;
}

/* ---- Calendar / booking responsive ---- */
@media (max-width: 720px) {
  .booking-section { padding-top: 100px; }

  .booking-options {
    grid-template-columns: 1fr;
  }

  .cal-panel {
    grid-template-columns: 1fr;
  }
  .cal-right {
    border-left: none;
    border-top: 2px solid var(--border);
    min-height: auto;
  }
  .cal-left { padding: 20px 16px; }
  .cal-right { padding: 20px 16px; }

  .cal-location-bar { flex-wrap: wrap; gap: 8px; }
  .cal-price { margin-left: 0; width: 100%; margin-top: 0; }

  .cal-slot {
    gap: 8px;
    padding: 10px 12px;
  }
}

@media (max-width: 480px) {
  .booking-section { padding-top: 88px; }
  .nav-cta { display: none; }

  .cal-grid { gap: 2px; }
  .cal-header { font-size: 0.65rem; padding: 6px 0; }
  .cal-day { font-size: 0.82rem; }

  .cal-slot-time { font-size: 0.82rem; }
}


/* ============================================================
   Cart drawer
   ============================================================ */

.cart-toggle {
  position: relative;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 6px;
  line-height: 1;
  transition: color .2s;
}
.cart-toggle:hover { color: var(--ink); }
.scrolled .cart-toggle { color: var(--ink); }
.scrolled .cart-toggle:hover { opacity: .7; }

.cart-badge {
  position: absolute;
  top: -4px;
  right: -6px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* Cart add toast */
#cart-toast {
  position: fixed;
  bottom: 28px;
  right: 28px;
  background: var(--ink);
  color: var(--paper);
  padding: 11px 18px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.88rem;
  font-weight: 500;
  font-family: var(--font-sans);
  z-index: 9999;
  transform: translateY(14px);
  opacity: 0;
  transition: transform 0.22s ease, opacity 0.22s ease;
  pointer-events: none;
  box-shadow: 0 4px 16px rgba(12,34,51,.18);
}
#cart-toast.cart-toast--visible {
  transform: translateY(0);
  opacity: 1;
}

.cart-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(12, 34, 51, 0.4);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.cart-drawer-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 380px;
  max-width: 90vw;
  background: var(--paper);
  z-index: 1000;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
}

.cart-drawer.open {
  transform: translateX(0);
}

.cart-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
}

.cart-drawer-header h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 22px;
}

.cart-drawer-close {
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: var(--ink-2);
  line-height: 1;
  padding: 4px;
}

#cart-drawer-content {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
}

.cart-items {
  list-style: none;
  padding: 0;
  margin: 0;
}

.cart-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  gap: 8px;
}

.cart-item-info {
  flex: 1;
}

.cart-item-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}

.cart-item-price {
  display: block;
  font-size: 13px;
  color: var(--ink-2);
  margin-top: 2px;
}

.cart-item-remove {
  background: none;
  border: none;
  font-size: 20px;
  color: var(--ink-3);
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
}
.cart-item-remove:hover {
  color: var(--accent);
}

.cart-summary {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line-strong);
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  font-size: 14px;
  color: var(--ink-2);
}

.cart-discount {
  color: var(--pool);
}

.cart-total {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  padding-top: 8px;
}

.cart-voucher-form {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.cart-voucher-input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--rad-sm);
  font-size: 14px;
  font-family: var(--font-body);
  text-transform: uppercase;
  background: #fff;
}

.cart-voucher-error {
  color: #c0392b;
  font-size: 13px;
  margin-top: 6px;
}

.cart-voucher-remove {
  background: none;
  border: none;
  color: var(--ink-3);
  cursor: pointer;
  font-size: 16px;
  padding: 0 4px;
}

.cart-checkout-btn {
  display: block;
  width: 100%;
  margin-top: 20px;
  text-align: center;
}

.cart-clear-btn {
  display: block;
  width: 100%;
  margin-top: 8px;
  background: none;
  border: none;
  color: var(--ink-3);
  font-size: 13px;
  cursor: pointer;
  text-align: center;
  padding: 6px;
}
.cart-clear-btn:hover {
  color: var(--accent);
}

.cart-empty {
  text-align: center;
  color: var(--ink-3);
  padding: 40px 0;
}


/* ============================================================
   Checkout page
   ============================================================ */

.checkout-section {
  padding: 120px 0 80px;
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 40px;
}

.checkout-summary h2,
.checkout-form-wrap h2 {
  font-family: var(--font-display);
  font-size: 20px;
  margin-bottom: 16px;
}

.checkout-items {
  list-style: none;
  padding: 0;
  margin: 0;
}

.checkout-item {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.checkout-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 14px;
}

.checkout-discount {
  color: var(--pool);
}

.checkout-total {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  padding-top: 12px;
  border-top: 2px solid var(--ink);
  margin-top: 8px;
}

.checkout-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}

.form-optional {
  font-weight: 400;
  color: var(--ink-3);
}

.form-input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--rad-sm);
  font-size: 15px;
  font-family: var(--font-body);
  background: #fff;
  transition: border-color 0.15s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--pool);
  box-shadow: 0 0 0 3px rgba(79, 179, 217, 0.15);
}

.checkout-pay-btn {
  font-size: 16px;
  padding: 14px 24px;
}

.checkout-credit-offer {
  margin-bottom: 12px;
  padding: 12px 14px;
  background: var(--surface-2, #f5f3ee);
  border: 1px solid var(--border, #e0ddd6);
  border-radius: 10px;
}

.checkout-credit-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
}

.checkout-credit-label input[type="checkbox"] {
  margin-top: 2px;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  accent-color: var(--ink);
  cursor: pointer;
}

.checkout-credit-meta {
  font-weight: 400;
  font-size: 13px;
  color: var(--ink-2);
}

.checkout-terms {
  margin-bottom: 16px;
}

.checkout-terms-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.5;
  cursor: pointer;
}

.checkout-terms-label input[type="checkbox"] {
  margin-top: 2px;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  accent-color: var(--ink);
  cursor: pointer;
}

.checkout-terms-label a {
  color: var(--ink);
  text-decoration: underline;
}

.checkout-secure-note {
  font-size: 13px;
  color: var(--ink-3);
  text-align: center;
}

.alert {
  padding: 12px 16px;
  border-radius: var(--rad-sm);
  margin-bottom: 20px;
  font-size: 14px;
}

.alert--success {
  background: #edf7f0;
  color: #1a7a4a;
  border: 1px solid #a8d5b8;
}

.alert--error {
  background: #fef0ef;
  color: #c0392b;
  border: 1px solid #f5c6cb;
}


/* ============================================================
   Success / Cancel pages
   ============================================================ */

.success-section,
.cancel-section {
  padding: 120px 0 80px;
}

.success-icon {
  width: 64px;
  height: 64px;
  background: var(--pool);
  color: #fff;
  font-size: 32px;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}

.success-lead {
  font-size: 17px;
  color: var(--ink-2);
  margin-bottom: 32px;
}

.success-details {
  text-align: left;
  max-width: 420px;
  margin: 0 auto;
  background: #fff;
  padding: 24px;
  border-radius: var(--rad-md);
  box-shadow: var(--shadow-sm);
}

.success-details h2 {
  font-family: var(--font-display);
  font-size: 18px;
  margin-bottom: 12px;
}

.success-item {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.success-total {
  display: flex;
  justify-content: space-between;
  padding-top: 12px;
  font-size: 16px;
  font-weight: 700;
}


/* ============================================================
   Responsive — cart + checkout
   ============================================================ */

@media (max-width: 720px) {
  .checkout-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}


/* ============================================================
   Shop section
   ============================================================ */

.section--cream {
  background: var(--cream);
}

/* Shipping notice */
.shop-shipping-notice {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  background: rgba(0,0,0,0.06);
  border-radius: 20px;
  padding: 5px 14px;
  margin-top: 16px;
}

/* Filter tabs */
.shop-filters {
  display: flex;
  gap: 8px;
  margin-top: 40px;
  margin-bottom: 32px;
}

.filter-tab {
  padding: 10px 18px;
  border-radius: var(--rad-pill);
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-strong);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.filter-tab:hover {
  border-color: var(--ink);
}

.filter-tab.active {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

/* Product grid */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Product card */
.product-card {
  background: var(--paper);
  border-radius: var(--rad-md);
  overflow: hidden;
  border: 1px solid var(--line);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.product-photo {
  aspect-ratio: 1 / 1;
  border-radius: 0;
  overflow: hidden;
}

.product-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.product-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.product-name {
  font-size: 26px;
  margin: 0;
}

.product-price {
  font-size: 14px;
}

.product-color {
  font-size: 11px;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.product-add {
  margin-top: 16px;
  justify-content: center;
  width: 100%;
}

/* Cart item updates for product support */
.cart-item {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.cart-item:last-child {
  border-bottom: none;
}

.cart-item-thumb {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
}

.cart-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.cart-item-label {
  font-weight: 600;
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cart-item-meta {
  font-size: 12px;
  color: var(--ink-3);
}

.cart-item-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cart-item-price {
  font-family: var(--font-mono);
  font-size: 13px;
  white-space: nowrap;
}

.cart-item-remove {
  font-size: 18px;
  color: var(--ink-3);
  padding: 2px 6px;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.15s;
}

.cart-item-remove:hover {
  color: var(--ink);
}

/* Quantity controls */
.cart-qty-controls {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--rad-sm);
  overflow: hidden;
}

.cart-qty-btn {
  width: 28px;
  height: 28px;
  font-size: 14px;
  font-weight: 600;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  transition: background 0.15s;
}

.cart-qty-btn:hover:not(:disabled) {
  background: var(--paper-2);
}

.cart-qty-btn:disabled {
  color: var(--ink-3);
  cursor: default;
}

.cart-qty-value {
  width: 28px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 13px;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  line-height: 28px;
}

/* Empty cart styled */
.cart-empty {
  text-align: center;
  padding: 60px 0;
}

.cart-empty-title {
  font-size: 40px;
  margin-bottom: 8px;
}

.cart-empty-sub {
  color: var(--ink-2);
  margin-bottom: 24px;
}


/* ============================================================
   Responsive — shop
   ============================================================ */

@media (max-width: 960px) {
  .shop-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .shop-grid {
    grid-template-columns: 1fr;
  }
  .shop-filters {
    flex-wrap: wrap;
  }
  .product-name {
    font-size: 22px;
  }
  .cart-item {
    grid-template-columns: 48px 1fr auto;
  }
  .cart-item-thumb {
    width: 48px;
    height: 48px;
  }
}


/* ============================================================
   Auth pages (login, register)
   ============================================================ */

.auth-container {
  display: flex;
  justify-content: center;
  padding: 80px 0 120px;
}

.auth-card {
  width: 100%;
  max-width: 440px;
}

.auth-title {
  font-size: 48px;
  margin-bottom: 8px;
}

.auth-sub {
  color: var(--ink-2);
  margin-bottom: 32px;
}

.auth-error {
  background: rgba(220, 60, 60, 0.08);
  border: 1px solid rgba(220, 60, 60, 0.2);
  border-radius: var(--rad-sm);
  padding: 12px 16px;
  margin-bottom: 24px;
  color: #b02020;
  font-size: 14px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.form-optional {
  font-weight: 400;
  color: var(--ink-3);
}

.form-error {
  font-size: 13px;
  color: #b02020;
  margin: 0;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.auth-submit {
  margin-top: 8px;
  justify-content: center;
  width: 100%;
}

.auth-footer {
  margin-top: 24px;
  text-align: center;
  font-size: 14px;
  color: var(--ink-2);
}

.auth-footer a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Multi-method login layout */
.auth-method {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.auth-method__label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
}

.auth-method__hint {
  font-size: 13px;
  color: var(--ink-2);
  margin: 0;
}

.auth-method__row {
  display: flex;
  gap: 10px;
}

.auth-method__row .form-input {
  flex: 1;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 4px 0;
  color: var(--ink-3);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.auth-method--collapsible summary.auth-method__toggle {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 6px;
  user-select: none;
}

.auth-method--collapsible summary.auth-method__toggle::after {
  content: "›";
  font-size: 16px;
  transition: transform 0.15s;
}

.auth-method--collapsible[open] summary.auth-method__toggle::after {
  transform: rotate(90deg);
}

.auth-form--inner {
  margin-top: 16px;
}

.auth-card--centered {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.auth-icon {
  margin-bottom: 20px;
}

.auth-hint {
  font-size: 13px;
  color: var(--ink-3);
  margin-top: 16px;
}

.auth-hint a {
  color: var(--ink-2);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.btn-full {
  width: 100%;
  justify-content: center;
}

.auth-method-note {
  font-size: 12px;
  color: var(--ink-3);
  margin: 8px 0 0;
  text-align: center;
}

.auth-password-toggle {
  text-align: center;
  margin: 4px 0 0;
}

.auth-text-btn {
  background: none;
  border: none;
  padding: 0;
  font-size: 13px;
  color: var(--ink-3);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-family: var(--font-body);
}

.auth-text-btn:hover {
  color: var(--ink-2);
}

.auth-password-section {
  margin-bottom: 4px;
}


/* ============================================================
   Profile page
   ============================================================ */

.profile-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 64px;
  padding: 40px 0 80px;
}

.profile-card {
  position: sticky;
  top: 100px;
}

.profile-title {
  font-size: 40px;
  margin-bottom: 4px;
}

.profile-email {
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 13px;
  margin-bottom: 32px;
}

.profile-actions {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.profile-section-title {
  font-size: 32px;
  margin-bottom: 24px;
}

.profile-empty {
  color: var(--ink-2);
}

.profile-empty a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Booking history rows */
.booking-history {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.booking-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 16px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.booking-row:first-child {
  border-top: 1px solid var(--line);
}

.booking-row-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.booking-row-type {
  font-weight: 600;
  font-size: 15px;
}

.booking-row-location {
  font-size: 12px;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.booking-row-when {
  font-size: 13px;
  color: var(--ink-2);
  white-space: nowrap;
}

.booking-status {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--rad-pill);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.booking-status--pending {
  background: rgba(228, 180, 60, 0.12);
  color: #9a7200;
}

.booking-status--confirmed {
  background: rgba(60, 180, 100, 0.12);
  color: #1a7040;
}

.booking-status--cancelled {
  background: rgba(200, 60, 60, 0.08);
  color: #a03030;
}

.booking-status--completed {
  background: rgba(79, 179, 217, 0.12);
  color: var(--deep);
}

@media (max-width: 768px) {
  .profile-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .profile-card {
    position: static;
  }
  .booking-row {
    grid-template-columns: 1fr auto;
  }
  .booking-row-when {
    grid-column: 1 / -1;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   Package credits (profile page)
   ============================================================ */

.package-credits-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 48px;
}

.package-credit-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.package-credit-row:first-child {
  border-top: 1px solid var(--line);
}

.package-credit-row--spent {
  opacity: 0.5;
}

.package-credit-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.package-credit-name {
  font-weight: 600;
  font-size: 15px;
}

.package-credit-location {
  font-size: 12px;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.package-credit-type {
  font-size: 13px;
  color: var(--ink-2);
}

.package-credit-status {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.package-credit-count {
  font-size: 14px;
  font-weight: 600;
  color: #1a7040;
}

.package-credit-spent {
  font-size: 13px;
  color: var(--ink-3);
}

/* ============================================================
   Packages listing page
   ============================================================ */

.packages-header {
  text-align: center;
  padding: 60px 0 48px;
}

.packages-header .h-display {
  font-size: clamp(36px, 6vw, 64px);
  margin-bottom: 12px;
}

.packages-sub {
  color: var(--ink-2);
  max-width: 480px;
  margin: 0 auto;
}

.packages-group {
  margin-bottom: 60px;
}

.packages-group-title {
  font-family: var(--font-display);
  font-size: 28px;
  margin-bottom: 8px;
}

.packages-group-desc {
  color: var(--ink-2);
  margin-bottom: 28px;
}

.packages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.package-card {
  background: var(--paper-2);
  border-radius: var(--rad-md);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.package-card-header {
  padding: 24px 24px 16px;
  border-bottom: 1px solid var(--line);
}

.package-card-name {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 4px;
}

.package-card-location {
  font-size: 12px;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0;
}

.package-card-body {
  padding: 20px 24px;
  flex: 1;
}

.package-sessions {
  font-size: 14px;
  color: var(--ink-2);
  margin: 0 0 4px;
}

.package-price {
  font-size: 32px;
  font-weight: 700;
  margin: 0 0 4px;
  font-family: var(--font-display);
}

.package-per-session {
  font-size: 14px;
  color: var(--pool);
  font-weight: 600;
  margin: 0 0 8px;
}

.package-validity {
  font-size: 12px;
  color: var(--ink-3);
  margin: 0;
}

.package-card-footer {
  padding: 16px 24px 24px;
}

.btn-block {
  display: block;
  width: 100%;
  text-align: center;
}

.packages-empty {
  text-align: center;
  padding: 48px 0;
  color: var(--ink-2);
}

.packages-empty a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.packages-note {
  max-width: 600px;
  margin: 0 auto 80px;
  padding: 32px;
  background: var(--mist);
  border-radius: var(--rad-md);
}

.packages-note h3 {
  font-size: 18px;
  margin: 0 0 12px;
}

.packages-note p {
  color: var(--ink-2);
  font-size: 14px;
  margin: 0 0 8px;
}

.packages-note p:last-child {
  margin-bottom: 0;
}

/* ============================================================
   Calendar panel — package nudge
   ============================================================ */

.cal-package-nudge {
  background: var(--mist);
  border-radius: var(--rad-sm);
  padding: 12px 16px;
  margin-bottom: 16px;
}

.cal-package-nudge-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--pool);
  margin-bottom: 10px;
}

.cal-package-offer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-top: 1px solid rgba(79,179,217,0.18);
}

.cal-package-offer:first-of-type {
  border-top: none;
  padding-top: 0;
}

.cal-package-offer-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 13px;
}

.cal-package-offer-info strong {
  font-size: 14px;
}

.cal-package-offer-info span {
  color: var(--ink-2);
}

.cal-package-savings {
  color: #1a7040 !important;
  font-weight: 600;
}

/* ============================================================
   Cart drawer — package credits hint
   ============================================================ */

.cart-credits-hint {
  font-size: 13px;
  color: #1a7040;
  background: rgba(60, 180, 100, 0.08);
  border-radius: var(--rad-sm);
  padding: 10px 12px;
  margin: 12px 0;
}
