/* Hapsy Family Bond Foundation - Professional NGO Website */
:root {
  --primary: #1B7A4E;
  --primary-dark: #145A3A;
  --primary-light: #2E9E5B;
  --accent: #F4A261;
  --accent-soft: #FFE8D6;
  --dark: #1A2F28;
  --text: #2D3748;
  --text-light: #5A6A75;
  --bg: #F7FAF8;
  --white: #FFFFFF;
  --shadow: 0 4px 20px rgba(27, 122, 78, 0.12);
  --shadow-lg: 0 10px 40px rgba(27, 122, 78, 0.15);
  --radius: 12px;
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, 'Roboto', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

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

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ========== HEADER ========== */
.header {
  background: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-area img {
  height: 52px;
  width: auto;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-text strong {
  font-size: 1.15rem;
  color: var(--primary-dark);
  line-height: 1.2;
}

.logo-text span {
  font-size: 0.75rem;
  color: var(--text-light);
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav a {
  padding: 8px 14px;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--dark);
  border-radius: 8px;
}

.nav a:hover,
.nav a.active {
  background: rgba(27, 122, 78, 0.1);
  color: var(--primary);
}

.nav .btn-donate {
  background: var(--primary);
  color: white !important;
  padding: 10px 20px;
  border-radius: 50px;
  font-weight: 600;
  margin-left: 8px;
}

.nav .btn-donate:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--primary);
  cursor: pointer;
}

/* ========== HERO ========== */
.hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, #2E9E5B 100%);
  color: white;
  padding: 80px 0 70px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
}

.hero h1 {
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
}

.hero p {
  font-size: 1.2rem;
  opacity: 0.95;
  margin-bottom: 28px;
}

.hero-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background: white;
  color: var(--primary-dark);
}

.btn-primary:hover {
  background: var(--accent-soft);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.btn-outline {
  background: transparent;
  color: white;
  border: 2px solid rgba(255,255,255,0.7);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.15);
  border-color: white;
}

.btn-green {
  background: var(--primary);
  color: white;
}

.btn-green:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

/* ========== SECTIONS ========== */
.section {
  padding: 70px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 48px;
}

.section-title h2 {
  font-size: 2.1rem;
  color: var(--dark);
  margin-bottom: 10px;
}

.section-title p {
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

.section-title .line {
  width: 60px;
  height: 4px;
  background: var(--primary);
  margin: 14px auto 0;
  border-radius: 2px;
}

/* ========== STATS ========== */
.stats {
  background: var(--white);
  margin-top: -40px;
  position: relative;
  z-index: 10;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 30px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}

.stat-item h3 {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 4px;
}

.stat-item p {
  font-size: 0.9rem;
  color: var(--text-light);
}

/* ========== CARDS ========== */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.card-icon {
  width: 60px;
  height: 60px;
  background: rgba(27, 122, 78, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--primary);
  margin-bottom: 16px;
}

.card-body {
  padding: 28px;
}

.card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--dark);
}

.card p {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* ========== ABOUT PREVIEW ========== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-img {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-img img {
  width: 100%;
  height: 380px;
  object-fit: cover;
}

.about-text h2 {
  font-size: 2rem;
  color: var(--dark);
  margin-bottom: 16px;
}

.about-text p {
  margin-bottom: 14px;
  color: var(--text-light);
}

.about-text ul {
  list-style: none;
  margin: 20px 0;
}

.about-text ul li {
  padding: 8px 0;
  padding-left: 28px;
  position: relative;
  color: var(--text);
}

.about-text ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
}

/* ========== GALLERY ========== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  box-shadow: var(--shadow);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-item .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
  opacity: 0;
  transition: var(--transition);
  display: flex;
  align-items: flex-end;
  padding: 16px;
  color: white;
  font-size: 0.9rem;
}

.gallery-item:hover .overlay {
  opacity: 1;
}

/* ========== DONATE ========== */
.donate-box {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 40px;
  max-width: 700px;
  margin: 0 auto;
}

.bank-details {
  background: var(--bg);
  border-left: 5px solid var(--primary);
  padding: 24px;
  border-radius: 0 10px 10px 0;
  margin: 24px 0;
}

.bank-details h4 {
  color: var(--primary-dark);
  margin-bottom: 12px;
}

.bank-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px dashed #ddd;
}

.bank-row:last-child {
  border-bottom: none;
}

.bank-row strong {
  color: var(--dark);
}

.copy-btn {
  background: var(--primary);
  color: white;
  border: none;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
}

.copy-btn:hover {
  background: var(--primary-dark);
}

/* ========== CONTACT ========== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
}

.contact-info h3 {
  margin-bottom: 20px;
  color: var(--dark);
}

.info-item {
  display: flex;
  gap: 16px;
  margin-bottom: 22px;
}

.info-item .icon {
  width: 48px;
  height: 48px;
  background: rgba(27, 122, 78, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-form {
  background: var(--white);
  padding: 32px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 6px;
  font-size: 0.9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  font-size: 1rem;
  transition: var(--transition);
  font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(27, 122, 78, 0.15);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

/* ========== FOOTER ========== */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.85);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer h4 {
  color: white;
  margin-bottom: 18px;
  font-size: 1.1rem;
}

.footer p {
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 12px;
}

.footer a {
  display: block;
  padding: 5px 0;
  font-size: 0.95rem;
  opacity: 0.85;
}

.footer a:hover {
  opacity: 1;
  color: var(--primary-light);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  text-align: center;
  font-size: 0.9rem;
}

/* ========== PAGE HEADER ========== */
.page-header {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: white;
  padding: 60px 0 50px;
  text-align: center;
}

.page-header h1 {
  font-size: 2.4rem;
  margin-bottom: 8px;
}

.page-header p {
  opacity: 0.9;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 992px) {
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .hero h1 {
    font-size: 2.2rem;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 16px;
    box-shadow: var(--shadow);
  }
  .nav.open {
    display: flex;
  }
  .nav a {
    width: 100%;
    text-align: center;
  }
  .nav .btn-donate {
    margin: 8px 0 0;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
    padding: 20px;
  }
  .hero {
    padding: 50px 0;
  }
  .hero h1 {
    font-size: 1.9rem;
  }
  .section {
    padding: 50px 0;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-height: 90vh;
  max-width: 90vw;
  border-radius: 8px;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 2.5rem;
  cursor: pointer;
  background: none;
  border: none;
}

/* ========== CREDENTIALS & DOCUMENTS ========== */
.cred-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.cred-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-top: 4px solid var(--primary);
}

.cred-card h3 {
  font-size: 1.05rem;
  color: var(--dark);
}

.cred-card p {
  font-size: 0.9rem;
  color: var(--text-light);
  flex-grow: 1;
}

.cred-card .btn {
  align-self: flex-start;
  padding: 10px 18px;
  font-size: 0.9rem;
}

/* ========== REPORT TABLE ========== */
.report-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin: 24px 0;
}

.report-table th {
  background: var(--primary);
  color: white;
  padding: 14px 16px;
  text-align: left;
  font-weight: 600;
}

.report-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #eee;
}

.report-table tr:last-child td {
  border-bottom: none;
}

.report-table tr:nth-child(even) {
  background: #f8faf9;
}

.report-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.report-meta .meta-item {
  background: white;
  padding: 18px;
  border-radius: 10px;
  box-shadow: var(--shadow);
  text-align: center;
}

.report-meta .meta-item strong {
  display: block;
  font-size: 1.4rem;
  color: var(--primary);
}

/* ========== PARTNER LOGOS ========== */
.partner-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  align-items: center;
  margin: 30px 0;
}

.partner-logos img {
  max-height: 100px;
  max-width: 180px;
  object-fit: contain;
}

/* ========== SOCIAL ICONS ========== */
.social-links {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}

.social-links a {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: var(--transition);
}

.social-links a:hover {
  background: var(--primary);
}

/* ========== NAV DROPDOWN (simple) ========== */
.nav-dropdown {
  position: relative;
}

.nav-dropdown .dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  min-width: 220px;
  box-shadow: var(--shadow-lg);
  border-radius: 8px;
  padding: 8px 0;
  z-index: 100;
}

.nav-dropdown:hover .dropdown-menu {
  display: block;
}

.nav-dropdown .dropdown-menu a {
  display: block;
  padding: 10px 18px;
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .nav-dropdown .dropdown-menu {
    position: static;
    box-shadow: none;
    display: none;
  }
  .nav-dropdown.open .dropdown-menu {
    display: block;
  }
}
