* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  /* continuous scroll (no snap) */
  scroll-snap-type: none;
}

body {
  font-family: "Roboto", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  color: #374151;
  background: #FAF7F6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

/* VARS */
:root{
  --accent: #8A3E3E;
  --muted: #374151;
  --surface: #FAF7F6;
  --card: #F3ECEA;
  --alt-bg: #E9F2F6;
  --gold: #D7A24B;
  --white: #ffffff;
  --shadow: 0 6px 20px rgba(23, 23, 23, 0.06);
  --container: min(1200px, 92%);
  --gutter: 40px;
  --header-height: 64px;
}

/* CONTAINERS */
.container { width: var(--container); margin: 0 auto; }
.narrow { max-width: 900px; margin: 0 auto; }

/* NAV / HEADER */
.topbar {
  background: linear-gradient(180deg, rgba(138,62,62,0.98), rgba(138,62,62,0.95));
  color: var(--white);
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-height);
  z-index: 200;
  display: flex; align-items: center;
  box-shadow: 0 1px 6px rgba(0,0,0,0.08);
  backdrop-filter: blur(4px);
}

.topbar-inner {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
  width: var(--container);
  margin: 0 auto;
  height: var(--header-height);
}


main { margin-top: var(--header-height); }

/* LOGO & RESPONSIVE BRAND (integrated) */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--white);
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  line-height: 1;
  font-size: 1.05rem; /* preserved sizing from original */
}

.brand-logo {
  display: block;
  height: calc(var(--header-height) - 15px); /* leave some breathing room */
  width: auto;
  max-width: 160px;
  border-radius: 6px; /* optional soft corner */
  object-fit: contain;
  background: transparent;
}

.brand-text {
  font-size: 1.02rem;
  white-space: nowrap;
  color: var(--white);
}


.nav { display:flex; gap:18px; align-items:center; }
.nav a {
  color: rgba(255,255,255,0.95);
  text-decoration:none;
  font-weight:600;
  padding:8px 6px;
  border-radius:6px;
}
.nav a:hover { background: rgba(255,255,255,0.04); }

.nav.open {
  display:flex;
  position:absolute;
  right:6%;
  top:var(--header-height);
  background: rgba(130,53,54,0.98);
  border-radius:6px;
  padding:8px 12px;
  flex-direction:column;
}
.nav.open a { padding:8px 6px; }

/* Hamburger (single definition) */
.hamburger {
  display: none; /* overridden by media query at mobile */
  flex-direction: column; /* stack spans vertically */
  justify-content: center;
  align-items: center;
  gap: 4px; /* equal spacing */
  background: transparent;
  border: 0;
  width: 40px;
  height: 40px;
  cursor: pointer;
  z-index: 260; /* ensure above nav */
}

.hamburger span {
  display: block;
  height: 3px;          /* make the line thicker */
  width: 24px;          /* standard width */
  background: var(--white); 
  border-radius: 2px;   /* rounded edges */
}

 /* Ensure brand remains above mobile nav when open */
.nav.open + .hamburger,
.brand + .nav.open {
  z-index: 250;
}

/* SECTIONS - full viewport sections, centered */
.hero, .about-section, .what-section, .events-section, .contact-section {
  min-height: 100dvh; display:flex; align-items:center; justify-content:center; padding:28px 0; box-sizing:border-box;
}

/* HERO */
.hero {
  position:relative; display:flex; align-items:center; justify-content:center;
  min-height:100dvh;
  background-image: linear-gradient(rgba(5,5,5,0.58), rgba(5,5,5,0.32)), url('../images/home_page.JPG');
  background-size: cover; background-position: center; background-repeat: no-repeat;
  color: var(--white);
}
.hero-inner {
  display:grid; grid-template-columns: 1fr 380px; gap:36px; align-items:center;
  width: var(--container); margin: 0 auto;
}
.hero-copy { max-width: 820px; }
.hero-title {
  font-family:"Montserrat",sans-serif; font-size:clamp(28px,4.6vw,52px); line-height:1.03;
  margin:0 0 12px; color:var(--white); font-weight:800;
}
.hero-lead {
  margin:0 0 18px; color:rgba(255,255,255,0.92); font-size:clamp(15px,1.6vw,18px); line-height:1.6; max-width:680px; font-weight:500;
}
.hero-cta { display:flex; gap:12px; align-items:center; flex-wrap:wrap; }

/* Buttons */
.btn {
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  border-radius:10px; padding:10px 16px; font-weight:700; text-decoration:none; cursor:pointer;
  transition: transform .16s ease, box-shadow .16s ease; border:0;
}
.btn:focus { outline: 3px solid rgba(215,162,75,0.22); outline-offset:3px; }
.btn-primary { background: var(--accent); color:#fff; box-shadow: 0 10px 24px rgba(138,62,62,0.16); }
.btn-primary:hover { transform: translateY(-3px); }
.btn-secondary { background: rgba(255,255,255,0.12); color: rgba(255,255,255,0.95); border:1px solid rgba(255,255,255,0.12); }
.btn-secondary:hover { transform: translateY(-3px); }

.hero-visual { display:flex; align-items:center; justify-content:center; }
.hero-image-frame { width:100%; max-width:360px; height:260px; border-radius:12px; overflow:hidden; box-shadow:0 18px 40px rgba(0,0,0,0.25); border:1px solid rgba(255,255,255,0.06); background: rgba(255,255,255,0.05); }
.hero-image-frame img { width:100%; height:100%; object-fit:cover; display:block; }

/* ABOUT */
.about-section { background: var(--surface); padding: 46px 0; }
/* NOTE: using .about-wrap consistently throughout */
.about-wrap {
  display:grid; grid-template-columns: 1fr 420px; gap:40px; align-items:start;
  width: var(--container); margin: 0 auto; padding: 0 12px;
}
.about-body { display:flex; flex-direction:column; gap:18px; }
.about-intro { color:#4b4b4b; font-size:1.02rem; line-height:1.7; max-width:720px; }
.about-lead { color:#5b514f; margin-top:6px; font-weight:500; }
.about-actions { display:flex; gap:12px; margin-top:6px; }
.about-actions .btn { padding:10px 14px; border-radius:8px; }

.about-chips { display:flex; gap:12px; margin-top:14px; }
.chip { background:var(--card); padding:10px 12px; border-radius:10px; box-shadow:var(--shadow); text-align:center; min-width:86px; }
.chip-value { font-weight:800; color:var(--accent); font-size:1.05rem; }
.chip-label { color:#6b6b6b; font-size:0.85rem; }

.about-list { margin-top:16px; list-style:none; padding-left:0; display:grid; gap:10px; }
.about-list li { color:#333; line-height:1.6; }
.about-list strong { color:var(--accent); font-weight:700; margin-right:6px; }

/* ABOUT Media */
.about-media { display:flex; flex-direction:column; gap:12px; align-items:center; }
.about-media-card {
  width:100%; border-radius:14px; overflow:hidden; position:relative;
  box-shadow:0 18px 40px rgba(20,20,20,0.06); background: linear-gradient(180deg, var(--card), #fff);
}
.about-media-img {
  width:100%; height:360px; object-fit:cover; display:block; opacity:1;
  transition: opacity .8s ease-in-out;
}
.about-media-img.is-fading { opacity:0; }
.about-quote {
  position:absolute; left:18px; bottom:18px; background: rgba(138,62,62,0.9); color:#fff;
  padding:10px 14px; border-radius:10px; box-shadow:0 12px 28px rgba(20,20,20,0.12);
}
.quote-text { margin:0; font-weight:700; font-size:0.95rem; }

.about-thumb-row { display:flex; gap:8px; margin-top:8px; }
.about-thumb-row .thumb {
  width:86px; height:64px; object-fit:cover; border-radius:8px;
  box-shadow:0 8px 20px rgba(0,0,0,0.06); border:1px solid rgba(20,20,20,0.03);
  cursor:pointer; opacity:0.75; transition: opacity .2s, transform .2s;
}
.about-thumb-row .thumb:hover { opacity:1; transform:scale(1.05); }
.about-thumb-row .thumb.active { border:2px solid var(--accent); opacity:1; }

/* WHAT WE DO */
.what-grid {
  display:grid; grid-template-columns: 380px 1fr; gap:var(--gutter); width:var(--container); margin:0 auto; align-items:start; padding:0 8px;
}
.what-left ul { list-style:none; display:flex; flex-direction:column; gap:18px; padding:15px 0 0; }
.what-left li { padding-left:14px; position:relative; }

.what-right {
  background:var(--card); padding:15px 22px; border-radius:12px; box-shadow:var(--shadow);
  display:flex; flex-direction:column; align-items:center; text-align:center; gap:18px; position:relative;
  transition: opacity 0.45s ease-in-out, transform 0.2s ease;
}
.what-right.is-fading { opacity:0; transform: translateY(6px); }

.what-side-title { font-family:"Montserrat",sans-serif; font-weight:700; font-size:1.25rem; color:var(--muted); margin:6px 0 4px; }
.what-image-frame { width:min(360px,86%); height:220px; border-radius:8px; overflow:hidden; display:flex; align-items:center; justify-content:center; background:#eee; box-shadow:0 8px 20px rgba(0,0,0,0.06); }
.what-image-frame img { width:100%; height:100%; object-fit:cover; }
.what-detail-centered { max-width:640px; color:#333; font-size:0.98rem; line-height:1.55; }

/* EVENTS */
.events-section { background: var(--surface); }
.events-inner { width:var(--container); margin:0 auto; text-align:left; padding:0 8px; }
.events-title { font-family:"Montserrat"; font-size:2rem; color:var(--muted); margin-bottom:8px; }
.events-intro { color:#6b6b6b; margin-bottom:18px; max-width:860px; }

 /* events grid */
.events-grid { display:grid; grid-template-columns: repeat(3,1fr); gap:22px; }

 /* event-card (kept) */
.event-card {
  background:var(--white); border-radius:10px; padding:12px; box-shadow:var(--shadow); transition: transform .18s ease;
}
.event-card:hover { transform: translateY(-6px); }
.event-thumb img { width:100%; height:170px; object-fit:cover; border-radius:6px; display:block; }

.event-card:focus {
  outline: 3px solid rgba(215,162,75,0.18); outline-offset:4px; transform: translateY(-4px);
}

.event-title { margin-top:10px; color:var(--muted); font-weight:700; }
.event-meta { margin-top:8px; color:#6b6b6b; font-size:0.95rem; }

.events-cta { margin-top:24px; text-align:center; }
.events-cta .btn { padding:12px 22px; border-radius:10px; font-size:1rem; }

/* CONTACT */
.contact-section { background: var(--alt-bg); }
.contact-grid {
  display:grid; grid-template-columns: 1fr 520px; gap:var(--gutter);
  width:var(--container); margin:0 auto; align-items:center; padding:0 8px;
}
.contact-title { font-family:"Montserrat"; font-weight:700; font-size:1.8rem; color:var(--muted); margin-bottom:10px; }
.contact-line { color:#4a4a4a; margin-bottom:8px; }
.contact-link { color:var(--accent); text-decoration:none; font-weight:600; }
.contact-social { margin-top:14px; display:flex; gap:12px; }
.social-item {
  width:40px; height:40px; border-radius:8px; display:inline-flex; align-items:center; justify-content:center;
  color:var(--muted); border:1px solid rgba(55,65,81,0.06); text-decoration:none;
}
.social-item:hover { background: rgba(138,62,62,0.06); color:var(--accent); transform: translateY(-3px); }
.contact-right { background: linear-gradient(180deg, var(--gold), #eac874); border-radius:12px; padding:18px; display:flex; align-items:center; justify-content:center; box-shadow:var(--shadow); }
.contact-image-wrap img { width:100%; height:auto; border-radius:6px; box-shadow:0 8px 20px rgba(0,0,0,0.08); }

/* FOOTER */
.site-footer { background:#fff; padding:18px 0; color:#6b6b6b; text-align:center; border-top:1px solid rgba(20,20,20,0.03); }

/* MODAL (global) */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(3,7,18,0.6); display: none; align-items:center; justify-content:center; z-index:900; padding:24px;
}
.modal-backdrop.open { display:flex; }
.modal {
  width: min(960px,96%); max-height: calc(100dvh - 96px); overflow-y:auto; background:#fff; border-radius:12px;
  box-shadow: 0 30px 80px rgba(6,10,18,0.5); display:grid; grid-template-columns: 1fr 420px; gap:18px; padding:18px; position:relative;
}
.modal-left img { width:100%; height:420px; object-fit:cover; border-radius:8px; display:block; }
.modal-right .meta { color:#6b6b6b; font-weight:600; }
.modal-close { position:absolute; right:14px; top:12px; background:transparent; border:0; font-size:1.1rem; cursor:pointer; color:#666; }

/* VISUALLY HIDDEN */
.visually-hidden { position:absolute !important; left:-9999px !important; top:auto !important; width:1px !important; height:1px !important; overflow:hidden; }

/* =========================
   Events page specific (merged)
   ========================= */

.page-hero {
  padding: 75px 0 15px;
  background: linear-gradient(180deg, rgba(248,247,246,1), rgba(241,239,237,1));
  border-bottom: 1px solid rgba(20,20,20,0.03);
}
.page-hero .container { display:flex; align-items:center; justify-content:space-between; gap:20px; }
.page-hero h1 { font-family: "Montserrat"; font-size: 2rem; color: var(--muted); margin: 0; }
.page-hero p { margin: 0; color: #6b6b6b; max-width: 760px; }

.events-grid-full {
  width: var(--container);
  margin: 40px auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  padding: 0 12px;
}

.event-card-full {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease;
  cursor: pointer;
}
.event-card-full:hover { transform: translateY(-6px); }

.event-card-full .thumb {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.event-card-full .card-body {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.event-card-full .meta {
  color: #6b6b6b;
  font-size: 0.95rem;
  display:flex;
  justify-content: space-between;
  align-items:center;
}
.event-card-full h3 { margin: 0; color: var(--muted); font-size: 1.05rem; }

.events-controls {
  width: var(--container);
  margin: 0 auto;
  padding: 0 12px 36px;
  display:flex;
  justify-content:center;
  gap:12px;
}

.modal-left h2 { margin: 0 0 8px; font-family: "Montserrat"; color: var(--muted); }
.modal-left p { color: #333; line-height: 1.6; }

.modal-right {
  display:flex;
  flex-direction:column;
  gap:10px;
  align-items:flex-start;
  justify-content:flex-start;
}
.modal-right .meta { color:#6b6b6b; font-weight:600; }
.modal-cta { margin-top: 8px; }

/* =========================
   Support / Donate page styles (support-*)
   Replaces legacy .vd-* block. Namespaced and non-invasive.
   ========================= */

.support-hero {
  padding: 0 0 40px;
  background: linear-gradient(180deg, rgba(254, 250, 244, 1), rgba(250, 246, 241, 1));
  border-bottom: 1px solid rgba(20,20,20,0.04);
  color: var(--muted);
}

.support-hero .container.narrow { padding: 0 12px; }

.support-card {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 28px;
  align-items: start;
  background: linear-gradient(180deg, var(--card), #fff);
  padding: 22px;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

/* Left column (content) */
.support-left { display:flex; flex-direction:column; gap:16px; }

.support-left #supportTitle {
  margin: 0; font-family: "Montserrat",sans-serif; font-size:1.4rem; color:var(--muted);
}
.support-lead {
  margin-top:4px; color:#525252; line-height:1.6; max-width:680px;
}

/* contact tiles (email / phone / how to help) */
.contact-tiles {
  display:flex;
  gap:12px;
  margin-top:8px;
  flex-wrap:wrap;
}
.contact-method {
  display:flex;
  gap:10px;
  align-items:center;
  text-decoration:none;
  background: #fff;
  padding:10px 12px;
  border-radius:10px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.04);
  border:1px solid rgba(20,20,20,0.03);
  color: #333;
  min-width: 220px;
}
.contact-method[role="button"] { cursor:pointer; }
.contact-icon { font-size:1.35rem; line-height:1; width:36px; text-align:center; }
.method-title { font-weight:700; color:var(--accent); font-size:0.98rem; }
.method-sub { font-size:0.92rem; color:#575757; }

/* CTA row */
.support-ctas { display:flex; gap:12px; margin-top:8px; flex-wrap:wrap; }

/* Right column (visual + stats) - decorative */
.support-right {
  display:flex;
  flex-direction:column;
  gap:16px;
  align-items:center;
  justify-content:flex-start;
}

/* illustration area (can use background image or keep gradient) */
.support-illustration {
  width:100%;
  height:240px;
  border-radius:15px;
  background: url("../images/elderly.png");
  box-shadow: 0 12px 30px rgba(20,20,20,0.04);
  display:flex;
  align-items:center;
  justify-content:center;
  background-repeat:no-repeat;
  background-position:center;
  background-size:contain;
}

/* Stats shown under illustration */
.support-stats {
  display:flex;
  gap:12px;
  width:100%;
  justify-content:center;
  text-align: center;
}
.support-stats .stat-value { font-weight:800; font-size:1.25rem; color:var(--accent); }
.support-stats .stat-label { color:#666; font-size:0.92rem; }

/* compact volunteer prompt below the card */
.volunteer-compact {
  margin-top:18px;
  background:transparent;
  display:flex;
  gap:12px;
  align-items:center;
  justify-content:flex-start;
  padding:10px 4px;
}
.volunteer-compact .note { color:#4a4a4a; }

/* small contact link tweak to match other pages */
.contact-link { color: var(--accent); font-weight:600; text-decoration:none; }
.contact-link:hover { text-decoration:underline; }

/* copy / focus affordances (re-use existing patterns) */
.contact-method:focus,
.contact-method:hover { transform: translateY(-3px); transition: transform .12s ease; outline: none; }
.contact-method:focus { box-shadow: 0 12px 28px rgba(138,62,62,0.08); }

/* Responsive adjustments for support block */
@media (max-width: 1000px) {
  .support-card { grid-template-columns: 1fr; gap:18px; padding:18px; }
  .support-right { align-items:center; }
  .support-illustration { height:200px; }
}

@media (max-width: 640px) {
  /* make illustration square & centered on mobile */
  .support-illustration {
    width: 220px;
    height: 220px;
    margin: 0 auto;
    border-radius: 12px;
  }

  .contact-tiles { justify-content:space-between; gap:10px; }
  .contact-method { min-width: 140px; flex:1; padding:10px; }
  .support-stats { flex-direction:column; gap:8px; align-items:center; }
  .support-stats div { width:100%; text-align:center; }
}

/* Responsive (consolidated media queries) */
@media (max-width: 1100px) {
  .events-grid { grid-template-columns: repeat(2,1fr); }
  .hero-inner { grid-template-columns: 1fr 360px; gap:28px; }
}

@media (max-width: 1000px) {
  .events-grid { grid-template-columns: repeat(2,1fr); }
  .about-wrap { grid-template-columns: 1fr; gap:22px; }
  .about-media-img { height: 300px; }
  .about-thumb-row { justify-content:flex-start; }
  .about-chips { gap:8px; flex-wrap:wrap; }

  /* Events & hero & other layout adjustments */
  .hero-inner { grid-template-columns: 1fr; gap:18px; padding: 0 18px; }
  .hero-image-frame { width:100%; height:220px; }
  .hero-title { font-size: clamp(22px,7vw,36px); }
  .hero-cta { margin-top:8px; }

  .about-wrap, .what-grid, .events-grid, .contact-grid { grid-template-columns: 1fr; gap:18px; padding: 0 18px; }
  .what-grid { grid-template-columns: 1fr; }
  .what-right { padding:20px; }
  .what-image-frame { height:180px; width:100%; }

  .vd-grid { grid-template-columns: 1fr; padding: 0 18px; } /* harmless if present elsewhere */
  .modal { grid-template-columns: 1fr; }
  .modal-left img { height: 260px; }
}

@media (max-width: 900px) {
  .nav { display:none; }
  .hamburger { display:flex; }
  .hero { background-image: linear-gradient(rgba(5,5,5,0.72), rgba(5,5,5,0.48)), url('../images/home_page.JPG'); }
}

@media (max-width: 640px) {
  .events-grid-full { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .about-media-img { height:220px; }
  .about-chips { gap:8px; }
  .about-thumb-row .thumb { width:72px; height:56px; }

  /* Brand adjustments for very small screens */
  /* .brand-text { display: none; } */
  .brand-logo {
    height: calc(var(--header-height) - 15px);
    max-width: 86px;
  }
  .topbar-inner { gap: 8px; padding-left: 8px; padding-right: 8px; }
}

/* End of stylesheet */
