/* style.css - Otacho Hands of Grace Community Care */
:root {
    --primary: #2a6b3f; /* Deep, trustworthy green */
    --secondary: #e6b325; /* Warm, optimistic gold */
    --light: #f8f9fa;
    --dark: #2a3b40; /* Dark blue-green for text */
    --accent: #4a8c5c; /* Lighter green for accents */
    --muted: #6c757d;
    --white: #ffffff;
    --black: #000000;
    --success: #28a745;
}

/* General Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
    font-size: 1rem;
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
    color: var(--primary);
}

a:hover {
    color: var(--accent);
}

img {
    max-width: 100%;
    height: auto;
}

section {
    padding: 5rem 0;
}

.container-xxl {
    max-width: 1320px;
}

/* Utility Classes */
.text-primary { color: var(--primary) !important; }
.text-secondary { color: var(--secondary) !important; }
.text-white { color: var(--white) !important; }
.text-dark { color: var(--dark) !important; }
.text-muted { color: var(--muted) !important; }
.text-success { color: var(--success) !important; }

.bg-primary { background-color: var(--primary) !important; }
.bg-secondary { background-color: var(--secondary) !important; }
.bg-light { background-color: var(--light) !important; }
.bg-dark { background-color: var(--dark) !important; }
.bg-white { background-color: var(--white) !important; }

.rounded-pill {
    border-radius: 50px !important;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 0.25rem 1rem;
    display: inline-block;
}

.section-title {
    position: relative;
    margin-bottom: 3rem;
    text-align: center;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary);
}

.display-6 {
    font-size: 2.5rem;
    font-weight: 700;
}

/* Buttons */
.btn {
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
    padding: 0.5rem 1.5rem;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--accent);
    border-color: var(--accent);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-outline-primary {
    color: var(--primary);
    border: 2px solid var(--primary);
    background: transparent;
}

.btn-outline-primary:hover {
    background-color: var(--primary);
    color: white;
}

.btn-secondary {
    background-color: var(--secondary);
    border-color: var(--secondary);
    color: var(--dark);
}

.btn-secondary:hover {
    background-color: var(--secondary);
    border-color: var(--secondary);
    opacity: 0.9;
    color: var(--dark);
    transform: translateY(-2px);
}

.btn-sm-square {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.btn-square {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.btn-square:hover {
    background-color: var(--primary);
}

/* Navbar */
.top-bar {
    background-color: var(--dark);
    padding: 8px 0;
    font-size: 0.85rem;
}

.navbar {
    padding: 0.5rem 0;
}

.navbar-dark {
    background-color: var(--dark) !important;
}

.navbar-brand {
    font-size: 1.8rem;
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    color: #ffffff;
    transform: translateY(-2px);
}

.navbar-toggler {
    border: none;
    padding: 0.25rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* Page Header */
.page-header {
    background: linear-gradient(rgba(42, 59, 64, 0.8), rgba(42, 59, 64, 0.8)), center center no-repeat;
    background-size: cover;
    padding: 6rem 0;
    position: relative;
}

.breadcrumb {
    background: transparent;
    margin-bottom: 0;
    justify-content: center;
}

.breadcrumb-item a {
    color: rgba(255, 255, 255, 0.8);
}

.breadcrumb-item.active {
    color: var(--primary);
}

.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.5);
}

/* Spinner */
#spinner {
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spinner-grow {
    width: 3rem;
    height: 3rem;
}

/* Cards */
.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.program-item,
.testimonial-item,
.causes-item,
.achievement-card,
.future-card,
.challenge-card {
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    height: 100%;
    background: white;
    padding: 2rem;
}

.program-item:hover,
.testimonial-item:hover,
.causes-item:hover,
.achievement-card:hover,
.future-card:hover,
.challenge-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

/* Program Icons */
.program-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(42, 107, 63, 0.1);
    margin: 0 auto 20px;
}

.program-icon i {
    font-size: 2.5rem;
    color: var(--primary);
}

/* Testimonials */
.testimonial-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin: 0 auto 1.5rem;
}

.testimonial-text {
    position: relative;
    padding: 2rem;
    text-align: center;
}

.testimonial-text::before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 20px;
    font-size: 4rem;
    color: rgba(42, 107, 63, 0.1);
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-item {
    text-align: center;
    padding: 1rem;
}

.testimonial-item h5 {
    margin-top: 1rem;
    color: var(--primary);
}

/* Gallery */
.gallery-card {
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    margin-bottom: 30px;
    height: 100%;
    position: relative;
}

.gallery-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.gallery-card img {
    transition: all 0.5s ease;
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.gallery-card:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(42, 107, 63, 0.9), transparent);
    padding: 30px 20px 20px;
    color: white;
    opacity: 0;
    transition: all 0.3s ease;
}

.gallery-card:hover .gallery-overlay {
    opacity: 1;
}

.gallery-caption h5 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    font-weight: 600;
}

.gallery-caption p {
    font-size: 0.9rem;
    margin-bottom: 0;
    opacity: 0.9;
}

.gallery-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 2rem;
}

.gallery-filter .btn {
    margin: 0 5px 10px;
    transition: all 0.3s;
    border-width: 2px;
    border-radius: 50px;
    font-weight: 500;
}

.gallery-filter .btn.active, 
.gallery-filter .btn:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* About Section */
.about-img-container {
    position: relative;
}

.about-img-main {
    border-radius: 10px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.about-img-secondary {
    position: absolute;
    bottom: -30px;
    right: -30px;
    border: 5px solid white;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    width: 40%;
    z-index: 1;
    height: 200px;
    object-fit: cover;
}

.highlight-box {
    background-color: rgba(230, 179, 37, 0.1);
    border-left: 4px solid var(--secondary);
    padding: 20px;
    border-radius: 5px;
    margin: 25px 0;
}

/* Counter */
.counter-box {
    background: white;
    border-radius: 10px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
}

.counter-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.counter-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
}

/* Program Status */
.program-status {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    margin-top: 15px;
}

.program-status.ongoing {
    background-color: rgba(42, 107, 63, 0.1);
    color: var(--primary);
}

.program-status.future {
    background-color: rgba(230, 179, 37, 0.2);
    color: var(--secondary);
}

.program-status.completed {
    background-color: rgba(76, 175, 80, 0.1);
    color: #4CAF50;
}

/* Causes/Objectives */
.causes-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(42, 107, 63, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.causes-item:hover .causes-overlay {
    opacity: 1;
}

.causes-item {
    position: relative;
    overflow: hidden;
}

.causes-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

/* Donate Section */
.donate {
    position: relative;
    background: linear-gradient(rgba(42, 59, 64, 0.8), rgba(42, 59, 64, 0.8)), center center no-repeat;
    background-size: cover;
    background-attachment: fixed;
    padding: 5rem 0;
    color: white;
}

.donate-form {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    color: var(--dark);
}

/* FAQ Section */
.accordion-button:not(.collapsed) {
    background-color: var(--primary);
    color: white;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: rgba(42, 107, 63, 0.25);
}

.accordion-item {
    border: 1px solid rgba(42, 107, 63, 0.125);
    border-radius: 5px;
    margin-bottom: 15px;
}

.accordion-button {
    font-weight: 600;
    padding: 1rem 1.25rem;
}

.accordion-body {
    padding: 1rem 1.25rem;
}

/* Call to Action */
.cta-section {
    background: linear-gradient(rgba(42, 107, 63, 0.9), rgba(42, 107, 63, 0.9)), center center no-repeat;
    background-size: cover;
    color: white;
    border-radius: 15px;
    padding: 3rem;
}

/* Footer */
.footer {
    background-color: var(--dark);
    padding: 5rem 0 0;
}

.footer h5 {
    color: white;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer a {
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s;
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
}

.footer a:hover {
    color: white;
    padding-left: 5px;
}

.copyright {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 1.5rem 0;
    margin-top: 3rem;
}

/* Form Elements */
.form-control {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(42, 107, 63, 0.25);
}

/* Back to Top */
.back-to-top {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 30px;
    z-index: 99;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Animations */
.wow {
    visibility: hidden;
}

.fadeIn {
    animation: fadeIn 0.5s ease forwards;
}

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

/* Carousel */
.owl-carousel .owl-item img {
    width: auto;
    margin: 0 auto;
}

.owl-carousel .owl-dots {
    margin-top: 20px;
    text-align: center;
}

.owl-carousel .owl-dot span {
    width: 12px;
    height: 12px;
    margin: 5px;
    background: #ddd;
    display: block;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.owl-carousel .owl-dot.active span {
    background: var(--primary);
    transform: scale(1.3);
}

/* Responsive Design */
@media (max-width: 1199.98px) {
    .container-xxl {
        max-width: 1140px;
    }
}

@media (max-width: 991.98px) {
    .container-xxl {
        max-width: 960px;
    }
    
    .navbar-collapse {
        background: var(--dark);
        padding: 1rem;
        margin-top: 0.5rem;
        border-radius: 5px;
    }
    
    .about-img-secondary {
        position: relative;
        bottom: 0;
        right: 0;
        width: 100%;
        margin-top: 20px;
    }
    
    .display-6 {
        font-size: 2rem;
    }
}

@media (max-width: 767.98px) {
    .container-xxl {
        max-width: 720px;
    }
    
    .display-6 {
        font-size: 1.75rem;
    }
    
    .page-header {
        padding: 4rem 0;
    }
    
    .section-title::after {
        width: 60px;
    }
    
    section {
        padding: 3rem 0;
    }
}

@media (max-width: 575.98px) {
    .container-xxl {
        max-width: 100%;
        padding: 0 15px;
    }
    
    .display-6 {
        font-size: 1.5rem;
    }
    
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .testimonial-text {
        padding: 1rem;
    }
    
    .gallery-filter .btn {
        margin: 0 3px 5px;
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    .footer {
        padding: 3rem 0 0;
    }
    
    .cta-section {
        padding: 2rem;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .btn,
    .back-to-top,
    .footer,
    .page-header {
        display: none !important;
    }
    
    body {
        color: black;
        background: white;
        font-size: 12pt;
    }
    
    .container {
        width: 100%;
        max-width: 100%;
    }
    
    a {
        color: black !important;
        text-decoration: underline !important;
    }
    
    .card, .program-item, .testimonial-item {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}