:root {
    --bg: #f5f8fc;
    --surface: rgba(255, 255, 255, 0.88);
    --surface-strong: #ffffff;
    --text: #0f172a;
    --muted: #52607a;
    --line: rgba(16, 24, 40, 0.08);
    --brand: #1e4d8f;
    --brand-deep: #10294c;
    --brand-soft: #dce7f8;
    --teal: #0c819a;
    --success: #0f9f6e;
    --shadow: 0 24px 80px rgba(16, 24, 40, 0.08);
    --radius: 28px;
    --radius-sm: 18px;
    --container: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Manrope", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(30, 77, 143, 0.09), transparent 30%),
        radial-gradient(circle at bottom right, rgba(12, 129, 154, 0.1), transparent 25%),
        var(--bg);
}

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

img {
    max-width: 100%;
    display: block;
}

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

.site-bg-orb {
    position: fixed;
    border-radius: 999px;
    filter: blur(80px);
    opacity: 0.45;
    pointer-events: none;
    z-index: -1;
}

.site-bg-orb-one {
    width: 320px;
    height: 320px;
    background: rgba(30, 77, 143, 0.18);
    top: 3rem;
    left: -6rem;
}

.site-bg-orb-two {
    width: 280px;
    height: 280px;
    background: rgba(12, 129, 154, 0.16);
    right: -4rem;
    top: 18rem;
}

.site-header,
.app-topbar,
.app-sidebar,
.surface-card,
.metric-card,
.form-card,
.hero-panel,
.cta-band,
.info-card,
.process-card,
.proposal-card,
.proposal-sidebar .form-card,
.proof-card,
.contact-panel,
.mini-card,
.map-node {
    backdrop-filter: blur(22px);
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    margin: 1rem;
    border-radius: 999px;
}

.nav-shell,
.app-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
}

.brand-lockup img {
    height: 48px;
    width: auto;
}

.brand-lockup-sidebar img {
    width: 160px;
    height: auto;
}

.primary-nav,
.header-actions,
.button-row,
.pill-row,
.topbar-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.primary-nav a,
.app-nav a {
    font-size: 0.95rem;
    color: var(--muted);
    transition: color 160ms ease;
}

.primary-nav a:hover,
.app-nav a:hover,
.text-link:hover {
    color: var(--brand);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: 999px;
    border: 1px solid transparent;
    padding: 0.9rem 1.35rem;
    font-weight: 700;
    cursor: pointer;
}

.button-primary {
    background: linear-gradient(135deg, var(--brand), var(--teal));
    color: #fff;
}

.button-secondary {
    background: var(--brand-soft);
    color: var(--brand-deep);
}

.button-ghost {
    background: rgba(255, 255, 255, 0.72);
    border-color: var(--line);
    color: var(--brand-deep);
}

.flash {
    margin: 1rem auto 0;
    padding: 1rem 1.25rem;
    border-radius: 18px;
}

.flash-success {
    background: rgba(15, 159, 110, 0.12);
    color: #0c6b4b;
}

.section,
.page-hero {
    padding: 5rem 0;
}

.section-tight {
    padding-top: 1rem;
    padding-bottom: 2rem;
}

.page-hero {
    padding-top: 5rem;
}

.page-hero-mini {
    padding-bottom: 2rem;
}

.hero-grid,
.consultant-hero,
.form-section-grid,
.proposal-grid,
.app-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 1.5rem;
}

.hero-grid h1,
.page-hero h1,
.consultant-hero h1,
.form-card h1 {
    margin: 0.4rem 0 1rem;
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(2.6rem, 5vw, 4.8rem);
    line-height: 0.95;
    letter-spacing: -0.05em;
}

.page-hero-mini h1 {
    font-size: clamp(2.1rem, 4vw, 3.4rem);
}

.lead-copy,
.section-heading p,
.surface-card p,
.proposal-card p,
.info-card p,
.process-card p {
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.7;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--teal);
}

.hero-panel,
.surface-card,
.form-card,
.proposal-card,
.contact-panel,
.map-node {
    padding: 1.5rem;
    border-radius: var(--radius);
}

.proof-strip,
.metrics-grid,
.card-grid,
.process-grid {
    display: grid;
    gap: 1rem;
}

.proof-strip {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.metrics-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    margin-bottom: 1.5rem;
}

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

.card-grid-dense {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.proof-card,
.metric-card,
.info-card,
.process-card {
    padding: 1.3rem;
    border-radius: var(--radius-sm);
}

.proof-card strong,
.metric-card strong {
    display: block;
    font-size: 1.5rem;
    margin-bottom: 0.35rem;
}

.section-heading {
    max-width: 720px;
    margin-bottom: 1.5rem;
}

.section-heading h2,
.surface-card h2,
.proposal-card h2,
.form-card h2,
.cta-band h2 {
    margin: 0 0 0.8rem;
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    letter-spacing: -0.04em;
}

.cta-band {
    border-radius: 34px;
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.25rem;
}

.check-list,
.proposal-section ul {
    margin: 1rem 0 0;
    padding-left: 1.2rem;
    color: var(--muted);
}

.process-index,
.pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.42rem 0.8rem;
    background: rgba(30, 77, 143, 0.09);
    color: var(--brand-deep);
    font-weight: 700;
    font-size: 0.82rem;
}

.pill-role {
    background: rgba(12, 129, 154, 0.12);
}

.rich-text p,
.rich-text li {
    color: var(--muted);
    line-height: 1.8;
}

.form-card,
.surface-card {
    margin-bottom: 1.5rem;
}

.stack-form,
.settings-group {
    display: grid;
    gap: 1rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

label {
    display: grid;
    gap: 0.45rem;
    font-size: 0.92rem;
    font-weight: 700;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid rgba(16, 24, 40, 0.14);
    border-radius: 18px;
    padding: 0.9rem 1rem;
    font: inherit;
    background: rgba(255, 255, 255, 0.86);
}

textarea {
    resize: vertical;
}

.checkbox-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.checkbox-row input {
    width: auto;
}

.stack-list {
    display: grid;
    gap: 0.9rem;
}

.list-row,
.list-card,
.task-row,
.static-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.1rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--line);
}

.list-row div,
.list-card div,
.task-row div {
    display: grid;
    gap: 0.3rem;
}

.list-card {
    align-items: flex-start;
    flex-direction: column;
}

.list-card-head {
    width: 100%;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    text-align: left;
    padding: 1rem;
    border-bottom: 1px solid var(--line);
}

.task-list {
    display: grid;
    gap: 0.75rem;
    margin-top: 1rem;
}

.task-meta {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    color: var(--muted);
}

.proposal-grid {
    align-items: start;
}

.proposal-card {
    min-height: 100%;
}

.proposal-section + .proposal-section {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--line);
}

.signature-shell {
    border: 1px dashed rgba(16, 24, 40, 0.16);
    border-radius: 24px;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.74);
}

.signature-pad {
    width: 100%;
    height: 220px;
    border-radius: 18px;
    background: #fff;
}

.booking-embed {
    width: 100%;
    min-height: 720px;
    border: 0;
    border-radius: 24px;
}

.narrow-content {
    max-width: 780px;
}

.small-copy,
.list-row span,
.list-card span,
.static-row span,
.contact-panel p,
.mini-card p,
.app-nav a {
    color: var(--muted);
}

.site-footer {
    padding: 1rem 0 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 1.5rem;
    padding: 2rem;
    border-radius: 32px;
    background: linear-gradient(180deg, rgba(16, 41, 76, 0.96), rgba(8, 21, 40, 0.96));
    color: rgba(255, 255, 255, 0.88);
}

.footer-logo {
    width: 150px;
    margin-bottom: 1rem;
}

.app-shell {
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: 100vh;
}

.app-sidebar {
    margin: 1rem;
    border-radius: 30px;
    padding: 1.25rem;
}

.app-nav {
    display: grid;
    gap: 0.9rem;
    margin-top: 1.25rem;
}

.app-content {
    padding: 1rem 1rem 2rem 0;
}

.map-flow {
    display: grid;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.map-arrow {
    text-align: center;
    color: var(--brand);
    font-size: 1.8rem;
    font-weight: 700;
}

@media (max-width: 1080px) {
    .primary-nav {
        display: none;
    }

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

    .proof-strip,
    .process-grid,
    .card-grid,
    .hero-grid,
    .consultant-hero,
    .form-section-grid,
    .proposal-grid,
    .app-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .app-shell {
        grid-template-columns: 1fr;
    }

    .app-sidebar {
        margin-bottom: 0;
    }

    .app-content {
        padding: 0 1rem 2rem;
    }
}

@media (max-width: 720px) {
    .site-header {
        border-radius: 24px;
    }

    .nav-shell,
    .app-topbar {
        flex-direction: column;
        align-items: stretch;
    }

    .header-actions,
    .button-row,
    .topbar-actions {
        width: 100%;
    }

    .header-actions .button,
    .button-row .button,
    .topbar-actions .button {
        flex: 1;
    }

    .form-grid,
    .metrics-grid {
        grid-template-columns: 1fr;
    }

    .proof-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cta-band {
        flex-direction: column;
        align-items: flex-start;
    }
}
