/* Toeta leht — kujundus järgib tutvustus-lehe visuaalset keelt */

:root {
    --toeta-radius: 14px;
    --toeta-warm: linear-gradient(135deg, #ff5e5b, #e11d48);
    --toeta-accent: var(--accent-color, #00d1b2);
    /* Aktsendi toonid muutujatena, et sait saaks oma värvi (digiaed: roheline, allpool) */
    --toeta-accent-hover: var(--accent-hover, #00c4a7);
    --toeta-accent-rgb: 0, 209, 178;
    --toeta-ink: #00b89e;          /* aktsendivärvis tekst heledal pinnal */
    --toeta-ink-dark: #5eead4;     /* sama tumedal pinnal */
    --toeta-link: var(--text-link, #00b89e);
    --toeta-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 4px 12px rgba(15, 23, 42, 0.04);
    --toeta-shadow-hover: 0 1px 2px rgba(15, 23, 42, 0.05), 0 12px 28px rgba(15, 23, 42, 0.08);
    --toeta-border: 1px solid rgba(15, 23, 42, 0.08);
}

/* Digiaed (lasteaedade sait) — aia roheline #19804b (sama mis site_theme_style()) */
body.toeta-site-digiaed {
    --toeta-accent: #19804b;       /* = digiaia põhivärv; valge tekst 5,0:1 */
    --toeta-accent-hover: #156b3f;
    --toeta-accent-rgb: 25, 128, 75;
    --toeta-ink: #19804b;
    --toeta-ink-dark: #6ee7a8;
    --toeta-link: #19804b;
}

[data-theme="dark"] body.toeta-site-digiaed {
    --toeta-link: #6ee7a8;   /* tumedal pinnal hele roheline, muidu link ei loe */
}

[data-theme="dark"] {
    --toeta-shadow: 0 1px 2px rgba(0, 0, 0, 0.25), 0 4px 16px rgba(0, 0, 0, 0.2);
    --toeta-shadow-hover: 0 1px 2px rgba(0, 0, 0, 0.3), 0 14px 32px rgba(0, 0, 0, 0.32);
    --toeta-border: 1px solid #2a2a3e;
}

/* Hero */
.toeta-hero {
    padding: 3.75rem 1.5rem 3rem;
    text-align: center;
}

.toeta-heart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background: var(--toeta-warm);
    color: #fff;
    font-size: 2.1rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 10px 28px rgba(255, 94, 91, 0.35);
}

.toeta-heart i {
    animation: toeta-beat 2.4s ease-in-out infinite;
}

@keyframes toeta-beat {
    0%, 30%, 100% { transform: scale(1); }
    8% { transform: scale(1.14); }
    16% { transform: scale(1); }
    22% { transform: scale(1.1); }
}

@media (prefers-reduced-motion: reduce) {
    .toeta-heart i { animation: none; }
}

.toeta-hero-title {
    font-size: 2.4rem;
    font-weight: 700;
    margin: 0 0 0.9rem;
    letter-spacing: -0.02em;
    color: var(--text-primary, #0f172a);
    line-height: 1.15;
}

[data-theme="dark"] .toeta-hero-title {
    color: #f8fafc;
}

.toeta-hero-subtitle {
    font-size: 1.1rem;
    line-height: 1.55;
    max-width: 560px;
    margin: 0 auto;
    color: var(--text-secondary, #475569);
}

[data-theme="dark"] .toeta-hero-subtitle {
    color: #cbd5e1;
}

.toeta-kofi-btn {
    margin-top: 1.75rem;
    height: 3.1rem;
    padding: 0 1.9rem;
    font-size: 1.05rem;
    font-weight: 600;
    border: none;
    border-radius: 999px;
    color: #fff;
    background: var(--toeta-accent);
    box-shadow: 0 6px 18px rgba(var(--toeta-accent-rgb), 0.35);
    transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

/* Bulma .button[disabled] lähtestaks täite lehe taustaks → valge tekst kaoks (smoke_test_button_accent_specificity) */
.button.toeta-kofi-btn[disabled] { background-color: var(--toeta-accent); }

.toeta-kofi-btn:hover,
.toeta-kofi-btn:focus {
    transform: translateY(-2px);
    background: var(--toeta-accent-hover);
    box-shadow: 0 10px 26px rgba(var(--toeta-accent-rgb), 0.45);
    color: #fff;
}

.toeta-note {
    color: var(--text-muted, #6b7280);
    font-size: 0.85rem;
    margin-top: 1rem;
}

[data-theme="dark"] .toeta-note {
    color: #94a3b8;
}

/* Sisukaardid */
.toeta-section {
    padding: 0 1.5rem 3.5rem;
}

.toeta-container {
    max-width: 880px;
    margin: 0 auto;
}

.toeta-card {
    background: var(--bg-card, #fff);
    border: var(--toeta-border);
    border-radius: var(--toeta-radius);
    padding: 1.5rem;
    height: 100%;
    box-shadow: var(--toeta-shadow);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.toeta-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--toeta-shadow-hover);
}

[data-theme="dark"] .toeta-card {
    background: #1c1c2a;
}

.toeta-card-head {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 1.1rem;
}

.toeta-card-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
}

.toeta-card-icon.tone-cool { background: var(--toeta-accent); }

.toeta-card-title {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0;
    color: var(--text-primary, #0f172a);
}

[data-theme="dark"] .toeta-card-title {
    color: #f1f5f9;
}

.toeta-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.toeta-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.45rem 0;
    font-size: 0.92rem;
    line-height: 1.5;
    color: var(--text-secondary, #475569);
}

[data-theme="dark"] .toeta-list li {
    color: #cbd5e1;
}

.toeta-list-icon {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    margin-top: 0.05rem;
}

.toeta-list-icon.tone-cool {
    background: rgba(var(--toeta-accent-rgb), 0.12);
    color: var(--toeta-ink);
}

[data-theme="dark"] .toeta-list-icon.tone-cool {
    background: rgba(var(--toeta-accent-rgb), 0.2);
    color: var(--toeta-ink-dark);
}

.toeta-list a {
    color: var(--toeta-link);
}

.toeta-list a:hover {
    text-decoration: underline;
}

/* Valikurea all on kohe järgmine kaardirida — vahe tuleb .toeta-row-st, mitte sektsiooni täidisest */
.toeta-section-choice {
    padding-bottom: 0;
}

/* Pluss — toetamise peamine tee, seepärast esiletõstetud */
.toeta-plus {
    border: 2px solid var(--toeta-accent);
}

.toeta-plus-price {
    margin: -0.25rem 0 0.75rem;
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.toeta-plus-num {
    font-size: 1.9rem;
    font-weight: 700;
    line-height: 1.1;
    color: var(--text-primary, #0f172a);
}

[data-theme="dark"] .toeta-plus-num {
    color: #f8fafc;
}

.toeta-plus-unit {
    font-size: 0.88rem;
    color: var(--text-muted, #6b7280);
}

[data-theme="dark"] .toeta-plus-unit {
    color: #94a3b8;
}

.toeta-plus-btn,
.toeta-plus-btn:hover,
.toeta-plus-btn:focus {
    margin-top: 0;
    color: var(--on-accent, #001f1a);   /* valge türkiisil oleks 1,95:1 */
}

body.toeta-site-digiaed .toeta-plus-btn,
body.toeta-site-digiaed .toeta-plus-btn:hover,
body.toeta-site-digiaed .toeta-plus-btn:focus {
    color: #fff;
}

/* Pangaülekanne ja koolikontakt */
.toeta-row {
    margin-bottom: 1.5rem;
}

.toeta-bank {
    margin: 0;
}

.toeta-bank dt {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted, #6b7280);
    margin-bottom: 0.15rem;
}

.toeta-bank dd {
    margin: 0 0 0.85rem;
    font-size: 0.98rem;
    color: var(--text-primary, #0f172a);
    overflow-wrap: anywhere;
}

.toeta-bank dd:last-child {
    margin-bottom: 0;
}

[data-theme="dark"] .toeta-bank dt {
    color: #94a3b8;
}

[data-theme="dark"] .toeta-bank dd {
    color: #f1f5f9;
}

.toeta-bank-iban {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.toeta-copy {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    border: var(--toeta-border);
    background: transparent;
    color: var(--text-secondary, #475569);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.toeta-copy:hover,
.toeta-copy:focus-visible {
    background: rgba(var(--toeta-accent-rgb), 0.12);
    color: var(--toeta-ink);
}

[data-theme="dark"] .toeta-copy {
    color: #cbd5e1;
}

[data-theme="dark"] .toeta-copy:hover,
[data-theme="dark"] .toeta-copy:focus-visible {
    background: rgba(var(--toeta-accent-rgb), 0.2);
    color: var(--toeta-ink-dark);
}

.toeta-card-text {
    margin: 0 0 1.1rem;
    font-size: 0.92rem;
    line-height: 1.55;
    color: var(--text-secondary, #475569);
}

[data-theme="dark"] .toeta-card-text {
    color: #cbd5e1;
}

.toeta-card-note {
    margin-top: 0.9rem;
    font-size: 0.82rem;
    line-height: 1.45;
    color: var(--text-muted, #6b7280);
}

[data-theme="dark"] .toeta-card-note {
    color: #94a3b8;
}

.toeta-contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    height: 2.6rem;
    padding: 0 1.25rem;
    border-radius: 999px;
    border: 1px solid var(--toeta-accent);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--toeta-ink);
    background: transparent;
    transition: background-color 0.18s ease, color 0.18s ease;
}

.toeta-contact-btn:hover,
.toeta-contact-btn:focus {
    background: var(--toeta-accent);
    color: #fff;
}

[data-theme="dark"] .toeta-contact-btn {
    color: var(--toeta-ink-dark);
}

[data-theme="dark"] .toeta-contact-btn:hover,
[data-theme="dark"] .toeta-contact-btn:focus {
    color: #0f172a;
}

/* Vabatahtlikkuse märkus */
.toeta-free-note {
    margin-top: 1.9rem;
    text-align: center;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    background: rgba(var(--toeta-accent-rgb), 0.08);
    border: 1px solid rgba(var(--toeta-accent-rgb), 0.25);
    color: var(--text-secondary, #475569);
    font-size: 0.95rem;
    line-height: 1.5;
}

[data-theme="dark"] .toeta-free-note {
    background: rgba(var(--toeta-accent-rgb), 0.12);
    border-color: rgba(var(--toeta-accent-rgb), 0.3);
    color: #cbd5e1;
}

.toeta-free-note .icon {
    color: var(--toeta-ink);
    margin-right: 0.35rem;
    vertical-align: -0.15em;
}

[data-theme="dark"] .toeta-free-note .icon {
    color: var(--toeta-ink-dark);
}

/* Mobiilivaade */
@media (max-width: 768px) {
    .toeta-hero {
        padding: 2.5rem 1rem 2.25rem;
    }
    .toeta-heart {
        width: 68px;
        height: 68px;
        font-size: 1.7rem;
    }
    .toeta-hero-title {
        font-size: 1.7rem;
    }
    .toeta-hero-subtitle {
        font-size: 1rem;
    }
    .toeta-kofi-btn {
        height: 2.9rem;
        font-size: 1rem;
    }
    .toeta-section {
        padding: 0 1rem 2.5rem;
    }
    .toeta-card {
        padding: 1.25rem 1.1rem;
    }
    .toeta-row {
        margin-bottom: 0.75rem;
    }
    .toeta-bank-iban {
        font-size: 0.92rem;
    }
}
