@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;500;600;700&family=Nunito:wght@400;500;600;700;800&display=swap');

:root {
    --sun: #FFC94A;
    --sun-deep: #FFA726;
    --sky: #FFF6E3;
    --hill-1: #8BC34A;
    --hill-2: #6BAE3F;
    --hill-3: #4F9A2E;
    --text-dark: #4A3B22;
    --text-muted: #7A6A4F;
    --card-bg: rgba(255, 255, 255, 0.86);
    --nav-bg: rgba(255, 246, 227, 0.55);
    --nav-bg-scrolled: rgba(255, 246, 227, 0.94);
}

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

html {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Nunito', sans-serif;
    background: linear-gradient(180deg, #FFF6E3 0%, #FFE9B8 45%, #FFD98A 100%);
    color: var(--text-dark);
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    position: relative;
    width: 100%;
}

h1, h2, h3 {
    font-family: 'Fredoka', sans-serif;
}

a { text-decoration: none; }

/* ---- Background animation canvas ---- */

#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ---- Layering ---- */

main, footer {
    position: relative;
    z-index: 2;
}

.hero, .cards-section, .cta {
    position: relative;
    z-index: 2;
}

/* ---- Nav ---- */

nav {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: var(--nav-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 22px 0;
    transition: padding 250ms ease, background 250ms ease, box-shadow 250ms ease;
    box-sizing: border-box;
}

nav.nav-scrolled {
    padding: 10px 0;
    background: var(--nav-bg-scrolled);
    box-shadow: 0 4px 18px rgba(170, 120, 20, 0.15);
}

@media (prefers-reduced-motion: reduce) {
    nav { transition: none; }
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
}

.logo {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: 0.5px;
    transition: font-size 250ms ease;
}

nav.nav-scrolled .logo {
    font-size: 1.2rem;
}

.logo span {
    color: var(--sun-deep);
}

.nav-link {
    display: inline-block;
    background: var(--sun-deep);
    color: #fff;
    font-weight: 700;
    padding: 12px 26px;
    border-radius: 999px;
    font-size: 0.95rem;
    transition: padding 250ms ease, transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
    box-shadow: 0 6px 16px rgba(255, 167, 38, 0.4);
    white-space: nowrap;
}

nav.nav-scrolled .nav-link {
    padding: 8px 20px;
    font-size: 0.85rem;
}

.nav-link:hover {
    background: #FF9800;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 167, 38, 0.55);
}

.nav-link:focus-visible {
    outline: 3px solid var(--text-dark);
    outline-offset: 2px;
}

/* ---- Hero ---- */

main {
    display: block;
}

.hero {
    padding: 14vh 24px 8vh;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero h1 {
    font-size: clamp(2rem, 6vw, 5rem);
    line-height: 1.15;
    font-weight: 700;
    color: var(--text-dark);
    text-shadow: 0 2px 20px rgba(255, 255, 255, 0.6);
}

.hero p {
    margin: 26px auto 0;
    max-width: 680px;
    font-size: 1.15rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ---- Cards ---- */

.cards-section {
    padding: 4vh 24px 10vh;
    max-width: 1200px;
    margin: 0 auto;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 38px 32px;
    backdrop-filter: blur(6px);
    box-shadow: 0 10px 30px rgba(170, 120, 20, 0.12);
    transition: transform 220ms ease, box-shadow 220ms ease;
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 40px rgba(170, 120, 20, 0.22);
}

.card-icon {
    font-size: 2rem;
    margin-bottom: 14px;
    display: block;
}

.card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.card p {
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 1rem;
}

/* ---- CTA / Signal line ---- */

.cta {
    padding: 10vh 24px 14vh;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

.signal-status {
    font-family: 'Fredoka', sans-serif;
    letter-spacing: 2px;
    font-size: 0.9rem;
    color: var(--hill-3);
    font-weight: 600;
    background: rgba(139, 195, 74, 0.18);
    padding: 8px 20px;
    border-radius: 999px;
}

.signal-cta {
    display: inline-block;
    background: var(--sun-deep);
    color: #fff;
    font-weight: 700;
    font-size: 1.15rem;
    padding: 20px 48px;
    border-radius: 999px;
    box-shadow: 0 10px 28px rgba(255, 167, 38, 0.45);
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.signal-cta:hover {
    background: #FF9800;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 14px 34px rgba(255, 167, 38, 0.6);
}

.signal-cta:focus-visible {
    outline: 3px solid var(--text-dark);
    outline-offset: 3px;
}

.signal-sub {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ---- Footer ---- */
/* Footer markup itself is injected via SSI and shouldn't be edited per-domain -
   background/contrast lives here so it stays legible over the canvas animation. */

footer {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 24px;
    background: var(--nav-bg-scrolled);
    color: var(--text-muted);
    font-size: 0.85rem;
}

@media (max-width: 480px) {
    .nav-inner {
        padding: 0 18px;
    }
    .logo {
        font-size: 1.1rem;
    }
    .nav-link {
        padding: 10px 16px;
        font-size: 0.8rem;
    }
    nav.nav-scrolled .logo {
        font-size: 1rem;
    }
    nav.nav-scrolled .nav-link {
        padding: 7px 14px;
        font-size: 0.72rem;
    }
    .hero {
        padding: 12vh 18px 6vh;
    }
    .hero p {
        font-size: 1rem;
    }
    .cards-section {
        padding: 2vh 18px 8vh;
    }
    .card {
        padding: 28px 22px;
    }
    .signal-cta {
        padding: 16px 32px;
        font-size: 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}
