:root {
  --navy: #1b2a4a;
  --navy-deep: #131f38;
  --cream: #fbf6ee;
  --amber: #e8a33d;
  --terracotta: #c9553d;
  --sand: #dcd3c3;
  --sand-dim: rgba(220, 211, 195, 0.55);
  --charcoal: #2e2e2e;
  --ink-soft: #4a5163;
  --radius-card: 20px;
  --radius-pill: 999px;
  --shadow-soft: 0 14px 40px rgba(19, 31, 56, 0.1);
  --shadow-strong: 0 20px 50px rgba(19, 31, 56, 0.18);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
  font-size: 118%;
}
body {
  overflow-x: hidden;
  width: 100%;
}
body {
  margin: 0;
  font-family: "Figtree", sans-serif;
  background: var(--cream);
  color: var(--charcoal);
  -webkit-font-smoothing: antialiased;
}
a {
  text-decoration: none;
  color: inherit;
}
img {
  display: block;
  max-width: 100%;
}
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: 2px;
}
.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.75rem;
}
h1,
h2,
h3 {
  font-family: "Fraunces", serif;
  margin: 0;
}
.eyebrow {
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin: 0 0 0.85rem;
  display: block;
}
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-weight: 600;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 1rem;
}
.section-lede {
  font-size: 1.02rem;
  line-height: 1.75;
  color: var(--ink-soft);
  max-width: 64ch;
}
section {
  padding: 5rem 0;
}
@media (max-width: 720px) {
  section {
    padding: 3.25rem 0;
  }
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  transition:
    background 0.2s ease,
    transform 0.15s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}
.btn-primary {
  background: var(--terracotta);
  color: var(--cream);
}
.btn-primary:hover {
  background: #b3492f;
  transform: translateY(-1px);
}
.btn-on-dark {
  background: var(--amber);
  color: var(--navy-deep);
}
.btn-on-dark:hover {
  background: #d4922f;
  transform: translateY(-1px);
}
.fade-up {
  opacity: 0;
  transform: translateY(18px);
}
.fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}
@media (prefers-reduced-motion: reduce) {
  .fade-up {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ================= NAVBAR ================= */
.nav-wrap {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  margin-top: -10px;
  display: flex;
  justify-content: center;
  padding-top: 1.25rem;
  pointer-events: none;
}
.navbar {
  pointer-events: auto;
  width: 80%;
  max-width: 1180px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.75rem 1.25rem 0.75rem 1rem;
  background: rgba(27, 42, 74, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid rgba(232, 163, 61, 0.18);
  border-radius: var(--radius-pill);
  box-shadow: 0 8px 30px rgba(19, 31, 56, 0.18);
  transition:
    width 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    max-width 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    border-radius 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.45s ease,
    padding 0.45s ease;
}
.navbar.is-scrolled {
  width: 100%;
  max-width: 100%;
  border-radius: 0;
  padding: 0.7rem 2.5rem;
  margin-top: -20px;
  background: rgba(19, 31, 56, 0.92);
  border-color: transparent;
  border-bottom: 1px solid rgba(232, 163, 61, 0.14);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}
.nav-logo .glyph {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--amber);
  color: var(--navy-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Fraunces", serif;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}
/* Alternate logo: swap .glyph + .name for a real image asset, then uncomment
     the <img> in the HTML and this rule.
  .nav-logo-img{ height:34px; width:auto; display:block; }
  */
.nav-logo .name {
  font-family: "Fraunces", serif;
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--cream);
  white-space: nowrap;
  max-width: 38vw;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  position: relative;
  color: var(--sand);
  font-size: 0.93rem;
  font-weight: 500;
  padding: 0.3rem 0.05rem;
  transition: color 0.2s ease;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0%;
  height: 2px;
  background: var(--amber);
  transition: width 0.25s ease;
}
.nav-links a:hover {
  color: var(--cream);
}
.nav-links a:hover::after {
  width: 100%;
}
.nav-links a.active {
  color: var(--cream);
}
.nav-links a.active::after {
  width: 100%;
  background: var(--terracotta);
}
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--terracotta);
  color: var(--cream);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition:
    background 0.2s ease,
    transform 0.15s ease;
}
.nav-cta:hover {
  background: #b3492f;
  transform: translateY(-1px);
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  color: var(--cream);
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}
.nav-toggle svg {
  width: 22px;
  height: 22px;
}
@media (max-width: 820px) {
  .navbar {
    width: 92%;
    padding: 0.65rem 0.65rem 0.65rem 0.9rem;
  }
  .navbar.is-scrolled {
    padding: 0.6rem 1.1rem;
  }
  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(78vw, 320px);
    background: var(--navy-deep);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 1.75rem;
    padding: 2rem;
    transform: translateX(100%);
    transition: transform 0.35s ease;
  }
  .nav-links.is-open {
    transform: translateX(0);
  }
  .nav-links a {
    font-size: 1.1rem;
  }
  .nav-cta {
    display: none;
  }
  .nav-links .mobile-cta {
    display: inline-flex;
    margin-top: 0.5rem;
  }
  .nav-toggle {
    display: inline-flex;
  }
}
@media (max-width: 400px) {
  .navbar {
    width: 94%;
    padding: 0.6rem 0.55rem 0.6rem 0.75rem;
  }
  .navbar.is-scrolled {
    padding: 0.55rem 0.9rem;
  }
  .nav-logo .glyph {
    width: 30px;
    height: 30px;
    font-size: 0.9rem;
  }
  .nav-logo .name {
    font-size: 0.92rem;
    max-width: 32vw;
  }
}

/* ================= WELCOME HERO ================= */
.welcome-hero {
  position: relative;
  padding: 10.5rem 0 5rem;
  background:
    radial-gradient(
      1000px 460px at 85% -10%,
      rgba(232, 163, 61, 0.16),
      transparent 60%
    ),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--cream);
  overflow: hidden;
}
.welcome-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    rgba(251, 246, 238, 0.05) 1px,
    transparent 1px
  );
  background-size: 22px 22px;
  opacity: 0.5;
}
.welcome-hero .wrap {
  position: relative;
  z-index: 1;
  max-width: 820px;
}
.welcome-hero .eyebrow {
  color: var(--amber);
}
.welcome-hero h1 {
  font-size: clamp(2rem, 4.4vw, 3rem);
  font-weight: 600;
  line-height: 1.16;
  margin-bottom: 0.6rem;
}
.welcome-hero .tagline {
  font-family: "Fraunces", serif;
  font-style: italic;
  font-weight: 500;
  color: var(--sand);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  margin-bottom: 1.75rem;
}
.welcome-hero p {
  color: var(--sand);
  font-size: 1.02rem;
  line-height: 1.8;
  margin-bottom: 1.1rem;
}

/* ================= SERVICES CAROUSEL ================= */
.services-intro {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3rem;
}
.carousel {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  height: 560px;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-strong);
  background: var(--navy-deep);
  transition: height 0.4s ease;
}
/* Height is set dynamically by JS to match each slide's real content
     height (see the sizeCarousel() function below) — this fixed value is
     only a fallback shown for an instant before JS runs on first paint. */
@media (max-width: 900px) {
  .carousel {
    height: auto;
    min-height: 520px;
  }
}

.slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  opacity: 0;
  pointer-events: none;
  transition:
    transform 0.7s cubic-bezier(0.65, 0, 0.35, 1),
    opacity 0.7s ease;
}
.slide.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0) !important;
}
.slide.enter-right {
  transform: translateX(100%);
}
.slide.enter-left {
  transform: translateX(-100%);
}
.slide.exit-right {
  transform: translateX(100%);
}
.slide.exit-left {
  transform: translateX(-100%);
}

@media (max-width: 900px) {
  .slide {
    grid-template-columns: 1fr;
  }
}

.slide.media-right .slide-media {
  order: 2;
}
.slide.media-right .slide-copy {
  order: 1;
}
@media (max-width: 900px) {
  .slide.media-right .slide-media {
    order: 1;
  }
  .slide.media-right .slide-copy {
    order: 2;
  }
}

.slide-media {
  position: relative;
  overflow: hidden;
  background: #0e1830;
  min-height: 360px;
  z-index: 1;
}
.slide-media video,
.slide-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@media (max-width: 900px) {
  .slide-media {
    min-height: 280px;
    aspect-ratio: 16/10;
  }
}

.play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(251, 246, 238, 0.92);
  color: var(--navy-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  transition:
    transform 0.2s ease,
    background 0.2s ease;
}
.play-btn:hover {
  transform: translate(-50%, -50%) scale(1.06);
  background: #fff;
}
.play-btn svg {
  width: 22px;
  height: 22px;
  margin-left: 3px;
}
.play-btn.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.slide-num {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  font-family: "Fraunces", serif;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--cream);
  background: rgba(19, 31, 56, 0.55);
  backdrop-filter: blur(4px);
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-pill);
  z-index: 2;
}

.slide-copy {
  padding: 3.5rem 3.25rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--cream);
}
@media (max-width: 900px) {
  .slide-copy {
    padding: 2rem 1.75rem 2.5rem;
  }
}
.slide-copy .eyebrow {
  color: var(--amber);
}
.slide-copy h3 {
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.slide-copy .tagline {
  font-family: "Fraunces", serif;
  font-style: italic;
  color: var(--amber);
  font-size: 1.02rem;
  margin-bottom: 1.1rem;
}
.slide-copy p.desc {
  color: var(--sand);
  line-height: 1.75;
  font-size: 0.97rem;
  max-width: 44ch;
}

.carousel-controls {
  position: absolute;
  bottom: 1.5rem;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 40px;
  gap: 1.5rem;
  z-index: 3;
}
.carousel-arrow {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(251, 246, 238, 0.1);
  border: 1px solid rgba(251, 246, 238, 0.25);
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
}
.carousel-arrow:hover {
  background: rgba(251, 246, 238, 0.2);
}
.carousel-arrow svg {
  width: 18px;
  height: 18px;
}
.carousel-dots {
  display: flex;
  gap: 0.6rem;
}
.carousel-dots button {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(251, 246, 238, 0.35);
  border: none;
  cursor: pointer;
  padding: 0;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}
.carousel-dots button.is-active {
  background: var(--amber);
  transform: scale(1.25);
}

/* ================= MISSION QUOTE ================= */
.mission-quote {
  background: #fff;
}
.quote-card {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  padding: 0 1rem;
}
.quote-mark {
  font-family: "Fraunces", serif;
  font-size: 5rem;
  line-height: 1;
  color: rgba(232, 163, 61, 0.35);
  margin-bottom: -1.5rem;
}
.quote-card blockquote {
  margin: 0;
  font-family: "Fraunces", serif;
  font-weight: 500;
  font-style: italic;
  font-size: clamp(1.15rem, 2.4vw, 1.55rem);
  line-height: 1.6;
  color: var(--navy);
}
.quote-card .sub {
  margin-top: 1.5rem;
  font-family: "Figtree", sans-serif;
  font-style: normal;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--ink-soft);
  max-width: 68ch;
  margin-left: auto;
  margin-right: auto;
}
.quote-attribution {
  margin-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}
.quote-attribution .line {
  width: 36px;
  height: 2px;
  background: var(--terracotta);
}
.quote-attribution span {
  font-weight: 600;
  color: var(--navy);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}
.quote-attribution .placeholder {
  color: var(--terracotta);
  font-style: italic;
}

/* ================= CTA STRIP ================= */
.cta-strip {
  background: linear-gradient(120deg, var(--navy), var(--navy-deep));
  color: var(--cream);
  border-radius: 28px;
  padding: 3.5rem 3rem;
  text-align: center;
}
.cta-strip h2 {
  color: var(--cream);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  margin-bottom: 0.75rem;
}
.cta-strip p {
  color: var(--sand);
  margin-bottom: 1.75rem;
}

/* ================= FOOTER ================= */
.site-footer {
  position: relative;
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--cream);
  overflow: hidden;
  padding: 5rem 1.5rem 0;
}
.watermark {
  position: absolute;
  left: 50%;
  bottom: -2.2rem;
  transform: translateX(-50%);
  width: 100%;
  text-align: center;
  font-family: "Fraunces", serif;
  font-weight: 600;
  font-size: clamp(2.6rem, 11vw, 9rem);
  letter-spacing: -0.01em;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(232, 163, 61, 0.16);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
.footer-inner {
  position: relative;
  z-index: 1;
  max-width: 1240px;
  margin: 0 auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.15fr;
  gap: 3rem;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid rgba(220, 211, 195, 0.15);
}
@media (max-width: 880px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    row-gap: 2.75rem;
  }
}
@media (max-width: 540px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
.col-brand {
  padding-right: 1rem;
}
.brand-mark {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.1rem;
}
.brand-mark .glyph {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--amber);
  color: var(--navy-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Fraunces", serif;
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.brand-mark .name {
  font-family: "Fraunces", serif;
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--cream);
}
.col-brand p.tagline {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--sand);
  max-width: 30ch;
  margin: 0 0 1.6rem;
}
.social-row {
  display: flex;
  gap: 0.65rem;
}
.social-row a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(220, 211, 195, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sand);
  transition:
    border-color 0.2s ease,
    color 0.2s ease,
    background 0.2s ease;
}
.social-row a:hover {
  border-color: var(--amber);
  color: var(--navy-deep);
  background: var(--amber);
}
.social-row svg {
  width: 16px;
  height: 16px;
}
.col-links h3 {
  font-family: "Fraunces", serif;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--amber);
  margin: 0 0 1.25rem;
}
.col-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.col-links a {
  font-size: 0.95rem;
  color: var(--sand);
  position: relative;
  transition: color 0.2s ease;
}
.col-links a:hover {
  color: var(--cream);
}
.col-links a::before {
  content: "";
  position: absolute;
  left: -14px;
  top: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--terracotta);
  transform: translateY(-50%) scale(0);
  transition: transform 0.2s ease;
}
.col-links a:hover::before {
  transform: translateY(-50%) scale(1);
}
.col-contact address {
  font-style: normal;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--sand);
  margin: 0 0 1.4rem;
}
.col-contact address a:hover {
  color: var(--amber);
}
.footer-donate-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--terracotta);
  color: var(--cream);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.7rem 1.3rem;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  transition:
    background 0.2s ease,
    transform 0.15s ease;
}
.footer-donate-btn:hover {
  background: #b3492f;
  transform: translateY(-1px);
}
.footer-bottom {
  position: relative;
  z-index: 1;
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1.6rem 0 4.5rem;
  font-size: 0.82rem;
  color: var(--sand-dim);
}
.footer-bottom .legal {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.footer-bottom .legal a:hover {
  color: var(--amber);
}
.charity-reg strong {
  color: var(--sand);
  font-weight: 600;
}
/* ================= EVENT BANNER ================= */
.event-banner {
  background: var(--cream);
}
.event-card {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  background: var(--navy);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-strong);
}
.event-card .event-copy {
  padding: 3.25rem 3rem;
  color: var(--cream);
  align-self: center;
}
.event-card .event-copy .eyebrow {
  color: var(--amber);
}
.event-card h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 600;
  margin-bottom: 0.9rem;
}
.event-card p {
  color: var(--sand);
  line-height: 1.7;
  margin-bottom: 1.75rem;
}
.event-card .event-img {
  position: relative;
  min-height: 320px;
}
.event-card .event-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (max-width: 820px) {
  .event-card {
    grid-template-columns: 1fr;
  }
  .event-card .event-copy {
    padding: 2.25rem 1.75rem;
    order: 2;
  }
  .event-card .event-img {
    min-height: 240px;
    order: 1;
  }
}
/* ---- Mobile only ---- */
@media (max-width: 767px) {
  /* The div that wraps the <video> — rename to match your markup,
     e.g. .slide-media, .service-media, etc. */
  .service-media {
    width: 100%;
    height: 70px; /* div fixed at 70px */
    overflow: hidden; /* crops cleanly, no overflow */
    background: #1f2a44; /* fills the leftover 30px with the card colour */
  }

  .service-media video {
    display: block;
    width: 100%; /* video spans full width */
    height: 40px; /* video takes only 40px of the 70px div */
    object-fit: cover; /* crop instead of stretching/distorting */
  }

  /* Optional: vertically centre the 40px video inside the 70px div */
  .service-media {
    display: flex;
    align-items: center;
  }
}
