/* =========================
   Care for All Tanzania
   Unified styles.css
   - Poppins for UI, Playfair Display for headings
   - Consistent spacing, improved nav, pill buttons
   ========================= */

/* ---------- Root palette & tokens ---------- */
:root {
  --bg: #FDFBF7;
  --text: #121418;
  --muted: #718096;
  --border: #E2DFD8;
  --soft: #F2EFE9;

  --primary: #2b4453;
  --primary-ink: #2C5234;
  --accent: #6B8E6B;
  --accent-ink: #1E3823;

  --shadow: 0 16px 40px rgba(44, 82, 52, 0.06);
  --radius: 24px;

  --container-max: 1100px;
  --gutter: 1rem;
  --nav-height: 96px;
}

/* ---------- Base reset & typography ---------- */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Poppins', Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.7;
  -webkit-font-feature-settings: "liga" 1;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
}

/* Headings use a serif for warmth */
h1, h2, h3, h4 {
 font-family: 'Playfair Display', Georgia, serif;
  letter-spacing: -0.01em;
  font-weight: 600;
  color: var(--primary-ink);
  margin: 0 0 0.75rem 0;
}

p {
color:#000
}

/* Utility */
.container {
  width: min(var(--container-max), calc(100% - 2rem));
  margin: 0 auto;
  padding: 0 1rem;
}

/* Links */
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }

/* Images */
img { display: block; max-width: 100%; height: auto; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: top;
  top: 0;
  z-index: 60;
  background: rgba(255,253,253,0.96);
  backdrop-filter: blur(8px);
  box-shadow: 0 6px 25px rgba(0,0,0,0.04);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
  height: var(--nav-height);
}

/* Brand */
.brand.logo-only {
  display: flex;
  align-items: center;
  gap: .6rem;
}
.brand-logo {
  height: 72px;
  width: auto;
  display: block;
  border-radius: 6px;
  flex-shrink: 0;
}


.site-nav {
  display: flex;
  gap: .5rem;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  margin: 0 1rem;
}
 
.nav-link {
  padding: .55rem .9rem;
  border-radius: 700px;
  color: var(--text);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background .15s ease, color .15s ease, transform .12s ease;
}
.nav-link:hover {
  background: var(--border);
  color: var(--text);
  transform: translateY(-2px);
}
.nav-link.active {
  background: var(--accent);
  color: var(--text);
  box-shadow: 0 6px 18px rgba(107,142,107,0.06);
}

/* Header actions (Donate + Volunteer) */
.header-actions {
  display: flex;
  gap: .6rem;
  align-items: center;
}

/* Base button */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', sans-serif;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: transform .18s ease, box-shadow .18s ease, filter .12s ease;
}

/* Primary (Donate) */
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 8px 30px rgba(43,68,83,0.08);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

/* Volunteer uses root green */
.btn-volunteer,
.header-actions a[href$="volunteer.html"] {
  background: var(--accent);
  color: #fff;
  border: none;
  box-shadow: 0 8px 30px rgba(107,142,107,0.06);
}
.btn-volunteer:hover,
.header-actions a[href$="volunteer.html"]:hover {
  transform: translateY(-3px);
  filter: brightness(0.96);
  box-shadow: 0 18px 45px rgba(107,142,107,0.12);
}

/* Secondary button style (if used elsewhere) */
.btn-secondary {
  background: rgba(215,162,139,0.18);
  color: var(--accent-ink);
}

/* Make header buttons visually consistent on small screens */
@media (max-width: 900px) {
  .header-inner { gap: .6rem; padding: .6rem 0; }
  .brand-logo { height: 64px; }
  .site-nav { order: 3; width: 100%; justify-content: center; flex-wrap: wrap; gap: .4rem; }
  .header-actions { order: 2; gap: .5rem; }
}

/* ---------- Hero ---------- */
.hero2 {
  position: relative;
  min-height: 65vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
  background-image: url("images/hero.png");
  background-size: cover;
  background-position: 60% 40%;
}
.hero2-overlay { position: absolute; inset: 0; background: rgba(47,64,66,0.45); }
.hero2-inner { position: relative; z-index: 1; padding: 5rem 0 3rem; width: 100%; }
.hero2-text h1 { font-size: clamp(2.1rem, 4vw, 3.35rem); margin: 0 0 1rem; color: #fff; }
.hero2-text h4 { font-size: clamp(2.2rem, 4.5vw, 3.6rem); margin: 0 0 1rem; color: #fff; text-shadow: 0 4px 12px rgba(0,0,0,0.35); }

/* Panels */
.hero2-panels { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; max-width: 940px; margin: 0 auto; }
.hero2-panel { padding: 1.6rem; border-radius: var(--radius); background: rgba(255,255,255,0.94); color: var(--text); border: 1px solid rgba(255,255,255,0.55); box-shadow: 0 10px 30px rgba(0,0,0,0.10); }
.panel-btn { display:inline-block; padding:.6rem 1rem; border-radius:999px; border: 1px solid rgba(42,127,138,.35); color: var(--primary-ink); background: rgba(42,127,138,.10); font-weight:700; }

/* ---------- Sections & cards ---------- */
.section { padding: 4.5rem 0; }
.section-soft { background: var(--soft); border-radius: var(--radius); padding: 3rem; }
.card { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 1.6rem; box-shadow: 0 8px 30px rgba(0,0,0,0.04); }

/* CTA layout */
.cta { display: flex; gap: 1rem; align-items: center; justify-content: space-between; padding: 2rem; border-radius: var(--radius); background: var(--soft); }
.cta-actions { display: flex; gap: 1.25rem; flex-wrap: wrap; justify-content: center; }

/* ---------- Forms ---------- */
.form-row { margin-bottom: 1.25rem; display: flex; flex-direction: column; gap: .4rem; }
.form-row label { font-weight: 600; color: var(--text); font-size: .95rem; }
.input {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 2px solid var(--border);
  border-radius: 12px;
  font-family: inherit;
  font-size: 1rem;
  background: #fff;
  color: var(--text);
  transition: border-color .18s ease, box-shadow .18s ease;
}

.input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(42,127,138,0.12); }
textarea.input { min-height: 180px; resize: vertical; line-height: 1.6; }

/* ---------- Gallery, cards, mini-cards ---------- */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; }
.mini-card { background: #fff; padding: 2.5rem 2rem; border-radius: var(--radius); border: 1px solid var(--border); text-align: center; transition: transform .2s ease, box-shadow .2s ease; }
.mini-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }

/* ---------- Footer ---------- */
.site-footer { background: var(--primary-ink); color: rgba(255,255,255,0.85); text-align: center; padding: 28px 24px; font-size: .9rem; }
.site-footer strong { color: #fff; font-weight: 600; }

/* ---------- Lightbox / gallery helpers ---------- */
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.75); display: none; align-items: center; justify-content: center; padding: 1.25rem; z-index: 9999; }
.lightbox[aria-hidden="false"] { display: flex; }


/* ========================= */
/* PHOTO CAROUSEL SLIDERS    */
/* ========================= */

.gallery-section h2 {
  color: var(--primary-ink);
  margin-bottom: 0.5rem;
}

.carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.carousel-track {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding-bottom: 2rem; /* Leaves room for the hover shadow */
  padding-top: 1rem;
 
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel-card {
  /* Shows roughly 3.5 photos on desktop so user knows to scroll */
  flex: 0 0 calc(30% - 1rem); 
  min-width: 280px; 
}

/* Arrow Buttons */
.carousel-btn {
  position: absolute;
  top: 45%;
  transform: translateY(-50%);
  z-index: 10;
  background: #ffffff;
  border: 1px solid var(--border);
  color: var(--primary);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.8rem;
  line-height: 1;
  padding-bottom: 4px; /* Centers the arrow character */
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}

.carousel-btn:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-50%) scale(1.05);
}

.prev-btn { left: -24px; }
.next-btn { right: -24px; }

.carousel-card img {
    width: 100%;
    height: 220px; /* or whatever height you want */
    object-fit: cover;
    border-radius: 8px;
}

.img-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.hover-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1rem;
    background: rgba(0,0,0,0.55);
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.img-wrapper:hover .hover-info {
    opacity: 1;
}

.photo-card {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.photo-overlay-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(0,0,0,0.55);
    color: white;
    font-size: 0.9rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.photo-card:hover .photo-overlay-caption {
    opacity: 1;
}

.photo-card img,
.carousel-card img,
.photo-img {
    width: 100%;
    height: 220px; /* adjust if you want taller/shorter */
    object-fit: cover;
    border-radius: 8px;
    display: block;
}


/* ---------- Google Translate overrides ---------- */
#google_translate_element { margin: 10px; padding: 5px; background: #f0f0f0; border-radius: 6px; display: inline-block; }
.goog-te-banner-frame.skiptranslate { display: none !important; }
body { top: 0px !important; }
.goog-logo-link { display: none !important; }
.goog-text-highlight, .goog-te-gadget span, .goog-te-menu-value span { font-size: 1em !important; line-height: 1.4em !important; }

.header,
.navbar,
.logo-container {
    display: flex;
    align-items: center;
    flex-wrap: nowrap !important;
}

#logo,
#logo img,
.header-logo,
.nav-logo {
    font-size: 1rem !important;
    line-height: normal !important;
    transform: none !important;
    max-height: 60px; /* adjust to your preferred logo size */
    height: auto !important;
    width: auto !important;
}

#logo * {
    all: unset !important;
    display: block !important;
}

/* ---------- Small utility classes ---------- */
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.center { text-align: center; }
.hidden { display: none !important; }

.site-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
}

.social-icon {
  color: var(--bgmuted);
  transition: color 0.2s ease;
}

.social-icon:hover {
  color: var(--muted);
}

/* ========================= */
/* HAMBURGER MENU (MOBILE)   */
/* ========================= */

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 999;
}

.mobile-menu-toggle span {
  width: 26px;
  height: 3px;
  background: var(--primary-ink);
  border-radius: 3px;
  transition: 0.3s ease;
}

/* Animate into X */
.mobile-menu-toggle.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.mobile-menu-toggle.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* MOBILE NAV DROPDOWN */
@media (max-width: 900px) {

  .mobile-menu-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: var(--nav-height);
    left: 0;
    width: 100%;
    background: #ffffff;
    padding: 1.2rem 0;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    border-bottom: 1px solid var(--border);

    /* hidden by default */
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.35s ease, opacity 0.25s ease;
  }

  .site-nav.open {
    max-height: 500px;
    opacity: 1;
  }

  /* Stack header items */
  .header-inner {
    flex-direction: row;
    justify-content: space-between;
  }

  .header-actions {
    display: none; /* optional: hide donate/volunteer in header */
  }
}



    /* ── Checkmark Icon ── */
    .icon-circle {
      width: 72px;
      height: 72px;
      border-radius: 50%;
      background: var(--soft);
      display: flex;
      align-items: center;
      justify-content: center;
      margin: 0 auto 28px;
    }

    .icon-circle svg {
      width: 34px;
      height: 34px;
      stroke: var(--accent);
      stroke-width: 2.5;
      fill: none;
      stroke-linecap: round;
      stroke-linejoin: round;
    }

    .checkmark-path {
      stroke-dasharray: 48;
      stroke-dashoffset: 48;
      animation: drawCheck 0.5s 0.4s ease-out forwards;
    }

    @keyframes drawCheck {
      to { stroke-dashoffset: 0; }
    }

    /* ── Typography ── */
    .thank-you-card h1 {
      font-family: 'Playfair Display', Georgia, serif;
      font-weight: 700;
      font-size: 1.85rem;
      color: var(--primary-ink);
      line-height: 1.25;
      margin-bottom: 14px;
    }

    .message {
      font-size: 1.05rem;
      line-height: 1.7;
      color: var(--text);
      margin-bottom: 10px;
    }

    .response-time {
      font-size: 0.92rem;
      line-height: 1.6;
      color: var(--muted);
      margin-bottom: 36px;
    }

    .divider {
      width: 48px;
      height: 3px;
      background: var(--accent);
      border-radius: 2px;
      margin: 0 auto 32px;
      opacity: 0.5;
    }

    /* ── Button ── */
    .btn-home {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      background: var(--primary);
      color: #fff;
      font-family: 'Inter', sans-serif;
      font-weight: 600;
      font-size: 0.95rem;
      padding: 14px 32px;
      border: none;
      border-radius: calc(var(--radius) / 2);
      cursor: pointer;
      text-decoration: none;
      transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
      box-shadow: 0 4px 14px rgba(43, 68, 83, 0.18);
    }

    .btn-home:hover {
      background: var(--accent-ink);
      transform: translateY(-1px);
      box-shadow: 0 6px 20px rgba(43, 68, 83, 0.22);
    }

    .btn-home:active {
      transform: translateY(0);
    }

    .btn-home svg {
      width: 16px;
      height: 16px;
      stroke: currentColor;
      stroke-width: 2.5;
      fill: none;
      stroke-linecap: round;
      stroke-linejoin: round;
    }

    /* ══════════════════════════════════════════
       FOOTER
    ══════════════════════════════════════════ */
    .site-footer {
      background: var(--primary-ink);
      color: rgba(255, 255, 255, 0.7);
      text-align: center;
      padding: 28px 24px;
      font-size: 0.85rem;
    }

    .site-footer strong {
      color: #fff;
      font-weight: 600;
    }

