:root {
    --simago-blue: #16233d;
    --simago-ink: #24304a;
    --simago-sage: #879b7d;
    --simago-sage-dark: #62735b;
    --simago-cream: #f7f1e8;
    --simago-line: #e8e0d4;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
}

.text-balance {
    text-wrap: balance;
}

.skip-link {
    position: fixed;
    left: 1rem;
    top: 1rem;
    z-index: 999;
    transform: translateY(-200%);
    border-radius: 999px;
    background: var(--simago-blue);
    color: white;
    padding: 0.75rem 1rem;
    font-weight: 700;
    box-shadow: 0 18px 50px rgba(22, 35, 61, 0.18);
}

.skip-link:focus {
    transform: translateY(0);
    outline: 3px solid rgba(135, 155, 125, 0.45);
    outline-offset: 3px;
}

.nav-compact .nav-shell {
    padding-top: 0.55rem;
    padding-bottom: 0.55rem;
    background: rgba(255, 255, 255, 0.9);
}

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

.section-eyebrow::before {
    content: '';
    width: 2.25rem;
    height: 1px;
    background: currentColor;
    opacity: 0.62;
}

.section-eyebrow.justify-center::after {
    content: '';
    width: 2.25rem;
    height: 1px;
    background: currentColor;
    opacity: 0.62;
}

.icon-badge {
    display: inline-flex;
    width: 3.25rem;
    height: 3.25rem;
    align-items: center;
    justify-content: center;
    border-radius: 1.1rem;
    background: var(--simago-cream);
    color: var(--simago-sage-dark);
}

.icon-badge svg {
    width: 1.65rem;
    height: 1.65rem;
}

.service-card {
    position: relative;
    min-height: 18rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 2rem;
    background: rgba(255, 255, 255, 0.78);
    padding: 1.75rem;
    box-shadow: 0 14px 44px rgba(22, 35, 61, 0.08);
    backdrop-filter: blur(18px);
    transition: transform 240ms ease, box-shadow 240ms ease, background 240ms ease;
}

.service-card::after {
    content: '';
    position: absolute;
    right: -4rem;
    bottom: -4rem;
    width: 9rem;
    height: 9rem;
    border-radius: 999px;
    background: rgba(135, 155, 125, 0.17);
    transition: transform 240ms ease;
}

.service-card:hover {
    transform: translateY(-0.35rem);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 30px 90px rgba(22, 35, 61, 0.14);
}

.service-card:hover::after {
    transform: scale(1.35);
}

.service-card h3 {
    position: relative;
    z-index: 1;
    margin-top: 3.6rem;
    color: var(--simago-blue);
    font-size: 1.35rem;
    font-weight: 750;
    letter-spacing: -0.02em;
}

.service-card p {
    position: relative;
    z-index: 1;
    margin-top: 1rem;
    color: rgb(71, 85, 105);
    line-height: 1.75;
}

.service-number {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    display: inline-flex;
    width: 3rem;
    height: 3rem;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
    background: var(--simago-cream);
    color: var(--simago-blue);
    font-size: 0.85rem;
    font-weight: 800;
}

.contact-line {
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 1.5rem;
    background: rgba(255, 255, 255, 0.76);
    padding: 1rem;
    box-shadow: 0 14px 44px rgba(22, 35, 61, 0.08);
    transition: transform 220ms ease, box-shadow 220ms ease, background 220ms ease;
}

.contact-line:hover {
    transform: translateY(-0.18rem);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 28px 70px rgba(22, 35, 61, 0.12);
}

.contact-icon {
    display: inline-flex;
    width: 3rem;
    height: 3rem;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border-radius: 1.1rem;
    background: var(--simago-cream);
    color: var(--simago-sage-dark);
}

.contact-icon svg {
    width: 1.45rem;
    height: 1.45rem;
}

.form-field {
    display: block;
}

.form-field span {
    display: block;
    margin-bottom: 0.55rem;
    color: var(--simago-blue);
    font-size: 0.85rem;
    font-weight: 800;
}

.form-field input,
.form-field textarea {
    width: 100%;
    border: 1px solid var(--simago-line);
    border-radius: 1.2rem;
    background: rgba(255, 255, 255, 0.94);
    color: var(--simago-ink);
    outline: none;
    padding: 0.95rem 1rem;
    transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
    color: rgb(148, 163, 184);
}

.form-field input:focus,
.form-field textarea:focus {
    border-color: rgba(135, 155, 125, 0.8);
    background: white;
    box-shadow: 0 0 0 4px rgba(135, 155, 125, 0.16);
}

.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .reveal,
    .service-card,
    .contact-line {
        transition: none !important;
        transform: none !important;
    }

    .reveal {
        opacity: 1;
    }
}
