/* ============================================================
   Gratitude Month — gratitudemonth.com
   Modern SCU-branded design system
   ============================================================ */

:root {
  /* Brand */
  --maroon: #862633;
  --maroon-deep: #5e1a24;
  --maroon-soft: #a34250;
  --pumpkin: #d96f1e;
  --amber: #f0a63a;
  --gold: #f6c866;

  /* Surfaces & text */
  --cream: #faf6ef;
  --cream-2: #f4ecdf;
  --card: #ffffff;
  --ink: #33241c;
  --ink-soft: #6b5a4e;
  --line: #e8ddcc;

  /* Category colors */
  --cat-reflect: #2e7d74;
  --cat-share: #55803a;
  --cat-connect: #a83a4b;
  --cat-learn: #2b5ea7;
  --cat-holiday: #d96f1e;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 2px 6px rgba(60, 35, 20, 0.06), 0 12px 32px rgba(60, 35, 20, 0.08);
  --shadow-lift: 0 4px 10px rgba(60, 35, 20, 0.1), 0 18px 44px rgba(60, 35, 20, 0.14);

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--maroon); }

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pumpkin);
  margin-bottom: 12px;
}

.section { padding: 88px 0; }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin-bottom: 12px; }
.section-head p { color: var(--ink-soft); font-size: 1.05rem; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 246, 239, 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(232, 221, 204, 0.7);
  transition: box-shadow 0.25s ease;
}
.site-header.scrolled { box-shadow: 0 6px 24px rgba(60, 35, 20, 0.08); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  min-width: 0;
}
.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--maroon) 0%, var(--pumpkin) 100%);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}
.brand-text { line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-text strong { font-family: var(--font-display); font-size: 1.06rem; font-weight: 600; display: block; }
.brand-text span { font-size: 0.72rem; color: var(--ink-soft); letter-spacing: 0.04em; }

.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.93rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}
.site-nav a:hover { color: var(--maroon); background: rgba(134, 38, 51, 0.07); }
.site-nav a[aria-current="page"] { color: #fff; background: var(--maroon); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 10px;
  border-radius: 10px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 840px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    padding: 10px 16px 18px;
    gap: 6px;
    box-shadow: 0 18px 32px rgba(60, 35, 20, 0.12);
    display: none;
  }
  .nav-open .site-nav { display: flex; }
  .site-nav a { padding: 12px 16px; border-radius: 12px; font-size: 1rem; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(120% 140% at 85% -10%, rgba(246, 200, 102, 0.35) 0%, rgba(246, 200, 102, 0) 45%),
    linear-gradient(140deg, var(--maroon-deep) 0%, var(--maroon) 42%, #b0492c 74%, var(--pumpkin) 100%);
}
.hero-inner {
  position: relative;
  z-index: 2;
  padding: 108px 0 118px;
  max-width: 780px;
}
.hero .eyebrow { color: var(--gold); }
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
}
.hero h1 em { font-style: italic; color: var(--gold); }
.hero p.lede {
  font-size: clamp(1.02rem, 2vw, 1.2rem);
  color: rgba(255, 255, 255, 0.88);
  max-width: 560px;
  margin-bottom: 34px;
}
.hero-hashtag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 26px;
}

.hero-page { padding: 84px 0 64px; }
.hero-page h1 { font-size: clamp(2rem, 4.6vw, 3rem); }

.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 26px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.97rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: #fff; color: var(--maroon); box-shadow: 0 10px 26px rgba(0, 0, 0, 0.22); }
.btn-primary:hover { box-shadow: 0 14px 32px rgba(0, 0, 0, 0.28); }
.btn-ghost { background: rgba(255, 255, 255, 0.13); color: #fff; border: 1px solid rgba(255, 255, 255, 0.4); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.22); }
.btn-maroon { background: var(--maroon); color: #fff; box-shadow: 0 10px 26px rgba(134, 38, 51, 0.3); }
.btn-maroon:hover { background: var(--maroon-deep); }
.btn-outline { background: transparent; color: var(--maroon); border: 1.5px solid var(--maroon); }
.btn-outline:hover { background: rgba(134, 38, 51, 0.07); }

/* Falling leaves (decorative, generated by JS) */
.leaves { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.leaf {
  position: absolute;
  top: -8%;
  font-size: 20px;
  opacity: 0;
  animation: leaf-fall linear infinite;
}
@keyframes leaf-fall {
  0%   { transform: translateY(-6vh) translateX(0) rotate(0deg); opacity: 0; }
  8%   { opacity: 0.75; }
  85%  { opacity: 0.75; }
  100% { transform: translateY(115vh) translateX(9vw) rotate(320deg); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .leaf { display: none; }
  html { scroll-behavior: auto; }
}

/* Wave divider under hero */
.hero-wave { position: absolute; bottom: -1px; left: 0; right: 0; z-index: 1; }
.hero-wave svg { display: block; width: 100%; height: 56px; }

/* ---------- Scroll reveal ---------- */

.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Calendar ---------- */

.calendar-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 26px;
}
.calendar-legend { display: flex; flex-wrap: wrap; gap: 8px; }
.legend-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--card);
  border: 1px solid var(--line);
  padding: 5px 12px;
  border-radius: 999px;
}
.legend-chip i { width: 9px; height: 9px; border-radius: 50%; }

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}
.cal-dow {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-align: center;
  padding: 6px 0 10px;
}
.cal-cell {
  position: relative;
  min-height: 128px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 11px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow: hidden;
}
.cal-cell.empty { background: transparent; border-style: dashed; opacity: 0.45; min-height: 0; }
.cal-cell .day-num {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.cal-cell .cal-title { font-size: 0.8rem; line-height: 1.38; font-weight: 500; }
.cal-cell::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--cat, transparent);
}
a.cal-cell {
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
a.cal-cell:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
  border-color: transparent;
}
.cal-cell .link-hint {
  margin-top: auto;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--cat, var(--maroon));
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.cal-cell.today { border: 2px solid var(--pumpkin); box-shadow: 0 0 0 4px rgba(217, 111, 30, 0.15); }
.cal-cell.today .day-num::after {
  content: "Today";
  margin-left: 8px;
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--pumpkin);
}

/* Mobile list view */
.calendar-list { display: none; flex-direction: column; gap: 10px; }
.cal-row {
  display: flex;
  gap: 14px;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 5px solid var(--cat, var(--line));
  border-radius: var(--radius-sm);
  padding: 13px 15px;
  text-decoration: none;
  color: var(--ink);
}
a.cal-row:active { background: var(--cream-2); }
.cal-row .row-date {
  flex-shrink: 0;
  width: 46px;
  text-align: center;
  line-height: 1.1;
}
.cal-row .row-date b { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; display: block; }
.cal-row .row-date span { font-size: 0.66rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-soft); }
.cal-row .row-title { font-size: 0.92rem; font-weight: 500; }
.cal-row .row-link { margin-left: auto; flex-shrink: 0; color: var(--cat, var(--maroon)); font-size: 1rem; }
.cal-row.today { border-color: var(--pumpkin); box-shadow: 0 0 0 3px rgba(217, 111, 30, 0.15); }

@media (max-width: 760px) {
  .calendar-grid { display: none; }
  .calendar-list { display: flex; }
}

.calendar-download { margin-top: 30px; text-align: center; }
.calendar-download p { font-size: 0.9rem; color: var(--ink-soft); margin-top: 10px; }

/* ---------- Carousel ---------- */

.carousel-section { background: var(--cream-2); }

.carousel {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lift);
  touch-action: pan-y;
}
.carousel-track { display: flex; transition: transform 0.55s cubic-bezier(0.33, 1, 0.68, 1); }
.carousel-slide { flex: 0 0 100%; position: relative; cursor: zoom-in; }
.carousel-slide img {
  width: 100%;
  height: clamp(300px, 55vw, 560px);
  object-fit: cover;
}
.carousel-slide figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 40px 24px 18px;
  background: linear-gradient(transparent, rgba(30, 15, 8, 0.72));
  color: #fff;
  font-size: 0.92rem;
  font-weight: 500;
}
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-size: 1.15rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  transition: background 0.2s ease, transform 0.2s ease;
  z-index: 2;
}
.carousel-btn:hover { background: #fff; transform: translateY(-50%) scale(1.06); }
.carousel-btn.prev { left: 16px; }
.carousel-btn.next { right: 16px; }
.carousel-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}
.carousel-dots button {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s ease, transform 0.2s ease;
}
.carousel-dots button.active { background: #fff; transform: scale(1.3); }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(20, 10, 5, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 4vh 4vw;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 12px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
}

/* ---------- Cards & content pages ---------- */

.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 22px; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.card .card-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  margin-bottom: 16px;
  background: linear-gradient(135deg, rgba(134, 38, 51, 0.1), rgba(217, 111, 30, 0.14));
}
.card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.card p { color: var(--ink-soft); font-size: 0.95rem; }
.card .card-link { display: inline-block; margin-top: 14px; font-weight: 600; font-size: 0.92rem; text-decoration: none; }
.card .card-link:hover { text-decoration: underline; }

.step-num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--pumpkin);
  line-height: 1;
  margin-bottom: 12px;
}

/* Video facade */
.video-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #1a1010;
  box-shadow: var(--shadow-lift);
  cursor: pointer;
}
.video-frame img { width: 100%; height: 100%; object-fit: cover; opacity: 0.88; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  border: 0;
  background: rgba(134, 38, 51, 0.92);
  color: #fff;
  font-size: 1.7rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s ease, background 0.2s ease;
}
.video-frame:hover .video-play { transform: scale(1.08); background: var(--maroon); }

.prose { max-width: 700px; font-size: 1.06rem; }
.prose p { margin-bottom: 1.2em; }
.prose a { font-weight: 600; }

blockquote.pull {
  border-left: 4px solid var(--pumpkin);
  padding: 6px 0 6px 24px;
  margin: 32px 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-style: italic;
  color: var(--maroon);
  line-height: 1.45;
}

/* Timeline (About) */
.timeline { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 18px; margin-top: 36px; }
.timeline .milestone {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 20px;
}
.milestone .year { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; color: var(--pumpkin); }
.milestone p { font-size: 0.88rem; color: var(--ink-soft); margin-top: 6px; }

/* CTA band */
.cta-band {
  background: linear-gradient(130deg, var(--maroon-deep), var(--maroon) 55%, #a4452a);
  color: #fff;
  border-radius: var(--radius);
  padding: 52px 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.cta-band h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 8px; }
.cta-band p { color: rgba(255, 255, 255, 0.85); max-width: 460px; }

/* ---------- Footer ---------- */

.site-footer {
  margin-top: 40px;
  background: var(--maroon-deep);
  color: rgba(255, 255, 255, 0.8);
  padding: 52px 0 40px;
}
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; }
.footer-brand strong { font-family: var(--font-display); color: #fff; font-size: 1.2rem; display: block; margin-bottom: 6px; }
.footer-brand p { font-size: 0.88rem; max-width: 300px; }
.footer-col h4 {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 12px;
}
.footer-col a { display: block; color: rgba(255, 255, 255, 0.8); text-decoration: none; font-size: 0.92rem; padding: 4px 0; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  margin-top: 36px;
  padding-top: 20px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
}

@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .hero-inner { padding: 84px 0 96px; }
  .cta-band { padding: 36px 26px; }
}
