/*
Theme Name: EOHSJ Toronto Lieutenancy
Theme URI:
Author:
Description: Custom theme for the Equestrian Order of the Holy Sepulchre of Jerusalem — Toronto Lieutenancy
Version: 1.0
Text Domain: eohsj-toronto
*/

/* ============================================================
   EOHSJ — Toronto Lieutenancy
   Tokens + base. Ecclesiastical, elevated, editorial.
   ============================================================ */

:root {
  --ivory:      #f6f2ea;
  --ivory-deep: #efe9dd;
  --paper:      #fbf9f4;
  --ink:        #221f1a;
  --ink-soft:   #4a443b;
  --ink-mute:   #8a8174;
  --line:       #ddd4c4;
  --line-soft:  #e7dfd1;

  --crimson:    #7a1620;
  --crimson-2:  #5e1019;
  --gold:       #a9883f;
  --gold-soft:  #c2a868;

  --accent:     var(--crimson);

  --serif-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --serif-body:    'EB Garamond', Georgia, serif;
  --label:         'EB Garamond', Georgia, serif;

  --maxw: 1240px;
  --nav-h: 78px;

  --ease: cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--serif-body);
  font-size: 19px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--serif-display);
  font-weight: 500;
  margin: 0;
  line-height: 1.06;
  letter-spacing: .005em;
}

p { margin: 0 0 1em; text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 40px; }
.wrap-narrow { max-width: 820px; margin: 0 auto; padding: 0 40px; }

.eyebrow {
  font-family: var(--label);
  text-transform: uppercase;
  letter-spacing: .34em;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
}
.eyebrow.muted { color: var(--ink-mute); }

.rule {
  width: 64px; height: 1px; border: 0;
  background: var(--gold-soft);
  margin: 26px 0;
}
.rule.center { margin-left: auto; margin-right: auto; }

.motto {
  font-family: var(--label);
  text-transform: uppercase;
  letter-spacing: .28em;
  font-size: 12px;
  color: var(--gold);
  font-weight: 600;
}

.flourish {
  display: flex; align-items: center; justify-content: center;
  gap: 18px; color: var(--gold-soft);
}
.flourish::before, .flourish::after {
  content: ""; height: 1px; width: 90px; background: var(--line);
}
.flourish span { font-size: 14px; color: var(--gold); }

.btn {
  font-family: var(--label);
  text-transform: uppercase;
  letter-spacing: .2em;
  font-size: 13px;
  font-weight: 600;
  padding: 15px 30px;
  display: inline-flex; align-items: center; gap: 12px;
  border: 1px solid var(--accent);
  color: var(--accent);
  background: transparent;
  cursor: pointer;
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.btn:hover { background: var(--accent); color: var(--paper); }
.btn.solid { background: var(--accent); color: var(--paper); }
.btn.solid:hover { background: var(--crimson-2); border-color: var(--crimson-2); }
.btn.ghost { border-color: var(--line); color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn .arr { transition: transform .35s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }

.tlink {
  font-family: var(--label);
  text-transform: uppercase;
  letter-spacing: .2em;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--accent);
  display: inline-flex; align-items: center; gap: 10px;
  position: relative;
  background: transparent; border: 0; padding: 0;
  cursor: pointer;
}
.tlink::after {
  content: ""; position: absolute; left: 0; bottom: -5px; height: 1px;
  width: 100%; background: var(--accent); transform: scaleX(0);
  transform-origin: left; transition: transform .4s var(--ease);
}
.tlink:hover::after { transform: scaleX(1); }
.tlink .arr { transition: transform .35s var(--ease); }
.tlink:hover .arr { transform: translateX(4px); }

.section { padding: 120px 0; }
.section.tight { padding: 88px 0; }
.bg-paper { background: var(--paper); }
.bg-ivory-deep { background: var(--ivory-deep); }
.bg-ink { background: var(--ink); color: var(--ivory); }
.bg-crimson { background: var(--crimson); color: var(--ivory); }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

.page-enter { animation: pageIn .55s var(--ease); }
@keyframes pageIn { from { transform: translateY(12px); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .page-enter { animation: none; } }

::selection { background: var(--accent); color: var(--paper); }

.hero-title { line-height: 1.1 !important; }
.hero-title span { display: block; white-space: nowrap; }
@media (max-width: 560px) { .hero-title span { white-space: normal; } }

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  transition: background .5s var(--ease), border-color .5s var(--ease), box-shadow .5s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.solid {
  background: rgba(251,249,244,.92);
  backdrop-filter: saturate(1.1) blur(10px);
  border-bottom-color: var(--line-soft);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; height: var(--nav-h);
  padding: 0 40px; display: flex; align-items: center; gap: 30px;
}
.brand { display: flex; align-items: center; gap: 14px; cursor: pointer; }
.brand-mark { transition: transform .5s var(--ease); }
.brand:hover .brand-mark { transform: scale(1.04); }
.brand-text { line-height: 1.05; }
.brand-text .l1 {
  font-family: var(--label); text-transform: uppercase; letter-spacing: .18em;
  font-size: 10.5px; font-weight: 600; color: var(--ink-mute); white-space: nowrap; line-height: 1.4;
}
.brand-text .l2 {
  font-family: var(--serif-display); font-size: 21px; font-weight: 600;
  letter-spacing: .02em; color: var(--ink);
}
.nav.overlay .brand-text .l1 { color: rgba(255,255,255,.7); }
.nav.overlay .brand-text .l2 { color: #fff; }
.nav.overlay .brand-mark { color: #fff !important; }

.nav-links { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.nav-item { position: relative; }
.nav-link {
  font-family: var(--label); text-transform: uppercase; letter-spacing: .14em;
  font-size: 11px; font-weight: 600; color: var(--ink-soft);
  padding: 10px 11px; cursor: pointer; display: inline-flex; align-items: center; gap: 7px;
  transition: color .3s var(--ease); white-space: nowrap;
}
.nav-link:hover, .nav-link.active { color: var(--accent); }
.nav.overlay .nav-link { color: rgba(255,255,255,.82); }
.nav.overlay .nav-link:hover, .nav.overlay .nav-link.active { color: #fff; }
.nav-link .caret { width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); opacity: .55; transition: transform .3s var(--ease); }
.nav-item:hover .caret { transform: rotate(45deg) translateY(1px); }

.dropdown {
  position: absolute; top: calc(100% - 6px); left: 8px; min-width: 244px;
  background: var(--paper); border: 1px solid var(--line-soft);
  box-shadow: 0 26px 60px -28px rgba(34,31,26,.4);
  padding: 10px; opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .28s var(--ease), transform .28s var(--ease), visibility .28s;
}
.nav-item:hover .dropdown { opacity: 1; visibility: visible; transform: none; }
.dd-link {
  display: block; padding: 11px 14px; cursor: pointer;
  font-family: var(--serif-body); font-size: 16px; color: var(--ink-soft);
  border-left: 2px solid transparent; transition: all .25s var(--ease);
}
.dd-link:hover { color: var(--accent); border-left-color: var(--accent); background: var(--ivory); padding-left: 18px; }
.dd-link .dd-sub { display:block; font-family: var(--label); text-transform: uppercase; letter-spacing:.14em; font-size: 10px; color: var(--ink-mute); margin-top: 2px; }

.nav-cta { margin-left: 16px; }

.nav-burger { display: none; margin-left: auto; width: 30px; height: 30px; cursor: pointer; flex-direction: column; justify-content: center; gap: 6px; }
.nav-burger span { height: 1.5px; background: var(--ink); transition: all .3s var(--ease); }
.nav.overlay .nav-burger span { background: #fff; }
.mobile-menu { position: fixed; inset: 0; z-index: 55; background: var(--ivory); padding: calc(var(--nav-h) + 30px) 40px 40px; display: flex; flex-direction: column; gap: 4px; transform: translateX(100%); opacity: 0; visibility: hidden; pointer-events: none; transition: transform .45s var(--ease), opacity .3s var(--ease), visibility .45s; }
.mobile-menu.open { transform: none; opacity: 1; visibility: visible; pointer-events: auto; }
.mobile-menu .m-link { font-family: var(--serif-display); font-size: 32px; padding: 14px 0; border-bottom: 1px solid var(--line-soft); color: var(--ink); cursor: pointer; }
.mobile-menu .m-link:hover { color: var(--accent); }

@media (max-width: 1500px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
}
@media (max-width: 940px) {
  .wrap, .wrap-narrow { padding: 0 24px; }
  .section { padding: 80px 0; }
}
@media (max-width: 560px) { .brand-text .l1 { display: none; } }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--ink); color: var(--ivory); padding: 84px 0 40px; }
.footer a { color: rgba(246,242,234,.72); transition: color .25s var(--ease); cursor: pointer; }
.footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 48px; }
.footer h4 { font-family: var(--label); text-transform: uppercase; letter-spacing: .24em; font-size: 12px; color: var(--gold-soft); margin-bottom: 20px; font-weight: 600; }
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; font-size: 16px; }
.footer-bottom { margin-top: 64px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.12); display: flex; justify-content: space-between; align-items: center; gap: 20px; font-size: 13px; color: rgba(246,242,234,.5); font-family: var(--label); letter-spacing: .04em; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; } .footer-bottom { flex-direction: column; } }

/* ============================================================
   HOME
   ============================================================ */
@keyframes cuePulse { 0%,100% { opacity:.25; transform:scaleY(.7); } 50% { opacity:.7; transform:scaleY(1); } }

.event-row {
  display: flex; align-items: center; gap: 32px; padding: 30px 8px;
  border-top: 1px solid var(--line-soft); cursor: pointer;
  transition: background .35s var(--ease), padding-left .35s var(--ease);
}
.event-row:last-child { border-bottom: 1px solid var(--line-soft); }
.event-row:hover { background: var(--paper); padding-left: 22px; }
.ev-date { width: 78px; flex: none; text-align: center; border-right: 1px solid var(--line); padding-right: 24px; }
.ev-d { font-family: var(--serif-display); font-size: 44px; line-height: 1; color: var(--crimson); }
.ev-m { font-family: var(--label); text-transform: uppercase; letter-spacing: .22em; font-size: 11px; color: var(--ink-mute); margin-top: 4px; }
.ev-loc { font-family: var(--label); text-transform: uppercase; letter-spacing: .14em; font-size: 11px; color: var(--ink-mute); width: 200px; text-align: right; flex: none; }
.ev-arr { font-size: 22px; color: var(--ink-mute); transition: transform .35s var(--ease), color .35s var(--ease); }
.event-row:hover .ev-arr { transform: translateX(6px); color: var(--crimson); }

@media (max-width: 900px) {
  .hero-split { grid-template-columns: 1fr !important; }
  .hero-split > div:first-child { min-height: 50vh; }
  .hero-ed-grid { grid-template-columns: 1fr !important; gap: 40px !important; }
  .pillar-grid { grid-template-columns: 1fr !important; }
  .bg-ink .wrap { grid-template-columns: 1fr !important; gap: 40px !important; }
}
@media (max-width: 720px) {
  .ev-loc { display: none; }
  .ev-date { width: 60px; padding-right: 16px; }
  .ev-d { font-size: 34px; }
  .event-row { gap: 20px; }
}

/* ============================================================
   INTERIOR PAGES
   ============================================================ */
.tl-row { display: grid; grid-template-columns: 120px 1fr; gap: 36px; padding: 30px 0; border-top: 1px solid var(--line-soft); }
.tl-row:last-child { border-bottom: 1px solid var(--line-soft); }
.tl-year { font-family: var(--serif-display); font-size: 30px; color: var(--crimson); font-style: italic; }
.step-row { display: grid; grid-template-columns: 80px 1fr; gap: 32px; padding: 30px 0; border-top: 1px solid var(--line-soft); align-items: start; }
.step-row:last-child { border-bottom: 1px solid var(--line-soft); }
.step-n { font-family: var(--serif-display); font-size: 40px; color: var(--gold); font-style: italic; line-height: 1; }
.feast-row { display: flex; align-items: baseline; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line-soft); }
.feast-d { font-family: var(--label); text-transform: uppercase; letter-spacing: .12em; font-size: 12px; color: var(--crimson); width: 78px; flex: none; }
.feast-t { font-family: var(--serif-display); font-size: 21px; }
.lead-grid { display: grid; }
@media (max-width: 880px) {
  .lead-grid { grid-template-columns: 1fr 1fr !important; }
  .feast-grid { grid-template-columns: 1fr !important; }
  .contact-grid, .ev-grid { grid-template-columns: 1fr !important; gap: 36px !important; }
  .tl-row { grid-template-columns: 70px 1fr; gap: 22px; }
  .bg-ink .wrap, section[id] .wrap { grid-template-columns: 1fr !important; gap: 40px !important; }
  .bg-ink .reveal[style*="order: 2"] { order: 0 !important; }
}
@media (max-width: 560px) { .lead-grid { grid-template-columns: 1fr !important; } }

/* ============================================================
   EVENTS
   ============================================================ */
.filter-chip {
  font-family: var(--label); text-transform: uppercase; letter-spacing: .18em;
  font-size: 12px; font-weight: 600; padding: 11px 22px; cursor: pointer;
  background: transparent; border: 1px solid var(--line); color: var(--ink-soft);
  transition: all .3s var(--ease);
}
.filter-chip:hover { border-color: var(--accent); color: var(--accent); }
.filter-chip.on { background: var(--accent); border-color: var(--accent); color: var(--paper); }
.ev-card { border: 1px solid var(--line-soft); background: var(--paper); padding: 34px 32px; transition: box-shadow .4s var(--ease), transform .4s var(--ease); }
.ev-card:hover { box-shadow: 0 30px 60px -36px rgba(34,31,26,.4); transform: translateY(-3px); }
.ev-card-top { display: flex; justify-content: space-between; align-items: flex-start; }
.ev-cal { display: flex; flex-direction: column; align-items: center; border: 1px solid var(--line); padding: 8px 14px; line-height: 1; }
.ec-m { font-family: var(--label); text-transform: uppercase; letter-spacing: .18em; font-size: 10.5px; color: var(--crimson); }
.ec-d { font-family: var(--serif-display); font-size: 32px; margin: 3px 0; }
.ec-y { font-family: var(--label); font-size: 10.5px; letter-spacing: .14em; color: var(--ink-mute); }
.ev-tag { font-family: var(--label); text-transform: uppercase; letter-spacing: .16em; font-size: 10.5px; font-weight: 600; color: var(--gold); border: 1px solid var(--gold-soft); padding: 5px 12px; }
.ev-meta { display: flex; flex-direction: column; gap: 7px; font-family: var(--label); text-transform: uppercase; letter-spacing: .1em; font-size: 11.5px; color: var(--ink-mute); }

/* ============================================================
   FORM FIELDS
   ============================================================ */
.field { margin-bottom: 22px; }
.field label { display: block; font-family: var(--label); text-transform: uppercase; letter-spacing: .18em; font-size: 11px; font-weight: 600; color: var(--ink-mute); margin-bottom: 9px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; font-family: var(--serif-body); font-size: 18px;
  color: var(--ink); background: var(--paper); border: 1px solid var(--line);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease); resize: vertical;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(122,22,32,.08); }
.field .bad { border-color: var(--crimson); box-shadow: 0 0 0 3px rgba(122,22,32,.1); }

body::-webkit-scrollbar { width: 11px; }
body::-webkit-scrollbar-track { background: var(--ivory-deep); }
body::-webkit-scrollbar-thumb { background: var(--line); border: 3px solid var(--ivory-deep); }

/* ============================================================
   WORDPRESS UTILITIES
   ============================================================ */
.screen-reader-text {
  border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%);
  height: 1px; width: 1px; margin: -1px; overflow: hidden;
  position: absolute !important; word-wrap: normal !important;
}
