:root {
  --navy: #3d2b1f;
  --blue: #5a7247;
  --gold: #b8860b;
  --cta-gold: #d9a441;
  --cta-gold-hover: #f0bd5b;
  --gold-text: #765000;
  --cream: #faf6ee;
  --green: #3a5a28;
  --ink: #2c1e14;
  --muted: #66584c;
  --white: #ffffff;
  --line: #d8cdbd;
  --soft-green: #edf2e8;
  --shadow: 0 12px 35px rgba(61, 43, 31, 0.14);
  --radius: 18px;
}

* {
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Times New Roman", Times, Georgia, serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
}

a {
  color: inherit;
}

.container {
  width: min(1120px, 92%);
  margin: auto;
}

/* Navigation */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(61, 43, 31, 0.97);
  backdrop-filter: blur(10px);
  color: white;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  text-decoration: none;
}

.badge {
  width: 42px;
  height: 42px;
  max-width: 72px;
  object-fit: contain;
  overflow: visible;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: var(--navy);
  font-weight: 900;
}

.nav-links {
  display: flex;
  gap: clamp(8px, 1.5vw, 20px);
  flex-wrap: wrap;
  font-size: clamp(0.7rem, 1vw, 0.92rem);
}

.nav-links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  opacity: 0.9;
  color: white;
  transition: color 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  border-radius: 999px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s ease;
}

.nav-links a:focus-visible,
.nav-links a:focus-visible .nav-label {
  color: var(--gold);
}

.nav-links img {
  width: 16px;
  height: 16px;
  display: block;
  filter: brightness(0) invert(1);
  transition: filter 0.3s ease, transform 0.3s ease;
}

.nav-links a:focus-visible img,
.nav-links a.is-active img {
  filter: brightness(0) saturate(100%) invert(72%) sepia(100%) saturate(5000%) hue-rotate(18deg) brightness(110%) contrast(100%);
  transform: translateY(-1px);
}

@media (hover: hover) and (pointer: fine) {
  .nav-links a:hover,
  .nav-links a:hover .nav-label {
    color: var(--gold);
  }

  .nav-links a:hover img {
    filter: brightness(0) saturate(100%) invert(72%) sepia(100%) saturate(5000%) hue-rotate(18deg) brightness(110%) contrast(100%);
    transform: translateY(-1px);
  }
}

.nav-links a.is-active,
.nav-links a.is-active .nav-label {
  color: var(--gold);
  opacity: 1;
  transform: translateY(-1px);
}

.nav-links a.is-active::after {
  transform: scaleX(1);
}

.nav-links a.is-active img {
  animation: nav-active-pulse 1.8s ease-in-out infinite;
}

@keyframes nav-active-pulse {
  0%,
  100% {
    transform: translateY(-1px) scale(1);
  }
  50% {
    transform: translateY(-1px) scale(1.12);
  }
}

/* Hero Section */
.hero {
  position: relative;
  background:
    linear-gradient(115deg, rgba(61, 43, 31, 0.80) 0%, rgba(90, 114, 71, 0.55) 38%, rgba(184, 134, 11, 0.20) 100%),
    url("../images/hero-eagle.jpg") center 28% / cover no-repeat;
  color: white;
  padding: 88px 0 100px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 82% 18%, rgba(244, 185, 66, 0.28), transparent 22%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(6, 19, 30, 0.12), rgba(6, 19, 30, 0.03));
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  align-items: center;
  gap: 50px;
  position: relative;
  z-index: 1;
}

.hero-copy {
  max-width: 700px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--gold-text);
  font-weight: 800;
  font-size: 0.78rem;
  line-height: 1.5;
  margin-bottom: 12px;
}

h1 {
  font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: 1.02;
  margin: 14px 0 20px;
}

.hero p {
  font-size: 1.08rem;
  max-width: 660px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.92);
}

.hero .eyebrow {
  color: #f3d39a;
  text-shadow: 0 1px 3px rgba(31, 20, 12, 0.8);
}

.buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.btn {
  display: inline-block;
  padding: 13px 19px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  box-shadow: 0 8px 18px rgba(61, 43, 31, 0.2);
  font: inherit;
}

.btn-with-icon {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.btn-icon {
  width: 18px;
  height: 18px;
  display: block;
}

.btn-primary {
  background: var(--cta-gold);
  color: var(--navy);
}

.btn-dark-icon {
  color: var(--navy);
}

.btn-dark-icon .btn-icon {
  filter: brightness(0);
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: var(--cta-gold-hover);
  box-shadow: 0 12px 24px rgba(184, 134, 11, 0.38);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.6);
  color: white;
}

.btn-secondary:hover {
  background: rgba(255, 246, 225, 0.16);
  color: white;
  border-color: rgba(255, 246, 225, 0.82);
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(31, 20, 12, 0.22);
}

.btn:focus-visible {
  outline: 3px solid #fff6e1;
  outline-offset: 3px;
}

.join-form-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(44, 30, 20, 0.86);
  backdrop-filter: blur(10px);
}

.join-form-modal[hidden] {
  display: none;
}

.join-form-panel {
  width: min(560px, 100%);
  max-height: min(720px, 92vh);
  overflow: auto;
  border: 1px solid rgba(255, 246, 225, 0.34);
  border-radius: 22px;
  background: rgba(61, 43, 31, 0.94);
  color: #fff6e1;
  box-shadow: 0 24px 60px rgba(20, 12, 7, 0.5);
}

.join-form-header {
  position: relative;
  padding: 28px 30px 22px;
  border-bottom: 1px solid rgba(255, 246, 225, 0.18);
}

.join-form-header .eyebrow {
  color: #f3d39a;
}

.join-form-header h2 {
  margin: 5px 40px 0 0;
  color: #fff6e1;
}

.join-form-close {
  position: absolute;
  top: 18px;
  right: 20px;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 246, 225, 0.42);
  border-radius: 50%;
  background: rgba(255, 246, 225, 0.08);
  color: #fff6e1;
  font: inherit;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.join-form-close:hover,
.join-form-close:focus-visible {
  background: rgba(255, 246, 225, 0.2);
  border-color: #f3d39a;
}

.join-progress {
  margin-top: 20px;
}

.join-progress-labels {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 6px;
  color: #f3d39a;
  font-size: 0.88rem;
}

.join-progress-track {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 246, 225, 0.16);
}

.join-progress-track span {
  display: block;
  width: 20%;
  height: 100%;
  border-radius: inherit;
  background: var(--cta-gold);
  transition: width 0.3s ease;
}

#joinForm,
#contactForm {
  padding: 28px 30px 30px;
}

.join-question {
  display: none;
}

.join-question.is-active {
  display: block;
}

.join-question label {
  display: block;
  margin-bottom: 7px;
  color: #fff6e1;
  font-weight: 800;
}

.join-question p {
  margin: 0 0 14px;
  color: #d6cbbd;
  font-size: 0.92rem;
}

.join-question input {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid rgba(255, 246, 225, 0.34);
  border-radius: 10px;
  background: rgba(255, 246, 225, 0.1);
  color: #fff6e1;
  font: inherit;
}

.join-question input::placeholder {
  color: #d6cbbd;
}

.join-question input:focus {
  outline: 2px solid #f3d39a;
  outline-offset: 2px;
  border-color: #f3d39a;
}

.join-question input.is-invalid {
  border-color: #f0a29a;
}

.join-error {
  display: none;
  margin-top: 7px;
  color: #ffc1b8;
  font-size: 0.88rem;
}

.join-error.is-visible {
  display: block;
}

.join-form-actions {
  display: flex;
  gap: 12px;
  margin-top: 28px;
}

.join-form-actions .btn {
  flex: 1;
  justify-content: center;
}

.join-back[hidden] {
  visibility: hidden;
}

.join-back[hidden] + .join-next {
  flex: 0 0 auto;
  min-width: 132px;
}

.hero-card {
  background: linear-gradient(135deg, rgba(61, 43, 31, 0.58), rgba(112, 76, 28, 0.46));
  border: 1px solid rgba(255, 246, 225, 0.34);
  padding: 28px;
  border-radius: var(--radius);
  box-shadow: 0 22px 40px rgba(12, 27, 39, 0.22), inset 0 1px 0 rgba(255, 246, 225, 0.2);
  backdrop-filter: blur(18px) saturate(125%);
}

.hero-card strong {
  font-size: 2.6rem;
  display: block;
  color: var(--gold);
}

/* Sections */
section {
  padding: 76px 0;
}

.section-head {
  max-width: 720px;
  margin-bottom: 35px;
}

.section-head h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 8px 0;
}

.section-head p {
  color: var(--muted);
}

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.card {
  background: white;
  padding: 26px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 40px rgba(16, 42, 67, 0.16);
}

.icon {
  font-size: 2rem;
}

.card h3 {
  margin: 12px 0 7px;
}

.card p {
  color: var(--muted);
  margin: 0;
}

.card-image {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 16px;
  display: block;
}

.image-frame {
  position: relative;
}

.image-open-button {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(255, 246, 225, 0.46);
  border-radius: 50%;
  background: rgba(61, 43, 31, 0.38);
  color: #fff6e1;
  backdrop-filter: blur(8px) saturate(130%);
  overflow: hidden;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(31, 20, 12, 0.3);
  transition: opacity 0.25s ease, background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.image-open-icon {
  display: block;
  width: 14px;
  height: 14px;
  max-width: 14px;
  max-height: 14px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.image-frame .image-open-icon {
  width: 14px;
  max-width: 14px;
  height: 14px;
  max-height: 14px;
}

.image-open-button:hover,
.image-open-button:focus-visible {
  background: rgba(217, 164, 65, 0.72);
  border-color: rgba(255, 246, 225, 0.82);
  transform: translateY(-2px);
}

.image-open-button:hover .image-open-icon,
.image-open-button:focus-visible .image-open-icon {
  filter: brightness(0);
}

.image-frame .image-open-button,
.gallery-item .image-open-button {
  opacity: 0;
}

.image-frame:hover .image-open-button,
.image-frame:focus-within .image-open-button,
.gallery-item:hover .image-open-button,
.gallery-item:focus-within .image-open-button {
  opacity: 1;
}

/* Gallery Section */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 30px;
}

.gallery-loading {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
  font-size: 1.1rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 1;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

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

.gallery-item:hover {
  transform: scale(1.05);
  box-shadow: 0 16px 40px rgba(16, 42, 67, 0.2);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(61, 43, 31, 0.78);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  color: white;
  text-align: center;
  padding: 16px;
  font-weight: 600;
  font-size: 1.1rem;
}

/* Events Section */
.events {
  background: var(--white);
}

.event-list {
  display: grid;
  gap: 14px;
}

.event {
  display: grid;
  grid-template-columns: 130px 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: white;
  transition: all 0.3s ease;
}

.event:hover {
  border-color: var(--gold);
  box-shadow: 0 4px 12px rgba(16, 42, 67, 0.08);
}

.date {
  font-weight: 900;
  color: var(--blue);
}

.event small {
  color: var(--muted);
}

.tag {
  background: var(--soft-green);
  color: var(--green);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
}

.meeting-spot {
  background: #eef3e9;
}

.meeting-spot-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 28px;
}

.meeting-spot h2 {
  margin: 8px 0;
}

.meeting-spot p {
  margin: 0;
  color: var(--muted);
}

.maps-link {
  white-space: nowrap;
}

.maps-link .btn-icon {
  filter: brightness(0);
}

.faq {
  background: #f3eee5;
}

.faq-list {
  display: grid;
  gap: 16px;
}

.faq-list details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 20px;
  box-shadow: 0 8px 18px rgba(16, 42, 67, 0.06);
}

.faq-list summary {
  cursor: pointer;
  font-weight: 800;
  color: var(--navy);
}

.faq-list p {
  margin: 12px 0 0;
  color: var(--muted);
}

/* Equipment Section */
.equipment {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.checklist {
  background: white;
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.checklist li {
  margin: 10px 0;
}

/* Advancement Section */
.rank-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.rank {
  background: white;
  border-left: 5px solid var(--gold);
  padding: 20px;
  border-radius: 14px;
  box-shadow: 0 7px 20px rgba(16, 42, 67, 0.08);
  transition: transform 0.3s ease;
}

.eagle-rank {
  position: relative;
  border: 2px solid var(--gold);
  border-left-width: 7px;
  background: linear-gradient(135deg, #fdfbf6 0%, #fff 62%);
  box-shadow: 0 12px 28px rgba(180, 133, 34, 0.2);
  transform: translateY(-5px);
}

.eagle-rank:hover {
  transform: translateY(-9px);
}

.rank-badge {
  display: inline-block;
  margin: 0 0 10px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--navy);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rank:not(.eagle-rank):hover {
  transform: translateX(6px);
}

.rank h3 {
  margin-top: 0;
  color: var(--navy);
}

.rank p {
  color: var(--muted);
}

/* Law Section */
.law {
  background: var(--navy);
  color: white;
}

.law .section-head p {
  color: #d6cbbd;
}

.law-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.law-box {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 28px;
  border-radius: var(--radius);
}

.law-box ol {
  padding-left: 22px;
}

.law-box li {
  margin: 8px 0;
}

/* Contact Section */
/* History Section */
.history {
  background: linear-gradient(180deg, var(--white), var(--cream));
}

.history-grid {
  display: grid;
  grid-template-columns: 0.55fr 1fr;
  gap: 48px;
  align-items: center;
}

.history-image-wrap {
  background: white;
  padding: 18px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
}

.history-image-wrap img {
  width: 100%;
  max-width: 300px;
  border-radius: 6px;
  display: block;
  margin: 0 auto;
}

.history-image-wrap .image-frame {
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
}

.history-image-wrap span {
  display: block;
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--muted);
}

.history-text h2 {
  margin-top: 8px;
}

.history-text p {
  color: var(--muted);
}

.history-stats {
  display: flex;
  gap: 30px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.history-stats div strong {
  display: block;
  font-size: 2rem;
  color: var(--navy);
}

.history-stats div span {
  color: var(--muted);
  font-size: 0.88rem;
}

/* Testimonial Section */
.testimonial-wrap {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px;
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: 30px;
  align-items: center;
}

.testimonial-wrap img {
  width: 100%;
  border-radius: 12px;
  display: block;
  box-shadow: 0 6px 18px rgba(16, 42, 67, 0.12);
}

.testimonial-quote {
  border-left: 4px solid var(--gold);
  padding-left: 20px;
}

.testimonial-quote p {
  font-size: 1.05rem;
  color: var(--ink);
}

.testimonial-quote .source {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 14px;
}

.contact {
  background: linear-gradient(180deg, var(--cream), #f0e8da);
}

.join-box {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  align-items: center;
  padding: 24px 30px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: var(--shadow);
  margin-top: 24px;
}

.join-box h2 {
  margin: 4px 0;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
}

.join-box p {
  max-width: 700px;
  margin: 0;
  color: var(--muted);
}

.join-box p + p {
  margin-top: 1em;
}

.contact-box {
  background: white;
  border-radius: 24px;
  padding: 42px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  align-items: center;
}

/* Footer */
footer {
  background: #2c1e14;
  color: #d6cbbd;
  padding: 35px 0;
}

footer a {
  color: white;
  text-decoration: none;
}

footer a:hover {
  color: var(--gold);
}

.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-row a {
  position: relative;
  text-decoration: none;
}

.footer-row a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -5px;
  left: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s ease;
}

.footer-row a:hover,
.footer-row a:focus-visible {
  color: var(--gold);
}

.footer-row a:hover::after,
.footer-row a:focus-visible::after {
  transform: scaleX(1);
}

.mobile-note {
  font-size: 0.88rem;
  color: var(--muted);
}

/* The credit stays small, visible, and clear of the page content. */
.credit-mark {
  display: block;
  width: 160px;
  margin: 16px 0 0;
  padding: 7px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.6);
  box-shadow: 0 4px 14px rgba(16, 42, 67, 0.2);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.footer-copyright {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-top: 18px;
  font-size: 0.85rem;
}

.footer-legal-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  width: 100%;
  margin-top: 18px;
  font-size: 0.85rem;
}

.footer-legal-links a {
  position: relative;
  text-decoration: none;
}

.footer-legal-links a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -5px;
  left: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s ease;
}

.footer-legal-links a:hover,
.footer-legal-links a:focus-visible {
  color: var(--gold);
}

.footer-legal-links a:hover::after,
.footer-legal-links a:focus-visible::after {
  transform: scaleX(1);
}

.legal-page {
  min-height: 100vh;
  background: var(--cream);
}

.legal-header {
  padding: 48px 0 38px;
  background: linear-gradient(135deg, var(--navy), #704c1c);
  color: #fff6e1;
}

.legal-header .eyebrow {
  color: #f3d39a;
}

.legal-header h1 {
  max-width: 760px;
  margin: 8px 0 10px;
  font-size: clamp(2.2rem, 5vw, 4.2rem);
}

.legal-header p {
  max-width: 720px;
  margin: 0;
  color: #eadfce;
}

.legal-content {
  width: min(860px, 92%);
  margin: 0 auto;
  padding: 54px 0 72px;
}

.legal-card {
  padding: clamp(24px, 5vw, 48px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
}

.legal-card h2 {
  margin: 30px 0 8px;
  color: var(--navy);
  font-size: clamp(1.35rem, 3vw, 1.9rem);
}

.legal-card h2:first-child {
  margin-top: 0;
}

.legal-card p,
.legal-card li {
  color: var(--ink);
}

.legal-card ul {
  padding-left: 22px;
}

.legal-card li + li {
  margin-top: 8px;
}

.legal-meta {
  margin: 0 0 26px;
  color: var(--muted) !important;
  font-size: 0.92rem;
}

.legal-back {
  display: inline-flex;
  margin-top: 30px;
}

.legal-back-icon {
  transform: rotate(180deg);
}

.image-page {
  min-height: 100vh;
  background: var(--cream);
}

.image-page-content {
  min-height: calc(100vh - 250px);
  display: grid;
  place-items: center;
  padding: 54px 4%;
}

.image-viewer-card {
  width: min(1000px, 100%);
  margin: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
  text-align: center;
}

.image-viewer-card img {
  display: block;
  width: 100%;
  max-height: 72vh;
  object-fit: contain;
  border-radius: 10px;
}

.image-viewer-card figcaption {
  margin-top: 14px;
  color: var(--gold-text);
  font-weight: 700;
  text-transform: capitalize;
}

.error-card {
  text-align: center;
}

.error-code {
  color: var(--gold-text);
  font-size: clamp(4rem, 14vw, 8rem);
  font-weight: 900;
  line-height: 0.9;
}

.error-address {
  margin: 20px 0 0;
  color: var(--gold-text) !important;
  font-family: "Times New Roman", Times, Georgia, serif;
  font-size: 0.92rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.credit-mark.is-verified {
  opacity: 1;
  pointer-events: auto;
}

.credit-mark:hover,
.credit-mark:focus-visible {
  opacity: 1;
  transform: translateY(-2px);
}

.credit-mark img {
  display: block;
  width: 100%;
  height: auto;
}

.integrity-error {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px;
  background: var(--cream);
  color: var(--navy);
  text-align: center;
}

.integrity-error h1 {
  font-size: clamp(2rem, 5vw, 4rem);
}

/* Responsive Design */
@media (max-width: 850px) {
  .hero-grid,
  .equipment,
  .law-grid,
  .contact-box,
  .join-box,
  .history-grid,
  .testimonial-wrap,
  .meeting-spot-inner {
    grid-template-columns: 1fr;
  }

  .cards,
  .rank-grid,
  .gallery {
    grid-template-columns: 1fr 1fr;
  }

  .nav-inner {
    gap: 10px;
  }

  .nav-links {
    justify-content: flex-end;
    gap: clamp(5px, 1vw, 12px);
    font-size: clamp(0.62rem, 1.7vw, 0.82rem);
  }
}

@media (max-width: 560px) {
  .footer-row {
    flex-wrap: nowrap;
    align-items: flex-start;
  }

  .footer-row > div:last-child {
    margin-left: auto;
    white-space: nowrap;
  }

  .brand span {
    display: none;
  }

  .nav-inner {
    min-height: 60px;
  }

  .nav-links {
    flex: 1;
    flex-wrap: nowrap;
    gap: 3px;
  }

  .nav-links a {
    position: relative;
    flex: 1;
    justify-content: center;
    padding: 7px 2px;
  }

  .nav-links img {
    width: 18px;
    height: 18px;
  }

  .nav-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  section {
    padding: 58px 0;
  }

  .cards,
  .rank-grid,
  .gallery {
    grid-template-columns: 1fr;
  }

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

  .hero {
    padding: 70px 0;
  }

  .contact-box {
    padding: 28px;
  }

  .join-box {
    padding: 24px;
  }

  .contact-box,
  .join-box {
    gap: 22px;
  }

  .contact-box .btn,
  .join-box .btn {
    width: 100%;
    justify-content: center;
  }

  .join-form-modal {
    padding: 10px;
  }

  .join-form-panel {
    max-height: 94vh;
    border-radius: 16px;
  }

  .join-form-header {
    padding: 22px 18px 18px;
  }

  .join-form-header h2 {
    max-width: calc(100% - 34px);
    font-size: 1.55rem;
    line-height: 1.15;
  }

  #joinForm,
  #contactForm {
    padding: 22px 18px 20px;
  }

  .join-form-actions {
    gap: 8px;
    margin-top: 22px;
  }

  .join-form-actions .btn {
    min-width: 0;
    padding: 12px 10px;
  }

  .join-back[hidden] + .join-next {
    min-width: 0;
    width: auto;
    flex: 1 1 auto;
  }

  .card-image {
    height: 180px;
  }

  .credit-mark {
    width: 132px;
  }

  .footer-legal-links {
    width: 100%;
  }

  .legal-header {
    padding: 38px 0 30px;
  }

  .legal-content {
    padding: 32px 0 48px;
  }
}
