/* =============================================
   STRANDS OF HOPE — Stylesheet
   Palette: Royal Blue #1D3D9A | Gold #C9993F | Orange accent #BD5220
   Background: White #FFFFFF | Off-white #F8F7F4
   ============================================= */

/* ---------- RESET & BASE ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* ── Palette ──────────────────────────────────────────────
     To revert to original, swap these four lines:
       --blue:       #1B3A5C;
       --blue-light: #2D5580;
       --orange:     remove this line
       footer bg:    #0f2540
  ─────────────────────────────────────────────────────────── */
  --blue:       #1D3D9A;   /* was #1B3A5C — richer royal blue to match logo */
  --blue-light: #2B54B5;   /* was #2D5580 */
  --orange:     #BD5220;   /* new — muted logo-ribbon orange, for section accents */
  --gold:       #C9993F;
  --gold-light: #E8C97E;
  --gold-pale:  #F5EDD8;
  --white:      #FFFFFF;
  --off-white:  #F8F7F4;
  --text:       #2D3748;
  --text-light: #718096;
  --border:     #E2D9CC;

  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans:  'Inter', system-ui, sans-serif;

  --container:  1100px;
  --radius:     8px;
  --transition: 0.25s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

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


/* ---------- LAYOUT HELPERS ---------- */
.container {
  width: min(var(--container), 100% - 3rem);
  margin-inline: auto;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.75rem;
}

.section-intro {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 560px;
  margin: 0.75rem auto 0;
  text-align: center;
}


/* ---------- BUTTONS ---------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--gold);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  padding: 0.8rem 1.75rem;
  border-radius: 2px;
  transition: background var(--transition), transform var(--transition);
}

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

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  padding: 0.8rem 1.5rem;
  border: 1px solid rgba(255,255,255,0.45);
  border-radius: 2px;
  transition: background var(--transition), border-color var(--transition);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.7);
}

.text-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gold);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition);
}

.text-link:hover {
  border-color: var(--gold);
}


/* ---------- NAVIGATION ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
  transition: box-shadow var(--transition);
}

.site-header.scrolled {
  box-shadow: 0 2px 16px rgba(0,0,0,0.1);
}

.nav-container {
  width: min(var(--container), 100% - 3rem);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 2rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav-logo-img {
  height: 52px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2.5rem;
}

.nav-links a {
  font-size: 0.84rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue);
  transition: color var(--transition);
}

.nav-links a:hover {
  color: var(--gold);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--blue);
  border-radius: 2px;
  transition: opacity var(--transition);
}


/* ---------- HERO ---------- */
.hero {
  min-height: auto;
  background: linear-gradient(160deg, var(--blue) 0%, #0C1E5E 100%);  /* #0f2540 was original */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 5rem 1.5rem 6rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Subtle geometric background texture */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(189,82,32,0.07) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(201,153,63,0.06) 0%, transparent 40%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 7vw, 5rem);
  font-weight: 500;
  color: var(--white);
  letter-spacing: 0.01em;
  line-height: 1.1;
}

.hero-tagline {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 2.5vw, 1.45rem);
  font-weight: 400;
  font-style: italic;
  color: rgba(255,255,255,0.75);
  line-height: 1.5;
  max-width: 500px;
}

.hero-tagline em {
  color: var(--gold-light);
  font-style: normal;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 0.5rem;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.3);
  font-size: 1.2rem;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}


/* ---------- MISSION BAND ---------- */
.mission-band {
  background: var(--gold-pale);
  padding: 2.5rem 1.5rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.mission-statement {
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 2.5vw, 1.5rem);
  font-weight: 400;
  text-align: center;
  color: var(--blue);
  line-height: 1.55;
  max-width: 750px;
  margin-inline: auto;
}

.mission-statement strong {
  font-weight: 600;
  color: var(--blue);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 1px;
}


/* ---------- WHO WE ARE ---------- */
.who-section {
  padding: 4.5rem 1.5rem 0;
  background: var(--white);
}

.who-text h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 500;
  color: var(--blue);
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.who-text p {
  font-size: 0.97rem;
  color: var(--text);
  margin-bottom: 1rem;
  max-width: 480px;
}

.who-text .text-link {
  display: inline-block;
  margin-top: 1rem;
}

.who-visual {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.visual-card {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.visual-icon {
  margin-bottom: 0.5rem;
}

.visual-stat {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--blue);
  line-height: 1;
}

.visual-label {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.4;
}


/* ---------- IMPACT STATS ---------- */
.impact-panel {
  margin: 2.5rem 0 4.5rem;
  background: var(--gold-pale);
  border: 1px solid var(--border);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 2rem 2.5rem;
}

.impact-panel-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.impact-panel-header .section-tag {
  margin-bottom: 0;
}

.impact-stats-sub {
  font-size: 0.82rem;
  color: var(--text-light);
  font-style: italic;
}

.impact-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.impact-stat {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.impact-number {
  font-family: var(--font-sans);
  font-size: clamp(1.3rem, 2vw, 1.75rem);
  font-weight: 700;
  color: var(--blue);
  line-height: 1;
  letter-spacing: -0.02em;
}

.impact-label {
  font-size: 0.82rem;
  color: var(--text-light);
  line-height: 1.4;
}

.impact-period {
  font-size: 0.75rem;
  color: var(--gold);
  font-style: italic;
  line-height: 1.3;
}


/* ---------- HUMAN STORY ---------- */
.story-section {
  padding: 5rem 1.5rem;
  background: var(--off-white);
  border-top: 1px solid var(--border);
}

.story-section h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 2.5rem;
}

.story-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.story-media-wrap {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}

.story-photo {
  width: 100%;
  border-radius: var(--radius);
  object-fit: cover;
  aspect-ratio: 3/4;
  display: block;
}

.story-play-btn {
  position: absolute;
  inset: 0;
  background: rgba(10,20,45,0.35);
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  transition: background 0.2s;
}

.story-play-btn:hover {
  background: rgba(10,20,45,0.55);
}

.story-play-circle {
  width: 64px;
  height: 64px;
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  transition: transform 0.2s;
}

.story-play-btn:hover .story-play-circle {
  transform: scale(1.1);
}

.story-play-circle svg {
  width: 28px;
  height: 28px;
  margin-left: 4px;
}

.story-play-label {
  font-size: 0.88rem;
  color: #fff;
  font-style: italic;
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}

.story-video {
  width: 100%;
  display: block;
  background: #000;
}

.story-text {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.story-text p {
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.75;
}

.story-quote {
  border-left: 3px solid var(--gold);
  padding-left: 1.25rem;
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-style: italic;
  color: var(--blue);
  line-height: 1.5;
}

.story-name {
  font-size: 0.88rem;
  color: var(--text-light);
  margin: 0;
}

@media (max-width: 768px) {
  .story-inner {
    grid-template-columns: 1fr;
  }
}


/* ---------- ABOUT / TRUSTEES ---------- */
.about-section {
  padding: 3.5rem 1.5rem 1.5rem;
  background: var(--off-white);
  text-align: center;
  border-top: 1px solid var(--border);
}

.about-section h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 500;
  color: var(--blue);
  margin-bottom: 0.5rem;
}

.trustees-section {
  padding: 2rem 1.5rem 4rem;
  background: var(--off-white);
}

.trustees-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.trustee-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: box-shadow var(--transition), transform var(--transition);
}

.trustee-card:hover {
  box-shadow: 0 6px 32px rgba(27,58,92,0.08);
  transform: translateY(-3px);
}

/* Chairman — slightly elevated treatment */
.trustee-chairman {
  border-top: 3px solid var(--gold);
}

.trustee-chairman .trustee-role {
  color: var(--blue);
  font-weight: 600;
}

/* Advisor row — centred single card, slightly muted */
.advisor-row {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px dashed var(--border);
}

.trustee-advisor {
  max-width: 320px;
  border-style: dashed;
  opacity: 0.85;
}

.trustee-advisor .trustee-role {
  color: var(--text-light);
  font-style: italic;
}

/* Coming-soon trustee placeholder */
.trustee-upcoming {
  border: 1.5px dashed var(--border);
  background: var(--off-white);
  opacity: 0.65;
  pointer-events: none;
}

.upcoming-photo {
  background: transparent;
  border: 1.5px dashed var(--border);
}

.upcoming-name {
  color: var(--text-light) !important;
  font-style: italic;
}

.upcoming-bio {
  font-style: italic;
}

.trustee-photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--gold-pale);
}

.trustee-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.placeholder-photo {
  background: var(--gold-pale);
  display: flex;
  align-items: center;
  justify-content: center;
}

.trustee-name {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--blue);
  margin: 0;
}

.trustee-role {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}

.trustee-bio {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
}


/* ---------- DONATE / CTA SECTION ---------- */
.donate-section {
  background: var(--blue);
  padding: 3.5rem 1.5rem;
}

.donate-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  flex-wrap: wrap;
}

.donate-text h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 500;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.donate-text p {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.7);
  max-width: 500px;
  line-height: 1.7;
}


/* ---------- CONTACT ---------- */
.contact-section {
  padding: 4rem 1.5rem;
  background: var(--white);
  text-align: center;
  border-top: 1px solid var(--border);
}

.contact-section h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 500;
  color: var(--blue);
  margin-bottom: 0.5rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 2.5rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.97rem;
  color: var(--text);
}

.contact-link {
  color: var(--blue);
  border-bottom: 1px solid var(--border);
  transition: color var(--transition), border-color var(--transition);
}

.contact-link:hover {
  color: var(--gold);
  border-color: var(--gold);
}


/* ---------- FOOTER ---------- */
.site-footer {
  background: #0C1E5E;   /* was #0f2540 — deep royal blue to match new palette */
  color: rgba(255,255,255,0.6);
  padding: 2.5rem 1.5rem 1.5rem;
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-logo {
  display: flex;
  align-items: center;
}

.footer-soh-logo-img {
  height: 80px;
  width: auto;
  border-radius: 8px;
  background: rgba(255,255,255,0.92);
  padding: 10px 16px;
}

.footer-center {
  text-align: center;
  flex: 1;
  min-width: 220px;
}

.footer-tagline {
  font-size: 0.88rem;
  font-style: italic;
  color: rgba(255,255,255,0.75);
  margin-bottom: 0.5rem;
}

.footer-reg {
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.7);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-end;
}

.footer-links a {
  font-size: 0.84rem;
  color: rgba(255,255,255,0.5);
  transition: color var(--transition);
}

.footer-meshulash-link {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  text-decoration: none;
}

.footer-meshulash-logo {
  height: 80px;
  width: auto;
  display: block;
  opacity: 0.9;
  margin-bottom: -18px;
  transition: opacity var(--transition);
}

.footer-meshulash-cta {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.55);
  transition: color var(--transition);
}

.footer-meshulash-link:hover .footer-meshulash-logo {
  opacity: 1;
}

.footer-meshulash-link:hover .footer-meshulash-cta {
  color: var(--gold-light);
}

.footer-links a:hover {
  color: var(--gold-light);
}

.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.6);
}


/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {

  .two-col {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  /* Mobile nav */
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--blue);
    flex-direction: column;
    padding: 1.5rem 2rem;
    gap: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    font-size: 1rem;
    color: rgba(255,255,255,0.85);
  }

  .who-text h2 {
    text-align: left;
  }

  .impact-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }

  .who-visual {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .visual-card {
    flex: 1;
    min-width: 140px;
  }

  .donate-inner {
    flex-direction: column;
    text-align: center;
  }

  .donate-text p {
    margin-inline: auto;
  }

  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-links {
    align-items: center;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    width: 100%;
    max-width: 300px;
  }

  .btn-primary,
  .btn-secondary {
    justify-content: center;
    width: 100%;
  }
}
