/* ABOUTME: All styling for the site: header, footer, page sections, accordion, videos and the contact form. */
/* ABOUTME: Layout is two columns on wide screens and a single column below 768px. */
:root {
  --background: #f0f0ee;
  --text: #000;
  --heading: #2e2a39;
  --rule: #b9b9b7;
  --accent: #d9a577;
  --gutter: 4vw;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.8;
}

img, video { display: block; max-width: 100%; height: auto; }

a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }

h1, h2, h3 { color: var(--heading); font-weight: 500; line-height: 1.2; margin: 0 0 1.5rem; }
h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }

.button {
  display: inline-block;
  padding: 0.9rem 1.8rem;
  border: 0;
  border-radius: 999px;
  background: #000;
  color: #fff;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
}
.button-large { padding: 1.1rem 5.5rem; font-size: 1rem; }

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.6rem var(--gutter);
}
.site-title { font-size: clamp(1.4rem, 2.4vw, 2rem); font-weight: 500; text-decoration: none; }
.site-nav { display: flex; align-items: center; gap: 1.6rem; }
.site-nav a:not(.button) { text-decoration: none; }
.site-nav a[aria-current="page"] { text-decoration: underline; }

section { padding: 6rem var(--gutter); }

.hero, .split, .contact { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem 12%; align-items: center; }
.split { align-items: start; padding-top: 2rem; min-height: 70vh; }
.hero { min-height: 80vh; }
.hero-image { aspect-ratio: 5 / 6; object-fit: cover; width: 100%; }
.eyebrow { margin: 0 0 1.5rem; }
.lead { font-size: clamp(1.3rem, 2.2vw, 1.75rem); font-weight: 500; line-height: 1.35; margin: 0 0 2rem; }

.programmes { display: grid; grid-template-columns: 1fr 0.8fr; gap: 4rem 14%; padding-inline: 12%; }
.programmes p { color: var(--heading); margin: 0 0 2.5rem; }

.accordion details { border-top: 1px solid var(--rule); }
.accordion details:last-child { border-bottom: 1px solid var(--rule); }
.accordion summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.7rem 0;
  cursor: pointer;
  list-style: none;
  color: var(--heading);
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  margin-right: 0.3rem;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: translateY(-25%) rotate(45deg);
  transition: transform 0.2s;
}
.accordion details[open] summary::after { transform: translateY(25%) rotate(-135deg); }
.accordion details p { margin: 0 0 1rem; }

.banner { width: calc(100% - 2 * var(--gutter)); margin: 0 auto; height: 60vh; object-fit: cover; object-position: center 25%; }

.bookings { text-align: center; }
.bookings ul { list-style: none; margin: 0 auto; padding: 0; max-width: 40rem; }
.bookings li { display: flex; justify-content: space-between; gap: 2rem; padding: 0.9rem 0; border-top: 1px solid var(--rule); text-align: left; }
.bookings li:last-child { border-bottom: 1px solid var(--rule); }
.booking-date { font-weight: 500; }

.contact { background: #fff; align-items: start; }

.contact-form { display: grid; gap: 1.2rem; max-width: 26rem; margin-top: 2.5rem; }
.contact .contact-form { margin-top: 0; }
.contact-form label { display: grid; gap: 0.3rem; }
.contact-form input, .contact-form textarea {
  padding: 0.7rem 1.2rem;
  border: 1px solid #000;
  border-radius: 1.4rem;
  background: transparent;
  font: inherit;
}
.contact-form .button { justify-self: start; padding-inline: 2rem; }
.contact-form .contact-form-website { position: absolute; left: -9999px; }
.contact-details p { margin: 0; }

.page-title { min-height: 60vh; display: grid; place-items: center; text-align: center; background: #fff; }
.page-title h1 { max-width: 14em; margin: 0; color: #000; }

.samples { padding: 4rem 0; }
.sample { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem 8%; align-items: center; padding: 4rem var(--gutter); }
.sample video { width: 100%; max-height: 80vh; aspect-ratio: 16 / 9; background: #000; object-fit: contain; }
.sample:nth-child(even) video { order: 2; }
.sample p { color: var(--heading); margin: 0; }

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 3rem;
  padding: 4rem var(--gutter);
  background: #000;
  color: #fff;
}
.site-footer h2, .site-footer h3 { color: #fff; }
.site-footer h3 { font-size: 1.2rem; }
.site-footer > div:first-child { max-width: 19rem; }
.site-footer-contact a { color: var(--accent); }

@media (max-width: 768px) {
  section { padding-block: 3.5rem; }
  .hero, .split, .contact, .programmes, .sample { grid-template-columns: 1fr; }
  .programmes { padding-inline: var(--gutter); }
  .hero, .split, .page-title { min-height: 0; }
  .hero-image { order: -1; }
  .sample:nth-child(even) video { order: 0; }
  .banner { height: 40vh; }
  .button-large { padding-inline: 3rem; }
}
