/* ================================================================
   UI/UX ENHANCEMENTS - Modern, Vibrant & Accessible Design
   ================================================================ */

/* ================================================================
   1. LOGO & IMAGE IMPROVEMENTS
   ================================================================ */

/* What We Do section images */
.causes-one__img img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
}

/* Logo styling - clean display without rectangular borders */
.main-menu__logo img,
.footer-widget__about-logo img,
.logo-box img {
    object-fit: contain;
    background: transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}



/* Hover effects for interactive images */
.gallery img,
.team img,
.causes-card img,
.team-card img,
.testimonial-card img,
.blog-card img,
.donation-card img {
    border-radius: 14px;
    overflow: hidden;
}

.gallery img:hover,
.team img:hover,
.causes-card img:hover,
.team-card img:hover,
.testimonial-card img:hover,
.blog-card img:hover,
.donation-card img:hover {
    transform: scale(1.06);
    box-shadow: 0 12px 28px rgba(255, 107, 53, 0.2);
}

/* Hero section images */
.hero-image,
.image-layer {
    border-radius: 16px;
    overflow: hidden;
}

/* ================================================================
   3. BUTTON STYLING - Modern & Interactive
   ================================================================ */

/* All primary buttons - consistent base */
.thm-btn,
.main-slider__btn,
.btn-primary,
.feature-one__btn {
    border-radius: 12px;
    background: linear-gradient(135deg, #FF6B35 0%, #E85A24 100%);
    border: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
    font-weight: 700;
}

/* White text on hover for ALL primary buttons (fixes orange-on-orange, black-on-dark-orange) */
.thm-btn:hover,
.main-slider__btn:hover,
.btn-primary:hover,
.feature-one__btn:hover {
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.5);
    background: linear-gradient(135deg, #D14913 0%, #B64516 100%);
}

/* Ripple effect only on devices that support hover */
@media (hover: hover) {
    .thm-btn::before,
    .main-slider__btn::before,
    .btn-primary::before,
    .feature-one__btn::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        background: rgba(255, 255, 255, 0.2);
        border-radius: 50%;
        transform: translate(-50%, -50%);
        transition: width 0.6s, height 0.6s;
        pointer-events: none;
    }

    .thm-btn:hover::before,
    .main-slider__btn:hover::before,
    .btn-primary:hover::before,
    .feature-one__btn:hover::before {
        width: 300px;
        height: 300px;
    }
}

/* Active/pressed state for all primary buttons */
.thm-btn:active,
.main-slider__btn:active,
.btn-primary:active,
.feature-one__btn:active {
    transform: scale(0.96) translateY(0) !important;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
    transition-duration: 0.08s;
}

/* Secondary/Accent buttons */
.thm-btn-two,
.btn-accent,
.btn-secondary {
    border-radius: 12px;
    background: linear-gradient(135deg, #FFB627 0%, #E6A020 100%);
    border: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--oxpins-black);
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(255, 182, 39, 0.3);
}

.thm-btn-two:hover,
.btn-accent:hover,
.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 182, 39, 0.5);
    background: linear-gradient(135deg, #E6A020 0%, #CC8B1A 100%);
    color: var(--oxpins-black);
}

.thm-btn-two:active,
.btn-accent:active,
.btn-secondary:active {
    transform: scale(0.96) translateY(0);
    box-shadow: 0 2px 8px rgba(255, 182, 39, 0.3);
    transition-duration: 0.08s;
}

/* ================================================================
   4. CARD STYLING - Modern Design
   ================================================================ */

.card,
.donation-card,
.causes-card,
.team-card,
.testimonial-card,
.blog-card,
.feature-card {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--oxpins-white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.card:hover,
.donation-card:hover,
.causes-card:hover,
.team-card:hover,
.testimonial-card:hover,
.blog-card:hover,
.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(255, 107, 53, 0.15);
}

.card-body {
    padding: 24px;
}

.card-title {
    color: var(--oxpins-black);
    font-weight: 700;
    margin-bottom: 12px;
    font-size: 1.25rem;
}

.card-text {
    color: var(--oxpins-gray);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* ================================================================
   5. FORM STYLING - Clean & Modern
   ================================================================ */

.form-control,
.form-select,
textarea {
    border-radius: 12px;
    border: 2px solid var(--oxpins-bdr-color);
    padding: 12px 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.95rem;
}

.form-control:focus,
.form-select:focus,
textarea:focus {
    border-color: var(--oxpins-base);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
    outline: none;
}

input::placeholder,
textarea::placeholder {
    color: #666666;
    font-style: italic;
}

/* ================================================================
   6. ANIMATION CLASSES - Engaging Motion
   ================================================================ */

/* Fade-in animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

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

/* ================================================================
   7. SECTION STYLING - Better Spacing
   ================================================================ */

section {
    padding: 60px 0;
}

section.py-5 {
    padding-top: 60px !important;
    padding-bottom: 60px !important;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--oxpins-black);
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--oxpins-base-dark, #B64516);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.section-description {
    font-size: 1.05rem;
    color: var(--oxpins-gray);
    line-height: 1.8;
    max-width: 600px;
    margin: 0 auto;
}



/* ================================================================
   9. TRANSITION & ACCESSIBILITY
   ================================================================ */

/* Smooth transitions - targeted, not universal */
a, button, .card, .donation-card, .causes-card, .team-card, .testimonial-card, .blog-card, .feature-card,
.form-control, .form-select, textarea, img, .social-link, .social-icon {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Focus-visible indicators for keyboard navigation (WCAG 2.4.7) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 3px solid var(--oxpins-base, #FF6B35);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

/* ================================================================
   10. RESPONSIVE DESIGN - Mobile First
   ================================================================ */

@media (max-width: 768px) {
    .section-title {
        font-size: 1.75rem;
    }

    .card, .donation-card, .causes-card {
        margin-bottom: 20px;
    }

    img {
        border-radius: 10px;
    }

    .thm-btn, .btn-primary {
        padding: 12px 24px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    section {
        padding: 40px 0;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .card-body {
        padding: 16px;
    }
}

/* ================================================================
   11. DONATION PAGE LAYOUT
   ================================================================ */

/* Donation cards container - ensures 3 columns stay together */
.donations-section .row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -0.5rem;
    margin-left: -0.5rem;
}

.donations-section .col-lg-4 {
    flex: 0 0 calc(33.333333% - 1rem);
    padding: 0.5rem;
    display: flex;
}

.donation-card {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
}

/* Ensure cards maintain height equality */
.donation-card .card-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* Desktop layout - 3 columns */
@media (min-width: 1200px) {
    .donations-section .col-lg-4 {
        flex: 0 0 calc(33.333333% - 1rem);
        padding: 0.5rem;
    }
}

/* Tablet layout - 2 columns, then single on smaller */
@media (max-width: 1199px) and (min-width: 768px) {
    .donations-section .col-lg-4 {
        flex: 0 0 calc(50% - 1rem);
        padding: 0.5rem;
    }
}

/* Mobile layout - single column */
@media (max-width: 767px) {
    .donations-section .col-lg-4 {
        flex: 0 0 100%;
        padding: 0.5rem;
        margin-bottom: 15px;
    }
    
    .donation-card {
        margin-bottom: 0;
    }
}

/* Remove Bootstrap's default gutter interference */
.donations-section .row.gx-4 {
    margin-left: -0.5rem;
    margin-right: -0.5rem;
}

/* ================================================================
   12. ENHANCED INTERACTIVE STATES - Hover, Active, Focus
   ================================================================ */

/* "Show More" gallery button */
.show-more:active {
    transform: scale(0.96) translateY(0) !important;
    transition-duration: 0.08s !important;
}

/* Nav main menu links - bottom indicator on hover */
.main-menu__list > li > a::after {
    transform-origin: left center;
}

.main-menu__list > li > a:hover::after {
    width: 80% !important;
}

/* Partner button (inverse) - lighter hover */
.main-menu__btn:hover {
    background: #333 !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.main-menu__btn:active {
    background: #444 !important;
}

/* ================================================================
   13. LINK & NAVIGATION ENHANCEMENTS
   ================================================================ */

/* Footer links - slide right on hover */
.footer-widget__links-list li a {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
}

.footer-widget__links-list li a:hover {
    color: var(--oxpins-base) !important;
}

/* Footer contact links */
.footer-widget__contact-list li a:hover {
    color: var(--oxpins-base) !important;
    opacity: 1;
}

/* Footer social icons - lift + color */
.site-footer__social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--oxpins-white);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-footer__social a:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 6px 16px rgba(255, 107, 53, 0.3);
}

/* Breadcrumb links - hover underline */
.thm-breadcrumb li a {
    position: relative;
    transition: color 0.3s ease;
}

.thm-breadcrumb li a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--oxpins-base);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.thm-breadcrumb li a:hover::after {
    width: 100%;
}

/* Copyright footer link */
.site-footer__bottom-text a {
    transition: color 0.3s ease;
}

.site-footer__bottom-text a:hover {
    color: var(--oxpins-base) !important;
    text-decoration: underline;
}

/* ================================================================
   14. GALLERY & IMAGE OVERLAY EFFECTS
   ================================================================ */

/* Gallery image zoom + overlay on hover */
.gallery-page__single {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 20px;
}

.gallery-page__img {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.gallery-page__img img {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-page__single:hover .gallery-page__img img {
    transform: scale(1.08);
}

.gallery-page__img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 1;
    border-radius: 12px;
}

.gallery-page__single:hover .gallery-page__img::after {
    opacity: 1;
}

.gallery-page__content {
    z-index: 2;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
}

.gallery-page__single:hover .gallery-page__content {
    transform: translateY(-4px);
}

/* Causes cards image hover */
.causes-one__img {
    overflow: hidden;
    border-radius: 10px;
}

.causes-one__img img {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.causes-one__single:hover .causes-one__img img {
    transform: scale(1.08);
}

.causes-one__single {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease;
    border-radius: 16px;
    overflow: hidden;
}

.causes-one__single:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 35px rgba(255, 107, 53, 0.15);
}

/* ================================================================
   15. SOCIAL & ICON ANIMATIONS
   ================================================================ */

/* Desktop nav social icons - bounce on hover */
.main-menu__right-top-social a {
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

.main-menu__right-top-social a:hover {
    transform: translateY(-3px) scale(1.08) !important;
    box-shadow: 0 6px 18px rgba(255, 107, 53, 0.3) !important;
}

/* WhatsApp button - pulse animation */
.whatsapp-button {
    animation: whatsappPulse 2.5s ease-in-out infinite;
}

.whatsapp-button:hover {
    animation: none;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.whatsapp-button:active {
    transform: scale(0.95);
}

@keyframes whatsappPulse {
    0%, 100% {
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    }
    50% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
    }
}

/* Mobile nav social icons */
.mobile-nav__social a {
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    text-decoration: none;
    font-size: 16px;
}

.mobile-nav__social a:hover {
    background: var(--oxpins-base-dark, #B64516);
    transform: translateY(-2px) scale(1.1);
    box-shadow: 0 4px 14px rgba(182, 69, 22, 0.35);
}

/* ================================================================
   16. FORM & INPUT ENHANCEMENTS
   ================================================================ */

/* Contact form inputs - raised on focus */
.contact-form__input-box input,
.contact-form__input-box textarea {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-form__input-box input:focus,
.contact-form__input-box textarea:focus {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(255, 107, 53, 0.12);
    border-color: var(--oxpins-base);
}

/* Submit button ripple-like effect on click */
.contact-form__btn:active {
    transform: scale(0.96) !important;
}

/* Success/error alerts styling */
.alert-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border: none;
    border-radius: 12px;
    color: #155724;
    padding: 14px 20px;
    font-weight: 500;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.alert-danger {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    border: none;
    border-radius: 12px;
    color: #721c24;
    padding: 14px 20px;
    font-weight: 500;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

/* ================================================================
   17. SCROLL-TO-TOP & FLOATING ACTIONS
   ================================================================ */

/* Scroll-to-top button */
.scroll-to-top {
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    opacity: 0;
    visibility: hidden;
}

.scroll-to-top:hover {
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.scroll-to-top:active {
    transform: scale(0.92);
}

/* ================================================================
   18. SECTION & CARD ENTRANCE EFFECTS
   ================================================================ */

/* Feature cards hover */
.feature-one__single {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease;
}

.feature-one__single:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 35px rgba(255, 107, 53, 0.12);
}

/* FAQ accordion item hover */
.accrodion {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 10px;
}

.accrodion:hover {
    transform: translateX(3px);
}

.accrodion-title {
    cursor: pointer;
    transition: background 0.3s ease;
}

.accrodion.active .accrodion-title {
    background: rgba(255, 107, 53, 0.06);
}

/* Donation cards hover */
.donation-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(255, 107, 53, 0.18);
}

.donation-card__btn:active {
    transform: scale(0.96) !important;
}

/* Contact card links in donate page */
.contact-card__link {
    transition: all 0.3s ease;
    display: inline-block;
}

.contact-card__link:hover {
    transform: translateX(3px);
}

/* ================================================================
   19. MOBILE NAV ENHANCEMENTS
   ================================================================ */

/* Hamburger toggle - smoother interaction */
.mobile-nav__toggler {
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.mobile-nav__toggler:active {
    transform: scale(0.9);
}

/* Mobile nav close button */
#mobileNavClose {
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#mobileNavClose:active {
    transform: scale(0.88);
}

/* Mobile nav items - subtle slide on hover */
#mobileNav .mobile-menu-list a {
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

#mobileNav .mobile-menu-list a:hover {
    padding-left: 22px;
    background: rgba(255, 107, 53, 0.18);
}

/* Mobile nav overlay fade */
#mobileNavOverlay {
    transition: opacity 0.35s ease;
}

/* ================================================================
   20. MOBILE & TOUCH OPTIMIZATIONS
   ================================================================ */

/* Touch devices: disable hover effects that stick, use active instead */
@media (hover: none) and (pointer: coarse) {
    .thm-btn:hover,
    .main-slider__btn:hover,
    .btn-primary:hover,
    .feature-one__btn:hover {
        transform: none;
        background: linear-gradient(135deg, #FF6B35 0%, #E85A24 100%);
        box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
    }

    .thm-btn:active,
    .main-slider__btn:active,
    .btn-primary:active,
    .feature-one__btn:active {
        transform: scale(0.96) !important;
        background: linear-gradient(135deg, #E85A24 0%, #D14913 100%);
        box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
    }

    .thm-btn-two:hover,
    .btn-accent:hover,
    .btn-secondary:hover {
        transform: none;
        background: linear-gradient(135deg, #FFB627 0%, #E6A020 100%);
        box-shadow: 0 4px 15px rgba(255, 182, 39, 0.3);
    }

    .thm-btn-two:active,
    .btn-accent:active,
    .btn-secondary:active {
        transform: scale(0.96);
        background: linear-gradient(135deg, #E6A020 0%, #CC8B1A 100%);
        box-shadow: 0 2px 8px rgba(255, 182, 39, 0.3);
    }

    .main-menu__btn:hover {
        background: var(--oxpins-black) !important;
        transform: none;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    }

    .main-menu__btn:active {
        background: #2a2a2a !important;
        transform: scale(0.96) !important;
    }

    .cta-section__btn--light:hover {
        transform: none;
    }

    .cta-section__btn--light:active {
        transform: scale(0.96);
        background: rgba(255, 255, 255, 0.3);
    }

    .donation-card__btn:hover {
        transform: none;
    }

    .donation-card__btn:active {
        transform: scale(0.96);
    }

    .site-footer__social a:hover,
    .main-menu__right-top-social a:hover,
    .mobile-nav__social a:hover {
        transform: none;
    }

    .site-footer__social a:active,
    .main-menu__right-top-social a:active,
    .mobile-nav__social a:active {
        transform: scale(0.92);
    }

    #mobileNav .mobile-menu-list a:hover {
        padding-left: 16px;
        background: transparent;
    }

    #mobileNav .mobile-menu-list a:active {
        padding-left: 22px;
        background: rgba(255, 107, 53, 0.18);
    }

    .footer-widget__links-list li a:hover {
        transform: none;
    }

    .footer-widget__links-list li a:active {
        transform: translateX(4px);
    }
}

/* Touch-friendly button sizing on small screens */
@media (max-width: 768px) {
    .thm-btn,
    .main-menu__btn,
    .main-slider__btn,
    .btn-primary,
    .feature-one__btn,
    .thm-btn-two,
    .btn-accent,
    .btn-secondary,
    .donation-card__btn,
    .cta-section__btn,
    .contact-form__btn,
    .show-more {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding-top: 12px;
        padding-bottom: 12px;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .thm-btn,
    .main-slider__btn,
    .feature-one__btn,
    .show-more {
        font-size: 0.8rem;
        padding-left: 20px;
        padding-right: 20px;
    }

    .donation-card__btn {
        font-size: 0.85rem;
        padding: 12px 16px;
    }
}
