/*
Theme Name: BBF Theme
Theme URI: https://brightbangladeshfoundation.org
Author: Abu Talha
Author URI: https://github.com/talha937
Description: Bright Bangladesh Foundation Official Website Theme
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: bbf-theme
*/

/* === BBF BRAND COLORS === */
:root {
  --primary: #2E7D57;
  --primary-light: #4CAF82;
  --secondary: #F5A623;
  --teal: #29A8C0;
  --dark: #1A1A1A;
  --light-bg: #F9F9F9;
  --white: #FFFFFF;
  --text-muted: #666666;
  --border: #E0E0E0;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
}

/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--dark);
  background: var(--white);
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* === TYPOGRAPHY === */
h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; line-height: 1.15; }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }
p  { color: var(--text-muted); }

/* === UTILITY === */
.container   { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section     { padding: 80px 0; }
.section-alt { background: var(--light-bg); }
.text-center { text-align: center; }
.grid-2      { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.grid-3      { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4      { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

.badge {
  display: inline-block;
  background: rgba(245,166,35,0.15);
  color: var(--secondary);
  border: 1px solid rgba(245,166,35,0.3);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 16px;
}

/* === BUTTONS === */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; border-radius: 8px;
  font-size: 1rem; font-weight: 600;
  cursor: pointer; border: none; transition: all 0.25s ease;
}
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: #245c42; transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: white; transform: translateY(-2px); }
.btn-secondary { background: var(--secondary); color: white; }
.btn-secondary:hover { background: #d48f1a; transform: translateY(-2px); }

/* === NAVBAR === */
.navbar {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255,255,255,0.97);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
}
.navbar-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center;
  justify-content: space-between;
  height: 72px;
}
.navbar-logo img { height: 52px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 36px; list-style: none; }
.nav-links a { font-size: 0.95rem; font-weight: 500; color: var(--dark); transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--primary); }
.nav-cta { margin-left: 16px; }
.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--dark); margin: 5px 0; transition: all 0.3s; }

/* === HERO === */
.hero {
  min-height: 90vh;
  display: flex; align-items: center;
  background: linear-gradient(135deg, #f0faf5 0%, #fff8eb 100%);
  position: relative; overflow: hidden;
}
.hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 60px 0;
  width: 100%;
}
.hero-content { flex: 1; max-width: 640px; position: relative; z-index: 1; }
.hero h1 span { color: var(--primary); }
.hero h1 em   { color: var(--secondary); font-style: normal; }
.hero-subtitle { font-size: 1.15rem; color: var(--text-muted); margin: 20px 0 36px; max-width: 520px; }
.hero-buttons  { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-stats    { display: flex; gap: 48px; margin-top: 60px; flex-wrap: wrap; }
.stat-number   { font-size: 2rem; font-weight: 800; color: var(--primary); }
.stat-label    { font-size: 0.85rem; color: var(--text-muted); margin-top: 4px; }
.hero-image    { flex: 1; text-align: right; }
.hero-image img {
  max-height: 420px; border-radius: 20px;
  object-fit: cover;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
  width: 100%;
}

/* === CARDS === */
.card {
  background: var(--white); border-radius: 16px;
  padding: 32px; box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform 0.25s, box-shadow 0.25s;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 12px 40px rgba(0,0,0,0.12); }
.card-icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: rgba(46,125,87,0.1);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.card h3 { margin-bottom: 10px; }
.card p  { font-size: 0.95rem; }

/* === SECTION HEADINGS === */
.section-heading { margin-bottom: 48px; }
.section-heading h2 { margin-bottom: 12px; }
.section-heading p  { max-width: 560px; font-size: 1.05rem; }
.section-heading.centered { text-align: center; }
.section-heading.centered p { margin: 0 auto; }

/* === IMPACT STRIP === */
.impact-strip { background: var(--primary); color: white; padding: 60px 0; }
.impact-strip .stat-number { color: var(--secondary); font-size: 2.5rem; }
.impact-strip .stat-label  { color: rgba(255,255,255,0.75); }
.impact-strip .grid-4      { text-align: center; }

/* === BANNER === */
.banner-image img { border-radius: 16px; width: 100%; }

/* === FOOTER === */
.footer { background: #0f2e1e; color: rgba(255,255,255,0.7); padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand img { height: 50px; margin-bottom: 16px; filter: brightness(0) invert(1); }
.footer-brand p  { font-size: 0.9rem; line-height: 1.8; }
.footer h4 { color: white; font-size: 0.95rem; font-weight: 600; margin-bottom: 16px; }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 10px; }
.footer ul li a { font-size: 0.9rem; transition: color 0.2s; }
.footer ul li a:hover { color: var(--secondary); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
}
.footer-bottom p { font-size: 0.85rem; }

/* === BLOG CARDS === */
.blog-card { border-radius: 14px; overflow: hidden; background: white; box-shadow: var(--shadow); border: 1px solid var(--border); transition: transform 0.25s; }
.blog-card:hover { transform: translateY(-5px); }
.blog-card img  { width: 100%; height: 200px; object-fit: cover; }
.blog-card-body { padding: 24px; }
.blog-tag { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--primary); margin-bottom: 10px; display: block; }
.blog-card h3   { font-size: 1.05rem; margin-bottom: 10px; }
.blog-card-meta { font-size: 0.8rem; color: var(--text-muted); margin-top: 16px; }

/* === CONTACT === */
.contact-form { max-width: 680px; margin: 0 auto; }
.form-group { margin-bottom: 20px; }
.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: 13px 16px;
  border: 1px solid var(--border); border-radius: 8px;
  font-size: 1rem; font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: white;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(46,125,87,0.12);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* === PAGE HERO === */
.page-hero {
  background: linear-gradient(135deg, #1a3d2b 0%, #2e7d57 100%);
  color: white; padding: 80px 0; text-align: center;
}
.page-hero h1 { color: white; }
.page-hero p  { color: rgba(255,255,255,0.8); margin-top: 12px; font-size: 1.1rem; }

/* === PARTNERS === */
.partners-banner {
  background: linear-gradient(135deg, #1a3d2b 0%, #2e7d57 100%);
  border-radius: 16px;
  padding: 40px;
  margin-top: 30px;
}
.partners-banner img { width: 100%; height: auto; object-fit: contain; }

/* === ABOUT STACKED IMAGES === */
.about-img-stack { position: relative; height: 420px; }
.about-img-main {
  width: 80%; height: 370px;
  object-fit: cover; border-radius: 16px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}
.about-img-overlay {
  position: absolute; bottom: 0; right: 0;
  width: 55%; height: 240px;
  object-fit: cover; border-radius: 16px;
  border: 5px solid white;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* === ANIMATIONS === */
.fade-in { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: none; }
body.menu-open { overflow: hidden; }

/* === TABLET === */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .hero-stats { gap: 28px; }
}

/* === MOBILE === */
@media (max-width: 768px) {
  .section { padding: 50px 0; }
  .container { padding: 0 16px; }
  .grid-2 { grid-template-columns: 1fr; gap: 24px; }
  .grid-3 { grid-template-columns: 1fr; gap: 20px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .card { padding: 24px 20px; }
  .page-hero { padding: 50px 16px; }
  .page-hero h1 { font-size: 2rem; }
  .impact-strip { padding: 40px 0; }
  .impact-strip .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer { padding: 40px 0 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .about-img-stack { height: 280px; }
  .about-img-main { width: 75%; height: 250px; }
  .about-img-overlay { width: 50%; height: 180px; }
  .form-grid { grid-template-columns: 1fr; }
  .btn { padding: 12px 24px; font-size: 0.95rem; }
  .hero { min-height: unset; }
  .hero-inner { flex-direction: column; padding: 40px 0; gap: 24px; }
  .hero-image { display: none; }
  .hero-content { max-width: 100%; text-align: center; }
  .hero-buttons { justify-content: center; }
  .hero-stats { justify-content: center; gap: 24px; }
  .stat-number { font-size: 1.6rem; }
  .navbar { padding: 0 16px; }
  .navbar-inner { height: 64px; }
  .navbar-logo img { height: 40px; }
}

/* === MOBILE MENU === */
@media (max-width: 600px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 64px; left: 0; right: 0; bottom: 0;
    background: white;
    padding: 32px 24px;
    gap: 0;
    z-index: 9999;
    overflow-y: auto;
    align-items: center;
    justify-content: flex-start;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a {
    font-size: 1.1rem; font-weight: 600;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
    width: 100%; text-align: center;
    display: block;
  }
  .nav-cta { margin-left: 0; margin-top: 16px; width: 100%; }
  .nav-cta.btn { display: block; width: 100%; text-align: center; padding: 14px; }
  .hamburger { display: block; }
}

/* === SMALL PHONES === */
@media (max-width: 480px) {
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.4rem; }
  h3 { font-size: 1.1rem; }
  .grid-4 { grid-template-columns: 1fr; }
  .impact-strip .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stat-number { font-size: 1.4rem; }
  .page-hero { padding: 40px 16px; }
  .page-hero h1 { font-size: 1.6rem; }
  .section { padding: 40px 0; }
  .navbar-logo img { height: 36px; }
  .about-img-stack { height: 220px; }
  .about-img-main { width: 70%; height: 200px; }
  .about-img-overlay { width: 48%; height: 150px; }
  .footer-grid { gap: 24px; }
}