
:root {
    --green-dark:  rgb(15, 42, 29);
    --green-mid:   #1a5c38;
    --accent:      #f0c040;
    --white:       #ffffff;
    --transition:  .3s cubic-bezier(.4, 0, .2, 1);
}

/* ── RESET & BASE ───────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Aileron', sans-serif;
    background: #fff;
    color: var(--green-dark);
}



@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0);   }
    50%       { transform: translateX(-50%) translateY(8px); }
}

/* ── WHO WE ARE ─────────────────────────────── */
#whoweare {
    scroll-margin-top: 0;
}

/* ── CAROUSEL ───────────────────────────────── */
.carousel {
    position: relative;
    width: 100%;
    height: 680px;
    overflow: hidden;
}

.slides {
    display: flex;
    animation: slide 12s infinite;
}

.slides img {
    width: 100%;
    height: 680px;
    object-fit: cover;
    flex-shrink: 0;
    filter: brightness(38%) blur(3px);
}

@keyframes slide {
    0%,  20% { transform: translateX(0%);    }
    33%, 53% { transform: translateX(-100%); }
    66%, 86% { transform: translateX(-200%); }
    100%      { transform: translateX(0%);   }
}

/* ── CAROUSEL TEXT ──────────────────────────── */
.carousel-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--white);
    z-index: 2;
    width: 90%;
    max-width: 900px;
}

.carousel-text h1 {
    font-size: clamp(2rem, 6vw, 4.5rem);
    font-weight: bold;
    line-height: 1.1;
    letter-spacing: .03em;
    text-shadow: 0 2px 20px rgba(0,0,0,.5);
    margin-bottom: 20px;
}

.carousel-text p {
    font-size: clamp(1rem, 2.5vw, 1.8rem);
    background: #0f2a1dd1;
    padding: 10px 28px;
    border-radius: 50px;
    color: var(--white);
    display: inline-block;
    letter-spacing: .06em;
}

/* ── GENERIC SECTIONS ───────────────────────── */
#wwa,
#wwb,
#wwe {
    padding: 60px 60px;
    scroll-margin-top: 100px; /* offset for sticky header */
}

#wwa h2,
#wwb h2,
#wwe h2 {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--green-dark);
    margin-bottom: 20px;
}

#wwe p {
    font-size: 1rem;
    color: var(--green-dark);
    line-height: 1.7;

}

#wwa p {
    margin-left: 3rem;
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--accent);
    text-align: right;
}

#wwa{
    background-color: var(--green-dark);
}

#wwa h2{
    color: var(--accent);
}
#wwa h3 {
    margin-left: 3rem;
    font-size: 1.1rem;
    color: white;
    line-height: 1.7;
    margin-bottom: 20px;
}

#wwe {
    background-color: var(--green-dark);
}

#wwe h2{
    color: var(--accent);
}

#wwe p{
    font-weight: bold;
    margin-left: 3rem;
    font-size: 1.1rem;
    color: white;
    line-height: 1.7;
    margin-bottom: 20px;
}



/* ── PILL SCROLL (wwb) ──────────────── */
.pill-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 10px;
}

.pill-wwe {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 10px;
    align-self: center;
    justify-content: center;
}

.pill_wwe{
    display: flex;
    text-align: justify;
    padding-left: 50px;
    padding-right: 50px;
    max-width: 25rem;
}

.pill_wwe h3{
    text-align: justify;
    max-width: 30rem;
    line-height: 1.2;
    color: white;
}

.pill_wwe span{
    color: var(--accent);
}

.pill-scroll::-webkit-scrollbar {
    height: 4px;
}

.pill-scroll::-webkit-scrollbar-track {
    background: rgba(15,42,29,.08);
    border-radius: 2px;
}

.pill-scroll::-webkit-scrollbar-thumb {
    background: var(--green-dark);
    border-radius: 2px;
}

.pill {
    flex-shrink: 0;
    scroll-snap-align: start;
    padding: 14px 28px;
    border-radius: 20px;
    background: var(--green-dark);
    color: var(--white);
    font-family: 'Aileron', sans-serif;
    font-size: .9rem;
    font-weight: 500;
    letter-spacing: .03em;
    box-shadow: 0 5px 5px var(--accent);
    height: 23em;
    width:20em;
    text-align: justify;
}

.pill h1{
    font-weight: 800;
    font-size: 2.5rem;
}

.pill p{
    font-size: 1.01rem;
}



/* ── BACK TO TOP BUTTON ─────────────────────── */
#back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 999;

    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: solid 2px white;
    cursor: pointer;

    background: var(--green-dark);
    color: var(--white);
    box-shadow: 0 4px 18px rgba(15,42,29,.40);

    display: flex;
    align-items: center;
    justify-content: center;

    /* Hidden by default */
    opacity: 0;
    pointer-events: none;
    transform: translateY(14px);
    transition: opacity var(--transition), transform var(--transition),
                background var(--transition);
}

#back-to-top svg {
    width: 22px;
    height: 22px;
}

#back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

#back-to-top:hover {
    background: var(--green-mid);
    box-shadow: 0 6px 24px rgba(15,42,29,.55);
}

#back-to-top:active {
    transform: scale(.93);
}

/* ── FONTS ──────────────────────────────────── */
@font-face {
    font-family: 'Aileron';
    src: url('../fonts/Aileron-Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Aileron';
    src: url('../fonts/Aileron-Bold.otf') format('opentype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'Aileron';
    src: url('../fonts/Aileron-Light.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Aileron';
    src: url('../fonts/Aileron-Italic.otf') format('opentype');
    font-weight: normal;
    font-style: italic;
}

/* ════════════════════════════════════════════
   RESPONSIVE — MOBILE / TABLET
   ════════════════════════════════════════════ */

/* ── TABLET (≤900px) ───────────────────────── */
@media (max-width: 900px) {

    .carousel,
    .slides img {
        height: 480px;
    }

    #wwa, #wwb, #wwe {
        padding: 44px 32px;
        text-align: justify;
    }

    #wwa p, #wwa h3, #wwe p {
        margin-left: 1.5rem;
        text-align: justify;
    }

    .pill {
        height: 20em;
        width: 17em;
    }
}

/* ── MOBILE (≤700px) ────────────────────────── */
@media (max-width: 700px) {

    .carousel,
    .slides img {
        height: 360px;
    }

    .carousel-text p {
        padding: 8px 18px;
    }

    #wwa, #wwb, #wwe {
        padding: 32px 20px;
    }

    #wwa h2, #wwb h2, #wwe h2 {
        font-size: 1.4rem;
        text-align: justify;
    }

    /* "WHO WE ARE" intro text — drop the large right-aligned
       margin/indent so it doesn't get squeezed on small screens */
    #wwa p {
        margin-left: 0;
        font-size: 1.05rem;
        text-align: justify;
    }

    #wwa h3 {
        margin-left: 0;
        font-size: .95rem;
        text-align: justify;
    }

    #wwe p {
        margin-left: 0;
        font-size: .95rem;
        text-align: justify;
    }

    /* Belief pills — shrink so ~1.2 cards peek per screen,
       signalling horizontal scroll is available */
    .pill {
        height: 17em;
        width: 78vw;
        padding: 12px 18px;
    }

    .pill h1 {
        font-size: 2rem;
    }

    .pill p {
        font-size: .92rem;
    }

    /* "WHY WE EXIST" pills — stack vertically instead of
       a horizontal scroller, since there are only 3 of them */
    .pill-wwe {
        flex-direction: column;
        align-items: center;
        overflow-x: visible;
    }

    .pill_wwe {
        padding-left: 12px;
        padding-right: 12px;
        max-width: 100%;
    }

    .pill_wwe h3 {
        max-width: 100%;
        text-align: center;
        font-size: .95rem;
    }

    /* Smaller, closer-to-edge back-to-top button */
    #back-to-top {
        width: 42px;
        height: 42px;
        bottom: 20px;
        right: 20px;
    }

    #back-to-top svg {
        width: 18px;
        height: 18px;
    }
}

/* ── SMALL MOBILE (≤420px) ──────────────────── */
@media (max-width: 420px) {
    .carousel,
    .slides img {
        height: 300px;
    }

    .pill {
        width: 84vw;
    }
}