:root {
    --bg: #0b1b16;
    --ink: #07140f;
    --muted: #6aa28c;
    --brand: #26b36b;
    --brand2: #ff4d3e;
    --card: #0f261e;
    --wash: #0a1813
}

/* Base */
* {
    box-sizing: border-box
}

html, body {
    margin: 0;
    padding: 0;
    background: linear-gradient(180deg,var(--bg),#072019) fixed;
    color: #eaf7f0;
    font-family: Barlow,system-ui,-apple-system,Segoe UI,Roboto
}

html, body {
    max-width: 100%;
    overflow-x: hidden;
}

.container {
    width: min(1100px,92%);
    margin-inline: auto
}

.flex {
    display: flex;
    gap: 18px
}

.center {
    align-items: center
}

.between {
    justify-content: space-between
}

/* Brand */
.badge {
    display: inline-block;
    background: var(--brand2);
    color: #fff;
    padding: .25rem .5rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: .8rem
}

.logo {
    font-family: Montserrat,sans-serif;
    font-weight: 900;
    letter-spacing: .5px;
    margin: .2rem 0 0 0
}

    .logo span {
        color: var(--brand)
    }

.tag {
    margin: .2rem 0 0 0;
    color: var(--muted);
    font-weight: 600
}

/* Header */
.site-header {
    position: relative;
    overflow: hidden;
    padding: 18px 0;
    border-bottom: 1px solid rgba(255,255,255,.08)
}

.confetti {
    position: absolute;
    inset: -30% -10% auto -10%;
    height: 260px;
    background: radial-gradient(circle at 10% 40%, rgba(38,179,107,.25) 0 30%, transparent 31%), radial-gradient(circle at 80% 20%, rgba(255,77,62,.25) 0 28%, transparent 29%), radial-gradient(circle at 60% 80%, rgba(255,255,255,.06) 0 32%, transparent 33%);
    filter: blur(22px);
    pointer-events: none
}

/* Buttons */
.cta-btn {
    background: var(--brand);
    color: #07140f;
    text-decoration: none;
    font-weight: 800;
    padding: .8rem 1.2rem;
    border-radius: 14px;
    box-shadow: 0 8px 18px rgba(38,179,107,.25);
    transition: transform .06s ease;
    display: inline-block;
    border: 0;
    cursor: pointer
}

    .cta-btn.big {
        font-size: 1.1rem;
        padding: 1rem 1.3rem
    }

    .cta-btn:hover {
        transform: translateY(-1px)
    }

/* Hero */
.hero {
    display: grid;
    grid-template-columns: 1.2fr .9fr;
    gap: 24px;
    align-items: flex-start;
    padding: 40px 0 22px
}

.hero-text h2 {
    font-size: 2rem;
    margin: 0 0 .5rem 0
}

.hero-text p {
    font-size: 1.05rem;
    line-height: 1.6
}

/* Polaroid */
.hero-card {
    justify-self: end;
    align-self: flex-start;
    position: relative
}

.polaroid {
    background: #fff;
    color: #222;
    border-radius: 16px;
    padding: 14px 14px 10px;
    width: min(380px,88vw);
    transform: rotate(-2deg);
    box-shadow: 0 30px 60px rgba(0,0,0,.35)
}

.polaroid-img {
    height: auto;
    border-radius: 12px
}

    .polaroid-img img {
        display: block;
        width: 100%;
        height: auto;
        border-radius: 12px
    }

.polaroid-caption {
    text-align: center;
    font-weight: 700;
    color: #1b2b25;
    margin-top: 8px
}

.stickers {
    position: absolute;
    inset: auto -30px -18px auto;
    display: flex;
    gap: 6px
}

.sticker {
    background: #fff;
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 10px 24px rgba(0,0,0,.35)
}

/* Two-column split (home) */
.split {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 26px;
    margin: 34px auto
}

/* Callout card */
.callout {
    background: white;
    padding: 18px;
    border-radius: 16px;
    box-shadow: 0 16px 40px rgba(0,0,0,.35);
    color: black
}

    .callout h4 {
        margin-top: 4px
    }

.rst-logo {
    text-align: center;
    margin: 1rem 0
}

    .rst-logo img {
        max-width: 100%;
        height: auto;
        display: inline-block
    }

/* Gallery */
.gallery {
    padding: 14px 0 6px
}

    .gallery h3 {
        margin-bottom: 6px
    }

.muted {
    color: #9bc7b4
}

.grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 14px;
    margin-top: 12px
}

.tile {
    background: var(--wash);
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 16px;
    padding: 16px;
    min-height: 120px;
    display: grid;
    place-items: center;
    gap: 8px;
    text-align: center
}

    .tile .cover {
        display: inline-grid;
        place-items: center;
        width: 84px;
        height: 84px;
        border-radius: 12px;
        background: repeating-linear-gradient(135deg,#0f261e 0 10px,#133429 10px 20px);
        font-size: 36px
    }

/* Buy / Order form */
.buy {
    margin: 28px auto
}

/* CONSISTENT GRID (fixes the indent) */
/* Checkout form layout – clean 3-column grid, no indent */
.order {
  background: var(--card);
  padding: 18px;
  border-radius: 16px;
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 columns total */
  gap: 16px 24px;
  align-items: end;
  max-width: 1000px;
  margin: 0 auto;
}

/* Each .field is a stacked label/input pair */
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
}

/* All inputs fill their cells, no left indent */
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: .8rem;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.12);
  background: #0a1914;
  color: #eaf7f0;
  margin: 0;
}

/* Specific spans */
.field[style*="grid-column:span 2"],
.field[id$="Street"] {
  grid-column: 1 / -1 !important; /* full width for Street */
}

/* Totals & Stripe button full width */
.totals,
#paypal-button-container,
#stripe-button-container,
.validation-summary-errors {
  grid-column: 1 / -1;
}

/* Responsive: 2 columns mid, 1 on mobile */
@media (max-width: 900px) {
  .order { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .order { grid-template-columns: 1fr; }
}


/* Spans */
.donation {
    grid-column: span 2
}

.totals {
    grid-column: 1 / -1;
    background: #0a1914;
    border: 1px dashed rgba(255,255,255,.15);
    border-radius: 12px;
    padding: 12px
}

    .totals .grand {
        font-size: 1.25rem;
        margin-top: 8px
    }

#paypal-button-container, #stripe-button-container {
    grid-column: 1 / -1;
    margin-top: 6px
}

/* Validation */
.val {
    color: #ffb3b3;
    font-size: .9rem;
    display: block;
    margin-top: 6px;
}

.validation-summary-errors {
    display: block;
    margin-bottom: 1rem;
    color: #ffb5a0
}

.order .validation-summary-errors,
.order .val.validation-summary-errors,
.order .validation-wrap {
    grid-column: 1 / -1;
    width: 100%;
    margin-bottom: 12px;
    display: block
}

/* Footer */
.site-footer {
    padding: 28px 0;
    border-top: 1px solid rgba(255,255,255,.08);
    margin-top: 32px;
    text-align: center
}

.tiny {
    font-size: .85rem
}

/* ====== Barely There Mobile Nav (bt-*) ====== */
.bt-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0
}

.site-header {
    position: relative
}

.bt-nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.15);
    cursor: pointer;
    padding: 0;
    margin-left: 12px
}

.bt-bars, .bt-bars::before, .bt-bars::after {
    content: "";
    display: block;
    width: 20px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    position: relative;
    transition: transform .2s ease,opacity .2s ease
}

    .bt-bars::before {
        position: absolute;
        top: -6px
    }

    .bt-bars::after {
        position: absolute;
        top: 6px
    }

.bt-toggle-open .bt-bars {
    transform: rotate(45deg)
}

    .bt-toggle-open .bt-bars::before {
        transform: rotate(90deg) translateX(-6px)
    }

    .bt-toggle-open .bt-bars::after {
        opacity: 0
    }

.bt-nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.35);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
    z-index: 60
}

.bt-nav-open .bt-nav-backdrop {
    opacity: 1;
    pointer-events: auto
}

.bt-nav {
    position: fixed;
    top: 0;
    right: 0;
    height: 100dvh;
    width: min(86vw,360px);
    background: #111c18;
    box-shadow: 0 20px 60px rgba(0,0,0,.25);
    transform: translateX(100%);
    transition: transform .25s ease;
    z-index: 70;
    padding: 24px
}

    .bt-nav[data-open="true"] {
        transform: translateX(0)
    }

    .bt-nav a {
        display: block;
        padding: 14px 12px;
        border-radius: 10px;
        text-decoration: none;
        color: #fff;
        font-weight: 600
    }

        .bt-nav a:hover {
            color: #ffbdbd;
            background: rgba(255,255,255,0.1)
        }

    .bt-nav .bt-cta {
        background: #00b97f;
        color: #fff;
        text-align: center
    }

        .bt-nav .bt-cta:hover {
            background: #00a46f
        }

.bt-inline-wrap {
    display: flex;
    align-items: center;
    margin-left: auto
}

.site-header .container.flex.between.center {
    gap: 12px
}

@media (min-width:900px) {
    .bt-nav {
        all: unset;
        display: flex;
        gap: 10px;
        align-items: center
    }

        .bt-nav a {
            padding: 8px 12px;
            border-radius: 10px
        }

        .bt-nav .bt-cta {
            padding: 8px 14px
        }

    .bt-nav-backdrop {
        display: none
    }

    .bt-nav-toggle {
        display: none
    }
}

/* Lightbox */
.lb {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    z-index: 1000
}

    .lb[hidden] {
        display: none
    }

.lb-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.8)
}

.lb-box {
    position: relative;
    background: #000;
    border-radius: 12px;
    max-width: 95vw;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,.35)
}

.lb-media {
    padding: 32px 32px 8px;
    display: grid;
    place-items: center
}

    .lb-media img {
        display: block;
        max-width: 100%;
        max-height: 90vh;
        width: auto;
        height: auto
    }

.lb-cap {
    text-align: center;
    color: #fff;
    padding: 8px 16px 16px;
    font-size: .95rem
}

.lb-close {
    position: absolute;
    top: 8px;
    right: 12px;
    color: #fff;
    background: none;
    border: 0;
    font-size: 30px;
    cursor: pointer;
    z-index: 2
}

/* Gallery grid (clickable) */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(180px,1fr));
    gap: 12px
}

    .gallery-grid .tile {
        cursor: pointer;
        text-align: center
    }

    .gallery-grid img {
        width: 100%;
        height: auto;
        border-radius: 10px;
        box-shadow: 0 3px 8px rgba(0,0,0,.15);
        transition: transform .2s, box-shadow .2s
    }

        .gallery-grid img:hover {
            transform: scale(1.05);
            box-shadow: 0 6px 14px rgba(0,0,0,.25)
        }

    .gallery-grid p {
        margin-top: 6px;
        font-size: .9rem;
        color: #eee
    }

/* CTA above Rural Support */
.buy-cta {
    margin: 20px 0 8px;
    text-align: center
}

    .buy-cta .cta-btn.big {
        display: inline-block;
        padding: 14px 28px;
        border-radius: 16px;
        text-decoration: none
    }

/* Rural Support full-width band, 2/3 centered card */
.rst-band {
    width: 100%;
    padding: 48px 0;
    background: radial-gradient(1200px 600px at 50% 0%, rgba(255,255,255,0.04), rgba(0,0,0,0) 60%)
}

    .rst-band .container {
        display: flex;
        justify-content: center
    }

    .rst-band .callout {
        width: 100%;
        max-width: 900px;
        flex: 0 1 66%;
        margin: 0 auto
    }

/* Spacing before gallery after the band */
#gallery {
    margin-top: 32px;
    scroll-margin-top: 80px
}

/* Responsive */
@media (max-width:900px) {
    .hero {
        grid-template-columns: 1fr
    }

    .hero-card {
        justify-self: center
    }

    .split {
        grid-template-columns: 1fr
    }

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

    .order {
        grid-template-columns: 1fr 1fr
    }
}

@media (max-width:560px) {
    .grid {
        grid-template-columns: 1fr
    }

    .order {
        grid-template-columns: 1fr
    }

    .donation, .totals, #stripe-button-container {
        grid-column: 1
    }

    .rst-band .callout {
        flex: 1 1 100%;
        max-width: 100%
    }
}
