/* ==========================================================
   West Hollywood Lions Club — site styles
   Plain CSS, no build step. Colors live in :root below.
   ========================================================== */

:root {
  --night: #21142f;      /* main dark background (deep aubergine) */
  --plum: #36214d;       /* secondary dark background */
  --gold: #d8a93a;       /* rays, buttons, accents */
  --gold-soft: #efd793;  /* small gold text on dark */
  --gold-deep: #85590b;  /* gold for text and lines on light backgrounds */
  --ivory: #f5efe3;      /* headings and body text on dark */
  --lavender: #c9bcd8;   /* secondary text on dark */
  --paper: #f3eef6;      /* light background of the eyeglass section */
  --ink: #2b1a40;        /* headings on light */
  --ink-soft: #4f3f63;   /* body text on light */

  --serif: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, "Times New Roman", serif;
  --sans: "Jost", "Futura", "Century Gothic", "Avenir Next", system-ui, sans-serif;
  --wrap: 1120px;
  --header-h: 70px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  background: var(--night);
  color: var(--ivory);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; font-optical-sizing: auto; text-wrap: balance; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--gold-soft); outline-offset: 3px; }
section[id] { scroll-margin-top: var(--header-h); }

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

/* Skip link for keyboard users */
.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  background: var(--gold);
  color: var(--night);
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 500;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- Header / navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(33, 20, 47, 0.94);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(216, 169, 58, 0.2);
}
.header-inner {
  max-width: calc(var(--wrap) + 48px);  /* lines up with the page content */
  margin: 0 auto;
  padding: 0 24px;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Brand: small emblem + club name, links back to the top */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ivory);
  border-radius: 6px;
}
.brand picture { flex-shrink: 0; }
.brand-emblem { display: block; width: 46px; height: 46px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--serif); font-size: 1.2rem; font-weight: 500; white-space: nowrap; }
.brand-est {
  margin-top: 3px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--gold-soft);
}

/* Links on the right */
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.6vw, 38px);
}
.site-nav a {
  color: var(--lavender);
  text-decoration: none;
  font-size: 0.98rem;
  letter-spacing: 0.02em;
  padding: 6px 0;
  border-bottom: 1.5px solid transparent;
}
.site-nav a:hover { color: var(--gold-soft); border-bottom-color: var(--gold); }

/* Menu button (phones only) */
.menu-toggle {
  display: none;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: transparent;
  color: var(--gold-soft);
  border: 1.5px solid rgba(216, 169, 58, 0.55);
  border-radius: 10px;
  cursor: pointer;
}
.bars,
.bars::before,
.bars::after {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.2s, background-color 0.2s;
}
.bars { position: relative; }
.bars::before,
.bars::after { content: ""; position: absolute; left: 0; }
.bars::before { top: -6px; }
.bars::after { top: 6px; }
.menu-toggle[aria-expanded="true"] .bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .bars::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 860px) {
  :root { --header-h: 62px; }
  .header-inner { padding: 0 16px; gap: 12px; }
  .brand { gap: 10px; }
  .brand-emblem { width: 38px; height: 38px; }
  .brand-name { font-size: 1.02rem; }
  .brand-est { font-size: 0.72rem; margin-top: 2px; }

  /* With scripts on: links fold into a drop-down opened by the menu button */
  .js .menu-toggle { display: inline-flex; }
  .js .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--night);
    border-bottom: 1px solid rgba(216, 169, 58, 0.3);
    box-shadow: 0 14px 24px rgba(10, 4, 18, 0.45);
  }
  .js .site-nav.is-open { display: block; }
  .js .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 6px 16px 14px; }
  .js .site-nav li + li { border-top: 1px solid rgba(201, 188, 216, 0.14); }
  .js .site-nav a { display: block; padding: 14px 2px; font-size: 1.1rem; border-bottom: 0; }

  /* Without scripts: links simply wrap onto a second row */
  html:not(.js) .header-inner { flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
  html:not(.js) .site-nav { width: 100%; }
  html:not(.js) .site-nav ul { flex-wrap: wrap; gap: 6px 20px; }
}
@media (max-width: 360px) {
  .brand-name { font-size: 0.94rem; }
  .brand-emblem { width: 34px; height: 34px; }
}

/* ---------- Buttons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 999px;
  border: 1.5px solid var(--gold);
  font: 500 1.02rem/1.1 var(--sans);
  letter-spacing: 0.02em;
  text-decoration: none;
  text-align: center;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.btn-gold { background: var(--gold); color: var(--night); }
.btn-gold:hover { background: var(--gold-soft); border-color: var(--gold-soft); }
.btn-outline { color: var(--gold-soft); }
.btn-outline:hover { background: rgba(216, 169, 58, 0.14); }

/* ---------- 1. Cover ---------- */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(28px, 4.5vh, 48px) 16px 0;
  overflow: hidden;
}
/* Lions emblem with the club name set below it as separate text */
.lci-logo {
  display: block;
  height: clamp(72px, 10.5vh, 96px);
  width: auto;
  margin: 0 0 12px;
}
.club {
  margin: 0;
  font-weight: 500;
  font-size: 1.2rem;
  letter-spacing: 0.07em;
  color: var(--gold-soft);
}
.hero h1 {
  margin: clamp(10px, 2vh, 18px) 0 0;
  max-width: 20ch;
  font-size: clamp(2.4rem, 5.6vw, 4.4rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.dates {
  margin: 16px 0 0;
  color: var(--lavender);
  letter-spacing: 0.02em;
}
.dates time { white-space: nowrap; color: var(--ivory); }
.hero .actions { margin-top: clamp(20px, 3.5vh, 30px); }

/* Rising-sun emblem */
.sun {
  width: min(720px, 160vw);
  margin-top: clamp(20px, 4vh, 40px);
  flex-shrink: 0;
}
.sun svg { display: block; width: 100%; height: auto; }
.ray {
  stroke: var(--gold);
  stroke-linecap: round;
  stroke-width: 1.25;
  stroke-opacity: 0.4;
}
.ray-long { stroke-width: 2; stroke-opacity: 0.7; }
.sun-text { font-family: var(--serif); fill: var(--gold); }
@media (prefers-reduced-motion: no-preference) {
  .ray {
    stroke-dasharray: 400;
    stroke-dashoffset: 400;
    animation: draw 1.4s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
  }
  @keyframes draw { to { stroke-dashoffset: 0; } }
}

/* ---------- 2. Centennial introduction ---------- */
.intro {
  background: var(--plum);
  padding: clamp(56px, 8vw, 96px) 16px;
  text-align: center;
}
.intro h2 {
  margin: 0 auto;
  font-size: clamp(1.9rem, 4.4vw, 3.3rem);
  line-height: 1.12;
}
.intro h2 .line { display: block; }
.ornament { display: block; width: 72px; height: auto; margin: 26px auto 6px; }
.intro p {
  max-width: 38rem;
  margin: 18px auto 0;
  font-size: 1.125rem;
  color: var(--lavender);
}
.motto {
  font-family: var(--serif);
  font-style: italic;
  color: var(--gold);
}
.intro .motto { font-size: 1.7rem; margin-top: 28px; color: var(--gold); }

/* ---------- 3. Eyeglass initiative ---------- */
.initiative {
  background: var(--paper);
  color: var(--ink-soft);
  padding: clamp(64px, 9vw, 112px) 16px;
}
.initiative-head {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.goal-mark { margin: 0; }
.goal-mark svg { display: block; width: 100%; max-width: 520px; height: auto; margin: 0 auto; }
.goal-mark figcaption {
  margin-top: 14px;
  text-align: center;
  font-size: 1rem;
  color: var(--ink-soft);
}
.goal-mark figcaption strong { color: var(--ink); font-weight: 500; }
.initiative h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.08;
}
.initiative .lede {
  margin: 14px 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.3rem, 2.2vw, 1.6rem);
  line-height: 1.3;
  color: var(--gold-deep);
}
.initiative p { max-width: 36rem; }
.initiative strong { color: var(--ink); font-weight: 500; }

.how { margin-top: clamp(48px, 7vw, 80px); }
.how h3 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.4rem, 2.4vw, 1.75rem);
}
.steps {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
}
.steps li { border-top: 1.5px solid rgba(133, 89, 11, 0.45); padding-top: 18px; }
.step-num {
  display: block;
  font-family: var(--serif);
  font-size: 2.4rem;
  line-height: 1;
  color: var(--gold-deep);
}
.steps h4 {
  margin: 12px 0 6px;
  font-family: var(--sans);
  font-size: 1.12rem;
  font-weight: 500;
  color: var(--ink);
}
.steps p { margin: 0; }

.partner-cta {
  margin-top: clamp(44px, 6vw, 64px);
  background: var(--night);
  color: var(--ivory);
  border-radius: 20px;
  padding: clamp(28px, 4vw, 44px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
}
.partner-cta h3 { margin: 0; font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.15; }
.partner-cta p { margin: 6px 0 0; color: var(--lavender); }
.partner-cta p a { color: var(--gold-soft); }

/* ---------- 4. Heritage ---------- */
.heritage { padding: clamp(64px, 9vw, 112px) 16px; }
.heritage-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.heritage-grid.no-photo {
  grid-template-columns: minmax(0, 1fr);
  max-width: 42rem;
  text-align: center;
}
.cabin { margin: 0; }
.cabin-frame {
  padding: 10px;
  border: 1px solid rgba(216, 169, 58, 0.6);
  background: rgba(54, 33, 77, 0.5);
}
.cabin picture { display: block; }
.cabin img { display: block; width: 100%; height: auto; }
/* On phones, crop the wide photo a little taller, keeping the club's sign in view */
@media (max-width: 600px) {
  .cabin img { aspect-ratio: 3 / 2; object-fit: cover; object-position: 66% 50%; }
}
.cabin figcaption {
  margin-top: 14px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.02rem;
  color: var(--lavender);
}
.heritage h2 { margin: 0; font-size: clamp(2rem, 4vw, 3.1rem); line-height: 1.08; }
.heritage p { color: var(--lavender); }
.heritage .charter { margin-top: 20px; font-size: 1.2rem; color: var(--ivory); }

/* ---------- 5. Contact ---------- */
.contact {
  background: var(--plum);
  padding: clamp(64px, 9vw, 104px) 16px;
  text-align: center;
}
.contact h2 { margin: 0; font-size: clamp(2rem, 4.4vw, 3.3rem); line-height: 1.1; }
.contact p { max-width: 38rem; margin: 18px auto 0; color: var(--lavender); font-size: 1.125rem; }
.contact address { margin-top: 28px; font-style: normal; }
.contact-name { display: block; font-family: var(--serif); font-size: 1.35rem; color: var(--ivory); }
.contact address a { color: var(--gold-soft); }
.contact .actions { margin-top: 28px; }

/* ---------- 6. Footer ---------- */
.site-footer {
  border-top: 1px solid rgba(216, 169, 58, 0.25);
  padding: 44px 16px 52px;
  text-align: center;
  color: var(--lavender);
  font-size: 0.97rem;
}
.site-footer p { margin: 0; }
.footer-name { font-family: var(--serif); font-size: 1.35rem; color: var(--ivory); }
.site-footer a { color: var(--gold-soft); }
.site-footer .motto { font-size: 1.2rem; margin-top: 10px; }
.copyright { margin-top: 18px !important; font-size: 0.88rem; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .initiative-head,
  .heritage-grid { grid-template-columns: minmax(0, 1fr); }
  .goal-mark svg { max-width: 420px; }
  .heritage-text { order: -1; }
}
@media (max-width: 720px) {
  .steps { grid-template-columns: minmax(0, 1fr); }
  .partner-cta { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .btn { padding: 13px 26px; }
}
@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
}
