/* ============================================================
   Point Grey Secondary · Class of 1977 · 50th Reunion
   Palette: school blue & grey
   ============================================================ */
:root {
  --blue:        #103f7d;   /* deep school blue */
  --blue-dark:   #0a2c59;
  --blue-bright: #1f5fa8;   /* crest blue */
  --gold:        #c9a227;   /* warm accent */
  --gold-light:  #e5c45e;
  --grey:        #5b6470;
  --grey-light:  #eef1f5;
  --grey-mid:    #d7dde5;
  --ink:         #1c2530;
  --paper:       #ffffff;
  --cream:       #f7f8fa;

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  /* Real Eurostile if installed locally, else the free Michroma look-alike */
  --eurostile: "Eurostile", "Michroma", "Inter", sans-serif;

  --maxw: 1120px;
  --shadow: 0 10px 30px rgba(16, 63, 125, 0.10);
  --shadow-lg: 0 20px 50px rgba(10, 44, 89, 0.22);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

/* Deter casual saving of photos (drag / long-press). Screenshots can't be blocked. */
.gallery__item img,
.lightbox__img,
.reunion__photo img,
.memoriam-poster img {
  -webkit-user-drag: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

html { scroll-behavior: smooth; scroll-padding-top: 76px; }

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

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

/* ---------- Layout helpers ---------- */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 760px; }

.section { padding: 92px 0; }
.section--blue   { background: var(--blue); color: #fff; }
.section--grey   { background: var(--grey-light); }
.section--memoriam { background: linear-gradient(180deg, #2a323d 0%, #1c2530 100%); color: #e9edf2; }

.section__eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 10px;
}
.section__eyebrow--light { color: var(--gold-light); }

.section__title {
  font-family: var(--serif);
  font-size: clamp(2.1rem, 5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.05;
  color: var(--blue);
  margin-bottom: 22px;
}
.section--blue .section__title,
.section__title--light { color: #fff; }
.soon-tag {
  font-family: var(--sans);
  font-size: 0.42em;
  font-weight: 600;
  color: var(--gold-light);
  vertical-align: middle;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.section__intro {
  max-width: 640px;
  font-size: 1.08rem;
  color: inherit;
  opacity: 0.92;
  margin-bottom: 40px;
}
.section--blue .section__intro { color: #dce6f3; opacity: 1; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 30px;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  font-family: inherit;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--gold {
  background: var(--gold);
  color: #2a2200;
  box-shadow: 0 8px 22px rgba(201, 162, 39, 0.35);
}
.btn--gold:hover { background: var(--gold-light); }
.btn--blueline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.6);
}
.btn--blueline:hover { background: #fff; color: var(--blue); }

/* ============================================================
   REGISTRATION GATE
   ============================================================ */
/* When the site is locked, hide the members-only area and the section menu. */
body.locked #memberArea { display: none; }
body.locked #navLinks,
body.locked .nav__toggle { display: none; }
.hero__cta { max-width: 520px; line-height: 1.3; cursor: pointer; }

.modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(8, 20, 38, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal.is-open { display: flex; }
.modal__box {
  background: #fff;
  color: var(--ink);
  width: 100%;
  max-width: 440px;
  border-radius: 16px;
  padding: 38px 32px 26px;
  position: relative;
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.modal__crest { width: 72px; height: 72px; margin: 0 auto 12px; }
.modal__title { font-family: var(--serif); color: var(--blue); font-size: 1.9rem; margin-bottom: 8px; }
.modal__intro { color: var(--grey); margin-bottom: 22px; font-size: 0.98rem; }
.modal__form { text-align: left; display: flex; flex-direction: column; gap: 14px; }
.modal__form label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.modal__form input {
  font-family: var(--sans);
  font-size: 1rem;
  padding: 12px 14px;
  border: 1px solid var(--grey-mid);
  border-radius: 9px;
  width: 100%;
}
.modal__form input:focus { outline: 2px solid var(--blue-bright); border-color: var(--blue-bright); }
.modal__submit { margin-top: 6px; width: 100%; border: 0; cursor: pointer; }
.modal__error { color: #c0392b; font-size: 0.88rem; margin: -4px 0 0; }
.modal__note { margin-top: 16px; font-size: 0.8rem; color: var(--grey); }
.modal__close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: 0;
  font-size: 1.9rem;
  line-height: 1;
  color: var(--grey);
  cursor: pointer;
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 24px;
  background: rgba(255,255,255,0.96);
  backdrop-filter: saturate(140%) blur(8px);
  box-shadow: 0 2px 14px rgba(16,63,125,0.08);
}
.nav__brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.nav__crest { width: 42px; height: 42px; object-fit: contain; }
.nav__brandtext { display: flex; flex-direction: column; line-height: 1.15; }
.nav__brandtext strong { font-family: var(--serif); font-size: 1.18rem; color: var(--blue); font-weight: 700; }
.nav__brandtext small { font-size: 0.72rem; letter-spacing: 0.04em; color: var(--grey); }

.nav__links { display: flex; gap: 26px; }
.nav__links a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
}
.nav__links a:hover { color: var(--blue); border-color: var(--gold); }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav__toggle span { width: 26px; height: 3px; background: var(--blue); border-radius: 2px; transition: .25s; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  background:
    radial-gradient(circle at 50% 30%, rgba(31,95,168,0.55), transparent 60%),
    linear-gradient(160deg, var(--blue) 0%, var(--blue-dark) 100%);
  color: #fff;
  overflow: hidden;
}
.hero__overlay {
  position: absolute; inset: 0;
  background-image: url("../images/gradclass.jpg");
  background-size: cover;
  background-position: center;
  opacity: 0.12;
  mix-blend-mode: luminosity;
}
.hero__inner { position: relative; z-index: 2; max-width: 760px; }
.hero__crest {
  width: 150px; height: 150px;
  margin: 0 auto 26px;
  object-fit: contain;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,0.35));
  background: #fff;
  border-radius: 50%;
  padding: 6px;
}
.hero__eyebrow {
  font-family: var(--eurostile);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--gold-light);
  margin-bottom: 16px;
}
.hero__title {
  font-family: var(--eurostile);
  font-weight: 400;
  font-size: clamp(2.3rem, 7.2vw, 4.6rem);
  line-height: 1.08;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.hero__subtitle {
  font-family: var(--eurostile);
  font-size: clamp(1.3rem, 3.4vw, 2rem);
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin: 10px 0 30px;
}
.hero__subtitle sup { font-size: 0.55em; }
.hero__savedate {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: fit-content;
  padding: 14px 28px;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 12px;
  margin: 0 auto 28px;
  backdrop-filter: blur(4px);
  background: rgba(255,255,255,0.06);
}
.hero__savedate span {
  font-family: var(--eurostile);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--gold-light);
}
.hero__savedate em { font-style: normal; font-size: 1.1rem; color: #eaf1fb; }
.hero__scroll {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  font-size: 1.6rem; color: rgba(255,255,255,0.7);
  animation: bob 1.8s ease-in-out infinite;
}
@keyframes bob { 0%,100%{ transform: translate(-50%,0);} 50%{ transform: translate(-50%,8px);} }

/* ============================================================
   COMMITTEE NOTICE
   ============================================================ */
.committee { background: var(--blue); color: #fff; padding: 38px 0; }
.committee__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}
.committee__text { max-width: 780px; }
.committee__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gold-light);
  margin-bottom: 8px;
}
.committee__title {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 3vw, 2rem);
  line-height: 1.18;
  color: #fff;
}
.committee__sub { margin-top: 8px; color: #dce6f3; }
.committee__btn { flex-shrink: 0; }
@media (max-width: 700px) {
  .committee__inner { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   THE REUNION
   ============================================================ */
.reunion__lead { max-width: 720px; margin-bottom: 48px; }
.reunion__lead p { font-size: 1.1rem; color: var(--grey); margin-bottom: 16px; }

.reunion__intro {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 44px;
  align-items: center;
  margin-bottom: 52px;
}
.reunion__intro .reunion__lead { margin-bottom: 0; }
.reunion__intro-media { margin: 0; }
.reunion__intro-media img { width: 100%; display: block; }

.details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-bottom: 56px;
}
.detail-card {
  background: var(--cream);
  border: 1px solid var(--grey-mid);
  border-radius: 16px;
  padding: 30px 26px;
  text-align: center;
  transition: transform .2s, box-shadow .2s;
}
.detail-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.detail-card__icon { font-size: 2rem; margin-bottom: 10px; }
.detail-card h3 {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.82rem;
  color: var(--gold);
  margin-bottom: 8px;
}
.detail-card__value { font-family: var(--serif); font-size: 1.5rem; color: var(--blue); font-weight: 600; }
.detail-card__note { font-size: 0.92rem; color: var(--grey); margin-top: 6px; }

.reunion__photo { border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); }
.reunion__photo img { width: 100%; }
.reunion__photo figcaption {
  background: var(--blue);
  color: #dce6f3;
  font-size: 0.92rem;
  text-align: center;
  padding: 12px;
  font-style: italic;
}

/* ============================================================
   RSVP
   ============================================================ */
.rsvp-box {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 18px;
  padding: 8px;
}
.rsvp-box iframe { width: 100%; border: 0; border-radius: 12px; background:#fff; display:block; }
.rsvp-box__placeholder {
  text-align: center;
  padding: 48px 28px;
}
.rsvp-box__placeholder h3 { font-family: var(--serif); font-size: 1.8rem; color: #fff; margin-bottom: 12px; }
.rsvp-box__placeholder p { color: #dce6f3; max-width: 520px; margin: 0 auto 24px; }

/* RSVP form */
.rsvp-form { display: flex; flex-direction: column; gap: 16px; padding: 28px; text-align: left; }
.rsvp-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.rsvp-form label {
  display: flex; flex-direction: column; gap: 6px;
  font-size: 0.82rem; font-weight: 600; color: #eaf1fb;
}
.rsvp-form input, .rsvp-form select, .rsvp-form textarea {
  font-family: var(--sans); font-size: 1rem;
  padding: 11px 13px; border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 9px; background: #fff; color: var(--ink); width: 100%;
}
.rsvp-form textarea { resize: vertical; }
.rsvp-form input:focus, .rsvp-form select:focus, .rsvp-form textarea:focus {
  outline: 2px solid var(--gold); border-color: var(--gold);
}
.rsvp-form .btn { align-self: flex-start; border: 0; cursor: pointer; margin-top: 4px; }
.rsvp-form__error { color: #ffd7d2; font-size: 0.9rem; margin: 0; }
.rsvp-thanks { text-align: center; padding: 44px 28px; }
.rsvp-thanks h3 { font-family: var(--serif); font-size: 1.9rem; color: #fff; margin-bottom: 8px; }
.rsvp-thanks p { color: #dce6f3; }
@media (max-width: 600px) { .rsvp-form__row { grid-template-columns: 1fr; } }

/* ============================================================
   GALLERY
   ============================================================ */
/* ---- Contact-sheet (proof-sheet) style ---- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(82px, 1fr));
  gap: 4px;
  counter-reset: frame;
  background: linear-gradient(180deg, #1e1e1e 0%, #121212 100%);
  padding: 14px;
  border-radius: 4px;
  box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(255,255,255,0.05);
}
.gallery__item {
  counter-increment: frame;
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  cursor: pointer;
  background: #0b0b0b;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 1px;
  outline: 0 solid transparent;
  outline-offset: -3px;
  transition: outline-color .12s ease;
}
.gallery__item img {
  width: 100%; height: 100%;
  object-fit: contain;
  transition: transform .3s ease;
}
/* film-edge frame number */
.gallery__item::after {
  content: counter(frame);
  position: absolute;
  left: 3px; bottom: 2px;
  font-family: "Courier New", monospace;
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #f4b23e;
  text-shadow: 0 1px 2px #000;
  background: rgba(0,0,0,0.5);
  padding: 0 4px;
  border-radius: 2px;
  pointer-events: none;
}
/* grease-pencil selection on hover */
.gallery__item:hover {
  outline: 3px solid #e8392f;
  z-index: 1;
}
.gallery__item:hover img { transform: scale(1.02); }
.gallery__count {
  text-align: center;
  color: var(--grey);
  margin-top: 18px;
  font-size: 0.9rem;
  font-family: "Courier New", monospace;
  letter-spacing: 0.04em;
}

/* ============================================================
   VIDEOS
   ============================================================ */
.videos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.video-card {
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  background: #fff;
  border: 1px dashed var(--grey-mid);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--grey);
}
.video-card__play {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--blue); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; padding-left: 4px;
}
.video-feature { max-width: 860px; margin: 0 auto; text-align: center; }
.video-feature__player {
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 0;
  border-radius: 12px;
  background: #000;
  box-shadow: var(--shadow);
  display: block;
}
.video-feature__caption {
  margin-top: 12px;
  color: var(--grey);
  font-size: 0.95rem;
  font-style: italic;
}
/* "Watch on YouTube" link card */
.video-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  text-decoration: none;
  box-shadow: var(--shadow);
}
.video-link__thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
}
.video-link__play {
  position: relative;
  z-index: 2;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: #ff0000;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  padding-left: 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  transition: transform .2s ease;
}
.video-link:hover .video-link__play { transform: scale(1.08); }
.video-link__label {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px 20px 16px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: #fff;
  font-weight: 600;
  font-size: 1.05rem;
  text-align: center;
}

/* ============================================================
   IN MEMORIAM
   ============================================================ */
.memoriam__intro {
  font-size: 1.12rem;
  color: #cfd6df;
  margin-bottom: 36px;
  font-family: var(--serif);
  font-style: italic;
}
.memoriam-list { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px,1fr)); gap: 14px; }
.memoriam-list__item {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: 18px 20px;
  text-align: center;
}
.memoriam-list__item strong { font-family: var(--serif); font-size: 1.2rem; color: #fff; display:block; }
.memoriam-list__item span { color: #aeb7c2; font-size: 0.95rem; }
.memoriam-list__item--placeholder { grid-column: 1 / -1; font-style: italic; }
.memoriam-poster { max-width: 540px; margin: 4px auto 0; text-align: center; }
.memoriam-poster a { display: block; }
.memoriam-poster img {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 22px 55px rgba(0,0,0,0.55);
  transition: transform .25s ease;
}
.memoriam-poster a:hover img { transform: scale(1.01); }
.memoriam-poster__cap {
  margin-top: 14px;
  font-size: 0.85rem;
  color: #aeb7c2;
  font-style: italic;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-card { text-align: center; padding-top: 10px; }
.contact-card__note { color: var(--grey); font-size: 0.9rem; margin-top: 18px; }
.contact-card__note code { background: var(--grey-light); padding: 2px 6px; border-radius: 5px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--blue-dark);
  color: #cdd9ea;
  text-align: center;
  padding: 50px 24px;
}
.footer__crest { width: 64px; height: 64px; margin: 0 auto 16px; background:#fff; border-radius:50%; padding:5px; }
.footer__motto { font-family: var(--serif); font-style: italic; font-size: 1.3rem; color: var(--gold-light); margin-bottom: 10px; letter-spacing: 0.04em; }
.footer__line { font-size: 0.92rem; opacity: 0.85; }
.footer__line--small { font-size: 0.82rem; opacity: 0.6; margin-top: 6px; }

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(8, 20, 38, 0.94);
  display: none;
  align-items: center; justify-content: center;
}
.lightbox.is-open { display: flex; }
.lightbox__img {
  max-width: 96vw; max-height: 94vh;
  border-radius: 4px;
  box-shadow: var(--shadow-lg);
}
.lightbox__close, .lightbox__nav {
  position: absolute;
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: none;
  cursor: pointer;
  border-radius: 50%;
  transition: background .2s;
}
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255,255,255,0.28); }
.lightbox__close { top: 22px; right: 24px; width: 48px; height: 48px; font-size: 2rem; line-height: 1; }
.lightbox__nav { top: 50%; transform: translateY(-50%); width: 56px; height: 56px; font-size: 2.4rem; line-height: 1; }
.lightbox__nav--prev { left: 18px; }
.lightbox__nav--next { right: 18px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 820px) {
  .nav__toggle { display: flex; }
  .nav__links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: #fff;
    box-shadow: 0 12px 24px rgba(16,63,125,0.12);
    max-height: 0; overflow: hidden;
    transition: max-height .3s ease;
  }
  .nav__links.is-open { max-height: 420px; }
  .nav__links a { padding: 16px 24px; border-bottom: 1px solid var(--grey-light); }
  .details { grid-template-columns: 1fr; }
  .reunion__intro { grid-template-columns: 1fr; gap: 24px; }
  .reunion__intro-media { max-width: 360px; margin: 0 auto; }
  .section { padding: 64px 0; }
  .nav__brandtext small { display: none; }
}
@media (max-width: 480px) {
  .gallery { grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 10px; }
  .lightbox__nav { width: 44px; height: 44px; font-size: 1.8rem; }
}
