/* ===================== RESET & BASE ===================== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #1a5276;
  --primary-light: #2980b9;
  --primary-dark: #0e2f44;
  --accent: #e74c3c;
  --accent-light: #ff6b5a;
  --accent-dark: #c0392b;
  --bg: #f0f4f8;
  --bg-card: #ffffff;
  --text: #1a1a2e;
  --text-light: #4a5568;
  --text-muted: #718096;
  --border: #e2e8f0;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 25px -3px rgba(0, 0, 0, 0.1), 0 4px 10px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 50px -10px rgba(0, 0, 0, 0.15);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --header-height: 70px;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: var(--primary-light);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--accent);
}

img {
  max-width: 100%;
  height: auto;
}

/* ===================== HEADER ===================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(26, 82, 118, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  height: var(--header-height);
  transition: all var(--transition);
}

.site-header.scrolled {
  background: rgba(14, 47, 68, 0.98);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #fff;
  font-weight: 700;
  font-size: 1.25rem;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.logo:hover {
  color: #fff;
}

.logo i {
  font-size: 1.5rem;
  color: var(--accent-light);
  animation: spin-slow 8s linear infinite;
}

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.main-nav {
  display: flex;
  gap: 0.25rem;
}

.nav-link {
  color: rgba(255, 255, 255, 0.8);
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all var(--transition);
  text-decoration: none;
  position: relative;
}

.nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.nav-link.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 3px;
  background: var(--accent-light);
  border-radius: 2px;
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.mobile-toggle span {
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all var(--transition);
}

.mobile-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}
.mobile-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ===================== LAYOUT ===================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.page {
  display: none;
  min-height: calc(100vh - var(--header-height));
  padding-top: var(--header-height);
}

.page.active {
  display: block;
}

/* ===================== HERO ===================== */
.hero {
  position: relative;
  height: 85vh;
  min-height: 500px;
  max-height: 800px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(14, 47, 68, 0.8) 0%,
    rgba(26, 82, 118, 0.6) 50%,
    rgba(14, 47, 68, 0.7) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  padding: 2rem;
}

.hero-title {
  font-family: 'Bebas Neue', 'Inter', sans-serif;
  font-size: clamp(3rem, 8vw, 6rem);
  letter-spacing: 0.04em;
  line-height: 1.1;
  margin-bottom: 1rem;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  font-weight: 400;
  opacity: 0.9;
  margin-bottom: 2rem;
  letter-spacing: 0.02em;
}

.hero-cta {
  font-size: 1.1rem;
  padding: 1rem 2.5rem;
}

/* Page Hero (subpages) */
.page-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-hero-small {
  height: 280px;
}

.page-hero-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.page-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(14, 47, 68, 0.85), rgba(26, 82, 118, 0.7));
  z-index: 1;
}

.page-hero-title {
  position: relative;
  z-index: 2;
  color: #fff;
  font-family: 'Bebas Neue', 'Inter', sans-serif;
  font-size: clamp(2.5rem, 6vw, 4rem);
  letter-spacing: 0.04em;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* ===================== BUTTONS ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
  line-height: 1.4;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 14px rgba(231, 76, 60, 0.3);
}

.btn-primary:hover {
  background: var(--accent-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
}

.btn-secondary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(26, 82, 118, 0.3);
}

.btn-secondary:hover {
  background: var(--primary-dark);
  color: #fff;
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  padding: 0.65rem 1.4rem;
}

.btn-outline:hover {
  background: var(--primary);
  color: #fff;
}

.btn-trail {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow);
}

.btn-trail:hover {
  background: var(--primary-light);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-trail.btn-accent {
  background: var(--accent);
}

.btn-trail.btn-accent:hover {
  background: var(--accent-dark);
  color: #fff;
}

.btn-download {
  background: var(--accent);
  color: #fff;
  font-size: 1rem;
  padding: 1rem 2rem;
}

.btn-download:hover {
  background: var(--accent-dark);
  color: #fff;
  transform: translateY(-2px);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1rem;
}

/* ===================== CARDS ===================== */
.section-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

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

.accent-title {
  color: var(--accent);
}

.subsection-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--primary);
  margin: 2rem 0 1rem;
}

/* ===================== ALERT BANNER ===================== */
.alert-banner {
  background: linear-gradient(135deg, #fff3cd, #ffeeba);
  border: 1px solid #ffc107;
  border-radius: var(--radius);
  padding: 1rem 1.5rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 500;
  color: #856404;
}

.alert-banner i {
  font-size: 1.25rem;
  color: #e67e22;
}

.alert-banner a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: underline;
}

/* ===================== TRAIL BUTTONS ===================== */
.trail-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.trail-buttons.compact {
  margin-bottom: 0;
}

.thank-you {
  font-style: italic;
  color: var(--text-muted);
  text-align: center;
  margin-top: 1rem;
}

/* ===================== QUICK ACTIONS ===================== */
.quick-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.action-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  text-decoration: none;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: all var(--transition);
  color: var(--text);
}

.action-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-light);
  color: var(--text);
}

.action-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.action-icon i {
  font-size: 1.5rem;
  color: #fff;
}

.action-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--primary-dark);
}

.action-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ===================== INFO CARD ===================== */
.info-card-content {
  padding: 0.5rem;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.info-item h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.info-item p {
  margin-bottom: 0.5rem;
  color: var(--text-light);
}

.info-item.full-width {
  grid-column: 1 / -1;
}

.highlight-text {
  font-weight: 700;
  color: var(--accent) !important;
  font-size: 1.1rem;
}

.notice {
  background: #fef3e7;
  border-left: 4px solid #e67e22;
  padding: 1rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.9rem;
  margin-bottom: 1rem !important;
}

.step-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.step-list li {
  display: flex;
  gap: 0.75rem;
  color: var(--text-light);
  align-items: flex-start;
}

.step-list li i {
  color: #27ae60;
  margin-top: 0.25rem;
  flex-shrink: 0;
}

/* ===================== TRAIL INFORMATION ===================== */
.trail-alert {
  background: linear-gradient(135deg, #fee2e2, #fecaca);
  border: 1px solid #f87171;
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.1rem;
  color: #991b1b;
  margin-bottom: 2rem;
}

.trail-alert i {
  font-size: 1.5rem;
  color: var(--accent);
}

.trail-status-block {
  margin-bottom: 2rem;
}

.status-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  border-radius: var(--radius);
  background: #fef2f2;
  border: 1px solid #fecaca;
}

.status-item.status-closed i {
  font-size: 1.5rem;
  color: var(--accent);
}

.status-item h3 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.status-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.status-badge.closed {
  background: var(--accent);
  color: #fff;
}

.status-badge.open {
  background: #27ae60;
  color: #fff;
}

.trail-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.info-box {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid var(--border);
}

.info-box h3 {
  font-size: 1rem;
  color: var(--primary);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.info-box h3 i {
  color: var(--accent);
}

.pdf-download {
  margin-top: 2rem;
  text-align: center;
}

/* ===================== MAPS ===================== */
.map-embed {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

.map-embed iframe {
  display: block;
}

.map-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-note {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ===================== MEMBERSHIP ===================== */
.membership-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  align-items: start;
}

.pricing-card {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  text-align: center;
  margin-bottom: 2rem;
}

.price {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 4rem;
  line-height: 1;
}

.price-label {
  font-size: 1.1rem;
  opacity: 0.8;
  margin-bottom: 0.5rem;
}

.pricing-card p {
  margin-bottom: 0.5rem;
}

.price-note {
  opacity: 0.8;
  font-size: 0.9rem;
}

.price-warning {
  margin-top: 1rem;
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
}

.payment-options {
  margin-bottom: 2rem;
}

.payment-options h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--primary);
}

.payment-methods {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.payment-method {
  flex: 1;
  min-width: 120px;
  background: var(--bg);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
  border: 1px solid var(--border);
}

.payment-method i {
  font-size: 1.5rem;
  color: var(--primary);
  display: block;
  margin-bottom: 0.5rem;
}

.payment-method span {
  font-weight: 600;
  display: block;
}

.payment-method small {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.membership-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.membership-actions .btn {
  justify-content: center;
}

.meeting-info {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  border: 1px solid var(--border);
}

.meeting-schedule {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.meeting-location {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.meeting-time {
  color: var(--text-muted);
}

.benefits-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.benefits-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.benefits-list li i {
  color: #27ae60;
  flex-shrink: 0;
}

/* ===================== LINKS ===================== */
.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
}

.link-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.link-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  transition: all var(--transition);
  border: 1px solid transparent;
}

.link-item:hover {
  background: var(--bg);
  border-color: var(--border);
  color: var(--text);
  transform: translateX(4px);
}

.link-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.link-icon i {
  color: #fff;
  font-size: 1rem;
}

.link-info h3 {
  font-size: 1rem;
  font-weight: 600;
}

.link-info p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.link-item > .fa-arrow-right {
  margin-left: auto;
  color: var(--text-muted);
  font-size: 0.8rem;
  transition: transform var(--transition);
}

.link-item:hover > .fa-arrow-right {
  transform: translateX(4px);
  color: var(--primary);
}

/* ===================== OFFICERS ===================== */
.officers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.officer-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.officer-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.officer-card.president {
  border-top: 4px solid var(--accent);
}

.officer-badge {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 0.3rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.officer-card.president .officer-badge {
  background: var(--accent);
}

.officer-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.officer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.officer-contact a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--text-light);
}

.officer-contact a:hover {
  color: var(--accent);
}

/* Contact Card */
.contact-card {
  margin-top: 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.5rem;
  background: var(--bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.contact-item > i {
  font-size: 1.5rem;
  color: var(--primary);
  margin-top: 0.25rem;
}

.contact-item h3 {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.contact-form-embed {
  margin-top: 2rem;
}

.contact-form-embed h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--primary);
}

.contact-form-embed iframe {
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

/* ===================== SAFETY CLASSES ===================== */
.safety-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.class-details {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.class-detail {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.25rem;
  background: var(--bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.class-detail i {
  font-size: 1.25rem;
  color: var(--primary);
  margin-top: 0.2rem;
  width: 28px;
  text-align: center;
  flex-shrink: 0;
}

.class-detail h3 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.class-detail p {
  font-weight: 600;
  color: var(--text);
}

.class-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.class-actions .btn {
  justify-content: center;
}

.safety-sidebar h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.safety-sidebar h3 i {
  color: var(--accent);
}

.safety-sidebar p {
  color: var(--text-light);
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

.dnr-contact {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 1.25rem;
  border: 1px solid var(--border);
  margin-top: 1rem;
}

.dnr-contact h4 {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.dnr-contact ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.dnr-contact li {
  font-size: 0.9rem;
  color: var(--text-light);
}

.online-courses {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.instructor-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.instructor-list li {
  font-size: 0.9rem;
  color: var(--text-light);
}

/* ===================== PHOTO GALLERY ===================== */
.photo-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 1.5rem;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: all var(--transition);
  aspect-ratio: 16/10;
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
  padding: 2rem 1.25rem 1.25rem;
  color: #fff;
  transform: translateY(20px);
  opacity: 0;
  transition: all var(--transition);
}

.gallery-item:hover .gallery-caption {
  transform: translateY(0);
  opacity: 1;
}

.gallery-caption h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.gallery-caption p {
  font-size: 0.85rem;
  opacity: 0.85;
}

/* ===================== LIGHTBOX ===================== */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox.active {
  display: flex;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
  z-index: 10001;
  transition: opacity var(--transition);
  line-height: 1;
}

.lightbox-close:hover {
  opacity: 0.7;
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 10001;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255, 255, 255, 0.2);
}

.lightbox-prev {
  left: 1.5rem;
}

.lightbox-next {
  right: 1.5rem;
}

.lightbox-content {
  max-width: 90vw;
  max-height: 85vh;
  text-align: center;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius);
}

.lightbox-caption {
  color: #fff;
  margin-top: 1rem;
  font-size: 1rem;
  opacity: 0.9;
}

/* ===================== FOOTER ===================== */
.site-footer {
  background: var(--primary-dark);
  color: rgba(255, 255, 255, 0.8);
  padding: 3rem 0 0;
  margin-top: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-col h3 {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-col h3 i {
  color: var(--accent-light);
}

.footer-col p {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.footer-address {
  opacity: 0.7;
}

.footer-col a {
  display: block;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  transition: color var(--transition);
  text-decoration: none;
}

.footer-col a:hover {
  color: #fff;
}

.footer-col a i {
  margin-right: 0.5rem;
  width: 18px;
  text-align: center;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.6;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1024px) {
  .membership-grid {
    grid-template-columns: 1fr;
  }

  .safety-grid {
    grid-template-columns: 1fr;
  }

  .links-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 60px;
  }

  .mobile-toggle {
    display: flex;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--primary-dark);
    flex-direction: column;
    padding: 1rem;
    gap: 0.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  }

  .main-nav.open {
    display: flex;
  }

  .nav-link {
    padding: 0.75rem 1rem;
    font-size: 1rem;
  }

  .nav-link.active::after {
    display: none;
  }

  .hero {
    height: 60vh;
    min-height: 400px;
  }

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

  .container {
    padding: 1.5rem 1rem;
  }

  .section-card {
    padding: 1.5rem;
  }

  .trail-buttons {
    flex-direction: column;
  }

  .trail-buttons .btn {
    justify-content: center;
  }

  .quick-actions {
    grid-template-columns: 1fr;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }

  .officers-grid {
    grid-template-columns: 1fr 1fr;
  }

  .photo-gallery {
    grid-template-columns: 1fr;
  }

  .page-hero-small {
    height: 200px;
  }

  .map-actions {
    flex-direction: column;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

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

  .payment-methods {
    flex-direction: column;
  }

  .hero-cta {
    padding: 0.85rem 2rem;
    font-size: 1rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}
