body {
  background: black;
  margin: 0;
  font-family: "Inter", Arial, sans-serif;
  line-height: 1.6;
  color: #fff;
  
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

html {
  scroll-behavior: smooth;
}

main {
  flex: 1;
}

h1, h2, h3 {
  /* font-family: "Lora", serif; */
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 2px;         /* cinematic spacing */
  font-weight: normal;  /* overrides the default bolded header style */
  text-transform: uppercase;
}

h1{
  text-align: center;
  font-size: 40px;
}

#announcement-banner {
  position: relative; /* for absolute positioning of close button */
  display: flex;
  justify-content: center;
  align-items: center;
  padding: clamp(20px, 3vw, 40px) 4%;
  background-color: #fff;
  color: black;
  overflow: hidden; /* required for height animation */
  transition: 
    opacity 0.4s ease,
    max-height 0.5s ease,
    padding 0.4s ease;
}

#announcement-banner .banner-text {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(24px, 4vw, 48px);
  line-height: 1.4;
  text-align: center;
  color: black;
  width: 100%;
  padding: 0; 
}

#banner-close {
  position: absolute;
  top: 10px;
  right: 20px;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
}

#announcement-banner.fade-out {
  opacity: 0;
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
}

#countdown {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(24px, 4vw, 48px);
  letter-spacing: 3px;
  text-align: center;
  display: block;
}

/* hyperlinks */
a {
  color: #36e336; /* light green */
  text-decoration: none; /* optional: removes underline */
}

a:visited {
  color: #36e336; /* keeps it from turning purple */
}

a:hover {
  color: #90ee90; /* slightly brighter on hover */
}

* {
  box-sizing: border-box;
}

/* NAVBAR */

.navbar {
  width: 100%;
  max-width: 100%;
/*  z-index: 10; */
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #000;
  padding: 15px 40px;
}

.menu-toggle {
  display: none;
  font-size: 28px;
  cursor: pointer;
  color: white;
}

.navbar a {
  color: white;
  text-decoration: none;
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 1.5px;
  font-size: 20px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 25px;
  margin: 0;
}

/* Dropdown container */
.dropdown {
  position: relative;
}

/* Hidden state */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  font-family: "Bebas Neue", sans-serif;

  opacity: 0;
  pointer-events: none;
  transform: translateY(-2px);

  transition: 
    opacity 0.2s,
    transform 0.2s;

  background: #222;
  list-style: none;
  padding: 10px 0;
  min-width: 180px;
  z-index: 1000;
  box-shadow: 0 4px 6px rgba(0,0,0,0.2);
}

/* Visible state */
.dropdown:hover .dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);

  transition-delay: 0s;   /* fade in immediately */
}

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

/* Full-row clickable links */
.dropdown-menu li a {
  display: block;
  color: white;
  text-decoration: none;
  padding: 8px 20px;
}

.dropdown-menu li a:hover {
  background-color: #333;
}

.sort-menu {
  display: inline-block;
  position: relative;
  padding: 10px 0;
}

.sort-menu::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 16px;
}

.sort-menu #sort-label {
  cursor: pointer;
  color: white;
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 1.5px;
  font-size: 20px;
}

/* FULL-WIDTH PAGE BANNER */
.page-banner {
  position: relative;
  width: 100%;
  height: 50vh;
  overflow: hidden;
}

.page-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-banner .banner-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 48px;
  text-align: center;
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 12px;         /* very cinematic spacing */
  text-transform: uppercase;
  display: block;
}

.banner-auto {
  height: auto;
}

.banner-auto img {
  height: auto;
  width: 100%;
  object-fit: contain;
}

.section {
  display: flex;
  align-items: center; 
  padding: 60px 5%;
  gap: 2rem;
  transition: background-color 0.3s ease;
}

.section:hover {
  background-color: #2a2a2a;
}

.section a img {
  display: block;
  width: 100%;    
  flex: 0 0 50%; 
}

.section img {
  flex: 0 0 50%;
  width: 50%;
  height: auto;
  object-fit: cover;
  display: block;
}

.section-text {
  flex: 0 0 50%;
  width: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Only style section-text that contains an image */
.section .section-text:has(img) {
  display: flex;
  flex-direction: column;  /* stack image and text vertically */
  align-items: center;     /* center horizontally */
  text-align: center;      /* center text lines */
  gap: 0.5em;              /* space between image and text */
}

/* Style the text (links) as headings */
.section .section-text:has(img) a {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2em;
  text-decoration: none;
  color: #f0f0f0;
}

.section .section-text:has(img) a:hover {
  color: #e0e0e0;      
}

/* Optional: style paragraphs inside section-text with image */
.section .section-text:has(img) p {
  font-family: 'Lora', serif;
  font-weight: 600;
  font-size: 1.2em;
  margin: 0;
}

/* ALTERNATE LAYOUT */

.section.reverse {
  flex-direction: row-reverse;
}

/* TEXT-ONLY FULL-WIDTH SECTION */
.section.full-text {
  display: block;        /* remove flex layout */
  padding: 30px 5%;     /* slightly wider readable margins */
  width: 100%;
}

/* Tighter for headings-only sections */
.section.full-text h1 {
  margin: 0;
}

/* Extra tight when it's just a title block */
.section.full-text:has(h1):not(:has(p)) {
  padding: 20px 5%;
}

.section.full-text .section-text {
  width: 100%;
  /* max-width: 900px;      /* keeps text readable */
  margin: 0 auto;        /* center it */
  padding: 0 20px;   /* small inner padding */
  flex: 0 0 auto;
}

/* Hide image if present 
.section.full-text img {
  display: none;
}*/

/* LIGHT SECTION VARIANT */
.section.light {
  background-color: #f0f0f0;
  color: #000;
}

.section.light:hover {
  background-color: #e0e0e0;
}

.section.light h1,
.section.light h2,
.section.light h3 {
  color: #000;
}

.section.light a {
  color: #4a4a4a;
}

.section.light a:hover {
  color: #6a6a6a;
}

.section.light .section-text:has(img) a {
  color: black;
}

.section.light .section-text:has(img) a:hover {
  color: #2a2a2a;
}

/* Make the iframe behave like the image in the flex layout */
.map-wrapper {
  flex: 0 0 50%;      /* same as your image width */
  display: flex;       /* enable centering inside */
  justify-content: center; /* center iframe horizontally */
  align-items: center;     /* center iframe vertically if needed */
}

.map-wrapper iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}

.insta-wrapper, 
.strava-wrapper {
  flex: 0 0 50%; 
  display: flex;
  justify-content: center;
  align-items: center;
  width: 50%;
/*  aspect-ratio: 4 / 5; */
}

.insta-wrapper blockquote,
.strava-wrapper iframe,
.strava-wrapper .strava-embed-placeholder {
  width: 100%;
  height: 100%;
  max-height: 100%;
  display: block;
}

form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

input, textarea {
  padding: 10px;
  background: #111;
  border: 1px solid #444;
  color: white;
  font-family: inherit;
}

/* Make first and last name fields sit side by side */
.name-row {
  display: flex;
  gap: 10px;
  width: 100%;   
}

.name-row input {
  flex: 1; /* each input takes equal space */
  min-width: 0;
}

button {
  background: #f0f0f0;
  color: black;
  border: none;
  padding: 10px;
  cursor: pointer;
  font-weight: bold;
}

button:hover {
  background: #e0e0e0;
}

#form-status {
  margin-top: 15px;
  font-weight: bold;
  color: #f0f0f0;
}

.logo img {
  height: 45px;      
  width: auto;        /* keep proportions */
  display: block;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  background-color: black;
  color: #c0c0c0;  
  padding: 10px clamp(20px, 5vw, 40px);
}

/* Left column */
.site-footer .copyright {
  justify-self: start;
  text-align: left; 
  font-size: 0.85rem;   /* smaller than normal text */
  opacity: 0.8;   
}

/* Center column */
.site-footer .back-to-top {
  justify-self: center;
}

/* Right column */
.socials {
  grid-column: 3;
  justify-self: end;

  display: flex;
  gap: 12px;
  align-items: center;
}

/* Icon styling */
.socials img {
  height: 24px;
  width: 24px;
  display: block;
  filter: brightness(0.8);
  transition: filter 0.2s ease, transform 0.2s ease;
}

.socials img:hover {
  filter: brightness(1);
  transform: scale(1.1);
}

.site-footer a.back-to-top {
  color: #c0c0c0;
  text-decoration: none;
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 4px;
  text-transform: uppercase;
}

.site-footer a.back-to-top:hover {
  color: #d0d0d0;
}

/* Responsive adjustments for mobile */
@media (max-width: 768px) {
  .section,
  .section.reverse {
    flex-direction: column;  /* stack vertically */
    padding: 30px 5%;
    gap: 20px;        
  }
  
  .section img,
  .section a img,
  .section-text {
    width: 100%;
    flex: 0 0 auto;
  }
  
  .section-text {
    padding: 0 10px; 
  }

  .insta-wrapper, 
  .strava-wrapper {
    flex: 0 0 auto;          /* take full width */
    width: 100%;             /* full width on mobile */
    height: auto;            /* let height scale with content */
    max-width: 100%;         /* remove max-width restriction */
    aspect-ratio: auto;
  }

  .insta-wrapper blockquote,
  .strava-wrapper iframe,
  .strava-wrapper .strava-embed-placeholder {
    width: 100%;
    height: auto;            /* make responsive */
  }

  .navbar {
    padding: 10px 15px;
    position: relative;
    z-index: 10; 
  }

  /* Show hamburger */
  .menu-toggle {
    display: block;
    line-height: 1;      
    height: 100%;        
    display: flex;       
    align-items: center; 
    justify-content: center;
  }

  /* Hide menu by default */
  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    background: #000;
    position: absolute;
    top: 100%;
    left: 0;
    padding: 15px 0;
  }

  /* Show when active */
  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    text-align: left;
    padding: 10px 20px;
  }
}
