/*
Theme Name: GiveHeart Charity
Theme URI: https://giveheart.test
Description: GiveHeart Foundation child theme — UK humanitarian charity. Appeals CPT, Gift Aid integration, currency switcher, charity-sector design tokens. Built on Twenty Twenty-Five.
Author: Shane Barron
Author URI: https://sbarron.com
Template: twentytwentyfive
Version: 1.0.0
Text Domain: giveheart-charity
*/

:root {
    --gh-brand-primary: #C8102E;
    --gh-brand-secondary: #003D5C;
    --gh-brand-accent: #F4A300;
    --gh-neutral-bg: #FAF7F2;
    --gh-neutral-text: #1A1A1A;
    --gh-success: #2E7D32;
    --gh-radius-sm: 4px;
    --gh-radius-md: 8px;
    --gh-radius-lg: 16px;
    --gh-shadow-soft: 0 4px 12px rgba(0, 61, 92, 0.08);
    --gh-font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", sans-serif;
}

body {
    background: var(--gh-neutral-bg);
    color: var(--gh-neutral-text);
    font-family: var(--gh-font-stack);
    font-weight: 400;
    line-height: 1.6;
    margin: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--gh-font-stack);
    font-weight: 700;
    color: var(--gh-brand-secondary);
    line-height: 1.2;
    margin-top: 0;
}

a {
    color: var(--gh-brand-primary);
    text-decoration: none;
}
a:hover { text-decoration: underline; }

.gh-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* === Site header === */
.gh-header {
    background: #fff;
    border-bottom: 1px solid rgba(0, 61, 92, 0.08);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}
.gh-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.gh-logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--gh-brand-primary);
}
.gh-logo span { color: var(--gh-brand-secondary); }
.gh-nav {
    display: flex;
    gap: 24px;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}
.gh-nav a {
    color: var(--gh-neutral-text);
    font-weight: 400;
}
.gh-donate-cta {
    background: var(--gh-brand-accent);
    color: #fff !important;
    padding: 10px 20px;
    border-radius: var(--gh-radius-md);
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.15s ease;
}
.gh-donate-cta:hover {
    background: #d99100;
    text-decoration: none;
    transform: translateY(-1px);
}

/* === Hero === */
.gh-hero {
    position: relative;
    background: linear-gradient(135deg, rgba(0, 61, 92, 0.85), rgba(200, 16, 46, 0.65)), #003D5C;
    color: #fff;
    padding: 96px 0;
    text-align: center;
    background-size: cover;
    background-position: center;
}
.gh-hero h1 {
    color: #fff;
    font-size: 56px;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}
.gh-hero p.gh-tagline {
    font-size: 22px;
    margin: 0 auto 32px;
    max-width: 720px;
    opacity: 0.95;
}
.gh-hero-cta-group {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}
.gh-hero .gh-donate-cta {
    font-size: 18px;
    padding: 14px 32px;
}
.gh-hero-secondary-cta {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.4);
    color: #fff !important;
    padding: 12px 30px;
    border-radius: var(--gh-radius-md);
    font-weight: 700;
}

/* === Section spacing === */
.gh-section {
    padding: 80px 0;
}
.gh-section-title {
    text-align: center;
    margin-bottom: 48px;
}
.gh-section-title h2 {
    font-size: 36px;
    margin-bottom: 12px;
}
.gh-section-title p {
    color: rgba(26, 26, 26, 0.7);
    font-size: 18px;
    max-width: 640px;
    margin: 0 auto;
}

/* === Appeal grid === */
.gh-appeal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}
.gh-appeal-card {
    background: #fff;
    border-radius: var(--gh-radius-lg);
    overflow: hidden;
    box-shadow: var(--gh-shadow-soft);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease;
}
.gh-appeal-card:hover {
    transform: translateY(-4px);
}
.gh-appeal-image {
    aspect-ratio: 16/9;
    background: #ddd;
    background-size: cover;
    background-position: center;
    position: relative;
}
.gh-urgency-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--gh-brand-primary);
    color: #fff;
    padding: 6px 12px;
    border-radius: var(--gh-radius-sm);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.gh-appeal-card-body {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.gh-appeal-card-body h3 {
    font-size: 22px;
    margin-bottom: 8px;
}
.gh-appeal-card-body p {
    color: rgba(26, 26, 26, 0.7);
    margin-bottom: 16px;
    flex-grow: 1;
}

/* === Progress bar === */
.gh-progress {
    margin-top: auto;
}
.gh-progress-meta {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    margin-bottom: 6px;
    color: var(--gh-brand-secondary);
    font-weight: 700;
}
.gh-progress-bar {
    height: 10px;
    background: rgba(0, 61, 92, 0.08);
    border-radius: 999px;
    overflow: hidden;
}
.gh-progress-fill {
    height: 100%;
    background: var(--gh-brand-accent);
    border-radius: 999px;
    transition: width 0.4s ease;
}
.gh-progress-deadline {
    margin-top: 8px;
    font-size: 13px;
    color: rgba(26, 26, 26, 0.6);
}
.gh-appeal-cta {
    display: block;
    margin-top: 16px;
    background: var(--gh-brand-primary);
    color: #fff !important;
    text-align: center;
    padding: 12px;
    border-radius: var(--gh-radius-md);
    font-weight: 700;
    text-decoration: none;
}

/* === Single appeal === */
.gh-appeal-hero {
    aspect-ratio: 21/9;
    background-size: cover;
    background-position: center;
    background-color: #003D5C;
    margin-bottom: 32px;
}
.gh-appeal-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 48px;
}
.gh-appeal-sidebar {
    background: #fff;
    border-radius: var(--gh-radius-lg);
    padding: 32px;
    box-shadow: var(--gh-shadow-soft);
    height: fit-content;
    position: sticky;
    top: 96px;
}

/* === Stats / Impact === */
.gh-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 32px;
    text-align: center;
}
.gh-stat {
    background: #fff;
    border-radius: var(--gh-radius-lg);
    padding: 32px 24px;
    box-shadow: var(--gh-shadow-soft);
}
.gh-stat-number {
    font-size: 48px;
    font-weight: 700;
    color: var(--gh-brand-primary);
    line-height: 1;
    margin-bottom: 8px;
}
.gh-stat-label {
    font-size: 16px;
    color: rgba(26, 26, 26, 0.7);
}

/* === Footer === */
.gh-footer {
    background: var(--gh-brand-secondary);
    color: rgba(255, 255, 255, 0.85);
    padding: 56px 0 32px;
    margin-top: 96px;
}
.gh-footer h3 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 16px;
}
.gh-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 32px;
}
.gh-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.gh-footer ul li { margin-bottom: 8px; }
.gh-footer a {
    color: rgba(255, 255, 255, 0.85);
}
.gh-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 24px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.65);
    text-align: center;
}
.gh-charity-no {
    background: rgba(244, 163, 0, 0.15);
    border: 1px solid rgba(244, 163, 0, 0.4);
    padding: 8px 16px;
    border-radius: var(--gh-radius-sm);
    display: inline-block;
    margin-top: 12px;
    font-size: 13px;
}

/* === Gift Aid === */
.gh-gift-aid {
    background: rgba(46, 125, 50, 0.08);
    border: 1px solid rgba(46, 125, 50, 0.3);
    border-radius: var(--gh-radius-md);
    padding: 16px;
    margin: 24px 0;
}
.gh-gift-aid label {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    cursor: pointer;
}
.gh-gift-aid input { margin-top: 4px; }
.gh-gift-aid-title {
    font-weight: 700;
    color: var(--gh-success);
    margin-bottom: 4px;
}
.gh-gift-aid-text {
    font-size: 13px;
    color: rgba(26, 26, 26, 0.75);
    line-height: 1.5;
}

/* === Currency switcher === */
.gh-currency-switcher {
    display: inline-flex;
    background: rgba(0, 61, 92, 0.05);
    border-radius: var(--gh-radius-md);
    padding: 4px;
    gap: 4px;
}
.gh-currency-switcher button {
    background: transparent;
    border: none;
    padding: 8px 14px;
    border-radius: var(--gh-radius-sm);
    font-weight: 700;
    cursor: pointer;
    color: var(--gh-neutral-text);
    font-family: var(--gh-font-stack);
}
.gh-currency-switcher button.is-active {
    background: var(--gh-brand-secondary);
    color: #fff;
}

/* === Sticky mobile donate bar === */
.gh-mobile-donate-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 -4px 12px rgba(0, 61, 92, 0.12);
    padding: 12px 16px;
    z-index: 200;
}
.gh-mobile-donate-bar .gh-donate-cta {
    display: block;
    text-align: center;
}

/* === Mobile === */
@media (max-width: 768px) {
    .gh-hero { padding: 64px 0; }
    .gh-hero h1 { font-size: 36px; }
    .gh-hero p.gh-tagline { font-size: 18px; }
    .gh-section { padding: 56px 0; }
    .gh-section-title h2 { font-size: 28px; }
    .gh-nav { display: none; }
    .gh-appeal-content {
        grid-template-columns: 1fr;
    }
    .gh-appeal-sidebar { position: static; }
    .gh-footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .gh-mobile-donate-bar { display: block; }
    body { padding-bottom: 80px; }
}
