/* ============================================================
   SUHS Batch 2006 — Design overrides & new sections
   Supplements styles.css without touching it.
   ============================================================ */

/* ----------------------------------------------------------
   GLOBAL REFINEMENTS
   ---------------------------------------------------------- */

/* Subtler body background — remove the heavy red radial bleed */
body {
  background:
    linear-gradient(180deg,
      #fdf8f2 0%,
      #faf5ec 30%,
      #f7efe0 70%,
      #f4ead6 100%
    );
}

/* Quieter grid texture */
body::before {
  background-image:
    linear-gradient(rgba(35,31,32,0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(35,31,32,0.018) 1px, transparent 1px);
  mask-image: linear-gradient(180deg, black, transparent 55%);
}

/* Better system font stack */
:root {
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, Helvetica, sans-serif;
}

/* ----------------------------------------------------------
   HERO — video label
   ---------------------------------------------------------- */

.video-label {
  margin: 0.65rem 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.7;
}

/* ----------------------------------------------------------
   STATS STRIP — tightened sizing
   ---------------------------------------------------------- */

.intro-strip {
  margin-top: 0;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.intro-strip span {
  font-size: clamp(1.5rem, 3.8vw, 2.6rem);
}

.intro-strip p {
  font-size: 0.74rem;
  letter-spacing: 0.1em;
}

/* ----------------------------------------------------------
   MEDIA PANELS — replace dark gradient with clean cream
   ---------------------------------------------------------- */

/* The video frame: cream instead of near-black */
.video-frame,
.reunion-video-frame {
  background: rgba(255, 250, 240, 0.96);
  border: 1px solid rgba(35, 31, 32, 0.10);
  box-shadow: 0 24px 70px rgba(35, 31, 32, 0.10);
}

/* Remove the red/cream gradient glow ring behind the frame */
.video-frame::before,
.reunion-video-frame::before {
  content: none;
}

/* Video inner border */
.video-ratio {
  border: 1px solid rgba(35, 31, 32, 0.08);
  border-radius: 1.1rem;
  background: #1a1a1a;
}

/* Memory panel — already cream in v1-11, reinforce */
.cream-media-panel,
.cream-media-panel.memory-panel {
  background: rgba(255, 250, 240, 0.95);
  border: 1px solid rgba(35, 31, 32, 0.09);
  box-shadow: 0 20px 60px rgba(35, 31, 32, 0.09);
}

/* Photo marquee background — lighter, crisper cream */
.photo-marquee-wrap {
  background: rgba(255, 250, 240, 0.95);
  border: 1px solid rgba(35, 31, 32, 0.08);
  box-shadow: 0 20px 55px rgba(35, 31, 32, 0.07);
}

.tapok-marquee {
  background: rgba(253, 248, 242, 0.96);
}

/* ----------------------------------------------------------
   ARCHIVE TILES — cream card style, no forced gradient
   ---------------------------------------------------------- */

.archive-tile {
  background: rgba(255, 250, 240, 0.88);
  border: 1px solid rgba(35, 31, 32, 0.09);
  box-shadow: 0 16px 48px rgba(35, 31, 32, 0.07);
  min-height: 14rem;
}

.archive-tile:hover {
  background: rgba(255, 252, 245, 0.98);
  border-color: rgba(187, 16, 23, 0.2);
  box-shadow: 0 20px 60px rgba(187, 16, 23, 0.09);
}

.archive-tile strong {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  font-weight: 400;
  line-height: 1.1;
}

.archive-tile span {
  font-size: 0.88rem;
  line-height: 1.55;
}

/* ----------------------------------------------------------
   CONTRIBUTE CARD — cream, not white+grey
   ---------------------------------------------------------- */

.contribute-card {
  background: rgba(255, 250, 240, 0.9);
  border: 1px solid rgba(35, 31, 32, 0.09);
  box-shadow: 0 20px 60px rgba(35, 31, 32, 0.08);
}

.contribute-card h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.contribute-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  justify-content: center;
  align-items: flex-end;
  margin-top: 0;
}

.contribute-actions .btn.secondary {
  background: rgba(255, 255, 255, 0.6);
  white-space: nowrap;
}

/* ----------------------------------------------------------
   REUNION SECTION — replace red-to-dark gradient with
   deep Silliman Red, more composed and classic
   ---------------------------------------------------------- */

.reunions {
  background: var(--silliman-red);
  color: var(--paper);
}

.reunion-copy p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.82);
}

.timeline-item {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.timeline-item.featured {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.32);
}

/* ----------------------------------------------------------
   GATHERINGS SECTION (new)
   ---------------------------------------------------------- */

.gatherings {
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.gatherings-header {
  max-width: 640px;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

.gatherings-header h2 {
  margin: 0.4rem 0 0;
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.04em;
}

.gatherings-header p {
  margin: 0.85rem 0 0;
  color: var(--muted);
  font-size: clamp(0.95rem, 1.4vw, 1.05rem);
}

.gatherings-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1px;
  background: rgba(35, 31, 32, 0.08);
  border: 1px solid rgba(35, 31, 32, 0.08);
  border-radius: 1.75rem;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(35, 31, 32, 0.07);
}

.gathering-item {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: clamp(1rem, 3vw, 2.5rem);
  align-items: start;
  padding: clamp(1.4rem, 3vw, 2rem) clamp(1.4rem, 3vw, 2.2rem);
  background: rgba(255, 250, 240, 0.9);
  transition: background 0.2s ease;
}

.gathering-item:hover {
  background: rgba(255, 252, 246, 0.98);
}

.gathering-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
  padding-top: 0.15rem;
}

.gathering-year {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  font-weight: 400;
  line-height: 1;
  color: var(--elegant-black);
  letter-spacing: -0.02em;
}

.gathering-status {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--muted);
  opacity: 0.7;
}

.gathering-past .gathering-year {
  color: var(--muted);
}

.gathering-past .gathering-status {
  color: var(--silliman-red);
  opacity: 1;
}

.gathering-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.65rem;
  background: var(--silliman-red);
  color: var(--paper);
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gathering-future .gathering-year {
  color: rgba(35, 31, 32, 0.35);
}

.future-dot {
  color: rgba(35, 31, 32, 0.3);
}

.gathering-body strong {
  display: block;
  font-family: var(--serif);
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  font-weight: 400;
  margin-bottom: 0.35rem;
  line-height: 1.15;
}

.gathering-body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.gathering-link {
  display: inline-block;
  margin-top: 0.75rem;
  color: var(--silliman-red);
  font-size: 0.86rem;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: opacity 0.15s ease;
}

.gathering-link:hover,
.gathering-link:focus-visible {
  opacity: 0.72;
}

.gathering-future {
  opacity: 0.55;
}

.gathering-future:hover {
  opacity: 0.75;
}

/* ----------------------------------------------------------
   PRIVACY SECTION (new)
   ---------------------------------------------------------- */

.privacy-section {
  margin: clamp(1.5rem, 3vw, 2rem) auto clamp(1.5rem, 3vw, 2rem);
}

.privacy-block {
  padding: clamp(1.1rem, 2.5vw, 1.5rem) clamp(1.25rem, 3vw, 1.8rem);
  background: rgba(255, 250, 240, 0.7);
  border: 1px solid rgba(35, 31, 32, 0.08);
  border-left: 3px solid rgba(187, 16, 23, 0.3);
  border-radius: 1rem;
}

.privacy-block .eyebrow {
  margin-bottom: 0.5rem;
}

.privacy-block p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.65;
  max-width: 68ch;
}

/* ----------------------------------------------------------
   DISCLAIMER BANNER — already styled in styles.css,
   just tighten slightly
   ---------------------------------------------------------- */

.disclaimer-banner p {
  background: rgba(255, 250, 240, 0.7);
  border: 1px solid rgba(35, 31, 32, 0.08);
}

/* ----------------------------------------------------------
   SCROLL MARGIN — add gatherings
   ---------------------------------------------------------- */

#gatherings {
  scroll-margin-top: 8rem;
}

/* ----------------------------------------------------------
   RESPONSIVE
   ---------------------------------------------------------- */

@media (max-width: 640px) {
  .gathering-item {
    grid-template-columns: 5rem 1fr;
    gap: 1rem;
  }

  .gathering-year {
    font-size: 1.4rem;
  }

  .contribute-actions {
    align-items: flex-start;
  }

  .contribute-actions .btn {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 440px) {
  .gathering-item {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .gathering-meta {
    flex-direction: row;
    align-items: center;
    gap: 0.65rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gathering-item {
    transition: none;
  }
}

/* ============================================================
   v1-13 final polish: safer hybrid build, wider desktop rhythm,
   disabled not-yet-live actions, restored clean media color.
   ============================================================ */

/* Wider desktop rhythm without making mobile feel loose */
.section-shell,
.site-header {
  width: min(94vw, 1380px);
}

@media (min-width: 1180px) {
  .reunion-hero,
  .memory-feature {
    grid-template-columns: minmax(0, 0.72fr) minmax(28rem, 1.28fr);
    gap: clamp(3rem, 6vw, 6rem);
  }

  .section-shell {
    width: min(92vw, 1380px);
  }
}

/* No red-to-cream gradient surfaces on media cards */
.video-frame,
.reunion-video-frame,
.memory-panel,
.cream-media-panel,
.cream-media-panel.memory-panel {
  background: rgba(255, 250, 240, 0.96) !important;
  border: 1px solid rgba(35, 31, 32, 0.10) !important;
  box-shadow: 0 24px 70px rgba(35, 31, 32, 0.10) !important;
}

.video-frame::before,
.reunion-video-frame::before,
.memory-panel::before,
.cream-media-panel::before {
  content: none !important;
  display: none !important;
}

.video-ratio,
.memory-fade-frame {
  background: #181516;
  border: 1px solid rgba(35, 31, 32, 0.14);
}

/* Keep major headlines from bunching into too many narrow lines */
.section-heading.centered,
.compact-heading,
.archive .section-heading,
.tapok-feature .section-heading {
  max-width: min(1080px, 92vw) !important;
}

.section-heading h2,
.compact-heading h2,
.archive .section-heading h2,
.tapok-feature .section-heading h2 {
  max-width: 16ch !important;
  margin-inline: auto;
  text-wrap: balance;
}

.archive .section-heading h2 {
  max-width: 20ch !important;
  font-size: clamp(2.5rem, 5.5vw, 5rem);
  line-height: 0.98;
}

.tapok-feature .section-heading h2 {
  max-width: 18ch !important;
}

/* Mobile optimization: avoid oversized copy blocks and reduce awkward gaps */
@media (max-width: 760px) {
  .section-shell,
  .site-header {
    width: min(92vw, 100% - 1rem);
  }

  .reunion-hero {
    min-height: auto;
    padding-top: clamp(2rem, 8vw, 3.5rem);
    padding-bottom: clamp(1.5rem, 7vw, 2.75rem);
    gap: 1.5rem;
  }

  .reunion-hero-copy h2,
  .memory-copy h2,
  .section-heading h2,
  .compact-heading h2,
  .archive .section-heading h2,
  .tapok-feature .section-heading h2,
  .gatherings-header h2,
  .contribute-card h2 {
    max-width: 12.5ch !important;
    font-size: clamp(2.2rem, 11vw, 3.55rem);
    line-height: 0.98;
  }

  .reunion-hero-copy p:not(.eyebrow),
  .memory-copy p:not(.eyebrow),
  .gatherings-header p,
  .contribute-card p,
  .privacy-block p:not(.eyebrow) {
    font-size: 0.95rem;
    line-height: 1.55;
  }

  .quick-cta {
    justify-content: flex-start;
    margin-top: 0;
  }

  .quick-cta a {
    flex: 1 1 calc(50% - 0.5rem);
    min-width: 9rem;
    padding-inline: 0.75rem;
  }

  .intro-strip {
    margin-bottom: clamp(2rem, 8vw, 3rem);
  }

  .photo-marquee-wrap {
    border-radius: 1.35rem;
    padding: 0.7rem;
  }
}

@media (max-width: 480px) {
  .quick-cta a {
    flex-basis: 100%;
  }

  .reunion-hero-copy h2,
  .memory-copy h2,
  .archive .section-heading h2,
  .tapok-feature .section-heading h2 {
    max-width: 11ch !important;
  }
}

/* Disabled / coming-soon actions for email-dependent links */
.btn-disabled,
.archive-tile-disabled {
  cursor: not-allowed !important;
  pointer-events: none !important;
  opacity: 0.52;
  filter: grayscale(0.25);
}

.btn.btn-disabled {
  color: rgba(35, 31, 32, 0.55) !important;
  background: rgba(35, 31, 32, 0.08) !important;
  border-color: rgba(35, 31, 32, 0.12) !important;
  box-shadow: none !important;
}

.archive-tile-disabled {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  text-decoration: none;
  color: inherit;
}

.archive-tile-disabled::after,
.btn-disabled::after {
  content: "";
}

.archive-tile-disabled:hover {
  transform: none !important;
  background: rgba(255, 250, 240, 0.88) !important;
  border-color: rgba(35, 31, 32, 0.09) !important;
  box-shadow: 0 16px 48px rgba(35, 31, 32, 0.07) !important;
}

/* Tapoc gallery: standardized cards, moderate cropping only */
@media (min-width: 761px) {
  .tapok-feature .photo-marquee-card {
    width: clamp(18rem, 26vw, 25rem) !important;
    height: clamp(12rem, 17vw, 16rem) !important;
  }

  .tapok-feature .photo-marquee-card img {
    object-fit: cover !important;
    object-position: center 45% !important;
  }
}
