/* ===========================
   Nor Coast Rodders - Shared Styles
   =========================== */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Open Sans', Arial, sans-serif;
  background-color: #0a0a12;
  color: #e8e8e8;
  line-height: 1.6;
}

a { color: #5dade2; text-decoration: none; }
a:hover { text-decoration: underline; }

/* --- Navigation --- */
.site-nav {
  background: #0d1020;
  border-bottom: 1px solid #2a3050;
  padding: 0 1.5rem;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
}

.nav-brand {
  font-family: 'Oswald', Impact, sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  text-decoration: none;
  letter-spacing: 1px;
  white-space: nowrap;
}

.nav-brand:hover { text-decoration: none; color: #e74c3c; }

.nav-links {
  display: flex;
  list-style: none;
  gap: 0.25rem;
}

.nav-links a {
  font-family: 'Oswald', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: #b0b8c8;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
  letter-spacing: 0.5px;
}

.nav-links a:hover {
  color: #fff;
  background: rgba(231, 76, 60, 0.15);
  text-decoration: none;
}

.nav-links a.active {
  color: #e74c3c;
}

/* Hamburger toggle (CSS-only) */
.nav-toggle { display: none; }
.nav-toggle-label {
  display: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 28px;
}

.nav-toggle-label span {
  display: block;
  height: 2px;
  background: #b0b8c8;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

@media (max-width: 680px) {
  .nav-toggle-label { display: flex; }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 52px;
    left: 0;
    right: 0;
    background: #0d1020;
    border-bottom: 1px solid #2a3050;
    padding: 0.5rem 0;
  }

  .nav-links li { text-align: center; }
  .nav-links a {
    display: block;
    padding: 0.75rem 1rem;
    font-size: 1rem;
  }

  .nav-toggle:checked ~ .nav-links { display: flex; }

  .nav-toggle:checked ~ .nav-toggle-label span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .nav-toggle:checked ~ .nav-toggle-label span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle:checked ~ .nav-toggle-label span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

/* --- Hero (index) --- */
.hero {
  text-align: center;
  padding: 2rem 1rem 1rem;
  background: linear-gradient(180deg, #0d1020 0%, #0a0a12 100%);
}

.hero img {
  max-width: 480px;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.hero-art {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
}

.hero-wide .hero-art > img:first-child {
  max-width: 100%;
  border-radius: 0;
}

.hero-art .hero-logo {
  position: absolute;
  right: 0;
  bottom: -4%;
  width: 18%;
  max-width: 120px;
  border-radius: 0;
}

.cta .cta-secondary { margin-top: 0.75rem; }

.cta .cta-secondary a {
  display: inline;
  background: none;
  padding: 0;
  font-family: 'Open Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: #5dade2;
}

.cta .cta-secondary a:hover { background: none; text-decoration: underline; }

/* --- Event details (index) --- */
.schedule {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.4rem 1.25rem;
  margin-bottom: 0.75rem;
}

.schedule dt {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  color: #fff;
}

.schedule dd { font-size: 0.95rem; }

.highlight-box ol {
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
}

.highlight-box .notice {
  font-size: 0.85rem;
  color: #e74c3c;
  margin-bottom: 0;
}

.route-map {
  display: block;
  width: 100%;
  max-width: 480px;
  height: auto;
  margin: 1rem auto 0;
  border-radius: 6px;
  border: 1px solid #2a3050;
}

.benefit {
  text-align: center;
  color: #b0b8c8;
  font-style: italic;
  margin: 1.5rem 0;
}

.section-divider {
  border: 0;
  border-top: 1px solid #2a3050;
  margin: 2.5rem 0 2rem;
}

.section-title {
  font-size: 1.5rem;
  text-align: center;
  margin-bottom: 0.25rem;
}

@media (max-width: 480px) {
  .schedule { grid-template-columns: 1fr; gap: 0 0; }
  .schedule dd { margin-bottom: 0.5rem; }
}

/* --- Content container --- */
.content {
  max-width: 700px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 3rem;
}

.content-wide {
  max-width: 960px;
}

/* --- Typography --- */
h1 {
  font-family: 'Oswald', Impact, sans-serif;
  font-size: 2rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
  text-align: center;
  margin-bottom: 0.25rem;
  letter-spacing: 1px;
}

h2 {
  font-family: 'Oswald', sans-serif;
  color: #e74c3c;
  text-transform: uppercase;
}

.subtitle {
  text-align: center;
  font-size: 1.1rem;
  color: #b0b8c8;
  margin-bottom: 1.5rem;
}

/* --- Highlight box --- */
.highlight-box {
  background: linear-gradient(135deg, #1a1e30, #14182a);
  border: 1px solid #2a3050;
  border-left: 4px solid #c0392b;
  border-radius: 6px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
}

.highlight-box h2 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.highlight-box p, .highlight-box li {
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
}

.highlight-box ul {
  list-style: none;
  padding: 0;
}

.highlight-box ul li::before {
  content: "\25b8 ";
  color: #e74c3c;
}

/* --- Date / Location --- */
.date-location {
  text-align: center;
  margin-bottom: 1.5rem;
}

.date-location .date {
  font-family: 'Oswald', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
}

.date-location .location {
  font-size: 1rem;
  color: #8a94a8;
}

/* --- CTA Button --- */
.cta {
  text-align: center;
  margin: 2rem 0;
}

.cta a {
  display: inline-block;
  background: #c0392b;
  color: #fff;
  font-family: 'Oswald', sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.85rem 2.5rem;
  border-radius: 5px;
  letter-spacing: 1px;
  transition: background 0.2s;
}

.cta a:hover {
  background: #e74c3c;
  text-decoration: none;
}

/* --- Info grid (index) --- */
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.info-card {
  border: 1px solid #2a3050;
  border-radius: 6px;
  padding: 1rem 1.25rem;
}

.info-card h3 {
  font-family: 'Oswald', sans-serif;
  font-size: 0.95rem;
  color: #e74c3c;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.info-card p {
  font-size: 0.9rem;
  color: #b0b8c8;
}

.info-card a { color: #5dade2; text-decoration: none; }
.info-card a:hover { text-decoration: underline; }

/* --- Hotel box --- */
.hotel {
  border: 1px solid #2a3050;
  border-radius: 6px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.hotel h3 {
  font-family: 'Oswald', sans-serif;
  font-size: 0.95rem;
  color: #e74c3c;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.hotel p {
  font-size: 0.9rem;
  color: #b0b8c8;
}

.hotel a { color: #5dade2; text-decoration: none; }

/* --- Waiver --- */
.waiver {
  font-size: 0.75rem;
  color: #666;
  text-align: center;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #1a1e30;
  line-height: 1.5;
}

/* --- Footer --- */
footer {
  text-align: center;
  padding: 2rem 1.5rem;
  font-size: 0.85rem;
  color: #888;
  border-top: 1px solid #1a1e30;
  max-width: 700px;
  margin: 0 auto;
}

footer a { color: #5dade2; text-decoration: none; }
footer a:hover { text-decoration: underline; }

.footer-contact {
  margin-bottom: 0.75rem;
  line-height: 1.8;
}

.footer-contact a { color: #5dade2; }

.footer-address {
  font-size: 0.8rem;
  color: #666;
  margin-bottom: 0.75rem;
}

.footer-links {
  font-size: 0.8rem;
}

.footer-links a { margin: 0 0.5rem; }

/* --- About page --- */
.about-header-images {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.about-header-images img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #2a3050;
}

@media (max-width: 600px) {
  .about-header-images {
    grid-template-columns: 1fr;
  }
  .about-header-images img {
    height: 220px;
  }
}

/* --- Gallery page --- */
.gallery-jump {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.gallery-jump a {
  display: inline-block;
  background: #1a1e30;
  color: #b0b8c8;
  font-family: 'Oswald', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.5rem 1.25rem;
  border-radius: 5px;
  border: 1px solid #2a3050;
  transition: background 0.2s, color 0.2s;
}

.gallery-jump a:hover {
  background: #c0392b;
  color: #fff;
  text-decoration: none;
}

.gallery-year {
  margin-bottom: 2.5rem;
}

.gallery-year h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #2a3050;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.gallery-grid img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #2a3050;
  transition: transform 0.2s, border-color 0.2s;
  cursor: pointer;
}

.gallery-grid img:hover {
  transform: scale(1.03);
  border-color: #e74c3c;
}

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .gallery-grid img {
    height: 220px;
  }
}

/* --- Gallery videos --- */
.video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.video-grid video {
  width: 100%;
  height: 360px;
  object-fit: cover;
  background: #000;
  border-radius: 6px;
  border: 1px solid #2a3050;
}

@media (max-width: 600px) {
  .video-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Gallery year index --- */
.gallery-index {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

.gallery-card {
  display: block;
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid #2a3050;
  text-decoration: none;
  transition: border-color 0.2s, transform 0.2s;
}

.gallery-card:hover {
  border-color: #e74c3c;
  transform: translateY(-3px);
  text-decoration: none;
}

.gallery-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.gallery-card-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.88));
  color: #fff;
  font-family: 'Oswald', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 2rem 1rem 0.75rem;
}

.gallery-card-count {
  font-family: 'Open Sans', sans-serif;
  font-size: 0.8rem;
  color: #b0b8c8;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  display: block;
}

.gallery-card-placeholder {
  position: relative;
  border-radius: 6px;
  border: 1px solid #2a3050;
  background: linear-gradient(135deg, #1a1e30, #14182a);
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  padding: 1.5rem;
  text-decoration: none;
  transition: border-color 0.2s, transform 0.2s;
}

.gallery-card-placeholder:hover {
  border-color: #e74c3c;
  transform: translateY(-3px);
  text-decoration: none;
}

.gallery-card-placeholder .gallery-card-label {
  position: static;
  background: none;
  padding: 0;
  color: #e74c3c;
  margin-bottom: 0.4rem;
}

.gallery-card-placeholder .gallery-card-count {
  color: #5a6070;
}

@media (max-width: 768px) {
  .gallery-index { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .gallery-index { grid-template-columns: 1fr; }
}

/* --- Lightbox --- */
#lightbox {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
}

#lightbox[hidden] { display: none; }

#lb-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.93);
}

#lb-figure {
  position: relative;
  z-index: 1;
  margin: 0;
  text-align: center;
  max-width: 90vw;
}

#lb-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.8);
  display: block;
}

#lb-counter {
  color: #888;
  font-size: 0.85rem;
  margin-top: 0.5rem;
  font-family: 'Open Sans', sans-serif;
}

#lb-close {
  position: fixed;
  top: 1rem;
  right: 1.25rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
  z-index: 2;
  line-height: 1;
  opacity: 0.7;
  transition: opacity 0.2s;
  padding: 0;
}

#lb-close:hover { opacity: 1; }

#lb-prev,
#lb-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  border: none;
  color: #fff;
  font-size: 1.8rem;
  cursor: pointer;
  z-index: 2;
  padding: 1rem 0.75rem;
  border-radius: 4px;
  opacity: 0.7;
  transition: opacity 0.2s, background 0.2s;
}

#lb-prev:hover,
#lb-next:hover {
  opacity: 1;
  background: rgba(192, 57, 43, 0.7);
}

#lb-prev { left: 0.5rem; }
#lb-next { right: 0.5rem; }

/* --- Responsive --- */
@media (max-width: 600px) {
  h1 { font-size: 1.5rem; }
  .info-grid { grid-template-columns: 1fr; }
  .hero img { max-width: 360px; }
}

/* --- Calendar (calendar.php) --- */
.cal-heading {
  font-family: 'Oswald', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #e74c3c;
  margin: 2.5rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #2a3050;
}

.cal-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cal-event {
  display: flex;
  gap: 1.25rem;
  background: #1a1e30;
  border: 1px solid #2a3050;
  border-left: 3px solid #c0392b;
  border-radius: 6px;
  padding: 1.25rem;
}

.cal-date {
  flex: 0 0 62px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #14182a;
  border: 1px solid #2a3050;
  border-radius: 6px;
  padding: 0.6rem 0.25rem;
  align-self: flex-start;
}

.cal-mon {
  font-family: 'Oswald', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #e74c3c;
}

.cal-day {
  font-family: 'Oswald', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.1;
  color: #fff;
}

.cal-yr {
  font-size: 0.7rem;
  color: #7a839a;
  letter-spacing: 0.5px;
}

.cal-body { flex: 1; min-width: 0; }

.cal-body h3 {
  font-family: 'Oswald', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #fff;
  margin: 0 0 0.35rem;
}

.cal-meta {
  font-size: 0.85rem;
  color: #b0b8c8;
  margin-bottom: 0.2rem;
}

.cal-location {
  font-size: 0.85rem;
  color: #7a839a;
}

.cal-desc {
  margin: 0.65rem 0 0;
  font-size: 0.92rem;
  line-height: 1.6;
  color: #d5dae5;
}

.cal-link {
  display: inline-block;
  margin-top: 0.85rem;
  font-family: 'Oswald', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #fff;
  background: #c0392b;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.2s;
}

.cal-link:hover {
  background: #e74c3c;
  text-decoration: none;
}

/* Past events sit quieter than upcoming ones */
.cal-list-past .cal-event {
  border-left-color: #2a3050;
  opacity: 0.75;
  padding: 0.9rem 1.25rem;
}

.cal-list-past .cal-mon { color: #7a839a; }
.cal-list-past .cal-day { font-size: 1.4rem; color: #b0b8c8; }
.cal-list-past .cal-body h3 { font-size: 1rem; color: #d5dae5; }

/* Keep the five nav links on one line on narrow desktops */
@media (max-width: 860px) and (min-width: 681px) {
  .nav-links a { padding: 0.5rem 0.45rem; font-size: 0.78rem; letter-spacing: 0.3px; }
  .nav-brand { font-size: 1rem; letter-spacing: 0.5px; }
}

@media (max-width: 600px) {
  .cal-event { gap: 0.9rem; padding: 1rem; }
  .cal-date { flex-basis: 54px; }
  .cal-day { font-size: 1.5rem; }
  .cal-body h3 { font-size: 1.05rem; }
}
