/* 
  Onondaga Lodge No. 519 styles
  Light, clean, and subtle Masonic symbolism.

  Hidden nods a Mason might notice:
  - Three primary accent colours (blue, gold, and white).
  - Many layouts built in 3s (steps, key cards, feature columns).
  - Some spacing based on 3, 5, and 7 (padding & gaps).
*/

:root {
  --pillar-boaz: #0f172a;            /* deep blue-grey */
  --pillar-jachin: #1e40af;          /* lodge blue */
  --accent-gold: #fbbf24;            /* light gold */
  --accent-soft: #e0f2fe;            /* soft blue tint */
  --accent-border: #bfdbfe;

  --bg-main: #f5f5f7;
  --bg-soft: #ffffff;
  --bg-soft-alt: #f9fafb;

  --text-main: #111827;
  --text-muted: #6b7280;

  --radius-lg: 18px;
  --radius-xl: 24px;

  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.12);
  --shadow-subtle: 0 8px 28px rgba(15, 23, 42, 0.06);

  --shell-width: 1120px;
}

/* RESET & BASE */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text-main);
  background: radial-gradient(circle at top, #e5f0ff 0, #f5f5f7 35%, #f5f5f7 100%);
  line-height: 1.6;
}

/* LAYOUT HELPERS */

.shell {
  max-width: var(--shell-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 4.5rem 0;
}

.section-soft {
  background: var(--bg-soft-alt);
}

.section-header {
  max-width: 640px;
  margin-bottom: 2.5rem;
}

.section-title {
  font-size: clamp(1.8rem, 2.3vw, 2.2rem);
  margin: 0 0 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--pillar-boaz);
}

.section-subtitle {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* NAVBAR */

.navbar {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(18px);
  background: linear-gradient(to bottom, rgba(248, 250, 252, 0.96), rgba(248, 250, 252, 0.92));
  border-bottom: 1px solid rgba(191, 219, 254, 0.9);
}

.navbar-inner {
  max-width: var(--shell-width);
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  text-decoration: none;
}

.brand-mark {
  position: relative;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: radial-gradient(circle at 25% 0, #eff6ff 0, #93c5fd 40%, #1d4ed8 100%);
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* simple "square & compasses" hint */
.brand-square {
  position: absolute;
  width: 15px;
  height: 15px;
  border: 2px solid #eff6ff;
  transform: rotate(45deg);
  border-radius: 3px;
}
.brand-compass {
  position: absolute;
  width: 20px;
  height: 20px;
  border-top: 2px solid #eff6ff;
  border-left: 2px solid transparent;
  border-right: 2px solid transparent;
  border-bottom: 2px solid transparent;
  border-radius: 50%;
  transform: translateY(1px);
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}

.brand-title {
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pillar-boaz);
}

.brand-subtitle {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  font-size: 0.85rem;
}

.nav-link {
  position: relative;
  text-decoration: none;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  padding-bottom: 0.15rem;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--pillar-jachin), var(--accent-gold));
  transition: width 160ms ease-out;
}

.nav-link:hover {
  color: var(--pillar-boaz);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link-pill {
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(191, 219, 254, 0.9);
}

/* mobile toggle */

.nav-toggle {
  display: none;
  flex-direction: column;
  width: 26px;
  height: 20px;
  justify-content: space-between;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  border-radius: 999px;
  background: var(--pillar-boaz);
  transition: 160ms ease-out;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}
.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.open span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

.nav-links-mobile {
  display: none;
  flex-direction: column;
  gap: 0.8rem;
  padding: 0 1.5rem 1.25rem;
  background: #f9fafb;
  border-bottom: 1px solid rgba(191, 219, 254, 0.9);
}

.nav-links-mobile a {
  text-decoration: none;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
}

.nav-links-mobile a:hover {
  color: var(--pillar-boaz);
}

.nav-links-mobile.open {
  display: flex;
}

/* HERO */

.hero {
  padding: 3.8rem 0 3.8rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.1fr);
  gap: 3rem;
  align-items: center;
}

.hero-text {
  max-width: 640px;
}

.hero-kicker {
  margin: 0 0 0.8rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--pillar-jachin);
}

.hero-heading {
  margin: 0 0 0.8rem;
  font-size: clamp(2.1rem, 3vw, 2.8rem);
  line-height: 1.2;
  color: var(--pillar-boaz);
}

.hero-heading span {
  display: block;
  font-size: 0.95rem;
  font-weight: 500;
  margin-top: 0.35rem;
  color: var(--text-muted);
}

.hero-body {
  margin: 0 0 1.3rem;
  font-size: 0.98rem;
  color: var(--text-muted);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  background: rgba(239, 246, 255, 0.95);
  border: 1px solid rgba(191, 219, 254, 0.9);
  font-size: 0.82rem;
}

.meta-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--pillar-jachin);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 1.3rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.83rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  cursor: pointer;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--pillar-jachin), #2563eb);
  color: #f9fafb;
  box-shadow: 0 18px 40px rgba(37, 99, 235, 0.45);
  border-color: rgba(30, 64, 175, 0.9);
}

.btn-primary:hover {
  filter: brightness(1.05);
}

.btn-ghost {
  background: #ffffff;
  border-color: rgba(209, 213, 219, 0.9);
  color: var(--pillar-boaz);
  box-shadow: var(--shadow-subtle);
}

.btn-ghost:hover {
  border-color: var(--pillar-jachin);
}

.btn-arrow {
  font-size: 0.95rem;
}

.hero-note {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* HERO IMAGE CARD */

.hero-image-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(209, 213, 219, 0.9);
  padding: 1.2rem 1.2rem 1rem;
}

.hero-image-frame {
  border-radius: calc(var(--radius-xl) - 6px);
  overflow: hidden;
  border: 1px solid rgba(191, 219, 254, 0.9);
}

.hero-image {
  display: block;
  width: 100%;
  height: auto;
}

.hero-image-caption {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.55rem;
}

.hero-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.8rem;
}

.hero-badge {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(191, 219, 254, 0.9);
  background: #eff6ff;
  color: var(--pillar-jachin);
}

.hero-badge-soft {
  background: #fefce8;
  border-color: #facc15;
  color: #92400e;
}

/* CARDS & GRIDS */

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.8rem;
}

.card {
  background: var(--bg-soft);
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.5rem 1.5rem;
  box-shadow: var(--shadow-subtle);
  border: 1px solid rgba(209, 213, 219, 0.8);
}

.card-outline {
  background: #f9fafb;
  border-style: solid;
}

.card-title {
  margin: 0 0 0.55rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--pillar-boaz);
}

.card-body {
  margin: 0 0 0.7rem;
  font-size: 0.93rem;
  color: var(--text-muted);
}

.card-note {
  margin: 0.7rem 0 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.card-list {
  list-style: none;
  margin: 0.4rem 0 0;
  padding: 0;
  font-size: 0.92rem;
  color: var(--text-main);
}

.card-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  margin-bottom: 0.35rem;
}

.card-bullet {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--pillar-jachin);
  margin-top: 0.45rem;
}

/* MEETINGS */

.meetings-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 1.8rem;
}

/* Map card */

.card-map {
  position: relative;
  background: radial-gradient(circle at top, #eff6ff 0, #ffffff 55%);
}

.map-header {
  margin-bottom: 1rem;
}

.map-label {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--pillar-jachin);
}

.map-sub {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.map-actions {
  margin-bottom: 1rem;
}

.btn-map {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1.05rem;
  border-radius: 999px;
  border: 1px solid rgba(191, 219, 254, 0.9);
  background: #ffffff;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
}

.btn-map:hover {
  border-color: var(--pillar-jachin);
}

.map-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.map-tags span {
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: #eff6ff;
  border: 1px solid rgba(191, 219, 254, 0.9);
}

/* GALLERY */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
}

.gallery-item {
  background: #ffffff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-subtle);
  border: 1px solid rgba(209, 213, 219, 0.8);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.gallery-item img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.gallery-item figcaption {
  padding: 0.7rem 0.9rem 0.8rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* JOIN – steps */

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
}

.step-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.3rem 1.3rem;
  box-shadow: var(--shadow-subtle);
  border: 1px solid rgba(209, 213, 219, 0.9);
  position: relative;
}

.step-number {
  position: absolute;
  top: 1rem;
  right: 1.1rem;
  font-size: 1.6rem;
  font-weight: 700;
  color: rgba(148, 163, 184, 0.6);
}

.step-title {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--pillar-boaz);
}

.step-body {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* CONTACT */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.2fr);
  gap: 1.8rem;
}

.officers-list {
  list-style: none;
  margin: 0.4rem 0 0;
  padding: 0;
  font-size: 0.92rem;
}

.officers-list li {
  display: flex;
  justify-content: space-between;
  gap: 0.7rem;
  padding: 0.4rem 0;
  border-bottom: 1px dashed rgba(209, 213, 219, 0.9);
}

.officer-role {
  color: var(--text-muted);
}

.officer-name {
  font-weight: 500;
}

.contact-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  font-size: 0.9rem;
}

.contact-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  margin-bottom: 0.1rem;
}

.contact-value {
  color: var(--text-main);
}

.contact-value a {
  color: var(--pillar-jachin);
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 3px;
}

/* FOOTER */

.footer {
  border-top: 1px solid rgba(191, 219, 254, 0.9);
  background: #f9fafb;
  padding: 1.7rem 0 2.2rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.2rem;
  align-items: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
}

.footer-links a {
  text-decoration: none;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  border-bottom: 1px solid transparent;
  padding-bottom: 0.05rem;
}

.footer-links a:hover {
  border-color: rgba(156, 163, 175, 0.8);
  color: var(--pillar-boaz);
}

.footer-copy {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* RESPONSIVE */

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.5rem;
  }

  .hero-image-card {
    max-width: 420px;
    margin-inline: auto;
  }

  .grid-2,
  .meetings-grid,
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .steps-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .contact-cols {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 768px) {
  .navbar-inner {
    padding-inline: 1.1rem;
  }

  .shell {
    padding-inline: 1.1rem;
  }

  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .hero {
    padding-top: 3rem;
  }
}

@media (max-width: 520px) {
  .gallery-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-inner {
    align-items: flex-start;
  }
}
