/* ==========================================================================
   Palestine Lodge No. 357 F. & A.M. — Main Stylesheet
   Neo-Gothic meets modern digital
   ========================================================================== */

/* ---------- CSS Custom Properties ---------- */
:root {
  /* Colors */
  --navy: #1a1a2e;
  --navy-deep: #16213e;
  --gold: #c9a84c;
  --gold-bright: #d4af37;
  --gold-light: rgba(201, 168, 76, 0.15);
  --cream: #f5f0e8;
  --burgundy: #6b1c23;
  --white: #ffffff;
  --stone: #8a8a8a;
  --stone-light: #b8b8b8;
  --stone-bg: #e8e4dc;
  --text-dark: #1a1a2e;
  --text-body: #2c2c3e;
  --text-muted: #5a5a6e;
  --shadow: rgba(26, 26, 46, 0.12);
  --shadow-heavy: rgba(26, 26, 46, 0.25);

  /* Typography */
  --font-display: 'Playfair Display', 'Georgia', serif;
  --font-body: 'Source Sans 3', 'Source Sans Pro', 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* Layout */
  --max-width: 1200px;
  --nav-height: 72px;

  /* Transitions */
  --transition: 0.3s ease;
  --transition-slow: 0.5s ease;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-body);
  background-color: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---------- Skip Link ---------- */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-md);
  background: var(--navy);
  color: var(--gold);
  padding: var(--space-sm) var(--space-md);
  z-index: 10000;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 4px 4px;
  transition: top var(--transition);
}

.skip-link:focus {
  top: 0;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--navy);
  line-height: 1.25;
  font-weight: 700;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.75rem); }
h4 { font-size: clamp(1.1rem, 2vw, 1.35rem); }

p {
  margin-bottom: var(--space-md);
  max-width: 72ch;
}

a {
  color: var(--burgundy);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: color var(--transition);
}

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

a:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-radius: 2px;
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.9em;
}

/* ---------- Utility ---------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.section {
  padding: var(--space-4xl) 0;
}

.section--alt {
  background-color: var(--white);
}

.section--dark {
  background-color: var(--navy);
  color: var(--cream);
}

.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: var(--gold);
}

.section--dark a {
  color: var(--gold);
}

.section--dark a:hover {
  color: var(--cream);
}

.text-center { text-align: center; }
.text-gold { color: var(--gold); }
.text-burgundy { color: var(--burgundy); }
.text-muted { color: var(--text-muted); }

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

/* ---------- Section Header ---------- */
.section-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.section-header h2 {
  margin-bottom: var(--space-sm);
}

.section-header p {
  margin: 0 auto;
  color: var(--text-muted);
  font-size: 1.125rem;
}

/* Gold divider under headings */
.gold-rule {
  display: block;
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: var(--space-md) auto var(--space-lg);
  border: none;
}

/* Gothic arch divider */
.arch-divider {
  text-align: center;
  margin: var(--space-2xl) 0;
  line-height: 0;
}

.arch-divider::before {
  content: '';
  display: inline-block;
  width: 60px;
  height: 30px;
  border: 2px solid var(--gold);
  border-bottom: none;
  border-radius: 60px 60px 0 0;
  opacity: 0.5;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  transition: all var(--transition);
  letter-spacing: 0.03em;
}

.btn:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

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

.btn--primary:hover {
  background-color: var(--gold-bright);
  color: var(--navy);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(201, 168, 76, 0.35);
}

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

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

.btn--dark {
  background-color: var(--navy);
  color: var(--cream);
  border-color: var(--navy);
}

.btn--dark:hover {
  background-color: var(--navy-deep);
  color: var(--gold);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px var(--shadow);
}

.btn-group {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* ---------- Navigation ---------- */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: rgba(26, 26, 46, 0.97);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(201, 168, 76, 0.2);
  height: var(--nav-height);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.nav-brand {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gold);
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.nav-brand:hover {
  color: var(--gold-bright);
}

.nav-brand span {
  display: block;
  font-size: 0.65em;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--stone-light);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: var(--space-xs);
}

.nav-links a {
  display: block;
  padding: var(--space-sm) var(--space-md);
  color: var(--cream);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color var(--transition);
  white-space: nowrap;
}

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

.nav-links a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-radius: 2px;
}

.nav-cta {
  margin-left: var(--space-sm);
}

.nav-cta a {
  background-color: var(--gold);
  color: var(--navy) !important;
  padding: 0.5rem 1.2rem !important;
  border-radius: 2px;
  font-weight: 600 !important;
}

.nav-cta a:hover {
  background-color: var(--gold-bright);
  color: var(--navy) !important;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-sm);
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--gold);
  transition: all var(--transition);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-height) + var(--space-3xl)) var(--space-xl) var(--space-3xl);
  overflow: hidden;
  background:
    linear-gradient(180deg,
      rgba(26, 26, 46, 0.92) 0%,
      rgba(22, 33, 62, 0.88) 50%,
      rgba(26, 26, 46, 0.95) 100%
    ),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(138, 138, 138, 0.03) 2px,
      rgba(138, 138, 138, 0.03) 4px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 2px,
      rgba(138, 138, 138, 0.02) 2px,
      rgba(138, 138, 138, 0.02) 4px
    );
  background-color: var(--navy);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(201, 168, 76, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 50% 100%, rgba(107, 28, 35, 0.1) 0%, transparent 60%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero h1 {
  color: var(--cream);
  font-size: clamp(2.5rem, 6vw, 4rem);
  margin-bottom: var(--space-sm);
  letter-spacing: 0.02em;
}

.hero .subtitle {
  color: var(--gold);
  font-family: var(--font-body);
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: var(--space-lg);
}

.hero .tagline {
  color: var(--cream);
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-style: italic;
  opacity: 0.9;
  margin-bottom: var(--space-2xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero .btn-group {
  justify-content: center;
}

/* Square & compass SVG watermark in hero */
.hero-watermark {
  position: absolute;
  bottom: -60px;
  right: -40px;
  width: 300px;
  height: 300px;
  opacity: 0.03;
  pointer-events: none;
}

/* ---------- Page Header (non-home pages) ---------- */
.page-header {
  padding: calc(var(--nav-height) + var(--space-3xl)) 0 var(--space-3xl);
  background:
    linear-gradient(180deg,
      rgba(26, 26, 46, 0.95) 0%,
      rgba(22, 33, 62, 0.9) 100%
    );
  background-color: var(--navy);
  text-align: center;
}

.page-header h1 {
  color: var(--cream);
  margin-bottom: var(--space-sm);
}

.page-header p {
  color: var(--stone-light);
  font-size: 1.125rem;
  margin: 0 auto;
}

.page-header .gold-rule {
  margin-top: var(--space-md);
  margin-bottom: var(--space-md);
}

/* ---------- Cards ---------- */
.card {
  background: var(--white);
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 2px 12px var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  border-top: 3px solid var(--gold);
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px var(--shadow-heavy);
}

.card-body {
  padding: var(--space-xl);
}

.card-body h3 {
  margin-bottom: var(--space-sm);
}

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

/* Heritage Cards (3-column) */
.heritage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-xl);
}

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

.heritage-card .card-body h3 {
  color: var(--burgundy);
  font-size: 1.1rem;
  margin-bottom: var(--space-xs);
}

.heritage-card .card-body .heritage-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--navy);
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.heritage-card .card-body .heritage-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* ---------- Image Placeholders ---------- */
.img-placeholder {
  position: relative;
  background: linear-gradient(135deg, #d0cbc2, #bfb9ae);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.img-placeholder::before {
  content: '';
  position: absolute;
  width: 80px;
  height: 80px;
  opacity: 0.08;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 5 L95 85 L5 85 Z' fill='none' stroke='%23c9a84c' stroke-width='2'/%3E%3Cpath d='M50 95 L5 15 L95 15 Z' fill='none' stroke='%23c9a84c' stroke-width='2'/%3E%3Ccircle cx='50' cy='50' r='8' fill='none' stroke='%23c9a84c' stroke-width='2'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  pointer-events: none;
}

.img-placeholder span {
  position: relative;
  z-index: 1;
  color: var(--stone);
  font-size: 0.85rem;
  font-style: italic;
  padding: var(--space-md);
  max-width: 80%;
}

/* Aspect ratios */
.img-placeholder--hero {
  width: 100%;
  aspect-ratio: 16 / 9;
}

.img-placeholder--portrait {
  width: 100%;
  aspect-ratio: 1 / 1;
}

.img-placeholder--content {
  width: 100%;
  aspect-ratio: 4 / 3;
}

.img-placeholder--wide {
  width: 100%;
  aspect-ratio: 21 / 9;
}

/* Gothic arch frame */
.img-frame-arch {
  border: 2px solid var(--gold);
  border-radius: 50% 50% 0 0 / 20% 20% 0 0;
  padding: 4px;
}

/* Gold border frame */
.img-frame-gold {
  border: 2px solid var(--gold);
  padding: 4px;
}

/* ---------- Timeline ---------- */
.timeline {
  position: relative;
  padding: var(--space-xl) 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--gold), var(--gold-bright), var(--gold));
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  display: flex;
  align-items: flex-start;
  margin-bottom: var(--space-3xl);
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-item:nth-child(odd) {
  flex-direction: row;
  padding-right: calc(50% + 30px);
}

.timeline-item:nth-child(even) {
  flex-direction: row-reverse;
  padding-left: calc(50% + 30px);
}

.timeline-marker {
  position: absolute;
  left: 50%;
  top: var(--space-xl);
  transform: translateX(-50%);
  width: 18px;
  height: 18px;
  background: var(--gold);
  border: 3px solid var(--cream);
  border-radius: 50%;
  z-index: 2;
  box-shadow: 0 0 0 3px var(--gold);
}

.timeline-content {
  background: var(--white);
  padding: var(--space-xl);
  border-radius: 2px;
  box-shadow: 0 2px 12px var(--shadow);
  border-top: 3px solid var(--gold);
}

.timeline-year {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: var(--space-xs);
}

.timeline-content h3 {
  margin-bottom: var(--space-sm);
  font-size: 1.3rem;
}

.timeline-content p {
  font-size: 0.95rem;
  color: var(--text-body);
}

.timeline-content ul {
  margin: var(--space-sm) 0;
  padding-left: var(--space-lg);
}

.timeline-content li {
  margin-bottom: var(--space-xs);
  font-size: 0.95rem;
}

/* ---------- Events / Calendar ---------- */
.calendar-wrapper {
  background: var(--white);
  border-radius: 2px;
  box-shadow: 0 2px 12px var(--shadow);
  overflow: hidden;
}

.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg) var(--space-xl);
  background: var(--navy);
}

.calendar-header h3 {
  color: var(--gold);
  font-size: 1.25rem;
  margin: 0;
}

.calendar-nav {
  background: none;
  border: 1px solid var(--gold);
  color: var(--gold);
  padding: var(--space-xs) var(--space-sm);
  cursor: pointer;
  font-size: 1.1rem;
  border-radius: 2px;
  transition: all var(--transition);
  line-height: 1;
}

.calendar-nav:hover {
  background: var(--gold);
  color: var(--navy);
}

.calendar-nav:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 2px;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  border-top: 1px solid var(--stone-bg);
}

.calendar-day-header {
  padding: var(--space-sm);
  text-align: center;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  background: var(--cream);
  border-bottom: 1px solid var(--stone-bg);
}

.calendar-day {
  position: relative;
  min-height: 70px;
  padding: var(--space-sm);
  border-right: 1px solid var(--stone-bg);
  border-bottom: 1px solid var(--stone-bg);
  font-size: 0.85rem;
  cursor: default;
  transition: background var(--transition);
}

.calendar-day:nth-child(7n) {
  border-right: none;
}

.calendar-day:hover:not(.calendar-day--empty) {
  background: var(--gold-light);
}

.calendar-day--empty {
  background: rgba(0, 0, 0, 0.02);
}

.calendar-day--today {
  background: var(--gold-light);
}

.calendar-day--today .day-number {
  background: var(--gold);
  color: var(--navy);
  border-radius: 50%;
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.day-number {
  font-weight: 600;
  color: var(--text-dark);
  font-size: 0.85rem;
}

.calendar-day--empty .day-number {
  color: var(--stone-light);
}

.event-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin: 1px;
}

.event-dot--stated { background-color: var(--gold); }
.event-dot--degree { background-color: var(--navy-deep); }
.event-dot--social { background-color: #2d6a4f; }
.event-dot--charity { background-color: var(--burgundy); }
.event-dot--grand-lodge { background-color: #6b21a8; }

.event-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  margin-top: 4px;
}

/* Event Legend */
.event-legend {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-xl);
  background: var(--cream);
  border-top: 1px solid var(--stone-bg);
  font-size: 0.8rem;
}

.event-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Event List */
.event-list {
  list-style: none;
}

.event-card {
  display: flex;
  gap: var(--space-xl);
  padding: var(--space-xl);
  border-bottom: 1px solid var(--stone-bg);
  transition: background var(--transition);
}

.event-card:hover {
  background: var(--gold-light);
}

.event-card:last-child {
  border-bottom: none;
}

.event-date-block {
  flex-shrink: 0;
  text-align: center;
  min-width: 70px;
}

.event-date-block .month {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
}

.event-date-block .day {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.1;
}

.event-date-block .weekday {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.event-details h4 {
  margin-bottom: var(--space-xs);
  font-size: 1.1rem;
}

.event-details p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: var(--space-xs);
}

.event-meta {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.event-tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-xs);
}

.event-tag--stated { background: var(--gold-light); color: #8a6d1b; }
.event-tag--degree { background: rgba(22, 33, 62, 0.1); color: var(--navy-deep); }
.event-tag--social { background: rgba(45, 106, 79, 0.1); color: #2d6a4f; }
.event-tag--charity { background: rgba(107, 28, 35, 0.1); color: var(--burgundy); }
.event-tag--grand-lodge { background: rgba(107, 33, 168, 0.1); color: #6b21a8; }

/* View Toggle */
.view-toggle {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
  justify-content: center;
}

.view-toggle button {
  padding: var(--space-sm) var(--space-lg);
  background: var(--white);
  border: 1px solid var(--stone-light);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: all var(--transition);
  border-radius: 2px;
}

.view-toggle button.active {
  background: var(--navy);
  color: var(--gold);
  border-color: var(--navy);
}

.view-toggle button:hover:not(.active) {
  border-color: var(--gold);
  color: var(--gold);
}

.view-toggle button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* ---------- Officers ---------- */
.officers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: var(--space-xl);
}

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

.officer-card .card-body {
  padding: var(--space-lg);
}

.officer-title {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-xs);
}

.officer-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--navy);
  margin-bottom: var(--space-xs);
}

.officer-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

/* ---------- About Page ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: start;
}

.about-content h3 {
  margin-bottom: var(--space-sm);
  margin-top: var(--space-xl);
}

.about-content h3:first-child {
  margin-top: 0;
}

.degrees-list {
  list-style: none;
  counter-reset: degree;
}

.degrees-list li {
  counter-increment: degree;
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--stone-bg);
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
}

.degrees-list li::before {
  content: counter(degree);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--gold);
  color: var(--navy);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  border-radius: 50%;
}

.requirements-list {
  list-style: none;
  padding: 0;
}

.requirements-list li {
  padding: var(--space-sm) 0;
  padding-left: var(--space-xl);
  position: relative;
}

.requirements-list li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
}

.contact-form .form-group {
  margin-bottom: var(--space-lg);
}

.contact-form label {
  display: block;
  font-weight: 600;
  margin-bottom: var(--space-xs);
  font-size: 0.9rem;
  color: var(--text-dark);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  border: 1px solid var(--stone-light);
  border-radius: 2px;
  background: var(--white);
  color: var(--text-body);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-light);
}

.contact-form textarea {
  min-height: 150px;
  resize: vertical;
}

.contact-info h3 {
  margin-bottom: var(--space-md);
}

.contact-info-item {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
  align-items: flex-start;
}

.contact-info-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--gold-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 1.1rem;
  font-weight: 700;
}

.contact-info-text h4 {
  font-size: 1rem;
  margin-bottom: 2px;
}

.contact-info-text p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}

.map-embed {
  width: 100%;
  height: 300px;
  border: 2px solid var(--gold);
  border-radius: 2px;
  margin-top: var(--space-xl);
}

/* ---------- CTA Section ---------- */
.cta-section {
  text-align: center;
  padding: var(--space-4xl) var(--space-xl);
  background:
    linear-gradient(135deg,
      rgba(26, 26, 46, 0.95),
      rgba(22, 33, 62, 0.95)
    );
  background-color: var(--navy);
}

.cta-section h2 {
  color: var(--cream);
  margin-bottom: var(--space-sm);
}

.cta-section p {
  color: var(--stone-light);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto var(--space-xl);
}

.cta-section .btn-group {
  justify-content: center;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: var(--stone-light);
  padding: var(--space-3xl) 0 0;
  border-top: 3px solid var(--gold);
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-2xl);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-xl) var(--space-2xl);
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--gold);
  margin-bottom: var(--space-sm);
}

.footer-brand span {
  display: block;
  font-size: 0.7em;
  font-family: var(--font-body);
  color: var(--stone-light);
  font-weight: 400;
  margin-top: var(--space-xs);
}

.site-footer p {
  font-size: 0.9rem;
  line-height: 1.6;
}

.site-footer h4 {
  font-family: var(--font-display);
  color: var(--gold);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-md);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: var(--space-sm);
}

.footer-links a {
  color: var(--stone-light);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color var(--transition);
}

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

.footer-bottom {
  border-top: 1px solid rgba(201, 168, 76, 0.2);
  padding: var(--space-lg) var(--space-xl);
  text-align: center;
  font-size: 0.8rem;
  color: var(--stone);
}

.footer-bottom p {
  max-width: var(--max-width);
  margin: 0 auto;
}

/* ---------- Temple Stats ---------- */
.temple-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.temple-stat {
  text-align: center;
  padding: var(--space-lg);
}

.temple-stat .stat-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  display: block;
}

.temple-stat .stat-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--stone-light);
  margin-top: var(--space-xs);
  display: block;
}

/* ---------- Temple Detail Grid ---------- */
.temple-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  margin-top: var(--space-xl);
}

.temple-features {
  list-style: none;
  padding: 0;
}

.temple-features li {
  padding: var(--space-sm) 0;
  border-bottom: 1px solid rgba(201, 168, 76, 0.15);
  font-size: 0.95rem;
}

.temple-features li:last-child {
  border-bottom: none;
}

/* ---------- Two-column layouts ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.two-col--reverse {
  direction: rtl;
}

.two-col--reverse > * {
  direction: ltr;
}

/* ---------- Events Preview (Home) ---------- */
.events-preview {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-xl);
}

/* ---------- Blockquote ---------- */
blockquote {
  border-left: 3px solid var(--gold);
  padding: var(--space-md) var(--space-xl);
  margin: var(--space-xl) 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--text-muted);
  background: var(--gold-light);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .timeline::before {
    left: 20px;
  }

  .timeline-item,
  .timeline-item:nth-child(odd),
  .timeline-item:nth-child(even) {
    flex-direction: column;
    padding-left: 50px;
    padding-right: 0;
  }

  .timeline-marker {
    left: 20px;
  }

  .temple-detail-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --nav-height: 64px;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(300px, 80vw);
    background: var(--navy);
    flex-direction: column;
    align-items: stretch;
    padding: calc(var(--nav-height) + var(--space-xl)) var(--space-xl) var(--space-xl);
    transform: translateX(100%);
    transition: transform var(--transition);
    box-shadow: -4px 0 20px var(--shadow-heavy);
    overflow-y: auto;
    gap: 0;
  }

  .nav-links.open {
    transform: translateX(0);
  }

  .nav-links a {
    padding: var(--space-md) 0;
    border-bottom: 1px solid rgba(201, 168, 76, 0.1);
    font-size: 1rem;
  }

  .nav-cta {
    margin-left: 0;
    margin-top: var(--space-md);
  }

  .nav-cta a {
    text-align: center;
    display: block;
  }

  .nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
  }

  .nav-overlay.active {
    display: block;
  }

  .hero {
    min-height: 70vh;
    padding-top: calc(var(--nav-height) + var(--space-xl));
  }

  .two-col,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .two-col--reverse {
    direction: ltr;
  }

  .section {
    padding: var(--space-3xl) 0;
  }

  .container {
    padding: 0 var(--space-md);
  }

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

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

  .officers-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }

  .calendar-day {
    min-height: 50px;
    padding: 4px;
  }

  .calendar-day-header {
    padding: 4px;
    font-size: 0.7rem;
  }

  .event-card {
    flex-direction: column;
    gap: var(--space-md);
  }

  .event-date-block {
    display: flex;
    gap: var(--space-sm);
    align-items: baseline;
  }

  .event-date-block .day {
    font-size: 1.5rem;
  }

  .btn-group {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    text-align: center;
  }
}

@media (max-width: 480px) {
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.5rem; }

  .hero .tagline {
    font-size: 1rem;
  }

  .temple-stats {
    grid-template-columns: repeat(2, 1fr);
  }

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

/* ---------- Print ---------- */
@media print {
  .site-nav,
  .nav-toggle,
  .nav-overlay,
  .btn,
  .calendar-wrapper {
    display: none !important;
  }

  body {
    color: #000;
    background: #fff;
    font-size: 12pt;
  }

  .section--dark {
    background: #fff;
    color: #000;
  }

  .section--dark h2, .section--dark h3, .section--dark h4 {
    color: #000;
  }

  a { color: #000; text-decoration: underline; }

  .hero {
    min-height: auto;
    background: #fff;
    padding: 2rem 0;
  }

  .hero h1, .hero .subtitle, .hero .tagline {
    color: #000;
  }
}
