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

:root {
    --bg: #f6efe5;
    --bg-strong: #1c140f;
    --surface: rgba(255, 248, 238, 0.78);
    --surface-strong: #fffaf3;
    --line: rgba(60, 35, 18, 0.12);
    --text: #22160f;
    --muted: #6e5849;
    --accent: #ff6b2c;
    --accent-dark: #cf4d17;
    --accent-soft: #ffd7c2;
    --success: #203f35;
    --shadow: 0 24px 80px rgba(48, 24, 10, 0.14);
    --radius-xl: 32px;
    --radius-lg: 24px;
    --container: 1180px;
}

html {
    scroll-behavior: smooth;
}

html, body {
    margin: 0;
    padding: 0;
    background:
        radial-gradient(circle at top left, rgba(255, 145, 77, 0.24), transparent 28%),
        radial-gradient(circle at 85% 15%, rgba(46, 120, 99, 0.16), transparent 24%),
        linear-gradient(180deg, #fff8ef 0%, #f6efe5 54%, #efe2d1 100%);
    color: var(--text);
    font-family: 'Manrope', sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

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

img {
    max-width: 100%;
}

h1:focus {
    outline: none;
}

.container {
    width: min(calc(100% - 2rem), var(--container));
    margin: 0 auto;
}

.app-loading {
    min-height: 100vh;
    display: grid;
    place-items: center;
    gap: 1rem;
    align-content: center;
    text-align: center;
    color: var(--muted);
}

.app-loading__ring {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 4px solid rgba(34, 22, 15, 0.12);
    border-top-color: var(--accent);
    animation: spin 1s linear infinite;
}

.landing-page {
    overflow: clip;
}

.hero-shell {
    padding: 1.25rem 0 4rem;
}

.landing-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 1rem;
    background: rgba(255, 250, 243, 0.75);
    border: 1px solid rgba(77, 46, 22, 0.08);
    border-radius: 999px;
    backdrop-filter: blur(16px);
    position: sticky;
    top: 1rem;
    z-index: 20;
}

.brand-mark,
.section-kicker,
.panel-label,
.card-index,
.result-type,
.timeline span,
.eyebrow {
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: 0.04em;
}

.brand-mark {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
}

.landing-nav {
    display: flex;
    gap: 1.5rem;
    color: var(--muted);
    font-size: 0.95rem;
}

.landing-nav a:hover,
.contact-link:hover {
    color: var(--accent-dark);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 2rem;
    align-items: center;
    padding-top: 4.5rem;
}

.eyebrow,
.section-kicker {
    color: var(--accent-dark);
    font-size: 0.82rem;
    text-transform: uppercase;
    margin: 0 0 1rem;
}

.hero-copy h1,
.section-heading h2,
.cta-box h2 {
    font-family: 'Space Grotesk', sans-serif;
    line-height: 0.98;
    letter-spacing: -0.04em;
    margin: 0;
}

.hero-copy h1 {
    font-size: clamp(3rem, 6vw, 6.4rem);
    max-width: 12ch;
}

.hero-text,
.info-card p,
.result-card p,
.timeline p,
.contact-stack p,
.hero-panel p {
    color: var(--muted);
    font-size: 1.04rem;
    line-height: 1.75;
}

.hero-text {
    max-width: 61ch;
    margin: 1.5rem 0 0;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.primary-cta,
.secondary-cta,
.contact-link {
    border-radius: 999px;
    transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.primary-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    padding: 0 1.5rem;
    background: var(--accent);
    color: #fff7f2;
    font-weight: 700;
    box-shadow: 0 18px 35px rgba(255, 107, 44, 0.25);
}

.secondary-cta,
.contact-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    padding: 0 1.5rem;
    border: 1px solid var(--line);
    background: rgba(255, 251, 246, 0.72);
    font-weight: 600;
}

.primary-cta:hover,
.secondary-cta:hover,
.contact-link:hover {
    transform: translateY(-2px);
}

.hero-proof {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 2.5rem;
}

.hero-proof div,
.hero-panel,
.info-card,
.result-card,
.timeline article,
.cta-box {
    background: var(--surface);
    border: 1px solid rgba(77, 46, 22, 0.09);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
}

.hero-proof div {
    padding: 1.1rem 1rem;
    border-radius: 22px;
}

.hero-proof strong {
    display: block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.85rem;
    margin-bottom: 0.45rem;
}

.hero-proof span {
    color: var(--muted);
    font-size: 0.93rem;
}

.hero-card {
    display: grid;
    gap: 1rem;
    transform: rotate(2deg);
}

.hero-panel {
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.hero-panel-main {
    background: linear-gradient(145deg, #23160f 0%, #3b2518 100%);
    color: #fff7ef;
}

.hero-panel-main p,
.hero-panel-main .panel-label {
    color: rgba(255, 247, 239, 0.78);
}

.hero-panel-main h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    line-height: 1.05;
    margin: 0.4rem 0 0.8rem;
}

.hero-panel-metric {
    background: linear-gradient(135deg, #ff6b2c 0%, #ffb36f 100%);
    color: #2d1608;
}

.metric-caption {
    display: block;
    font-size: 0.92rem;
    margin-bottom: 0.5rem;
}

.hero-panel-metric strong {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 4rem;
    line-height: 1;
}

.hero-panel-list ul {
    margin: 0.9rem 0 0;
    padding-left: 1.25rem;
    color: var(--muted);
    line-height: 1.8;
}

.section-band,
.section-contrast,
.section-cta {
    padding: 5.5rem 0;
}

.section-contrast {
    background: linear-gradient(180deg, rgba(35, 22, 15, 0.04) 0%, rgba(35, 22, 15, 0.09) 100%);
}

.section-heading {
    max-width: 760px;
    margin-bottom: 2rem;
}

.section-heading h2,
.cta-box h2 {
    font-size: clamp(2.2rem, 4vw, 4rem);
}

.services-grid,
.results-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.info-card,
.result-card {
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.card-index {
    color: var(--accent-dark);
    font-size: 0.88rem;
}

.info-card h3,
.result-card strong,
.timeline h3 {
    display: block;
    font-size: 1.45rem;
    margin: 0.8rem 0;
}

.process-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 2rem;
    align-items: start;
}

.timeline {
    display: grid;
    gap: 1rem;
}

.timeline article {
    border-radius: var(--radius-lg);
    padding: 1.4rem;
}

.timeline span {
    color: var(--accent-dark);
    font-size: 0.85rem;
    text-transform: uppercase;
}

.cta-box {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2rem;
    border-radius: var(--radius-xl);
    padding: 2rem;
    background:
        radial-gradient(circle at top right, rgba(255, 107, 44, 0.18), transparent 28%),
        rgba(255, 250, 243, 0.86);
}

.contact-stack {
    display: grid;
    gap: 1rem;
    align-content: start;
}

.blazor-error-boundary {
    background: #b32121;
    padding: 1rem;
    color: white;
}

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

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 960px) {
    .hero-grid,
    .process-grid,
    .cta-box,
    .services-grid,
    .results-grid,
    .hero-proof {
        grid-template-columns: 1fr;
    }

    .hero-card {
        transform: none;
    }
}

@media (max-width: 720px) {
    .landing-header {
        border-radius: 28px;
        padding: 1rem;
        align-items: flex-start;
        flex-direction: column;
    }

    .landing-nav {
        flex-wrap: wrap;
        gap: 0.9rem 1.2rem;
    }

    .hero-shell {
        padding-top: 0.75rem;
    }

    .hero-grid {
        padding-top: 3rem;
    }

    .section-band,
    .section-contrast,
    .section-cta {
        padding: 4rem 0;
    }

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