/* ============================================================
   SUPPORT.CSS — Eden Sanctuaries
   Forest-green design, aligned with rescue.css
   ============================================================ */

:root {
  --green:      #09af11;
  --green-dk:   #067a0b;
  --green-dim:  rgba(9,175,17,0.12);
  --forest:     #0d1f06;
  --dark:       #0e0e0e;
  --panel:      #141f0f;
  --card:       #1a2e10;
  --border:     rgba(9,175,17,0.15);
  --text:       #e8ede4;
  --muted:      rgba(232,237,228,0.55);
  --radius:     20px;
  --serif:      'Playfair Display', Georgia, serif;
  --sans:       'Poppins', sans-serif;
  --shadow-sm:  0 8px 24px rgba(0,0,0,0.25);
  --shadow-md:  0 16px 40px rgba(0,0,0,0.35);
  --shadow-lg:  0 24px 56px rgba(0,0,0,0.45);
}

/* ── RESET & BASE ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--dark);
  font-family: var(--sans);
  color: var(--text);
  line-height: 1.6;
  padding-top: 62px;
}

/* ── GRAIN OVERLAY ────────────────────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  background-image: url;
  opacity: 0.025;
}

/* ============================================================
   NAVBAR - PRECISE GRID ALIGNMENT
   ============================================================ */
   .navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(13, 26, 14, 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    transition: 0.4s;
    box-shadow: var(--shadow);
    z-index: 1000;
    
    /* Use grid with minmax for balanced columns */
    display: grid;
    grid-template-columns: minmax(180px, 1fr) auto minmax(180px, 1fr);
    align-items: center;
    padding: 0.6rem 1rem;
    gap: 0.5rem;
  }
  
  /* ── LOGO (left) ──────────────────────────────────────────── */
  .logo-link {
    display: inline-block;
    text-decoration: none;
    color: inherit;
    justify-self: start;
  }
  
  .logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
  
  .logo img {
    height: 32px;
    width: 32px;
    border-radius: 50%;
    object-fit: cover;
  }
  
  .logo span {
    font-weight: 600;
    color: var(--green);
    font-size: 0.95rem;
    white-space: nowrap;
  }
  
  /* ── NAV LINKS (center) ──────────────────────────────────── */
  .nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    justify-self: center;
    margin: 0;
  }
  
  .nav-links a {
    padding: 0.4rem 0.6rem;
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    font-size: 0.9rem;
    white-space: nowrap;
    border-radius: 4px;
    transition: color 0.2s, background 0.2s;
  }
  
  .nav-links a:hover {
    color: var(--green);
    background: rgba(9,175,17,0.08);
  }
  
  .nav-links a.active {
    color: var(--green);
  }
  
  /* ── NAV RIGHT ICONS ──────────────────────────────────────── */
  .nav-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    justify-self: end;
    min-width: 120px; /* Match the approximate width of the logo */
  }
  
  .nav-right .icon-img-btn,
  .nav-right .cart-icon {
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.2s;
  }
  
  .nav-right .icon-img-btn:hover,
  .nav-right .cart-icon:hover {
    background: rgba(255,255,255,0.05);
  }
  
  .nav-right .nav-icon-img,
  .nav-right .cart-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
  
  /* ── CART BADGE ──────────────────────────────────────────── */
  .cart-icon {
    position: relative;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  
  .cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 16px;
    height: 16px;
    font-size: 11px;
    font-weight: bold;
    border-radius: 50%;
    background: red;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
    box-shadow: 0 0 3px rgba(0,0,0,0.3);
    transition: transform 0.2s ease, opacity 0.2s ease;
  }
  
  .cart-badge.hidden {
    opacity: 0;
    visibility: hidden;
  }
  
  #cart-count.pop {
    transform: scale(1.4);
    transform-origin: top right;
  }
  
  /* ── NOTIFICATION BADGE ──────────────────────────────────── */
  .account-icon {
    position: relative;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  
  .account-img {
    width: 32px;
    height: 32px;
    object-fit: contain;
  }
  
  .notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 16px;
    height: 16px;
    font-size: 11px;
    font-weight: bold;
    border-radius: 50%;
    background: red;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
    box-shadow: 0 0 3px rgba(0,0,0,0.3);
    transition: transform 0.2s ease, opacity 0.2s ease;
  }
  
  .notification-badge.hidden {
    opacity: 0;
    visibility: hidden;
  }
  
  .notification-count.pop {
    transform: scale(1.4);
    transform-origin: top right;
  }
  
  /* ── MOBILE MENU BUTTON ──────────────────────────────────── */
  .menu-btn {
    display: none;
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    width: 32px;
    height: 32px;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.2s;
  }
  
  .menu-btn:hover {
    background: rgba(255,255,255,0.05);
  }
  
  .menu-btn img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
  
  /* ── MOBILE SLIDE MENU ───────────────────────────────────── */
  .slide-menu {
    position: fixed;
    top: 0; left: -280px;
    width: 260px; height: 100%;
    background: rgba(13, 26, 14, 0.85);
    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(4px);
    border-right: 1px solid rgba(255,255,255,0.06);
    display: flex;
    flex-direction: column;
    padding: 5rem 1.5rem 2rem;
    gap: 1.5rem;
    transition: left 0.3s ease;
    z-index: 1001;
  }
  .slide-menu.show { left: 0; }
  .slide-menu a {
    color: var(--muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.05rem;
    transition: color 0.2s;
  }
  .slide-menu a:hover,
  .slide-menu a.active { color: var(--green); }
  
  .overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 1000;
  }
  .overlay.show { opacity: 1; visibility: visible; backdrop-filter: blur(3px); }
  
  
/* ── HERO ─────────────────────────────────────────────────── */
.hero-impact {
  position: relative;
  background-size: cover;
  background-position: center;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.hero-impact > .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(13,31,6,0.3) 0%,
    rgba(13,31,6,0.75) 100%
  );
  opacity: 1;
  visibility: visible;
  z-index: 1;
  backdrop-filter: none;
}
.hero-impact .hero-content {
  position: relative;
  z-index: 2;
  padding: 2rem;
  max-width: 680px;
}
.hero-impact .hero-content h1 {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 7vw, 5rem);
  font-weight: 900;
  line-height: 1.05;
  color: #fff;
  margin-bottom: 1.2rem;
}
.hero-impact .hero-content p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.75);
  max-width: 500px;
  margin: 0 auto 2rem;
  line-height: 1.75;
  font-weight: 300;
}

/* ── BUTTONS ──────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  border: none;
  font-family: var(--sans);
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}
.btn.green-btn {
  background: var(--green);
  color: #fff;
  box-shadow: 0 6px 20px rgba(9,175,17,0.35);
}
.btn.green-btn:hover {
  background: var(--green-dk);
  transform: scale(1.04);
  box-shadow: 0 10px 28px rgba(9,175,17,0.45);
}

/* ── IMPACT STATS ─────────────────────────────────────────── */
.impact-stats {
  background: var(--panel);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 4rem 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5rem;
  flex-wrap: wrap;
}
.stat { text-align: center; }
.stat .count {
  font-family: var(--serif);
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--green);
  line-height: 1;
  display: block;
}
.stat p {
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 0.5rem;
}

/* ── SECTION CONTAINERS ───────────────────────────────────── */
.volunteer-section,
.donation-tiers,
.photo-gallery,
.testimonial-slider {
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 2rem;
}

/* Section headings */
.volunteer-section h2,
.donation-tiers h2,
.photo-gallery h2,
.testimonial-slider h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 900;
  color: var(--text);
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
  border-left: 4px solid var(--green);
  padding-left: 1.2rem;
}

/* Section dividers */
.volunteer-section,
.photo-gallery {
  border-bottom: 1px solid var(--border);
}

/* ── VOLUNTEER & CORPORATE CARDS ──────────────────────────── */
.volunteer-cards,
.corporate-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.6rem;
  margin-top: 2.5rem;
}

.vol-card,
.corp-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 2rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.vol-card:hover,
.corp-card:hover {
  transform: translateY(-6px);
  border-color: var(--green);
  box-shadow: var(--shadow-md);
}
.vol-card h3,
.corp-card h3 {
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--green);
  margin-bottom: 0.8rem;
}
.vol-card p,
.corp-card p {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

/* ── DONATION TIERS ───────────────────────────────────────── */
.donation-tiers .tier-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 2rem 1.8rem;
  text-align: center;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
  cursor: pointer;
}
.donation-tiers .tier-card:hover {
  transform: translateY(-8px);
  border-color: var(--green);
  box-shadow: var(--shadow-lg);
}
.donation-tiers .tier-card h3 {
  font-family: var(--serif);
  font-size: 2.2rem;
  color: var(--green);
  margin-bottom: 0.5rem;
  gap: 1.5rem;
  margin-top: 2rem;
}
.donation-tiers .tier-card p {
  font-size: 0.9rem;
  color: var(--muted);
}

/* ── SUGGESTED AMOUNT PILLS ───────────────────────────────── */
.suggested-amounts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  margin: 1.5rem 0;
}
.pill {
  background: var(--green-dim);
  color: var(--green);
  border: 1px solid var(--border);
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.2s;
}
.pill.active,
.pill:hover {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}

/* ── TESTIMONIAL SLIDER ───────────────────────────────────── */
.testimonial-slider {
  background: var(--panel);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin: 3rem auto;
}
.slide { display: none; }
.slide.active { display: block; }
.slide p {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-style: italic;
  line-height: 1.5;
  color: var(--text);
}
.slide span {
  color: var(--green);
  font-weight: 700;
  margin-top: 1rem;
  display: inline-block;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
}
.slider-controls button {
  background: var(--green-dim);
  color: var(--green);
  border: 1px solid var(--border);
  padding: 0.6rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.slider-controls button:hover {
  background: var(--green);
  color: #fff;
}

/* ── PHOTO GALLERY ────────────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}
.gallery-item {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.3s;
}
.gallery-item:hover { transform: scale(1.03); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ── POPUP FORMS ──────────────────────────────────────────── */
.popup-form {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 560px;
  max-height: 85vh;
  overflow-y: auto;
  background: var(--panel);
  border-radius: 28px;
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  z-index: 2000;
}
.popup-form.show {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.popup-form.hidden { display: none; }

.popup-form h3 {
  font-family: var(--serif);
  font-size: 1.8rem;
  color: var(--text);
}
.popup-form label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.popup-form input,
.popup-form textarea,
.popup-form select {
  width: 100%;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.05);
  color: var(--text);
  font-family: var(--sans);
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.popup-form input:focus,
.popup-form textarea:focus,
.popup-form select:focus {
  border-color: var(--green);
  outline: none;
  box-shadow: 0 0 0 3px rgba(9,175,17,0.15);
}
.popup-form input::placeholder,
.popup-form textarea::placeholder { color: rgba(255,255,255,0.25); }

.popup-form button[type="submit"] {
  background: var(--green);
  color: #fff;
  border: none;
  padding: 0.9rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s;
}
.popup-form button[type="submit"]:hover { background: var(--green-dk); }
.popup-form .close-btn {
  background: rgba(255,255,255,0.06);
  color: var(--muted);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  align-self: flex-end;
  transition: background 0.2s, color 0.2s;
}
.popup-form .close-btn:hover {
  background: rgba(255,255,255,0.12);
  color: var(--text);
}

/* ── FOOTER ─────────────────────────────────────────────────── */
footer {
    background: #0d1a0e;
    padding: 2rem 1rem;
    text-align: center;
    border-top: 1px solid #1a3a1a;
    margin-top: 2rem;
}

.socials {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.socials img {
    width: 28px;
    height: 28px;
    transition: opacity 0.2s;
}

.socials img:hover { opacity: 0.7; }

footer p {
    font-size: 12px;
    color: #6f8f72;
}

 /* ============================================================
   RESPONSIVE NAV VISIBILITY
   ============================================================ */
   @media (max-width: 768px) {
    .nav-links { display: none !important; }
    .menu-btn { display: flex !important; }
    .footer-top { grid-template-columns: 1fr 1fr; gap: 2rem; padding: 3rem 6vw 2rem; }
  }
  
  @media (min-width: 960px) {
    .menu-btn { display: none !important; }
    .nav-links { display: flex !important; }
  }
  
  @media (max-width: 959px) {
  .navbar {
    justify-content: space-between;
  }
  .logo {
    margin: 0;          /* remove any centering */
    flex: 0 0 auto;     /* prevent stretching */
  }
  .nav-right {
    margin-left: auto;  /* keep icons at far right */
    display: flex;
    align-items: center;
    gap: 12px;
  }
  @media (max-width: 480px) {
    .footer-top { grid-template-columns: 1fr; }
    .popup-form { padding: 1.8rem 1.2rem; width: 96%; }
  }
}

  /* ── RESPONSIVE NAV ──────────────────────────────────────── */
  @media (max-width: 959px) {
    .navbar {
      grid-template-columns: 1fr auto;
      gap: 0.5rem;
    }
    
    .nav-links {
      display: none !important;
    }
    
    .menu-btn {
      display: flex !important;
      align-items: center;
      justify-content: center;
    }
    
    .nav-right {
      min-width: auto;
    }
  }
 /* ── LARGE SCREENS (above 1300px) ────────────────────────── */
 @media (min-width: 1300px) {
  .dashboard-container {
    padding: 0 2rem;
  }
  
  /* Desktop: add horizontal padding to match content */
  .navbar {
    padding-left: calc(2rem + (100% - 1300px) / 2);
    padding-right: calc(2rem + (100% - 1300px) / 2);
  }
}