/* ==========================================================================
   Samuel Hall Scholarship: "Heritage" theme (2026-11-05)
   Puts the Scholarship page in the same family as the Foundation home page
   and the Hall Museum: same fonts, paper texture, nav, hero, ornaments and
   footer. Its own colours are navy and brass (Home = brown, Museum = sage).
   Loaded after styles.css; to undo, remove the heritage.css/.js tags.
   ========================================================================== */

:root {
  /* The old variable names stay, so every component picks up the new colours. */
  --teal:         #3b5476;   /* navy */
  --teal-dark:    #2b405f;
  --teal-deeper:  #1b283c;
  --teal-light:   #5c7597;
  --teal-50:      #e4e2d8;   /* alt section paper */
  --teal-100:     #d9d6ca;
  --amber:        #a8843f;   /* brass */
  --amber-light:  #c9a65e;
  --amber-dark:   #866629;
  --white:        #f8f6ef;   /* cards and text on dark */
  --off-white:    #f3f1e9;
  --gray-50:      #f3f1e9;
  --gray-100:     #dcd8cb;
  --gray-200:     #cbc6b6;
  --gray-300:     #b3ad9b;
  --neutral-50:   #f3f1e9;
  --neutral-100:  #ebe8de;
  --neutral-200:  #dcd8cb;
  --text:         #29303d;
  --text-dark:    #161c27;
  --text-light:   #505867;
  --text-muted:   #6c7280;
  --radius:       4px;
  --radius-lg:    5px;
  --radius-xl:    6px;
  --shadow-sm:    0 1px 2px rgba(27,40,60,.06), 0 1px 3px rgba(27,40,60,.05);
  --shadow:       0 2px 4px rgba(27,40,60,.05), 0 6px 14px rgba(27,40,60,.06);
  --shadow-md:    0 4px 10px rgba(27,40,60,.06), 0 14px 30px rgba(27,40,60,.08);
  --shadow-lg:    0 8px 18px rgba(27,40,60,.07), 0 26px 56px rgba(27,40,60,.12);

  /* Same names as Home and Museum */
  --parchment:    #eeece4;
  --parchment-dk: #e4e2d8;
  --ink:          #161c27;
  --ink-light:    #4a5262;
  --accent:       #3b5476;
  --accent-gold:  #c9a65e;
  --cream:        #f8f6ef;
  --border:       #c9c3b2;
  --ease-out:     cubic-bezier(.22, 1, .36, 1);
}

/* ---------- Base: same paper and fonts as the rest of the site ---------- */
body {
  font-family: 'Lora', 'EB Garamond', Georgia, 'Times New Roman', serif;
  color: var(--text);
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: auto;
  background-color: var(--parchment);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='400' height='400' filter='url(%23n)' opacity='.08'/%3E%3C/svg%3E"),
    linear-gradient(180deg, #eeece4 0%, #e3e0d5 100%);
}
.btn, .btn-donate, .nav-links a, .hero-badge, .hero-scroll-indicator, .timeline-year, .quote-card cite,
.award-card-label, .step-number, .resource-link, .faq-question, .donate-info-card h4, .form-group label,
.form-group input, .form-group textarea, .quiz-progress-text, .quiz-answer-btn, .badge-label, .footer-col h4,
.countdown-label, .countdown-number, .countdown-text {
  font-family: 'Lora', Georgia, serif;
}
h1, h2, h3, h4 { color: var(--text-dark); }
h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); letter-spacing: .2px; }
a { color: var(--teal-dark); }
a:hover { color: var(--amber-dark); }
.caption { color: var(--text-muted); }

/* ---------- Scroll progress ---------- */
.scroll-progress { background: linear-gradient(90deg, var(--amber-dark), var(--amber-light)); height: 2px; }

/* ---------- Navigation: the Museum's dark bar, in navy ---------- */
.main-nav {
  background: rgba(20, 29, 44, .96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(201, 166, 94, .35);
}
.main-nav.scrolled { background: rgba(14, 21, 33, .98); box-shadow: 0 2px 24px rgba(0, 0, 0, .35); }
.nav-container { max-width: 1200px; padding: 0 32px; }
.nav-brand {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #e0c27c;
  gap: 12px;
  white-space: nowrap;
}
.nav-brand span { color: #e0c27c; transition: color .3s; }
.nav-brand:hover, .nav-brand:hover span { color: #f3dca4; }
.nav-brand-logo { height: 42px; width: 42px; }
.nav-links { gap: 0; align-items: center; }
.nav-links a {
  padding: 6px 13px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .4px;
  text-transform: none;
  color: #d5b56d;
  border-radius: var(--radius);
  white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active { color: #f3dca4; background: rgba(201, 166, 94, .12); }
.nav-links .nav-donate {
  margin-left: 10px;
  background: var(--amber-light) !important;
  color: var(--teal-deeper) !important;
  border: none;
}
.nav-links .nav-donate:hover { background: #dcbd7c !important; color: var(--ink) !important; }
.nav-toggle span { background: #d5b56d; }

/* 2026-11-10: "Upcoming Events" added (9 links). Compact spacing at every width; menu button below 1240px. */
.nav-links a { padding: 6px 9px; font-size: .78rem; }
@media (max-width: 1239px) {
  .nav-links {
    background: rgba(14, 21, 33, .98);
    border-bottom: 1px solid rgba(201, 166, 94, .35);
    box-shadow: 0 8px 30px rgba(0, 0, 0, .4);
    padding: 12px 20px 16px;
  }
  .nav-links a { padding: 11px 16px; font-size: .9rem; }
  .nav-links .nav-donate { margin: 8px 0 0; text-align: center; }
}
@media (max-width: 600px) {
  .nav-container { padding: 0 20px; }
  .nav-brand { font-size: .95rem; letter-spacing: 1px; gap: 10px; }
  .nav-brand-logo { height: 36px; width: 36px; }
}

/* ---------- Hero: same layout as Home and Museum ---------- */
.hero {
  min-height: 88vh;
  background:
    linear-gradient(180deg, rgba(16, 24, 38, .66) 0%, rgba(16, 24, 38, .38) 55%, rgba(16, 24, 38, .58) 100%),
    url('images/looking South from the Hugh Hall House.jpg') center/cover no-repeat;
}
.hero-overlay {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.55' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='400' height='400' filter='url(%23n)' opacity='.06'/%3E%3C/svg%3E");
}
.hero-content { max-width: 760px; }
.hero-ornament { display: flex; justify-content: center; margin-bottom: 18px; color: var(--amber-light); opacity: .8; }
.hero-ornament svg { width: 52px; height: 52px; }
.hero-eyebrow {
  font-size: .74rem;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: #e0c27c;
  font-weight: 600;
  margin-bottom: 16px;
}
.hero h1 {
  font-size: clamp(2.3rem, 6vw, 4.2rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: .5px;
  margin-bottom: 14px;
  text-shadow: 0 2px 22px rgba(0, 0, 0, .4);
}
.hero-tagline {
  font-family: 'EB Garamond', Georgia, serif;
  font-style: italic;
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  color: #ead39b;
  letter-spacing: 1px;
  margin-bottom: 20px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .5);
}
.hero-rule { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 24px; }
.hero-rule .line { display: block; width: 64px; height: 1px; background: var(--amber-light); opacity: .6; }
.hero-rule svg { width: 16px; height: 16px; color: var(--amber-light); opacity: .7; }
.hero-sub { color: rgba(255, 255, 255, .9); font-size: 1.08rem; line-height: 1.8; max-width: 600px; margin: 0 auto 34px; }
.hero .btn-secondary { border-color: rgba(255, 255, 255, .55); }
.hero-scroll-indicator { font-size: .72rem; letter-spacing: .3em; font-weight: 500; color: rgba(255, 255, 255, .7); }

/* Signature entrance: the hero builds up line by line, like a page being set */
@media (prefers-reduced-motion: no-preference) {
  .hero-content > * { animation: hRise 1.1s var(--ease-out) both; }
  .hero-content > :nth-child(1) { animation-delay: .05s; }
  .hero-content > :nth-child(2) { animation-delay: .15s; }
  .hero-content > :nth-child(3) { animation-delay: .25s; }
  .hero-content > :nth-child(4) { animation-delay: .4s; }
  .hero-content > :nth-child(5) { animation-delay: .5s; }
  .hero-content > :nth-child(6) { animation-delay: .62s; }
  .hero-content > :nth-child(7) { animation-delay: .74s; }
  .hero-rule .line { animation: hLine 1.2s var(--ease-out) .55s both; transform-origin: center; }
}
@keyframes hRise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes hLine { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ---------- Buttons ---------- */
.btn { font-size: .95rem; font-weight: 600; letter-spacing: .3px; padding: 14px 30px; border-radius: var(--radius); }
.btn-primary { background: var(--teal); color: var(--white); }
.btn-primary:hover { background: var(--teal-dark); box-shadow: 0 6px 18px rgba(27, 40, 60, .25); }
.btn-outline { color: var(--teal-dark); border: 1px solid var(--border); background: transparent; }
.btn-outline:hover { background: var(--teal); border-color: var(--teal); color: var(--white); }
.btn-glow { animation: none; }
.btn-donate {
  background: var(--amber-light);
  color: var(--teal-deeper);
  font-weight: 700;
  letter-spacing: .12em;
  font-size: .92rem;
  border-radius: var(--radius);
}
.btn-donate:hover { background: #dcbd7c; color: var(--ink); box-shadow: 0 8px 26px rgba(0, 0, 0, .25); }

/* ---------- Impact stats: a navy band, brass numerals ---------- */
.stats-bar {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.7' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='.07'/%3E%3C/svg%3E"),
    linear-gradient(180deg, #1b283c 0%, #16202f 100%);
  border-top: 1px solid rgba(201, 166, 94, .3);
  border-bottom: 1px solid rgba(201, 166, 94, .3);
  padding: 54px 0;
}
.stats-grid { grid-template-columns: repeat(3, 1fr); gap: 0; max-width: 900px; margin: 0 auto; }
.stat-item + .stat-item { border-left: 1px solid rgba(201, 166, 94, .22); }
.stat-number {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 900;
  font-size: clamp(2.1rem, 4.6vw, 3.1rem);
  color: #e0c27c;
  letter-spacing: 0;
  font-variant-numeric: lining-nums tabular-nums;
}
.stat-label { font-size: .74rem; letter-spacing: .24em; color: rgba(248, 246, 239, .72); font-weight: 500; }
@media (max-width: 700px) {
  .stats-grid { grid-template-columns: 1fr; }
  .stat-item + .stat-item { border-left: none; border-top: 1px solid rgba(201, 166, 94, .22); }
  .stat-item { padding: 18px 10px; }
}

/* ---------- Sections and headers (Museum pattern) ---------- */
.section { padding: 96px 0; background: transparent; }
.section-alt {
  background-color: var(--parchment-dk);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.6' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='400' height='400' filter='url(%23n)' opacity='.06'/%3E%3C/svg%3E");
}
.painted-bg { background: transparent; }
.painted-bg::before {
  background:
    radial-gradient(ellipse 60% 45% at 12% 18%, rgba(59, 84, 118, .07) 0%, transparent 70%),
    radial-gradient(ellipse 50% 50% at 88% 82%, rgba(168, 132, 63, .07) 0%, transparent 65%);
}
.section-header { margin-bottom: 54px; }
.svg-ornament { display: flex; justify-content: center; margin-bottom: 14px; color: var(--teal); }
.svg-ornament svg { width: 36px; height: 36px; opacity: .6; }
.svg-divider { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 18px; color: var(--amber); }
.svg-divider .line { width: 48px; height: 1px; background: var(--amber); opacity: .45; }
.svg-divider svg { width: 16px; height: 16px; opacity: .6; }
.section-sub { color: var(--ink-light); font-size: 1.05rem; }
@media (max-width: 700px) { .section { padding: 64px 0; } body { font-size: 16px; } }

/* Section headers rise in, the icon first (Home and Museum use the same fade) */
@media (prefers-reduced-motion: no-preference) {
  .section-header.fade-in { transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
}

/* ---------- Images and cards: paper, hairlines, soft navy shadows ---------- */
.about-image img, .showcase-item img, .gallery-item img, .scholarship-image img,
.recipients-slideshow .slide img, .video-container { border-radius: var(--radius); }
.image-frame { border: 1px solid var(--amber); opacity: .45; border-radius: var(--radius); }
.showcase-item img:hover, .gallery-item img:hover { transform: translateY(-4px); }
.timeline-content, .quote-card, .award-card, .faq-item, .donate-info-card, .contact-info-card,
.quiz-card, .resource-card, .step-card {
  background: var(--cream);
  border: 1px solid rgba(201, 195, 178, .7);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* About buttons */
.about-links .btn-outline { padding: 11px 22px; font-size: .9rem; }

/* ---------- Timeline: a brass spine that draws as you scroll ---------- */
.timeline-line { width: 1px; background: rgba(59, 84, 118, .22); opacity: 1; }
.timeline-line::after {
  content: '';
  position: absolute;
  top: 0; left: -1px;
  width: 3px;
  height: calc(var(--draw, 0) * 100%);
  background: linear-gradient(180deg, var(--amber-light), var(--amber));
  border-radius: 2px;
}
.timeline-dot { background: var(--cream); border: 2px solid var(--amber); box-shadow: 0 0 0 4px var(--parchment-dk); }
.timeline-item:hover .timeline-dot { background: var(--amber-light); }
.timeline-year {
  background: transparent;
  color: var(--amber-dark);
  border: 1px solid rgba(168, 132, 63, .5);
  font-weight: 700;
  letter-spacing: .14em;
  border-radius: 2px;
}
.timeline-content h3 { font-size: 1.2rem; }
.timeline-content p { color: var(--text-light); }

/* ---------- Quotes ---------- */
.quote-card { border-top: 2px solid var(--amber); }
.quote-card blockquote { font-family: 'EB Garamond', Georgia, serif; font-size: 1.3rem; color: var(--text-dark); }
.quote-mark { color: var(--amber); opacity: .5; }
.quote-card cite { color: var(--amber-dark); letter-spacing: .18em; }
.carousel-btn { background: var(--cream); border: 1px solid var(--border); color: var(--teal-dark); box-shadow: var(--shadow-sm); }
.carousel-btn:hover { background: var(--teal); color: var(--white); border-color: var(--teal); }
.carousel-dot { background: rgba(59, 84, 118, .25); }
.carousel-dot.active, .carousel-dot:hover { background: var(--amber); }

/* ---------- Scholarship details ---------- */
.check-list li::before { background: var(--teal); color: var(--white); }
.award-card-icon { color: var(--teal); display: flex; justify-content: center; margin-bottom: 10px; }
.award-card-icon svg { width: 30px; height: 30px; opacity: .75; }
.award-card-label { color: var(--amber-dark); letter-spacing: .2em; }
.award-card.highlight { border-color: var(--amber); box-shadow: 0 0 0 1px var(--amber), var(--shadow); }
.slide-prev, .slide-next { background: rgba(248, 246, 239, .92); color: var(--teal-dark); border-radius: 50%; }
.slideshow-dots .dot { background: rgba(59, 84, 118, .25); }
.slideshow-dots .dot.active { background: var(--amber); }
.compliance-note { color: var(--text-muted); }

/* ---------- FAQ ---------- */
.faq-question { font-weight: 600; font-size: 1rem; color: var(--text-dark); }
.faq-question:hover { color: var(--teal); }
.faq-item.open { border-color: rgba(201, 195, 178, .7); border-left: 3px solid var(--amber); }
.faq-icon { color: var(--amber-dark); }

/* ---------- Donate ---------- */
.donate-info-card h4 { color: var(--teal-dark); }
.donate-card {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.7' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='.07'/%3E%3C/svg%3E"),
    linear-gradient(160deg, #1f2e45 0%, #16202f 100%);
  border: 1px solid rgba(201, 166, 94, .35);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.donate-card h3 { color: #f3e6c4; }
.donate-card-ornament { color: var(--amber-light); }

/* ---------- Contact ---------- */
.contact-icon { color: var(--teal); display: inline-flex; }
.contact-icon svg { width: 22px; height: 22px; opacity: .75; }

/* ---------- Quiz ---------- */
.quiz-answer-btn { border-radius: var(--radius); }

/* ---------- Back to top ---------- */
.back-to-top { background: var(--teal-deeper); color: #e0c27c; border: 1px solid rgba(201, 166, 94, .4); }
.back-to-top:hover { background: var(--teal); }

/* ---------- Footer: the Museum footer, in navy ---------- */
.site-footer {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.7' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='.06'/%3E%3C/svg%3E"),
    #141c29;
  color: rgba(255, 255, 255, .7);
  padding: 54px 0 30px;
}
.footer-brand { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.footer-icon { width: 32px; height: 32px; color: var(--amber-light); opacity: .55; }
.footer-brand h3 { color: var(--amber-light); font-size: 1.3rem; margin-bottom: 2px; }
.footer-brand p { font-style: italic; font-family: 'EB Garamond', serif; font-size: 1rem; opacity: .7; }
.footer-nav { margin: 28px 0; display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; }
.footer-nav a {
  color: rgba(255, 255, 255, .55);
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-weight: 600;
}
.footer-nav a:hover { color: var(--amber-light); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 20px; margin-top: 8px; }
.footer-bottom p { font-size: .8rem; opacity: .5; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .hero-scroll-indicator { animation: none; }
  .timeline-line::after { height: 100%; }
}

/* Contact: the old form column is gone, so centre the remaining cards */
.contact-grid { grid-template-columns: 1fr; max-width: 720px; margin: 0 auto; }
.contact-info-section { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 760px) { .contact-info-section { grid-template-columns: 1fr; } }

/* The "Scroll" hint needs room; hide it on short screens */
@media (max-height: 820px) { .hero-scroll-indicator { display: none; } }

/* Stop the timeline slide-in animation from making the page scroll sideways on phones */
#timeline { overflow-x: clip; }

/* Donate button colours for the navy bar (see /site.css) */
:root { --cta-bg: #c9a65e; --cta-bg-hover: #dcbd7c; --cta-fg: #1b283c; --cta-shadow: rgba(0, 0, 0, .35); }
/* Long name + Donate button on small phones: put the name on two lines */
@media (max-width: 480px) {
  .nav-brand span { font-size: .8rem; line-height: 1.15; white-space: normal; max-width: 112px; letter-spacing: .5px; }
}

/* Readability: muted text dark enough for small sizes; donate card headings are now h3 */
:root { --text-muted: #5f6573; }
.donate-info-card h3 { font-size: .95rem; margin-bottom: 6px; color: var(--teal-dark); font-family: 'Lora', Georgia, serif; font-weight: 700; }
