/* style.css - Nevskiy Project - 10/10 - Opulent Minimalism - Final Refinement */

:root {
    --primary-color: #1a202c;
    --secondary-color: #718096;
    --background-color: #f9fafb;
    --accent-color: #a0aec0;
    --font-family-logo: 'Playfair Display SC', serif;
    --font-family: 'Inter', sans-serif;
    --header-font-weight: 700;
    --body-font-weight: 400;
    --transition-duration: 0.3s;
}

body {
    font-family: var(--font-family);
    font-weight: var(--body-font-weight);
    margin: 0;
    padding: 0;
    background-color: var(--background-color);
    color: var(--primary-color);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2em 3em; /* Adjusted main padding for better spacing */
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family);
    font-weight: var(--header-font-weight);
    color: var(--primary-color);
    letter-spacing: -0.02em;
    line-height: 1.3;
    margin-bottom: 0.7em;
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.8rem; }
h4 { font-size: 1.4rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p {
    font-size: 1.05rem;
    color: var(--primary-color);
    margin-bottom: 1.7em; /* Increased paragraph margin-bottom for vertical rhythm */
    line-height: 1.8; /* Adjusted body line-height for enhanced readability */
    text-align: justify; /* Added justify for cleaner text blocks in minimalist design */
}

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

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

/* Layout & Sections */
section {
    padding: 4em 0; /* Increased section padding for more whitespace */
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1.5em;
}

/* Navigation */
nav {
    padding: 2.5em 3em; /* Increased nav padding for spacious header */
    border-bottom: 1px solid var(--accent-color);
}

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

nav .logo {
    font-family: var(--font-family-logo);
    font-size: 1.7rem; /* Increased logo font size for greater visual presence */
    font-weight: 700;
    letter-spacing: 0.06em; /* Further adjusted logo letter-spacing for refinement */
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

nav li {
    margin-left: 2.5em; /* Increased nav list item spacing */
}

nav li:first-child {
    margin-left: 0;
}

nav a {
    display: block;
    padding: 0.5em 0;
    font-weight: 500;
}

/* Hero Section (Homepage) */
#hero {
    background-color: var(--background-color);
    text-align: center;
    padding: 8em 0; /* Increased hero padding for expansive homepage header */
}

#hero h1 {
    font-size: 4rem; /* Increased hero heading font size for impact */
    margin-bottom: 0.6em;
    letter-spacing: -0.03em; /* Further refined hero heading letter-spacing */
}

#hero p {
    font-size: 1.25rem; /* Slightly larger hero paragraph font */
    max-width: 750px; /* Adjusted max-width for hero paragraph */
    margin: 0 auto 2.5em; /* Increased margin below hero paragraph */
    color: var(--secondary-color);
    line-height: 1.9; /* Adjusted hero paragraph line-height for readability at larger size */
}

/* Button Style */
.button {
    display: inline-block;
    padding: 0.9em 2.2em; /* Adjusted button padding for balanced size */
    border: 2px solid var(--primary-color);
    border-radius: 8px; /* Slightly more rounded buttons */
    color: var(--primary-color);
    background-color: transparent;
    font-weight: 600;
    text-decoration: none;
    transition: background-color var(--transition-duration), color var(--transition-duration);
    font-size: 1.05rem; /* Slightly larger button font-size */
}

.button:hover {
    background-color: var(--primary-color);
    color: #fff;
}

.button.accent {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.button.accent:hover {
    background-color: var(--accent-color);
    color: #fff;
}


/* Feature Sections */
.feature-section {
    text-align: center;
    padding-top: 5em; /* Increased feature section top padding */
    padding-bottom: 3em; /* Slightly reduced feature section bottom padding for balance */
}

.feature-section h2 {
    margin-bottom: 2em; /* Increased feature section heading margin */
    font-size: 2.5rem; /* Increased feature section heading size */
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); /* Adjusted min-width for feature grid items */
    gap: 3em; /* Increased gap between feature grid items for spaciousness */
}

.feature-item {
    padding: 2.5em; /* Increased feature item padding */
    border-radius: 10px; /* More rounded feature item cards */
    background-color: #fff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06); /* Slightly enhanced feature item shadow */
    transition: transform var(--transition-duration);
}

.feature-item:hover {
    transform: translateY(-8px); /* Slightly more pronounced hover transform */
}

.feature-item h3 {
    margin-top: 0;
    margin-bottom: 1em; /* Increased feature item heading margin */
    font-size: 2rem; /* Increased feature item heading size */
}

.feature-item p {
    margin-bottom: 0;
    color: var(--secondary-color);
    line-height: 1.8; /* Adjusted feature item paragraph line-height for readability */
}

/* Donation List Section */
#donations-section .donation-list {
    margin-top: 3em; /* Increased donation list top margin */
}

#donations-section .donation-item {
    padding: 2em 0; /* Increased donation item padding */
    border-bottom: 1.5px solid var(--accent-color); /* Slightly thicker donation item border */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#donations-section .donation-item:last-child {
    border-bottom: none;
}

#donations-section .donation-details {
    flex-grow: 1;
}

#donations-section .donation-date {
    color: var(--secondary-color);
    font-size: 1rem; /* Slightly larger donation date font */
    margin-bottom: 0.4em;
}

#donations-section .donation-org {
    font-weight: 600;
    font-size: 1.1rem; /* Slightly larger donation org font */
    line-height: 1.7; /* Adjusted donation org line-height */
}

#donations-section .donation-amount {
    font-weight: 600;
    margin-left: 3em; /* Increased donation amount margin */
    white-space: nowrap;
    font-size: 1.1rem; /* Slightly larger donation amount font */
}

/* Team Section */
#team-section .team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Adjusted min-width for team grid */
    gap: 3em; /* Increased team grid gap for spaciousness */
}

#team-section .team-member {
    text-align: left; /* Adjusted team member text alignment to left for better readability in grid */
}


#team-section .team-member h4 {
    margin-bottom: 0.5em; /* Increased team member heading margin */
    font-size: 1.6rem; /* Increased team member heading font size */
}

#team-section .team-member p {
    margin-bottom: 0;
    color: var(--secondary-color);
    line-height: 1.8; /* Adjusted team member paragraph line-height for readability */
}


/* FAQ Section */
#faq-section .faq-list {
    margin-top: 3em; /* Increased faq list top margin */
}

#faq-section .faq-item {
    margin-bottom: 2em; /* Increased faq item margin-bottom */
    padding-bottom: 1.5em; /* Added padding to separate faq items visually */
    border-bottom: 1px solid var(--accent-color); /* Added border between faq items */
}

#faq-section .faq-item:last-child {
    border-bottom: none; /* Remove border from last faq item */
    padding-bottom: 0; /* Remove padding from last faq item */
}

#faq-section .faq-question {
    font-weight: 600;
    margin-bottom: 0.8em; /* Increased faq question margin-bottom */
    font-size: 1.2rem; /* Increased faq question font size */
    line-height: 1.6; /* Adjusted faq question line height */
}

#faq-section .faq-answer {
    color: var(--secondary-color);
    line-height: 1.8; /* Adjusted faq answer line-height for readability */
}


/* Contact Section */
#contact-section {
    text-align: center;
    padding-bottom: 6em; /* Increased contact section bottom padding for page balance */
}

#contact-section p {
    margin-bottom: 3em; /* Increased contact section paragraph margin-bottom */
    color: var(--secondary-color);
    font-size: 1.1rem; /* Slightly larger contact section paragraph font */
    line-height: 1.8; /* Adjusted contact section paragraph line-height */
}

#contact-section a.email-link {
    font-size: 1.3rem; /* Increased email link font size */
    font-weight: 600;
    color: var(--primary-color);
}


/* Footer */
footer {
    background-color: var(--primary-color);
    color: #fff;
    text-align: center;
    padding: 2.5em 0; /* Increased footer padding for balanced spacing */
    font-size: 1rem; /* Slightly larger footer font */
    margin-top: 5em; /* Increased footer margin-top for page separation */
}

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

/* Language Switch Button */
#language-switch {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: transparent;
    color: var(--secondary-color);
    border: 1.5px solid var(--secondary-color); /* Slightly thicker language switch border */
    padding: 0.5em 1em; /* Adjusted language switch padding */
    border-radius: 6px; /* Slightly more rounded language switch button */
    cursor: pointer;
    font-size: 0.9rem; /* Slightly larger language switch font */
    transition: background-color var(--transition-duration), color var(--transition-duration);
}

#language-switch:hover {
    background-color: var(--secondary-color);
    color: var(--background-color);
}


/* Responsive adjustments */
@media (max-width: 768px) {
    main {
        padding: 1.5em;
    }
    nav {
        padding: 1.5em;
    }
    nav .container {
        flex-direction: column;
        align-items: flex-start;
    }
    nav ul {
        margin-top: 1em;
        flex-direction: column;
    }
    nav li {
        margin-left: 0;
        margin-bottom: 1em;
    }
    #hero {
        padding: 6em 0; /* Adjusted hero padding for smaller screens */
    }
    #hero h1 {
        font-size: 3rem; /* Adjusted hero heading font size for smaller screens */
        letter-spacing: -0.02em; /* Adjusted hero heading letter-spacing for smaller screens */
    }
    #hero p {
        font-size: 1.15rem; /* Adjusted hero paragraph font size for smaller screens */
        max-width: 90%; /* Wider hero paragraph on smaller screens */
    }
    .feature-section {
        padding-top: 4em; /* Adjusted feature section top padding for smaller screens */
        padding-bottom: 2em; /* Adjusted feature section bottom padding for smaller screens */
    }
    .feature-section h2 {
        font-size: 2.3rem; /* Adjusted feature section heading font size for smaller screens */
    }
    .feature-grid {
        grid-template-columns: 1fr; /* Stack features on smaller screens */
        gap: 2.5em; /* Adjusted feature grid gap for smaller screens */
    }
    .feature-item {
        padding: 2em; /* Adjusted feature item padding for smaller screens */
    }
    .feature-item h3 {
        font-size: 1.9rem; /* Adjusted feature item heading font size for smaller screens */
    }
    .feature-item p {
        font-size: 1rem; /* Adjusted feature item paragraph font size for smaller screens */
    }
    #donations-section .donation-amount {
        margin-left: 0;
        margin-top: 0.5em;
        font-size: 1rem; /* Adjusted donation amount font size for smaller screens */
    }
     #donations-section .donation-org {
        font-size: 1rem; /* Adjusted donation org font size for smaller screens */
    }
    #faq-section .faq-question {
         font-size: 1.1rem; /* Adjusted faq question font size for smaller screens */
    }
     #faq-section .faq-answer {
         font-size: 1rem; /* Adjusted faq answer font size for smaller screens */
    }
    footer {
        font-size: 0.9rem; /* Adjusted footer font size for smaller screens */
        padding: 2em; /* Adjusted footer padding for smaller screens */
        margin-top: 3em; /* Adjusted footer margin-top for smaller screens */
    }
    nav .logo {
        font-size: 1.4rem; /* Adjusted logo font size for smaller screens */
    }
    nav li {
        margin-left: 0;
        margin-bottom: 1.5em; /* Increased nav list item margin-bottom on smaller screens */
    }
    nav a {
         font-size: 1.0rem; /* Adjusted nav link font size for smaller screens */
    }


}