/* ==========================================
   RMF Global Styles
   ========================================== */

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

:root {
    --theme-0: #252525;
    --theme-1: #29aae1;
    --theme-2: #6f747e;
    --theme-3: #257dcc;
    --theme-4: #fbf9f5;
    --theme-5: #f0f0f0;
    --white: #ffffff;
    --black: #000000;
}

body {
    font-family: 'Heebo', sans-serif;
    color: var(--theme-2);
    line-height: 1.6;
    background-color: var(--theme-4);
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================
   HEADER
   ========================================== */

.site-header {
    background: var(--theme-0);
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
    gap: 20px;
}

.logo img {
    height: 50px;
}

.header-info {
    display: flex;
    gap: 30px;
    align-items: center;
    flex: 1;
    justify-content: center;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: all 0.3s;
}

.contact-item:hover .contact-text h2,
.contact-item:hover .contact-text p {
    color: var(--theme-1);
}

.contact-item .icon {
    font-size: 20px;
    color: var(--theme-1);
}

.contact-text p {
    font-size: 13px;
    color: var(--white);
    margin-bottom: 2px;
    font-family: 'Noto Serif', serif;
    letter-spacing: 0.1em;
    line-height: 1.3em;
    transition: color 0.3s;
}

.contact-text h2 {
    font-size: 12px;
    color: rgba(255,255,255,0.7);
    margin: 0;
    font-family: 'Heebo', sans-serif;
    font-weight: 300;
    transition: color 0.3s;
}

.social-links {
    display: flex;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.social-links li {
    list-style: none;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.3s;
}

.social-links a:hover {
    transform: translateY(-3px);
}

.social-links .wp-social-link-instagram a {
    background: #E1306C;
}

.social-links .wp-social-link-facebook a {
    background: #1877F2;
}

.social-links .wp-social-link-x a {
    background: #000000;
}

.social-links svg {
    width: 20px;
    height: 20px;
    fill: white;
}

.donate-section .donate-btn {
    padding: 15px 30px;
    background: var(--theme-1);
    color: var(--white);
    text-decoration: none;
    font-family: 'Shadows Into Light', cursive;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 0.075em;
    border-radius: 0;
    transition: all 0.3s;
    display: inline-block;
    border: none;
    cursor: pointer;
}

.donate-section .donate-btn:hover {
    background: var(--theme-4);
    color: var(--theme-1);
}

/* ==========================================
   FOOTER
   ========================================== */

.site-footer {
    background: var(--theme-0);
    color: var(--white);
    padding: 40px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 0.8fr 1.5fr 0.7fr;
    gap: 40px;
    align-items: start;
    margin-bottom: 30px;
    padding-bottom: 30px;
}

.footer-logo {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
}

.footer-logo img {
    max-width: 180px;
    width: 100%;
    height: auto;
}

.footer-section h3 {
    font-family: 'Noto Serif', serif;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--white);
}

.footer-section.contact-info ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-section.contact-info ul li {
    margin-bottom: 0;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.footer-section.contact-info ul li i {
    color: var(--theme-1);
    margin-top: 3px;
    min-width: 16px;
    font-size: 14px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.footer-section ul li i {
    color: var(--theme-1);
    margin-top: 3px;
    min-width: 16px;
}

.footer-section p,
.footer-section a,
.footer-section span {
    font-size: 13px;
    line-height: 1.6;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
}

.footer-section a:hover,
.footer-section a:hover span {
    color: var(--theme-1);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: rgba(255,255,255,0.6);
}

.footer-bottom-content p {
    margin: 0;
}

/* ==========================================
   MODALS (Shared)
   ========================================== */

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    padding: 20px;
    overflow-y: auto;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: var(--white);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
    box-shadow: 0 10px 50px rgba(0,0,0,0.3);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    background: var(--theme-1);
    padding: 30px;
    color: var(--white);
    position: relative;
}

.modal-header h2 {
    font-family: 'Noto Serif', serif;
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--white);
}

.modal-header p {
    font-size: 15px;
    line-height: 1.5;
    color: rgba(255,255,255,0.95);
    margin: 0;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: var(--white);
    font-size: 30px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
    line-height: 1;
}

.modal-close:hover {
    background: rgba(255,255,255,0.2);
    transform: rotate(90deg);
}

.modal-body {
    padding: 40px;
}

/* ==========================================
   FORMS (Shared)
   ========================================== */

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.volunteer-form input,
.volunteer-form select,
.volunteer-form textarea,
.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 15px 25px;
    border: 1px solid var(--theme-5);
    font-family: 'Heebo', sans-serif;
    font-size: 14px;
    color: var(--theme-0);
    transition: border-color 0.3s;
    background-color: var(--white);
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.volunteer-form input:focus,
.volunteer-form select:focus,
.volunteer-form textarea:focus,
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--theme-3);
}

.volunteer-form textarea,
.contact-form textarea {
    min-height: 120px;
    resize: vertical;
}

.volunteer-form button,
.contact-form button {
    padding: 20px 40px;
    background: var(--theme-1);
    color: var(--white);
    border: 1px solid var(--theme-1);
    font-family: 'Shadows Into Light', cursive;
    font-size: 20px;
    text-transform: uppercase;
    letter-spacing: 0.075em;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
}

.volunteer-form button:hover,
.contact-form button:hover {
    background: var(--theme-0);
    color: var(--white);
    border-color: var(--theme-0);
}

/* Custom Select Dropdown */
.custom-select-wrapper {
    position: relative;
}

.custom-select {
    position: relative;
    width: 100%;
}

.custom-select-trigger {
    width: 100%;
    padding: 15px 25px;
    border: 1px solid var(--theme-5);
    background-color: var(--white);
    font-family: 'Heebo', sans-serif;
    font-size: 14px;
    color: var(--theme-2);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: border-color 0.3s;
}

.custom-select-trigger:hover,
.custom-select.open .custom-select-trigger {
    border-color: var(--theme-3);
}

.custom-select-trigger i {
    color: var(--theme-1);
    font-size: 12px;
    transition: transform 0.3s;
}

.custom-select.open .custom-select-trigger i {
    transform: rotate(180deg);
}

.custom-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    border: 1px solid var(--theme-3);
    border-top: none;
    background-color: var(--white);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 100;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.custom-select.open .custom-options {
    max-height: 200px;
    opacity: 1;
    overflow-y: auto;
}

.custom-option {
    padding: 15px 25px;
    font-family: 'Heebo', sans-serif;
    font-size: 14px;
    color: var(--theme-2);
    cursor: pointer;
    transition: background-color 0.2s;
}

.custom-option:hover {
    background-color: var(--theme-1);
    color: var(--white);
}

.custom-option.selected {
    background-color: var(--theme-4);
    color: var(--theme-0);
}

.custom-select-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* ==========================================
   SECTION HEADERS (Shared)
   ========================================== */

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header .subtitle {
    font-family: 'Shadows Into Light', cursive;
    font-size: 20px;
    color: var(--theme-3);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 10px;
}

.section-header h2 {
    font-family: 'Noto Serif', serif;
    font-size: 38px;
    font-weight: 600;
    color: var(--theme-0);
    line-height: 1.3;
}

/* ==========================================
   BUTTONS (Shared)
   ========================================== */

.btn {
    padding: 15px 30px;
    background: var(--theme-1);
    color: var(--theme-4);
    text-decoration: none;
    font-family: 'Shadows Into Light', cursive;
    font-size: 20px;
    text-transform: uppercase;
    letter-spacing: 0.075em;
    display: inline-block;
    border: 1px solid var(--theme-1);
    transition: all 0.3s;
    cursor: pointer;
}

.btn:hover {
    background: var(--theme-4);
    color: var(--theme-1);
}

/* ==========================================
   ANIMATIONS
   ========================================== */

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================
   GIVEBUTTER FIX
   ========================================== */

.givebutter-modal,
[class*="givebutter"],
iframe[src*="givebutter"] {
    z-index: 99999 !important;
}

/* ==========================================
   RESPONSIVE - HEADER & FOOTER
   ========================================== */

@media (max-width: 1024px) {
    .header-info .contact-item {
        display: none;
    }

    .footer-content {
        grid-template-columns: 1fr 1.5fr 1fr;
        gap: 30px;
    }
    
    .footer-logo img {
        max-width: 150px;
    }
}

@media (max-width: 767px) {
    /* Header Mobile */
    .header-container {
        justify-content: space-between;
    }

    .header-info {
        display: none;
    }

    .logo {
        flex-shrink: 0;
    }

    .logo img {
        height: 40px;
    }

    .donate-section {
        margin-left: auto;
        flex-shrink: 0;
    }

    .donate-section .donate-btn {
        padding: 12px 20px;
        font-size: 16px;
    }

    /* Footer Mobile */
    .site-footer {
        padding: 30px 0 0;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 25px;
        margin-bottom: 20px;
        padding-bottom: 20px;
    }

    .footer-logo {
        order: 1;
        justify-content: center;
    }

    .footer-section.contact-info {
        order: 2;
    }

    .footer-section.other-pages {
        order: 3;
    }

    .footer-logo img {
        max-width: 160px;
    }

    .footer-bottom {
        padding: 15px 0;
    }

    .footer-bottom-content {
        flex-direction: column;
        gap: 8px;
        text-align: center;
        font-size: 12px;
    }

    .footer-section.other-pages ul {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px 15px;
    }

    .footer-section.other-pages ul li {
        margin-bottom: 0;
    }

    /* Forms Mobile */
    .form-row {
        grid-template-columns: 1fr;
    }

    /* Section Headers Mobile */
    .section-header h2 {
        font-size: 28px;
    }
}
