:root {
  --deep: #0b3d24;
  --deep-dark: #062015;
  --green: #12a250;
  --red: #ce1126;
  --gray-50: #f7f8fa;
  --gray-100: #eef0f3;
  --gray-600: #5a6472;
  --gray-900: #1b1f27;
  --max-width: 1120px;
  --radius: 10px;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--gray-900);
  background: #fff;
  line-height: 1.6;
}

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

a { color: inherit; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--gray-100);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  color: var(--deep);
  font-size: 1.05rem;
}

.brand-logo {
  height: 40px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  color: var(--gray-900);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--deep);
  border-color: var(--green);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--deep);
  margin: 5px 0;
}

/* Watermark (all pages) */
.page-watermark {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: url('../assets/ndc-logo.png');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: min(60vw, 520px);
  opacity: 0.05;
}

/* Hero */
.hero {
  background:
    linear-gradient(135deg, rgba(11,61,36,0.92) 0%, rgba(6,32,21,0.94) 100%),
    url('../assets/ndc-logo.png');
  background-repeat: no-repeat, no-repeat;
  background-size: cover, 340px;
  background-position: center, center;
  color: #fff;
  padding: 64px 0 56px;
  position: relative;
}

.hero-inner {
  display: flex;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
}

.hero-photo {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 3px solid var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.2rem;
  font-weight: 700;
  color: var(--green);
  flex-shrink: 0;
}

.hero-text { flex: 1; min-width: 280px; }

/* Homepage: full-bleed welcome photo, no text on the image */
.hero-photo-band { width: 100%; padding: 0; position: relative; background: #fff; }

.hero-cta-float {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translate(-50%, 50%);
  display: flex;
  gap: 14px;
  z-index: 3;
  background: #fff;
  padding: 14px 18px;
  border-radius: 999px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.18);
}

@media (max-width: 560px) {
  .hero-cta-float {
    position: static;
    transform: none;
    left: auto;
    bottom: auto;
    flex-direction: column;
    border-radius: 20px;
    width: calc(100% - 48px);
    margin: 0 auto;
  }
}

.hero-slider-full {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  max-height: 800px;
  overflow: hidden;
  background: var(--deep-dark);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.9s ease;
  background: linear-gradient(160deg, var(--deep) 0%, var(--green) 220%);
  background-size: cover;
  background-position: center;
}

.hero-slide.active { opacity: 1; }

.hero-slide.slide-2 {
  background-image: url('../assets/hero-2.jpg');
  background-size: cover;
  background-position: top center;
}

.hero-slide.slide-3 {
  background-image: url('../assets/hero-3.jpg');
  background-size: cover;
  background-position: top center;
}

@media (max-width: 600px) {
  .hero-slider-full { aspect-ratio: auto; height: 52vh; }
}

.hero-dots {
  position: absolute;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: width 0.2s, background 0.2s, border-radius 0.2s;
}

.dot.active {
  background: var(--green);
  width: 24px;
  border-radius: 5px;
}

/* Intro band: buttons + tagline right below the photo */
.intro-band {
  padding: 110px 0 44px;
  text-align: center;
  background: #fff;
}

.intro-band .tagline {
  font-size: 1.05rem;
  color: var(--gray-600);
  max-width: 560px;
  margin: 24px auto 0;
}

.intro-band .btn-row { justify-content: center; }

/* Floating name/position over the hero photo edge */
.hero-name-float { flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 20px 40px; }

.hero-name-float-name {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--deep);
}

.hero-name-float-position {
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #000;
}

.btn-outline-dark {
  background: transparent;
  border: 1.5px solid var(--deep);
  color: var(--deep);
}


@media (max-width: 560px) {
  .intro-band { padding: 28px 0 36px; }
  .hero-name-float-name { font-size: 1.5rem; }
  .hero-name-float-position { font-size: 0.72rem; letter-spacing: 0.04em; }
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  color: var(--red);
  font-weight: 700;
  margin-bottom: 10px;
}

.hero h1 {
  font-size: 2.4rem;
  margin: 0 0 8px;
  line-height: 1.15;
}

.hero .position {
  font-size: 1.1rem;
  color: #e6e6e6;
  margin-bottom: 16px;
}

.hero .tagline {
  font-size: 1.05rem;
  color: #d9d9d9;
  max-width: 520px;
  margin-bottom: 26px;
}

.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

@media (max-width: 560px) {
  .intro-band .btn-row {
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
  }
  .intro-band .btn-row .btn {
    flex: 1 0 auto;
    padding: 10px 12px;
    font-size: 0.78rem;
    white-space: nowrap;
  }
}

.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
  transition: transform 0.15s, opacity 0.15s;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary { background: var(--green); color: var(--deep-dark); }
.btn-outline { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,0.6); }

/* Sections */
section { padding: 44px 0; }

.section-alt { background: var(--gray-50); }

.section-head { max-width: 640px; margin: 0 auto 28px; text-align: center; }

.section-head .eyebrow { color: var(--red); text-align: center; }

.section-head h2 {
  font-size: 1.9rem;
  margin: 0 0 12px;
  color: var(--deep);
}

.section-head p { color: var(--gray-600); margin: 0; }

/* Cards / grid */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.card {
  background: #fff;
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  padding: 28px;
}

.card h3 {
  margin: 12px 0 10px;
  color: var(--deep);
  font-size: 1.15rem;
}

.card p { color: var(--gray-600); margin: 0; font-size: 0.95rem; }

.icon-badge {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(206,17,38,0.12);
  color: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
}

/* Timeline (My Story) */
.timeline {
  max-width: 760px;
  margin: 0 auto;
  border-left: 3px solid var(--gray-100);
  padding-left: 32px;
}

.timeline-item { position: relative; padding-bottom: 40px; }

.timeline-item:last-child { padding-bottom: 0; }

.timeline-item::before {
  content: "";
  position: absolute;
  left: -39px;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--green);
  border: 3px solid var(--deep);
}

.timeline-year {
  font-weight: 700;
  color: var(--red);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

.timeline-item h3 { margin: 0 0 8px; color: var(--deep); }
.timeline-item p { margin: 0; color: var(--gray-600); }

/* News */
.news-card {
  background: #fff;
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  overflow: hidden;
}

.news-thumb {
  height: 140px;
  background: linear-gradient(135deg, var(--deep), var(--deep-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.news-body { padding: 20px; }

.news-date {
  font-size: 0.78rem;
  color: var(--red);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.news-body h3 { margin: 0 0 10px; color: var(--deep); font-size: 1.05rem; }
.news-body p { margin: 0; color: var(--gray-600); font-size: 0.92rem; }

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.gallery-item {
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  background: var(--gray-100);
  border: 1px dashed #d9d9d9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-600);
  font-size: 0.85rem;
  text-align: center;
  padding: 10px;
}

.gallery-album {
  background: #fff;
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  overflow: hidden;
}

.album-photos {
  display: grid;
  aspect-ratio: 4 / 5;
  gap: 2px;
}

.album-photos-1 { grid-template-columns: 1fr; }

.album-photos-2 {
  grid-template-columns: 1fr;
  grid-template-rows: 1fr 1fr;
}

.album-photos-3 {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
}
.album-photos-3 .album-photo:first-child { grid-row: 1 / 3; }

.album-photos-4 {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
}

.album-photo {
  position: relative;
  background-size: cover;
  background-position: center;
}

.album-more {
  position: absolute;
  inset: 0;
  background: rgba(6,32,21,0.6);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.2rem;
}

.album-caption {
  padding: 14px 16px;
  font-size: 0.88rem;
  color: var(--gray-900);
  line-height: 1.4;
}

/* Endorsements */
.quote-card {
  background: #fff;
  border-left: 4px solid var(--green);
  border-radius: 6px;
  padding: 24px 28px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.quote-card p.quote { font-style: italic; color: var(--gray-900); margin: 0 0 12px; }
.quote-card .who { font-weight: 700; color: var(--deep); font-size: 0.9rem; }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.contact-card {
  background: #fff;
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  padding: 26px;
  text-align: center;
  text-decoration: none;
  transition: box-shadow 0.2s, transform 0.2s;
}

.contact-card:hover { box-shadow: 0 6px 20px rgba(16,35,63,0.1); transform: translateY(-2px); }

.contact-card .icon-badge { margin: 0 auto 14px; }
.contact-card h3 { margin: 0 0 6px; color: var(--deep); font-size: 1rem; }
.contact-card p { margin: 0; color: var(--gray-600); font-size: 0.9rem; word-break: break-word; }

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6,32,21,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 300;
  padding: 20px;
}

.modal-card {
  background: #fff;
  border-radius: 14px;
  padding: 36px 32px;
  max-width: 420px;
  width: 100%;
  text-align: center;
  position: relative;
  box-shadow: 0 25px 60px rgba(0,0,0,0.35);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  color: var(--gray-600);
}

.modal-card .momo-card { display: block; margin: 0 auto; }

.momo-card {
  display: inline-block;
  background: #fff;
  border: 2px solid var(--green);
  border-radius: var(--radius);
  padding: 32px 48px;
  margin: 0 auto;
}

.momo-network {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--green);
  margin-bottom: 10px;
}

.momo-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--deep);
  margin-bottom: 6px;
}

.momo-name {
  font-size: 0.95rem;
  color: var(--gray-600);
}

/* Volunteer form */
.volunteer-wrap {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: center;
}

.volunteer-text h2 { color: var(--deep); font-size: 1.8rem; margin: 0 0 12px; }
.volunteer-text p { color: var(--gray-600); }

.volunteer-form {
  background: #fff;
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  padding: 28px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

.form-row:last-of-type { grid-template-columns: 1fr; }

.volunteer-form input,
.volunteer-form select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--gray-100);
  border-radius: 6px;
  font-size: 0.92rem;
  font-family: inherit;
  color: var(--gray-900);
  background: var(--gray-50);
}

.volunteer-form input:focus,
.volunteer-form select:focus {
  outline: none;
  border-color: var(--green);
}

.form-note {
  margin-top: 14px;
  font-size: 0.78rem;
  color: var(--gray-600);
}

.form-note a { color: var(--green); }

@media (max-width: 860px) {
  .volunteer-wrap { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

/* Countdown */
.countdown-bar {
  background: var(--deep);
  color: #fff;
  padding: 14px 0;
  border-bottom: 3px solid var(--red);
}

.countdown-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  text-align: center;
}

.countdown-label {
  font-size: 0.85rem;
  color: #e6e6e6;
  font-weight: 600;
}

.countdown-timer {
  display: flex;
  gap: 10px;
}

.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255,255,255,0.08);
  padding: 4px 10px;
  border-radius: 8px;
  min-width: 46px;
}

.countdown-unit span {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--green);
  line-height: 1.2;
}

.countdown-unit small {
  font-size: 0.62rem;
  color: #d9d9d9;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

@media (max-width: 560px) {
  .countdown-label { display: none; }
}

/* Video embed */
.video-embed {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: var(--deep-dark);
  box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Footer */
.site-footer {
  background: var(--deep-dark);
  color: #b7c0cf;
  padding: 40px 0 24px;
  font-size: 0.88rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 24px;
}

.footer-brand { color: #fff; font-weight: 700; margin-bottom: 10px; }

.footer-col h4 {
  color: #fff;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 14px;
}

.footer-col p, .footer-col a {
  display: block;
  color: #b7c0cf;
  text-decoration: none;
  margin-bottom: 8px;
  font-size: 0.88rem;
}

.footer-col a:hover { color: var(--green); }

@media (max-width: 720px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 24px; }
}

.social-row { display: flex; gap: 14px; }

.social-row a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 18px;
  text-align: center;
  font-size: 0.8rem;
}

/* Utilities */
.text-center { text-align: center; }
.mt-32 { margin-top: 32px; }

/* Responsive */
@media (max-width: 860px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .hero-inner { text-align: center; justify-content: center; }
  .btn-row { justify-content: center; }
}

@media (max-width: 720px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
    border-bottom: 1px solid var(--gray-100);
  }
  .nav-links.open { max-height: 400px; }
  .nav-links li { padding: 14px 24px; border-top: 1px solid var(--gray-100); }
  .nav-toggle { display: block; }
  .hero h1 { font-size: 1.9rem; }
}

/* PWA install button */
.install-app-btn {
  position: fixed;
  bottom: 24px;
  left: 24px;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  border: none;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(0,0,0,0.25);
  z-index: 200;
}

.install-app-btn:hover { opacity: 0.92; }

@media (max-width: 480px) {
  .install-app-btn { left: 16px; bottom: 16px; padding: 10px 16px; font-size: 0.8rem; }
}

/* Chat widget */
.chat-launcher {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--deep);
  color: #fff;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(0,0,0,0.25);
  z-index: 200;
}

.chat-launcher:hover { opacity: 0.92; }

.chat-panel {
  position: fixed;
  bottom: 92px;
  right: 24px;
  width: 340px;
  max-width: calc(100vw - 32px);
  height: 440px;
  max-height: calc(100vh - 140px);
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 200;
}

.chat-header {
  background: var(--deep);
  color: #fff;
  padding: 14px 16px;
  font-weight: 700;
  font-size: 0.92rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  line-height: 1;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chat-msg {
  max-width: 85%;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 0.88rem;
  line-height: 1.4;
}

.chat-msg-bot {
  align-self: flex-start;
  background: var(--gray-50);
  color: var(--gray-900);
}

.chat-msg-user {
  align-self: flex-end;
  background: var(--deep);
  color: #fff;
}

.chat-input-row {
  display: flex;
  border-top: 1px solid var(--gray-100);
}

.chat-input-row input {
  flex: 1;
  border: none;
  padding: 12px 14px;
  font-size: 0.88rem;
  font-family: inherit;
}

.chat-input-row input:focus { outline: none; }

.chat-input-row button {
  border: none;
  background: var(--green);
  color: #fff;
  font-weight: 700;
  padding: 0 18px;
  cursor: pointer;
  font-size: 0.85rem;
}

@media (max-width: 480px) {
  .chat-panel { right: 16px; left: 16px; width: auto; }
  .chat-launcher { right: 16px; }
}
