@font-face {
  font-family: "floyd";
  src: url("../fonts/floyd.woff2") format("woff2"), url("../fonts/floyd.ttf") format("truetype");
  font-display: block;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 14pt; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 300 1rem/1.75 Lato, "Helvetica Neue", Arial, sans-serif;
  letter-spacing: .025em;
  color: #7c8081;
  background: #f3f6fa;
}
h1, h2, p, ul { margin: 0; }
ul { list-style: none; padding: 0; }
a { color: #3fb1a3; text-decoration: none; transition: color .2s, background-color .2s, border-color .2s; }
a:hover { color: #83d3c9; }
img { max-width: 100%; height: auto; border: 0; }
strong { font-weight: 400; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.container { width: 1200px; max-width: 100%; margin: 0 auto; }

.button {
  display: inline-block;
  padding: 0 .75em;
  font: 900 .8rem/3.75em Lato, sans-serif;
  letter-spacing: .134em;
  text-transform: uppercase;
  text-align: center;
  color: inherit;
  border: 1px solid currentColor;
  border-radius: 0;
  min-width: 15em;
}
.button:hover { color: #3fb1a3; border-color: #3fb1a3; }
.button.fit { display: block; width: 100%; }
.button.special { background: #83d3c9; border-color: #83d3c9; color: #fff; }
.button.special:hover { background: #96dad1; border-color: #96dad1; color: #fff; }

/* ---------- header ---------- */
#header {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  height: 3em; padding: 0 1.2rem;
  font-size: .8rem;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,.075);
  animation: reveal .35s ease-out;
}
#header.alt {
  position: absolute;
  height: auto; padding: 1.5rem 2.5rem;
  background: transparent; box-shadow: none; animation: none;
}
@keyframes reveal { from { transform: translateY(-100%); } to { transform: none; } }

#logo { font-size: 1em; font-weight: 900; text-transform: uppercase; line-height: 1.75; white-space: nowrap; }
#logo a, #nav a { color: inherit; }
#nav ul { display: flex; align-items: center; }
#nav li { margin-left: 1em; }
#nav a {
  display: block; padding: .6em .75em;
  border: 1px solid transparent;
  font-weight: 300; letter-spacing: .075em; line-height: 1; text-transform: uppercase;
}
#nav li.current a { font-weight: 900; }
#nav a:hover { color: #3fb1a3; }
#nav a.button { min-width: 0; line-height: 1; font-weight: 900; letter-spacing: .134em; }
#nav a.button:hover { color: #fff; }
#header.alt, #header.alt #nav a { color: #fff; }
#header.alt #nav a:hover { color: #fff; border-color: rgba(255,255,255,.5); }
#header.alt #nav a.button:hover { border-color: #96dad1; }

/* ---------- hero backgrounds (banner + CTA share one image) ---------- */
#banner, #cta {
  color: #fff;
  background-color: #645862;
  background-repeat: no-repeat, no-repeat, repeat, no-repeat;
  background-attachment: scroll, scroll, scroll, fixed;
}
#banner {
  padding: 6rem 0;
  text-align: center;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 500 500'%3E%3Cpath d='M0 0L500 500M0 60L440 500M0 120L380 500M0 180L320 500M0 240L260 500M0 300L200 500M0 360L140 500M0 420L80 500' stroke='rgba(255,255,255,0.2)' stroke-width='1' fill='none'/%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 500 500'%3E%3Cpath d='M500 0L0 500M500 60L60 500M500 120L120 500M500 180L180 500M500 240L240 500M500 300L300 500M500 360L360 500M500 420L420 500' stroke='rgba(255,255,255,0.2)' stroke-width='1' fill='none'/%3E%3C/svg%3E"), url("images/overlay.png"), url("../images/banner-1920.webp");
  background-size: 25rem auto, 25rem auto, auto, cover;
  background-position: 0 100%, 100% 100%, 0 0, 50% 0;
}
#banner .inner {
  display: inline-block;
  padding: 3rem;
  background: rgba(52,27,43,.5);
  text-align: center;
}
#banner header {
  border-top: 2px solid #fff; border-bottom: 2px solid #fff;
  padding: 3px 0; margin-bottom: 2rem;
}
#banner h2 {
  font: 900 2.5rem/1.75 floyd, Lato, sans-serif;
  letter-spacing: .2em; padding-left: .05em;
  text-transform: uppercase;
  border-top: 2px solid #fff; border-bottom: 2px solid #fff;
}
#banner p { letter-spacing: .1em; text-transform: uppercase; }
#banner footer { margin-top: 2rem; }
#banner .button:hover { color: #fff; border-color: #fff; background: rgba(255,255,255,.075); }

/* ---------- main ---------- */
#main {
  padding: 5rem 0 7rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 500 500'%3E%3Cpath d='M0 500L500 0M0 440L440 0M0 380L380 0M0 320L320 0M0 260L260 0M0 200L200 0M0 140L140 0M0 80L80 0' stroke='rgba(0,0,0,0.075)' stroke-width='1' fill='none'/%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 500 500'%3E%3Cpath d='M0 0L500 500M60 0L500 440M120 0L500 380M180 0L500 320M240 0L500 260M300 0L500 200M360 0L500 140M420 0L500 80' stroke='rgba(0,0,0,0.075)' stroke-width='1' fill='none'/%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 500 500'%3E%3Cpath d='M0 0L500 500M0 60L440 500M0 120L380 500M0 180L320 500M0 240L260 500M0 300L200 500M0 360L140 500M0 420L80 500' stroke='rgba(0,0,0,0.075)' stroke-width='1' fill='none'/%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 500 500'%3E%3Cpath d='M500 0L0 500M500 60L60 500M500 120L120 500M500 180L180 500M500 240L240 500M500 300L300 500M500 360L360 500M500 420L420 500' stroke='rgba(0,0,0,0.075)' stroke-width='1' fill='none'/%3E%3C/svg%3E");
  background-size: 25rem auto;
  background-repeat: no-repeat;
  background-position: 0 0, 100% 0, 0 100%, 100% 100%;
  scroll-margin-top: 3em;
}
#main > header {
  position: relative;
  padding-top: 5.5rem;
  margin-bottom: 4rem;
  text-align: center;
}
#main > header::before, #main > header::after {
  content: ""; position: absolute; top: 1.75rem;
  width: calc(50% - 4.5rem); height: 7px;
  border-top: 1px solid #7c8081; border-bottom: 1px solid #7c8081;
}
#main > header::before { left: 0; }
#main > header::after { right: 0; }
#main > header .icon { position: absolute; top: .6rem; left: 50%; width: 3.5rem; height: 3.5rem; margin-left: -1.75rem; fill: #7c8081; }
#main > header h2 { font: 300 1.5rem/1.75 floyd, Lato, sans-serif; letter-spacing: .1em; text-transform: uppercase; }

.wrapper { background: #fff; padding: 3.5rem 5rem 5rem; text-align: center; }
.wrapper .promo { display: inline-block; vertical-align: top; }
.wrapper .promo img { display: block; }
.wrapper .button { margin-top: .25em; }

/* ---------- CTA ---------- */
#cta {
  padding: 5rem;
  text-align: center;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 500 500'%3E%3Cpath d='M0 500L500 0M0 440L440 0M0 380L380 0M0 320L320 0M0 260L260 0M0 200L200 0M0 140L140 0M0 80L80 0' stroke='rgba(255,255,255,0.2)' stroke-width='1' fill='none'/%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 500 500'%3E%3Cpath d='M0 0L500 500M60 0L500 440M120 0L500 380M180 0L500 320M240 0L500 260M300 0L500 200M360 0L500 140M420 0L500 80' stroke='rgba(255,255,255,0.2)' stroke-width='1' fill='none'/%3E%3C/svg%3E"), url("images/overlay.png"), url("../images/banner-1920.webp");
  background-size: 25rem auto, 25rem auto, auto, cover;
  background-position: 0 0, 100% 0, 0 0, 50% 100%;
}
#cta h2 { font: 300 1.5rem/1.75 floyd, Lato, sans-serif; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 1.5rem; }
#cta p { margin-bottom: 2rem; }

/* ---------- footer ---------- */
#footer { background: #e8eef4; padding: 5rem 5rem 10rem; text-align: center; }
#footer .icons { display: flex; justify-content: center; gap: .75rem; margin-bottom: 2rem; }
#footer .icons a {
  display: flex; align-items: center; justify-content: center;
  width: 2.8rem; height: 2.8rem; border-radius: 50%;
  background: #7490c3; transition: background-color .2s;
}
#footer .icons a.yt { background: #e47c78; }
#footer .icons a:hover { background: #3fb1a3; }
#footer .icons svg { width: 1.25rem; height: 1.25rem; fill: #fff; }
#footer .copyright { font-size: .8rem; line-height: 1; display: flex; justify-content: center; flex-wrap: wrap; }
#footer .copyright li + li { border-left: 1px solid rgba(124,128,129,.25); margin-left: 1em; padding-left: 1em; }
#footer .copyright a { color: inherit; }

/* ---------- responsive (same breakpoints as the original template) ---------- */
@media (min-width: 1681px) { .container { width: 1400px; } }
@media (max-width: 1280px) { html { font-size: 12pt; } .container { width: 960px; } }
@media (max-width: 980px) {
  html { font-size: 12pt; }
  .container { width: 95%; }
  #banner, #cta { background-attachment: scroll; }
  #banner { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 500 500'%3E%3Cpath d='M0 0L500 500M0 60L440 500M0 120L380 500M0 180L320 500M0 240L260 500M0 300L200 500M0 360L140 500M0 420L80 500' stroke='rgba(255,255,255,0.2)' stroke-width='1' fill='none'/%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 500 500'%3E%3Cpath d='M500 0L0 500M500 60L60 500M500 120L120 500M500 180L180 500M500 240L240 500M500 300L300 500M500 360L360 500M500 420L420 500' stroke='rgba(255,255,255,0.2)' stroke-width='1' fill='none'/%3E%3C/svg%3E"), url("images/overlay.png"), url("../images/banner-1280.webp"); }
  #cta { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 500 500'%3E%3Cpath d='M0 500L500 0M0 440L440 0M0 380L380 0M0 320L320 0M0 260L260 0M0 200L200 0M0 140L140 0M0 80L80 0' stroke='rgba(255,255,255,0.2)' stroke-width='1' fill='none'/%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 500 500'%3E%3Cpath d='M0 0L500 500M60 0L500 440M120 0L500 380M180 0L500 320M240 0L500 260M300 0L500 200M360 0L500 140M420 0L500 80' stroke='rgba(255,255,255,0.2)' stroke-width='1' fill='none'/%3E%3C/svg%3E"), url("images/overlay.png"), url("../images/banner-1280.webp"); }
  .wrapper { padding: 4rem 3rem; }
}
@media (max-width: 736px) {
  html { font-size: 11pt; }
  .container { width: 100%; }
  #header.alt { padding: 1rem; }
  #header, #header.alt { justify-content: center; }
  #logo { display: none; }
  #nav li { margin-left: .25em; }
  #nav a { padding: .6em .5em; }
  #banner { padding: 5rem 1rem 3rem; }
  #banner .inner { padding: 2rem 1.25rem; display: block; }
  #banner h2 { font-size: 1.6rem; letter-spacing: .12em; }
  #banner p { letter-spacing: .05em; }
  #main { padding: 3rem 0 4rem; }
  #main > header { padding: 4.5rem 1rem 0; margin-bottom: 2.5rem; }
  #main > header::before, #main > header::after { width: calc(50% - 3.5rem); }
  #main > header h2 { font-size: 1.25rem; }
  .wrapper { padding: 2.5rem 1.25rem; }
  #cta { padding: 3rem 1.25rem; }
  #footer { padding: 3rem 1rem 5rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  #header { animation: none; }
}
/* ---------- inner pages (no banner: header is solid from the start) ---------- */
body.page { padding-top: 3em; }
body.page #header { animation: none; }
body.page #main { padding-top: 4rem; }
.page-title { text-align: center; margin-bottom: 3rem; }
.page-title h2 { font: 300 1.5rem/1.75 floyd, Lato, sans-serif; letter-spacing: .1em; text-transform: uppercase; }

/* ---------- photo gallery ---------- */
.event { margin-top: 3.5rem; }
.event:first-of-type { margin-top: 0; }
.event h3 { font-size: 1.05rem; font-weight: 300; letter-spacing: .05em; text-transform: uppercase; line-height: 1.5; }
.event .note { font-size: .8rem; letter-spacing: .075em; text-transform: uppercase; margin-top: .75rem; }
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 3rem; margin-top: 1.5rem; align-items: start; }
.gallery.one { grid-template-columns: minmax(0, 1fr); }
.gallery.half { grid-template-columns: minmax(0, 1fr); width: calc(50% - 1.5rem); margin-left: auto; margin-right: auto; }
.gallery.six { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1.5rem; }
.gallery.thumbs { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }
.gallery figure { margin: 0; }
.gallery a { display: block; }
.gallery img { display: block; width: 100%; height: auto; background: #e8eef4; }
.gallery.thumbs img { width: auto; max-width: 100%; }
.gallery figcaption { margin-top: .75rem; font-size: .9rem; letter-spacing: .075em; text-transform: uppercase; }

@media (max-width: 840px) {
  .gallery, .gallery.half { grid-template-columns: minmax(0, 1fr); width: auto; gap: 1.5rem; }
  .gallery.six { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
}
@media (max-width: 736px) {
  body.page #main { padding-top: 2rem; }
  .page-title { margin-bottom: 2rem; }
  .event { margin-top: 2.5rem; }
}
