/* ────────────────────────────────────────────────────────────
   PROJECTS.CSS — Eden Sanctuaries
   Category Gateway Page (leads to rescue.html, etc.)
   Fully upgraded, responsive, matching homepage aesthetic
   ──────────────────────────────────────────────────────────── */

:root {
  --green:      #09af11;
  --green-dk:   #067a0b;
  --green-dim:  rgba(9,175,17,0.12);
  --brown:      #180e0e;
  --cream:      #f5f0e8;
  --dark:       #0e0e0e;
  --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(--cream);
  line-height: 1.6;
  padding-top: 62px;
  overflow-x: hidden;
}

/* ── GRAIN OVERLAY (same as homepage) ────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  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); }
  

/* ── STORE HERO ────────────────────────────────────────────── */
.store-hero {
  text-align: center;
  padding: 5rem 6vw 4rem;
  background:
    linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.65)),
    url("../images/storebanner.jpg") center / cover no-repeat;
  border-bottom: 2px solid var(--green);
  margin-bottom: 2rem;
}
.store-hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  color: #fff;
  margin-bottom: 0.5rem;
}
.store-hero h1 span {
  color: var(--green);
}
.store-hero p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 1.5rem;
  line-height: 1.7;
}
.btn-hero {
  display: inline-block;
  background: var(--green);
  color: #fff;
  padding: 0.8rem 2.4rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}
.btn-hero:hover {
  background: var(--green-dk);
  transform: translateY(-2px);
}

/* ── STATS BAND ───────────────────────────────────────────── */
.stats-band {
  background: var(--green);
  padding: 3rem 6vw;
}
.stats-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 2rem;
  text-align: center;
}
.stat-num {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 5vw, 4rem);
  font-weight: 900;
  color: #fff;
  line-height: 1;
  display: block;
}
.stat-label {
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-top: 0.5rem;
  font-weight: 600;
}

/* ── SECTION HEADER ────────────────────────────────────────── */
.section-header {
  max-width: 1100px;
  margin: 0 auto 3rem;
  text-align: center;
}
.section-tag {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}
.section-tag::before,
.section-tag::after {
  content: '';
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--green);
}
.section-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.2rem);
  color: var(--cream);
  line-height: 1.15;
}
.section-title em {
  font-style: italic;
  color: var(--green);
}

/* ── PROJECTS / CATEGORY GRID ─────────────────────────────── */
.projects {
  padding: 2rem 6vw 5rem;
}
.project-cards {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

/* ── CARD (matches homepage, upgraded) ────────────────────── */
.card {
  background: var(--brown);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s cubic-bezier(0.22, 0.68, 0, 1.2),
              box-shadow 0.35s;
  box-shadow: var(--shadow-sm);
  position: relative;
}
.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
}

/* Card image with hover zoom */
.card-image {
  height: 200px;
  overflow: hidden;
  position: relative;
}
.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.card:hover .card-image img {
  transform: scale(1.06);
}

/* Status badge (Urgent / Ongoing / Upcoming) */
.card-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  color: #fff;
}
.card-badge.urgent {
  background: #d04a02;
}
.card-badge.ongoing {
  background: #0a7ab5;
}
.card-badge.upcoming {
  background: #6a5a0a;
}

/* Card body */
.card-body {
  padding: 1.8rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.card-species {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green);
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.card-title {
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--cream);
  line-height: 1.3;
  margin-bottom: 0.6rem;
}
.card-desc {
  font-size: 0.9rem;
  color: rgba(245, 240, 232, 0.6);
  line-height: 1.7;
  font-weight: 300;
  flex: 1;
}

/* ── TEASER TAGS (sneak peek of sub‑projects) ────────────── */
.teaser-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.8rem 0 1.2rem;
}
.tag {
  background: rgba(9, 175, 17, 0.12);
  border: 1px solid rgba(9, 175, 17, 0.2);
  color: var(--green);
  font-size: 0.7rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}
.tag:hover {
  background: rgba(9, 175, 17, 0.2);
  border-color: var(--green);
  transform: scale(1.05);
}

/* ── CARD ACTIONS (full‑width CTA) ────────────────────────── */
.card-actions .btn-primary {
  display: inline-block;
  background: var(--green);
  color: #fff;
  padding: 0.7rem 1.8rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
  border: none;
  width: 100%;
  text-align: center;
  box-shadow: 0 4px 16px rgba(9, 175, 17, 0.25);
}
.card-actions .btn-primary:hover {
  background: var(--green-dk);
  transform: translateY(-2px);
}

/* ── STICKY DONATE ──────────────────────────────────────────── */
.sticky-donate {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background: var(--green);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 0.85rem 1.4rem;
  font-weight: 700;
  font-size: 0.85rem;
  box-shadow: 0 6px 24px rgba(9, 175, 17, 0.4);
  z-index: 998;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.sticky-donate:hover {
  transform: scale(1.06);
  box-shadow: 0 10px 32px rgba(9, 175, 17, 0.5);
}

/* ── FOOTER ────────────────────────────────────────────────── */
footer {
  background: var(--brown);
  padding: 3rem 6vw 2rem;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.socials {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
.socials a {
  opacity: 0.6;
  transition: opacity 0.2s;
}
.socials a:hover {
  opacity: 1;
}
.socials img {
  width: 28px;
  height: 28px;
}
footer p {
  font-size: 0.8rem;
  color: rgba(245, 240, 232, 0.4);
}

/* ── RESPONSIVE ────────────────────────────────────────────── */

/* Small tablets & large phones (up to 900px) */
@media (max-width: 900px) {
  .project-cards {
    grid-template-columns: 1fr 1fr;
  }
  .nav-links {
    display: none;
  }
  .menu-btn {
    display: flex;
  }
}

/* ── TABLET SPECIFIC (768–1024px) ───────────────────────────
   FIXED NAVIGATION + 1 WIDE COLUMN (matches homepage) */
@media (min-width: 768px) and (max-width: 1024px) {
  /* Show hamburger, hide nav links */
  .nav-links {
    display: none !important;
  }
  .menu-btn {
    display: flex !important;
  }

  /* Cards: 1 wide column, natural height */
  .project-cards {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  /* Reduce padding for tablet */
  .store-hero {
    padding: 4rem 5vw;
  }
  .projects {
    padding: 2rem 5vw 4rem;
  }

  /* Slightly shorter card images */
  .card-image {
    height: 180px;
  }
}

/* ── MOBILE PHONES (up to 600px) ──────────────────────────── */
@media (max-width: 600px) {
  .project-cards {
    grid-template-columns: 1fr;
  }
  .store-hero {
    padding: 3rem 5vw;
  }
  .card-image {
    height: 160px;
  }
  .impact-inner {
    gap: 1rem;
  }
  .teaser-tags .tag {
    font-size: 0.6rem;
  }
  .card-actions .btn-primary {
    font-size: 0.8rem;
    padding: 0.6rem 1rem;
  }
}
  /* ── 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;
    }
  }
  
/* ── DESKTOP (1025px+) ────────────────────────────────────── */
@media (min-width: 1025px) {
  .menu-btn {
    display: none !important;
  }
  .nav-links {
    display: flex !important;
  }
}

/* ── 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);
  }
} 