﻿/* Public site shell — green Virtual Store */
:root {
    --vh-navy: #15241d;
    --vh-blue: #2f6b4f;
    --vh-cyan: #3a8460;
    --vh-sky: #e8f0ea;
    --vh-ink: #1c2b24;
    --vh-muted: #5f6f67;
    --vh-line: #c9d7cf;
    --vh-white: #ffffff;
}

html,
body {
    height: 100%;
}

.site-body {
    margin: 0;
    min-height: 100vh;
    height: 100%;
    display: flex;
    flex-direction: column;
    color: var(--vh-ink);
    font-family: "Source Sans 3", "Segoe UI", sans-serif;
    background: linear-gradient(165deg, #e8f0ea 0%, #f3f6f2 48%, #e6eee8 100%);
}

.site-nav {
    flex-shrink: 0;
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(21, 36, 29, 0.96);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-nav-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0.75rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    color: #fff;
    text-decoration: none;
    font-family: "Sora", "Segoe UI", sans-serif;
    font-weight: 600;
    font-size: 1.05rem;
}

.site-brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, var(--vh-cyan), var(--vh-navy));
    color: #fff;
    font-size: 0.82rem;
    font-weight: 700;
}

.site-nav-links {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.site-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 1.05rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.92rem;
    letter-spacing: 0.01em;
    transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.site-nav-btn i {
    font-size: 1.05rem;
}

.site-nav-btn-user {
    color: #eef5f0;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.site-nav-btn-user:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
    transform: translateY(-1px);
}

.site-nav-btn-admin {
    color: #fff;
    background: linear-gradient(145deg, #3a8460, #2f6b4f);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 6px 14px rgba(21, 36, 29, 0.28);
}

.site-nav-btn-admin:hover {
    color: #fff;
    background: linear-gradient(145deg, #44966e, #24553e);
    box-shadow: 0 8px 18px rgba(21, 36, 29, 0.35);
    transform: translateY(-1px);
}

.site-main {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.site-footer {
    flex-shrink: 0;
    margin-top: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem 1.5rem;
    padding: 0.75rem 1.5rem;
    border-top: 1px solid var(--vh-line);
    background: #e8efe9;
    color: var(--vh-muted);
    font-size: 0.88rem;
}

/* Home hero fills remaining height; banner flush top/bottom */
.home-hero {
    flex: 1 1 auto;
    display: grid;
    grid-template-columns: minmax(300px, 0.95fr) minmax(340px, 1.15fr);
    align-items: stretch;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    gap: 0;
    min-height: 0;
    position: relative;
}

.home-hero-left {
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 18% 22%, rgba(58, 132, 96, 0.14), transparent 42%),
        radial-gradient(ellipse at 78% 78%, rgba(21, 36, 29, 0.08), transparent 48%),
        linear-gradient(160deg, #edf4ef 0%, #f5f8f5 55%, #e8f0ea 100%);
}

.home-weather-art {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.9;
}

.home-weather-art svg {
    width: 120%;
    height: 120%;
    max-width: none;
    position: absolute;
    left: -8%;
    top: -8%;
}

.home-weather-art .wx-grid {
    fill: none;
    stroke: rgba(47, 107, 79, 0.1);
    stroke-width: 1;
}

.home-hero-copy {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 560px;
    width: 100%;
    margin-left: max(1.25rem, calc((100vw - 1240px) / 2 + 1.25rem));
    padding: 1.5rem 1.5rem 1.5rem 0;
    box-sizing: border-box;
}

.home-logo {
    width: min(240px, 65%);
    height: auto;
    margin-bottom: 0.9rem;
}

.home-kicker {
    margin: 0 0 0.45rem;
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--vh-blue);
    font-weight: 700;
}

.home-brand {
    margin: 0;
    font-family: "Sora", "Segoe UI", sans-serif;
    font-size: clamp(1.85rem, 3.6vw, 2.75rem);
    font-weight: 700;
    line-height: 1.08;
    color: var(--vh-navy);
    letter-spacing: -0.02em;
    font-size: 36px;
}

.home-lead {
    margin: 0.85rem 0 0;
    max-width: 28rem;
    font-size: 1.05rem;
    line-height: 1.55;
    color: var(--vh-muted);
}

.home-cta {
    margin-top: 1.35rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.home-btn-primary,
.home-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.25rem;
    border-radius: 11px;
    text-decoration: none;
    font-family: "Sora", "Segoe UI", sans-serif;
    font-weight: 600;
    font-size: 0.98rem;
    transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
}

.home-btn-primary {
    background: linear-gradient(135deg, var(--vh-cyan), var(--vh-navy));
    color: #fff;
    box-shadow: 0 12px 28px rgba(47, 107, 79, 0.28);
}

.home-btn-primary:hover {
    background: linear-gradient(135deg, #2f6b4f, #0f1c16);
    color: #fff;
    transform: translateY(-2px);
}

.home-btn-secondary {
    background: #fff;
    color: var(--vh-navy);
    border: 1px solid var(--vh-line);
}

.home-btn-secondary:hover {
    background: var(--vh-sky);
    color: var(--vh-navy);
    transform: translateY(-2px);
}

.home-hero-banner {
    position: relative;
    min-height: 0;
    height: 100%;
    overflow: hidden;
    margin: 0;
}

.home-hero-banner img {
    width: 100%;
    height: 100%;
    min-height: 280px;
    max-height: none;
    object-fit: cover;
    object-position: center right;
    display: block;
}

/* Feature strip */
.home-strip {
    flex-shrink: 0;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0;
    background: linear-gradient(90deg, var(--vh-navy), #1f3d30 55%, var(--vh-blue));
    color: #fff;
}

.home-strip-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.95rem 1rem;
    border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.home-strip-item:last-child {
    border-right: none;
}

.home-strip-item i {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.12);
    font-size: 1rem;
    flex-shrink: 0;
}

.home-strip-item strong {
    display: block;
    font-family: "Sora", "Segoe UI", sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.2;
}

.home-strip-item span {
    display: block;
    margin-top: 0.12rem;
    font-size: 0.76rem;
    opacity: 0.78;
}

@media (max-width: 980px) {
    .site-main {
        flex: 0 0 auto;
    }

    .home-hero {
        flex: 0 0 auto;
        grid-template-columns: 1fr;
    }

    .home-hero-copy {
        margin-left: 0;
        max-width: none;
        padding: 1.25rem;
    }

    .home-weather-art {
        opacity: 0.65;
    }

    .home-hero-banner {
        height: 240px;
    }

    .home-hero-banner img {
        height: 240px;
        min-height: 240px;
        object-position: center;
    }

    .home-strip {
        grid-template-columns: 1fr 1fr;
    }

    .home-strip-item:nth-child(2n) {
        border-right: none;
    }

    .home-strip-item {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
}

@media (max-width: 560px) {
    .home-strip {
        grid-template-columns: 1fr;
    }

    .home-strip-item {
        border-right: none;
    }

    .site-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .site-nav-btn {
        padding: 0.42rem 0.85rem;
        font-size: 0.85rem;
    }
}

/* Keep older public form pages usable */
.body-content {
    margin-top: 15px;
    padding-left: 15px;
    padding-right: 15px;
}

input,
select,
textarea {
    max-width: 100%;
}

.dl-horizontal dt {
    white-space: normal;
}
