/* EX Summer school – plain static styles */

/* ===== Base Layout ===== */

html {
  background: #26282d;
}

/* ===== Layout order at top of page ===== */
/* Main layout wrapper */

.site-header {
  display: flex;
  flex-direction: column;
}

/* Mobile: menu first, then banner */
.menu-wrapper {
  order: 1;
}
.hero-slider {
  order: 2;
}
.banner {
  order: 3;
}

@media (min-width: 1024px) {
  /* Desktop: banner above menu again */
  .banner {
    order: 1;
  }
  .menu-wrapper {
    order: 2;
  }
  .hero-slider {
    order: 3;
  }
}

body {
  font-family: helvetica-w01-light, helvetica-w02-light, sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #fff;
  background: #26282d;
  margin: 0;
  padding: 0;
  letter-spacing: normal;
  line-height:30px;
}

.container {
  max-width: 980px;
  margin: 20px auto 20px auto;
  padding: 20px;
}

.container-wide {
  max-width: 95%;
  margin: 20px auto 20px auto;
  padding: 20px;
}

/* ===== Text ===== */
.center-text {
  text-align: center;
}

.excited {
  text-align: center;
  font-size: 30px;
}

/* ===== Headings ===== */

h1 {
  font-size: 50px;
  line-height: 67px;
  font-family: "playfair display", serif;
  font-weight: 400;
  text-align: center;
  letter-spacing: normal;
}

h2 {
  font-size: 1.45rem;
  border-bottom: 1px solid #eee;
  padding-bottom: 4px;
}

h3 {
  font-size: 1.2rem;
}

h1,
h2,
h3 {
  font-weight: normal;
  color: #ffffff;
  margin-top: 0.5em;
}

h2 {
  border-bottom: 1px solid #333;
  padding-bottom: 4px;
}
/* ===== Header ===== */

.site-header {
  text-align: center;
  margin-bottom: 30px;
}

.site-header h1 {
  font-size: 41px;
  font-weight: normal;
  margin-bottom: 10px;
}

.site-header h1 a {
  color: #ffffff;
  text-decoration: none;
}

/* ===== Hero slide ===== */

.hero-slider {
  position: relative;
  width: 100%;
  height: 500px;
  overflow: hidden;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slide.active {
  opacity: 1;
  z-index: 1;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.overlay-text {
  position: absolute;
  bottom: 20%;
  left: 5%;
  color: white;
  text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.7);
}

/* ===== Links ===== */

a {
  color: #eeeeee;
  text-decoration: none;
}

a:hover {
  color: #ffffff;
}

/* ===== Navigation ===== */

nav {
  font-family: montserrat, sans-serif;
  align-items: center;
}

nav li {
  margin: 0;
}

nav ul {
  list-style: none;
  font-size: 19px;
  padding: 20px;
  margin: 15px 0 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
}

nav a {
  text-decoration: none;
  color: #eeeeee;
}

nav a:hover {
  color: #ffffff;
}

/* ===== Links as button ===== */

a.btn-link {
  display: inline-block;
  background-color: white;
  color: black;
  padding: 10px 20px;
  text-decoration: none;
  text-transform: uppercase;
  border: 2px solid black; /* gives it structure */
  border-radius: 4px;
  font-weight: bold;
  transition: all 0.2s ease;
}

a.btn-link:hover {
  background-color: black;
  color: white;
}

a.btn-link:active {
  transform: scale(0.98);
}

/* ===== Forms  ===== */
  form {
    width: 100%;
    max-width: none; 
    margin: 0 auto;   /* center form horizontally */
    font-family: sans-serif;
  }

  form p {
    margin-bottom: 15px; /* spacing between fields */
  }

  input[type="text"],
  input[type="email"],
  textarea {
    width: 100%;           /* make all inputs full width */
    padding: 10px;         /* add some padding inside */
    background-color: transparent; /* input background same as page bg */
    color: white;          /* text color */
    border: 1px solid #555; /* subtle border to see edges */
    border-radius: 4px;
    box-sizing: border-box; /* ensure padding doesn't break width */
  }

  textarea {
    resize: vertical;      /* allow vertical resizing */
    min-height: 100px;     /* optional: height for textarea */
  }

  button {
    width: 100%;           /* make button same width as inputs */
    padding: 10px;
    background-color: white; 
    color: black;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
  }

  button:hover {
    background-color: #ddd; /* simple hover effect */
  }

  /* Optional: placeholder styling */
  ::placeholder {
    color: #aaa;
  }

/* ===== Tables ===== */

table {
  width: 100%;
  border-collapse: collapse;
  margin: 25px 0;
}

th,
td {
  border: none;
  /*  border: 1px solid #333; */
  padding: 8px 10px;
}

/* ===== Quotes ===== */

blockquote {
  font-family: "playfair display", serif;
  margin: 0;
  padding: 6em 3em;
  background: #dbc8be;
  text-align: center;
  font-size: 22px;
  color: black;
}
blockquote .signature {
  font-size: 18px;
}

/* ===== Split-screen ===== */

/* General split section */
.split-section {
  display: flex;
  align-items: stretch;
  width: 100%;
  min-height: 500px;
  margin-bottom: 40px;
}

/* Default: text left, image right */
.split-section.left-text .text-content {
  order: 0;
}
.split-section.left-text .image-content {
  order: 1;
}

/* Text right, image left */
.split-section.right-text .text-content {
  order: 1;
}
.split-section.right-text .image-content {
  order: 0;
}

/* Both sides take equal width */
.text-content,
.image-content {
  flex: 1;
  padding: 20px;
  z-index: 2; /* text on top for small screens */
}

.image-content {
  display: flex;
}

.image-content img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Small screen: stack text over image as background */
@media screen and (max-width: 768px) {
  .split-section {
    flex-direction: column;
    position: relative;
  }

  .image-content {
    position: relative;
    width: 100%;
    height: auto;
  }

  .image-content img {
    position: relative;
    opacity: 1;
  }

  .text-content {
    position: relative;
    z-index: 2;
  }
}

@media screen and (max-width: 768px) {

  .split-section.overlap {
    position: relative; /* parent stacking context */
  }

  .split-section.overlap .image-content {
    display: none !important;
    position: absolute;
    top: 0;
    left: -30px;
    height: 100%;
  }

  .split-section.overlap .image-content img {
    height: 100%;
    object-fit: cover;
    opacity: 1;
    z-index:0;
  }

  .split-section.overlap .text-content {
    position: relative;
    z-index: 2;
    color: white;
  }
}

/* ── Images ── */
img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0.5%;
  border-radius: 3px;
}
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  grid-auto-rows: 150px;
  gap: 0.2%;
  grid-auto-flow: dense;
}

.gallery .item {
  position: relative;
  overflow: hidden;
}

.gallery .item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* size modifiers for gallery */
.xxl {
  grid-column: span 6;
  grid-row: span 4;
}
.xl {
  grid-column: span 6;
  grid-row: span 2;
}
.large-square {
  grid-column: span 3;
  grid-row: span 3;
}
.large {
  grid-column: span 3;
  grid-row: span 1;
}
.mid {
  grid-column: span 2;
  grid-row: span 2;
}
.medium {
  grid-column: span 2;
  grid-row: span 1;
}
.small {
  grid-column: span 1;
  grid-row: span 1;
}

/* ===== Responsive ===== */
/* Tablet */
@media (max-width: 900px) {
  .xxl {
    grid-column: span 3;
  }

  .xl,
  .large {
    grid-column: span 2;
  }
  .large-square {
    grid-column: span 2;
    grid-row: span 2;
  }
  .container {
    max-width: 75%;
    margin: 40px auto;
    padding: 10px;
  }
  .hero-slider {
    height: 300px;
  }
}

@media (max-width: 600px) {
  body {
    padding: 10px;
  }

  .hero-slider {
    height: 200px;
  }

  h1 {
    font-size: 24px;
    margin-bottom: 10px;
  }

  .container {
    max-width: 85%;
    margin: 10px auto;
    padding: 5px;
  }

  table,
  th,
  td {
    font-size: 14px;
  }

  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===== Footer ===== */
footer {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #333;
  font-size: 0.9rem;
  color: #aaa;
  text-align: center;
}
/* MENU */

.menu-wrapper {
  flex: 0 0 100%; /* menu row below header bar */
  width: 100%;
  background: none;
  border-bottom: 1px solid var(--menu-border);
  position: relative;
  z-index: 2000;
}

.site-menu {
  position: static;
  background: transparent;
  border-bottom: 0;
}

.site-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.site-menu li {
  margin: 0;
}

.site-menu a {
  display: block;
  padding: 12px 18px;
  text-decoration: none;
  color: #eee;
  font-size: 19px;
}

.site-menu a:hover,
.site-menu a.active {
  color: #fff !important;
}

.no-scroll {
  overflow: hidden;
}

/* MOBILE MENU BUTTON */

.menu-toggle {
  display: none; /* hidden except mobile */
  width: 30px;
  height: 24px;
  flex-direction: column;
  justify-content: space-between;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: #fff;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Animate into X when active */
.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* MENU MOBILE */

@media (max-width: 560px) {
  .site-title {
    font-size: 5vw;
  }

  /* Hamburger button */
  /* Hamburger button (same as before) */
  .menu-toggle {
    display: flex;
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 24px;
    flex-direction: column;
    justify-content: space-between;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 3000;
  }

  .menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: #fff;
    border-radius: 2px;
  }

  /* Fullscreen fade background */
  .site-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9); /* semi-transparent dark background */
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 2500;
  }

  /* Menu open state */
  .site-menu.open {
    opacity: 1;
    pointer-events: auto;
  }

  /* Menu links centred vertically */
  .site-menu ul {
    display: flex;
    flex-direction: column;
    padding: 0;
    margin: 0;
    gap: 20px; /* space between links */
  }

  .site-menu a {
    display: block;
    font-size: 24px;
    color: #fff;
    text-decoration: none;
    text-align: center;
    transition: color 0.2s;
  }

  .site-menu a:hover {
    color: #ffd700; /* accent color on hover */
  }
  
  nav {
  font-family: "playfair display", serif;
  }

}
