/* Home based on the visual language of the published Neves Infotec site. */
.published-home {
    background: #fff;
    color: #1f2937;
}

.published-home *,
.quote-page * {
    letter-spacing: 0;
}

.published-home h1,
.published-home h2,
.published-home h3 {
    margin: 0;
    color: #111827;
    font-weight: 850;
    line-height: 1.12;
}

.published-home p {
    color: #5f6670;
    font-size: 1rem;
}

.published-hero {
    display: grid;
    min-height: min(570px, calc(100svh - 110px));
    background: #f5f6f8;
    overflow: hidden;
}

.published-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(340px, .88fr);
    align-items: center;
    gap: 64px;
    padding-top: 48px;
    padding-bottom: 48px;
}

.published-kicker,
.published-eyebrow,
.published-section-head > span,
.published-cta span {
    display: block;
    margin-bottom: 10px;
    color: #ef3f49;
    font-size: .78rem;
    font-weight: 850;
    text-transform: uppercase;
}

.published-hero h1 {
    font-size: clamp(3rem, 5.2vw, 5rem);
    line-height: .98;
}

.published-hero h1 span {
    color: #f0444d;
}

.published-hero h2 {
    margin-top: 22px;
    color: #505762;
    font-size: clamp(1.25rem, 2vw, 1.65rem);
    font-weight: 500;
}

.published-hero-copy > p {
    max-width: 660px;
    margin: 22px 0 0;
    font-size: 1.05rem;
    line-height: 1.8;
}

.published-hero-copy strong {
    color: #ef3f49;
}

.published-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

.published-actions .button,
.published-actions .button-outline,
.published-cta .button {
    min-width: 158px;
    min-height: 50px;
    border-radius: 7px;
}

.published-portrait {
    position: relative;
    width: min(100%, 420px);
    margin: 0 auto;
}

.published-portrait-ring {
    aspect-ratio: 1;
    overflow: hidden;
    border: 7px solid #fff;
    border-radius: 50%;
    background: #ffd9dc;
    box-shadow: 0 22px 55px rgba(15, 23, 42, .14);
}

.published-portrait-ring img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center bottom;
    background: #ffd9dc;
}

.published-portrait-badge {
    position: absolute;
    top: 4px;
    right: 6px;
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 16px;
    background: #fff;
    color: #ef3f49;
    box-shadow: 0 10px 28px rgba(15, 23, 42, .14);
}

.published-section {
    padding: 76px 0;
}

.published-section-head {
    max-width: 760px;
    margin: 0 auto 38px;
    text-align: center;
}

.published-section-head h2,
.published-about h2,
.published-cta h2 {
    font-size: clamp(2rem, 3.5vw, 3rem);
}

.published-section-head p {
    margin: 14px auto 0;
    max-width: 680px;
}

.published-specialties {
    background: #fff;
}

.published-specialty-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.published-specialty-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    padding: 28px;
    box-shadow: 0 16px 38px rgba(15, 23, 42, .06);
}

.published-specialty-icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    margin-bottom: 22px;
    border-radius: 8px;
    background: #fff0f1;
    color: #ef3f49;
}

.published-specialty-icon svg {
    width: 26px;
    height: 26px;
}

.published-specialty-card h3 {
    font-size: 1.3rem;
}

.published-specialty-card p {
    min-height: 96px;
    margin: 14px 0 18px;
}

.published-specialty-card ul {
    display: grid;
    gap: 9px;
    margin: 0 0 24px;
    padding: 0;
    list-style: none;
}

.published-specialty-card li {
    display: flex;
    gap: 9px;
    color: #4b5563;
    font-size: .93rem;
}

.published-specialty-card li span {
    color: #ef3f49;
    font-weight: 900;
}

.published-specialty-card > a {
    margin-top: auto;
    color: #dc303b;
    font-weight: 850;
}

.published-about {
    background: #f5f6f8;
}

.published-about-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(330px, .95fr);
    align-items: center;
    gap: 64px;
}

.published-about p {
    margin: 18px 0;
    line-height: 1.8;
}

.published-about .button {
    margin-top: 10px;
    border-radius: 7px;
}

.published-about-panel {
    border-left: 5px solid #ef3f49;
    border-radius: 8px;
    background: #fff;
    padding: 32px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, .08);
}

.published-about-panel h3 {
    margin-bottom: 24px;
    font-size: 1.35rem;
}

.published-trust-list {
    display: grid;
    gap: 22px;
}

.published-trust-list div {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 18px;
    border-top: 1px solid #e5e7eb;
    padding-top: 18px;
}

.published-trust-list div:first-child {
    border-top: 0;
    padding-top: 0;
}

.published-trust-list strong {
    color: #ef3f49;
    font-size: 1rem;
}

.published-trust-list span {
    color: #5f6670;
}

.published-method {
    background: #fff;
}

.published-method-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.published-method-grid li {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 18px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 26px;
}

.published-step {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #ef3f49;
    color: #fff;
    font-weight: 900;
}

.published-method-grid h3 {
    font-size: 1.12rem;
}

.published-method-grid p {
    margin: 10px 0 0;
    font-size: .94rem;
}

.published-ecosystem {
    background: #f5f6f8;
}

.published-area-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.published-area {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    min-width: 0;
    border: 1px solid #e2e5e9;
    border-radius: 8px;
    background: #fff;
    padding: 20px;
    transition: border-color 160ms ease, transform 160ms ease;
}

.published-area:hover {
    border-color: #ef3f49;
    transform: translateY(-2px);
}

.published-area-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: var(--solution-soft);
}

.published-area strong,
.published-area small {
    display: block;
}

.published-area strong {
    color: #111827;
    font-size: 1.05rem;
}

.published-area small {
    margin-top: 4px;
    color: #6b7280;
    line-height: 1.45;
}

.published-area > span:last-child {
    color: #ef3f49;
    font-size: 1.2rem;
}

.published-cta {
    padding: 58px 0;
    background: #171b24;
}

.published-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 36px;
}

.published-cta h2,
.published-cta p {
    color: #fff;
}

.published-cta p {
    margin: 12px 0 0;
    color: #cbd0d8;
}

.published-cta-button {
    flex: 0 0 auto;
    background: #ef3f49;
}

.floating-whatsapp {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 45;
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border: 5px solid rgba(255, 255, 255, .78);
    border-radius: 50%;
    background: #20c86a;
    color: #fff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, .2);
}

.floating-whatsapp svg {
    width: 27px;
    height: 27px;
}

/* Quote form keeps the conversion improvements added to the Laravel version. */
.quote-page *,
.faq-item summary {
    letter-spacing: 0;
}

.quote-page .form-panel,
.quote-page .contact-card {
    border-radius: 8px;
    box-shadow: none;
}

.quote-page input,
.quote-page select,
.quote-page textarea {
    min-width: 0;
    border-radius: 7px;
}

.quote-page label {
    min-width: 0;
}

.quote-page .field-error {
    color: #a81728;
    font-size: .875rem;
    font-weight: 700;
}

.quote-page .contact-form [aria-invalid="true"] {
    border-color: #b71929;
}

.quote-page .quote-note {
    color: #586167;
    font-size: .875rem;
}

.project-demo-label {
    color: #17634f;
    font-size: .8125rem;
    font-weight: 800;
}

@media (max-width: 980px) {
    .published-hero-grid {
        grid-template-columns: minmax(0, 1fr) minmax(280px, .7fr);
        gap: 28px;
    }

    .published-hero h1 {
        font-size: clamp(2.7rem, 7vw, 4.2rem);
    }

    .published-specialty-grid,
    .published-method-grid {
        grid-template-columns: 1fr;
    }

    .published-specialty-card p {
        min-height: 0;
    }

    .published-about-grid {
        grid-template-columns: 1fr;
        gap: 34px;
    }
}

@media (max-width: 680px) {
    .published-hero {
        min-height: auto;
    }

    .published-hero-grid {
        grid-template-columns: 1fr;
        padding-top: 42px;
        padding-bottom: 40px;
    }

    .published-hero-copy {
        text-align: center;
    }

    .published-hero h1 {
        font-size: 2.85rem;
    }

    .published-hero h2 {
        font-size: 1.18rem;
    }

    .published-hero-copy > p {
        font-size: 1rem;
    }

    .published-actions {
        justify-content: center;
    }

    .published-actions .button,
    .published-actions .button-outline {
        width: 100%;
    }

    .published-portrait {
        width: min(82vw, 340px);
    }

    .published-section {
        padding: 52px 0;
    }

    .published-area-grid {
        grid-template-columns: 1fr;
    }

    .published-area {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .published-area > span:last-child {
        display: none;
    }

    .published-trust-list div {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .published-cta-inner {
        align-items: stretch;
        flex-direction: column;
    }

    .published-cta-button {
        width: 100%;
    }

    .floating-whatsapp {
        right: 14px;
        bottom: 14px;
        width: 54px;
        height: 54px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .published-area {
        transition: none;
    }
}
