:root {
  --bg-page: #f7ecd4;
  --bg-page-dark: #f0dfbc;
  --bg-content: #fff7e5;
  --bg-content-edge: #f3e0bc;
  --ink-main: #3b2410;
  --ink-muted: #7a5b36;
  --ink-soft: #a38659;
  --accent: #c53b26;
  --accent-soft: #e8955e;
  --border-soft: #d3b27b;
  --nav-height: 64px;
  --radius-lg: 18px;
  --shadow-soft: 0 10px 35px rgba(120, 84, 35, 0.4);
}

/* Smooth anchor scroll + offset so headings are visible below sticky nav */
* {
  box-sizing: border-box;
  scroll-margin-top: calc(var(--nav-height) + 16px);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Georgia", "Times New Roman", serif;
  color: var(--ink-main);
  background:
    radial-gradient(circle at left, rgba(199, 161, 94, 0.6), transparent 60%),
    linear-gradient(to right, #f3e0bc, #f9f0d8, #f3e0bc);
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Skip link */

.skip-link {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: -100px;
  background: #000;
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  z-index: 1000;
  transition: top 0.2s ease;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-size: 0.85rem;
}

.skip-link:focus {
  top: 8px;
}

/* TOP BANNER (scrolls away, does NOT stick) */


.top {
  background:
    linear-gradient(
      to bottom,
      rgba(35, 20, 8, 0.92),    /* darker brown at the bottom */
      rgba(60, 37, 15, 0.95),  /* mid brown */
      rgba(82, 52, 20, 0.97)  /* lighter brown at the top */
    );
}

.top-banner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.4rem 1.6rem 0.4rem;
}


.top-banner-inner {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 32px rgba(120, 84, 35, 0.45);
  border: 1px solid rgba(214, 181, 116, 0.9);
  position: relative;
  background: #000;
}

.top-banner-image {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.top-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.45),
    rgba(0, 0, 0, 0.1)
  );
  pointer-events: none;
}

.top-banner-caption {
  position: absolute;
  left: 1.6rem;
  bottom: 0.1rem;
  color: #f9f5e9;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
  font-size: 1.1rem;
  letter-spacing: 0.04em;
}

/* NAVBAR (sticky) */

.navbar-wrap {
  position: sticky;
  top: 0;
  z-index: 999;
}

.navbar-backdrop {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to bottom,
      rgba(248, 236, 210, 0.97),
      rgba(246, 229, 193, 0.92),
      rgba(246, 229, 193, 0.7)
    );
  border-bottom: 1px solid rgba(198, 162, 93, 0.7);
  box-shadow: 0 4px 12px rgba(157, 116, 60, 0.4);
  z-index: -1;
}

.navbar {
  height: var(--nav-height);
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  color: var(--ink-muted);
  font-weight: 600;
}

.brand-mark {
  width: 26px;
  height: 26px;
  /* show your logo instead of the brown cube */
  background-image: url("../pictures/ArrowheadLogo.png");
  background-size: contain;   /* or "cover" if you want it to fill the box */
  background-position: center;
  background-repeat: no-repeat;

  border-radius: 0;           /* keep 0 for square, or 50% for circular */
  box-shadow: none;           /* optional: remove the cube-like shadow */
}

.navbar-menu {
  display: flex;
  gap: 1.3rem;
  align-items: center;
  font-size: 0.85rem;
}

/* Dropdown in navbar (used on events page) */

.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

/* The dropdown panel */
.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 0rem;
  min-width: 180px;
  background: linear-gradient(
    to bottom,
    rgba(250, 238, 214, 0.98),
    rgba(252, 244, 227, 0.98)
  );
  border-radius: 10px;
  border: 1px solid rgba(199, 161, 103, 0.9);
  box-shadow: 0 8px 20px rgba(160, 123, 65, 0.35);
  padding: 0.35rem 0;
  display: none;
  z-index: 1000;
}

/* Show menu on hover or focus (desktop + keyboard) */
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  display: block;
}

/* Items inside dropdown */
.nav-dropdown-item {
  display: block;
  padding: 0.35rem 0.9rem;
  font-size: 0.82rem;
  text-transform: none;      /* override .nav-link uppercase if you like */
  letter-spacing: 0.04em;
  color: var(--ink-main);
}

.nav-dropdown-item:hover {
  background: rgba(246, 229, 193, 0.9);
  text-decoration: none;
}


.nav-link {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 600;
  color: var(--ink-soft);
  position: relative;
  padding-bottom: 3px;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(to right, var(--accent), var(--accent-soft));
  transition: width 0.18s ease;
}

.nav-link:hover {
  color: var(--ink-main);
  text-decoration: none;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link.active {
  color: var(--accent);
}

/* PAGE SHELL & CONTENT */

.page-shell {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.4rem 1.6rem 3rem;
}

.page-inner {
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.7), transparent 55%),
    linear-gradient(to bottom, var(--bg-content), var(--bg-content-edge));
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(214, 181, 116, 0.8);
  padding: 1.8rem 2rem 2.3rem;
  position: relative;
  overflow: hidden;
}

.page-inner::before,
.page-inner::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 18px;
  pointer-events: none;
  opacity: 0.7;
}

.page-inner::before {
  left: 0;
  background: linear-gradient(to right, rgba(209, 162, 98, 0.7), transparent);
}

.page-inner::after {
  right: 0;
  background: linear-gradient(to left, rgba(209, 162, 98, 0.5), transparent);
}

/* HERO / INTRO */

.hero {
  margin-bottom: 1.8rem;
  border-bottom: 2px solid rgba(212, 177, 115, 0.55);
  padding-bottom: 1.4rem;
}

.hero-kicker {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin: 0 0 0.25rem;
}

.hero-title {
  font-size: 2rem;
  margin: 0 0 0.3rem;
  color: var(--accent);
}

.hero-subtitle-label {
  font-weight: bold;
  margin: 1rem 0 0.2rem;
}

.hero-text {
  margin: 0.2rem 0;
  color: var(--ink-muted);
  line-height: 1.7;
  max-width: 60rem;
}

.hero-meta {
  margin-top: 0.7rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.hero-meta span::before {
  content: "◆ ";
  color: var(--accent-soft);
}

.hero-meta span + span {
  margin-left: 1rem;
}

/* SECTIONS */

.sections {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
  margin-top: 1.6rem;
}

.section-card {
  padding: 1.4rem 1.5rem 1.6rem;
  border-radius: 16px;
  border-left: 4px solid rgba(197, 59, 38, 0.6);
  background: linear-gradient(
    to right,
    rgba(250, 238, 214, 0.9),
    rgba(252, 244, 227, 0.98)
  );
  box-shadow: 0 6px 20px rgba(160, 123, 65, 0.35);
  position: relative;
}

.section-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink-soft);
  margin-bottom: 0.25rem;
}

.section-title {
  font-size: 1.3rem;
  margin: 0 0 0.45rem;
  color: var(--accent);
}

.section-subtitle {
  margin: 0 0 0.8rem;
  color: var(--ink-muted);
}

.section-placeholder {
  margin-top: 0.2rem;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  border: 1px dashed rgba(199, 161, 103, 0.9);
  background: rgba(255, 249, 234, 0.9);
  color: var(--ink-soft);
  font-size: 0.96rem;
  line-height: 1.7;
}

.section-placeholder strong {
  color: var(--accent);
}

.section-placeholder ul,
.section-placeholder ol {
  margin-top: 0.4rem;
  padding-left: 1.4rem;
}

.section-placeholder li {
  margin: 0.1rem 0;
}

/* Text + image side-by-side inside a section-placeholder */

.section-with-image {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.section-with-image .section-text {
  flex: 1 1 0;
}

.section-with-image .section-image {
  flex: 0 0 auto;
  margin: 0;
}

.section-with-image .section-image img {
  display: block;
  max-width: 220px;   /* adjust width to taste */
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

/* Stack on small screens */

@media (max-width: 700px) {
  .section-with-image {
    flex-direction: column;
  }

  .section-with-image .section-image img {
    max-width: 100%;
  }
}


/* Footer note */

.footer-note {
  margin-top: 2.3rem;
  font-size: 0.82rem;
  color: var(--ink-soft);
  text-align: right;
  font-style: italic;
}

/* Responsive */

@media (max-width: 800px) {
  .navbar,
  .page-shell,
  .top-banner {
    padding-inline: 1.1rem;
  }

  .page-inner {
    padding-inline: 1.3rem;
  }

  .top-banner-image {
    height: 180px;
  }

  .top-banner-caption {
    font-size: 1rem;
    left: 1.2rem;
    bottom: 0.8rem;
  }
}

@media (max-width: 640px) {
  .navbar {
    flex-direction: column;
    justify-content: center;
    gap: 0.4rem;
    padding-block: 0.4rem;
    height: auto;
  }

  .navbar-menu {
    gap: 0.9rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero-title {
    font-size: 1.7rem;
  }

  .section-card {
    padding-inline: 1rem;
  }
}

/* PHOTO GALLERY LAYOUT */

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-top: 0.6rem;
  
  align-items: start;
}

.photo-item {
  background: rgba(255, 249, 234, 0.95);
  border-radius: 10px;
  border: 1px solid rgba(199, 161, 103, 0.7);
  padding: 0.5rem;
  box-shadow: 0 4px 12px rgba(160, 123, 65, 0.25);
}

.photo-item img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
}

.photo-item figcaption {
  margin-top: 0.35rem;
  font-size: 0.8rem;
  color: var(--ink-soft);
}

.photo-item figcaption:empty {
  margin: 0;
  padding: 0;
  display: none;
}


/* LIGHTBOX POPUP FOR GALLERY */

body.lightbox-open {
  overflow: hidden; /* prevent background scroll when popup is open */
}

.lightbox-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.lightbox-backdrop.is-visible {
  display: flex;
}

.lightbox {
  position: relative;
  max-width: min(90vw, 1000px);
  max-height: 90vh;
  background: linear-gradient(to bottom, #3b2410, #1a0f06);
  border-radius: 12px;
  border: 1px solid rgba(214, 181, 116, 0.85);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.8);
  padding: 1.2rem 2.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 75vh;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7);
}

.lightbox-close {
  position: absolute;
  top: 0.35rem;
  right: 0.7rem;
  background: none;
  border: none;
  font-size: 1.7rem;
  line-height: 1;
  color: #fef9c3;
  cursor: pointer;
}

.lightbox-close:hover {
  color: #facc6b;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 2rem;
  line-height: 1;
  color: #fef9c3;
  cursor: pointer;
  padding: 0 0.25rem;
}

.lightbox-prev {
  left: 0.4rem;
}

.lightbox-next {
  right: 0.4rem;
}

.lightbox-nav:hover {
  color: #facc6b;
}

.lightbox-counter {
  position: absolute;
  bottom: 0.35rem;
  right: 0.7rem;
  font-size: 0.8rem;
  color: #facc6b;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
