/* ================================================================
   Praan Foundation — Stylesheet
   Two-column landing: full brand mark on the left, headline and
   donate CTA on the right, on a cream backdrop.
   ================================================================ */


/* ---------- Design Tokens ---------------------------------------- */
:root {
    /* Palette (matched to the design mockup) */
    --color-cream:       #F8F4E9;
    --color-forest:      #3D5A2E;      /* headline green */
    --color-forest-deep: #2B4020;
    --color-ink:         #1a1a1a;
    --color-ember:       #E67E3D;      /* donate button */
    --color-ember-hover: #D9691F;
    --color-white:       #FFFFFF;

    /* Type */
    --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Motion */
    --ease-out-soft: cubic-bezier(0.22, 1, 0.36, 1);
}


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

html,
body {
    height: 100%;
}

body {
    font-family: var(--font-body);
    background: var(--color-cream);
    color: var(--color-ink);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: inherit;
    text-decoration: none;
}


/* ================================================================
   Stage — full-viewport layout container
   ================================================================ */
.stage {
    min-height: 100vh;
    min-height: 100svh;
    display: grid;
    place-items: center;
    padding: clamp(2rem, 5vw, 4rem) clamp(1.25rem, 5vw, 4rem);
}

.stage__container {
    width: 100%;
    max-width: 1280px;
    display: grid;
    /* Desktop: two equal columns */
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 6vw, 6rem);
    align-items: center;
}


/* ---------- Column 1 : Brand Mark -------------------------------- */
.stage__brand {
    display: flex;
    justify-content: center;
    align-items: center;

    /* Gentle fade-in on load */
    opacity: 0;
    transform: translateY(14px);
    animation: fadeUp 1.1s var(--ease-out-soft) 0.1s forwards;
}

.stage__logo {
    /* Big and fluid — scales with viewport */
    width: clamp(280px, 42vw, 450px);
    height: auto;
}


/* ---------- Column 2 : Content ----------------------------------- */
.stage__content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;

    /* Fade in slightly after the logo */
    opacity: 0;
    transform: translateY(14px);
    animation: fadeUp 1.1s var(--ease-out-soft) 0.35s forwards;
}

/* Headline — bold sans in forest green */
.stage__title {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: clamp(2.25rem, 5vw, 4.25rem);
    line-height: 1.08;
    letter-spacing: -0.015em;
    color: var(--color-forest);
    margin-bottom: clamp(1.25rem, 2.5vw, 1.75rem);
}

/* Supporting paragraph */
.stage__lede {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: clamp(1rem, 1.3vw, 1.15rem);
    line-height: 1.55;
    color: var(--color-ink);
    max-width: 40ch;
    margin-bottom: clamp(1.75rem, 3vw, 2.5rem);
}


/* ================================================================
   Donate Button — rounded rectangle, ember fill, white label
   ================================================================ */
.btn-donate {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: clamp(1.05rem, 1.3vw, 1.2rem);
    color: var(--color-white);
    background: var(--color-ember);
    padding: 0.95rem 2.5rem;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    box-shadow:
        0 8px 20px rgba(230, 126, 61, 0.28),
        0 2px 4px rgba(0, 0, 0, 0.08);
    transition: transform 0.35s var(--ease-out-soft),
                background-color 0.35s ease,
                box-shadow 0.35s var(--ease-out-soft);
}

.btn-donate:hover {
    background-color: var(--color-ember-hover);
    transform: translateY(-2px);
    box-shadow:
        0 12px 26px rgba(230, 126, 61, 0.35),
        0 2px 6px rgba(0, 0, 0, 0.1);
}

.btn-donate:active {
    transform: translateY(0);
}

.btn-donate:focus-visible {
    outline: 3px solid var(--color-forest);
    outline-offset: 4px;
}


/* ================================================================
   Fade-up keyframe
   ================================================================ */
@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ================================================================
   Responsive — Tablet & below : stack, center everything
   ================================================================ */
@media (max-width: 900px) {
    .stage__container {
        grid-template-columns: 1fr;
        gap: clamp(2rem, 5vw, 3rem);
        text-align: center;
    }

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

    .stage__logo {
        width: clamp(240px, 62vw, 440px);
    }

    .stage__lede {
        max-width: 42ch;
    }
}


@media (max-width: 480px) {
    .stage {
        padding: 2rem 1.25rem;
    }

    .stage__logo {
        width: min(80vw, 220px);
    }

    .stage__title {
        font-size: clamp(1.85rem, 8vw, 2.5rem);
    }

    .stage__lede {
        font-size: 0.98rem;
    }

    .btn-donate {
        padding: 0.9rem 2.25rem;
        font-size: 1rem;
    }
}


/* ================================================================
   Accessibility — Reduced Motion
   ================================================================ */
@media (prefers-reduced-motion: reduce) {
    .stage__brand,
    .stage__content {
        animation: none;
        opacity: 1;
        transform: none;
    }

    .btn-donate {
        transition: background-color 0.2s ease;
    }
}
