/* ==========================================================================
   New Hanover High School Class of 1976 — 50th Reunion Stylesheet
   Design System: Senior-Friendly WCAG AAA High-Contrast (20px base body)
   Brand Palette: NHHS Wildcats Orange (#fb6400) & Obsidian Black (#0d0d0d)
   ========================================================================== */

:root {
  --black-deep: #0d0d0d;
  --black: #18181b;
  --charcoal: #27272a;
  --orange-bright: #fb6400;
  --orange-deep: #c75000;
  --orange-tint: #fff5ee;
  --orange-border: #fed7aa;
  --gold-accent: #fb6400;
  --ink: #141417;
  --muted: #52525b;
  --cloud: #faf7f5;
  --line: #e4e4e7;
  --white: #ffffff;
  --success: #15803d;
  --warning-bg: #fffbeb;
  --warning-border: #d97706;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.12);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  margin: 0;
  font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 1.25rem; /* 20px senior-friendly baseline */
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
}

/* Accessibility Skip Link */
.skip {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--orange-bright);
  color: var(--black-deep);
  font-weight: 700;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  z-index: 9999;
  text-decoration: none;
}
.skip:focus {
  top: 16px;
  outline: 4px solid var(--white);
}

/* Placeholder Notice Bar */
.placeholder-bar {
  background: var(--warning-bg);
  border-bottom: 2px solid var(--warning-border);
  color: var(--ink);
  font-size: 1rem;
  padding: 10px 20px;
}
.placeholder-bar-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.placeholder-badge {
  display: inline-block;
  background: #fef3c7;
  color: #92400e;
  border: 1px dashed #d97706;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  vertical-align: middle;
  margin-left: 6px;
  letter-spacing: 0.02em;
}
body.hide-placeholders .placeholder-badge {
  display: none;
}

/* Layout Containers */
.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 22px;
}

.section {
  padding: 80px 0;
}

.section.alt {
  background-color: var(--cloud);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* Typography */
h1, h2, h3, h4 {
  font-family: 'Poppins', sans-serif;
  color: var(--black-deep);
  margin-top: 0;
  line-height: 1.15;
}

h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 18px;
}

h2 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 14px;
}

h3 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 48px;
}

.kicker {
  display: inline-block;
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--orange-deep);
  margin-bottom: 8px;
}

.muted {
  color: var(--muted);
}

/* Sticky Navigation Header */
header.nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--line);
}

.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 12px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--black-deep);
}

.brand svg,
.brand img,
.brand-logo {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: contain;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 1.05rem;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  transition: background-color 0.15s, color 0.15s;
}

.nav-links a:hover,
.nav-links a.active {
  background-color: var(--orange-tint);
  color: var(--black-deep);
}

.nav-links a.cta {
  background-color: var(--orange-bright);
  color: var(--black-deep);
  font-weight: 700;
  padding: 12px 22px;
  border-radius: 999px;
  margin-left: 6px;
}

.nav-links a.cta:hover {
  background-color: var(--black-deep);
  color: var(--white);
}

.menu-toggle {
  display: none;
  background: var(--black-deep);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  padding: 12px 18px;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
}

/* Hero Section */
.hero {
  position: relative;
  background-color: var(--black-deep);
  background-image: 
    linear-gradient(180deg, rgba(13, 13, 13, 0.72) 0%, rgba(13, 13, 13, 0.90) 100%),
    url('images/nhhs-campus-backdrop.jpg');
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  color: var(--white);
  padding: 84px 0 92px;
  text-align: center;
  border-bottom: 6px solid var(--orange-bright);
}

.hero-seal,
.hero-crest {
  width: 140px;
  height: 140px;
  margin: 0 auto 24px;
  display: block;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.55));
}

.hero .kicker {
  color: var(--orange-bright);
  font-size: 1.1rem;
}

.hero h1 {
  color: var(--white);
  max-width: 840px;
  margin: 8px auto 20px;
}

.hero .lede {
  font-size: 1.35rem;
  color: #e4e4e7;
  max-width: 720px;
  margin: 0 auto 32px;
}

.date-pill {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 16px;
  background: rgba(251, 100, 0, 0.14);
  border: 2px solid var(--orange-bright);
  color: var(--white);
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1.15rem;
  margin-bottom: 36px;
}

.date-pill-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.date-pill-dot {
  color: var(--orange-bright);
  opacity: 0.8;
  user-select: none;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

/* Buttons (56px-64px Senior Tap Targets) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 58px;
  padding: 14px 30px;
  border-radius: 999px;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.btn:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
button:focus-visible {
  outline: 4px solid var(--orange-bright);
  outline-offset: 3px;
}

.btn-primary {
  background-color: var(--orange-bright);
  color: var(--black-deep);
}

.btn-primary:hover {
  background-color: #ff771a;
  transform: translateY(-1px);
}

.btn-dark {
  background-color: var(--black-deep);
  color: var(--white);
}

.btn-dark:hover {
  background-color: var(--orange-deep);
  color: var(--white);
}

.btn-ghost {
  background-color: transparent;
  border-color: var(--orange-border);
  color: var(--white);
}

.btn-ghost:hover {
  background-color: rgba(255, 255, 255, 0.12);
}

.btn-outline {
  background-color: var(--white);
  border-color: var(--black-deep);
  color: var(--black-deep);
}

.btn-outline:hover {
  background-color: var(--orange-tint);
  border-color: var(--orange-deep);
  color: var(--orange-deep);
}

/* Grid Systems */
.grid {
  display: grid;
  gap: 24px;
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

/* Cards */
.card {
  background: var(--white);
  border: 2px solid var(--line);
  border-radius: var(--radius-md);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.card a {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--orange-tint);
  color: var(--orange-deep);
  font-size: 1.6rem;
  margin-bottom: 16px;
}

.card-icon svg {
  width: 28px;
  height: 28px;
}

.card-link {
  display: inline-block;
  margin-top: 14px;
  color: var(--orange-deep);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Schedule Timeline */
.schedule-card {
  max-width: 820px;
  margin: 0 auto;
  background: var(--white);
  border: 2px solid var(--line);
  border-radius: var(--radius-md);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}

.schedule-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.schedule-item {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

.schedule-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.schedule-time {
  display: inline-block;
  background: var(--black-deep);
  color: var(--orange-bright);
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 8px 16px;
  border-radius: 999px;
  text-align: center;
}

/* Hotel Block Card */
.hotel-card {
  margin-top: 32px;
  background: linear-gradient(135deg, #fff9f5 0%, var(--white) 100%);
  border: 2px solid var(--orange-border);
  border-radius: var(--radius-md);
  padding: 34px;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 28px;
  align-items: center;
}

.code-box {
  background: var(--white);
  border: 2px dashed var(--orange-deep);
  border-radius: var(--radius-sm);
  padding: 18px;
  text-align: center;
}

.code-value {
  display: block;
  font-family: monospace;
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--black-deep);
  letter-spacing: 0.08em;
  margin: 6px 0 12px;
}

/* Activity List */
.activities-box {
  margin-top: 32px;
  background: var(--cloud);
  border: 2px solid var(--line);
  border-radius: var(--radius-md);
  padding: 30px;
}

.activity-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 28px;
  margin: 16px 0 0;
  padding-left: 22px;
}

/* Ticket Pricing Cards */
.ticket-card {
  background: var(--white);
  border: 2px solid var(--line);
  border-radius: var(--radius-md);
  padding: 34px 28px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}


.price-hero {
  font-family: 'Poppins', sans-serif;
  font-size: 3rem;
  font-weight: 700;
  color: var(--black-deep);
  line-height: 1;
  margin: 16px 0 8px;
}

.price-sub {
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: 20px;
}

.ticket-features {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  text-align: left;
}

.ticket-features li {
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 10px;
}

.ticket-features li::before {
  content: "✓";
  color: var(--orange-deep);
  font-weight: 700;
}

/* Mail-in Check Box */
.mail-card {
  max-width: 820px;
  margin: 0 auto;
  background: var(--orange-tint);
  border: 2px solid var(--orange-border);
  border-radius: var(--radius-md);
  padding: 38px;
  text-align: center;
}

.address-pill {
  display: inline-block;
  background: var(--white);
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px 28px;
  margin: 18px 0 26px;
  font-weight: 600;
  text-align: left;
}

/* In Memoriam Grid */
.memoriam-controls {
  max-width: 520px;
  margin: 0 auto 30px;
}

.search-input {
  width: 100%;
  min-height: 56px;
  padding: 12px 20px;
  font-size: 1.15rem;
  border: 2px solid var(--line);
  border-radius: 999px;
  font-family: inherit;
}

.memoriam-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.memorial-card {
  background: var(--white);
  border: 2px solid var(--line);
  border-top: 5px solid var(--black-deep);
  border-radius: var(--radius-sm);
  padding: 22px;
  text-align: center;
}

.memorial-candle {
  font-size: 1.6rem;
  margin-bottom: 6px;
}

.memorial-name {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 4px;
}

/* Yearbook Gallery Viewer */
.viewer {
  max-width: 900px;
  margin: 0 auto;
  background: var(--white);
  border: 2px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.viewer-stage {
  position: relative;
  background: var(--black-deep);
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.viewer-stage img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  cursor: zoom-in;
}

.viewer-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 18px;
  gap: 10px 12px;
}

#vCount {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  color: var(--black-deep);
  text-align: center;
}

.v-btn {
  min-height: 54px;
  padding: 10px 22px;
  background: var(--black-deep);
  color: var(--white);
  border: none;
  border-radius: 999px;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
}

.v-btn:hover {
  background: var(--orange-bright);
  color: var(--black-deep);
}

.thumbs {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 16px 4px 6px;
  margin-top: 14px;
}

.thumb-btn {
  border: 3px solid transparent;
  border-radius: 8px;
  padding: 0;
  background: var(--black-deep);
  cursor: pointer;
  flex: 0 0 110px;
  height: 72px;
  overflow: hidden;
}

.thumb-btn.active {
  border-color: var(--orange-bright);
}

.thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Contact Section */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 32px;
  align-items: start;
}

/* Forms & Modals */
.form-group {
  margin-bottom: 20px;
  text-align: left;
}

.form-group label {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--black-deep);
}

.form-control {
  width: 100%;
  min-height: 56px;
  padding: 12px 16px;
  font-size: 1.15rem;
  font-family: inherit;
  border: 2px solid #a1a1aa;
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink);
}

textarea.form-control {
  min-height: 110px;
  resize: vertical;
}

/* Modal Overlay */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(13, 13, 13, 0.78);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 2000;
  overflow-y: auto;
}

.modal.open {
  display: flex;
}

.modal-dialog {
  background: var(--white);
  border-radius: var(--radius-md);
  max-width: 720px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 34px;
  box-shadow: var(--shadow-md);
  position: relative;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--line);
  padding-bottom: 16px;
  margin-bottom: 24px;
}

.modal-close {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--line);
  background: var(--white);
  font-size: 1.6rem;
  font-weight: 700;
  cursor: pointer;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.choice-label {
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px 12px;
  text-align: center;
  cursor: pointer;
  display: block;
}

.choice-label.selected {
  border-color: var(--orange-bright);
  background: var(--orange-tint);
}

.choice-label input {
  margin-right: 6px;
  transform: scale(1.3);
}

.order-summary {
  background: var(--cloud);
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 20px;
  margin: 22px 0;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 1.2rem;
  padding: 6px 0;
}

.summary-total {
  border-top: 2px solid var(--line);
  margin-top: 10px;
  padding-top: 12px;
  font-weight: 700;
  font-size: 1.45rem;
  color: var(--black-deep);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 3000;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: 92vw;
  max-height: 78vh;
  border-radius: 8px;
}

.lightbox-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 18px;
  max-width: 92vw;
}

/* Footer */
footer {
  background: var(--black-deep);
  color: #e4e4e7;
  text-align: center;
  padding: 56px 22px;
  border-top: 5px solid var(--orange-bright);
}

footer a {
  color: var(--orange-bright);
  font-weight: 700;
}

/* Responsive Breakpoints (960px / 880px / 768px / 680px) */
@media (max-width: 960px) {
  .menu-toggle {
    display: inline-flex;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 18px;
    border-bottom: 3px solid var(--orange-bright);
    box-shadow: var(--shadow-md);
  }
  .nav-links.show {
    display: flex;
  }
  .nav-links a {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 880px) {
  .grid-3,
  .grid-2,
  .hotel-card,
  .contact-grid,
  .memoriam-grid {
    grid-template-columns: 1fr;
    max-width: 580px;
    margin-left: auto;
    margin-right: auto;
  }
  .activity-list {
    grid-template-columns: 1fr;
  }
  .choice-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .date-pill {
    flex-direction: column;
    border-radius: 18px;
    padding: 16px 20px;
    gap: 10px;
  }
  .date-pill-dot {
    display: none;
  }
}

@media (max-width: 680px) {
  body {
    font-size: 1.125rem; /* 18px mobile senior baseline */
  }
  h1 {
    font-size: 2.3rem;
  }
  h2 {
    font-size: 1.8rem;
  }
  .section {
    padding: 54px 0;
  }
  .schedule-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  #vCount {
    width: 100%;
    order: -1;
    margin-bottom: 4px;
  }
}

@media (max-width: 480px) {
  .wrap {
    padding: 0 16px;
  }
  .card {
    padding: 20px 16px;
  }
  .viewer {
    padding: 16px 12px;
  }
  .lightbox {
    padding: 16px 10px;
  }
  .v-btn {
    padding: 10px 16px;
    font-size: 0.95rem;
  }
}
