/* =========================================
   Care & Support Foundation - Custom CSS
   ========================================= */

/* Variables / Brand Colors */
:root {
    --primary-blue: #0056b3;
    --primary-green: #28a745;
    --accent-red: #dc3545;
    --text-dark: #333333;
    --text-light: #666666;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --soft-gray: #e9ecef;
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Playfair Display', serif;
    --transition: all 0.3s ease;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--primary-blue);
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--bg-light);
}

.bg-accent {
    background-color: var(--primary-blue);
    color: var(--white);
}

.text-center {
    text-align: center;
}

.text-accent {
    color: var(--primary-green);
}

.section-tag {
    display: inline-block;
    padding: 5px 15px;
    background-color: rgba(40, 167, 69, 0.1);
    color: var(--primary-green);
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.section-desc {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 40px;
    max-width: 700px;
}

.text-center .section-desc {
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    text-align: center;
}

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

.btn-primary:hover {
    background-color: #218838;
    color: var(--white);
    transform: translateY(-2px);
}

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

.btn-secondary:hover {
    background-color: #004494;
    color: var(--white);
}

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

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

.btn-success {
    background-color: #25D366;
    /* WhatsApp color */
    color: var(--white);
}

.btn-success:hover {
    background-color: #128C7E;
    color: var(--white);
}

.btn-large {
    padding: 15px 35px;
    font-size: 1.1rem;
}

.btn-full {
    width: 100%;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: var(--transition);
    padding: 15px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    font-family: var(--font-heading);
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.brand-logo {
    height: 70px;
    width: auto;
    max-width: 350px;
    object-fit: contain;
}

.footer-logo .brand-logo {
    height: 90px;
    max-width: 400px;
    margin-bottom: 15px;
}

.nav-links {
    display: flex;
    gap: 25px;
}

.nav-links a {
    color: var(--text-dark);
    font-weight: 600;
    position: relative;
}

.nav-links a:hover {
    color: var(--primary-blue);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-dark);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    padding-top: 80px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -2;
}

@keyframes wavingGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.waving-bg {
    background: linear-gradient(-45deg, var(--primary-blue), var(--accent-red), #004494, #c82333);
    background-size: 400% 400%;
    animation: wavingGradient 12s ease infinite;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4));
    z-index: -1;
}

.hero-content {
    color: var(--white);
    max-width: 800px;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.hero-buttons .btn-outline {
    border-color: var(--white);
    color: var(--white);
}

.hero-buttons .btn-outline:hover {
    background-color: var(--white);
    color: var(--text-dark);
}

/* About Section */
.about-container {
    display: flex;
    align-items: center;
    gap: 60px;
}

.about-image-wrapper {
    flex: 1;
    position: relative;
}

.about-image {
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.about-experience {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background-color: var(--primary-green);
    color: var(--white);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow);
}

.exp-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    font-family: var(--font-heading);
}

.about-content {
    flex: 1;
}

.mission-vision {
    margin-top: 30px;
}

.mv-box {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    padding: 20px;
    background-color: var(--bg-light);
    border-radius: 10px;
    border-left: 4px solid var(--primary-blue);
    transition: var(--transition);
}

.mv-box:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow);
}

.mv-icon {
    font-size: 2rem;
    color: var(--primary-blue);
}

/* Leadership */
.leadership-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.leader-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
}

.leader-img {
    width: 100%;
    height: 350px;
    object-fit: contain;
    object-position: top;
    background-color: var(--white);
    padding-top: 20px;
}

.leader-content {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.leader-message {
    font-style: italic;
    color: var(--text-light);
    margin-top: 15px;
    position: relative;
    padding-left: 20px;
    border-left: 3px solid var(--primary-green);
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background-color: var(--white);
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-bottom: 4px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    border-bottom-color: var(--primary-green);
}

.service-icon {
    font-size: 3rem;
    color: var(--accent-red);
    margin-bottom: 20px;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--white);
    min-width: 180px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.1);
    z-index: 1001;
    border-radius: 5px;
    top: 100%;
    left: 0;
    padding: 10px 0;
}

.dropdown-content a {
    color: var(--text-dark);
    padding: 10px 20px;
    text-decoration: none;
    display: block;
    font-weight: 500;
}

.dropdown-content a:hover {
    background-color: var(--bg-light);
    color: var(--primary-blue);
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* Projects */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.project-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

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

.project-img-placeholder {
    width: 100%;
    height: 250px;
    background-color: var(--soft-gray);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 4rem;
    color: var(--text-light);
}

.project-content {
    padding: 30px;
}

.progress-container {
    background-color: var(--soft-gray);
    height: 8px;
    border-radius: 4px;
    margin: 20px 0 10px;
    overflow: hidden;
}

.progress-bar {
    background-color: var(--primary-green);
    height: 100%;
    border-radius: 4px;
}

.progress-stats {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
}

/* Donation */
.donation-wrapper {
    display: flex;
    align-items: center;
    gap: 50px;
}

.donation-text {
    flex: 1;
}

.donation-text h2 {
    font-size: 3rem;
}

.donation-form-wrapper {
    flex: 1;
    background-color: var(--white);
    padding: 40px;
    border-radius: 10px;
    color: var(--text-dark);
    box-shadow: var(--shadow);
}

.donation-types {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.amount-btn {
    padding: 10px 20px;
    border: 1px solid var(--soft-gray);
    background: var(--white);
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.amount-btn.active,
.amount-btn:hover {
    background-color: var(--primary-blue);
    color: var(--white);
    border-color: var(--primary-blue);
}

.donation-amounts {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.form-control {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--soft-gray);
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
}

.mb-3 {
    margin-bottom: 20px;
}

/* Volunteer & Contact */
.split-layout {
    display: flex;
    gap: 60px;
}

.volunteer-section,
.contact-section {
    flex: 1;
}

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

.contact-form .form-row {
    display: flex;
    gap: 20px;
}

.contact-form .form-row .form-group {
    flex: 1;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--soft-gray);
    border-radius: 5px;
    font-family: inherit;
    background-color: var(--bg-light);
}

.contact-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-blue);
    background-color: rgba(0, 86, 179, 0.1);
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
}

.contact-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 30px;
}

/* Footer */
.footer {
    background-color: #1a1a1a;
    color: var(--white);
    padding: 80px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-logo {
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    display: inline-block;
}

.footer-about p {
    color: #999;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background-color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    color: var(--white);
}

.social-links a:hover {
    background-color: var(--primary-green);
}

.footer-links h3,
.footer-contact h3 {
    margin-bottom: 25px;
    font-size: 1.2rem;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a {
    color: #999;
}

.footer-links ul li a:hover {
    color: var(--primary-green);
    padding-left: 5px;
}

.footer-contact p {
    color: #999;
    margin-bottom: 15px;
    display: flex;
    gap: 10px;
}

.footer-contact i {
    color: var(--primary-green);
}

.footer-bottom {
    background-color: #111;
    padding: 20px 0;
    text-align: center;
    color: #666;
}

/* Responsive */
@media (max-width: 992px) {

    .about-container,
    .split-layout {
        flex-direction: column;
    }

    .donation-wrapper {
        flex-direction: column;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

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

    .nav-links {
        display: none;
        /* simple mobile hide for demo */
    }

    .mobile-menu-btn {
        display: block;
    }

    .contact-form .form-row {
        flex-direction: column;
        gap: 0;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .donation-amounts {
        grid-template-columns: 1fr 1fr;
    }
}