/* ============================================================
   Bethel Lodge No. 61 — Shared Stylesheet
   Theme: Classic navy & gold Masonic
   ============================================================ */

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

:root {
  --navy:      #0d1f3c;
  --navy-mid:  #162d56;
  --navy-lt:   #1e3a6e;
  --gold:      #c9a84c;
  --gold-lt:   #e8c96a;
  --gold-pale: #f5e6b8;
  --cream:     #faf7f0;
  --text:      #1a1a2e;
  --text-lt:   #4a4a6a;
  --white:     #ffffff;
  --shadow:    0 4px 24px rgba(13,31,60,.18);
  --radius:    8px;
  --transition: .25s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Georgia', serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.7;
  font-size: 17px;
}

a { color: var(--gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-lt); }

img { max-width: 100%; display: block; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: 'Georgia', serif;
  font-weight: normal;
  line-height: 1.25;
  color: var(--navy);
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: 1.3rem; }

.section-title {
  text-align: center;
  margin-bottom: .5rem;
  color: var(--navy);
}

.section-subtitle {
  text-align: center;
  color: var(--text-lt);
  font-style: italic;
  margin-bottom: 3rem;
  font-size: 1rem;
}

.gold-rule {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-lt));
  margin: .75rem auto 1.5rem;
  border: none;
  border-radius: 2px;
}

/* ---------- Layout ---------- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section { padding: 5rem 0; }

section:nth-child(even) { background: #fff; }

/* ---------- Navigation ---------- */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(13,31,60,.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(201,168,76,.25);
  transition: box-shadow var(--transition);
}

nav.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,.4); }

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  color: var(--gold);
  font-size: 1.1rem;
  letter-spacing: .04em;
}

.nav-brand .sq-compass {
  width: 36px; height: 36px;
  fill: var(--gold);
  flex-shrink: 0;
}

/* Lodge logo image */
.lodge-logo-nav {
  width: 42px;
  height: 42px;
  object-fit: contain;
  flex-shrink: 0;
}

.lodge-logo-hero {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

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

.nav-links a {
  display: block;
  padding: .5rem 1rem;
  color: rgba(255,255,255,.82);
  font-family: 'Georgia', serif;
  font-size: .92rem;
  letter-spacing: .04em;
  transition: color var(--transition);
}

.nav-links a:hover,
.nav-links a.active { color: var(--gold); }

.nav-links .btn-portal {
  margin-left: .5rem;
  background: var(--gold);
  color: var(--navy) !important;
  border-radius: 4px;
  padding: .45rem 1.1rem;
  font-weight: bold;
  transition: background var(--transition);
}

.nav-links .btn-portal:hover { background: var(--gold-lt); }

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

.nav-toggle span {
  display: block;
  width: 25px; height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transition: var(--transition);
}

/* ---------- Page Hero (inner pages) ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-lt) 100%);
  color: var(--white);
  text-align: center;
  padding: 8rem 1.5rem 4rem;
}

.page-hero h1 { color: var(--gold); margin-bottom: .5rem; }
.page-hero p { color: rgba(255,255,255,.75); font-style: italic; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: .75rem 2rem;
  border-radius: 4px;
  font-family: 'Georgia', serif;
  font-size: .95rem;
  letter-spacing: .05em;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
}

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

.btn-primary:hover {
  background: var(--gold-lt);
  color: var(--navy);
  border-color: var(--gold-lt);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201,168,76,.35);
}

.btn-outline {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold);
}

.btn-outline:hover {
  background: var(--gold);
  color: var(--navy);
  transform: translateY(-2px);
}

/* ---------- Cards ---------- */
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(13,31,60,.2);
}

.card-body { padding: 1.75rem; }

/* ---------- Grid helpers ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

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

/* ---------- Footer ---------- */
footer {
  background: var(--navy);
  color: rgba(255,255,255,.6);
  padding: 3rem 0 1.5rem;
  font-size: .9rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-col h4 {
  color: var(--gold);
  font-size: .95rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: .4rem; }
.footer-col ul a { color: rgba(255,255,255,.6); }
.footer-col ul a:hover { color: var(--gold); }

.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.1);
  color: rgba(255,255,255,.35);
  font-size: .82rem;
}

/* ---------- Forms ---------- */
.form-group { margin-bottom: 1.25rem; }

.form-group label {
  display: block;
  font-size: .9rem;
  color: var(--text-lt);
  margin-bottom: .4rem;
  letter-spacing: .03em;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: .75rem 1rem;
  border: 1px solid #d8d0c0;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: .95rem;
  background: var(--white);
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,.18);
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: 70px; left: 0; right: 0;
    background: var(--navy);
    flex-direction: column;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(201,168,76,.2);
  }

  .nav-links.open { display: flex; }
  .nav-links a { padding: .75rem 1.5rem; }
  .nav-links .btn-portal { margin: .5rem 1.5rem; border-radius: 4px; }

  section { padding: 3.5rem 0; }
}
