/* Ripon Freemasonry — shared stylesheet */
:root {
  --navy: #13284a;
  --navy-deep: #0b1a33;
  --gold: #b8913f;
  --gold-soft: #e9dcc0;
  --ink: #1d2433;
  --muted: #5a6475;
  --paper: #faf8f3;
  --white: #ffffff;
  --line: #e3ddd0;
  --radius: 6px;
  --max: 1080px;
  --serif: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--navy); text-underline-offset: 3px; }
a:hover { color: var(--gold); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.skip { position: absolute; left: -999px; top: 0; background: var(--gold); color: var(--navy-deep); padding: .6rem 1rem; z-index: 99; }
.skip:focus { left: 1rem; top: 1rem; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }

/* Header */
.site-header {
  background: var(--navy-deep);
  color: var(--white);
  border-bottom: 3px solid var(--gold);
  position: sticky; top: 0; z-index: 50;
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }
.brand { display: flex; align-items: center; gap: .75rem; color: var(--white); text-decoration: none; }
.brand:hover { color: var(--white); }
.brand svg { width: 40px; height: 40px; flex: none; }
.brand-text { font-family: var(--serif); font-size: 1.45rem; font-weight: 600; letter-spacing: .02em; line-height: 1.1; }
.brand-text small { display: block; font-family: var(--sans); font-size: .7rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-soft); }

.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .25rem; flex-wrap: wrap; }
.nav a { color: var(--white); text-decoration: none; font-size: .92rem; padding: .5rem .7rem; border-radius: var(--radius); display: block; }
.nav a:hover, .nav a[aria-current="page"] { background: rgba(255,255,255,.08); color: var(--gold-soft); }
.nav .cta { background: var(--gold); color: var(--navy-deep); font-weight: 600; }
.nav .cta:hover { background: var(--gold-soft); color: var(--navy-deep); }

.menu-toggle { display: none; background: none; border: 1px solid rgba(255,255,255,.35); color: var(--white); border-radius: var(--radius); padding: .45rem .7rem; font: inherit; font-size: .9rem; cursor: pointer; }

@media (max-width: 860px) {
  .menu-toggle { display: block; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; background: var(--navy-deep); border-bottom: 3px solid var(--gold); display: none; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; padding: .5rem 1.25rem 1rem; }
  .nav a { padding: .75rem .5rem; }
}

/* Hero */
.hero {
  background:
    radial-gradient(ellipse at 80% 20%, rgba(184,145,63,.18), transparent 55%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--white);
  padding: 5.5rem 0 5rem;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(45deg, rgba(255,255,255,.025) 25%, transparent 25%, transparent 75%, rgba(255,255,255,.025) 75%),
    linear-gradient(45deg, rgba(255,255,255,.025) 25%, transparent 25%, transparent 75%, rgba(255,255,255,.025) 75%);
  background-size: 56px 56px; background-position: 0 0, 28px 28px;
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }
.eyebrow { font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-soft); font-weight: 600; margin: 0 0 .9rem; }
.hero h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(2.4rem, 5.5vw, 4rem); line-height: 1.05; margin: 0 0 1.2rem; max-width: 18ch; }
.hero p.lead { font-size: 1.18rem; max-width: 56ch; color: #dfe5ef; margin: 0 0 2rem; }
.page-hero { padding: 3.75rem 0 3.25rem; }
.page-hero h1 { font-size: clamp(2rem, 4.5vw, 3rem); }

.btn { display: inline-block; padding: .85rem 1.4rem; border-radius: var(--radius); font-weight: 600; text-decoration: none; font-size: .98rem; border: 2px solid transparent; transition: background .15s, color .15s; }
.btn-gold { background: var(--gold); color: var(--navy-deep); }
.btn-gold:hover { background: var(--gold-soft); color: var(--navy-deep); }
.btn-ghost { border-color: rgba(255,255,255,.55); color: var(--white); }
.btn-ghost:hover { background: var(--white); color: var(--navy-deep); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-deep); color: var(--gold-soft); }
.btn-row { display: flex; gap: .8rem; flex-wrap: wrap; }

/* Sections */
section { padding: 4.25rem 0; }
section.alt { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(1.8rem, 3.4vw, 2.4rem); color: var(--navy); line-height: 1.15; margin: 0 0 1rem; }
h3 { font-family: var(--serif); font-weight: 600; font-size: 1.45rem; color: var(--navy); margin: 0 0 .5rem; line-height: 1.2; }
.rule { width: 64px; height: 3px; background: var(--gold); border: 0; margin: 0 0 1.5rem; }
.intro { font-size: 1.12rem; color: var(--muted); max-width: 64ch; }
.prose { max-width: 68ch; }
.prose p { margin: 0 0 1.1rem; }

.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; }
section.alt .card { background: var(--paper); }
.card p { margin: 0 0 .75rem; color: var(--muted); }
.card p:last-child { margin-bottom: 0; }
.value .icon { width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: var(--gold-soft); display: grid; place-items: center; font-family: var(--serif); font-size: 1.35rem; font-weight: 700; margin-bottom: .9rem; }

.lodge { border-top: 4px solid var(--gold); }
.lodge .tag { display: inline-block; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--gold); margin-bottom: .35rem; }
.lodge dl { margin: .9rem 0 0; display: grid; grid-template-columns: max-content 1fr; gap: .3rem .9rem; font-size: .95rem; }
.lodge dt { font-weight: 600; color: var(--navy); }
.lodge dd { margin: 0; color: var(--muted); }

.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 2rem; } }

.panel { background: var(--navy); color: var(--white); border-radius: var(--radius); padding: 2rem; position: relative; overflow: hidden; }
.panel h3 { color: var(--gold-soft); }
.panel p { color: #dfe5ef; }
.panel a { color: var(--gold-soft); }

.facts { list-style: none; padding: 0; margin: 0; display: grid; gap: .9rem; }
.facts li { display: flex; gap: .9rem; align-items: baseline; }
.facts strong { font-family: var(--serif); font-size: 1.6rem; color: var(--gold-soft); min-width: 4.2ch; }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 1.1rem; }
.steps li { counter-increment: step; position: relative; padding-left: 3.4rem; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: .1rem; width: 2.3rem; height: 2.3rem; border-radius: 50%; background: var(--gold); color: var(--navy-deep); font-weight: 700; display: grid; place-items: center; }
.steps h3 { font-size: 1.2rem; margin-bottom: .2rem; }
.steps p { margin: 0; color: var(--muted); }

.faq details { border-bottom: 1px solid var(--line); padding: 1rem 0; }
.faq summary { cursor: pointer; font-weight: 600; color: var(--navy); list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: .7rem 0 0; color: var(--muted); }

.cta-band { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%); color: var(--white); text-align: center; padding: 4rem 0; }
.cta-band h2 { color: var(--white); }
.cta-band p { color: #dfe5ef; max-width: 56ch; margin: 0 auto 1.8rem; }
.cta-band .btn-row { justify-content: center; }

.address { font-style: normal; line-height: 1.7; }
.map { border: 0; width: 100%; height: 340px; border-radius: var(--radius); filter: grayscale(.25); }

.notice { background: var(--gold-soft); border-left: 4px solid var(--gold); padding: 1rem 1.25rem; border-radius: var(--radius); color: var(--navy-deep); font-size: .95rem; }

/* Footer */
.site-footer { background: var(--navy-deep); color: #b9c3d3; padding: 3rem 0 2rem; font-size: .92rem; }
.site-footer a { color: var(--gold-soft); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { font-family: var(--serif); color: var(--white); font-size: 1.15rem; margin: 0 0 .6rem; font-weight: 600; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: .3rem 0; }
.footer-base { border-top: 1px solid rgba(255,255,255,.1); margin-top: 2rem; padding-top: 1.25rem; font-size: .82rem; color: #8592a8; }

/* fixes */
.panel a.btn-gold { color: var(--navy-deep); }
.nav .cta[aria-current="page"] { background: var(--gold-soft); color: var(--navy-deep); }
