/* =====================================================
   SETTINGS — change these to restyle the site
   ===================================================== */
:root {
  --bg-colour: #354f3ee0;
  --heading-colour: #ffffff;
  --text-colour: #111111;

  --image-opacity: 0.55;
  --panel-opacity: 0.45;
  --panel-rgb: 255, 255, 255;

  --background-image: url("assets/pink-flowers-isolated-on-a-transparent-background-png-2621633786.png");
  --profile-image: url("assets/S-PFP.jpg");

  --side-gap: clamp(1rem, 3.4vw, 66px);
  --sidebar-width: 200px;
  --panel-radius: 28px;
  --font: "Domine", Georgia, "Times New Roman", serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 160vh;
  background: var(--bg-colour);
  color: var(--heading-colour);
  font-family: var(--font);
  line-height: 1.6;
}

.bg-image {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: var(--background-image) center / cover no-repeat;
  transform: scale(1.3);
  opacity: var(--image-opacity);
  pointer-events: none;
}

.site-heading {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  padding: 0.5rem 5rem;
  text-align: center;
  transform-origin: top center;
  transition: padding 180ms ease;
  pointer-events: none;
  will-change: transform;
}

.site-heading h1 {
  width: 100%;
  margin: 0;
  font-size: clamp(1.8rem, 4.2vw, 4.7rem);
  font-weight: 400;
  line-height: 1;
  color: var(--heading-colour);
  transition: font-size 180ms ease, line-height 180ms ease;
}

.site-heading h1 span {
  display: block;
  white-space: nowrap;
}

.hero-profile-image {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 18;
  display: none;
  width: clamp(143px, 15.6vw, 214.5px);
  aspect-ratio: 2 / 3;
  background: var(--profile-image) center / contain no-repeat;
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 16px;
  box-shadow: 0 8px 28px rgba(13, 30, 18, 0.24);
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity;
}

.header-fade {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  height: var(--bar-h, 140px);
  background: linear-gradient(var(--bg-colour) 60%, transparent);
  opacity: 0;
  pointer-events: none;
}

.menu-button {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 40;
  display: flex;
  width: 48px;
  height: 48px;
  padding: 10px 6px;
  flex-direction: column;
  justify-content: space-between;
  background: none;
  border: 0;
  cursor: pointer;
}

.menu-button span {
  display: block;
  height: 4px;
  border-radius: 2px;
  background: var(--heading-colour);
  transition: transform 0.25s, opacity 0.25s;
}

.menu-button[aria-expanded="true"] span:nth-child(1) { transform: translateY(14px) rotate(45deg); }
.menu-button[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-button[aria-expanded="true"] span:nth-child(3) { transform: translateY(-14px) rotate(-45deg); }

.menu {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 30;
  width: min(320px, 85vw);
  padding: 90px 1.5rem 2rem;
  background: rgba(20, 38, 27, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transform: translateX(-100%);
  visibility: hidden;
  transition: transform 0.3s, visibility 0.3s;
  overflow-y: auto;
}

.menu.open { transform: none; visibility: visible; }

.menu ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.menu a {
  display: block;
  padding: 0.6rem 0.8rem;
  border-radius: 12px;
  color: var(--heading-colour);
  font-size: 1.25rem;
  text-decoration: none;
}

.menu a:hover,
.menu a.active { background: rgba(255, 255, 255, 0.16); }

.glass,
.panel {
  background: rgba(var(--panel-rgb), var(--panel-opacity));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: var(--panel-radius);
  color: var(--text-colour);
}

.content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 92vh;
  padding: 0 var(--side-gap) 4rem;
}

.panel {
  padding: 0.5rem clamp(1.2rem, 2.4vw, 2.8rem) 2.2rem;
  scroll-margin-top: 190px;
}

.panel h2 {
  margin: 0 0 1.2rem;
  font-size: clamp(1.7rem, 2.6vw, 2.8rem);
  font-weight: 500;
  line-height: 1.3;
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.panel h3 {
  margin: 1.5rem 0 0.6rem;
  max-width: 70ch;
  font-size: clamp(1.2rem, 1.7vw, 1.8rem);
  font-weight: 500;
}

.panel p,
.panel ul {
  max-width: 70ch;
  font-size: clamp(0.84rem, 1.2vw, 1.36rem);
}

.panel p {
  margin: 0 0 1rem;
}

.panel ul {
  margin: 0 0 1rem;
  padding-left: 1.5rem;
}

.panel li { margin-bottom: 0.25rem; }

.panel a {
  color: inherit;
  overflow-wrap: anywhere;
}

.sidebar {
  position: fixed;
  top: 20vh;
  right: var(--side-gap);
  z-index: 5;
  display: flex;
  width: var(--sidebar-width);
  max-height: calc(100vh - 20vh - 2rem);
  flex-direction: column;
  gap: 11px;
}

.sidebar-image {
  flex: none;
  aspect-ratio: 2 / 3;
  background-image: var(--profile-image);
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  background-color: rgba(var(--panel-rgb), var(--panel-opacity));
  overflow: hidden;
}

.sidebar-info {
  flex: 0 1 auto;
  min-width: 0;
  min-height: 0;
  padding: 0.6rem 0.9rem;
  overflow-x: hidden;
  overflow-y: auto;
  overflow-wrap: anywhere;
  font-size: 0.85rem;
}

.sidebar-info ul {
  min-width: 0;
  margin: 0;
  padding-left: 1.1rem;
}

.sidebar-info li { overflow-wrap: anywhere; }

.sidebar-info a {
  color: inherit;
  overflow-wrap: anywhere;
}

.site-footer {
  margin: 0 var(--side-gap) 2rem;
  padding: 1rem clamp(1.2rem, 2.4vw, 2.8rem);
  border-top: 1px solid rgba(255, 255, 255, 0.45);
  color: var(--heading-colour);
}

.site-footer nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
}

.site-footer a {
  color: inherit;
  text-underline-offset: 0.2em;
}

@media (min-width: 1000px) {
  .content { margin-right: calc(var(--sidebar-width) + (var(--side-gap) * 2)); }
  .site-footer { margin-right: calc(var(--sidebar-width) + (var(--side-gap) * 2)); }
}

@media (min-width: 1200px) and (min-aspect-ratio: 3/2) {
  :root {
    --sidebar-width: min(clamp(230px, 20vw, 320px), 36vh);
    --side-gap: clamp(2rem, 4vw, 5rem);
  }

  .content {
    max-width: 1120px;
    margin-left: max(var(--side-gap), calc((100vw - 1540px) / 2));
    margin-right: calc(var(--sidebar-width) + (var(--side-gap) * 2));
    gap: 2.5rem;
  }

  .panel {
    padding: 1rem clamp(2rem, 3vw, 3.5rem) 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.32);
    box-shadow: 0 18px 50px rgba(13, 30, 18, 0.12);
  }

  .sidebar { top: 22vh; }
}

@media (min-width: 1200px) and (min-aspect-ratio: 16/9) {
  :root { --sidebar-width: min(clamp(320px, 24vw, 380px), 36vh); }
  .sidebar { right: 2rem; }
}

@media (min-width: 1000px) and (max-width: 1199px) {
  :root {
    --sidebar-width: min(clamp(170px, 18vw, 220px), 36vh);
    --side-gap: 1.5rem;
  }

  .content { gap: 1.5rem; }
  .sidebar-info { font-size: 0.8rem; }
  .site-footer nav { gap: 0.5rem 1.25rem; }
}

@media (min-width: 1000px) {
  .site-heading {
    left: clamp(4.5rem, 7vw, 7rem);
    right: calc(var(--sidebar-width) + var(--side-gap) + var(--side-gap));
    padding-inline: 1rem;
  }

  .site-heading h1 {
    font-size: clamp(1.5rem, 3.6vw, 4.2rem);
  }

  .sidebar {
    top: clamp(3rem, 12vh, 7rem);
    max-height: none;
  }

  .sidebar-info {
    flex: 0 0 auto;
    min-height: auto;
    overflow: visible;
    font-size: clamp(0.65rem, 0.8vw, 0.85rem);
    container-type: inline-size;
  }

  .sidebar-info a {
    font-size: clamp(0.5rem, 0.58vw, 0.8rem);
    font-size: clamp(0.5rem, calc(5.56cqi - 2px), 1rem);
    white-space: nowrap;
  }
}

@media (min-width: 1000px) and (max-height: 500px) {
  .site-heading {
    right: calc(min(28rem, 35vw) + 3rem);
  }

  .sidebar {
    top: clamp(2.5rem, 8vh, 3.5rem);
    width: min(28rem, 35vw);
    flex-direction: row;
    align-items: center;
  }

  .sidebar-image {
    width: 22vh;
    height: auto;
  }

  .sidebar-info {
    width: auto;
    flex: 1 1 0;
    padding: 0.4rem;
    font-size: clamp(0.6rem, 1.4vh, 0.75rem);
  }
}

@media (min-width: 601px) and (max-width: 999px) {
  :root {
    --side-gap: clamp(1.5rem, 5vw, 3rem);
    --panel-radius: 24px;
  }

  body { min-height: 0; }
  .hero-profile-image { display: block; }
  .site-heading { padding: 0.75rem 4.5rem; }
  .site-heading h1 {
    margin-inline: auto;
    font-size: clamp(1.1rem, 3vw, 1.6rem);
    line-height: 1.1;
  }

  .content {
    width: min(900px, calc(100% - (var(--side-gap) * 2)));
    margin: 78vh auto 0;
    margin: 78svh auto 0;
    padding: 0 0 3rem;
    gap: 1.5rem;
  }

  .panel { padding: 1rem clamp(1.5rem, 4vw, 2.5rem) 2rem; }

  .sidebar {
    position: static;
    width: min(900px, calc(100% - (var(--side-gap) * 2)));
    max-height: none;
    margin: 0 auto 3rem;
    flex-direction: row;
    align-items: center;
    justify-content: center;
  }

  .sidebar-image {
    width: clamp(130px, 24vw, 200px);
    height: auto;
  }

  .sidebar-info {
    flex: 0 1 auto;
    width: max-content;
    max-width: 100%;
    min-height: 0;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    overflow: visible;
  }

  .site-footer { margin-bottom: 1.5rem; }
}

@media (max-width: 600px) {
  :root {
    --side-gap: 1rem;
    --panel-radius: 20px;
  }

  body { min-height: 0; }
  .hero-profile-image { display: block; }

  .site-heading {
    padding: 4.25rem 1rem 0.5rem;
    text-align: center;
  }

  .site-heading h1 {
    margin-inline: auto;
    font-size: clamp(0.85rem, 4vw, 1.2rem);
    line-height: 1.1;
  }

  .hero-profile-image {
    width: clamp(114.4px, 31.2vw, 156px);
    border-radius: 12px;
  }

  .menu-button {
    top: 12px;
    left: 12px;
    width: 44px;
    height: 44px;
    padding: 9px 5px;
  }

  .menu-button[aria-expanded="true"] span:nth-child(1) { transform: translateY(13px) rotate(45deg); }
  .menu-button[aria-expanded="true"] span:nth-child(3) { transform: translateY(-13px) rotate(-45deg); }

  .menu {
    width: min(360px, calc(100vw - 3.5rem));
    padding: 76px 1rem 1.5rem;
  }

  .menu a { font-size: 1.1rem; }

  .content {
    margin: 78vh var(--side-gap) 0;
    margin: 78svh var(--side-gap) 0;
    padding: 0 0 2.5rem;
    gap: 1rem;
  }

  .panel {
    padding: 1rem 1.2rem 1.6rem;
    scroll-margin-top: 120px;
  }

  .panel h2 {
    margin-bottom: 0.9rem;
    font-size: clamp(1.5rem, 6vw, 2rem);
  }

  .panel h3 { margin-top: 1.2rem; }
  .panel p,
  .panel ul { font-size: 0.8rem; }

  .sidebar {
    position: static;
    width: auto;
    max-height: none;
    margin: 0 var(--side-gap) 2rem;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
  }

  .sidebar-image {
    width: clamp(84px, 25vw, 120px);
    height: auto;
  }

  .sidebar-info {
    flex: 0 1 auto;
    width: max-content;
    max-width: 100%;
    min-height: 0;
    padding: 0.7rem;
    font-size: 0.78rem;
    overflow: visible;
    overflow-wrap: anywhere;
  }

  .site-footer {
    margin-bottom: 1rem;
    padding: 1rem 0.5rem;
  }

  .site-footer nav {
    justify-content: flex-start;
    gap: 0.5rem 1rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 380px) {
  .site-heading { padding-inline: 0.65rem; }
  .site-heading h1 { font-size: clamp(0.8rem, 4vw, 1rem); }
  .content {
    margin-top: 80vh;
    margin-top: 80svh;
  }
  .panel { padding-inline: 1rem; }
  .sidebar { gap: 0.5rem; }
  .sidebar-image { width: 78px; }
  .sidebar-info { font-size: 0.72rem; }
}

@media (max-width: 900px) and (max-height: 500px) and (orientation: landscape) {
  .site-heading { padding: 3rem 4.5rem 0.5rem; }
  .site-heading h1 {
    font-size: clamp(0.75rem, 2.5vw, 0.9rem);
  }
  .hero-profile-image { width: 91px; }
  .content {
    margin-top: 82vh;
    margin-top: 82svh;
  }
  .menu { padding-top: 4.5rem; }
}

@media (max-width: 999px) {
  .site-heading.is-scrolled {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
  }

  .site-heading.is-scrolled h1 {
    display: flex;
    width: max-content;
    max-width: 100%;
    margin-inline: auto;
    justify-content: center;
    align-items: baseline;
    font-size: clamp(0.7rem, 2.5vw, 1.1rem);
    line-height: 1;
  }

  .site-heading.is-scrolled h1 span { display: inline; }

  .site-heading.is-scrolled .heading-subtitle::before {
    content: " | ";
    white-space: pre;
  }
}

.legal-page {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}

.legal-page-header {
  padding: 1.25rem var(--side-gap);
  text-align: center;
}

.legal-home-button {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 40;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: var(--heading-colour);
  border-radius: 8px;
}

.legal-home-button svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.legal-page-header a {
  color: var(--heading-colour);
  font-size: clamp(1rem, 2vw, 1.4rem);
  text-decoration: none;
}

.legal-content {
  width: min(1000px, calc(100% - (var(--side-gap) * 2)));
  flex: 1 0 auto;
  margin: clamp(1.5rem, 5vh, 3.5rem) auto 2rem;
}

.legal-document {
  padding: clamp(1.25rem, 4vw, 3rem);
  overflow-wrap: anywhere;
}

.legal-document p,
.legal-document ul,
.legal-document dl {
  font-size: clamp(0.84rem, 1.2vw, 1.36rem);
}

.legal-document h1 {
  margin: 0 0 2rem;
  color: var(--text-colour);
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.2;
}

.legal-document h2 {
  margin-top: 2rem;
  font-size: clamp(1.3rem, 2.4vw, 2rem);
}

.legal-document h3 { font-size: clamp(1.1rem, 1.8vw, 1.5rem); }

.legal-document .legal-effective-date {
  margin-bottom: 0.5rem;
  font-size: 0.76rem;
}

.business-details {
  margin-bottom: 2rem;
  padding: 1rem 1.25rem;
  border-left: 3px solid rgba(17, 17, 17, 0.35);
}

.business-details p { margin-bottom: 0.5rem; }
.business-details p:last-child { margin-bottom: 0; }

.business-fees {
  width: min(100%, 28rem);
  margin: 0 0 1rem;
}

.session-details {
  margin-bottom: 0;
}

.session-details + h3 {
  margin-top: 0;
}

.panel .business-fees {
  width: min(100%, 20rem);
}

.panel .business-fees div {
  gap: 0.5rem;
}

.business-fees div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid rgba(17, 17, 17, 0.18);
}

.business-fees dt { font-weight: 500; }
.business-fees dd {
  margin: 0;
  text-align: right;
}

.legal-footer {
  width: min(1000px, calc(100% - (var(--side-gap) * 2)));
  margin: 0 auto 2rem;
}

.cookie-table-wrap {
  max-width: 100%;
  overflow-x: auto;
  border-radius: 12px;
  -webkit-overflow-scrolling: touch;
}

.cookie-table {
  width: 100%;
  border-collapse: collapse;
  color: var(--text-colour);
  font-family: Arial, sans-serif;
  font-size: 0.72rem;
  line-height: 1.5;
}

.cookie-table th,
.cookie-table td {
  padding: 0.75rem;
  border: 1px solid rgba(17, 17, 17, 0.22);
  text-align: left;
  vertical-align: top;
}

.cookie-table th { background: rgba(255, 255, 255, 0.38); }
.cookie-table td { min-width: 7rem; }
.cookie-table td:last-child { min-width: 16rem; }
.cookie-browser-links a { overflow-wrap: anywhere; }

@media (max-width: 600px) {
  .legal-document p,
  .legal-document ul,
  .legal-document dl { font-size: 0.8rem; }

  .legal-home-button {
    top: 12px;
    left: 12px;
    width: 44px;
    height: 44px;
  }
}

:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
