/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Raleway:ital,wght@0,100..900;1,100..900&family=Tinos:ital,wght@0,400;0,700;1,400;1,700&display=swap');

/* Root color variables (site theme) */
:root {
    --primary: #D4B06A;          /* Main gold color */
    --accent: #C7A892;           /* Secondary accent color */
    --bg: #FDF9F2;               /* Page background color */
    --surface: #FFFFFF;          /* Card/surface background */
    --text: #4A4038;             /* Main text color */
    --muted: #8A7A6C;            /* Muted/secondary text */
    --border: #EFE4D3;           /* Border/light divider color */
    --hero-gradient-1: #EFE4D3;  /* Hero gradient start */
    --hero-gradient-2: #D4B06A;  /* Hero gradient end */
}

/* Reset default browser spacing + use border-box model */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body styling */
body {
    font-family: 'Times New Roman', Times, serif,; /* Main font */
    color: var(--text);
    line-height: 1.6;
    background-color: var(--bg);
}

/* ============================================
   DONATE PAGE — donate.css
   Uses WE1A root variables
   ============================================ */

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

body {
  background: var(--bg) url("../images/floral-wildflower-tile.png") repeat;
  background-size: 420px 280px;
  color: var(--text);
  font-family: 'Georgia', serif;
  line-height: 1.7;
}

/* ── HERO BANNER ───────────────────────────── */
.donate-hero {
  background: linear-gradient(135deg, var(--hero-gradient-1) 0%, var(--hero-gradient-2) 100%);
  text-align: center;
  padding: 10rem 2rem 4rem;
}

.donate-hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.donate-hero p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto;
}

/* ── IMPACT COUNTER STRIP ──────────────────── */
.donate-impact {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 2.5rem 2rem;
}

.impact-stat {
  text-align: center;
}

.impact-stat .count {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  transition: color 0.3s;
}

.impact-stat span.label {
  font-size: 0.85rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.4rem;
  display: block;
}




/* ── DONOR FORM ────────────────────────────── */
.donor-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-field label {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  font-family: 'Arial', sans-serif;
}

.form-field input,
.form-field select {
  padding: 0.8rem 1rem;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  background: var(--surface);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
}

.form-field input:focus,
.form-field select:focus {
  border-color: var(--primary);
}

.form-field input.error {
  border-color: #c0392b;
}

.field-error {
  font-size: 0.78rem;
  color: #c0392b;
  display: none;
  font-family: 'Arial', sans-serif;
}

.field-error.visible {
  display: block;
}

/* ── COMING SOON FALLBACK ──────────────────── */
section > p {
  text-align: center;
  padding: 4rem 2rem;
  font-size: 1.5rem;
  color: var(--muted);
}

/* ── MOBILE ────────────────────────────────── */
@media (max-width: 600px) {
  .donate-hero {
    padding: 3.5rem 1.25rem 2.5rem;
  }

  .amount-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .donate-impact {
    gap: 2rem;
  }
}




    /* ── Carousel wrapper ── */
    .carousel-wrap {
      position: relative;
      width: 100%;
      overflow: hidden;
      border-radius: 12px;
    }

    /* ── Sliding track ── */
    .carousel-track {
      display: flex;
      transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    }

    /* ── Individual slide ── */
 .slide {
  position: relative;
  width: 100%;
  min-width: 100%;
  flex: 0 0 100%;   
  height: 520px;
  overflow: hidden;
}

    .slide img {
      width: 100%;
      height: 100%;
      object-fit: cover;
     object-position: center 25%; 
      display: block;
    }

    /* ── Dark gradient overlay so text is always readable ── */
    .slide-overlay {
      position: absolute;
      inset: 0;
      background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.68) 0%,
        rgba(0, 0, 0, 0.28) 50%,
        rgba(0, 0, 0, 0.08) 100%
      );
    }

    /* ── Text block pinned to bottom-left ── */
    .slide-text {
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      padding: 2rem 2.5rem 3rem;
      color: #ffffff;
    }

    .slide-text h1 {
      font-size: clamp(22px, 4vw, 36px);
      font-weight: 600;
      line-height: 1.2;
      margin-bottom: 0.6rem;
      text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
    }

    .slide-text p {
      font-size: clamp(15px, 2vw, 18px);
      line-height: 1.6;
      opacity: 0.92;
      text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
      max-width: 560px;
    }

    /* ── Prev / Next arrow buttons ── */
    .btn-nav {
      position: absolute;
      top: 50%;
     margin-top: -18px;
      transform: translateY(-50%);
      background: rgba(255, 255, 255, 0.18);
      border: 1px solid rgba(255, 255, 255, 0.35);
      color: #ffffff;
      width: 44px;
      height: 44px;
      border-radius: 50%;
      cursor: pointer;
      font-size: 22px;
      line-height: 1;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: background 0.2s;
      z-index: 10;
    }

    .btn-nav:hover { background: rgba(255, 255, 255, 0.32); }
    .btn-nav:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

    .btn-prev { left: 16px; }
    .btn-next { right: 16px; }

    /* ── Dot indicators ── */
    .dots {
      position: absolute;
      bottom: 18px;
      right: 24px;
      display: flex;
      gap: 7px;
      z-index: 10;
    }

    .dot {
      width: 7px;
      height: 7px;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.45);
      cursor: pointer;
      border: none;
      padding: 0;
      transition: background 0.2s, transform 0.2s;
    }

    .dot.active {
      background: #ffffff;
      transform: scale(1.35);
    }

    .dot:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* ── QR DONATE CAROUSEL ─────────────────────── */
.qr-donate {
  max-width: 1100px;
  margin: 3rem auto;
  padding: 0 1.5rem;
  text-align: center;
}

.qr-donate h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: var(--text);
}

.qr-donate-sub {
  color: var(--muted);
  margin: 0.5rem auto 2rem;
  max-width: 480px;
}

.qr-carousel {
  position: relative;
  overflow: hidden;
  padding: 2rem 3rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(74, 64, 56, 0.18);
}

.qr-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.qr-slide {
  flex: 0 0 100%;
  min-width: 100%;
  display: flex;
  justify-content: center;
}

.qr-card {
  position: relative;
  background: var(--surface);
  border: 2px solid var(--accent);
  border-radius: 16px;
  padding: 2rem 1.5rem 1.75rem;
  width: min(320px, 100%);
  box-shadow: 0 6px 18px rgba(74, 64, 56, 0.18);
}

.qr-flag {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #c0392b;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border-radius: 12px;
  white-space: normal;
  max-width: calc(100% - 16px);
  text-align: center;
  line-height: 1.3;
}

.qr-code-img {
  width: 100%;
  max-width: 220px;
  margin: 1.5rem auto 1rem;
  display: block;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.qr-card h3 {
  font-size: 1.2rem;
  color: var(--text);
}

.qr-handle {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 0.25rem;
}

.qr-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
  z-index: 10;
}

.qr-nav:hover { background: var(--primary); color: #fff; }
.qr-nav:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

.qr-prev { left: 0; }
.qr-next { right: 0; }

.qr-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 1.5rem;
}

.qr-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  border: none;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}

.qr-dot.active {
  background: var(--primary);
  transform: scale(1.3);
}

.qr-dot:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

.qr-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.qr-card img {
  display: block;
  width: 100%;
  max-width: 320px;
  height: auto;
  margin: 0 auto 1.25rem;
  border-radius: 12px;
}

@media (max-width: 640px) {
  .qr-carousel { padding: 0 2.25rem; }
  .qr-nav { width: 34px; height: 34px; font-size: 16px; }
}

 /* ── MOBILE ───────────────────────────────── */
    @media (max-width: 640px) {
      /* Carousel */
      .carousel-wrap{
        margin-top: 9rem;
      }
      .slide { height: 280px; }
 
      .slide-text {
        padding: 1.25rem 1.25rem 2rem;
      }
 
      .btn-nav {
        width: 36px;
        height: 36px;
        font-size: 16px;
      position: absolute;
       top: 50%;
       margin-top: -22px; /* half of the 44px default button height */
}
      }
 
      .btn-prev { left: 10px; }
      .btn-next { right: 10px; }
 
      /* Impact strip */
      .donate-impact {
        gap: 1.5rem;
        padding: 1.5rem 1rem;
      }
 
      .impact-stat .count { font-size: 1.85rem; }
 
      /* Donate section */
      .donate-section {
        margin: 2rem auto;
        padding: 0 1rem;
      }
 
      .donate-section h2 { font-size: 1.35rem; }
 
      /* Frequency toggle — full width on mobile */
      .frequency-toggle {
        width: 100%;
      }
 
      .freq-btn { flex: 1; padding: 0.6rem 0.5rem; }
 
      /* Amount grid — 2 columns on mobile */
      .amount-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.65rem;
      }
 
      /* Form — stack to single column */
      .form-row {
        grid-template-columns: 1fr;
      }
    
 
    @media (max-width: 380px) {
      .slide { height: 240px; }
      .amount-grid { gap: 0.5rem; }
      .amount-tile { font-size: 0.95rem; padding: 0.9rem 0.4rem; }
    }
