/* Dunston St Nicholas Lodge No.9712 — static site styles */
:root{
  --navy:#1a2744;
  --navy-2:#13203a;
  --gold:#c9a84c;
  --offwhite:#f5f0e8;
  --grey:#e8e4dc;
  --muted:rgba(245,240,232,.78);
  --card:rgba(19,32,58,.78);
  --shadow:0 14px 35px rgba(0,0,0,.35);
  --shadow-soft:0 10px 22px rgba(0,0,0,.22);
  --radius:16px;
  --radius-sm:12px;
  --max:1160px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:"Lato",system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  color:var(--offwhite);
  background:
    radial-gradient(1200px 800px at 20% 10%, rgba(201,168,76,.12), transparent 55%),
    radial-gradient(1000px 700px at 85% 35%, rgba(201,168,76,.10), transparent 55%),
    linear-gradient(180deg, var(--navy), #101a31 60%, #0b1224);
  line-height:1.6;
}

img{max-width:100%; height:auto}
a{color:inherit}

.container{
  width:min(var(--max), calc(100% - 2rem));
  margin-inline:auto;
}

/* Header / Nav */
.site-header{
  position:sticky;
  top:0;
  z-index:50;
  background:rgba(26,39,68,.92);
  backdrop-filter:blur(10px);
  border-bottom:1px solid rgba(201,168,76,.22);
}
.nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:.75rem 0;
  gap:1rem;
}
.brand{
  display:flex;
  align-items:center;
  gap:.75rem;
  text-decoration:none;
  min-width:0;
}
.brand-mark{
  width:44px;
  height:44px;
  flex:0 0 auto;
  filter:drop-shadow(0 6px 10px rgba(0,0,0,.35));
}
.brand-text{
  display:flex;
  flex-direction:column;
  min-width:0;
}
.brand-title{
  font-family:"Playfair Display",Georgia,"Times New Roman",serif;
  font-size:1.05rem;
  line-height:1.1;
  letter-spacing:.2px;
  margin:0;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.brand-subtitle{
  margin:0;
  font-size:.86rem;
  color:var(--muted);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.nav-toggle{
  display:none;
  border:1px solid rgba(201,168,76,.38);
  background:rgba(19,32,58,.55);
  color:var(--offwhite);
  border-radius:12px;
  padding:.55rem .7rem;
  cursor:pointer;
  transition:transform .12s ease, background .2s ease, border-color .2s ease;
}
.nav-toggle:active{transform:scale(.98)}
.nav-toggle:hover{border-color:rgba(201,168,76,.62)}
.nav-toggle-lines{
  width:20px;
  height:14px;
  display:grid;
  align-content:space-between;
}
.nav-toggle-lines span{
  display:block;
  height:2px;
  background:var(--offwhite);
  border-radius:999px;
  opacity:.95;
}

.nav-links{
  display:flex;
  align-items:center;
  gap:.25rem;
}
.nav-links a{
  text-decoration:none;
  padding:.55rem .75rem;
  border-radius:12px;
  color:var(--muted);
  border:1px solid transparent;
  transition:background .2s ease, border-color .2s ease, color .2s ease;
  font-weight:700;
  letter-spacing:.2px;
  font-size:.96rem;
}
.nav-links a:hover{
  color:var(--offwhite);
  background:rgba(201,168,76,.12);
  border-color:rgba(201,168,76,.22);
}
.nav-links a[aria-current="page"]{
  color:var(--offwhite);
  background:rgba(201,168,76,.18);
  border-color:rgba(201,168,76,.35);
}

/* Hero */
.hero{
  position:relative;
  overflow:hidden;
  padding:4.2rem 0 3.2rem;
  border-bottom:1px solid rgba(201,168,76,.18);
}
.hero::before{
  content:"";
  position:absolute;
  inset:-2px;
  background:
    linear-gradient(135deg, rgba(201,168,76,.12) 0 1px, transparent 1px 100%),
    linear-gradient(225deg, rgba(201,168,76,.10) 0 1px, transparent 1px 100%),
    linear-gradient(0deg, rgba(255,255,255,.05), rgba(255,255,255,0));
  background-size:44px 44px, 56px 56px, 100% 100%;
  opacity:.65;
  pointer-events:none;
  mask-image:radial-gradient(circle at 50% 18%, rgba(0,0,0,1) 0 55%, rgba(0,0,0,0) 78%);
}
.hero-grid{
  position:relative;
  display:grid;
  grid-template-columns:1.35fr .65fr;
  gap:2rem;
  align-items:center;
}
.hero h1{
  font-family:"Playfair Display",Georgia,"Times New Roman",serif;
  margin:0 0 .75rem;
  font-size:clamp(2.1rem, 3.6vw, 3.1rem);
  line-height:1.1;
  letter-spacing:.2px;
}
.hero p{
  margin:0 0 1.25rem;
  color:var(--muted);
  font-size:1.08rem;
  max-width:60ch;
}
.strapline{
  display:inline-flex;
  align-items:center;
  gap:.55rem;
  color:rgba(245,240,232,.9);
  font-weight:700;
  letter-spacing:.18px;
  margin:.35rem 0 1.15rem;
}
.strapline .dot{
  width:8px;height:8px;border-radius:50%;
  background:var(--gold);
  box-shadow:0 0 0 4px rgba(201,168,76,.12);
}
.hero-badges{
  display:flex;
  flex-wrap:wrap;
  gap:.65rem;
  margin-top:1.25rem;
}
.badge{
  border:1px dashed rgba(201,168,76,.55);
  background:rgba(19,32,58,.45);
  color:rgba(245,240,232,.86);
  border-radius:999px;
  padding:.45rem .75rem;
  font-weight:800;
  font-size:.9rem;
}
.hero-crest{
  justify-self:end;
  width:min(360px, 100%);
  background:rgba(19,32,58,.55);
  border:1px solid rgba(201,168,76,.25);
  border-radius:var(--radius);
  padding:1.1rem;
  box-shadow:var(--shadow);
}
.hero-crest .crest-title{
  font-family:"Playfair Display",Georgia,"Times New Roman",serif;
  margin:.25rem 0 .4rem;
  font-size:1.1rem;
}
.hero-crest .crest-note{
  margin:0;
  color:var(--muted);
  font-size:.95rem;
}
.logo-placeholder{
  display:grid;
  place-items:center;
  border-radius:14px;
  border:1px solid rgba(201,168,76,.28);
  background:linear-gradient(180deg, rgba(26,39,68,.55), rgba(19,32,58,.65));
  color:rgba(245,240,232,.75);
  min-height:110px;
  text-align:center;
  padding:1rem;
  font-weight:800;
}

/* Hero feature photo */
.hero-photo{
  margin:0 0 1rem;
  border-radius:14px;
  overflow:hidden;
  border:1px solid rgba(201,168,76,.28);
  box-shadow:var(--shadow-soft);
  background:rgba(12,20,40,.55);
}
.hero-photo img{
  display:block;
  width:100%;
  height:auto;
}
.hero-photo figcaption{
  padding:.65rem .85rem;
  color:rgba(245,240,232,.78);
  font-size:.92rem;
  border-top:1px solid rgba(201,168,76,.18);
}

/* Sections / Cards */
main{padding:2.25rem 0 3.25rem}
.section{
  margin:2.25rem 0;
}
.section h2{
  font-family:"Playfair Display",Georgia,"Times New Roman",serif;
  margin:0 0 .7rem;
  font-size:clamp(1.55rem, 2.2vw, 2.05rem);
}
.section p{color:var(--muted); margin:0 0 1rem}

.grid-2{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:1.25rem;
}
.cards{
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  gap:1rem;
}
.card{
  background:linear-gradient(180deg, rgba(19,32,58,.82), rgba(12,20,40,.78));
  border:1px solid rgba(201,168,76,.18);
  border-radius:var(--radius);
  padding:1.1rem;
  box-shadow:var(--shadow-soft);
  transition:transform .18s ease, border-color .2s ease, box-shadow .2s ease;
}
.card:hover{
  transform:translateY(-2px);
  border-color:rgba(201,168,76,.32);
  box-shadow:var(--shadow);
}
.card h3{
  font-family:"Playfair Display",Georgia,"Times New Roman",serif;
  margin:0 0 .35rem;
  font-size:1.25rem;
}
.card p{margin:0 0 .85rem}
.card .meta{
  display:flex;
  flex-wrap:wrap;
  gap:.5rem;
  margin-top:.65rem;
}
.pill{
  display:inline-flex;
  align-items:center;
  gap:.4rem;
  border:1px solid rgba(201,168,76,.22);
  color:rgba(245,240,232,.84);
  background:rgba(201,168,76,.08);
  border-radius:999px;
  padding:.35rem .6rem;
  font-size:.88rem;
  font-weight:800;
}

.panel{
  background:rgba(19,32,58,.58);
  border:1px solid rgba(201,168,76,.18);
  border-radius:var(--radius);
  padding:1.25rem;
  box-shadow:var(--shadow-soft);
}

/* Buttons */
.btn-row{display:flex; flex-wrap:wrap; gap:.75rem; margin-top:1rem}
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.55rem;
  padding:.75rem 1rem;
  border-radius:14px;
  text-decoration:none;
  font-weight:900;
  letter-spacing:.2px;
  border:1px solid transparent;
  transition:transform .12s ease, background .2s ease, border-color .2s ease, color .2s ease;
}
.btn:active{transform:scale(.99)}
.btn-primary{
  background:var(--gold);
  color:var(--navy);
  border-color:rgba(201,168,76,.55);
}
.btn-primary:hover{background:#d6b35a}
.btn-secondary{
  background:rgba(19,32,58,.55);
  color:var(--offwhite);
  border-color:rgba(201,168,76,.45);
}
.btn-secondary:hover{background:rgba(201,168,76,.14)}

/* Tables */
table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  overflow:hidden;
  border-radius:var(--radius);
  border:1px solid rgba(201,168,76,.22);
  background:rgba(19,32,58,.62);
  box-shadow:var(--shadow-soft);
}
th, td{
  padding:.95rem 1rem;
  text-align:left;
  vertical-align:top;
  border-bottom:1px solid rgba(201,168,76,.16);
}
th{
  font-family:"Playfair Display",Georgia,"Times New Roman",serif;
  font-size:1.05rem;
  color:rgba(245,240,232,.95);
  background:rgba(201,168,76,.10);
}
tr:last-child td{border-bottom:none}

/* Forms */
form{display:grid; gap:.85rem}
.field{
  display:grid;
  gap:.35rem;
}
label{font-weight:900; letter-spacing:.15px}
input, textarea, select{
  width:100%;
  padding:.8rem .9rem;
  border-radius:14px;
  border:1px solid rgba(201,168,76,.22);
  background:rgba(12,20,40,.72);
  color:var(--offwhite);
  outline:none;
  transition:border-color .2s ease, box-shadow .2s ease, transform .12s ease;
}
textarea{min-height:140px; resize:vertical}
input:focus, textarea:focus, select:focus{
  border-color:rgba(201,168,76,.55);
  box-shadow:0 0 0 5px rgba(201,168,76,.12);
}
.help{
  font-size:.92rem;
  color:var(--muted);
  margin-top:-.15rem;
}
.form-status{
  min-height:1.25rem;
  color:rgba(245,240,232,.88);
  font-weight:800;
}
.form-status.error{color:#ffb4b4}
.form-status.ok{color:#cbe9c8}

/* Map embed */
.map{
  width:100%;
  height:360px;
  border:0;
  border-radius:var(--radius);
  box-shadow:var(--shadow-soft);
  border:1px solid rgba(201,168,76,.22);
}

/* Footer */
.site-footer{
  border-top:1px solid rgba(201,168,76,.22);
  background:rgba(11,18,36,.9);
  padding:2rem 0;
}
.footer-grid{
  display:grid;
  grid-template-columns:1.3fr .7fr;
  gap:1.5rem;
}
.footer-title{
  font-family:"Playfair Display",Georgia,"Times New Roman",serif;
  margin:0 0 .5rem;
  font-size:1.2rem;
}
.footer-meta{
  margin:0;
  color:var(--muted);
}
.footer-links{
  display:flex;
  flex-direction:column;
  gap:.55rem;
}
.footer-links a{
  color:rgba(245,240,232,.86);
  text-decoration:none;
  border-bottom:1px solid rgba(201,168,76,.22);
  width:max-content;
  padding-bottom:.12rem;
}
.footer-links a:hover{color:var(--offwhite); border-bottom-color:rgba(201,168,76,.55)}
.copyright{
  margin-top:1.25rem;
  color:rgba(245,240,232,.62);
  font-size:.92rem;
}

/* Back to top */
.back-to-top{
  position:fixed;
  right:1rem;
  bottom:1rem;
  opacity:0;
  pointer-events:none;
  transform:translateY(10px);
  transition:opacity .2s ease, transform .2s ease;
  z-index:60;
}
.back-to-top.visible{
  opacity:1;
  pointer-events:auto;
  transform:translateY(0);
}

/* Utility */
.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;
}
.divider{
  height:1px;
  background:linear-gradient(90deg, transparent, rgba(201,168,76,.35), transparent);
  margin:1.25rem 0;
}

/* Responsive */
@media (max-width: 980px){
  .hero-grid{grid-template-columns:1fr; gap:1.25rem}
  .hero-crest{justify-self:start; width:100%}
  .cards{grid-template-columns:repeat(2, 1fr)}
  .grid-2{grid-template-columns:1fr}
  .footer-grid{grid-template-columns:1fr}
}

@media (max-width: 720px){
  .nav-toggle{display:inline-flex}
  .nav-links{
    position:absolute;
    left:0;
    right:0;
    top:100%;
    display:none;
    flex-direction:column;
    align-items:stretch;
    gap:.25rem;
    padding:.75rem 1rem 1rem;
    background:rgba(26,39,68,.96);
    border-bottom:1px solid rgba(201,168,76,.22);
  }
  .nav-links.open{display:flex}
  .nav-links a{padding:.75rem .9rem}
  .cards{grid-template-columns:1fr}
  .hero{padding:3.3rem 0 2.7rem}
}
