:root {
  /* basic color variables */
  --bg: #232323;
  --bg-rgb: 35, 35, 35;
  --text: #ffffff;
  --feature-shadow: #232323;
  --white-rgb: 255, 255, 255;
  --accent-rgb: 197, 126, 49;
  --accent: #BB782E;
  --accent-light: #eaf7f0;
}

* {
  box-sizing: border-box
}

body,
html {
  padding: 0;
  margin: 0
}

body {
  background: var(--bg);
  color: var(--text)
}

a {
  color: var(--accent);
  text-decoration: underline;
}

.opaque {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0;
  background: #d2d6f1;
}

.lt-ie9 .opaque {
  display: none;
}

.feature {
  position: fixed;
  top: 0;
  z-index: 0;
  width: 100%;
  padding-top: 60%;
  background: url('../images/index_header.webp') center center no-repeat;
  -webkit-background-size: 120%;
  -moz-background-size: 120%;
  -o-background-size: 120%;
  background-size: 120%;
  -webkit-box-shadow: 0 -50px 20px -20px var(--feature-shadow) inset;
  -moz-box-shadow: 0 -50px 20px -20px var(--feature-shadow) inset;
  box-shadow: 0 -50px 20px -20px var(--feature-shadow) inset;
}

.content {
  position: relative;
  z-index: 1;
  padding-top: 45%;
  width: 90%;
  margin: 0 auto;
}

.content-image {
  display: block;
  margin: 0.5rem auto 0.5rem auto;
  max-width: 90%;
  height: auto;
  border-radius: 12px;
  box-shadow: 12px 12px 24px 12px rgba(2, 6, 23, 0.6);
}

.lead-image {
  margin: 0 0 0 0;
  width: 100%;
}

/* keep image hidden until revealed; smooth fade/slide */
.lead-image{
  max-height: 0;
  opacity: 0;
  transform: translateY(10px) scale(.995);
  overflow: hidden;
  transition: max-height .6s ease, opacity .6s cubic-bezier(.2,.9,.2,1), transform .6s cubic-bezier(.2,.9,.2,1);
  will-change: max-height, opacity, transform;
}

/* when revealed: expand and fade in */
.lead-image.revealed{
  max-height: 1200px; /* large enough to show the content */
  opacity: 1;
  transform: none;
}

/* preserve existing img reveal behaviour - image will still gain .loaded */
.lead-image img{
  width:100%;
  height:auto;
  display:block;
}

.lead-caption {
  font-size: 0.9rem;
  color: rgba(var(--white-rgb), 0.6);
  text-align: center;
  margin: 0 0 2rem 0;
  padding: 0;
}

@media only screen and (min-width:36.250em) {
  .content {
    width: 80%;
    padding-top: 35%
  }
}

/* Make the intro blockquote larger and more impactful */
.intro-quote {
  margin: 0 0 1.75rem;
  padding: 1.25rem 1.5rem;
  max-width: 880px;
  border-left: 6px solid rgba(var(--accent-rgb), 0.95);
  background: linear-gradient(180deg, rgba(var(--white-rgb), 0.02), rgba(var(--white-rgb), 0.01));
  color: var(--accent-light);
  font-size: 1.35rem;
  line-height: 1.45;
  font-style: italic;
  font-weight: 600;
  border-radius: 12px;
  box-shadow: 0 18px 50px rgba(2, 6, 23, 0.6);
  backdrop-filter: blur(6px) saturate(120%);
  position: relative;
  z-index: 3;
}

/* decorative oversized quote mark */
.intro-quote::before {
  content: "“";
  font-size: 3.6rem;
  line-height: 0.6;
  color: rgba(var(--accent-rgb), 0.80);
  position: absolute;
  left: 14px;
  top: -8px;
  transform: translateY(-2px);
  pointer-events: none;
}

/* ensure paragraph inside has no extra margin */
.intro-quote h2 {
  margin-top: 0;
}

.intro-quote p {
  margin: 0;
}

/* responsive scale-down on small screens */
@media (max-width:640px) {
  .intro-quote {
    font-size: 1.05rem;
    padding: 1rem 1.1rem;
    border-left-width: 5px;
    border-radius: 10px;
  }

  .intro-quote::before {
    font-size: 2.4rem;
    left: 12px;
    top: 0;
  }
}

.content {
  /* lift main text block over the feature area */
  position: relative;
  top: 300px;
  z-index: 2;
  /* keep original spacing intact otherwise */
  padding-top: 0;
}

/* smaller lift on narrow screens to avoid overlap */
@media (max-width:640px) {
  .content {
    top: -S40px;
  }
}

/* Top-right minimalist pop-out navigation */
.top-nav {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 60;
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  pointer-events: auto;
}

.nav-toggle {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid rgba(var(--white-rgb), 0.06);
  background: rgba(var(--bg-rgb), 0.03);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform .12s ease, background .12s;
  backdrop-filter: blur(6px);
}

.nav-toggle:active {
  transform: scale(.98)
}

.nav-toggle:hover {
  background: rgba(var(--accent-rgb), 0.5)
}

.nav-toggle:focus {
  outline: 2px solid rgba(var(--bg-rgb), 0.18);
  outline-offset: 2px
}

.hamburger {
  width: 18px;
  height: 2px;
  background: var(--text);
  position: relative;
  display: block;
}

.hamburger::before,
.hamburger::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--text);
}

.hamburger::before {
  top: -6px
}

.hamburger::after {
  top: 6px
}

/* pop-out menu */
.site-menu {
  position: fixed;
  top: 66px;
  right: 18px;
  width: 220px;
  background: linear-gradient(180deg, rgba(var(--white-rgb), 0.02), rgba(var(--white-rgb), 0.01));
  border-radius: 12px;
  box-shadow: 0 14px 40px rgba(var(--white-rgb), 0.06);
  padding: 10px;
  transform: translateY(-8px) scale(.98);
  opacity: 0;
  pointer-events: none;
  transition: transform .18s ease, opacity .18s ease;
  backdrop-filter: blur(8px) saturate(120%);
  border: 1px solid rgba(var(--white-rgb), 0.04);
  z-index: 55;
}

.site-menu.open {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}

.site-menu ul {
  list-style: none;
  margin: 0;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 6px
}

.site-menu a {
  display: block;
  padding: .6rem .8rem;
  color: var(--text);
  text-decoration: none;
  border-radius: 8px;
  transition: background .12s, color .12s;
  font-weight: 600;
  font-size: .95rem;
}

.site-menu a:hover,
.site-menu a:focus {
  background: rgba(var(--accent-rgb), 0.5);
  color: rgba(var(--white-rgb), 1);
  outline: none;
}

/* Load Atkinson Hyperlegible (web) and apply site-wide */
@import url('https://fonts.googleapis.com/css2?family=Atkinson+Hyperlegible:wght@400;600;700&display=swap');

body {
  margin: 0;
  font-family: 'Atkinson Hyperlegible', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.45;
  position: relative;
  overflow-x: hidden;
}

/* Page-specific feature images
   Place corresponding image files in the images/ folder:
   images/about.jpg, images/events.jpg, images/store.jpg, images/contact.jpg
*/
.page-about .feature {
  background-image: url('../images/about_header.webp');

}

.page-events .feature {
  background-image: url('../images/index_header.webp');

}

.page-store .feature {
  background-image: url('../images/store_header.webp');

}

.page-contact .feature {
  background-image: url('../images/contact_header.webp');

}

/* feature image for Private Events page */
.page-private .feature{
  background-image: url('../images/private_header.webp');
}

/* SVG overlay placed above the feature image */
.feature {
  position: fixed;
  top: 0;
  z-index: 0;
  width: 100%;
  padding-top: 60%;
  background: url('../images/index_header.webp') center center no-repeat;
  -webkit-background-size: 120%;
  -moz-background-size: 120%;
  -o-background-size: 120%;
  background-size: 120%;
  -webkit-box-shadow: 0 -50px 20px -20px var(--feature-shadow) inset;
  -moz-box-shadow: 0 -50px 20px -20px var(--feature-shadow) inset;
  box-shadow: 0 -50px 20px -20px var(--feature-shadow) inset;
}

.feature-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  /* allow clicks to pass through if desired */
  z-index: 3;
  /* sits above the feature background */
  padding: 1rem;
  box-sizing: border-box;
}

.feature-svg {
  max-width: 720px;
  width: 1100px;
  /* cap visual width for large screens */
  height: auto;
  opacity: 0.98;
  filter: drop-shadow(0 18px 50px rgb(var(--shadow-rgb), ));
  transform: translateY(-4%);
  /* lift slightly for composition */
  pointer-events: auto;
  /* set to auto if you want svg interactive */
}

/* responsive adjustments */
@media (max-width:980px) {
  .feature-svg {
    width: 720px;
    transform: translateY(-2%);
  }
}

@media (max-width:640px) {
  .feature-svg {
    width: 92%;
    transform: none;
  }
}

/* overlay that displays the CSV above the feature image */
.feature-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  /* above feature background */
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 1.25rem;
  pointer-events: auto;
  box-sizing: border-box;
}

/* small screens: smaller card and less height */
@media (max-width:640px) {
  .feature-overlay {
    padding: .75rem
  }

  .feature-overlay {
    max-height: 50vh
  }
}

/* responsive height adjustments */
@media (max-width:980px) {
  .feature {
    height: 240px
  }
}

@media (max-width:640px) {
  .feature {
    height: 160px
  }
}

/* site copyright notice */
.site-copyright {
  display: flex;
  align-items: center;
  justify-content: center;
  /* ensure horizontal centring */
  pointer-events: none;
  /* won't block interactions */
}

.site-copyright .copyright-inner {
  padding: 6px 10px;
  color: rgba(255, 255, 255, 0.9);
  /* slightly muted white */
  font-size: 0.9rem;
}

/* slightly smaller on small screens */
@media (max-width:640px) {
  .site-copyright .copyright-inner {
    font-size: 0.82rem;
    left: 12px;
    bottom: 12px;
    padding: 5px 8px
  }
}

/* Social links (bottom-right persistent) */
#site-social-links {
  display: none;
}

/* keep a fallback hidden in case old markup remains */

.site-social-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 1rem 0 0;
  width: 100%;
  box-sizing: border-box;
}

.site-social-row .social-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 10px;
  align-items: center;
}

.site-social-row .social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(var(--white-rgb), 0.04);
  color: var(--text);
  text-decoration: none;
  transition: transform .12s ease, background .12s ease, color .12s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.site-social-row .social-links a:hover,
.site-social-row .social-links a:focus {
  transform: translateY(-4px);
  background: rgba(var(--accent-rgb), 0.5);
  color: #ffffff;
  outline: none;
}

.site-social-row img,
.site-social-row svg {
  display: block;
  width: 20px;
  height: 20px;
}

/* smaller spacing on very small screens */
@media (max-width:420px) {
  .site-social-row {
    gap: 8px;
    margin-top: 0.6rem;
  }

  .site-social-row .social-links a {
    width: 40px;
    height: 40px;
  }
}

/* lead-image: start hidden, fade/slide in when loaded */
.lead-image img {
  display: block;
  width: 100%;
  height: auto;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .6s cubic-bezier(.2, .9, .2, 1), transform .6s cubic-bezier(.2, .9, .2, 1);
  will-change: opacity, transform;
}

/* class added by JS once image has loaded (or failed) */
.lead-image img.loaded {
  opacity: 1;
  transform: none;
}

/* Contact page hero: image and text side-by-side, stack on small screens */
.contact-hero{
  display:flex;
  align-items:center;
  gap:1.25rem;
  max-width:1100px;
  margin:0 auto 1.5rem;
  padding:0 1rem;
  box-sizing:border-box;
}
.contact-figure{
  flex:1 1 48%;
  margin:0;
}
.contact-figure img{
  width:100%;
  height:auto;
  display:block;
  border-radius:10px;
  box-shadow:0 12px 30px rgba(0,0,0,0.12);
  object-fit:cover;
}

.contact-info{
  flex:1 1 48%;
  color:var(--text);
}
.contact-info p{ margin:.4rem 0; color:rgba(var(--white-rgb),0.9); }

.contact-details td, .contact-details th{
  color:var(--text);
  font-weight: normal;
  padding:0;
  text-align:left;
}

/* Stack on narrow screens */
@media (max-width:640px){
  .contact-hero{
    flex-direction:column;
    gap:.75rem;
    padding:0 0.75rem;
  }
  .contact-figure,
  .contact-info{
    flex-basis: auto;
    width:100%;
  }
}