/* Dr Johannalie Knoetze — one-screen layout, brand colours from the logo */
:root {
  --brown: #421a00;
  --brown-soft: #6b3a17;
  --tan: #debc8d;
  --cream: #fbf6ee;
  --orange: #ef6203;
  --green: #00a31a;
  --green-dark: #00642a;
  --ink: #2b1606;
  --muted: #6e5a48;
  --glass: rgba(255, 250, 243, 0.78);
  --glass-strong: rgba(255, 250, 243, 0.94);
  --glass-line: rgba(255, 255, 255, 0.65);
  --shadow: 0 12px 40px rgba(43, 22, 6, 0.18);
  --heading: 'Fraunces', Georgia, serif;
  --body: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gutter: clamp(16px, 3vw, 40px);
}

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

html,
body {
  height: 100%;
}

body {
  margin: 0;
  overflow: hidden; /* one screen, no page scroll — panels scroll on their own */
  font-family: var(--body);
  color: var(--ink);
  background: var(--brown);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

.icon {
  width: 22px;
  height: 22px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ── Background ─────────────────────────────────────────────── */
.backdrop {
  position: fixed;
  inset: 0;
  background: url('/images/playroom.webp') center / cover no-repeat;
}

.backdrop-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.backdrop-video.is-playing {
  opacity: 1;
}

.scrim {
  position: fixed;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(43, 22, 6, 0.78) 0%, rgba(43, 22, 6, 0.55) 40%, rgba(43, 22, 6, 0.12) 75%),
    linear-gradient(0deg, rgba(43, 22, 6, 0.45) 0%, rgba(43, 22, 6, 0) 30%),
    rgba(43, 22, 6, 0.1);
}

/* ── Screen layout ──────────────────────────────────────────── */
.screen {
  position: relative;
  height: 100vh;
  height: 100dvh;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto 1fr auto;
  grid-template-areas:
    'top  top'
    'rail hero'
    'dock dock';
  gap: 24px var(--gutter);
  padding: max(var(--gutter), env(safe-area-inset-top)) max(var(--gutter), env(safe-area-inset-right))
    max(20px, env(safe-area-inset-bottom)) max(var(--gutter), env(safe-area-inset-left));
}

/* Top bar */
.top {
  grid-area: top;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  padding: 6px 18px 6px 6px;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--glass-line);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  box-shadow: var(--shadow);
}

.brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 50%;
  background: #f1f1f1;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-name {
  font-family: var(--heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--brown);
}

.brand-sub {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  background: var(--orange);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: 0.01em;
  white-space: nowrap;
  box-shadow: 0 10px 28px rgba(239, 98, 3, 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(239, 98, 3, 0.55);
}

.cta .icon {
  width: 18px;
  height: 18px;
  stroke-width: 2.2;
}

/* Hero */
.hero {
  grid-area: hero;
  align-self: center;
  max-width: 640px;
  color: #fff;
}

.hero h1 {
  font-family: var(--heading);
  font-weight: 700;
  font-size: clamp(2.2rem, 4.8vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin: 0 0 18px;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.3);
}

.hero h1 em {
  font-style: normal;
  color: var(--tan);
}

.hero p {
  margin: 0;
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}

/* Left rail — services, expands on hover like the original site */
.rail {
  grid-area: rail;
  align-self: center;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px;
  border-radius: 999px;
  background: rgba(255, 250, 243, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  width: 86px;
  align-items: flex-start; /* items grow out to the right over the page on hover */
}

.rail-item {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 60px;
  width: 60px;
  padding: 0 19px;
  border-radius: 999px;
  overflow: hidden;
  white-space: nowrap;
  text-decoration: none;
  color: var(--brown);
  font-weight: 700;
  background: var(--glass-strong);
  box-shadow: 0 6px 18px rgba(43, 22, 6, 0.15);
  transition: width 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), background 0.2s ease;
}

.rail-item span {
  opacity: 0;
  transition: opacity 0.2s ease;
}

.rail-item:hover,
.rail-item:focus-visible {
  width: 240px;
  background: #fff;
}

.rail-item:hover span,
.rail-item:focus-visible span {
  opacity: 1;
}

.rail-item:nth-child(1) .icon {
  color: var(--orange);
}

.rail-item:nth-child(2) .icon {
  color: var(--brown);
}

.rail-item:nth-child(3) .icon {
  color: var(--green-dark);
}

/* Bottom dock */
.dock {
  grid-area: dock;
  justify-self: center;
  display: flex;
  gap: 6px;
  padding: 8px;
  border-radius: 22px;
  background: var(--glass);
  border: 1px solid var(--glass-line);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  box-shadow: var(--shadow);
}

.dock-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 16px;
  text-decoration: none;
  color: var(--brown);
  font-weight: 700;
  transition: background 0.2s ease;
}

.dock-item:hover {
  background: rgba(66, 26, 0, 0.08);
}

.video-toggle {
  position: fixed;
  right: max(var(--gutter), env(safe-area-inset-right));
  bottom: max(24px, env(safe-area-inset-bottom));
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--glass-line);
  background: var(--glass);
  color: var(--brown);
  cursor: pointer;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.video-toggle[hidden] {
  display: none;
}

.video-toggle .icon {
  width: 18px;
  height: 18px;
}

/* ── Panels (dialogs) ───────────────────────────────────────── */
.panel {
  width: min(680px, calc(100vw - 32px));
  max-height: min(84dvh, 820px);
  padding: 0;
  border: 0;
  border-radius: 28px;
  background: var(--cream);
  color: var(--ink);
  box-shadow: 0 30px 80px rgba(20, 10, 2, 0.4);
  overflow: hidden; /* only .panel-body scrolls, so the corners stay round */
  line-height: 1.65;
}

.panel[open] {
  display: flex;
  flex-direction: column;
}

.panel-body {
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: clamp(28px, 4vw, 44px);
  scrollbar-width: thin;
  scrollbar-color: rgba(66, 26, 0, 0.28) transparent;
}

.panel-body::-webkit-scrollbar {
  width: 10px;
}

.panel-body::-webkit-scrollbar-track {
  background: transparent;
  margin: 24px 0;
}

.panel-body::-webkit-scrollbar-thumb {
  background: rgba(66, 26, 0, 0.28);
  border-radius: 999px;
  border: 3px solid var(--cream);
}

/* Keep the heading clear of the close button */
.panel-body > .kicker,
.panel-body > h2 {
  padding-right: 52px;
}

.panel-wide {
  width: min(900px, calc(100vw - 32px));
}

.panel::backdrop {
  background: rgba(43, 22, 6, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.panel[open] {
  animation: panel-in 0.32s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.panel[open]::backdrop {
  animation: fade-in 0.32s ease;
}

@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
}

.panel-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #efe5d6;
  color: var(--brown);
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(43, 22, 6, 0.12);
  transition: background 0.2s ease;
}

.panel-close:hover {
  background: #e5d7c3;
}

.panel h2:focus,
.panel:focus,
.panel-body:focus {
  outline: none;
}

.kicker {
  margin: 0 0 6px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
}

.panel h2 {
  font-family: var(--heading);
  font-size: clamp(1.8rem, 3.4vw, 2.4rem);
  line-height: 1.1;
  color: var(--brown);
  margin: 0 0 18px;
}

.panel h3 {
  font-family: var(--heading);
  font-size: 1.2rem;
  color: var(--brown);
  margin: 26px 0 12px;
}

.panel p {
  margin: 0 0 14px;
  color: var(--ink);
}

.steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 0 0 24px;
  display: grid;
  gap: 12px;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding: 14px 16px 14px 60px;
  background: #fff;
  border-radius: 16px;
  color: var(--muted);
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 14px;
  top: 14px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brown);
  color: #fff;
  font-weight: 800;
  font-size: 0.9rem;
}

.steps strong {
  display: block;
  color: var(--brown);
}

.ticks {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.ticks li {
  position: relative;
  padding-left: 30px;
}

.ticks li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 0.55em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(0, 163, 26, 0.15);
}

.quals,
.pills {
  list-style: none;
  padding: 0;
  margin: 0;
}

.quals {
  display: grid;
  gap: 10px;
}

.quals li {
  display: flex;
  justify-content: space-between;
  padding: 14px 18px;
  background: #fff;
  border-radius: 14px;
  border-left: 4px solid var(--green);
  font-weight: 700;
  color: var(--brown);
}

.quals li span:last-child {
  color: var(--muted);
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pills li {
  padding: 8px 16px;
  border-radius: 999px;
  background: #fff;
  font-weight: 600;
  color: var(--brown);
}

.row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.panel-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 999px;
  background: var(--brown);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.panel-cta .icon {
  width: 18px;
  height: 18px;
}

.panel p a {
  color: var(--green-dark);
  font-weight: 700;
}

.panel-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-top: 8px;
}

.panel-link {
  font-weight: 700;
  color: var(--brown);
  text-decoration-color: rgba(239, 98, 3, 0.5);
  text-underline-offset: 4px;
}

.muted {
  color: var(--muted);
  font-size: 0.92rem;
}

.fees {
  list-style: none;
  padding: 0;
  margin: 0 0 10px;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
}

.fees li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 14px 18px;
}

.fees li + li {
  border-top: 1px solid #f0e6d8;
}

.fees li:first-child {
  background: rgba(239, 98, 3, 0.07);
}

.fees strong {
  color: var(--brown);
  white-space: nowrap;
}

.codes {
  margin: 0 0 14px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.codes div {
  background: #fff;
  border-radius: 14px;
  padding: 12px 14px;
}

.codes dt {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.codes dd {
  margin: 2px 0 0;
  font-weight: 800;
  color: var(--brown);
  font-size: 1.05rem;
}

@media (max-width: 560px) {
  .codes {
    grid-template-columns: 1fr;
  }
}

.form-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.form-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  background: #fff;
  border: 2px solid transparent;
  border-radius: 16px;
  text-decoration: none;
  color: var(--muted);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.form-link strong {
  display: block;
  color: var(--brown);
  font-size: 1.05rem;
}

.form-link:hover {
  border-color: var(--brown);
  transform: translateX(3px);
}

.form-link.primary {
  border-color: var(--orange);
}

.form-link .icon {
  color: var(--orange);
}

.contact {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 24px;
  align-items: start;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 16px;
  font-weight: 600;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 12px;
}

.contact-list .icon {
  color: var(--orange);
}

.contact-list a {
  color: var(--brown);
  text-decoration-color: rgba(239, 98, 3, 0.5);
  text-underline-offset: 4px;
}

.map {
  width: 100%;
  height: 300px;
  border: 0;
  border-radius: 18px;
  background: #eadfcf;
}

/* ── Phones & small tablets ─────────────────────────────────── */
@media (max-width: 760px) {
  .screen {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr auto auto;
    grid-template-areas:
      'top'
      'hero'
      'rail'
      'dock';
    gap: 14px;
  }

  .scrim {
    background: linear-gradient(0deg, rgba(43, 22, 6, 0.75) 0%, rgba(43, 22, 6, 0.35) 55%, rgba(43, 22, 6, 0.15) 100%);
  }

  .brand {
    padding-right: 14px;
  }

  .brand img {
    width: 40px;
    height: 40px;
  }

  .brand-name {
    font-size: 0.95rem;
  }

  .brand-sub {
    display: none;
  }

  .cta {
    padding: 11px 16px;
    font-size: 0.9rem;
  }

  .hero {
    align-self: end;
  }

  .rail {
    flex-direction: row;
    width: 100%;
    align-items: stretch;
    border-radius: 22px;
    padding: 8px;
    gap: 8px;
  }

  .rail-item,
  .rail-item:hover,
  .rail-item:focus-visible {
    flex: 1;
    width: auto;
    height: auto;
    flex-direction: column;
    gap: 4px;
    padding: 12px 6px;
    border-radius: 16px;
    font-size: 0.8rem;
    white-space: normal;
    text-align: center;
    line-height: 1.2;
  }

  .rail-item span {
    opacity: 1;
  }

  .dock {
    width: 100%;
    justify-self: stretch;
    gap: 2px;
  }

  .dock-item {
    flex: 1;
    flex-direction: column;
    gap: 4px;
    padding: 10px 4px;
    font-size: 0.75rem;
  }

  .video-toggle {
    top: auto;
    bottom: auto;
    right: max(16px, env(safe-area-inset-right));
    top: calc(max(16px, env(safe-area-inset-top)) + 64px);
  }

  .contact {
    grid-template-columns: 1fr;
  }

  .map {
    height: 220px;
  }

  .panel {
    max-height: 88dvh;
    border-radius: 24px;
  }
}

@media (max-width: 400px) {
  .brand {
    min-width: 0;
  }

  .brand-name {
    font-size: 0.85rem;
  }

  .brand img {
    width: 36px;
    height: 36px;
  }

  .cta {
    padding: 10px 14px;
  }
}

/* Very short landscape phones: keep everything on one screen */
@media (max-height: 520px) and (orientation: landscape) {
  .hero h1 {
    font-size: 1.8rem;
  }

  .rail-item {
    height: 46px;
    width: 46px;
    padding: 0 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
