/* Ohio Desert of Constituent Courts — site styles */
:root {
  --plum: #2A1433;
  --plum-dark: #1C0D22;
  --crimson: #8E1B2C;
  --crimson-dark: #5E0F1C;
  --gold: #C9A24A;
  --gold-light: #E7C873;
  --cream: #FBF5EA;
  --cream-2: #F4EADA;
  --card: #FFFDF8;
  --line: #E5D5B8;
  --ink: #241A1F;
  --muted: #5A4A50;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Mulish', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--cream); font-size: 17px; line-height: 1.6; }
img { max-width: 100%; }
a { color: var(--crimson); }
a:hover { color: var(--crimson-dark); }
h1, h2, h3 { margin: 0; }
p { margin: 0; }
[hidden] { display: none !important; }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--gold); color: var(--plum); padding: 12px 18px; font-weight: 700; z-index: 100; }
.skip-link:focus { left: 12px; top: 12px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.container { max-width: 1240px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.section { padding-top: 88px; padding-bottom: 88px; }
section[id], footer[id] { scroll-margin-top: 90px; }

.eyebrow { display: block; font-size: 13px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--crimson); }
.eyebrow-light { color: var(--gold-light); }
h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(34px, 5vw, 46px); line-height: 1.1; color: var(--plum); }
.section-head { display: flex; flex-direction: column; gap: 12px; max-width: 700px; margin-bottom: 36px; }
.section-head p { font-size: 18px; }
.section-head-row { max-width: none; flex-direction: row; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; }
.section-head-row > div { display: flex; flex-direction: column; gap: 12px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 13px 28px; border-radius: 4px; font-family: var(--sans); font-weight: 700; font-size: 17px; text-decoration: none; cursor: pointer; border: 2px solid transparent; }
.btn-small { min-height: 44px; padding: 10px 20px; font-size: 15px; }
.btn-gold { background: var(--gold); color: var(--plum); }
.btn-gold:hover { background: var(--gold-light); color: var(--plum); }
.btn-outline-light { border-color: var(--cream); color: var(--cream); }
.btn-outline-light:hover { background: rgba(251,245,234,0.12); color: var(--cream); }
.btn-crimson { background: var(--crimson); color: var(--cream); }
.btn-crimson:hover { background: var(--crimson-dark); color: var(--cream); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }
.btn-row .btn { min-width: 180px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--plum); border-bottom: 3px solid var(--gold); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 10px; padding-bottom: 10px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand-emblem { width: 84px; height: 70px; background: var(--cream); border-radius: 6px; padding: 4px; display: flex; align-items: center; justify-content: center; }
.brand-emblem img { max-width: 100%; max-height: 100%; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; }
.brand-name { font-family: var(--serif); font-size: 26px; font-weight: 700; color: var(--cream); line-height: 1.1; }
.brand-sub { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-light); }
.main-nav { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 22px; }
.main-nav a:not(.btn) { color: #F3E6C8; text-decoration: none; font-weight: 600; font-size: 15px; padding: 12px 4px; }
.main-nav a:not(.btn):hover { color: var(--gold-light); }
.menu-toggle { display: none; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px; background: transparent; color: var(--cream); border: 1px solid rgba(231,200,115,0.6); border-radius: 4px; font: 700 15px var(--sans); cursor: pointer; }

@media (max-width: 960px) {
  .menu-toggle { display: inline-flex; }
  .main-nav { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 0 12px; }
  .main-nav.open { display: flex; }
  .main-nav a:not(.btn) { padding: 12px 4px; border-top: 1px solid rgba(231,200,115,0.2); font-size: 17px; }
  .main-nav .btn { margin-top: 10px; }
  .brand-emblem { width: 64px; height: 54px; }
  .brand-name { font-size: 22px; }
}

/* Hero */
.hero { position: relative; background: url(../images/background.jpg) center 30% / cover no-repeat; }
.hero::before { content: ""; position: absolute; inset: 0; background: rgba(42, 20, 51, 0.55); }
.hero-inner { position: relative; display: flex; justify-content: flex-end; padding-top: 120px; padding-bottom: 120px; }
.hero-text { max-width: 560px; display: flex; flex-direction: column; gap: 20px; color: var(--cream); }
.hero h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(48px, 8vw, 68px); line-height: 1.02; }
.hero h1 em { color: var(--gold-light); font-weight: 500; }
.hero-text p { font-size: 19px; }
@media (max-width: 700px) {
  .hero { background-position: 20% center; }
  .hero::before { background: rgba(42, 20, 51, 0.68); }
  .hero-inner { padding-top: 72px; padding-bottom: 72px; }
}

/* Next event strip */
.next-event { background: var(--crimson); color: var(--cream); }
.next-event-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; padding-top: 18px; padding-bottom: 18px; }
.next-event strong { color: #F3D98B; letter-spacing: 0.08em; text-transform: uppercase; font-size: 13px; margin-right: 10px; }
.next-event a { color: var(--cream); font-weight: 700; font-size: 15px; }

/* About */
.about { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.about-text { flex: 1 1 420px; display: flex; flex-direction: column; gap: 18px; }
.about-text p { font-size: 18px; line-height: 1.7; white-space: pre-line; }
.about-photo { flex: 1 1 420px; margin: 0; min-height: 260px; border-radius: 8px; overflow: hidden; background: var(--card); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; }
.about-photo .optional-photo { width: 100%; height: 100%; min-height: 300px; object-fit: cover; display: block; }
.about-photo .photo-fallback { display: none; width: 100%; max-width: 460px; padding: 14px; box-sizing: border-box; }
.about-photo.no-photo .photo-fallback { display: block; }

/* Leadership */
.leadership { background: var(--cream); border-top: 1px solid var(--line); }
.section-head-center { margin-left: auto; margin-right: auto; text-align: center; align-items: center; }
.leader-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.leader-card { flex: 0 1 340px; background: var(--card); border: 1px solid var(--line); border-top: 4px solid var(--gold); border-radius: 6px; padding: 28px 24px; text-align: center; display: flex; flex-direction: column; gap: 8px; }
.leader-title { font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--crimson); }
.leader-name { font-family: var(--serif); font-size: 30px; font-weight: 700; color: var(--plum); line-height: 1.15; }
.leader-name .muted { font-family: var(--sans); font-size: 17px; font-weight: 400; }
.leader-court { font-size: 15px; color: var(--muted); }
.leader-feature { flex: 1 1 100%; max-width: 860px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 28px 44px; background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 36px 28px; }
.leader-feature-text { flex: 1 1 280px; display: flex; flex-direction: column; gap: 10px; text-align: left; }
.leader-feature .leader-name { font-size: 34px; }
.leader-bio-link { align-self: flex-start; margin-top: 8px; }
.leader-email { font-size: 15px; color: var(--muted); word-break: break-all; }
@media (max-width: 640px) { .leader-feature-text { text-align: center; align-items: center; } .leader-bio-link { align-self: center; } }

/* Gold picture frame */
.gold-frame { flex: 0 0 auto; width: 240px; aspect-ratio: 349 / 620; padding: 12px; border-radius: 4px; background: linear-gradient(135deg, #7a5a14 0%, #e9c86a 20%, #fff3c4 36%, #c99a2e 54%, #f3d98b 72%, #8a6a1c 100%); box-shadow: 0 10px 28px rgba(42, 20, 51, 0.28), inset 0 0 0 1px rgba(255, 243, 196, 0.6); }
.gold-frame-inner { width: 100%; height: 100%; overflow: hidden; background: radial-gradient(circle at 50% 30%, #fffaf0 0%, #f3e6c8 70%, #e8d3a6 100%); box-shadow: inset 0 0 0 2px #7a5a14, inset 0 0 0 5px #f3d98b, inset 0 0 0 6px #7a5a14; display: flex; align-items: flex-end; justify-content: center; }
.gold-frame-inner img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.gold-frame-large { width: min(300px, 80vw); }

/* Biography page */
.bio-page { display: flex; flex-wrap: wrap; gap: 40px 56px; align-items: flex-start; justify-content: center; }
.bio-text { flex: 1 1 420px; max-width: 680px; display: flex; flex-direction: column; gap: 14px; }
.bio-text h1 { font-family: var(--serif); font-weight: 700; font-size: clamp(36px, 6vw, 52px); line-height: 1.08; color: var(--plum); }
.bio-text .bio-body { font-size: 18px; line-height: 1.75; white-space: pre-line; }
.bio-back { font-weight: 700; margin-top: 12px; }

/* Welcome video + courts emblem (swapped) */
.video-frame-welcome { flex: 1 1 380px; max-width: 520px; margin: 0 auto; }
.courts-emblem { max-width: 460px; margin: 0 auto 36px; padding: 14px; background: var(--card); border: 1px solid var(--line); border-radius: 8px; }
.courts-emblem img { width: 100%; display: block; }

/* Courts */
.band-cream { background: var(--cream-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.video-frame { max-width: 640px; margin: 0 auto 36px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); background: var(--plum); aspect-ratio: 1000 / 932; }
.video-frame video { width: 100%; height: 100%; display: block; object-fit: cover; }
.court-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.court-card { background: var(--card); border: 1px solid var(--line); border-top: 4px solid var(--crimson); border-radius: 6px; padding: 20px; color: var(--ink); display: flex; flex-direction: column; align-items: flex-start; gap: 6px; text-align: left; font-family: var(--sans); cursor: pointer; width: 100%; }
.court-card:hover { border-color: var(--gold); border-top-color: var(--crimson); box-shadow: 0 4px 14px rgba(42,20,51,0.08); }
.court-name { font-family: var(--serif); font-size: 26px; font-weight: 700; color: var(--plum); line-height: 1.1; }
.court-city { font-size: 16px; font-weight: 600; color: var(--crimson); }
.court-more { font-size: 15px; font-weight: 700; color: var(--crimson); margin-top: 6px; text-decoration: underline; }

/* Events */
.event-list { display: flex; flex-direction: column; gap: 16px; margin-bottom: 24px; }
.event { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 20px 24px; }
.event-date { width: 84px; height: 84px; flex-shrink: 0; background: var(--plum); color: var(--cream); border-radius: 6px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.event-month { font-size: 13px; font-weight: 700; letter-spacing: 0.12em; color: var(--gold-light); }
.event-day { font-family: var(--serif); font-size: 34px; font-weight: 700; line-height: 1; }
.event-info { flex: 1 1 320px; display: flex; flex-direction: column; gap: 4px; }
.event-title { font-size: 21px; font-weight: 700; color: var(--plum); }
.event-meta { font-size: 16px; color: var(--muted); }
.event-details { font-size: 16px; white-space: pre-line; }
.empty-note { background: var(--card); border: 1px dashed var(--line); border-radius: 6px; padding: 24px; color: var(--muted); font-size: 17px; }

/* Charity */
.band-plum { background: var(--plum); color: var(--cream); }
.band-plum h2 { color: var(--cream); }
.band-plum .section-head p { color: #E9DDF0; white-space: pre-line; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.photo-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; display: block; }
.photo-grid:empty, .photo-grid.all-missing { display: none; }

/* Membership */
.join { position: relative; background: url(../images/background.jpg) center 60% / cover no-repeat; }
.join::before { content: ""; position: absolute; inset: 0; background: rgba(251, 245, 234, 0.86); }
.join-inner { position: relative; max-width: 820px; margin: 0 auto; padding: 104px 24px; display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; }
.join-inner h2 { font-size: clamp(36px, 5vw, 50px); }
.join-inner p { font-size: 19px; white-space: pre-line; }
.join-inner .btn { margin-top: 8px; }

/* Footer */
.site-footer { background: var(--plum-dark); color: #E9DDF0; padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; margin-bottom: 40px; }
.footer-brand { display: flex; flex-direction: column; gap: 4px; }
.footer-emblem { width: 160px; background: var(--cream); border-radius: 6px; padding: 8px; margin-bottom: 10px; }
.footer-emblem img { width: 100%; display: block; }
.footer-col { display: flex; flex-direction: column; gap: 8px; font-size: 16px; }
.footer-col h3 { font-family: var(--sans); color: var(--gold-light); font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; }
.footer-col a, .footer-col span { color: #E9DDF0; }
.footer-col span { white-space: pre-line; }
.footer-bottom { padding-top: 24px; border-top: 1px solid #3D2547; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; font-size: 14px; color: #BFAFC6; }
.footer-bottom strong, .footer-bottom a { color: var(--gold-light); }
.visit-counter { flex-basis: 100%; }

/* Court pop-up */
.court-dialog { width: min(620px, calc(100% - 32px)); max-height: 90vh; padding: 0; border: none; border-top: 6px solid var(--crimson); border-radius: 8px; background: var(--card); color: var(--ink); }
.court-dialog::backdrop { background: rgba(28, 13, 34, 0.72); }
.dlg-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 28px 28px 20px; border-bottom: 1px solid var(--line); }
.dlg-head h2 { font-size: 36px; }
.dlg-city { font-size: 17px; font-weight: 600; color: var(--crimson); }
.dlg-close { width: 44px; height: 44px; flex-shrink: 0; border: 1px solid var(--line); background: var(--cream); border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--plum); }
.dlg-body { padding: 24px 28px 28px; display: flex; flex-direction: column; gap: 24px; }
.dlg-body h3 { font-family: var(--sans); font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--crimson); margin-bottom: 6px; }
.dlg-body p { font-size: 17px; white-space: pre-line; }
.dlg-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.officer-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 6px; }
.officer-list li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding: 12px 16px; border-bottom: 1px solid #F0E4CF; font-size: 16px; }
.officer-list li:last-child { border-bottom: none; }
.officer-title { color: var(--muted); }
.officer-name { font-weight: 700; color: var(--plum); }
.muted { color: var(--muted); font-style: italic; }
.dlg-website a { font-weight: 700; }
