/* Site colours: change them here only */
:root {
  --background: #ffffff;     /* page background */
  --text: #222222;           /* normal text */
  --main: #336666;           /* old teal header: unused, delete once sure */
  --on-main: #ffffff;        /* white text on the blue button */
  --button: #1a5fb4;         /* blue button */
  --button-hover: #144a8c;   /* darker blue */
  --accent: #1f7a7a;         /* brighter teal for text and lines on the page */
  --logo-bg: #ffffff;        /* white box behind the logo, both modes */
}
@media (prefers-color-scheme: dark) {
  :root {
    --background: #1a1a1a;     /* very dark grey, not pure black */
    --text: #e8e8e8;           /* light grey text */
    --main: #244d4d;           /* unused, delete once sure */
    --on-main: #ffffff;
    --button: #3584e4;         /* lighter blue, easier to see on dark */
    --button-hover: #62a0ea;
    --accent: #86b3b3;         /* lighter teal, readable on dark */
  }
}

/* Page: never wider than 1200px, centred */
body {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 10px;
  background-color: var(--background);
  color: var(--text);
  font-size: 1.125rem;   /* 18px for most visitors */
}

/* Header: logo and name, then photos */
header {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  background-color: var(--background);
  color: var(--text);
}
/* Photos: hidden on phones */
.header-photos {
  display: none;
  flex-wrap: wrap;
  gap: 10px;
}
img {
  max-width: 100%;
  height: auto;
}
.header-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.header-brand img {
  background-color: var(--logo-bg);
  padding: 6px;
  border-radius: 4px;
  width: 180px;
}
h1 {
  font-size: 1.2rem;
  font-weight: 500;
}

/* Menu: sticks to the top on phones */
nav {
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 10;
  background-color: var(--background);
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 8px;
}
nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
  justify-content: center;
  flex: 1;
}
nav a {
  color: var(--text);
  text-decoration: none;
}
nav a:hover,
nav a:focus {
  text-decoration: underline;
}
/* Small logo in the menu: only shown once the menu is stuck */
.nav-logo {
  width: 60px;
  background-color: var(--logo-bg);
  padding: 4px;
  border-radius: 4px;
  visibility: hidden;
}
nav.stuck .nav-logo {
  visibility: visible;
}
nav.stuck {
  border-bottom: 1px solid var(--accent);
}

hr {
  border: none;
  border-top: 1px solid var(--accent);
  margin: 20px 0;
}

/* News strip */
marquee {
  color: var(--accent);
  font-family: "Times New Roman", Times, serif;
  font-size: 1.3rem;
  font-style: italic;
}

/* "Book the centre" button */
.cta a {
  display: inline-block;
  background-color: var(--button);
  color: var(--on-main);
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
}
.cta a:hover,
.cta a:focus {
  background-color: var(--button-hover);
}

.bottom-photos figure {
  margin: 0 0 1rem 0;
}

a {
  color: var(--accent);
}
address {
  font-style: normal;
}
.registration {
  font-style: italic;
}

/* Calendar page */
.calendar {
  flex: 1;
}
iframe {
  width: 100%;
  height: 600px;
  border: 0;
}

/* Wide screens: 768px and wider */
@media (min-width: 768px) {
  main {
    display: flex;
    gap: 20px;
  }
  h1 {
    font-size: 1.5rem;
  }
  /* Show photos on wide screens */
  .header-photos {
    display: flex;
  }
  /* Menu does not stick on wide screens */
  nav {
    position: static;
  }
  /* Small menu logo never shown on wide screens */
  .nav-logo {
    display: none;
  }
  /* Bottom photos side by side */
  .bottom-photos {
    display: flex;
    gap: 10px;
  }
  .bottom-photos figure {
    flex: 1;
  }
}