:root {
    --front-bg: #f6f1e8;
    --front-ink: #132030;
    --front-muted: #647084;
    --front-line: #ded8ca;
    --front-teal: #14756c;
    --front-blue: #243f5c;
    --front-gold: #b17a23;
    --front-card: #fffdf8;
}

* {
    box-sizing: border-box;
    letter-spacing: 0;
}

html {
    -webkit-text-size-adjust: 100%;
}

body.frontend-site {
    margin: 0;
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    color: var(--front-ink);
    background: var(--front-bg);
    line-height: 1.5;
}

.frontend-site h1,
.frontend-site h2,
.frontend-site h3,
.frontend-site p,
.frontend-site a,
.frontend-site span,
.frontend-site strong,
.frontend-site div {
    overflow-wrap: anywhere;
}

.text-white {
    color: #fff !important;
}

.front-shell {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(20, 117, 108, .16), transparent 340px),
        linear-gradient(180deg, rgba(36, 63, 92, .08), transparent 360px);
}

.front-container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.front-header {
    padding: 22px 0;
}

.front-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    background: rgba(255, 253, 248, .82);
    border: 1px solid var(--front-line);
    border-radius: 8px;
    padding: 12px 14px;
    box-shadow: 0 16px 38px rgba(30, 41, 59, .08);
    backdrop-filter: blur(10px);
}

.front-brand {
    display: flex;
    align-items: center;
    gap: 11px;
    text-decoration: none;
    color: var(--front-ink);
    font-weight: 850;
    min-width: 0;
}

.front-brand-title {
    display: block;
    font-size: 16px;
    line-height: 1.15;
    overflow-wrap: anywhere;
}

.front-logo {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    color: #fff;
    background: linear-gradient(135deg, var(--front-teal), var(--front-gold));
    font-weight: 850;
    overflow: hidden;
    flex: 0 0 auto;
}

.front-logo.has-image {
    background: transparent;
    border: 0;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(280px, 34vw);
    min-width: 120px;
    max-width: 280px;
    height: auto;
    padding: 0;
    overflow: visible;
}

.front-logo img {
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 78px;
    object-fit: contain;
    display: block;
}

.front-menu {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.front-menu a {
    color: #334155;
    text-decoration: none;
    font-weight: 750;
    padding: 9px 11px;
    border-radius: 8px;
    line-height: 1.25;
    text-align: center;
}

.front-menu a:hover {
    background: #edf5f1;
    color: var(--front-teal);
}

.front-login {
    background: var(--front-teal) !important;
    color: #fff !important;
}

.front-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
    gap: 28px;
    align-items: stretch;
    padding: 34px 0 28px;
}

.front-hero-copy,
.front-hero-panel,
.front-section,
.front-cta {
    border-radius: 8px;
    border: 1px solid var(--front-line);
    background: rgba(255, 253, 248, .9);
    box-shadow: 0 18px 45px rgba(30, 41, 59, .08);
}

.front-hero-copy {
    padding: 44px;
    min-width: 0;
}

.front-eyebrow {
    color: var(--front-teal);
    font-weight: 850;
    margin-bottom: 12px;
    line-height: 1.35;
}

.front-hero h1 {
    font-size: 56px;
    line-height: 1.12;
    margin: 0 0 18px;
    padding-bottom: .14em;
    font-weight: 900;
    max-width: 12ch;
}

.front-hero p,
.front-section p,
.front-cta p,
.front-rich-text {
    color: #435168;
    font-size: 16px;
    line-height: 1.65;
    margin: 0;
}

.front-rich-text p {
    margin: 0 0 10px;
}

.front-rich-text p:last-child,
.front-rich-text ul:last-child {
    margin-bottom: 0;
}

.front-rich-text ul {
    margin: 0 0 10px 18px;
    padding: 0;
}

.front-rich-text img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    margin: 14px 0;
}

.front-actions {
    margin-top: 28px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.front-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 8px;
    background: var(--front-teal);
    color: #fff;
    text-decoration: none;
    font-weight: 850;
    line-height: 1.25;
    text-align: center;
}

.front-button.secondary {
    background: #fff;
    color: var(--front-teal);
    border: 1px solid rgba(20, 117, 108, .32);
}

.front-hero-panel {
    padding: 28px;
    background:
        linear-gradient(135deg, rgba(20, 117, 108, .95), rgba(36, 63, 92, .96)),
        var(--front-blue);
    color: #fff;
    min-width: 0;
}

.front-hero-panel .front-eyebrow {
    color: #f8fafc;
}

.front-panel-grid {
    display: grid;
    gap: 14px;
}

.front-panel-card {
    border: 1px solid rgba(255, 255, 255, .22);
    background: rgba(255, 255, 255, .14);
    border-radius: 8px;
    padding: 18px;
}

.front-panel-card strong {
    display: block;
    font-size: 24px;
    color: #fff;
    line-height: 1.25;
}

.front-panel-card span {
    color: rgba(255, 255, 255, .92);
    display: block;
    line-height: 1.45;
    margin-top: 3px;
}

.front-section {
    padding: 34px;
    margin: 24px 0;
}

.front-section h2,
.front-cta h2 {
    font-size: 30px;
    line-height: 1.2;
    margin: 0 0 10px;
    font-weight: 900;
}

.front-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.front-feature {
    border: 1px solid var(--front-line);
    border-radius: 8px;
    background: #fff;
    padding: 20px;
    min-width: 0;
}

.front-feature h3 {
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.3;
    font-weight: 850;
}

.front-cta {
    margin: 24px 0 44px;
    padding: 34px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.front-footer {
    color: #435168;
    padding: 20px 0 32px;
    line-height: 1.45;
}

.front-contact-section {
    margin: 24px 0 44px;
    display: grid;
    grid-template-columns: minmax(280px, .78fr) minmax(0, 1.22fr);
    gap: 24px;
    align-items: stretch;
}

.front-contact-copy,
.front-contact-form {
    border-radius: 8px;
    border: 1px solid var(--front-line);
    background: rgba(255, 253, 248, .92);
    box-shadow: 0 18px 45px rgba(30, 41, 59, .08);
    padding: 32px;
    min-width: 0;
}

.front-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.front-contact-copy h2 {
    font-size: 34px;
    font-weight: 900;
    line-height: 1.16;
    margin: 0 0 12px;
}

.front-contact-copy p {
    color: #435168;
    margin: 0;
    line-height: 1.65;
}

.front-contact-intro {
    margin-top: 12px;
}

.front-contact-extra {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--front-line);
}

.front-contact-extra h3 {
    margin: 0 0 8px;
    color: var(--front-ink);
    font-size: 18px;
    font-weight: 900;
    line-height: 1.25;
}

.front-contact-points {
    display: grid;
    gap: 10px;
    margin-top: 24px;
}

.front-contact-points span {
    display: block;
    border: 1px solid var(--front-line);
    border-radius: 8px;
    background: #fff;
    padding: 14px;
    color: #435168;
    line-height: 1.45;
}

.front-contact-points strong {
    display: block;
    color: var(--front-ink);
    margin-bottom: 3px;
}

.front-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.front-form-grid label,
.front-span-2 {
    min-width: 0;
}

.front-form-grid label {
    display: grid;
    gap: 7px;
    color: var(--front-ink);
    font-weight: 800;
}

.front-form-grid span {
    line-height: 1.3;
}

.front-form-grid input,
.front-form-grid textarea {
    width: 100%;
    border: 1px solid var(--front-line);
    border-radius: 8px;
    background: #fff;
    color: var(--front-ink);
    font: inherit;
    padding: 12px 13px;
    outline: none;
    line-height: 1.45;
}

.front-form-grid input:focus,
.front-form-grid textarea:focus {
    border-color: var(--front-teal);
    box-shadow: 0 0 0 3px rgba(20, 117, 108, .16);
}

.front-span-2 {
    grid-column: 1 / -1;
}

.front-alert {
    border-radius: 8px;
    padding: 12px 14px;
    margin-bottom: 14px;
    font-weight: 750;
    line-height: 1.45;
}

.front-alert.success {
    background: #e8f7ef;
    color: #116149;
    border: 1px solid #bae7d2;
}

.front-alert.error {
    background: #fff1f0;
    color: #9f2f20;
    border: 1px solid #f8c3bd;
}

body.front-style-clean {
    --front-bg: #f7f8fb;
    --front-teal: #344767;
    --front-gold: #14756c;
}

body.front-style-bold {
    --front-bg: #f8f2ea;
    --front-teal: #9a4f2f;
    --front-blue: #243f5c;
    --front-gold: #14756c;
}

@media (max-width: 900px) {
    .front-hero,
    .front-feature-grid,
    .front-cta,
    .front-contact-section {
        grid-template-columns: 1fr;
        display: grid;
    }

    .front-hero-copy {
        padding: 28px;
    }

    .front-hero h1 {
        font-size: 40px;
        max-width: none;
        line-height: 1.15;
    }

    .front-nav {
        align-items: flex-start;
        flex-direction: column;
    }

    .front-menu {
        width: 100%;
    }

    .front-logo.has-image {
        max-width: 200px;
    }

    .front-menu a {
        flex: 1 1 auto;
    }
}

@media (max-width: 520px) {
    .front-container {
        width: min(100% - 24px, 1180px);
    }

    .front-hero-copy,
    .front-section,
    .front-cta,
    .front-contact-copy,
    .front-contact-form {
        padding: 22px;
    }

    .front-hero h1 {
        font-size: 32px;
        line-height: 1.12;
    }

    .front-section h2,
    .front-cta h2 {
        font-size: 24px;
    }

    .front-logo.has-image {
        max-width: 170px;
    }

    .front-cta {
        align-items: stretch;
    }

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