/*==========================================================
    HOME PAGE LAYOUT
    Loaded after style.css / responsive.css on the home page
    only. One spacing scale for every section so the page
    reads as one rhythm instead of 100px + 100px stacks.
============================================================*/
:root {
    --brand: #7202bb;
    --brand-2: #3264f5;
    --ink: #081d43;
    --muted: #6c757d;
    --line: #ebebeb;
    --surface: #ffffff;
    --surface-alt: #f7f8fb;
    --radius: 14px;
    --shadow: 0 10px 30px rgba(8, 29, 67, .08);
    --section-y: 88px;
    --heading-gap: 44px;
    --nav-h: 76px;
}

@media (max-width: 991px) {
    :root {
        --section-y: 64px;
        --heading-gap: 36px;
        --nav-h: 66px;
    }
}

@media (max-width: 575px) {
    :root {
        --section-y: 48px;
        --heading-gap: 28px;
    }
}

html {
    scroll-padding-top: var(--nav-h);
}

.home-page {
    overflow-x: hidden;
}

/* responsive.css adds a 20px !important gap under every column on phones,
   which doubles up with the gaps below. Spacing is handled per section. */
.home-page .row > div[class*='col-']:not(:last-of-type) {
    margin-bottom: 0 !important;
}

/*---------- Section rhythm ----------*/
.section-space {
    padding-top: var(--section-y);
    padding-bottom: var(--section-y);
}

.home-page .gray-light-bg {
    background: var(--surface-alt);
}

.home-page .section-heading {
    margin-bottom: var(--heading-gap);
}

.home-page .section-heading h2 {
    margin-bottom: 12px;
}

.home-page .section-heading .lead,
.home-page .section-heading p:last-child {
    margin-bottom: 0;
}

.home-page .lead {
    font-size: 1.075rem;
    line-height: 1.7;
}

/*---------- Navbar ----------*/
.home-page .header nav.navbar {
    padding-top: 14px;
    padding-bottom: 14px;
}

.home-page .header nav.navbar.affix {
    padding-top: 8px;
    padding-bottom: 8px;
    box-shadow: 0 6px 20px rgba(8, 29, 67, .15);
}

.home-page .navbar-brand {
    margin: 0;
    padding: 0;
}

.home-page .navbar-brand img {
    display: block;
    width: auto;
    height: 52px;
    transition: height .3s ease;
}

.home-page .navbar.affix .navbar-brand img {
    height: 44px;
}

.home-page .navbar-nav .nav-link {
    color: rgba(255, 255, 255, .85);
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 14px;
    transition: color .2s ease;
}

.home-page .navbar-nav .nav-link:hover,
.home-page .navbar-nav .nav-link:focus {
    color: #ffffff;
}

.home-page .navbar-toggler {
    border: 1px solid rgba(255, 255, 255, .4);
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 18px;
}

@media (max-width: 991px) {
    .home-page .header nav.navbar {
        padding: 10px 16px !important;
    }

    .home-page .navbar-collapse {
        margin-top: 10px;
        padding: 8px 0 12px;
        border-top: 1px solid rgba(255, 255, 255, .2);
    }

    .home-page .navbar-nav .nav-link {
        padding: 10px 0;
    }

    .home-page .navbar-brand img,
    .home-page .navbar.affix .navbar-brand img {
        height: 42px;
    }
}

/*---------- Hero ----------*/
.home-page .hero-equal-height {
    min-height: 0;
    padding-top: calc(var(--nav-h) + 48px);
    padding-bottom: 110px;
}

.home-page .hero-content-left h1 {
    font-size: 2.75rem;
    line-height: 1.2;
    margin-bottom: 18px;
}

.home-page .hero-content-left .lead {
    opacity: .92;
    margin-bottom: 28px;
    max-width: 540px;
}

.home-page .hero-img-right img {
    max-height: 560px;
}

@media (max-width: 991px) {
    .home-page .hero-content-left h1 {
        font-size: 2.25rem;
    }
}

@media (max-width: 767px) {
    .home-page .hero-equal-height {
        padding-top: calc(var(--nav-h) + 32px);
        padding-bottom: 80px;
        text-align: center;
    }

    .home-page .hero-content-left {
        padding-top: 0;
        margin: 0 0 32px !important;
    }

    .home-page .hero-content-left .lead {
        margin-left: auto;
        margin-right: auto;
    }

    .home-page .hero-img-right img {
        max-height: 380px;
    }
}

@media (max-width: 575px) {
    .home-page .hero-content-left h1 {
        font-size: 1.9rem;
    }
}

/*---------- About ----------*/
.home-page .about-img {
    max-width: 520px;
    margin: 0 auto;
}

.home-page .about-img img {
    border-radius: var(--radius);
}

.home-page .promo-content-wrap h2 {
    margin-bottom: 16px;
}

.home-page .promo-content-wrap .lead {
    margin-bottom: 28px;
}

@media (max-width: 767px) {
    .home-page .about-img {
        max-width: 420px;
        margin-bottom: 32px;
    }

    .home-page .promo-content-wrap {
        text-align: center;
    }
}

/*---------- Features ----------*/
.home-page .work-process-wrap {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

.home-page .single-work-process {
    float: none;
    width: auto;
    margin: 0;
    padding: 28px 24px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    transition: transform .25s ease, box-shadow .25s ease;
}

.home-page .single-work-process:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.home-page .work-process-icon-wrap {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(114, 2, 187, .08);
    border-radius: 12px !important;
    margin-bottom: 18px;
}

.home-page .work-process-icon-wrap img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.home-page .work-process-content h5 {
    font-size: 1.05rem;
    line-height: 1.4;
    margin-bottom: 10px;
}

.home-page .work-process-content p {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.65;
}

@media (max-width: 991px) {
    .home-page .work-process-wrap {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }
}

@media (max-width: 575px) {
    .home-page .work-process-wrap {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }

    .home-page .single-work-process {
        text-align: left;
        padding: 22px 20px;
    }
}

/*---------- Screenshots ----------*/
.home-page .screen-carousel .owl-dots {
    margin-top: 24px !important;
}

@media (max-width: 767px) {
    .home-page .screen-carousel .owl-item img {
        max-width: 260px;
        margin: 0 auto;
    }
}

/*---------- Download ----------*/
.home-page .download-btn {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.home-page .download-btn a {
    display: inline-block;
    transition: transform .2s ease;
}

.home-page .download-btn a:hover {
    transform: translateY(-3px);
}

.home-page .download-btn img {
    max-width: 160px;
    height: auto;
}

/*---------- Testimonials ----------*/
.home-page .testimonial-single {
    border-radius: var(--radius) !important;
}

/*---------- FAQ ----------*/
.home-page #accordion .card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    margin-bottom: 12px !important;
    overflow: hidden;
}

.home-page #accordion .card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    border-bottom: 0;
    color: var(--ink);
}

.home-page #accordion .card-header h6 {
    line-height: 1.5;
}

.home-page #accordion .card-header:after {
    float: none;
    flex-shrink: 0;
    color: var(--brand);
    font-size: 12px;
}

.home-page #accordion .card-body {
    padding: 0 20px 18px;
}

.home-page #accordion .card-body p {
    margin-bottom: 0;
    color: var(--muted);
}

.home-page .faq-img {
    max-width: 440px;
    margin: 0 auto;
}

@media (max-width: 767px) {
    /* Decorative only, and the question list is already long on phones. */
    .home-page .faq-img {
        display: none;
    }
}

/*---------- Contact ----------*/
.home-page .contact-us-section {
    background: var(--surface-alt);
}

.home-page .contact-card {
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 40px;
}

.home-page .contact-card h4 {
    margin-bottom: 8px;
}

.home-page .contact-card > p {
    color: var(--muted);
    margin-bottom: 24px;
}

.home-page .contact-card .form-group {
    margin-bottom: 16px;
}

.home-page .contact-card .form-control {
    height: auto;
    padding: 12px 16px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface-alt);
}

.home-page .contact-card .form-control:focus {
    background: var(--surface);
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(114, 2, 187, .12);
}

.home-page .contact-info h4 {
    margin-bottom: 8px;
}

.home-page .contact-info > p {
    color: var(--muted);
    margin-bottom: 28px;
}

.home-page .contact-info-list {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
}

.home-page .contact-info-list li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 20px;
}

.home-page .contact-info-list li:last-child {
    margin-bottom: 0;
}

.home-page .contact-info-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(114, 2, 187, .08);
    color: var(--brand);
    font-size: 18px;
}

.home-page .contact-info-list h6 {
    margin-bottom: 2px;
    font-size: 14px;
}

.home-page .contact-info-list address,
.home-page .contact-info-list a {
    margin: 0;
    color: var(--muted);
    word-break: break-word;
}

.home-page .contact-info-list a:hover {
    color: var(--brand);
}

.home-page .social-list li span {
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
}

@media (max-width: 767px) {
    .home-page .contact-card {
        padding: 28px 20px;
    }

    .home-page .contact-info {
        margin-top: 40px;
    }
}

/*---------- Footer ----------*/
.home-page .site-footer {
    background: var(--ink);
    color: rgba(255, 255, 255, .7);
    padding: 24px 0;
    font-size: 14px;
}

.home-page .site-footer p {
    margin: 0;
    color: inherit;
}

.home-page .footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px 22px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.home-page .footer-links a {
    color: rgba(255, 255, 255, .7);
}

.home-page .footer-links a:hover {
    color: #ffffff;
    text-decoration: none;
}

/* Keep the footer links clear of the fixed back-to-top button. */
@media (min-width: 768px) {
    .home-page .footer-links {
        padding-right: 64px;
    }
}

@media (max-width: 767px) {
    .home-page .scroll-top {
        right: 16px;
    }

    .home-page .scroll-top.open {
        bottom: 16px;
    }

    .home-page .site-footer {
        text-align: center;
        padding-bottom: 72px;
    }

    .home-page .footer-links {
        justify-content: center;
        margin-top: 12px;
    }
}
