/* ===== CSS RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Lato', sans-serif;
    line-height: 1.6;
    color: #333333;
    background-color: #ffffff;
    overflow-x: hidden;
    width: 100%;
}

/* ===== CSS VARIABLES ===== */
:root {
    --primary-color: #826B8A;
    --secondary-color: #B8A5C0;
    --white: #FFFFFF;
    --dark-text: #333333;
    --light-gray: #f8f9fa;
    --border-color: #e9ecef;
    --shadow: 0 2px 10px rgba(130, 107, 138, 0.1);
    --shadow-hover: 0 4px 20px rgba(130, 107, 138, 0.15);
    --border-radius: 8px;
    --transition: all 0.3s ease;

    /* Typography */
    --heading-font: 'Lato', sans-serif;
    --body-font: 'Lato', sans-serif;
}

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

h1 { font-size: clamp(2rem, 4vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
h4 { font-size: clamp(1.1rem, 2vw, 1.25rem); }

p {
    margin-bottom: 1rem;
}

.lead {
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--dark-text);
}

/* ===== UTILITY CLASSES ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.section {
    padding: 4rem 0;
}

.section-alt {
    background-color: var(--light-gray);
}

.section-title {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== SKIP LINK ===== */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 1000;
    border-radius: 4px;
}

.skip-link:focus {
    top: 6px;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-family: var(--heading-font);
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 1rem;
}

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

.btn-primary:hover {
    background-color: #6f5875;
    border-color: #6f5875;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

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

.btn-secondary:hover {
    background-color: #a394ab;
    border-color: #a394ab;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

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

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* ===== HEADER & NAVIGATION ===== */
.header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 180px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    height: 160px;
    width: auto;
}

.logo-text {
    font-family: var(--heading-font);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.2rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--dark-text);
    font-weight: 500;
    font-size: 0.8rem;
    transition: var(--transition);
    position: relative;
}

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

.nav-menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-cta {
    margin-left: 2rem;
}

.nav-donate-btn {
    font-size: 0.9rem;
    padding: 8px 20px;
    border-radius: 25px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.nav-donate-btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-hover);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.hamburger {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 3px 0;
    transition: var(--transition);
}

/* ===== HERO SECTION ===== */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    text-align: center;
    padding: 8rem 2rem 6rem;
    margin-top: 180px;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-logo {
    margin-bottom: 2rem;
}

.hero-logo-img {
    height: 400px;
    width: auto;
    max-width: 100%;
    margin-bottom: 1rem;
    background: transparent;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-tagline {
    font-size: clamp(1.2rem, 2.5vw, 1.75rem);
    font-weight: 300;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== ABOUT SECTION ===== */
.about-grid {
    display: grid;
    gap: 3rem;
    margin-bottom: 3rem;
}

.about-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.charity-number {
    background-color: var(--light-gray);
    padding: 1rem;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
    margin-top: 2rem;
}

.mission-vision {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-top: 4px solid var(--primary-color);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.why-roots {
    background: var(--light-gray);
    padding: 3rem;
    border-radius: var(--border-radius);
    text-align: center;
}

.why-roots h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.roots-list {
    list-style: none;
    max-width: 600px;
    margin: 2rem auto 0;
    text-align: left;
}

.roots-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.roots-list li:last-child {
    border-bottom: none;
}

/* ===== IMPACT SECTION ===== */
.impact-gallery {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    margin-bottom: 4rem;
}

.impact-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.impact-item.reverse {
    grid-template-columns: 1fr 1fr;
}

.impact-item.reverse .impact-image {
    order: 2;
}

.impact-item.reverse .impact-content {
    order: 1;
}

.impact-image {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-hover);
}

.impact-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    aspect-ratio: 4/3;
    transition: var(--transition);
}

.impact-img:hover {
    transform: scale(1.05);
}

.impact-content h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.impact-content p {
    margin-bottom: 1.5rem;
    color: #666;
}

.impact-points {
    list-style: none;
    padding: 0;
}

.impact-points li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: #666;
}

.impact-points li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.impact-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: var(--border-radius);
    color: var(--white);
}

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

.stat-number {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    font-family: var(--heading-font);
    line-height: 1;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.stat-label {
    font-size: 1.1rem;
    font-weight: 500;
    opacity: 0.9;
}

/* ===== PROJECTS SECTION ===== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.project-card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
    border-top: 4px solid var(--primary-color);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.project-image {
    position: relative;
    overflow: hidden;
    height: 200px;
    background: var(--light-gray);
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.project-img:hover {
    transform: scale(1.05);
}

.project-content {
    padding: 2rem;
}

.project-content h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.project-description {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.project-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.project-status,
.project-location {
    font-size: 0.875rem;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-weight: 500;
}

.project-status {
    background-color: var(--secondary-color);
    color: var(--white);
}

.project-location {
    background-color: var(--light-gray);
    color: var(--dark-text);
}

.projects-cta {
    text-align: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 3rem 2rem;
    border-radius: var(--border-radius);
}

.projects-cta h3 {
    color: var(--white);
    margin-bottom: 1rem;
}

.projects-cta p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.projects-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== WORK SECTION ===== */
.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.work-card {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    border-top: 4px solid var(--primary-color);
}

.work-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.work-icon {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.work-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* ===== GET INVOLVED SECTION ===== */
.involvement-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.involvement-card {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-top: 4px solid var(--primary-color);
}

.involvement-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.involvement-card.highlight {
    border-top-color: var(--secondary-color);
    background: linear-gradient(135deg, #f8f6fa 0%, #f0ecf4 100%);
}

.involvement-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.involvement-card ul {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
}

.involvement-card li {
    margin-bottom: 0.5rem;
    color: #666;
}

.donation-options {
    margin: 1.5rem 0;
}

.bank-details {
    background: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin: 1.5rem 0;
    border: 2px solid var(--primary-color);
}

.bank-info {
    margin-top: 1rem;
}

.bank-info p {
    margin-bottom: 0.5rem;
    font-size: 1rem;
    color: var(--dark-text);
}

.bank-info .charity-note {
    margin-top: 1rem;
    font-size: 0.9rem;
    font-style: italic;
    color: #666;
}

/* ===== CONTACT SECTION ===== */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item h3, .contact-item h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-links a {
    color: var(--primary-color);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 2px solid var(--primary-color);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

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

/* ===== FORMS ===== */
.contact-form {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark-text);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: var(--body-font);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(130, 107, 138, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.error-message {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

/* ===== FOOTER ===== */
.footer {
    background-color: var(--dark-text);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

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

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #555;
    opacity: 0.8;
}

.charity-reg {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* ===== BACK TO TOP BUTTON ===== */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: #6f5875;
    transform: translateY(-3px);
}

/* ===== MOBILE RESPONSIVENESS ===== */
@media (max-width: 768px) {
    .nav-container {
        min-height: 140px;
    }

    .logo-img {
        height: 120px;
    }

    .nav-menu {
        position: fixed;
        top: 140px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 140px);
        background-color: var(--white);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 2rem;
        transition: var(--transition);
        box-shadow: var(--shadow);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 1rem 0;
    }

    .nav-menu a {
        font-size: 1.2rem;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-cta {
        display: none;
    }

    .nav-toggle.active .hamburger:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .nav-toggle.active .hamburger:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .hamburger:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    .hero {
        margin-top: 140px;
        padding: 4rem 1rem 3rem;
        min-height: auto;
    }

    .hero-logo-img {
        height: 250px;
    }

    .hero-content {
        max-width: 100%;
        padding: 0 0.5rem;
    }

    .hero-description {
        font-size: 1rem;
        padding: 0 0.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 250px;
    }

    .section {
        padding: 3rem 0;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-form {
        padding: 1.5rem;
    }

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

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

    .mission-vision {
        grid-template-columns: 1fr;
    }

    .impact-item {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .impact-item.reverse .impact-image {
        order: 1;
    }

    .impact-item.reverse .impact-content {
        order: 2;
    }

    .impact-stats {
        grid-template-columns: repeat(2, 1fr);
        padding: 1.5rem;
    }

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

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .nav-container {
        min-height: 100px;
        padding: 0 0.75rem;
    }

    .logo-img {
        height: 80px;
    }

    .logo-text {
        font-size: 1rem;
    }

    .nav-menu {
        top: 100px;
        height: calc(100vh - 100px);
    }

    .container {
        padding: 0 1rem;
    }

    .hero {
        margin-top: 100px;
        padding: 3rem 1rem 2rem;
    }

    .hero-logo-img {
        height: 180px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-tagline {
        font-size: 1.1rem;
    }

    .hero-description {
        font-size: 0.95rem;
        margin-bottom: 2rem;
    }

    .hero-buttons .btn {
        padding: 10px 24px;
        font-size: 0.95rem;
    }

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

    .section-subtitle {
        font-size: 1rem;
    }

    .work-card, .involvement-card {
        padding: 2rem 1.5rem;
    }

    .contact-form {
        padding: 1rem;
    }

    .why-roots {
        padding: 2rem 1.5rem;
    }

    .impact-gallery {
        gap: 3rem;
    }

    .impact-item {
        gap: 1.5rem;
    }

    .impact-stats {
        grid-template-columns: 1fr;
        padding: 1rem;
    }

    .projects-cta {
        padding: 2rem 1rem;
    }

    .projects-buttons {
        flex-direction: column;
        align-items: center;
    }

    .projects-buttons .btn {
        width: 100%;
        max-width: 250px;
    }

    .stat-number {
        font-size: 2rem;
    }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus indicators for keyboard navigation */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #5a4a61;
        --secondary-color: #8a7a8a;
        --shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    }
}