@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,600;9..144,700&family=Space+Grotesk:wght@400;500;700&display=swap");

:root {
    --bg: #f5efe2;
    --bg-deep: #0f2d24;
    --panel: rgba(255, 251, 243, 0.88);
    --panel-strong: rgba(255, 251, 243, 0.96);
    --line: rgba(15, 45, 36, 0.12);
    --text: #17372d;
    --muted: #597266;
    --accent: #0e7a58;
    --accent-strong: #084f3b;
    --warm: #c6953d;
    --danger: #ab4c32;
    --shadow: 0 24px 60px rgba(15, 45, 36, 0.12);
    --radius-xl: 28px;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    min-height: 100%;
    font-family: "Space Grotesk", "Segoe UI", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top right, rgba(198, 149, 61, 0.25), transparent 26%),
        radial-gradient(circle at bottom left, rgba(14, 122, 88, 0.18), transparent 22%),
        linear-gradient(180deg, #fbf7ef 0%, var(--bg) 100%);
}

body {
    min-height: 100vh;
}

a {
    color: var(--accent-strong);
    text-decoration: none;
}

a:hover {
    color: var(--accent);
}

h1,
h2,
h3 {
    font-family: "Fraunces", Georgia, serif;
    margin: 0;
    letter-spacing: -0.02em;
}

p {
    margin: 0;
}

button,
input,
select,
textarea {
    font: inherit;
}

.shell {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    padding: 20px 0 48px;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 16px 20px;
    margin-bottom: 24px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 251, 243, 0.78);
    backdrop-filter: blur(14px);
    box-shadow: 0 10px 30px rgba(15, 45, 36, 0.06);
}

.brand-link {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    color: var(--text);
}

.brand-mark {
    width: 58px;
    height: 58px;
    object-fit: contain;
    border-radius: 18px;
    box-shadow: 0 8px 22px rgba(15, 45, 36, 0.08);
}

.brand-copy {
    display: inline-flex;
    flex-direction: column;
}

.brand-kicker {
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
}

.brand-title {
    font-size: 1.15rem;
    font-weight: 700;
}

.topbar-nav {
    display: flex;
    align-items: center;
    gap: 14px;
}

.topbar-link {
    padding: 10px 16px;
    border-radius: 999px;
    color: var(--text);
    transition: background-color 0.2s ease, color 0.2s ease;
}

.topbar-link.active,
.topbar-link:hover {
    background: var(--bg-deep);
    color: #fff;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.8fr) minmax(320px, 1fr);
    gap: 24px;
    align-items: stretch;
    margin-bottom: 20px;
}

.hero-copy,
.panel,
.metric-card {
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background: var(--panel);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow);
}

.hero-copy {
    padding: 28px;
    position: relative;
    overflow: hidden;
}

.hero-copy::after {
    content: "";
    position: absolute;
    inset: auto -70px -90px auto;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(198, 149, 61, 0.22), transparent 68%);
}

.hero-side {
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(180deg, rgba(15, 45, 36, 0.98), rgba(8, 79, 59, 0.95));
    color: #f7f4ec;
}

.eyebrow {
    margin-bottom: 8px;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.69rem;
    font-weight: 700;
}

.hero h1 {
    max-width: 14ch;
    font-size: clamp(1.85rem, 3vw, 3rem);
    line-height: 1.02;
    margin-bottom: 12px;
}

.hero-text {
    max-width: 58ch;
    color: var(--muted);
    font-size: 0.98rem;
    line-height: 1.65;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.ghost-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 16px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.65);
    color: var(--text);
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.ghost-link:hover {
    transform: translateY(-1px);
}

.subtle-note {
    margin-top: 12px;
    color: var(--muted);
    font-size: 0.88rem;
}

.hero-number,
.stat-number {
    font-size: clamp(1.7rem, 2.5vw, 2.6rem);
    line-height: 1;
    font-weight: 700;
}

.hero-side-copy,
.stat-footnote {
    margin-top: 10px;
    color: rgba(247, 244, 236, 0.8);
}

.hero-side-secondary {
    margin-top: 12px;
    color: rgba(247, 244, 236, 0.7);
    font-size: 0.92rem;
}

.stat-label {
    margin-bottom: 10px;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
}

.hero-side .stat-label {
    color: rgba(247, 244, 236, 0.72);
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.metric-card,
.panel {
    padding: 24px;
}

.metric-card-compact {
    padding: 18px 20px;
}

.metric-card-compact .stat-number {
    font-size: clamp(1.4rem, 2vw, 2rem);
}

.progress-panel {
    margin-bottom: 24px;
}

.section-gap {
    margin-top: 24px;
}

.section-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.section-header h2 {
    font-size: clamp(1.35rem, 2vw, 2rem);
}

.progress-stack {
    display: grid;
    gap: 18px;
}

.progress-labels {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
    font-weight: 500;
}

.progress-track {
    height: 14px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(15, 45, 36, 0.09);
}

.progress-fill {
    height: 100%;
    border-radius: 999px;
}

.budget-fill {
    background: linear-gradient(90deg, var(--warm), #ddb765);
}

.share-fill {
    background: linear-gradient(90deg, var(--accent), #19a374);
}

.table-shell {
    overflow-x: auto;
}

.tracker-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 860px;
}

.tracker-table th,
.tracker-table td {
    padding: 14px 10px;
    text-align: left;
    border-bottom: 1px solid var(--line);
    font-size: 0.95rem;
}

.tracker-table th {
    color: var(--muted);
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 700;
}

.tracker-table tbody tr:hover {
    background: rgba(14, 122, 88, 0.05);
}

.loading-state {
    display: grid;
    place-items: center;
    gap: 16px;
    min-height: 50vh;
    text-align: center;
}

.loading-orb {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, var(--warm), var(--accent));
    animation: pulse 1.4s ease-in-out infinite;
}

.blazor-error-boundary {
    background: var(--danger);
    color: #fff;
    margin-top: 16px;
    border-radius: 18px;
    padding: 16px 20px;
}

.blazor-error-boundary::after {
    content: "An error has occurred.";
}

#blazor-error-ui {
    display: none;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

.site-footer {
    margin-top: 24px;
    padding: 18px 8px 0;
    color: var(--muted);
    font-size: 0.88rem;
    text-align: center;
}

.site-footer-links {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin-bottom: 10px;
    font-weight: 500;
}

.info-panel {
    max-width: 760px;
    margin: 0 auto;
}

.info-stack {
    display: grid;
    gap: 16px;
    margin-top: 24px;
}

.info-card {
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--panel-strong);
}

.info-card h2 {
    margin-bottom: 8px;
    font-size: 1.2rem;
}

.contact-form-shell {
    margin-top: 28px;
    padding-top: 28px;
    border-top: 1px solid var(--line);
}

.contact-form-header {
    margin-bottom: 12px;
}

.contact-x-link {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin-top: 20px;
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--panel-strong);
    color: var(--text);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-x-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(15, 45, 36, 0.08);
}

.contact-x-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: var(--bg-deep);
    color: #fff;
}

.contact-x-icon svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.contact-x-copy {
    display: inline-flex;
    flex-direction: column;
    gap: 4px;
}

.contact-x-copy strong {
    font-size: 1rem;
}

.contact-x-copy span {
    color: var(--muted);
}

@keyframes pulse {
    0%, 100% {
        transform: scale(0.95);
        opacity: 0.9;
    }

    50% {
        transform: scale(1.04);
        opacity: 1;
    }
}

@media (max-width: 1100px) {
    .hero {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 780px) {
    .shell {
        width: min(100% - 20px, 1280px);
        padding-top: 12px;
    }

    .topbar,
    .section-header,
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .brand-link {
        align-items: flex-start;
    }

    .metric-grid {
        grid-template-columns: 1fr;
    }

    .hero-copy,
    .hero-side,
    .metric-card,
    .panel {
        padding: 22px;
    }

    .hero h1 {
        max-width: none;
    }
}
