/* Well Preserved Advisory Group — site styles
   Brand colors come from the official 2021 logo. */
:root {
  --navy: #262E4B;
  --navy-deep: #1B2138;
  --navy-mid: #353E62;
  --teal: #5FA59B;
  --teal-dark: #2E6E66;
  --tint: #EBF4F2;
  --text: #1A2233;
  --body: #3A4256;
  --muted: #4A5268;
  --line: #DCE3EC;
  --input: #8E9BB8;
  --on-dark: #D6DAE6;
  --serif: 'Source Serif 4', Georgia, serif;
  --sans: 'Atkinson Hyperlegible', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --script: 'Allura', cursive;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #FFFFFF;
  color: var(--text);
  font-family: var(--sans);
  font-size: 19px;
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
}
@media (max-width: 600px) { body { font-size: 18px; } }
img { max-width: 100%; height: auto; }
a { color: var(--navy); }
a:hover { color: var(--navy-deep); }
:focus-visible { outline: 3px solid var(--teal-dark); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { margin: 0; }
p { margin: 0; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section--tint { background: var(--tint); }
.section--navy { background: var(--navy); color: #FFFFFF; }
@media (max-width: 700px) { .section { padding: 64px 0; } }

.skip { position: absolute; left: -999px; top: 8px; background: #FFF; padding: 10px 16px; z-index: 100; }
.skip:focus { left: 8px; }

.eyebrow { font-size: 0.85em; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; color: var(--teal-dark); }
.section--navy .eyebrow { color: var(--teal); }
.h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(2.1rem, 5vw, 3.4em); line-height: 1.08; color: var(--navy); }
.h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(1.8rem, 4vw, 2.4em); line-height: 1.15; color: var(--navy); }
.section--navy .h1, .section--navy .h2 { color: #FFFFFF; }
.lead { font-size: 1.15em; color: var(--body); }
.section--navy .lead { color: var(--on-dark); }
.stack { display: flex; flex-direction: column; gap: 14px; }
.stack-lg { display: flex; flex-direction: column; gap: 36px; }
.row { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.row > .grow { flex: 1 1 460px; min-width: 0; }
.head { display: flex; flex-direction: column; gap: 10px; max-width: 760px; }
.head-row { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: flex-end; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 24px; border-radius: 10px; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; border: 2px solid transparent; }
.btn--primary { background: var(--navy); color: #FFFFFF; }
.btn--primary:hover { background: var(--navy-deep); color: #FFFFFF; }
.btn--outline { background: #FFFFFF; color: var(--navy); border-color: var(--navy); }
.btn--teal { background: var(--teal); color: var(--navy-deep); }
.btn--teal:hover { color: var(--navy-deep); filter: brightness(1.05); }
.btn--ghost { background: transparent; color: #FFFFFF; border-color: #FFFFFF; }
.btn--ghost:hover { color: #FFFFFF; background: rgba(255,255,255,0.08); }
.btn--lg { font-size: 1.1em; padding: 16px 28px; }
.btns { display: flex; flex-wrap: wrap; gap: 14px; }
.link { font-weight: 700; padding: 10px 0; display: inline-block; }

/* Top bar + header */
.topbar { background: var(--navy-deep); color: #FFFFFF; font-size: 0.85em; }
.topbar .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; align-items: center; padding-top: 10px; padding-bottom: 10px; }
.topbar a { color: #FFFFFF; font-weight: 700; text-decoration: none; }
.topbar__right { display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; }
.live { display: inline-flex; align-items: center; gap: 8px; background: var(--teal); color: var(--navy-deep) !important; padding: 6px 16px; border-radius: 999px; }
.live__dot { width: 9px; height: 9px; border-radius: 50%; background: #C8102E; }
.live--on { background: #C8102E; color: #FFFFFF !important; }
.live--on .live__dot { background: #FFFFFF; animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: 0.3; } }
@media (prefers-reduced-motion: reduce) { .live--on .live__dot { animation: none; } html { scroll-behavior: auto; } }

.header { border-bottom: 1px solid var(--line); background: #FFFFFF; }
.header .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--text); }
.brand img { width: 64px; height: 64px; display: block; }
.brand__name { font-family: var(--serif); font-weight: 700; font-size: 1.6em; line-height: 1.1; color: var(--navy); display: block; }
.brand__sub { font-size: 0.72em; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); display: block; }
.nav { display: flex; flex-wrap: wrap; gap: 6px 20px; align-items: center; font-weight: 700; font-size: 0.92em; }
.nav a { color: var(--text); text-decoration: none; padding: 10px 0; }
.nav a[aria-current="page"] { color: var(--navy); border-bottom: 3px solid var(--teal); padding-bottom: 7px; }
.nav .btn { color: #FFFFFF; padding: 12px 22px; }
.menu-btn { display: none; }
@media (max-width: 900px) {
  .menu-btn { display: inline-flex; background: #FFFFFF; border: 2px solid var(--navy); color: var(--navy); }
  .nav { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 0; }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .nav a[aria-current="page"] { padding-bottom: 14px; }
  .nav .btn { margin-top: 12px; border-bottom: 0; }
}

.banner { background: var(--teal); }
.banner .wrap { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; justify-content: center; text-align: center; padding-top: 14px; padding-bottom: 14px; color: var(--navy-deep); font-weight: 700; }
.banner a { color: var(--navy-deep); }

/* Hero */
.hero { background: var(--tint); padding: 80px 0; }
.hero__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 18px; box-shadow: 0 18px 40px rgba(38, 46, 75, 0.18); display: block; }
@media (max-width: 700px) { .hero { padding: 48px 0; } }

/* Trust strip */
.trust { border-bottom: 1px solid var(--line); }
.trust .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 24px; padding-top: 36px; padding-bottom: 36px; }
.stat { border-top: 4px solid var(--teal); padding-top: 14px; display: flex; flex-direction: column; gap: 4px; }
.stat strong { font-family: var(--serif); font-size: 2em; color: var(--navy); line-height: 1.15; }
.stat span { color: var(--muted); }

/* Founder note */
.note__photo { flex: 0 1 340px; margin: 0 auto; }
.note__photo img { width: 100%; max-width: 320px; aspect-ratio: 1; object-fit: cover; border-radius: 24px; box-shadow: 18px 18px 0 var(--teal); display: block; }
.note__body { font-family: var(--serif); font-size: 1.15em; line-height: 1.65; color: var(--body); }
.signature { font-family: var(--script); font-size: 3em; line-height: 1.1; color: var(--navy); }

/* Cards */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.card { border: 1px solid var(--line); border-radius: 16px; padding: 32px; display: flex; flex-direction: column; gap: 14px; background: #FFFFFF; }
.card h3 { font-family: var(--serif); font-size: 1.6em; font-weight: 600; color: var(--navy); }
.card ul { margin: 0; padding-left: 1.2em; color: var(--body); display: flex; flex-direction: column; gap: 6px; }
.card .link { margin-top: auto; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 32px; }
.steps li { display: flex; flex-direction: column; gap: 10px; }
.steps__num { width: 52px; height: 52px; border-radius: 50%; background: var(--navy); color: #FFF; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.3em; }
.steps h3 { font-size: 1.35em; color: var(--navy); }

/* Radio */
.player { border-radius: 14px; overflow: hidden; background: #FFFFFF; }
.player iframe { display: block; width: 100%; border: 0; }

/* Event cards (homepage preview) */
.ecard { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; background: #FFF; }
.ecard__date { background: var(--navy); color: #FFF; padding: 18px 24px; display: flex; gap: 14px; align-items: baseline; flex-wrap: wrap; }
.ecard__day { font-family: var(--serif); font-size: 2em; font-weight: 700; }
.ecard__when { font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--teal); }
.ecard__body { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.ecard__body h3 { font-size: 1.3em; color: var(--navy); }
.ecard__body p { color: var(--muted); }
.ecard__body .link { margin-top: auto; }

/* Event rows (events page) */
.erow { display: flex; flex-wrap: wrap; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: #FFF; }
.erow__date { flex: 1 0 150px; max-width: 100%; background: var(--navy); color: #FFF; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 24px 12px; text-align: center; }
.erow__mon { color: var(--teal); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.erow__day { font-family: var(--serif); font-size: 2.6em; font-weight: 700; line-height: 1; }
.erow__dow { color: var(--on-dark); }
.erow__body { flex: 999 1 460px; min-width: 0; padding: 28px 32px; display: flex; flex-direction: column; gap: 10px; }
.erow__body h3 { font-family: var(--serif); font-size: 1.6em; font-weight: 600; color: var(--navy); }
.tag { align-self: flex-start; background: var(--tint); color: #24564F; font-weight: 700; font-size: 0.8em; letter-spacing: 0.06em; text-transform: uppercase; padding: 4px 12px; border-radius: 999px; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 24px; color: var(--body); font-weight: 700; }
.meta span { display: inline-flex; align-items: center; gap: 8px; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { font: inherit; font-weight: 700; font-size: 0.9em; padding: 10px 18px; min-height: 44px; border-radius: 999px; border: 2px solid var(--navy); background: #FFF; color: var(--navy); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--navy); color: #FFF; }
.empty { padding: 32px; border: 2px dashed var(--line); border-radius: 18px; text-align: center; color: var(--body); }

/* Memories */
.memories { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 40px 32px; }
.polaroid { margin: 0; background: #FFF; padding: 14px 14px 20px; border-radius: 6px; box-shadow: 0 10px 28px rgba(38, 46, 75, 0.14); display: flex; flex-direction: column; gap: 10px; }
.polaroid:nth-child(4n+1) { transform: rotate(-1.2deg); }
.polaroid:nth-child(4n+2) { transform: rotate(0.8deg); }
.polaroid:nth-child(4n+3) { transform: rotate(-0.6deg); }
.polaroid:nth-child(4n) { transform: rotate(1deg); }
@media (prefers-reduced-motion: reduce) { .polaroid { transform: none !important; } }
.fill { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 4px; background: var(--navy); display: block; width: 100%; padding: 0; border: 0; cursor: pointer; }
.fill__bg { position: absolute; inset: -24px; width: calc(100% + 48px); height: calc(100% + 48px); object-fit: cover; filter: blur(18px) brightness(0.85); }
.fill__img { position: relative; display: block; width: 100%; height: 100%; object-fit: contain; }
.fill__count, .fill__badge { position: absolute; background: rgba(27, 33, 56, 0.82); color: #FFF; font-size: 0.8em; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.fill__count { right: 8px; bottom: 8px; }
.fill__badge { left: 8px; top: 8px; background: #FFF; color: var(--navy); letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.75em; }
.thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.thumb { position: relative; aspect-ratio: 1; overflow: hidden; border-radius: 3px; padding: 0; border: 0; cursor: pointer; background: var(--navy); }
.thumb img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.thumb__more { position: absolute; inset: 0; background: rgba(27, 33, 56, 0.6); color: #FFF; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.polaroid figcaption { display: flex; flex-direction: column; gap: 4px; }
.polaroid figcaption strong { color: var(--navy); }
.polaroid figcaption span { color: var(--muted); font-size: 0.9em; }

/* Video */
.video { flex: 1 1 520px; min-width: 0; aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden; background: var(--navy); box-shadow: 0 18px 40px rgba(38, 46, 75, 0.2); }
.video iframe { width: 100%; height: 100%; border: 0; display: block; }

/* Team */
.team { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 28px 20px; }
.member { font: inherit; color: inherit; background: transparent; border: 0; border-radius: 18px; padding: 10px 6px 14px; display: flex; flex-direction: column; gap: 6px; align-items: center; text-align: center; }
button.member { cursor: pointer; }
button.member:hover { background: #FFFFFF; }
.member img { width: 156px; height: 156px; border-radius: 50%; object-fit: cover; border: 4px solid #FFF; box-shadow: 0 0 0 2px var(--teal); margin-bottom: 8px; }
.member strong { font-size: 1.1em; color: var(--navy); }
.member span { color: var(--muted); font-size: 0.92em; }
.member em { font-style: normal; color: var(--teal-dark); font-weight: 700; font-size: 0.88em; }
.group-photo { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; object-position: 50% 55%; border-radius: 18px; box-shadow: 0 18px 40px rgba(38, 46, 75, 0.16); display: block; }

/* Sponsors */
.sponsors { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 14px; }
.sponsor { width: 100%; height: 110px; border-radius: 12px; display: flex; align-items: center; justify-content: center; padding: 12px; font: inherit; cursor: pointer; border: 1px solid var(--line); background: #FFF; }
.sponsor img { max-width: 100%; max-height: 100%; object-fit: contain; }
.sponsor:hover { box-shadow: 0 6px 18px rgba(38, 46, 75, 0.12); }

/* Honorees */
.honorees { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.honoree { background: #FFF; border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 6px 20px rgba(38, 46, 75, 0.08); }
.honoree img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.honoree div { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 6px; }
.honoree small { color: var(--teal-dark); font-weight: 700; font-size: 0.85em; letter-spacing: 0.06em; text-transform: uppercase; }
.honoree strong { font-size: 1.15em; color: var(--navy); }
.honoree b { font-family: var(--serif); font-size: 1.4em; color: var(--navy); }
.total { background: var(--navy); color: #FFF; border-radius: 24px; padding: 44px 40px; display: flex; flex-direction: column; gap: 10px; box-shadow: 18px 18px 0 var(--teal); }
.total__num { font-family: var(--serif); font-size: clamp(3rem, 8vw, 4.4em); font-weight: 700; line-height: 1; }

/* Forms */
.form { border: 1px solid var(--line); border-radius: 16px; padding: 32px; display: flex; flex-direction: column; gap: 18px; background: #FFF; }
.form label { display: flex; flex-direction: column; gap: 6px; font-weight: 700; }
.form input[type=text], .form input[type=email], .form input[type=tel], .form select, .form textarea { font: inherit; font-weight: 400; padding: 14px; border: 2px solid var(--input); border-radius: 8px; background: #FFF; min-width: 0; width: 100%; }
.form fieldset { margin: 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: 8px; }
.form legend { font-weight: 700; margin-bottom: 6px; padding: 0; }
.form .check { flex-direction: row; align-items: center; gap: 10px; font-weight: 400; min-height: 36px; }
.form .check input { width: 22px; height: 22px; accent-color: var(--navy); }
.two { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.small { font-size: 0.85em; color: var(--muted); }
.zoho { width: 100%; border: 0; border-radius: 16px; background: #FFF; display: block; }

/* Footer */
.footer { background: var(--navy); color: var(--on-dark); padding: 64px 0 40px; font-size: 0.9em; }
.footer a { color: #FFFFFF; }
.footer__top { display: flex; flex-wrap: wrap; gap: 32px 64px; justify-content: space-between; align-items: center; }
.footer__brand { display: flex; align-items: center; gap: 18px; }
.footer__brand img { width: 160px; height: 160px; display: block; }
.footer__tag { font-family: var(--serif); font-style: italic; color: var(--teal); font-size: 1.15em; }
.footer__nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 40px; }
.footer__legal { border-top: 1px solid #3B4569; margin-top: 36px; padding-top: 24px; display: flex; flex-direction: column; gap: 12px; line-height: 1.6; font-size: 0.9em; }

/* Dialogs (team bios, sponsors, photo albums) */
dialog { border: 0; padding: 0; border-radius: 22px; width: min(860px, calc(100vw - 32px)); max-height: calc(100vh - 48px); box-shadow: 0 30px 80px rgba(27, 33, 56, 0.35); color: var(--text); }
dialog::backdrop { background: rgba(27, 33, 56, 0.62); }
.dlg { position: relative; padding: 44px 40px 36px; display: flex; flex-wrap: wrap; gap: 28px; }
@media (max-width: 600px) { .dlg { padding: 56px 22px 28px; } }
.dlg__close { position: absolute; top: 14px; right: 14px; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--tint); color: var(--navy); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.dlg__photo { flex: 0 0 200px; margin: 0 auto; }
.dlg__photo img { width: 200px; height: 200px; border-radius: 50%; object-fit: cover; border: 5px solid #FFF; box-shadow: 0 0 0 3px var(--teal); display: block; }
.dlg__text { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.dlg__text h3 { font-family: var(--serif); font-weight: 600; font-size: 1.9em; line-height: 1.15; color: var(--navy); }
.dlg__role { color: var(--teal-dark); font-weight: 700; }
.dlg__logo { width: 100%; max-width: 320px; height: 130px; margin: 0 auto; border-radius: 14px; display: flex; align-items: center; justify-content: center; padding: 16px; border: 1px solid var(--line); }
.dlg__logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.dialog--sponsor { width: min(620px, calc(100vw - 32px)); }
.dialog--sponsor .dlg { flex-direction: column; flex-wrap: nowrap; }
.dialog--album { width: min(1000px, calc(100vw - 24px)); background: #111522; color: #FFF; }
.album { padding: 56px 20px 20px; display: flex; flex-direction: column; gap: 12px; align-items: center; }
.album img { max-width: 100%; max-height: calc(100vh - 220px); object-fit: contain; border-radius: 6px; }
.album__bar { display: flex; gap: 12px; align-items: center; justify-content: center; }
.album__bar button { min-height: 48px; min-width: 48px; border-radius: 999px; border: 2px solid #FFF; background: transparent; color: #FFF; font: inherit; font-weight: 700; padding: 0 18px; cursor: pointer; }
.album p { color: #D6DAE6; text-align: center; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
