/* =========================================================
   The Service Connector
   Universal Landing Page Styles
   File: /assets/css/landing.css
   ========================================================= */

/* ---------------------------------------------------------
   Shared landing-page rhythm
   --------------------------------------------------------- */

.landing-breadcrumbs {
    background: #ffffff;
}

.landing-breadcrumbs .breadcrumb {
    font-size: .92rem;
}

.landing-breadcrumbs .breadcrumb-item a {
    color: var(--tsc-muted);
    text-decoration: none;
}

.landing-breadcrumbs .breadcrumb-item a:hover {
    color: var(--tsc-dark);
    text-decoration: underline;
}

.landing-breadcrumbs .breadcrumb-item.active {
    color: var(--tsc-dark);
    font-weight: 650;
}

.landing-hero,
.landing-intro,
.landing-features,
.landing-problems,
.landing-section,
.landing-brands,
.landing-faq,
.landing-related,
.landing-disclaimer {
    position: relative;
}

.landing-hero h1,
.landing-intro h2,
.landing-features h2,
.landing-problems h2,
.landing-section h2,
.landing-brands h2,
.landing-faq h2,
.landing-related h2 {
    letter-spacing: -.025em;
}

.landing-intro p,
.landing-section p,
.landing-faq .accordion-body,
.landing-disclaimer p {
    line-height: 1.75;
}

/* ---------------------------------------------------------
   Hero
   --------------------------------------------------------- */

.landing-hero {
    background:
        radial-gradient(circle at top left, rgba(17, 24, 39, .07), transparent 34%),
        linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border-bottom: 1px solid rgba(17, 24, 39, .06);
    overflow: hidden;
}

.landing-hero .container {
    position: relative;
    z-index: 1;
}

.landing-hero .badge {
    padding: .6rem .85rem;
    font-weight: 700;
    letter-spacing: .015em;
    color: var(--tsc-dark);
    background: rgba(255, 255, 255, .82) !important;
}

.landing-hero h1 {
    max-width: 980px;
    line-height: 1.04;
}

.landing-hero .lead {
    max-width: 760px;
    color: var(--tsc-muted);
    line-height: 1.65;
}

.landing-hero .btn-lg {
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 750;
    box-shadow: 0 10px 30px rgba(17, 24, 39, .14);
}

.landing-hero .btn-lg:hover {
    transform: translateY(-1px);
}

.landing-hero img {
    width: 100%;
    border: 1px solid rgba(17, 24, 39, .08);
    box-shadow: 0 28px 70px rgba(15, 23, 42, .12);
}

/* ---------------------------------------------------------
   Intro
   --------------------------------------------------------- */

.landing-intro {
    background: #ffffff;
}

.landing-intro .col-lg-9 {
    font-size: 1.08rem;
}

.landing-intro p:last-child {
    margin-bottom: 0;
}

/* ---------------------------------------------------------
   Feature cards
   --------------------------------------------------------- */

.landing-features {
    background: var(--tsc-soft) !important;
}

.landing-features .card {
    border: 1px solid rgba(17, 24, 39, .07) !important;
    box-shadow: 0 14px 38px rgba(15, 23, 42, .055) !important;
    transition: transform .18s ease, box-shadow .18s ease;
}

.landing-features .card:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 48px rgba(15, 23, 42, .085) !important;
}

.feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 17px;
    background: var(--tsc-dark);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
}

.landing-features h3 {
    font-weight: 750;
    letter-spacing: -.015em;
}

/* ---------------------------------------------------------
   Common problems
   --------------------------------------------------------- */

.landing-problems {
    background: #ffffff;
}

.problem-card {
    background: #ffffff;
    border-color: var(--tsc-border) !important;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.problem-card:hover {
    transform: translateY(-2px);
    border-color: rgba(17, 24, 39, .14) !important;
    box-shadow: 0 16px 36px rgba(15, 23, 42, .065);
}

.problem-card .bi-check-circle-fill {
    color: var(--tsc-dark);
}

.problem-card h3 {
    font-weight: 750;
    letter-spacing: -.01em;
}

/* ---------------------------------------------------------
   Generic dynamic sections
   --------------------------------------------------------- */

.landing-section {
    background: #ffffff;
}

.landing-section:nth-of-type(even) {
    background: #ffffff;
}

.landing-section h2 {
    margin-bottom: 1.25rem;
    font-weight: 750;
}

.landing-section .lead {
    margin-bottom: 1.5rem;
}

.section-content > *:last-child {
    margin-bottom: 0;
}

.section-content p,
.section-content li {
    line-height: 1.72;
}

.section-content ul,
.section-content ol {
    padding-left: 1.3rem;
}

.section-content li + li {
    margin-top: .55rem;
}

.section-content strong {
    color: var(--tsc-dark);
}

/* ---------------------------------------------------------
   Standard/content sections
   --------------------------------------------------------- */

.section-type-content.layout-standard {
    background: #ffffff;
}

.section-type-content.layout-standard + .section-type-content.layout-standard {
    border-top: 1px solid rgba(17, 24, 39, .06);
}

/* ---------------------------------------------------------
   Checklist sections
   --------------------------------------------------------- */

.section-type-checklist {
    background: var(--tsc-soft);
}

.section-type-checklist .col-lg-9 {
    background: #ffffff;
    border: 1px solid var(--tsc-border);
    border-radius: 24px;
    padding: 2rem 2.1rem;
    box-shadow: 0 12px 34px rgba(15, 23, 42, .045);
}

.section-type-checklist .section-content ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.section-type-checklist .section-content li {
    position: relative;
    padding-left: 2rem;
    margin-top: .8rem;
}

.section-type-checklist .section-content li::before {
    content: "\F26B";
    font-family: "bootstrap-icons";
    position: absolute;
    left: 0;
    top: .05rem;
    font-size: 1.05rem;
    color: var(--tsc-dark);
}

.layout-twocolumnlist .section-content ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .2rem 2rem;
}

/* ---------------------------------------------------------
   Warning section
   --------------------------------------------------------- */

.landing-section-warning,
.section-type-warning {
    background: #fffaf0;
}

.landing-section-warning .col-lg-9,
.section-type-warning .col-lg-9 {
    background: #ffffff;
    border: 1px solid #fde7b2;
    border-left: 5px solid #d97706;
    border-radius: 22px;
    padding: 2rem 2.1rem;
    box-shadow: 0 12px 34px rgba(120, 53, 15, .055);
}

.landing-section-warning h2,
.section-type-warning h2 {
    color: #92400e;
}

/* ---------------------------------------------------------
   Numbered steps
   --------------------------------------------------------- */

.section-type-steps {
    background: var(--tsc-soft);
}

.layout-numberedsteps .section-content ol {
    list-style: none;
    counter-reset: landing-step;
    padding-left: 0;
    margin: 1.75rem 0 0;
}

.layout-numberedsteps .section-content ol > li {
    counter-increment: landing-step;
    position: relative;
    padding: .2rem 0 1.45rem 4rem;
    margin: 0;
    min-height: 3.25rem;
}

.layout-numberedsteps .section-content ol > li::before {
    content: counter(landing-step);
    position: absolute;
    left: 0;
    top: 0;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    background: var(--tsc-dark);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

.layout-numberedsteps .section-content ol > li:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 1.34rem;
    top: 2.85rem;
    bottom: .05rem;
    width: 1px;
    background: var(--tsc-border);
}

/* ---------------------------------------------------------
   Primary CTA / callout
   --------------------------------------------------------- */

.landing-section-callout,
.section-type-callout {
    background: var(--tsc-dark);
    color: #ffffff;
}

.landing-section-callout h2,
.landing-section-callout p,
.landing-section-callout .lead,
.section-type-callout h2,
.section-type-callout p,
.section-type-callout .lead {
    color: #ffffff;
}

.landing-section-callout .text-body-secondary,
.section-type-callout .text-body-secondary {
    color: #d1d5db !important;
}

.landing-section-callout .btn-dark,
.section-type-callout .btn-dark {
    background: #ffffff;
    color: var(--tsc-dark);
    border-color: #ffffff;
}

.landing-section-callout .btn-dark:hover,
.section-type-callout .btn-dark:hover {
    background: #f3f4f6;
    color: #030712;
    border-color: #f3f4f6;
}

/* ---------------------------------------------------------
   Brands
   --------------------------------------------------------- */

.landing-brands {
    background: var(--tsc-soft) !important;
}

.brand-chip {
    font-weight: 700;
    color: var(--tsc-dark);
    border-color: var(--tsc-border) !important;
    box-shadow: 0 4px 14px rgba(15, 23, 42, .035);
}

/* ---------------------------------------------------------
   FAQ
   --------------------------------------------------------- */

.landing-faq {
    background: #ffffff;
}

.landing-faq .accordion {
    --bs-accordion-border-color: var(--tsc-border);
    --bs-accordion-btn-focus-box-shadow: none;
    --bs-accordion-active-bg: #ffffff;
    --bs-accordion-active-color: var(--tsc-dark);
}

.landing-faq .accordion-item {
    border: 1px solid var(--tsc-border);
    border-radius: 16px !important;
    overflow: hidden;
    margin-bottom: .85rem;
}

.landing-faq .accordion-button {
    font-weight: 750;
    padding: 1.15rem 1.25rem;
    color: var(--tsc-dark);
}

.landing-faq .accordion-button:not(.collapsed) {
    box-shadow: inset 0 -1px 0 var(--tsc-border);
}

.landing-faq .accordion-body {
    color: var(--tsc-muted);
    padding: 1.15rem 1.25rem 1.3rem;
}

/* ---------------------------------------------------------
   Related services
   --------------------------------------------------------- */

.landing-related {
    background: var(--tsc-soft) !important;
}

.related-service-link {
    color: var(--tsc-dark);
    border-color: var(--tsc-border) !important;
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.related-service-link:hover {
    color: var(--tsc-dark);
    transform: translateY(-2px);
    border-color: rgba(17, 24, 39, .16) !important;
    box-shadow: 0 14px 32px rgba(15, 23, 42, .07);
}

/* ---------------------------------------------------------
   Disclaimer
   --------------------------------------------------------- */

.landing-disclaimer {
    background: #ffffff;
    border-top: 1px solid rgba(17, 24, 39, .07);
}

.landing-disclaimer .small {
    max-width: 1050px;
}

/* ---------------------------------------------------------
   CTA consistency
   --------------------------------------------------------- */

.landing-hero .btn,
.landing-section .btn {
    font-weight: 750;
    transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}

.landing-hero .btn:hover,
.landing-section .btn:hover {
    transform: translateY(-1px);
}

/* ---------------------------------------------------------
   Tablet
   --------------------------------------------------------- */

@media (max-width: 991.98px) {
    .landing-hero h1 {
        max-width: none;
    }

    .landing-hero .lead {
        max-width: none;
    }

    .section-type-checklist .col-lg-9,
    .landing-section-warning .col-lg-9,
    .section-type-warning .col-lg-9 {
        padding: 1.75rem;
    }
}

/* ---------------------------------------------------------
   Mobile
   --------------------------------------------------------- */

@media (max-width: 767.98px) {
    .landing-breadcrumbs {
        padding-top: .75rem !important;
        padding-bottom: .75rem !important;
    }

    .landing-breadcrumbs .breadcrumb {
        font-size: .84rem;
    }

    .landing-hero,
    .landing-intro,
    .landing-features,
    .landing-problems,
    .landing-section,
    .landing-brands,
    .landing-faq,
    .landing-related {
        padding-top: 3.25rem !important;
        padding-bottom: 3.25rem !important;
    }

    .landing-hero {
        padding-top: 3.5rem !important;
    }

    .landing-hero h1 {
        font-size: clamp(2.2rem, 10vw, 3rem);
        line-height: 1.08;
    }

    .landing-hero .lead {
        font-size: 1.08rem;
    }

    .landing-hero .btn-lg {
        width: 100%;
    }

    .landing-hero .d-flex.flex-column.flex-sm-row .small {
        display: block;
        width: 100%;
        text-align: center;
    }

    .landing-features .text-center.mb-5,
    .landing-problems .text-center.mb-5,
    .landing-faq .text-center.mb-5 {
        margin-bottom: 2rem !important;
    }

    .section-type-checklist .col-lg-9,
    .landing-section-warning .col-lg-9,
    .section-type-warning .col-lg-9 {
        border-radius: 18px;
        padding: 1.4rem 1.25rem;
    }

    .layout-twocolumnlist .section-content ul {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .layout-numberedsteps .section-content ol > li {
        padding-left: 3.55rem;
    }

    .brand-chip {
        padding: .6rem .9rem !important;
        font-size: .92rem;
    }

    .landing-faq .accordion-button {
        padding: 1rem;
        font-size: .98rem;
    }

    .landing-faq .accordion-body {
        padding: 1rem;
    }
}

/* ---------------------------------------------------------
   Very small screens
   --------------------------------------------------------- */

@media (max-width: 575.98px) {
    .landing-hero .badge {
        font-size: .76rem;
    }

    .landing-intro .col-lg-9 {
        font-size: 1rem;
    }

    .feature-icon {
        width: 46px;
        height: 46px;
        border-radius: 15px;
        font-size: 1.18rem;
    }

    .problem-card {
        padding: 1.25rem !important;
    }

    .landing-section h2 {
        font-size: 1.7rem;
    }

    .layout-numberedsteps .section-content ol > li::before {
        width: 2.45rem;
        height: 2.45rem;
    }

    .layout-numberedsteps .section-content ol > li:not(:last-child)::after {
        left: 1.2rem;
    }
}

/* ---------------------------------------------------------
   Reduced motion
   --------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
    .landing-features .card,
    .problem-card,
    .related-service-link,
    .landing-hero .btn,
    .landing-section .btn {
        transition: none;
    }

    .landing-features .card:hover,
    .problem-card:hover,
    .related-service-link:hover,
    .landing-hero .btn:hover,
    .landing-section .btn:hover {
        transform: none;
    }
}
