/* Site by Amelie | amelierosalyn.com */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
}
body > header {
  position: relative;
  z-index: 1000;
  background: #333;
}

#header-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  background: #333;
  text-align: center;
  padding: 2rem 1rem;
  transition: opacity 0.4s ease, transform 0.4s ease;
  z-index: 10;
}
#header-image img {
  max-width: 300px;
  height: auto;
}
#header-image.collapsed {
  opacity: 0;
  transform: scale(0.95) translateY(-30px);
  pointer-events: none;
}

#header-spacer {
  height: 203px;
  transition: height 0.4s ease;
}
#header-spacer.collapsed {
  height: 0;
}

#nav-background {
  background: #282828;
  position: sticky;
  top: 0;
  z-index: 15;
}

.nav-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0.5rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

#nav-toggle {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: white;
  cursor: pointer;
  display: block;
}

#main-nav {
  display: none;
  margin: auto;
}
#main-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  flex-direction: column;
  gap: 0.5rem;
}
#main-nav ul li a {
  text-decoration: none;
  color: white;
  display: block;
}
#main-nav.show {
  display: block;
}

/* Desktop layout */
@media (min-width: 768px) {
  #nav-toggle {
    display: none;
  }

  #main-nav {
    display: block !important;
  }
  #main-nav ul {
    flex-direction: row;
    display: flex;
    gap: 1rem;
  }
  #main-nav ul li a {
    padding: 1rem 1.5rem !important
  }

  .nav-container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0;
  }
}

nav ul {
  display: flex;
  justify-content: center;
  align-items: stretch;
  margin: 0;
  padding: 0;
  list-style: none;
  flex-direction: column;
  gap: 0.5rem; /* Mobile only */
}
nav li {
  margin: 0;
}
nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  color: white;
  text-decoration: none;
  font-weight: bold;
  height: 100%;
  transition: background 0.3s ease;
  background: transparent;
}
@media (min-width: 768px) {
  nav ul {
    flex-direction: row;
    gap: 0;
    height: 100%;
  }
}
/*nav ul {
  display: flex;
  justify-content: center;
  align-items: stretch; /* Ensure items fill same height * /
  margin: 0;
  padding: 0;
  list-style: none;
}

nav li {
  margin: 0;
}

nav a {
  display: flex;              /* Make link a flex item * /
  align-items: center;        /* Vertically centre text * /
  justify-content: center;    /* Horizontally centre text * /
  padding: 1rem 2rem;         /* Increase button size * /
  color: white;
  text-decoration: none;
  font-weight: bold;
  height: 100%;               /* Ensure full height inside nav * /
  transition: background 0.3s ease;
}
*/
nav a:hover,
nav a:focus,
nav a.active {
  background-color: rgba(255, 255, 255, 0.15); /* Light hover effect */
}

.section {
  padding: 4rem 1rem;
  text-align: center;
  transition: background-color 0.3s ease;
  scroll-margin-top: 70px; /* height of the sticky nav */
  will-change: transform;
}
.section .content {
  max-width: 800px;
  margin: auto;
  text-align: left;
}
.section .content header {
  text-align: center;
  margin-bottom: 2em;
}
.section .content ul {
  padding-left: 1.5rem;
  margin-left: 0.5rem;
}
.section .content li {
  margin-bottom: 1rem;
}
.section .content p,
.section .content li {
  font-size: 1.125rem;
  line-height: 1.7;
}

.home {
  background: #f6f0f5;
  color: #222;
}
.events {
  background: #fff;
}
.practice {
  background: #f1f8f4;
}
.fun-facts {
  background: #fef4ea;
}
.book-us {
  background: #f6f0f5;
}

.feature-image {
  max-width: 300px;
  height: auto;
  margin: 0 1rem 1rem 0;
  border-radius: 6px;
}
.feature-image.right {
  float: right;
}
.feature-image.left {
  float: left;
  margin: 0 1rem 1rem 0;
}

.feature-full {
  text-align: center;
  margin: 2rem auto;
}
.feature-full img {
  width: 100%;
  max-width: 800px;
  height: auto;
  border-radius: 6px;
}
.feature-full figcaption {
  font-size: 0.95rem;
  color: #555;
  margin-top: 0.5rem;
  font-style: italic;
}

.feature-split {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 2rem;
  margin-top: 1rem;
}
.feature-split img {
  width: auto;
  max-width: 300px;
  flex-shrink: 0;
  height: auto;
  border-radius: 6px;
  display: block;
}
.feature-split .text {
  flex: 2 1 400px;
}

.image-column {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 0 1 300px;
}
.image-column img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  display: block;
}

.section:first-of-type {
  padding-top: 60px;
}

@media (max-width: 768px) {
  .feature-split {
    flex-direction: column;
    flex-wrap: wrap;
  }

  .image-column {
    width: 100%;
    flex: none;
  }

  .section {
    scroll-margin-top: 1000px;
  }
}

footer {
  background: #222;
  color: white;
  text-align: center;
  padding: 1rem;
}

@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    text-align: center;
  }
}

.bigger {
  font-size: 1.2em;
}
.smaller {
  font-size: 0.9em;
}
.bold {
  font-weight: bold;
}
.center {
  text-align: center;
}
.italic {
  font-style: italic;
}
.caps {
  text-transform: uppercase;
}

p { margin-bottom: 1em; }

#events-table {
  width: 100%;
  max-width: 900px;
  margin: 2rem auto;
  border-collapse: collapse;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
  font-size: 1rem;
}
#events-table thead th {
  background: #205c38;
  color: white;
  text-align: left;
  padding: 1rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}
#events-table td {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid #e0e0e0;
  vertical-align: top;
}
#events-table tbody tr:nth-child(even) {
  background: #f7f9f8;
}
#events-table tbody tr:hover {
  background: #eef5f1;
}
#events-table td:first-child {
  font-weight: 600;
  white-space: nowrap;
}

.table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 600px) {
  #events-table {
    font-size: 0.95rem;
  }
  #events-table td:first-child {
    white-space: normal;
  }
  #events-table th,
  #events-table td {
    padding: 0.7rem 0.75rem;
  }
  #events-table {
    font-size: 0.9rem;
  }

  .section .content ul {
    padding-left: 1.25rem;
    margin-left: 0.25rem;
  }

}

/*#events-table td:contains("TBC") {
  font-style: italic;
  color: #666;
}*/

a {
  color: #205c38;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 2px;
  font-weight: 600;
}
a:hover,
a:focus {
  color: #2f7d4e;
}

footer a {
  color: #d8f2e3;
}
footer a:hover,
footer a:focus {
  color: #ffffff;
}

a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.photo-collage-oldstyle {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: auto auto auto auto;
  gap: 0;
  max-width: 1100px;
  margin: 2rem auto 3rem;
  position: relative;
}

.collage-photo {
  margin: 0;
  z-index: 1;
}
.collage-photo img {
  display: block;
  width: 100%;
  height: auto;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.photo-a {
  grid-column: 1 / span 3;
  grid-row: 1 / span 2;
  z-index: 3;
  align-self: start;
}
.photo-b {
  grid-column: 3 / span 4;
  grid-row: 2;
  margin-top: -2.5rem;
  margin-left: -0.5rem;
  z-index: 2;
}
.photo-c {
  grid-column: 7 / span 4;
  grid-row: 1;
  margin-left: 1rem;
  z-index: 1;
}
.photo-d {
  grid-column: 4 / span 4;
  grid-row: 3;
  margin-top: -1.5rem;
  z-index: 2;
}
.photo-e {
  grid-column: 8 / span 4;
  grid-row: 2 / span 2;
  margin-top: 3rem;
  margin-left: 1.5rem;
  z-index: 2;
}

.clear {
  clear: left;
}

@media (max-width: 900px) {
  .photo-collage-oldstyle {
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
  }

  .photo-a,
  .photo-b,
  .photo-c,
  .photo-d,
  .photo-e {
    margin: 0;
  }

  .photo-a {
    grid-column: 1 / span 2;
    grid-row: 1;
  }
  .photo-b {
    grid-column: 3 / span 3;
    grid-row: 1;
  }
  .photo-c {
    grid-column: 2 / span 4;
    grid-row: 2;
  }
  .photo-d {
    grid-column: 1 / span 3;
    grid-row: 3;
  }
  .photo-e {
    grid-column: 4 / span 3;
    grid-row: 3;
  }
}

/* Mobile */
@media (max-width: 600px) {
  .photo-collage-oldstyle {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .photo-a,
  .photo-b,
  .photo-c,
  .photo-d,
  .photo-e {
    margin: 0;
  }

  .collage-photo img {
    width: 100%;
    height: auto;
  }
}

.photo-a img { aspect-ratio: 2 / 3; object-fit: cover; }
.photo-b img { aspect-ratio: 4 / 3; object-fit: cover; }
.photo-c img { aspect-ratio: 3 / 2; object-fit: cover; }
.photo-d img { aspect-ratio: 3 / 2; object-fit: cover; }
.photo-e img { aspect-ratio: 4 / 3; object-fit: cover; }

.emoji-list {
  list-style: none;
  margin: 2em 0 !important;
  padding: 0 !important;
}
.emoji-list li {
  display: flex;
  align-items: baseline;
  gap: 0.15em;
  margin-bottom: 0.5rem !important;
  padding: 0;
  line-height: 1.2;
}
.emoji-list li + li {
  margin-top: 0.1em;
}
.emoji-list .emoji {
  flex: 0 0 1.1em;
  width: 1.1em;
  text-align: center;
  line-height: 1;
  font-size: 1em;
}
.emoji-list .emoji-text {
  line-height: 1.2;
}