/* ========================================================
   Wulfrun Walkers - Jekyll Site Stylesheet
   Faithful reproduction of www.wulfrunwalkers.co.uk
   ======================================================== */

:root {
  --primary-gold: #FFCC33;
  --primary-gold-dark: #e5b31f;
  --text-dark: #333333;
  --text-muted: #555555;
  --nav-text: #7a6f59;
  --nav-hover: #1f1d19;
  --bg-page: #ffffff;
  --bg-card: #fdfdfc;
  --border-light: #e5e3dc;
  --font-main: 'Open Sans', 'Helvetica Neue', Arial, sans-serif;
  --font-heading: 'Open Sans', 'Helvetica Neue', Arial, sans-serif;
  --font-accent: 'Raleway', sans-serif;
  --max-width: 980px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-main);
  color: var(--text-dark);
  background-color: #f7f6f2;
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

/* Site Wrapper */
.site-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  background-color: var(--bg-page);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ========================================================
   HEADER & NAVIGATION BUTTONS
   ======================================================== */
.site-header {
  width: 100%;
  background-color: #ffffff;
  border-bottom: 1px solid var(--border-light);
}

.header-banner-container {
  width: 100%;
  max-height: 280px;
  overflow: hidden;
  position: relative;
  background-color: #e8ecf0;
}

.header-banner-img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Navigation */
.site-nav {
  background-color: #ffffff;
  border-top: 1px solid #f0eee8;
  position: relative;
  z-index: 50;
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 10px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 12px;
  flex-direction: column;
  gap: 5px;
}

.hamburger-bar {
  display: block;
  width: 26px;
  height: 3px;
  background-color: var(--nav-text);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  justify-content: center;
}

.nav-item {
  margin: 0 4px;
}

.nav-link {
  display: block;
  padding: 14px 18px;
  color: var(--nav-text);
  text-decoration: none;
  font-family: var(--font-main);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-bottom: 3px solid transparent;
  transition: all 0.25s ease;
  position: relative;
}

.nav-link:hover {
  color: var(--nav-hover);
  border-bottom-color: var(--primary-gold);
  background-color: #fbf9f4;
}

.nav-link.active {
  color: #1a1917;
  font-weight: 700;
  border-bottom-color: var(--primary-gold);
}

.header-nav-accent {
  height: 3px;
  background: linear-gradient(90deg, #FFCC33, #e5b31f, #FFCC33);
  width: 100%;
}

/* ========================================================
   MAIN CONTENT
   ======================================================== */
.site-main {
  flex: 1;
  padding: 30px 20px 40px;
}

.site-content-wrapper {
  max-width: var(--max-width);
  margin: 0 auto;
}

/* Common Page Title Banner */
.page-title-banner {
  text-align: center;
  margin: 10px auto 30px;
  position: relative;
}

.page-title-badge {
  display: inline-block;
  background-color: var(--primary-gold);
  color: #1a1917;
  font-family: var(--font-heading);
  font-size: 34px;
  font-weight: 700;
  padding: 8px 32px;
  border-radius: 4px;
  text-shadow: #ffffff 2px 2px 0px, rgba(0, 0, 0, 0.15) 3px 3px 0px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
  letter-spacing: 0.02em;
}

.page-featured-image {
  text-align: center;
  margin: 20px auto 30px;
}

.page-featured-image img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  max-height: 400px;
  object-fit: cover;
}

/* Home Page Header Banner & Title */
.home-header-block {
  text-align: center;
  margin-bottom: 25px;
}

.club-logo {
  width: 130px;
  height: 130px;
  object-fit: contain;
  margin: 0 auto 15px;
  display: block;
}

.home-main-title {
  display: inline-block;
  background-color: var(--primary-gold);
  color: #1f1d18;
  font-family: var(--font-heading);
  font-size: 38px;
  font-weight: 700;
  padding: 10px 36px;
  border-radius: 4px;
  text-shadow: #ffffff 3px 3px 0px, rgba(0, 0, 0, 0.18) 5px 5px 0px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  letter-spacing: 0.01em;
  margin-bottom: 20px;
}

/* Flourish Separator */
.flourish-separator {
  text-align: center;
  margin: 28px auto;
  max-width: 850px;
}

.flourish-separator img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* Section Blocks */
.content-section {
  margin-bottom: 30px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: #2b2823;
  margin-bottom: 14px;
  letter-spacing: 0.01em;
}

.content-paragraph {
  font-size: 16px;
  line-height: 1.7;
  color: #333333;
  margin-bottom: 16px;
  text-align: justify;
}

/* Action Buttons & Links */
.btn-action {
  display: inline-block;
  background: linear-gradient(180deg, #FFCC33 0%, #e6a817 100%);
  color: #1a1917;
  font-family: var(--font-main);
  font-size: 16px;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 30px;
  text-decoration: none;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
  transition: all 0.25s ease;
  border: 1px solid #d49a12;
  cursor: pointer;
  text-align: center;
}

.btn-action:hover {
  background: linear-gradient(180deg, #ffd752 0%, #f0b526 100%);
  transform: translateY(-2px);
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.2);
  color: #000;
}

.btn-container {
  margin: 25px 0;
  text-align: center;
}

/* Guidelines Bullet List */
.guidelines-list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.guidelines-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  line-height: 1.6;
  font-size: 15.5px;
  color: #333333;
}

.guidelines-list li::before {
  content: "✔";
  position: absolute;
  left: 0;
  top: 0;
  color: #2e7d32;
  font-weight: bold;
  font-size: 16px;
}

/* Walk Grading Cards */
.grading-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin: 25px 0;
}

.grading-card {
  background: #fdfcf9;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.grading-card.easy { border-top: 4px solid #4caf50; }
.grading-card.moderate { border-top: 4px solid #ff9800; }
.grading-card.strenuous { border-top: 4px solid #f44336; }

.grading-card-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #222;
}

.grading-card.easy .grading-card-title { color: #2e7d32; }
.grading-card.moderate .grading-card-title { color: #e65100; }
.grading-card.strenuous .grading-card-title { color: #c62828; }

/* Contact Page Info */
.contact-card {
  background: #fcfbf8;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 25px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.contact-highlight {
  font-size: 18px;
  font-weight: 700;
  color: #222;
  margin: 10px 0;
}

.contact-email-link {
  color: #1565c0;
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px dashed #1565c0;
}

.contact-email-link:hover {
  color: #0d47a1;
  border-bottom-style: solid;
}

/* Events Timeline & Items */
.event-entry {
  background: #ffffff;
  border: 1px solid #e8e6df;
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 30px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.event-date-badge {
  display: inline-block;
  background-color: var(--primary-gold);
  color: #1a1917;
  font-weight: 700;
  font-size: 15px;
  padding: 4px 14px;
  border-radius: 4px;
  margin-bottom: 14px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

.event-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 15px;
  margin-top: 18px;
}

.event-gallery-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.event-gallery-img:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 14px rgba(0,0,0,0.18);
}

/* Photography Grid */
.photo-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin: 25px 0;
}

.photo-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.25s, box-shadow 0.25s;
}

.photo-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
}

.photo-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
  cursor: pointer;
}

.photo-caption-hint {
  text-align: center;
  font-size: 15px;
  font-style: italic;
  color: var(--text-muted);
  margin: 15px 0 25px;
}

/* ========================================================
   FOOTER
   ======================================================== */
.site-footer {
  background-color: #2b2823;
  color: #d8d5cb;
  padding: 35px 20px 20px;
  margin-top: auto;
  border-top: 3px solid var(--primary-gold);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
}

.footer-affiliations {
  margin-bottom: 25px;
}

.affiliation-title {
  display: block;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #b5b0a3;
  margin-bottom: 15px;
}

.partner-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 25px;
  flex-wrap: wrap;
}

.partner-logo {
  height: 38px;
  width: auto;
  filter: brightness(0.9) contrast(1.1);
  background-color: #ffffff;
  padding: 4px 10px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.partner-logo:hover {
  filter: brightness(1);
  transform: scale(1.05);
}

.footer-social {
  margin-bottom: 20px;
}

.social-icon {
  width: 32px;
  height: 32px;
  transition: transform 0.2s ease;
}

.social-icon:hover {
  transform: scale(1.15);
}

.footer-bottom {
  font-size: 14px;
  color: #9c978b;
  border-top: 1px solid #444038;
  padding-top: 15px;
}

/* ========================================================
   LIGHTBOX MODAL
   ======================================================== */
.lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.88);
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.lightbox-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 85vh;
  border-radius: 4px;
  box-shadow: 0 5px 25px rgba(0,0,0,0.5);
  animation: zoomIn 0.25s ease;
}

@keyframes zoomIn {
  from { transform: scale(0.85); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #ffffff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.2s;
}

.lightbox-close:hover {
  color: var(--primary-gold);
}

.lightbox-caption {
  margin-top: 10px;
  color: #e5e3dc;
  font-size: 15px;
  text-align: center;
}

/* ========================================================
   RESPONSIVE DESIGN
   ======================================================== */
@media (max-width: 768px) {
  .header-banner-container,
  .header-banner-img {
    height: 180px;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    display: none;
    flex-direction: column;
    width: 100%;
    text-align: center;
    padding: 10px 0;
    border-top: 1px solid var(--border-light);
  }

  .nav-menu.is-open {
    display: flex;
  }

  .nav-item {
    margin: 4px 0;
  }

  .nav-link {
    padding: 10px 15px;
    border-bottom: none;
    border-left: 4px solid transparent;
  }

  .nav-link.active,
  .nav-link:hover {
    border-bottom: none;
    border-left-color: var(--primary-gold);
    background-color: #f7f6f2;
  }

  .home-main-title,
  .page-title-badge {
    font-size: 26px;
    padding: 8px 20px;
  }

  .club-logo {
    width: 100px;
    height: 100px;
  }

  .content-paragraph {
    text-align: left;
  }
}
