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

:root {
    --bg: #f4efe7;
    --surface: rgba(255, 252, 247, 0.78);
    --surface-strong: #fffaf2;
    --text: #14281f;
    --muted: #4f625a;
    --line: rgba(20, 40, 31, 0.12);
    --brand: #0f766e;
    --brand-deep: #0b4f4a;
    --accent: #f28f3b;
    --shadow: 0 24px 60px rgba(14, 42, 34, 0.12);
    --radius-lg: 28px;
    --radius-md: 20px;
    --radius-sm: 14px;
    --content-width: 1180px;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(242, 143, 59, 0.18), transparent 30%),
        radial-gradient(circle at top right, rgba(15, 118, 110, 0.18), transparent 34%),
        linear-gradient(180deg, #f9f3ea 0%, var(--bg) 48%, #efe8dc 100%);
    font-family: 'Manrope', 'Segoe UI', sans-serif;
}

a {
    color: inherit;
}

h1, h2, h3, .brand strong {
    font-family: 'Space Grotesk', 'Segoe UI', sans-serif;
    letter-spacing: -0.03em;
    margin: 0;
}

p {
    margin: 0;
}

#app {
    min-height: 100vh;
}

.site-shell {
    width: min(calc(100% - 2rem), var(--content-width));
    margin: 0 auto;
    padding: 1.25rem 0 2rem;
}

.site-header {
    position: sticky;
    top: 1rem;
    z-index: 20;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 999px;
    background: rgba(255, 250, 242, 0.78);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    text-decoration: none;
}

.brand-mark {
    width: 2.15rem;
    height: 2.15rem;
    flex: 0 0 auto;
}

.brand-text {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.brand-text span,
.site-nav a,
.hero-lead,
.section-heading p,
.service-card p,
.impact-card p,
.approach-grid p,
.contact-card p,
.detail-list,
.site-footer {
    color: var(--muted);
}

.brand-text span {
    font-size: 0.88rem;
}

.site-nav {
    display: flex;
    gap: 1.25rem;
    align-items: center;
}

.site-nav a {
    text-decoration: none;
    font-weight: 600;
}

.site-nav a:hover,
.contact-link:hover,
.detail-list a:hover {
    color: var(--brand-deep);
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(300px, 0.95fr);
    gap: 1.5rem;
    align-items: stretch;
    padding: 2rem 0 1rem;
}

.hero-copy,
.hero-panel,
.impact-card,
.service-card,
.approach-grid article,
.contact-card {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow);
    backdrop-filter: blur(8px);
}

.hero-copy {
    position: relative;
    overflow: hidden;
    padding: clamp(2rem, 3vw, 3rem);
}

.hero-copy::after {
    content: "";
    position: absolute;
    inset: auto -4rem -4rem auto;
    width: 14rem;
    height: 14rem;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(242, 143, 59, 0.4) 0%, rgba(242, 143, 59, 0) 72%);
}

.eyebrow,
.panel-kicker,
.approach-grid span {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--brand-deep);
}

.hero h1 {
    max-width: 11ch;
    margin-top: 0.75rem;
    font-size: clamp(3.3rem, 8vw, 6.2rem);
    line-height: 0.95;
}

.hero-lead {
    max-width: 58ch;
    margin-top: 1.25rem;
    font-size: 1.08rem;
    line-height: 1.8;
}

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

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3.25rem;
    padding: 0.8rem 1.2rem;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button-primary {
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-deep) 100%);
    color: #f7fbfa;
}

.button-secondary {
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.45);
}

.hero-panel {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 2rem;
}

.hero-panel h2 {
    font-size: clamp(1.9rem, 4vw, 2.8rem);
    line-height: 1.05;
    margin-top: 0.85rem;
}

.hero-panel > p {
    line-height: 1.75;
}

.detail-list {
    display: grid;
    gap: 1rem;
}

.detail-list dt {
    margin-bottom: 0.35rem;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text);
}

.detail-list dd {
    margin: 0;
    line-height: 1.7;
}

.detail-list a,
.contact-link {
    color: var(--brand-deep);
    font-weight: 700;
    text-decoration: none;
}

.impact-grid,
.services-grid,
.approach-grid {
    display: grid;
    gap: 1.25rem;
}

.impact-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 0.5rem 0 2rem;
}

.impact-card,
.service-card,
.approach-grid article {
    padding: 1.6rem;
}

.impact-card h2,
.service-card h3,
.approach-grid h3,
.contact-card h2,
.section-heading h2 {
    font-size: clamp(1.4rem, 3vw, 2.4rem);
    line-height: 1.08;
}

.impact-card p,
.service-card p,
.approach-grid p,
.contact-card p,
.section-heading p {
    margin-top: 0.85rem;
    line-height: 1.75;
}

.section {
    padding: 2rem 0;
}

.section-heading {
    max-width: 50rem;
    margin-bottom: 1.4rem;
}

.section-heading.narrow {
    max-width: 38rem;
}

.services-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.service-card {
    min-height: 15rem;
    background: var(--surface-strong);
}

.section-approach .approach-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.approach-grid span {
    margin-bottom: 1rem;
}

.contact-card {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.8fr);
    gap: 1.5rem;
    padding: clamp(1.75rem, 3vw, 2.5rem);
    background:
        linear-gradient(135deg, rgba(15, 118, 110, 0.08), rgba(242, 143, 59, 0.12)),
        var(--surface-strong);
}

.contact-details {
    display: grid;
    align-content: center;
    gap: 1rem;
    padding: 1.25rem;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.52);
    border: 1px solid rgba(20, 40, 31, 0.08);
}

.contact-link {
    font-size: 1.35rem;
}

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0 0.5rem;
    font-size: 0.92rem;
}

#blazor-error-ui {
    color-scheme: light only;
    background: #fff0d6;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

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

.page-loader {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 1.5rem;
}

.page-loader-card {
    display: grid;
    justify-items: center;
    gap: 0.75rem;
    min-width: min(100%, 18rem);
    padding: 1.6rem 1.4rem;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(255, 250, 242, 0.84);
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
}

.page-loader-mark-wrap {
    position: relative;
    display: grid;
    place-items: center;
    width: 4.4rem;
    height: 4.4rem;
}

.page-loader-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 3px solid rgba(20, 40, 31, 0.09);
    border-top-color: var(--brand);
    animation: loader-spin 900ms linear infinite;
}

.page-loader-mark {
    width: 2.35rem;
    height: 2.35rem;
}

.page-loader-title {
    font-family: 'Space Grotesk', 'Segoe UI', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
}

.page-loader-copy {
    color: var(--muted);
    font-size: 0.95rem;
}

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

@media (max-width: 1080px) {
    .services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .impact-grid,
    .section-approach .approach-grid,
    .contact-card,
    .hero {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .site-shell {
        width: min(calc(100% - 1rem), var(--content-width));
        padding-top: 0.6rem;
    }

    .site-header,
    .site-footer {
        border-radius: 28px;
        flex-direction: column;
        align-items: flex-start;
    }

    .site-nav {
        flex-wrap: wrap;
        gap: 0.85rem;
    }

    .hero h1 {
        max-width: none;
        font-size: clamp(2.8rem, 16vw, 4.4rem);
    }

    .services-grid,
    .impact-grid {
        grid-template-columns: 1fr;
    }

    .contact-link {
        font-size: 1.15rem;
        overflow-wrap: anywhere;
    }
}
