/* Sartoris Lodge & Chapter – site styles */
:root {
  --navy: #14213d;
  --navy-2: #1d2f55;
  --gold: #b8913a;
  --gold-soft: #e9dcbc;
  --cream: #faf7f0;
  --ink: #23262d;
  --muted: #5c6270;
  --line: #e4ddcc;
  --radius: 10px;
  --max: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Source Sans 3", "Segoe UI", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-2); text-underline-offset: 3px; }
a:hover { color: var(--gold); }

h1, h2, h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.2rem); font-weight: 600; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.1rem); font-weight: 600; }
h3 { font-size: 1.35rem; font-weight: 600; }
p { margin: 0 0 1em; }

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

/* Header */
.site-header {
  background: var(--navy);
  color: #fff;
  border-bottom: 3px solid var(--gold);
  position: sticky; top: 0; z-index: 10;
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding-top: 10px; padding-bottom: 10px;
}
.brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
.brand img { width: 46px; height: 46px; border-radius: 50%; }
.brand span { white-space: nowrap; font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.35rem; font-weight: 600; letter-spacing: .02em; }
.brand:hover { color: var(--gold-soft); }

.nav-toggle {
  display: none; background: none; border: 1px solid rgba(255,255,255,.4);
  color: #fff; border-radius: 6px; padding: 6px 12px; font-size: 1rem; cursor: pointer;
}
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; flex-wrap: wrap; }
.site-nav a {
  color: #fff; text-decoration: none; padding: 8px 11px; border-radius: 6px; display: block;
  font-size: .98rem;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { background: var(--navy-2); color: var(--gold-soft); }

@media (max-width: 980px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--navy); border-bottom: 3px solid var(--gold); }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; padding: 8px 12px 14px; }
}

/* Hero */
.hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff; padding: 56px 0 64px;
}
.hero .wrap { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; }
.hero h1 { color: #fff; }
.hero .lead { font-size: 1.2rem; color: #dfe4ee; max-width: 36em; }
.hero img { width: 100%; max-width: 340px; margin: 0 auto; border-radius: 50%; filter: drop-shadow(0 10px 24px rgba(0,0,0,.35)); }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; color: var(--gold-soft); margin-bottom: .6em; }
@media (max-width: 760px) {
  .hero { padding: 36px 0 44px; }
  .hero .wrap { grid-template-columns: 1fr; text-align: center; }
  .hero .lead { margin-left: auto; margin-right: auto; }
  .hero img { max-width: 220px; order: -1; }
}

.page-head { background: var(--navy); color: #fff; padding: 40px 0; }
.page-head h1 { color: #fff; margin: 0; }
.page-head p { color: #dfe4ee; margin: .4em 0 0; }

/* Buttons */
.btn {
  display: inline-block; background: var(--gold); color: var(--navy); font-weight: 600;
  padding: 11px 22px; border-radius: 999px; text-decoration: none; margin: 4px 6px 4px 0;
}
.btn:hover { background: var(--gold-soft); color: var(--navy); }
.btn.ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.55); }
.btn.ghost:hover { background: rgba(255,255,255,.1); color: #fff; }

/* Sections */
section.block { padding: 56px 0; }
section.block.alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 860px) { .grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; border-top: 4px solid var(--gold);
}
.alt .card { background: var(--cream); }
.card p:last-child { margin-bottom: 0; }

.facts { list-style: none; padding: 0; margin: 0; }
.facts li { padding: 10px 0; border-bottom: 1px solid var(--line); display: flex; gap: 12px; justify-content: space-between; flex-wrap: wrap; }
.facts li:last-child { border-bottom: 0; }
.facts strong { color: var(--navy); }

table.officers { width: 100%; border-collapse: collapse; }
table.officers th, table.officers td { text-align: left; padding: 9px 6px; border-bottom: 1px solid var(--line); }
table.officers th { color: var(--muted); font-weight: 600; width: 45%; }

.map { border: 0; width: 100%; height: 340px; border-radius: var(--radius); }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { position: relative; padding: 0 0 22px 52px; }
.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 50%;
  background: var(--navy); color: var(--gold-soft); display: grid; place-items: center; font-weight: 700;
}

.callout { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 32px; text-align: center; }
.callout h2 { color: #fff; }
.callout p { color: #dfe4ee; }

/* Placeholder text John needs to fill in – remove the class once updated */
.todo { background: #fff3b0; outline: 1px dashed #c9a400; padding: 0 3px; }

/* Footer */
.site-footer { background: var(--navy); color: #c7cedb; padding: 36px 0 28px; font-size: .95rem; margin-top: 0; }
.site-footer a { color: var(--gold-soft); }
.site-footer .wrap { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; }
.site-footer small { display: block; margin-top: 18px; color: #9aa3b5; grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.12); padding-top: 14px; }
@media (max-width: 760px) { .site-footer .wrap { grid-template-columns: 1fr; } }

/* ---------- Crests & logos ---------- */
.head-flex { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.head-logo.crest { width: 120px; height: 120px; flex: none; }
.head-logo.sgc { width: 220px; flex: none; }
@media (max-width: 760px) {
  .head-flex { flex-direction: column-reverse; align-items: flex-start; }
  .head-logo.crest { width: 84px; height: 84px; }
  .head-logo.sgc { width: 170px; }
}
.footer-logos {
  grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 28px 40px;
  padding-top: 20px; margin-top: 6px; border-top: 1px solid rgba(255,255,255,.12);
}
.footer-logos img.crest { width: 72px; height: 72px; }
.footer-logos img.ugle { height: 34px; width: auto; }
.footer-logos img.sgc { height: 46px; width: auto; }
.footer-logos a:hover img { opacity: .85; }

.province-flex { display: flex; align-items: center; gap: 32px; }
.province-flex img { width: 150px; height: 150px; flex: none; }
@media (max-width: 760px) { .province-flex { flex-direction: column; text-align: center; } .province-flex img { width: 120px; height: 120px; } }

/* ---------- Useful links ---------- */
ul.links { list-style: none; margin: 0; padding: 0; }
ul.links li { padding: 10px 0; border-bottom: 1px solid var(--line); }
ul.links li:last-child { border-bottom: 0; }
ul.links a { font-weight: 600; display: block; }
ul.links span { display: block; color: var(--muted); font-size: .95rem; }
ul.links.cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 24px; }
ul.links.cols li { border-bottom: 0; }
@media (max-width: 860px) { ul.links.cols { grid-template-columns: 1fr 1fr; } }

/* ---------- Royal Arch theme (Supreme Grand Chapter colours) ----------
   SGC/Royal Arch: crimson red with deep Royal Arch blue, on white. */
body.theme-ra {
  --navy: #8c1101;      /* SGC deep crimson – headers, footer */
  --navy-2: #af1600;    /* SGC red – hovers, links */
  --gold: #af1600;      /* accent rules & card tops become red */
  --gold-soft: #f6d9d3;
  --ra-blue: #13325e;   /* Royal Arch blue */
  --cream: #ffffff;
  --line: #ecdcd8;
}
body.theme-ra .site-header { border-bottom-color: var(--ra-blue); }
body.theme-ra .page-head { background: linear-gradient(160deg, #8c1101 0%, #af1600 100%); }
body.theme-ra h1, body.theme-ra h2, body.theme-ra h3 { color: #8c1101; }
body.theme-ra .page-head h1, body.theme-ra .callout h2 { color: #fff; }
body.theme-ra .btn { background: var(--ra-blue); color: #fff; }
body.theme-ra .btn:hover { background: #0f294e; color: #fff; }
body.theme-ra section.block.alt { background: #faf3f1; }
body.theme-ra .alt .card { background: #fff; }
body.theme-ra .card { border-top-color: #af1600; }
body.theme-ra .facts strong { color: var(--ra-blue); }
body.theme-ra .site-footer { background: #6e0d01; }
body.theme-ra .site-footer .footer-logos { border-top-color: rgba(255,255,255,.2); }

/* Chapter card on shared pages picks up the Royal Arch colour */
.card.ra { border-top-color: #af1600; }
.card.ra h3 { color: #8c1101; }
ul.links span, ul.links a { overflow-wrap: anywhere; }
@media (max-width: 520px) { ul.links.cols { grid-template-columns: 1fr; } }

/* ---------- Enquiry form ---------- */
form.enquiry { display: grid; gap: 6px; }
form.enquiry label { font-weight: 600; color: var(--navy); margin-top: 12px; }
form.enquiry .opt { font-weight: 400; color: var(--muted); }
form.enquiry input[type=text], form.enquiry input[type=email], form.enquiry input[type=tel], form.enquiry select, form.enquiry textarea {
  width: 100%; font: inherit; padding: 11px 12px; border: 1px solid #cfc6b0; border-radius: 8px; background: #fff; color: var(--ink);
}
form.enquiry input:focus, form.enquiry select:focus, form.enquiry textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--gold); }
form.enquiry label.consent { font-weight: 400; color: var(--ink); display: flex; gap: 10px; align-items: flex-start; margin: 16px 0 10px; }
form.enquiry label.consent input { margin-top: 5px; width: 18px; height: 18px; flex: none; }
form.enquiry button { border: 0; cursor: pointer; font: inherit; font-weight: 600; justify-self: start; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.status { padding: 14px 16px; border-radius: 8px; margin-bottom: 16px; }
.status.ok { background: #e6f4ea; border: 1px solid #9fd3ad; color: #1e5631; }
.status.err { background: #fdecea; border: 1px solid #f1aaa2; color: #8a1c10; }
