/* ============================================================
   SHINE IN HEARTS — Design System
   Aesthetic: handwritten letter on warm paper
   Fonts: Lora (headings) + Source Sans 3 (body)
   ============================================================ */

:root {
  --color-primary:       #8F7AAE;
  --color-primary-deep:  #675684;
  --color-secondary:     #6F7D5C;
  --color-secondary-deep:#4F5B42;
  --color-accent:        #C59BB0;
  --color-accent-soft:   #DDD1E6;
  --color-bg:            #F7F4EF;
  --color-surface:       #EEE8E1;
  --color-border:        #D8D0C8;
  --color-text:          #2F2A2A;
  --color-text-muted:    #6E6662;
  --color-success:       #6B8A6E;
  --color-warning:       #C79B5A;
  --color-error:         #B76A6A;
  --nav-height:          68px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Source Sans 3', 'Helvetica Neue', Arial, sans-serif;
  font-size: 17px;
  line-height: 1.75;
  color: var(--color-text);
  background-color: var(--color-bg);
  background-image: 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='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 {
  font-family: 'Lora', Georgia, serif;
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-text);
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(1.9rem, 4vw, 3rem); }
h2 { font-size: clamp(1.65rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.05rem; }
p { color: var(--color-text-muted); line-height: 1.8; }
em { font-style: italic; }
strong { font-weight: 600; color: var(--color-text); }

/* ===== NAV ===== */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-height);
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 6%; z-index: 100;
  transition: border-color 0.3s;
}
nav.scrolled { border-bottom-color: var(--color-text); }

.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo-mark {
  width: 32px; height: 32px;
  border: 1.5px solid var(--color-text);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Lora', serif; font-size: 14px; color: var(--color-text);
  flex-shrink: 0; transition: background 0.2s, color 0.2s;
}
.nav-logo:hover .nav-logo-mark { background: var(--color-text); color: var(--color-bg); }
.nav-logo-text { font-family: 'Lora', serif; font-size: 15px; font-weight: 600; color: var(--color-text); }

.nav-links { display: flex; align-items: center; list-style: none; }
.nav-links a {
  text-decoration: none; font-size: 14px; color: var(--color-text-muted);
  padding: 6px 14px; transition: color 0.2s; letter-spacing: 0.01em;
}
.nav-links a:hover, .nav-links a.active { color: var(--color-text); }

.nav-dropdown { position: relative; }
.nav-dropdown > span {
  font-size: 14px; color: var(--color-text-muted); padding: 6px 14px;
  cursor: pointer; display: flex; align-items: center; gap: 5px;
  transition: color 0.2s; letter-spacing: 0.01em;
}
.nav-dropdown > span::after { content: '↓'; font-size: 10px; opacity: 0.5; }
.nav-dropdown:hover > span { color: var(--color-text); }

.dropdown-menu {
  position: absolute; top: calc(100% + 4px); left: 0;
  background: var(--color-bg); border: 1px solid var(--color-text);
  padding: 6px 0; min-width: 210px;
  padding-top: 20px;
  opacity: 0; pointer-events: none;
  transform: translateY(-6px); transition: opacity 0.15s, transform 0.15s;
}
.nav-dropdown:hover .dropdown-menu { 
  opacity: 1; pointer-events: all; 
  transform: translateY(0); 
  transition: opacity 0.15s, transform 0.15s;  
}
.nav-dropdown:not(:hover) .dropdown-menu {
  transition: opacity 0.15s 0.4s, transform 0.15s 0.4s, pointer-events 0s 0.4s; 
}

.dropdown-menu a {
  display: block; padding: 9px 20px; font-size: 14px;
  color: var(--color-text-muted); text-decoration: none;
  transition: color 0.15s, padding-left 0.15s;
}
.dropdown-menu a:hover { color: var(--color-text); padding-left: 26px; }

.nav-cta {
  font-size: 12px !important; font-weight: 600 !important;
  color: var(--color-bg) !important; background: var(--color-text) !important;
  padding: 8px 18px !important; letter-spacing: 0.08em; text-transform: uppercase;
  transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--color-primary-deep) !important; color: white !important; }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; background: none; border: none; }
.hamburger span { display: block; width: 22px; height: 1.5px; background: var(--color-text); }

.mobile-nav {
  display: none; position: fixed; top: var(--nav-height); left: 0; right: 0;
  background: var(--color-bg); border-bottom: 1px solid var(--color-text);
  padding: 1rem 6%; z-index: 99; flex-direction: column;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  text-decoration: none; font-size: 16px; color: var(--color-text);
  padding: 12px 0; border-bottom: 1px solid var(--color-border);
}
.mobile-nav a:last-child { border-bottom: none; }
.mob-section {
  font-size: 10px; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--color-text-muted);
  padding: 14px 0 4px; border-bottom: none !important;
}

/* ===== PAGE HEADER ===== */
.page-header {
  padding: calc(var(--nav-height) + 5rem) 10% 4rem;
  border-bottom: 1px solid var(--color-border);
}
.breadcrumb { font-size: 13px; color: var(--color-text-muted); margin-bottom: 2rem; }
.breadcrumb a {
  color: var(--color-text-muted); text-decoration: none;
  border-bottom: 1px solid var(--color-border); transition: color 0.2s, border-color 0.2s;
}
.breadcrumb a:hover { color: var(--color-text); border-color: var(--color-text); }
.breadcrumb span { margin: 0 8px; opacity: 0.4; }
.page-header .subtitle {
  font-size: 1.1rem; color: var(--color-text-muted);
  max-width: 560px; margin-top: 1.25rem; line-height: 1.75;
}

/* ===== LABELS ===== */
.label {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 11px; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--color-text-muted);
  display: block; margin-bottom: 1.25rem;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none; padding: 13px 28px;
  border: 1.5px solid var(--color-text); background: transparent; color: var(--color-text);
  cursor: pointer; transition: background 0.2s, color 0.2s; white-space: nowrap;
}
.btn:hover { background: var(--color-text); color: var(--color-bg); }

.btn-filled { background: var(--color-text); color: var(--color-bg); }
.btn-filled:hover { background: var(--color-primary-deep); border-color: var(--color-primary-deep); color: white; }

.btn-olive { border-color: var(--color-secondary-deep); color: var(--color-secondary-deep); }
.btn-olive:hover { background: var(--color-secondary-deep); color: white; }

/* ===== INLINE LINK ===== */
.ink-link {
  color: var(--color-text); text-decoration: none;
  border-bottom: 1px solid var(--color-text); padding-bottom: 1px;
  transition: color 0.2s, border-color 0.2s;
}
.ink-link:hover { color: var(--color-primary-deep); border-color: var(--color-primary-deep); }

/* ===== DIVIDER ===== */
.divider { border: none; border-top: 1px solid var(--color-border); }

/* ===== PULL QUOTE ===== */
.pull-quote {
  border-left: 2px solid var(--color-primary);
  padding: 0.25rem 0 0.25rem 2rem;
  margin: 2.5rem 0;
}
.pull-quote p {
  font-family: 'Lora', serif; font-size: 1.2rem; font-style: italic;
  color: var(--color-text); line-height: 1.65;
}
.pull-quote cite {
  font-size: 13px; color: var(--color-text-muted); font-style: normal;
  letter-spacing: 0.04em; display: block; margin-top: 0.75rem;
}

/* ===== PROGRAM ENTRIES ===== */
.program-entry {
  padding: 2.75rem 0;
  border-top: 1px solid var(--color-border);
  display: grid; grid-template-columns: 160px 1fr;
  gap: 3rem; align-items: start;
}
.program-entry:last-child { border-bottom: 1px solid var(--color-border); }
.program-entry-tag {
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--color-text-muted); padding-top: 6px; line-height: 1.5;
}
.program-entry h3 { font-size: 1.35rem; margin-bottom: 0.75rem; }
.program-entry p { font-size: 0.975rem; margin-bottom: 1.25rem; }

/* ===== TEAM ===== */
.team-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 2.5rem 1.5rem;
}
.team-member { text-align: left; }
.team-photo {
  width: 100%; aspect-ratio: 3/4; object-fit: cover; object-position: top center;
  display: block; margin-bottom: 0.85rem;
  filter: grayscale(20%); transition: filter 0.4s;
}
.team-photo:hover { filter: grayscale(0%); }
.team-photo-placeholder {
  width: 100%; aspect-ratio: 3/4;
  background: var(--color-surface); border: 1px solid var(--color-border);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Lora', serif; font-size: 1.4rem; color: var(--color-primary);
  margin-bottom: 0.85rem;
}
.team-name { font-family: 'Lora', serif; font-size: 0.95rem; font-weight: 600; color: var(--color-text); }
.team-role { font-size: 0.8rem; color: var(--color-text-muted); margin-top: 3px; }
.team-location { font-size: 0.78rem; color: var(--color-primary); margin-top: 2px; }

/* ===== EVENTS ===== */
.event-entry {
  display: grid; grid-template-columns: 110px 1fr;
  gap: 2.5rem; padding: 3rem 0;
  border-top: 1px solid var(--color-border); align-items: start;
}
.event-entry:last-child { border-bottom: 1px solid var(--color-border); }
.event-date-block { font-family: 'Lora', serif; padding-top: 4px; }
.event-date-day { font-size: 2.5rem; font-weight: 700; color: var(--color-text); line-height: 1; display: block; }
.event-date-month { font-size: 0.82rem; color: var(--color-text-muted); letter-spacing: 0.1em; text-transform: uppercase; display: block; margin-top: 4px; }
.event-date-location { font-size: 0.78rem; color: var(--color-primary); margin-top: 6px; display: block; font-family: 'Source Sans 3', sans-serif; }

/* ===== RESOURCE ROWS ===== */
.resource-row {
  display: flex; align-items: baseline; gap: 1rem;
  padding: 1rem 0; border-top: 1px solid var(--color-border);
  text-decoration: none; transition: padding-left 0.2s;
}
.resource-row:last-child { border-bottom: 1px solid var(--color-border); }
.resource-row:hover { padding-left: 8px; }
.resource-arrow { font-size: 14px; color: var(--color-text-muted); flex-shrink: 0; transition: color 0.2s; }
.resource-row:hover .resource-arrow { color: var(--color-primary); }
.resource-title { font-size: 0.975rem; font-weight: 500; color: var(--color-text); }
.resource-source { font-size: 0.82rem; color: var(--color-text-muted); margin-left: auto; flex-shrink: 0; white-space: nowrap; }

/* ===== CONTACT ITEMS ===== */
.contact-item { padding: 2rem 0; border-top: 1px solid var(--color-border); }
.contact-item:last-child { border-bottom: 1px solid var(--color-border); }
.contact-item-label { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-text-muted); margin-bottom: 4px; display: block; }
.contact-item-value { font-family: 'Lora', serif; font-size: 1.15rem; color: var(--color-text); text-decoration: none; transition: color 0.2s; }
.contact-item-value:hover { color: var(--color-primary-deep); }

/* ===== STAT BLOCK ===== */
.stat-num { font-family: 'Lora', serif; font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 700; color: var(--color-text); line-height: 1; display: block; }
.stat-label { font-size: 12px; color: var(--color-text-muted); letter-spacing: 0.08em; text-transform: uppercase; margin-top: 6px; display: block; }

/* ===== FOOTER ===== */
footer { background: var(--color-text); color: var(--color-bg); padding: 5rem 10% 3rem; }
.footer-top {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 4rem; padding-bottom: 4rem;
  border-bottom: 1px solid rgba(247,244,239,0.1); margin-bottom: 2.5rem;
}
.footer-brand-name { font-family: 'Lora', serif; font-size: 1.1rem; font-weight: 600; color: var(--color-bg); display: block; margin-bottom: 1rem; }
.footer-brand p { font-size: 0.9rem; color: rgba(247,244,239,0.45); line-height: 1.75; margin-bottom: 1.75rem; max-width: 280px; }
.footer-social { display: flex; gap: 16px; flex-wrap: wrap; }
.social-link {
  font-size: 13px; color: rgba(247,244,239,0.5); text-decoration: none;
  letter-spacing: 0.04em; border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s; padding-bottom: 1px;
}
.social-link:hover { color: var(--color-bg); border-color: var(--color-bg); }
.footer-col h4 {
  font-family: 'Source Sans 3', sans-serif; font-size: 10px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(247,244,239,0.3); margin-bottom: 1.25rem;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { text-decoration: none; font-size: 14px; color: rgba(247,244,239,0.5); transition: color 0.2s; }
.footer-col a:hover { color: var(--color-bg); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; color: rgba(247,244,239,0.22);
}
.footer-bottom a { color: rgba(247,244,239,0.35); text-decoration: none; transition: color 0.2s; }
.footer-bottom a:hover { color: var(--color-bg); }

/* ===== REVEAL ===== */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .page-header { padding: calc(var(--nav-height) + 3rem) 6% 3rem; }
  .program-entry { grid-template-columns: 1fr; gap: 0.5rem; }
  .event-entry { grid-template-columns: 80px 1fr; gap: 1.5rem; }
}
@media (max-width: 600px) {
  nav { padding: 0 5%; }
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .team-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
  .resource-source { display: none; }
}
