/* Sunflower Solar - Main Stylesheet */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: #333;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1 0 auto;
}

/* ── Sticky footer ── */
.site-footer {
    flex-shrink: 0;
}

/* ── Scroll animations ── */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delays for cards */
.animate-on-scroll[data-delay="1"] { transition-delay: 0.15s; }
.animate-on-scroll[data-delay="2"] { transition-delay: 0.3s; }
.animate-on-scroll[data-delay="3"] { transition-delay: 0.45s; }

/* Hero entrance */
.hero-entrance {
    opacity: 0;
    transform: translateY(20px);
    animation: heroIn 1s ease 0.3s forwards;
}

@keyframes heroIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero h1 {
    animation: fadeSlideUp 0.8s ease 0.5s both;
}

.hero .subtitle {
    animation: fadeSlideUp 0.8s ease 0.7s both;
}

.hero-cta {
    animation: fadeSlideUp 0.8s ease 0.9s both;
}

@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(25px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Header ── */
.site-header {
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.5rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

.nav-brand {
    font-family: 'Montserrat', sans-serif;
    text-decoration: none;
    color: #1B4332;
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.15;
    transition: transform 0.2s ease;
}

.nav-brand:hover {
    transform: scale(1.02);
}

.brand-name {
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: -0.01em;
}

.brand-subtitle {
    font-weight: 400;
    font-size: 0.68rem;
    color: #666;
    margin-top: 1px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.25rem;
}

.nav-menu li {
    display: flex;
    align-items: center;
    min-height: 40px;
}

.nav-menu a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.82rem;
    padding: 0.4rem 0.6rem;
    border-radius: 4px;
    transition: color 0.3s, background 0.3s;
    position: relative;
    display: flex;
    align-items: center;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0.6rem;
    right: 0.6rem;
    height: 2px;
    background: #1B4332;
    transition: width 0.3s ease;
    width: 0;
}

.nav-menu a:hover {
    color: #1B4332;
    background: #f0f7f4;
}

.nav-menu a:hover::after {
    width: calc(100% - 1.2rem);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    color: #1B4332;
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .nav-container {
        padding: 0.75rem 1rem;
    }

    .nav-brand {
        font-size: 1.1rem;
    }

    .nav-menu {
        position: fixed;
        top: 56px;
        left: 0;
        right: 0;
        bottom: 0;
        background: white;
        flex-direction: column;
        align-items: stretch;
        padding: 1rem 0;
        gap: 0;
        box-shadow: none;
        display: none;
        overflow-y: auto;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        border-bottom: 1px solid #eee;
    }

    .nav-menu li:last-child {
        border-bottom: none;
    }

    .nav-menu a {
        display: block;
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }

    .nav-menu a::after {
        display: none;
    }

    .nav-menu a:hover {
        background: #f0f7f4;
    }
}

/* ── Footer ── */
.site-footer {
    background: #1B4332;
    color: white;
    padding: 3rem 2rem 1rem;
    margin-top: auto;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h3 {
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 0.5rem;
}

.footer-section h4 {
    margin-bottom: 0.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.2);
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .content-page {
        padding: 2rem 1rem;
    }

    .content-page h1 {
        font-size: 2rem;
    }

    .site-footer {
        padding: 2rem 1rem 1rem;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}
