/*
Theme Name: Baraka Relief
Theme URI: https://barakarelief.com
Author: Baraka Relief
Author URI: https://barakarelief.com
Description: A humanitarian crowdfunding theme for Baraka Relief with full donation flow.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: baraka-relief
*/

/* ── CSS Variables ── */
:root {
  --green: #1a6b3c;
  --green-dark: #0d3d22;
  --green-mid: #1e5c35;
  --green-light: #25924f;
  --green-pale: #e8f5ee;
  --gold: #c8960c;
  --gold-light: #f0b429;
  --cream: #fdf8f0;
  --charcoal: #1c1c1e;
  --text: #2d2d2d;
  --muted: #6b7280;
  --border: #e5e7eb;
  --white: #ffffff;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.14);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Outfit', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }

/* ── Typography ── */
h1, h2, h3, .serif {
  font-family: 'Cormorant Garamond', serif;
  letter-spacing: -0.02em;
}

/* ── Navigation ── */
.br-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 2.5rem;
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.br-nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem; font-weight: 700;
  color: var(--green); text-decoration: none;
}
.br-nav-logo-icon {
  width: 36px; height: 36px; background: var(--green);
  border-radius: 8px; display: flex; align-items: center;
  justify-content: center; font-size: 1.1rem;
}
.br-nav-logo span { color: var(--gold); }
.br-nav-links { display: flex; align-items: center; gap: 2rem; }
.br-nav-links a {
  text-decoration: none; color: var(--text);
  font-size: .9rem; font-weight: 500; transition: color .2s;
}
.br-nav-links a:hover { color: var(--green); }
.br-btn-nav {
  background: var(--green); color: white !important;
  padding: .5rem 1.4rem; border-radius: 8px;
  font-weight: 600; font-size: .875rem; transition: all .2s;
}
.br-btn-nav:hover { background: var(--green-light); transform: translateY(-1px); }

/* ── Buttons ── */
.btn-primary {
  background: var(--gold); color: var(--charcoal);
  padding: .85rem 2rem; border-radius: 10px;
  font-weight: 700; font-size: .95rem;
  transition: all .2s; display: inline-flex;
  align-items: center; gap: 8px;
  border: none; cursor: pointer;
  font-family: 'Outfit', sans-serif;
}
.btn-primary:hover {
  background: var(--gold-light); transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(200,150,12,.35);
}
.btn-ghost {
  background: transparent; color: white;
  border: 2px solid rgba(255,255,255,.45);
  padding: .85rem 2rem; border-radius: 10px;
  font-weight: 600; font-size: .95rem; transition: all .2s;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-ghost:hover { border-color: white; background: rgba(255,255,255,.1); }
.btn-green {
  background: var(--green); color: white;
  padding: .85rem 2rem; border-radius: 10px;
  font-weight: 700; font-size: .95rem;
  transition: all .2s; display: inline-flex;
  align-items: center; gap: 8px;
  border: none; cursor: pointer;
  font-family: 'Outfit', sans-serif; text-decoration: none;
}
.btn-green:hover { background: var(--green-light); transform: translateY(-1px); }

/* ── Section shared ── */
.br-section { padding: 5.5rem 2.5rem; }
.br-container { max-width: 1100px; margin: 0 auto; }
.sec-label {
  text-transform: uppercase; font-size: .75rem;
  font-weight: 600; letter-spacing: .1em;
  color: var(--green); margin-bottom: .6rem;
}
.sec-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  font-weight: 700; line-height: 1.15;
  margin-bottom: 1rem; color: var(--charcoal);
}
.sec-sub { color: var(--muted); font-size: 1rem; max-width: 520px; }

/* ── Progress bar ── */
.progress-bar {
  background: var(--border); border-radius: 6px;
  height: 7px; overflow: hidden;
}
.progress-fill {
  height: 100%; border-radius: 6px;
  background: linear-gradient(90deg, var(--green), var(--green-light));
}

/* ── Campaign card ── */
.campaign-card {
  border-radius: 18px; overflow: hidden;
  border: 1px solid var(--border); background: white;
  transition: box-shadow .25s, transform .2s;
  display: block; text-decoration: none; color: inherit;
}
.campaign-card:hover {
  box-shadow: var(--shadow-lg); transform: translateY(-5px);
}
.campaign-card-img {
  width: 100%; height: 210px; object-fit: cover;
  background: linear-gradient(135deg,#b5e8c8,var(--green));
  display: flex; align-items: center; justify-content: center;
  font-size: 3.5rem; position: relative;
}
.campaign-card-img img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
}
.campaign-card-body { padding: 1.5rem; }
.campaign-tag {
  display: inline-block; background: var(--green-pale);
  color: var(--green); font-size: .72rem; font-weight: 600;
  padding: .2rem .65rem; border-radius: 20px;
  text-transform: uppercase; letter-spacing: .04em; margin-bottom: .65rem;
}
.campaign-card-body h3 {
  font-size: .975rem; font-weight: 600;
  margin-bottom: .5rem; line-height: 1.4;
  font-family: 'Outfit', sans-serif; letter-spacing: 0;
}
.campaign-card-body p { font-size: .85rem; color: var(--muted); margin-bottom: 1.25rem; }
.card-meta {
  display: flex; justify-content: space-between;
  font-size: .8rem; color: var(--muted); margin-bottom: 1rem;
}
.card-meta strong { color: var(--charcoal); }
.btn-card {
  width: 100%; background: var(--green); color: white;
  border: none; border-radius: 10px; padding: .75rem;
  font-weight: 600; font-size: .875rem; cursor: pointer;
  transition: background .2s; font-family: 'Outfit', sans-serif;
}
.btn-card:hover { background: var(--green-light); }

/* ── Footer ── */
.br-footer {
  background: var(--charcoal); color: rgba(255,255,255,.65);
  padding: 3.5rem 2.5rem 2rem;
}
.br-footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 280px 1fr 1fr 1fr; gap: 3rem;
}
.footer-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem; font-weight: 700; color: white; margin-bottom: .75rem;
}
.footer-logo span { color: var(--gold-light); }
.footer-brand p { font-size: .85rem; line-height: 1.7; }
.footer-col h4 {
  color: white; font-size: .8rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .07em; margin-bottom: 1rem;
  font-family: 'Outfit', sans-serif;
}
.footer-col a {
  display: block; color: rgba(255,255,255,.6);
  text-decoration: none; font-size: .875rem;
  margin-bottom: .5rem; transition: color .2s;
}
.footer-col a:hover { color: white; }
.br-footer-bottom {
  max-width: 1100px; margin: 2rem auto 0;
  padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.1);
  display: flex; justify-content: space-between;
  align-items: center; font-size: .8rem; flex-wrap: wrap; gap: .5rem;
}

/* ── Breadcrumb ── */
.br-breadcrumb {
  background: white; border-bottom: 1px solid var(--border);
  padding: .75rem 2.5rem;
}
.br-breadcrumb-inner {
  max-width: 1140px; margin: 0 auto;
  display: flex; align-items: center; gap: .5rem;
  font-size: .82rem; color: var(--muted);
}
.br-breadcrumb a { color: var(--green); text-decoration: none; }
.br-breadcrumb a:hover { text-decoration: underline; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .br-footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .br-nav { padding: 0 1.25rem; }
  .br-nav-links { display: none; }
  .br-section { padding: 3.5rem 1.25rem; }
  .br-breadcrumb { padding: .75rem 1.25rem; }
  .br-footer-inner { grid-template-columns: 1fr; gap: 2rem; }
}
