/* ===========================================================================
   Templar Chapter No. 374 — Order of the Eastern Star
   Shared stylesheet
   ========================================================================== */

:root {
  --navy:        #0f2043;
  --navy-2:      #16305e;
  --navy-3:      #1d3d72;
  --gold:        #c6a24a;   /* decorative accents & text on DARK backgrounds */
  --gold-soft:   #d8bd7c;   /* eyebrows/labels on DARK backgrounds */
  --gold-ink:    #8a6a1e;   /* AA-compliant gold for text on LIGHT backgrounds */
  --cream:       #faf7ef;
  --paper:       #ffffff;
  --ink:         #1b2436;
  --ink-soft:    #4a5468;
  --line:        #e6e0d2;

  /* Five star-point colors */
  --star-blue:   #2a5db0;
  --star-yellow: #e2ac2b;
  --star-white:  #ffffff;
  --star-green:  #2e8b57;
  --star-red:    #c0392b;

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --maxw: 1120px;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(15, 32, 67, 0.10);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  color: var(--navy);
  margin: 0 0 0.4em;
}

h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); letter-spacing: 0.5px; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.35rem; }

p { margin: 0 0 1rem; }

a { color: var(--navy-3); text-decoration: none; }
a:hover { color: var(--gold-ink); } /* AA on light bg; nav/footer override on dark */

img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.section { padding: 76px 0; }
.section-tight { padding: 48px 0; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gold-ink); /* AA on light backgrounds; overridden to gold-soft on dark */
  margin: 0 0 0.8rem;
}

.lead { font-size: 1.18rem; color: var(--ink-soft); }

.center { text-align: center; }
.measure { max-width: 720px; margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.button {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.3px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.button-primary {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}
.button-primary:hover {
  background: var(--gold-soft);
  color: var(--navy);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(198, 162, 74, 0.35);
}
.button-ghost {
  background: transparent;
  color: var(--cream);
  border-color: rgba(255, 255, 255, 0.55);
}
.button-ghost:hover {
  background: rgba(255, 255, 255, 0.10);
  color: #fff;
  border-color: #fff;
}
.button-dark {
  background: var(--navy);
  color: var(--cream);
  border-color: var(--navy);
}
.button-dark:hover { background: var(--navy-2); color: #fff; transform: translateY(-2px); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 32, 67, 0.97);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(198, 162, 74, 0.28);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--cream);
}
.brand:hover { color: var(--cream); }
.brand svg { width: 38px; height: 38px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--serif); font-size: 1.28rem; font-weight: 600; color: #fff; }
.brand-sub  { font-size: 0.68rem; letter-spacing: 2px; text-transform: uppercase; color: var(--gold-soft); }

.site-nav { display: flex; align-items: center; gap: 6px; }
.site-nav a {
  color: var(--cream);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  transition: background 0.15s ease, color 0.15s ease;
}
.site-nav a:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.site-nav a.active { color: var(--gold); }
.site-nav .nav-cta {
  background: var(--gold);
  color: var(--navy);
  font-weight: 600;
  margin-left: 8px;
}
.site-nav .nav-cta:hover { background: var(--gold-soft); color: var(--navy); }

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.mobile-menu-toggle .bar { width: 26px; height: 2px; background: var(--cream); border-radius: 2px; transition: 0.2s; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1100px 500px at 80% -10%, rgba(198, 162, 74, 0.20), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 55%, var(--navy-3) 100%);
  color: var(--cream);
  padding: 96px 0 100px;
  overflow: hidden;
}
.hero .eyebrow { color: var(--gold-soft); }
.hero h1 { color: #fff; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}
.hero-text { font-size: 1.2rem; color: rgba(250, 247, 239, 0.86); max-width: 34rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero-emblem { display: flex; justify-content: center; }
.hero-emblem svg {
  width: min(340px, 80%);
  height: auto;
  filter: drop-shadow(0 14px 30px rgba(0, 0, 0, 0.4));
}

/* Meeting ribbon under hero */
.ribbon {
  background: var(--navy-2);
  color: var(--cream);
  border-top: 1px solid rgba(198, 162, 74, 0.3);
}
.ribbon-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 40px;
  justify-content: center;
  padding: 20px 24px;
  text-align: center;
}
.ribbon-item { display: flex; align-items: center; gap: 10px; font-size: 0.98rem; }
.ribbon-item strong { color: var(--gold-soft); font-weight: 600; }

/* ---------- Cards / Grids ---------- */
.grid { display: grid; gap: 26px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
}
.card h3 { color: var(--navy); }

.value-card { text-align: center; }
.value-card .icon {
  width: 54px; height: 54px; margin: 0 auto 16px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(198, 162, 74, 0.14);
  color: var(--gold);
}
.value-card .icon svg { width: 28px; height: 28px; }

/* Split feature */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.split.reverse .split-media { order: 2; }

.panel {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%);
  color: var(--cream);
  border-radius: var(--radius);
  padding: 44px;
}
.panel h2, .panel h3 { color: #fff; }
.panel .eyebrow { color: var(--gold-soft); }
/* Info lines inside a dark panel: keep text legible on navy (WCAG AA) */
.panel .info-line .label { color: var(--gold-soft); }
.panel .info-line strong { color: #ffffff; }
.panel .info-line svg { color: var(--gold-soft); }

/* ---------- Star points section ---------- */
.starpoints { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.starpoint {
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 5px solid var(--sp, var(--gold));
  border-radius: var(--radius);
  padding: 26px 20px;
  box-shadow: var(--shadow);
}
.starpoint .dot {
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--sp, var(--gold));
  box-shadow: 0 0 0 4px rgba(0,0,0,0.05);
  margin-bottom: 14px;
}
.starpoint h3 { font-size: 1.25rem; margin-bottom: 2px; }
.starpoint .virtue { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--gold-ink); font-weight: 600; margin-bottom: 10px; }
.starpoint p { font-size: 0.94rem; color: var(--ink-soft); margin: 0; }

/* ---------- CTA band ---------- */
.cta-band {
  background:
    radial-gradient(800px 400px at 15% 120%, rgba(198,162,74,0.20), transparent 60%),
    linear-gradient(150deg, var(--navy) 0%, var(--navy-2) 100%);
  color: var(--cream);
  text-align: center;
  border-radius: 0;
}
.cta-band h2 { color: #fff; }
.cta-band .eyebrow { color: var(--gold-soft); } /* eyebrow sits on dark here */
.cta-band p { color: rgba(250,247,239,0.85); max-width: 40rem; margin-left: auto; margin-right: auto; }

/* ---------- Check list ---------- */
.check-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 11px; }
.check-list li { position: relative; padding-left: 30px; color: var(--ink); }
.check-list li::before {
  content: "";
  position: absolute; left: 0; top: 4px;
  width: 18px; height: 18px;
  background: var(--gold-ink);
  border-radius: 50%;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; gap: 20px; }
.step { display: flex; gap: 20px; align-items: flex-start; }
.step .num {
  flex: none;
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--navy); color: var(--gold);
  font-family: var(--serif); font-size: 1.4rem; font-weight: 600;
}
.step h3 { margin-bottom: 4px; }
.step p { margin: 0; color: var(--ink-soft); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 36px; align-items: start; }
.form-stack { display: flex; flex-direction: column; gap: 6px; }
.form-stack label { font-weight: 600; font-size: 0.9rem; margin-top: 12px; color: var(--navy); }
.form-stack input,
.form-stack textarea {
  font-family: var(--sans);
  font-size: 1rem;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  transition: border 0.15s ease, box-shadow 0.15s ease;
}
.form-stack input:focus,
.form-stack textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(198, 162, 74, 0.18);
}
.form-stack .button { margin-top: 18px; }
.form-note { font-size: 0.88rem; color: var(--ink-soft); margin-top: 12px; }
.form-feedback { min-height: 1.2em; font-weight: 600; margin-top: 10px; }
.form-feedback.success { color: #1a6b3f; } /* darkened green for AA on white */
.form-feedback.error { color: var(--star-red); }

.info-line { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 18px; }
.info-line svg { width: 22px; height: 22px; color: var(--gold); flex: none; margin-top: 3px; }
.info-line .label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--ink-soft); }
.info-line strong { display: block; color: var(--navy); font-size: 1.02rem; }

.map-embed { border: 0; width: 100%; height: 260px; border-radius: var(--radius); margin-top: 8px; }

/* ---------- Heroine list (about) ---------- */
.heroine { display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: start; padding: 22px 0; border-bottom: 1px solid var(--line); }
.heroine:last-child { border-bottom: 0; }
.heroine .badge {
  width: 60px; height: 60px; border-radius: 12px;
  display: grid; place-items: center;
  color: #fff; font-family: var(--serif); font-size: 1.5rem; font-weight: 600;
  box-shadow: var(--shadow);
}
.heroine h3 { margin-bottom: 2px; }
.heroine .meta { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 1.2px; color: var(--gold-ink); font-weight: 600; margin-bottom: 8px; }
.heroine p { margin: 0; color: var(--ink-soft); }

/* ---------- Page hero (sub pages) ---------- */
.page-hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%);
  color: var(--cream);
  padding: 72px 0 64px;
  text-align: center;
}
.page-hero h1 { color: #fff; }
.page-hero .eyebrow { color: var(--gold-soft); }
.page-hero p { color: rgba(250,247,239,0.85); max-width: 46rem; margin: 0 auto; font-size: 1.12rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: rgba(250, 247, 239, 0.8);
  padding: 54px 0 30px;
}
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer-brand svg { width: 40px; height: 40px; }
.footer-brand .brand-name { color: #fff; font-family: var(--serif); font-size: 1.25rem; }
.site-footer h4 { color: var(--gold-soft); font-size: 0.82rem; letter-spacing: 1.5px; text-transform: uppercase; margin: 0 0 14px; }
.site-footer a { color: rgba(250, 247, 239, 0.8); display: block; padding: 4px 0; }
.site-footer a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  margin-top: 40px; padding-top: 22px;
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between;
  font-size: 0.85rem; color: rgba(250,247,239,0.6);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-emblem { order: -1; }
  .hero-text { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split.reverse .split-media { order: 0; }
  .starpoints { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }

  .mobile-menu-toggle { display: flex; }
  .site-nav {
    position: absolute;
    top: 72px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--navy);
    border-bottom: 1px solid rgba(198, 162, 74, 0.3);
    padding: 10px 16px 18px;
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 10px; border-radius: 8px; }
  .site-nav .nav-cta { margin: 8px 0 0; text-align: center; }
}

@media (max-width: 560px) {
  .starpoints { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .brand-sub { display: none; }
  .section { padding: 56px 0; }
}
