/* ===== CSS Variables (theme) ===== */
:root {
    --bg: #0f172a;
    /* base not used globally */
    --text: #0b1220;
    --muted: #6b7280;
    --white: #fff;
    --cream: #faf6ed;
    --blue: #1b3b7a;
    --blue-80: rgba(27, 59, 122, .8);
    --blue-60: rgba(27, 59, 122, .6);
    --gold: #f1c40f;
    --gold-90: #e0b90e;
    --green: #1f9d55;
    --green-10: rgba(31, 157, 85, .1);
    --accent: #6b21a8;
    --slate: #334155;
    --orange: #f97316;

    --radius: 16px;
    --radius-lg: 20px;
    --shadow: 0 6px 22px rgba(2, 8, 23, .08);
    --shadow-lg: 0 10px 28px rgba(2, 8, 23, .12);
}

/* ===== Base ===== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, "Helvetica Neue", Arial, sans-serif;
    color: var(--text);
    background: #fff;
    line-height: 1.6;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

img {
    max-width: 100%;
    display: block;
}

h1,
h2,
h3,
h4 {
    margin: 0 0 .5rem;
    font-weight: 700;
    color: #111827;
}

h1 {
    font-size: 2.25rem;
    margin-bottom: 1rem;
}

h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

p {
    margin: 0 0 1rem;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ===== Utility Classes ===== */
small,
.xs {
    font-size: .85rem;
}

.s {
    font-size: .95rem;
}

.b {
    font-weight: 600;
}

.center {
    text-align: center;
}

.block {
    display: block;
}

.hidden {
    display: none;
}

.full {
    width: 100%;
}

.mb2 {
    margin-bottom: .5rem;
}

.mt2 {
    margin-top: .5rem;
}

.mt24 {
    margin-top: 1.5rem;
}

.muted {
    color: var(--muted);
}

.small {
    font-size: 12px;
}

.gold {
    color: var(--gold);
}

.green {
    color: var(--green);
}

.accent {
    color: var(--accent);
}

.white {
    color: #fff;
}

.white-80 {
    color: rgba(255, 255, 255, .8);
}

.break {
    word-break: break-all;
}

/* ===== Containers & Sections ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    margin-bottom: 4rem;
}

/* ===== Hero Section ===== */
.hero {
    text-align: center;
    padding: 3rem 1rem;
    background: #fff;
    border-bottom: 1px solid #eee;
}

.hero h1 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero p {
    max-width: 700px;
    margin: 0 auto 1.5rem;
    color: #666;
    font-size: 1.1rem;
}

.btn-home {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #c9a34e;
    color: #fff;
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    transition: background 0.3s;
    min-height: 44px;
}

.btn-home:hover {
    background: #a9893e;
}

/* ===== Mission Section ===== */
.mission {
    background: #fff;
    border-radius: 12px;
    padding: 2.5rem;
    margin: 2rem auto;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    max-width: 1100px;
}

.mission h2 {
    color: #c9a34e;
    margin-bottom: 1.5rem;
    text-align: center;
}

.mission-content {
    /* display: grid; */
    /* grid-template-columns: 1fr 1fr; */
    /* gap: 2rem; */
}

.mission-text p {
    margin-bottom: 1rem;
    color: #555;
}

.mission-image {
    border-radius: 8px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 250px;
    color: #999;
}

/* ===== Section Headers ===== */
.section-head {
    text-align: center;
    margin-bottom: 48px;
}

.section-head h2 {
    font-size: 2rem;
    color: var(--blue);
    line-height: 1.2;
}

.section-head p {
    color: var(--muted);
    font-size: 1.125rem;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: none;
    border-radius: 16px;
    padding: 12px 20px;
    cursor: pointer;
    font-weight: 600;
    box-shadow: var(--shadow);
    transition: .2s all;
    min-height: 44px;
    font-size: 1rem;
    text-align: center;
}

.btn .icon {
    width: 20px;
    height: 20px;
}

.btn-lg {
    padding: 14px 24px;
    font-size: 1.125rem;
    border-radius: 16px;
    min-height: 48px;
}

.btn-xl {
    padding: 16px 24px;
    font-size: 1.125rem;
    border-radius: 18px;
    min-height: 50px;
}

.btn-gold {
    background: var(--gold);
    color: var(--blue);
}

.btn-gold:hover {
    background: var(--gold-90);
}

.btn-outline-white {
    background: transparent;
    border: 1px solid #fff;
    color: #fff;
}

.btn-outline-white:hover {
    background: rgba(255, 255, 255, .1);
}

.btn-primary {
    background: var(--blue);
    color: #fff;
}

.btn-primary:hover {
    background: var(--blue-80);
}

.btn-secondary {
    background: #6b7280;
    color: #fff;
}

.btn-secondary:hover {
    background: #4b5563;
}

.btn-outline-primary {
    background: #fff;
    border: 1px solid var(--blue);
    color: var(--blue);
}

.btn-outline-primary:hover {
    background: var(--blue);
    color: #fff;
}

/* ===== Inputs ===== */
.input,
.textarea,
select {
    width: 100%;
    border: 1px solid #d1d5db;
    background: #fff;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 16px;
    outline: none;
    transition: border .15s, box-shadow .15s;
    min-height: 44px;
    margin-bottom: 1rem;
}

.input:focus,
.textarea:focus,
select:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(27, 59, 122, .15);
}

.input-lg {
    min-height: 48px;
    font-size: 16px;
    padding: 14px 18px;
}

.h10 {
    height: 40px;
    min-height: 40px;
}

.textarea {
    resize: vertical;
    min-height: 80px;
}

.input.trans,
.textarea.trans {
    background: rgba(255, 255, 255, .2);
    border-color: rgba(255, 255, 255, .3);
    color: #fff;
}

.input.trans::placeholder,
.textarea.trans::placeholder {
    color: rgba(255, 255, 255, .6);
}

/* ===== Grid helpers ===== */
.grid {
    display: grid;
    gap: 1.5rem;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.flex {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.two {
    grid-template-columns: repeat(2, 1fr);
}

.impact-grid {
    grid-template-columns: repeat(3, 1fr);
}

.quick-grid {
    grid-template-columns: repeat(3, 1fr);
}

.stories-grid {
    grid-template-columns: repeat(3, 1fr);
}

.testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
}

.donate-grid {
    /* grid-template-columns: 1fr 2fr; */
}

.gap-12 {
    gap: 12px;
}

.vstack-4>*+* {
    margin-top: 8px;
}

.vstack-8>*+* {
    margin-top: 12px;
}

.vstack-12>*+* {
    margin-top: 16px;
}

.vstack-16>*+* {
    margin-top: 20px;
}

/* ===== Cards ===== */
.card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    margin: 1rem;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.card.center {
    text-align: center;
}

.card-ttl {
    font-weight: 700;
    color: var(--blue);
    margin-top: 8px;
}

.card-title {
    font-weight: 700;
    color: var(--blue);
    margin-bottom: 12px;
}

.card-head {
    padding: 20px;
}

.card-body {
    padding: 20px;
}

.card.frosted {
    background: rgba(255, 255, 255, .12);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, .25);
    color: #fff;
}

/* Colored card tints */
.card.blue-gray {
    background: #f9fafb;
}

.card.blue {
    background: #eff6ff;
}

.card.green {
    background: #ecfdf5;
}

.card.orange {
    background: #fff7ed;
}

.card.purple {
    background: #f5f3ff;
}

.card.slate {
    background: #f8fafc;
}

.card.gray {
    background: #f3f4f6;
}

.card.emerald {
    background: #ecfdf5;
}

/* ===== Mini components ===== */
.separator {
    border: none;
    border-top: 1px solid #e5e7eb;
    margin: 24px 0;
}

.label-s {
    font-size: 14px;
    font-weight: 600;
    margin-left: 10px;
}

.kv div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 6px 0;
}

.kv .muted {
    color: var(--muted);
    margin-right: 12px;
}

.icon-12 {
    width: 12px;
    height: 12px;
    vertical-align: -2px;
    margin-right: 6px;
}

.icon-48 {
    width: 48px;
    height: 48px;
}

.icon-xl i,
[data-lucide].icon-xl {
    width: 32px;
    height: 32px;
}

/* ===== Badge ===== */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 6px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    background: var(--gold);
    color: var(--blue);
}

/* ===== Progress ===== */
.progress {
    height: 8px;
    background: #e5e7eb;
    border-radius: 999px;
    overflow: hidden;
}

.progress>span {
    display: block;
    height: 100%;
    background: var(--blue);
}

/* ===== Category & Payment items ===== */
.item {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    cursor: pointer;
    transition: .15s box-shadow, .15s border-color;
}

.item:hover {
    box-shadow: var(--shadow);
}

.item.is-active {
    box-shadow: var(--shadow-lg);
    border-color: var(--gold);
    background: rgba(241, 196, 15, .05);
}

.item .square {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
}

.square.primary {
    background: var(--blue);
}

.square.secondary {
    background: #64748b;
}

.square.accent {
    background: #0ea5e9;
}

.square.green {
    background: var(--green);
}

.square.gold {
    background: var(--gold);
    color: var(--blue);
}

.square.slate {
    background: var(--slate);
}

.square.orange {
    background: var(--orange);
}

.square.purple {
    background: #7c3aed;
}

.square.emerald {
    background: #10b981;
}

/* ===== Tabs ===== */
.tabs {
    margin-bottom: 10px;
}

.tabs-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 18px;
}

.tabs-trigger {
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
    font-weight: 600;
    cursor: pointer;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tabs-trigger.is-active {
    background: var(--blue);
    color: #fff;
    border-color: var(--blue);
}

.tabs-content {
    display: none;
}

.tabs-content.is-active {
    display: block;
}

/* ===== Notes ===== */
.note {
    background: #faf6ed;
    border-radius: 12px;
    padding: 12px;
    border: 1px solid #efe6cf;
}

.note .note-head {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: var(--blue);
    margin-bottom: 6px;
}

.note.green {
    background: var(--green-10);
    border-color: rgba(31, 157, 85, .2);
}

.note.green .note-head {
    color: var(--green);
}

/* ===== Memorial switch ===== */
.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 26px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #e5e7eb;
    transition: .2s;
    border-radius: 999px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    top: 3px;
    background: #fff;
    transition: .2s;
    border-radius: 999px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
}

.switch input:checked+.slider {
    background: var(--blue);
}

.switch input:checked+.slider:before {
    transform: translateX(18px);
}

.memorial {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 6px 0 12px;
}

/* ===== Chips ===== */
.chip {
    display: inline-block;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 8px 12px;
    word-break: break-all;
    font-size: 0.9rem;
}

.chip.wide {
    display: block;
}

/* ===== Quick Amounts ===== */
.quick-amount {
    background: #f5f5f5;
    color: #111;
    border: 1px solid #ccc;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quick-amount.active {
    background: var(--blue);
    color: #fff;
    border-color: var(--blue);
}

/* ===== Payment Methods ===== */
.payment-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.payment-method {
    background: #f3f4f6;
    border: 2px solid transparent;
    border-radius: 1rem;
    padding: 1rem;
    text-align: center;
    font-weight: 500;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.payment-method:hover {
    background: #e5e7eb;
}

.payment-method.active {
    border-color: #2563eb;
    background: #e0f2fe;
}

/* ===== QR Codes & Copy Boxes ===== */
.qr-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.copy-box {
    background: #f9fafb;
    border: 1px solid #d1d5db;
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
}

/* ===== Alerts ===== */
.alert {
    background: #d1fae5;
    border: 1px solid #10b981;
    color: #065f46;
    padding: 1rem;
    border-radius: 0.75rem;
    margin-bottom: 1rem;
}

/* ===== Secure ===== */
.secure {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: var(--muted);
    margin-top: 10px;
    font-size: 0.875rem;
}

/* ===== Contact Section ===== */
.contact-grad {
    color: #fff;
    background: linear-gradient(135deg, var(--blue), rgba(27, 59, 122, .9));
}

.contact-title {
    font-size: 2.25rem;
    margin-bottom: 12px;
    line-height: 1.2;
}

.contact-sub {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, .9);
    margin-bottom: 24px;
    max-width: 720px;
}

.contact-grid {
    grid-template-columns: 1.1fr 1fr;
    align-items: center;
}

.contact-row {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

/* ===== Final CTA ===== */
.final-cta {
    padding: 64px 0;
    background: linear-gradient(90deg, var(--gold), rgba(241, 196, 15, .9));
}

.final-title {
    font-size: 2rem;
    color: var(--blue);
    margin-bottom: 8px;
    text-wrap: balance;
    line-height: 1.2;
}

.final-sub {
    color: rgba(14, 36, 71, .8);
    font-size: 1.125rem;
    max-width: 720px;
    margin: 0 auto 18px;
}

/* ===== Subheads & forms ===== */
.subhead {
    font-size: 1.25rem;
    color: var(--blue);
    font-weight: 700;
    margin-bottom: 16px;
}

.field {
    margin-bottom: 12px;
}

/* ===== Footer ===== */
.footer {
    background: #2c3e50;
    color: #eee;
    padding: 60px 20px 20px;
    font-family: 'Lato', sans-serif;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
}

.footer h3,
.footer h4 {
    color: #f9d342;
    margin-bottom: 15px;
}

.footer-about p {
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.6;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: #eee;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links ul li a:hover {
    color: #f9d342;
}

.footer-contact p {
    font-size: 14px;
    margin: 8px 0;
}

.footer-social .social-icons a {
    color: #eee;
    margin-right: 15px;
    font-size: 20px;
    transition: color 0.3s;
}

.footer-social .social-icons a:hover {
    color: #f9d342;
}

.btn-donate {
    display: inline-block;
    background: #f9d342;
    color: #111;
    padding: 10px 18px;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s;
    text-decoration: none;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-donate:hover {
    background: #fff176;
}

.footer-bottom {
    margin-top: 40px;
    border-top: 1px solid #333;
    text-align: center;
    padding-top: 15px;
    font-size: 13px;
    color: #bbb;
}

/* ===== RESPONSIVE BREAKPOINTS ===== */

/* ===== Tablet (768px - 1024px) ===== */
@media (min-width: 768px) and (max-width: 1024px) {
    .container {
        padding: 0 24px;
    }

    .hero h1 {
        font-size: 2.25rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .donate-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .quick-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .payment-methods {
        grid-template-columns: repeat(3, 1fr);
    }

    .impact-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .testimonials-grid,
    .stories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-container {
        grid-template-columns: repeat(2, 1fr);
        text-align: left;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .section-head h2 {
        font-size: 1.875rem;
    }
}

/* ===== Large Mobile (641px - 767px) ===== */
@media (min-width: 641px) and (max-width: 767px) {
    .container {
        padding: 0 20px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .quick-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .payment-methods {
        grid-template-columns: repeat(2, 1fr);
    }

    .two {
        grid-template-columns: repeat(2, 1fr);
    }

    .mission-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .donate-grid {
        grid-template-columns: 1fr;
    }

    .contact-row {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

/* ===== Small Mobile (480px - 640px) ===== */
@media (max-width: 640px) {
    .container {
        padding: 0 16px;
    }

    .hero {
        padding: 2rem 1rem;
    }

    .hero h1 {
        font-size: 1.75rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .mission {
        padding: 1.5rem;
        margin: 1rem auto;
    }

    .mission h2 {
        font-size: 1.5rem;
    }

    .mission-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .section {
        margin-bottom: 2rem;
    }

    .section-head h2 {
        font-size: 1.75rem;
    }

    .section-head p {
        font-size: 1rem;
    }

    /* Single column layouts */
    .two,
    .quick-grid,
    .payment-methods,
    .donate-grid {
        grid-template-columns: 1fr;
    }

    .impact-grid,
    .stories-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    /* Stack tabs vertically if needed */
    .tabs-list {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .tabs-trigger {
        padding: 12px;
        font-size: 0.875rem;
    }

    /* Adjust card spacing */
    .card {
        margin: 0.5rem;
        padding: 1rem;
    }

    /* Smaller buttons */
    .btn {
        padding: 10px 16px;
        font-size: 0.875rem;
    }

    .btn-xl {
        padding: 14px 18px;
        font-size: 1rem;
    }

    /* Quick amounts */
    .quick-amount {
        padding: 0.75rem;
        font-size: 0.875rem;
    }

    /* Items and squares */
    .item {
        padding: 10px;
        gap: 10px;
    }

    .item .square {
        width: 32px;
        height: 32px;
    }

    /* Payment methods */
    .payment-method {
        padding: 0.75rem;
        font-size: 0.875rem;
    }

    /* Footer */
    .footer {
        padding: 40px 20px 20px;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .footer-about,
    .footer-links,
    .footer-contact,
    .footer-social {
        text-align: center;
    }

    .footer-links ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .footer-links ul li {
        margin-bottom: 5px;
    }

    .social-icons {
        display: flex;
        justify-content: center;
        gap: 20px;
    }

    /* Contact improvements */
    .contact-title {
        font-size: 1.75rem;
    }

    .contact-sub {
        font-size: 1rem;
    }

    .contact-row {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 10px;
    }

    /* Final CTA */
    .final-cta {
        padding: 40px 0;
    }

    .final-title {
        font-size: 1.5rem;
    }

    .final-sub {
        font-size: 1rem;
    }

    /* Subheads */
    .subhead {
        font-size: 1.125rem;
    }

    /* Copy box improvements */
    .copy-box {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    /* KV pairs */
    .kv div {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
        margin: 8px 0;
    }

    .kv .muted {
        margin-right: 0;
        font-weight: 600;
    }
}

/* ===== Extra Small Mobile (below 480px) ===== */
@media (max-width: 479px) {
    .container {
        padding: 0 12px;
    }

    .hero {
        padding: 1.5rem 0.75rem;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .hero p {
        font-size: 0.9rem;
    }

    .mission {
        padding: 1rem;
        margin: 0.5rem auto;
    }

    .mission h2,
    .section-head h2 {
        font-size: 1.25rem;
    }

    .section-head p {
        font-size: 0.9rem;
    }

    .btn {
        width: 100%;
        justify-content: center;
        padding: 12px 16px;
        font-size: 0.875rem;
    }

    .btn-xl {
        padding: 14px 16px;
        font-size: 0.875rem;
    }

    .quick-amount {
        padding: 0.625rem;
        font-size: 0.8rem;
    }

    /* Very compact card layout */
    .item {
        padding: 8px;
        gap: 8px;
    }

    .item .square {
        width: 28px;
        height: 28px;
    }

    /* Smaller input padding */
    .input,
    .textarea,
    select {
        padding: 10px 12px;
        font-size: 16px;
        /* Keep 16px to prevent iOS zoom */
    }

    .input-lg {
        padding: 12px 14px;
    }

    /* Payment methods */
    .payment-method {
        padding: 0.5rem;
        font-size: 0.8rem;
    }

    /* Cards */
    .card {
        margin: 0.25rem;
        padding: 0.75rem;
    }

    /* Footer adjustments */
    .footer {
        padding: 30px 15px 15px;
    }

    .footer-links ul {
        flex-direction: column;
        gap: 10px;
    }

    .social-icons a {
        font-size: 18px;
    }

    /* Subheads */
    .subhead {
        font-size: 1rem;
    }

    /* Contact */
    .contact-title {
        font-size: 1.5rem;
    }

    /* Final CTA */
    .final-cta {
        padding: 30px 0;
    }

    .final-title {
        font-size: 1.25rem;
    }

    .final-sub {
        font-size: 0.9rem;
    }

    /* Chip improvements */
    .chip.wide {
        padding: 6px 10px;
        font-size: 0.75rem;
    }

    /* Tabs */
    .tabs-trigger {
        padding: 10px;
        font-size: 0.8rem;
    }
}

/* ===== Landscape Mobile Specific ===== */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        padding: 1rem;
    }

    .hero h1 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

    .hero p {
        margin-bottom: 1rem;
        font-size: 0.9rem;
    }

    .mission {
        padding: 1rem;
    }

    .section {
        margin-bottom: 1.5rem;
    }

    .card {
        padding: 0.75rem;
    }

    .footer {
        padding: 20px 15px 10px;
    }
}

/* ===== Touch and Hover States ===== */
@media (hover: none) and (pointer: coarse) {

    /* Touch device specific styles */
    .btn:hover,
    .item:hover,
    .card:hover,
    .payment-method:hover,
    .quick-amount:hover {
        transform: none;
        /* Disable hover transforms on touch */
        background: initial;
    }

    .btn:active,
    .item:active,
    .quick-amount:active {
        transform: scale(0.98);
    }

    .card:hover {
        box-shadow: var(--shadow);
        /* Keep original shadow */
    }
}

/* ===== Accessibility Improvements ===== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===== Focus States for Better Accessibility ===== */
.btn:focus-visible,
.input:focus-visible,
.textarea:focus-visible,
select:focus-visible,
.tabs-trigger:focus-visible,
.item:focus-visible,
.quick-amount:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 2px;
}

/* ===== Print Styles ===== */
@media print {

    .hero,
    .footer,
    .btn,
    .payment-methods,
    .tabs {
        display: none !important;
    }

    body {
        font-size: 12pt;
        line-height: 1.4;
        color: #000;
        background: #fff;
    }

    .container {
        padding: 0;
        max-width: none;
    }

    .card {
        border: 1px solid #ccc;
        box-shadow: none;
        page-break-inside: avoid;
    }
}
.pay-panels {
    margin-top: 1rem;
}

.pay-panel {
    display: none;
    padding: 1rem;
    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: 12px;
    background: rgba(0, 0, 0, .02);
}

.pay-panel.is-active {
    display: block;
}

.btn.tiny {
    font-size: .8rem;
    padding: .35rem .6rem;
    border-radius: .5rem;
    margin-left: .5rem;
}

.small.muted {
    color: #6b7280;
    font-size: .85rem;
}

* Container styling */
.pay-panel {
    max-width: 500px;
    margin: 20px auto;
    font-family: Arial, sans-serif;
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 10px;
    background: #f9f9f9;
}

/* Bank list styling */
.bank-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bank-item {
    padding: 12px 15px;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
}

.bank-item:hover {
    background: #e0f0ff;
    border-color: #007bff;
}

/* Bank details styling */
.bank-details {
    margin-top: 10px;
    padding: 15px;
    background: #e9f7ff;
    border-left: 4px solid #007bff;
    border-radius: 5px;
    display: none;
    animation: fadeSlide 0.3s ease forwards;
}

.bank-details div {
    margin-bottom: 8px;
}

/* Copy button styling */
.copy-btn {
    margin-left: 8px;
    padding: 2px 6px;
    font-size: 0.9em;
    cursor: pointer;
}

/* Simple fade+slide animation */
@keyframes fadeSlide {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Teller input */
.field {
    margin-top: 20px;
}
.input {
    width: 100%;
    padding: 8px 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
}