/*
  Old Symondian Lodge No. 5734
  Navy field with thin red & white tie stripes.
  Blackletter (Ye Olde English) for names and titles; readable body type.
*/

:root {
  --navy: #0c2340;
  --navy-deep: #071628;
  --navy-mid: #16345c;
  --red: #c8102e;
  --red-soft: #e23a4e;
  --white: #ffffff;
  --paper: #f6f7f9;
  --ink: #0c2340;
  --muted: #4a5a70;
  --fog: #9aa8bc;
  --font-gothic: "UnifrakturCook", "Old English Text MT", serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
  --max: 1120px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --tie: repeating-linear-gradient(
    -45deg,
    var(--navy) 0 18px,
    var(--white) 18px 20px,
    var(--navy) 20px 28px,
    var(--red) 28px 30px
  );
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--red); }

.wrap {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.gothic {
  font-family: var(--font-gothic);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.15;
}

.tie-bar {
  height: 8px;
  background: var(--tie);
}

/* ─── Nav ─── */
.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 20;
  padding: 1.25rem 0;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  text-decoration: none;
  color: var(--white);
}

.brand-mark {
  font-family: var(--font-gothic);
  font-size: clamp(1.45rem, 2.6vw, 2rem);
  font-weight: 700;
  line-height: 1.05;
}

.brand-sub {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.78);
}

.nav-links {
  display: flex;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.nav-links a {
  color: rgba(255,255,255,0.88);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -0.35rem;
  height: 2px;
  background: linear-gradient(90deg, var(--white), var(--red));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}

.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after { transform: scaleX(1); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.6rem 1.05rem;
  border: 1px solid rgba(255,255,255,0.45);
  color: var(--white) !important;
  border-radius: 0;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--red); border-color: var(--red); color: var(--white) !important; }

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.35);
  color: #fff;
  padding: 0.45rem 0.7rem;
  font: inherit;
}

/* ─── Hero ─── */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  align-items: end;
  color: var(--white);
  overflow: hidden;
  background:
    linear-gradient(165deg, rgba(7,22,40,0.35) 0%, rgba(12,35,64,0.88) 55%, rgba(7,22,40,0.96) 100%),
    linear-gradient(120deg, #16345c 0%, #0c2340 55%, #071628 100%);
}

.hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 10px;
  background: var(--tie);
  z-index: 3;
}

.hero-glow {
  position: absolute;
  width: 50vmax;
  height: 50vmax;
  right: -10%;
  top: -20%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200,16,46,0.18), transparent 65%);
  filter: blur(8px);
  animation: drift 14s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(-4%, 6%) scale(1.08); }
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding: 8rem 0 4.5rem;
  max-width: 40rem;
}

.hero h1 {
  font-family: var(--font-gothic);
  font-weight: 700;
  font-size: clamp(2.6rem, 6.5vw, 4.4rem);
  line-height: 1.12;
  margin: 0 0 1rem;
}

.hero-lead {
  margin: 0 0 2rem;
  font-size: 1.12rem;
  color: rgba(255,255,255,0.86);
  max-width: 34rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.9rem 1.35rem;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), background 0.25s, border-color 0.25s, color 0.25s;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--red);
  color: var(--white);
}

.btn-primary:hover { background: var(--red-soft); color: var(--white); }

.btn-ghost {
  border-color: rgba(255,255,255,0.55);
  color: var(--white);
  background: transparent;
}

.btn-ghost:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }

.hero-steps {
  position: absolute;
  right: 6%;
  bottom: 14%;
  z-index: 2;
  font-family: var(--font-gothic);
  font-size: clamp(4.5rem, 12vw, 8rem);
  line-height: 0.9;
  color: rgba(255,255,255,0.07);
  pointer-events: none;
  user-select: none;
}

/* ─── Sections ─── */
section { padding: 5.5rem 0; }

.section-kicker {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 700;
  margin-bottom: 0.85rem;
}

.section-title {
  font-family: var(--font-gothic);
  font-size: clamp(1.9rem, 4vw, 2.85rem);
  line-height: 1.18;
  margin: 0 0 1rem;
  font-weight: 700;
}

.section-lead {
  margin: 0 0 2rem;
  max-width: 38rem;
  color: var(--muted);
  font-size: 1.08rem;
}

.band-dark {
  background: linear-gradient(160deg, var(--navy-deep), var(--navy-mid));
  color: var(--white);
}

.band-dark .section-lead,
.band-dark .story-note { color: var(--fog); }
.band-pale { background: #eef1f5; }

.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

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

.panel {
  padding: 2rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-left: 4px solid var(--red);
}

.band-pale .panel {
  background: var(--white);
  border-color: rgba(12,35,64,0.08);
  border-left-color: var(--red);
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}

.stat {
  padding-top: 1rem;
  border-top: 3px solid var(--red);
  box-shadow: inset 0 1px 0 var(--white);
}

.stat strong {
  display: block;
  font-family: var(--font-gothic);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 0.35rem;
}

.stat span {
  font-size: 0.85rem;
  color: var(--fog);
}

.band-pale .stat span { color: var(--muted); }

.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.feature-list li {
  padding-left: 1.4rem;
  position: relative;
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6rem;
  width: 0.7rem;
  height: 3px;
  background: linear-gradient(90deg, var(--white), var(--red));
}

.band-pale .feature-list li::before,
.panel .feature-list li::before {
  background: linear-gradient(90deg, var(--navy), var(--red));
}

.cta-band {
  text-align: center;
  padding: 4.5rem 0;
  background: var(--navy-deep);
  color: var(--white);
  position: relative;
}

.cta-band::before {
  content: "";
  display: block;
  height: 8px;
  background: var(--tie);
  position: absolute;
  left: 0; right: 0; top: 0;
}

.cta-band h2 {
  font-family: var(--font-gothic);
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin: 0 0 0.75rem;
}

.cta-band p {
  margin: 0 auto 1.75rem;
  max-width: 34rem;
  color: var(--fog);
}

.page-hero {
  padding: 9rem 0 3.5rem;
  background: linear-gradient(160deg, var(--navy-deep), var(--navy-mid));
  color: var(--white);
  position: relative;
}

.page-hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 8px;
  background: var(--tie);
}

.page-hero h1 {
  font-family: var(--font-gothic);
  font-size: clamp(2.3rem, 5vw, 3.4rem);
  margin: 0 0 0.75rem;
  font-weight: 700;
  line-height: 1.15;
}

.page-hero p {
  margin: 0;
  max-width: 36rem;
  color: rgba(255,255,255,0.8);
}

.prose { max-width: 42rem; }
.prose p + p { margin-top: 1rem; }

.form {
  display: grid;
  gap: 1rem;
  max-width: 36rem;
}

.netlify-hp {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
}

.form-status {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

.form-status.is-error {
  color: #9b1c1c;
}

.enquire-success[hidden] {
  display: none !important;
}

.enquire-success:not([hidden]) {
  display: block;
}

.enquire-success.is-visible {
  opacity: 1;
  transform: none;
}

.enquire-success-mark {
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  background: rgba(200, 16, 46, 0.1);
  color: var(--red);
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.enquire-success h2 {
  margin: 0 0 0.6rem;
  font-size: 2rem;
}

.enquire-success p {
  margin: 0 0 1.25rem;
  color: var(--muted);
  max-width: 28rem;
}

.form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.form input,
.form select,
.form textarea {
  font: inherit;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(12,35,64,0.18);
  background: var(--white);
}

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

.note {
  margin-top: 1.5rem;
  padding: 1rem 1.15rem;
  background: rgba(200,16,46,0.08);
  border-left: 3px solid var(--red);
  font-size: 0.92rem;
}

.site-footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.72);
  padding: 3rem 0 2rem;
  font-size: 0.92rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.site-footer h3 {
  font-family: var(--font-gothic);
  color: var(--white);
  margin: 0 0 0.75rem;
  font-size: 1.45rem;
}

.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--red-soft); }

.footer-meta {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
}

.story-feature {
  margin-top: 2rem;
  padding: 2rem 0 0;
  border-top: 1px solid rgba(255,255,255,0.18);
  max-width: 40rem;
}

.story-feature h3,
.story-block h2 {
  font-family: var(--font-gothic);
  font-weight: 700;
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  margin: 0.35rem 0 0.75rem;
  line-height: 1.2;
}

.story-kicker {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 700;
}

.story-meta {
  margin: 0 0 1rem;
  font-size: 0.92rem;
  color: var(--fog);
  font-style: italic;
}

.story-block .story-meta { color: var(--muted); }

.story-note {
  margin: 1rem 0 1.5rem;
  font-size: 0.88rem;
  color: var(--fog);
}

.story-block .story-note { color: var(--muted); }

.story-block {
  padding: 2rem 0;
  border-bottom: 1px solid rgba(12,35,64,0.1);
  max-width: 42rem;
}

.story-block:last-of-type { border-bottom: none; }
.story-placeholder { opacity: 0.88; }
.story-feature .btn { margin-top: 0.5rem; }

/* ─── Photos ─── */
.photo-frame {
  margin: 0;
  overflow: hidden;
  background: var(--navy-deep);
}

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

.photo-frame figcaption {
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  color: var(--muted);
  background: var(--white);
  border: 1px solid rgba(12,35,64,0.08);
  border-top: none;
}

.photo-frame--dark figcaption {
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.7);
  padding: 0.85rem 0 0;
}

.photo-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1.25rem;
  align-items: stretch;
}

.photo-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.photo-grid .photo-frame {
  min-height: 280px;
}

.photo-grid .photo-frame img {
  aspect-ratio: 4 / 3;
  height: auto;
  min-height: 220px;
}

.split-photo {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 2.5rem;
  align-items: center;
}

.split-photo .photo-frame {
  min-height: 320px;
}

.split-photo .photo-frame img {
  aspect-ratio: 4 / 5;
  height: auto;
  max-height: 520px;
  width: 100%;
  object-fit: cover;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.gallery .photo-frame img {
  aspect-ratio: 3 / 2;
  height: auto;
}

.values-list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.values-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: start;
  padding: 0.85rem 1rem;
  background: var(--white);
  border-left: 3px solid var(--red);
  box-shadow: 0 1px 0 rgba(12,35,64,0.04);
}

.values-list .value-mark {
  font-family: var(--font-gothic);
  color: var(--red);
  font-size: 1.35rem;
  line-height: 1;
  margin-top: 0.1rem;
}

.values-list strong {
  display: block;
  font-size: 1.02rem;
  margin-bottom: 0.15rem;
}

.values-list span {
  color: var(--muted);
  font-size: 0.95rem;
}

.values-closer {
  margin-top: 2rem;
  padding: 1.5rem 1.75rem;
  background: var(--navy);
  color: var(--white);
  max-width: 40rem;
}

.values-closer p {
  margin: 0;
  font-family: var(--font-gothic);
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  line-height: 1.35;
}

.photo-hero {
  width: 100%;
  max-width: 100%;
}

.photo-hero img {
  width: 100%;
  aspect-ratio: 16 / 10;
  min-height: 320px;
  max-height: 560px;
  object-fit: cover;
  object-position: center 28%;
}

/* ─── Freemasonry is… poster recreation ─── */
.fm-poster {
  padding: 8.5rem 1.25rem 4rem;
  background:
    radial-gradient(ellipse at 50% 28%, #1a3a6b 0%, #0a1f44 48%, #061428 100%);
  color: #fff;
  min-height: 100vh;
}

.fm-poster-inner {
  width: min(100%, 640px);
  margin-inline: auto;
  text-align: center;
}

.fm-emblem {
  display: flex;
  justify-content: center;
  margin-bottom: 0.75rem;
  filter: drop-shadow(0 0 12px rgba(212, 175, 55, 0.35));
}

.fm-title {
  margin: 0 0 1.75rem;
  font-family: "Great Vibes", "Apple Chancery", cursive;
  font-weight: 400;
  font-size: clamp(2.6rem, 8vw, 3.8rem);
  line-height: 1.15;
  color: #fff;
  letter-spacing: 0.01em;
}

.fm-lines {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
  font-family: "Libre Baskerville", Georgia, "Times New Roman", serif;
  font-size: clamp(1.05rem, 2.4vw, 1.28rem);
  line-height: 1.35;
}

.fm-lines li {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.55rem 0.75rem;
}

.fm-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  opacity: 0.95;
}

.fm-lines-final {
  margin-top: 0.35rem;
  font-style: italic;
}

.fm-eye {
  display: flex;
  justify-content: center;
  margin: 1.35rem 0 1.75rem;
  filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.3));
}

.fm-scroll {
  position: relative;
  margin: 0 auto;
  max-width: 34rem;
  padding: 1.35rem 2rem 1.5rem;
  background:
    linear-gradient(180deg, #1e4a86 0%, #163a6a 55%, #102d54 100%);
  border: 2px solid #d4af37;
  border-radius: 4px 4px 18px 18px / 4px 4px 40px 40px;
  box-shadow:
    0 0 0 1px rgba(212, 175, 55, 0.35),
    0 12px 28px rgba(0, 0, 0, 0.35);
}

.fm-scroll::before,
.fm-scroll::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 18px;
  height: 48px;
  background: #d4af37;
  border-radius: 4px;
  transform: translateY(-50%);
  opacity: 0.85;
}

.fm-scroll::before { left: -10px; }
.fm-scroll::after { right: -10px; }

.fm-scroll p {
  margin: 0;
  font-family: "Great Vibes", "Apple Chancery", cursive;
  font-size: clamp(1.35rem, 3.5vw, 1.85rem);
  line-height: 1.35;
  color: #fff;
}

@media (max-width: 860px) {
  .photo-grid,
  .photo-grid--3,
  .split-photo,
  .gallery {
    grid-template-columns: 1fr;
  }

  .photo-hero img {
    min-height: 240px;
    max-height: 420px;
  }

  .fm-scroll {
    padding: 1.15rem 1.25rem 1.35rem;
  }

  .fm-scroll::before,
  .fm-scroll::after {
    display: none;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 860px) {
  .menu-toggle { display: inline-flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    right: 1.25rem;
    left: 1.25rem;
    flex-direction: column;
    align-items: stretch;
    background: rgba(7,22,40,0.97);
    padding: 1rem;
    border: 1px solid rgba(255,255,255,0.12);
    gap: 0.85rem;
  }
  .nav-links.open { display: flex; }
  .stat-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-steps { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .reveal { opacity: 1; transform: none; }
}
