/* munju.org - Humanist Priority Organization */
/* Colors: #18665A, #D06050, #2A2018, #FAF6EE, #4A3828, #E08040, #FFF0E8, #A8C0A0 */
/* Fonts: Poppins, Source Serif 4 */

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Source Serif 4', Georgia, serif;
    color: #4A3828;
    background: #FAF6EE;
    overflow-x: hidden;
}

.svg-defs {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

/* Section Base */
.section {
    position: relative;
    padding: 80px 20px 40px;
}

.section--ivory {
    background: #FAF6EE;
}

.section--peach {
    background: #FFF0E8;
}

.section__content {
    max-width: 880px;
    margin: 0 auto;
    position: relative;
}

.section__content--two-col {
    display: grid;
    grid-template-columns: 60% 40%;
    gap: 40px;
    align-items: center;
}

/* Wave Dividers */
.wave-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    line-height: 0;
    z-index: 1;
}

.wave-divider svg {
    width: 100%;
    height: 80px;
    display: block;
}

/* Typography */
.site-title {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #2A2018;
    opacity: 0;
    animation: fadeInWarm 1.5s ease forwards;
}

.site-subtitle {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 1.3rem;
    font-weight: 400;
    color: #18665A;
    margin-top: 12px;
    opacity: 0;
    animation: fadeInWarm 1.5s ease 0.5s forwards;
}

.site-tagline {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 1.05rem;
    line-height: 1.8;
    color: #4A3828;
    margin-top: 20px;
    max-width: 600px;
    opacity: 0;
    animation: fadeInWarm 1.5s ease 1s forwards;
}

.section-title {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #2A2018;
    margin-bottom: 24px;
}

.section-body {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 1.05rem;
    line-height: 1.8;
    color: #4A3828;
    margin-bottom: 16px;
}

.section-body--centered {
    text-align: center;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Welcome Section */
#welcome {
    padding-top: 120px;
    padding-bottom: 100px;
    text-align: center;
}

#welcome .section__content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Leaf Accents */
.leaf-accents {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    overflow: hidden;
}

.leaf-accents--welcome::before,
.leaf-accents--welcome::after,
.leaf-accents--footer::before,
.leaf-accents--footer::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 30px;
    background: #A8C0A0;
    opacity: 0.3;
    border-radius: 0 50% 50% 50%;
    animation: leafDrift 8s ease-in-out infinite;
}

.leaf-accents--welcome::before {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.leaf-accents--welcome::after {
    top: 30%;
    right: 15%;
    animation-delay: 2s;
    width: 22px;
    height: 22px;
}

.leaf-accents--footer::before {
    top: 15%;
    left: 8%;
    animation-delay: 1s;
}

.leaf-accents--footer::after {
    top: 25%;
    right: 12%;
    animation-delay: 3s;
    width: 25px;
    height: 25px;
}

/* People Figures */
.people-figures {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.people-figures--welcome::before,
.people-figures--welcome::after {
    content: '';
    position: absolute;
    opacity: 0.15;
}

.people-figures--welcome::before {
    width: 20px;
    height: 40px;
    background: #18665A;
    border-radius: 10px 10px 5px 5px;
    bottom: 30%;
    left: 8%;
}

.people-figures--welcome::after {
    width: 16px;
    height: 32px;
    background: #A8C0A0;
    border-radius: 8px 8px 4px 4px;
    bottom: 35%;
    right: 10%;
}

/* People Group */
.people-group {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 12px;
    padding: 40px 0;
}

.person {
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0.2;
}

.person::before {
    content: '';
    width: 24px;
    height: 24px;
    border-radius: 50%;
    margin-bottom: 4px;
}

.person::after {
    content: '';
    width: 20px;
    height: 44px;
    border-radius: 10px;
}

.person--small::before {
    width: 18px;
    height: 18px;
}

.person--small::after {
    width: 15px;
    height: 33px;
}

.person--teal::before,
.person--teal::after {
    background: #18665A;
}

.person--sage::before,
.person--sage::after {
    background: #A8C0A0;
}

.person--orange::before,
.person--orange::after {
    background: #E08040;
}

/* Priority Arcs */
.priority-arc {
    display: flex;
    justify-content: center;
}

.priority-arc svg {
    width: 140px;
    height: 140px;
}

.arc-bg {
    fill: none;
    stroke: #A8C0A0;
    stroke-width: 8;
    opacity: 0.3;
}

.arc-fill {
    fill: none;
    stroke: #18665A;
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 326.73;
    stroke-dashoffset: 326.73;
    transform: rotate(-90deg);
    transform-origin: center;
    transition: stroke-dashoffset 1.5s ease;
}

.arc-label {
    font-family: 'Poppins', sans-serif;
    font-size: 0.75rem;
    fill: #4A3828;
    font-weight: 600;
}

.arc-value {
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    fill: #18665A;
    font-weight: 700;
}

/* Priorities Grid */
.priorities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 40px;
}

.priority-card {
    background: #FFF0E8;
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    transition: transform 0.3s ease;
}

.section--ivory .priority-card {
    background: #FFF0E8;
}

.priority-card:hover {
    transform: translateY(-4px);
}

.priority-card__arc {
    margin-bottom: 16px;
}

.priority-card__arc svg {
    width: 80px;
    height: 80px;
}

.priority-card__arc .arc-bg {
    stroke-width: 6;
}

.priority-card__arc .arc-fill {
    stroke-width: 6;
    stroke: #D06050;
}

.priority-card__title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: #2A2018;
    margin-bottom: 10px;
}

.priority-card__desc {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 0.95rem;
    line-height: 1.7;
    color: #4A3828;
}

/* Approach List */
.approach-list {
    list-style: none;
    margin-top: 20px;
}

.approach-list__item {
    position: relative;
    padding-left: 28px;
    margin-bottom: 14px;
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 1.05rem;
    line-height: 1.6;
    color: #4A3828;
}

.approach-list__item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 14px;
    height: 14px;
    background: #A8C0A0;
    border-radius: 0 50% 50% 50%;
    opacity: 0.6;
}

/* Impact Stats */
.impact-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 40px;
    text-align: center;
}

.impact-stat__number {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: #D06050;
    display: block;
}

.impact-stat__label {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 1rem;
    color: #4A3828;
    margin-top: 8px;
    display: block;
}

/* Footer */
.section--footer {
    padding-bottom: 60px;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-top: 32px;
    margin-bottom: 40px;
}

.footer-link {
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: #18665A;
    cursor: pointer;
    padding: 10px 24px;
    border: 2px solid #18665A;
    border-radius: 24px;
    transition: background 0.3s ease, color 0.3s ease;
}

.footer-link:hover {
    background: #18665A;
    color: #FAF6EE;
}

.footer-copyright {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 0.85rem;
    color: #4A3828;
    opacity: 0.6;
}

/* Animations */
@keyframes fadeInWarm {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes leafDrift {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(6px, -8px) rotate(15deg);
    }
    50% {
        transform: translate(-4px, -14px) rotate(-10deg);
    }
    75% {
        transform: translate(8px, -6px) rotate(20deg);
    }
}

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .section__content--two-col {
        grid-template-columns: 1fr;
    }

    .priorities-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }

    .impact-stats {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .footer-links {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }
}
