/* Softforce Apps brand overrides */

:root {
    --sfa-navy: #0f172a;
    --sfa-blue: #1e3a8a;
    --sfa-gold: #e8bd14;
    --sfa-gold-dark: #c9a10f;
    --sfa-slate: #64748b;
    --sfa-light: #f8fafc;
    --ghost-accent-color: var(--sfa-gold);
    --sfa-font-heading: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --sfa-font-body: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Typography — site-wide */
body,
.site-wrapper,
.font-sans,
.post-body,
.js-post-content,
.button,
input,
textarea,
select {
    font-family: var(--sfa-font-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6,
.post-title,
.text-title,
.post-box-title,
.header-logo span,
.page-error-title,
.sfa-hero__title,
.sfa-section__title,
.sfa-service-card__title,
.sfa-service-hero__title,
.sfa-page-header h1,
.sfa-cta-strip h2,
.is-contact h1,
.is-contact h2 {
    font-family: var(--sfa-font-heading);
    letter-spacing: -0.02em;
}

body {
    font-size: 1.0625rem;
    line-height: 1.65;
    color: #334155;
}

.mainMenu a,
.header-logo span {
    font-family: var(--sfa-font-heading);
    font-weight: 600;
}

.sfa-hero__subtitle,
.sfa-service-card__text,
.sfa-about p,
.sfa-page-header .post-excerpt,
.footer {
    font-family: var(--sfa-font-body);
}

.sfa-btn {
    font-family: var(--sfa-font-heading);
    letter-spacing: 0.01em;
}

.sfa-page-content,
.sfa-service-content {
    font-size: 1.0625rem;
}

.sfa-page-content h2,
.sfa-service-content h2 {
    font-family: var(--sfa-font-heading);
}

/* Header */
.header {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.header-logo span,
.header .mainMenu a {
    color: var(--sfa-navy);
}

.header .mainMenu a:hover {
    color: var(--sfa-blue);
}

.header .dropdown.is-hoverable,
.header .js-dark-mode {
    display: none !important;
}

.mainMenu a {
    font-weight: 500;
    letter-spacing: 0.01em;
}

/* No logo uploaded — hide text title, keep accessible home link */
.header-logo--minimal {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.header-wrap:has(.header-logo--minimal) .mainMenu {
    flex-grow: 1;
    justify-content: flex-start;
    padding-left: 0;
}

@media (min-width: 1024px) {
    .header-wrap:has(.header-logo--minimal) .mainMenu {
        justify-content: center;
    }

    .header-wrap:has(.header-logo--minimal) .header-left {
        position: absolute;
        right: 1rem;
    }
}

/* Footer */
.footer {
    background: var(--sfa-navy);
    color: rgba(255, 255, 255, 0.75);
}

.footer a {
    color: var(--sfa-gold);
}

.footer a:hover {
    color: #fff;
}

.footer .social-media {
    display: none;
}

/* Home page */
.sfa-home {
    overflow-x: hidden;
}

.sfa-hero {
    background: linear-gradient(135deg, var(--sfa-navy) 0%, var(--sfa-blue) 100%);
    color: #fff;
    padding: 5rem 1.5rem 4.5rem;
    text-align: center;
    position: relative;
}

.sfa-hero::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 4rem;
    background: linear-gradient(to bottom, transparent, #fff);
    pointer-events: none;
}

.sfa-hero__inner {
    max-width: 820px;
    margin: 0 auto;
}

.sfa-hero__title {
    font-size: clamp(2.25rem, 5vw, 3.25rem);
    font-weight: 800;
    line-height: 1.1;
    margin: 0 0 1.25rem;
    letter-spacing: -0.02em;
}

.sfa-hero__subtitle {
    font-size: clamp(1.05rem, 2.5vw, 1.3rem);
    line-height: 1.6;
    opacity: 0.92;
    margin: 0 auto 2rem;
    max-width: 640px;
}

.sfa-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.sfa-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.6rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.sfa-btn:hover {
    transform: translateY(-1px);
}

.sfa-btn--primary {
    background: #fff;
    color: var(--sfa-blue);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.sfa-btn--primary:hover {
    background: var(--sfa-light);
}

.sfa-btn--outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.85);
}

.sfa-btn--outline:hover {
    background: rgba(255, 255, 255, 0.1);
}

.sfa-section {
    padding: 4rem 1.5rem;
}

.sfa-section--light {
    background: var(--sfa-light);
}

.sfa-section__title {
    text-align: center;
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    color: var(--sfa-navy);
    margin: 0 0 2.5rem;
    letter-spacing: -0.02em;
}

.sfa-services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

/* Home: four services in one row (desktop) or horizontal scroll (narrow) */
.sfa-services-scroll {
    max-width: 1200px;
    margin: 0 auto;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

.sfa-services-scroll::-webkit-scrollbar {
    height: 6px;
}

.sfa-services-scroll::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.is-sfa-home .sfa-services--home {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    max-width: none;
    min-width: 100%;
}

.is-sfa-home .sfa-service-card__image {
    aspect-ratio: 16 / 9;
}

.is-sfa-home .sfa-service-card__body {
    padding: 0.75rem 0.875rem 1rem;
}

.is-sfa-home .sfa-service-card__title {
    font-size: 0.95rem;
    margin-bottom: 0.35rem;
}

.is-sfa-home .sfa-service-card__text {
    font-size: 0.78rem;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.is-sfa-home .sfa-service-card:hover {
    transform: translateY(-2px);
}

@media (max-width: 1023px) {
    .sfa-services-scroll {
        margin-left: -1.5rem;
        margin-right: -1.5rem;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .is-sfa-home .sfa-services--home {
        grid-template-columns: repeat(4, 220px);
        min-width: max-content;
    }

    .is-sfa-home .sfa-service-card {
        scroll-snap-align: start;
    }
}

@media (max-width: 640px) {
    .sfa-services-scroll {
        margin-left: -1.25rem;
        margin-right: -1.25rem;
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .is-sfa-home .sfa-services--home {
        grid-template-columns: repeat(4, 200px);
        gap: 0.75rem;
    }
}

.sfa-service-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    display: flex;
    flex-direction: column;
}

.sfa-service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.1);
    border-color: #cbd5e1;
}

.sfa-service-card__image {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    display: block;
}

.sfa-service-card__body {
    padding: 1.25rem 1.5rem 1.5rem;
    flex: 1;
}

.sfa-service-card__title {
    margin: 0 0 0.5rem;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--sfa-navy);
}

.sfa-service-card__text {
    margin: 0;
    color: var(--sfa-slate);
    line-height: 1.55;
    font-size: 0.95rem;
}

.sfa-about {
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
}

.sfa-about p {
    line-height: 1.75;
    color: #334155;
    margin: 0 0 1rem;
    font-size: 1.05rem;
}

.sfa-clients {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2rem 2.5rem;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1rem;
}

.sfa-clients img {
    max-height: 52px;
    width: auto;
    opacity: 0.85;
    filter: grayscale(20%);
    transition: opacity 0.2s ease, filter 0.2s ease;
}

.sfa-clients img:hover {
    opacity: 1;
    filter: none;
}

.sfa-cta-strip {
    background: linear-gradient(90deg, var(--sfa-blue), #2563eb);
    color: #fff;
    text-align: center;
    padding: 3rem 1.5rem;
}

.sfa-cta-strip h2 {
    margin: 0 0 0.75rem;
    font-size: 1.75rem;
}

.sfa-cta-strip p {
    margin: 0 0 1.5rem;
    opacity: 0.9;
}

.sfa-btn--gold {
    background: var(--sfa-gold);
    color: var(--sfa-navy);
}

.sfa-btn--gold:hover {
    background: var(--sfa-gold-dark);
    color: #000;
}

/* Service pages */
.sfa-service-hero {
    position: relative;
    min-height: 280px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
}

.sfa-service-hero__overlay {
    width: 100%;
    padding: 3rem 1.5rem;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.35));
}

.sfa-service-hero__title {
    max-width: 1100px;
    margin: 0 auto;
    color: #fff;
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.sfa-service-content {
    max-width: 760px;
    padding: 3rem 1.5rem 4rem;
}

.sfa-service-content p,
.sfa-page-content p {
    line-height: 1.75;
    color: #334155;
    margin-bottom: 1.25rem;
}

.sfa-service-content ul,
.sfa-page-content ul {
    margin: 0 0 1.5rem 1.25rem;
    line-height: 1.7;
    color: #334155;
}

.sfa-service-content li,
.sfa-page-content li {
    margin-bottom: 0.5rem;
}

.sfa-service-content h2,
.sfa-page-content h2 {
    color: var(--sfa-navy);
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
    font-weight: 700;
}

.sfa-service-content a,
.sfa-page-content a {
    color: var(--sfa-blue);
    font-weight: 500;
}

.sfa-service-content a:hover,
.sfa-page-content a:hover {
    color: var(--sfa-gold-dark);
}

/* Services carousel (/services/) */
.sfa-services-page {
    padding-bottom: 4rem;
}

.sfa-carousel {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem 2rem;
}

.sfa-carousel__viewport {
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 16px 48px rgba(15, 23, 42, 0.12);
    background: #fff;
    border: 1px solid #e5e7eb;
}

.sfa-carousel__track {
    display: flex;
    transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.sfa-carousel__slide {
    flex: 0 0 100%;
    min-width: 100%;
    padding: 2rem;
    box-sizing: border-box;
}

.sfa-carousel__slide-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 2rem;
    align-items: start;
}

.sfa-carousel__media img {
    width: 100%;
    border-radius: 12px;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    display: block;
}

.sfa-carousel__counter {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--sfa-blue);
    margin-bottom: 0.5rem;
}

.sfa-carousel__title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    color: var(--sfa-navy);
    margin: 0 0 0.75rem;
}

.sfa-carousel__excerpt {
    color: var(--sfa-slate);
    line-height: 1.6;
    margin: 0 0 1rem;
    font-size: 1.05rem;
}

.sfa-carousel__content {
    max-height: 12rem;
    overflow-y: auto;
    margin-bottom: 1.25rem;
    padding-right: 0.5rem;
    font-size: 0.98rem;
    line-height: 1.65;
    color: #334155;
}

.sfa-carousel__content p {
    margin-bottom: 0.75rem;
}

.sfa-carousel__controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.sfa-carousel__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.65rem 1.1rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
    color: var(--sfa-navy);
    font-family: var(--sfa-font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.sfa-carousel__btn:hover:not(:disabled) {
    background: var(--sfa-light);
    border-color: var(--sfa-blue);
    color: var(--sfa-blue);
}

.sfa-carousel__btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.sfa-carousel__dots {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex: 1;
}

.sfa-carousel__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    padding: 0;
    background: #cbd5e1;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease;
}

.sfa-carousel__dot.is-active {
    background: var(--sfa-blue);
    transform: scale(1.25);
}

.sfa-carousel__status {
    text-align: center;
    margin-top: 0.75rem;
    font-size: 0.875rem;
    color: var(--sfa-slate);
}

/* Prev/next on individual service pages */
.sfa-service-nav {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 1.5rem 3rem;
}

.sfa-service-nav__inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 1rem;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
}

.sfa-service-nav__link {
    font-family: var(--sfa-font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--sfa-blue);
    text-decoration: none;
    transition: color 0.15s ease;
}

.sfa-service-nav__link:hover {
    color: var(--sfa-gold-dark);
}

.sfa-service-nav__link--prev {
    justify-self: start;
}

.sfa-service-nav__link--all {
    justify-self: center;
    color: var(--sfa-slate);
    font-size: 0.85rem;
}

.sfa-service-nav__link--next {
    justify-self: end;
    text-align: right;
}

.sfa-service-nav__link--disabled {
    color: #cbd5e1;
    pointer-events: none;
}

/* General pages */
.sfa-page {
    padding-bottom: 3rem;
}

.sfa-page-header {
    background: var(--sfa-light);
    padding: 3rem 1.5rem 2.5rem;
    text-align: center;
    border-bottom: 1px solid #e5e7eb;
}

.sfa-page-header h1 {
    max-width: 800px;
    margin: 0 auto;
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--sfa-navy);
    letter-spacing: -0.02em;
}

.sfa-page-header .post-excerpt {
    max-width: 640px;
    margin: 1rem auto 0;
    color: var(--sfa-slate);
    font-size: 1.1rem;
    line-height: 1.6;
}

.sfa-page-content {
    max-width: 760px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem;
}

/* Products / SaaS page */
.sfa-products-body {
    max-width: 960px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem 3rem;
}

.sfa-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.75rem;
}

.sfa-product-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 2rem 1.75rem;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.sfa-product-card:hover {
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
    border-color: #cbd5e1;
}

.sfa-product-card__badge {
    display: inline-block;
    align-self: flex-start;
    font-family: var(--sfa-font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--sfa-blue);
    background: rgba(37, 99, 235, 0.08);
    padding: 0.35rem 0.65rem;
    border-radius: 6px;
    margin-bottom: 1rem;
}

.sfa-product-card__title {
    margin: 0 0 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--sfa-navy);
    letter-spacing: -0.02em;
}

.sfa-product-card__text {
    margin: 0 0 1.25rem;
    color: var(--sfa-slate);
    line-height: 1.65;
    font-size: 1rem;
}

.sfa-product-card__features {
    margin: 0 0 1.75rem;
    padding-left: 1.25rem;
    color: #475569;
    line-height: 1.7;
    font-size: 0.95rem;
    flex: 1;
}

.sfa-product-card__features li {
    margin-bottom: 0.35rem;
}

.sfa-product-card .sfa-btn {
    align-self: flex-start;
}

/* Ghost HTML card content on pages */
.sfa-page-content .kg-card,
.post-body .kg-card {
    margin-bottom: 2rem;
}

/* Blog index refinements */
.is-home .home-banner {
    display: none;
}

.is-home .container.mb-16 {
    margin-top: 2rem;
}

/* Contact page */
.sfa-contact-page {
    padding-bottom: 4rem;
}

.sfa-contact-body {
    max-width: 900px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem 0;
}

.sfa-contact-intro {
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.65;
    color: var(--sfa-slate);
    margin: 0 0 2rem;
}

.sfa-contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.sfa-contact-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem 1.75rem;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}

.sfa-contact-card--email {
    max-width: 100%;
}

.sfa-contact-card__title {
    font-family: var(--sfa-font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--sfa-navy);
    margin: 0 0 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--sfa-gold);
}

.sfa-contact-list {
    margin: 0;
}

.sfa-contact-row {
    display: grid;
    grid-template-columns: 5.5rem 1fr;
    gap: 0.75rem 1rem;
    align-items: baseline;
    padding: 0.65rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.sfa-contact-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.sfa-contact-row dt {
    margin: 0;
    font-family: var(--sfa-font-heading);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--sfa-slate);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.sfa-contact-row dd {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.5;
}

.sfa-contact-row dd a {
    color: var(--sfa-blue);
    font-weight: 500;
    text-decoration: none;
}

.sfa-contact-row dd a:hover {
    color: var(--sfa-gold-dark);
    text-decoration: underline;
}

.is-contact .post-title {
    color: var(--sfa-navy);
}

/* Responsive */
@media (max-width: 768px) {
    .sfa-contact-grid {
        grid-template-columns: 1fr;
    }

    .sfa-contact-row {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }

    .sfa-contact-body {
        padding-top: 2rem;
    }

    .sfa-carousel__slide-grid {
        grid-template-columns: 1fr;
    }

    .sfa-carousel__content {
        max-height: 8rem;
    }

    .sfa-service-nav__inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .sfa-service-nav__link--prev,
    .sfa-service-nav__link--next,
    .sfa-service-nav__link--all {
        justify-self: center;
        text-align: center;
    }

    .sfa-carousel__controls {
        flex-direction: column;
    }

    .sfa-carousel__dots {
        order: -1;
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 640px) {
    .sfa-hero {
        padding: 3.5rem 1.25rem 3rem;
    }

    .sfa-section {
        padding: 3rem 1.25rem;
    }

    .sfa-clients img {
        max-height: 40px;
    }
}
