@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600&display=swap');

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

:root {
  --rust: #c0372b;
  --rust-light: #d45321;
  --rust-pale: #fdf0c4;
  --cream: #fde89c;
  --cream-dark: #f7d96a;
  --green: #4A6741;
  --green-light: #6B8F62;
  --green-pale: #EBF2E8;
  --brown: #9a1c28;
  --brown-mid: #b52a2a;
  --brown-light: #ea762a;
  --text: #3a0d10;
  --text-muted: #7a3030;
  --border: #f0c060;
  --white: #fffef5;
  --font-display: Impact, 'Arial Narrow', Arial, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--text);
  line-height: 1.6;
}

/* NAV */
nav {
  background: var(--brown);
  border-bottom: 3px solid var(--cream);
  padding: 0 1.25rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 68px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 0.04em;
  color: var(--cream);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-transform: uppercase;
  flex-shrink: 0;
  min-width: 0;
}

.nav-logo img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--cream);
  flex-shrink: 0;
}

.nav-logo-text { display: inline; }

.nav-logo span { color: var(--cream-dark); }

.nav-links {
  display: flex;
  gap: 0;
  list-style: none;
  flex-wrap: nowrap;
  justify-content: center;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-family: var(--font-display);
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(253,232,156,0.75);
  text-decoration: none;
  padding: 0.55rem 0.7rem;
  border-radius: 5px;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}

.nav-links a:hover, .nav-links a.active {
  background: var(--rust);
  color: var(--cream);
}

/* BUTTONS */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.7rem 1.75rem;
  border-radius: 6px;
  text-decoration: none;
  transition: transform 0.1s, filter 0.1s;
  cursor: pointer;
  border: none;
}

.btn:hover { transform: translateY(-2px); filter: brightness(1.08); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--rust);
  color: var(--cream);
  border: 3px solid var(--brown);
}

.btn-primary:hover { background: var(--rust-light); }

.btn-secondary {
  background: var(--cream);
  color: var(--brown);
  border: 3px solid var(--brown);
}

.btn-secondary:hover { background: var(--cream-dark); }

.btn-green {
  background: var(--green);
  color: var(--white);
  border: 3px solid #2e4128;
}

.btn-green:hover { background: var(--green-light); }

/* HERO */
.hero {
  background: var(--brown);
  color: var(--white);
  padding: 5rem 2rem 4.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom: 4px solid var(--cream);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 18px,
    rgba(234,118,42,0.07) 18px,
    rgba(234,118,42,0.07) 36px
  );
}

.hero-inner { position: relative; max-width: 720px; margin: 0 auto; }

.hero-badge {
  display: inline-block;
  background: var(--cream);
  color: var(--brown);
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 1rem;
  border-radius: 4px;
  margin-bottom: 1.5rem;
  border: 2px solid var(--brown);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--cream);
  margin-bottom: 1.25rem;
  -webkit-text-stroke: 1.5px var(--brown);
}

.hero h1 em {
  font-style: normal;
  color: var(--cream-dark);
  -webkit-text-stroke: 1.5px var(--rust);
}

.hero p {
  font-size: 1.1rem;
  color: rgba(253,232,156,0.85);
  max-width: 520px;
  margin: 0 auto 2.25rem;
}

.hero-ctas { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* SECTIONS */
section { padding: 4rem 2rem; }

.section-inner { max-width: 960px; margin: 0 auto; }

.section-label {
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rust-light);
  margin-bottom: 0.4rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 2.8rem);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--brown);
  line-height: 1.1;
  margin-bottom: 1rem;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 2.5rem;
}

/* HOW IT WORKS */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.step {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 1.75rem 1.5rem;
  position: relative;
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--rust-pale);
  color: var(--rust);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.step h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--brown);
  margin-bottom: 0.5rem;
}

.step p { font-size: 0.95rem; color: var(--text-muted); line-height: 1.6; }

/* CTA BAND */
.cta-band {
  background: var(--cream);
  border-top: 3px solid var(--border);
  border-bottom: 3px solid var(--border);
  padding: 3.5rem 2rem;
  text-align: center;
}

.cta-band h2 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--brown);
  margin-bottom: 0.75rem;
}

.cta-band p { color: var(--text-muted); margin-bottom: 1.75rem; font-size: 1.05rem; }

.cta-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* MISSION PAGE */
.mission-story {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 2.5rem;
  margin-bottom: 3rem;
}

.mission-story p { font-size: 1.05rem; color: var(--text-muted); line-height: 1.75; margin-bottom: 1rem; }
.mission-story p:last-child { margin-bottom: 0; }

.money-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

@media (max-width: 600px) {
  .money-split { grid-template-columns: 1fr; }
}

.money-card {
  border-radius: 14px;
  padding: 1.75rem;
}

.money-card.costs {
  background: var(--cream-dark);
  border: 1.5px solid var(--border);
}

.money-card.donated {
  background: var(--green-pale);
  border: 1.5px solid #C4D9C0;
}

.money-card .card-icon {
  font-size: 1.8rem;
  margin-bottom: 0.75rem;
}

.money-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--brown);
  margin-bottom: 0.4rem;
}

.money-card p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; }

.money-card.donated h3 { color: var(--green); }
.money-card.donated p { color: #4A6741; }

/* CAUSES */
.causes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-bottom: 3rem;
}

.cause-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
}

.cause-emoji { font-size: 1.6rem; margin-bottom: 0.6rem; }

.cause-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--brown);
  margin-bottom: 0.3rem;
}

.cause-card p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.55; }

/* PROGRESS */
.progress-box {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 2rem 2.5rem;
  margin-bottom: 1rem;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.75rem;
}

.progress-label {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--brown);
}

.progress-amount {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.progress-amount strong { color: var(--green); font-size: 1.1rem; }

.progress-track {
  width: 100%;
  height: 22px;
  background: var(--cream-dark);
  border-radius: 100px;
  overflow: hidden;
  margin-bottom: 0.6rem;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--green) 0%, var(--green-light) 100%);
  border-radius: 100px;
  transition: width 1s ease;
  position: relative;
}

.progress-pct {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: right;
}

/* PRODUCTS PAGE */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}

.product-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.15s;
}

.product-card:hover { transform: translateY(-3px); }

.product-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
}

.product-img-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  background: var(--cream-dark);
}

.product-body { padding: 1.25rem; }

.product-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--rust-pale);
  color: var(--rust);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  margin-bottom: 0.6rem;
}

.product-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--brown);
  margin-bottom: 0.35rem;
}

.product-desc { font-size: 0.88rem; color: var(--text-muted); line-height: 1.55; margin-bottom: 0.85rem; }

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.product-price {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--rust);
}

.product-badge {
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--green-pale);
  color: var(--green);
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
}

/* ORDER BOX */
.order-box {
  background: var(--brown);
  color: var(--white);
  border-radius: 16px;
  padding: 2.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

@media (max-width: 640px) {
  .order-box { grid-template-columns: 1fr; }
}

.order-box h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 0.75rem;
}

.order-box p { color: #D4C4B0; font-size: 0.95rem; line-height: 1.65; margin-bottom: 1.25rem; }

.order-steps { list-style: none; }

.order-steps li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.92rem;
  color: #D4C4B0;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.order-steps li:last-child { border-bottom: none; }

.order-step-num {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--rust);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

/* FOOTER */
footer {
  background: var(--brown);
  color: #D4C4B0;
  padding: 3rem 2rem 2rem;
}

.footer-inner {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
}

@media (max-width: 640px) {
  .footer-inner { grid-template-columns: 1fr; }
  nav { padding: 0 1rem; }
  .hero { padding: 3.5rem 1.25rem 3rem; }
  section { padding: 3rem 1.25rem; }
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 0.6rem;
}

.footer-tagline { font-size: 0.88rem; line-height: 1.6; max-width: 260px; }

.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brown-light);
  margin-bottom: 0.75rem;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.4rem; }

.footer-col ul a {
  color: #D4C4B0;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.15s;
}

.footer-col ul a:hover { color: var(--cream); }

.footer-bottom {
  max-width: 960px;
  margin: 2rem auto 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.82rem;
  color: var(--brown-light);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* UTILS */
.divider {
  border: none;
  border-top: 1.5px solid var(--border);
  margin: 0;
}

.text-center { text-align: center; }
.mb-0 { margin-bottom: 0 !important; }
