/********** Template CSS **********/
:root {
    --primary: #355EFC;
    --secondary: #E93C05;
    --tertiary: #555555;
    --light: #DFE4FD;
    --dark: #011A41;
}

body {
    background: linear-gradient(180deg, #f8faff 0%, #ffffff 100%);
    color: var(--dark);
}

.btn-primary {
    box-shadow: 0 12px 24px rgba(53, 94, 252, 0.18);
}

.btn-primary:hover {
    box-shadow: 0 18px 28px rgba(53, 94, 252, 0.22);
}

.back-to-top {
    position: fixed;
    display: none;
    right: 24px;
    bottom: 24px;
    z-index: 99;
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 50%;
    box-shadow: 0 10px 20px rgba(53, 94, 252, 0.18);
}

.back-to-top i {
    font-size: 1rem;
}

.site-contact-link {
    color: inherit;
    text-decoration: none;
}

.site-contact-link:hover {
    color: var(--primary);
}

.whatsapp-float {
    position: fixed;
    right: 24px;
    bottom: 82px;
    z-index: 100;
    display: grid;
    width: 54px;
    height: 54px;
    place-items: center;
    border-radius: 50%;
    background: #25D366;
    color: #fff;
    box-shadow: 0 8px 22px rgba(18, 140, 72, 0.3);
    font-size: 1.7rem;
    text-decoration: none;
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.whatsapp-float:hover {
    transform: translateY(-2px);
    color: #fff;
    box-shadow: 0 12px 26px rgba(18, 140, 72, 0.38);
}

.whatsapp-float:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 3px;
}

h1,
.h1,
h2,
.h2,
.fw-bold {
    font-weight: 700 !important;
}

h3,
.h3,
h4,
.h4,
.fw-medium {
    font-weight: 600 !important;
}

h5,
.h5,
h6,
.h6,
.fw-semi-bold {
    font-weight: 500 !important;
}


/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}


/*** Button ***/
.btn {
    transition: .5s;
    font-weight: 500;
}

.btn-primary,
.btn-outline-primary:hover {
    color: var(--light);
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}


/*** Navbar ***/
.fixed-top {
    transition: .5s;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 18px rgba(17, 27, 53, 0.08);
}

.top-bar {
    height: 45px;
    border-bottom: 1px solid rgba(53, 94, 252, .07);
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

.navbar .navbar-nav .nav-link {
    padding: 25px 15px;
    color: var(--tertiary);
    font-weight: 500;
    outline: none;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--primary);
}

.capitalvia-logo {
    display: block;
    width: 168px;
    height: auto;
}

@media (max-width: 991.98px) {
    .navbar .navbar-nav {
        margin-top: 10px;
        border-top: 1px solid rgba(0, 0, 0, .07);
        background: #FFFFFF;
    }

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

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        visibility: hidden;
        top: 100%;
        transform: rotateX(-75deg);
        transform-origin: 0% 0%;
        transition: .5s;
        opacity: 0;
    }

    .navbar .nav-item:hover .dropdown-menu {
        transform: rotateX(0deg);
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}


/*** Header ***/
.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: start;
    z-index: 1;
}

.carousel-control-prev,
.carousel-control-next {
    width: 3rem;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
    background-color: var(--primary);
    border: 10px solid var(--primary);
}

.carousel-control-prev-icon {
    border-radius: 0 3rem 3rem 0;
}

.carousel-control-next-icon {
    border-radius: 3rem 0 0 3rem;
}

@media (max-width: 768px) {
    #header-carousel .carousel-item {
        position: relative;
        min-height: 420px;
    }
    
    #header-carousel .carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .carousel-caption {
        padding: 0 1rem;
        align-items: flex-end;
        padding-bottom: 2rem;
    }

    .carousel-caption .container {
        max-width: 100%;
        padding: 0;
    }

    .carousel-caption .row {
        margin: 0;
    }

    .carousel-caption .col-lg-8,
    .carousel-caption .col-lg-7 {
        width: 100%;
        max-width: 100%;
        flex: 0 0 100%;
    }

    .carousel-caption .display-1 {
        font-size: 2.5rem !important;
        line-height: 1.08;
        letter-spacing: -0.04em;
    }

    .carousel-caption .btn {
        width: auto;
        min-width: 200px;
        padding: 0.8rem 1.4rem !important;
    }

    .navbar-brand {
        margin-left: 0 !important;
    }

    .capitalvia-logo {
        width: 148px;
    }

    .navbar-toggler {
        margin-right: 0 !important;
    }

    .top-bar {
        display: none !important;
    }

    .page-header {
        padding-top: 8rem;
        padding-bottom: 4rem;
    }

    .footer .row,
    .copyright .row {
        text-align: center;
    }
}

@media (max-width: 575.98px) {
    .container,
    .container-fluid {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .display-5 {
        font-size: 2rem !important;
    }

    .display-3 {
        font-size: 2.3rem !important;
    }

    .btn {
        width: 100%;
    }

    .navbar .navbar-nav {
        padding: 0.5rem 0.75rem !important;
    }

    .carousel-caption {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    .carousel-caption .display-1 {
        font-size: 2rem !important;
    }

    .nav-tabs {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .nav-tabs .nav-link {
        flex: 1 1 calc(33.333% - 0.5rem);
        min-width: 0;
        white-space: normal;
        text-align: center;
        font-size: 0.8rem;
        padding: 0.65rem 0.5rem;
    }

}

.page-header {
    padding-top: 12rem;
    padding-bottom: 6rem;
    background: url(../img/header.jpg) top left no-repeat;
    background-size: cover;
}

.page-header .breadcrumb-item,
.page-header .breadcrumb-item a {
    font-weight: 500;
}

.page-header .breadcrumb-item+.breadcrumb-item::before {
    color: var(--tertiary);
}


/*** Facts ***/
.facts {
    background: linear-gradient(rgba(53, 94, 252, .95), rgba(53, 94, 252, .95)), url(../img/bg.png);
}


/*** Callback ***/
.callback {
    position: relative;
}

.callback::before {
    position: absolute;
    content: "";
    width: 100%;
    height: 50%;
    top: 0;
    left: 0;
    background: linear-gradient(rgba(53, 94, 252, .95), rgba(53, 94, 252, .95)), url(../img/bg.png);
    z-index: -1;
}


/*** Feature ***/
.feature .feature-box,
.feature .feature-box * {
    transition: .5s;
}

.feature .feature-box:hover {
    background: var(--primary);
    border-color: var(--primary) !important;
}

.feature .feature-box:hover * {
    color: #FFFFFF !important;
}


/*** Service ***/
.service .nav .nav-link {
    transition: .5s;
}

.service .nav .nav-link.active {
    border-color: var(--primary) !important;
    background: var(--primary);
}

.service .nav .nav-link.active h5 {
    color: #FFFFFF !important;
}

.service .nav .nav-link.active h5 i {
    color: #FFFFFF !important;
}


/*** Project ***/
.project-item,
.project-item .project-img {
    position: relative;
}

.project-item .project-img a {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(255, 255, 255, .5);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    opacity: 0;
    transition: .5s;
}

.project-item:hover .project-img a {
    opacity: 1;
}

.project-item .project-title {
    position: absolute;
    top: 3rem;
    right: 0;
    bottom: 0;
    left: 3rem;
    border: 1px solid var(--light);
    border-radius: 8px;
    display: flex;
    align-items: flex-end;
    padding: 18px;
    z-index: -1;
    transition: .5s;
}

.project-item:hover .project-title {
    background: var(--primary);
    border-color: var(--primary);
}

.project-item .project-title h4 {
    transition: .5s;
}

.project-item:hover .project-title h4 {
    color: #FFFFFF;
}

.project-carousel .owl-nav {
    margin-top: 25px;
    display: flex;
    justify-content: center;
}

.project-carousel .owl-nav .owl-prev,
.project-carousel .owl-nav .owl-next {
    margin: 0 12px;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    background: var(--light);
    border-radius: 45px;
    font-size: 22px;
    transition: .5s;
}

.project-carousel .owl-nav .owl-prev:hover,
.project-carousel .owl-nav .owl-next:hover {
    background: var(--primary);
    color: var(--light);
}


/*** Team ***/
.team-item {
    position: relative;
    padding: 4rem 0;
}

.team-item img {
    position: relative;
    z-index: 2;
}

.team-item .team-text {
    position: absolute;
    top: 0;
    right: 3rem;
    bottom: 0;
    left: 3rem;
    padding: 15px;
    border: 1px solid var(--light);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    transition: .5s;
    z-index: 1;
}

.team-item:hover .team-text {
    background: var(--primary);
    border-color: var(--primary);
}

.team-item .team-text h4 {
    transition: .5s;
}

.team-item:hover .team-text h4 {
    color: #FFFFFF;
}

.team-item .team-social .btn {
    background: var(--light);
    color: var(--primary);
}

.team-item:hover .team-social .btn {
    background: #FFFFFF;
}

.team-item .team-social .btn:hover {
    background: var(--primary);
    color: var(--light);
}


/*** Testimonial ***/
.testimonial-item {
    position: relative;
    text-align: center;
    padding-top: 30px;
}

.testimonial-item .testimonial-text {
    position: relative;
    text-align: center;
}

.testimonial-item .testimonial-text .btn-square {
    position: absolute;
    width: 60px;
    height: 60px;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
}

.testimonial-item .testimonial-text::before {
    position: absolute;
    content: "";
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    border: 30px solid;
    border-color: var(--light) transparent transparent transparent;
}

.testimonial-item .testimonial-text::after {
    position: absolute;
    content: "";
    bottom: -59px;
    left: 50%;
    transform: translateX(-50%);
    border: 30px solid;
    border-color: #FFFFFF transparent transparent transparent;
}

.testimonial-carousel .owl-item img {
    margin: 0 auto;
    width: 100px;
    height: 100px;
}

.testimonial-carousel .owl-dots {
    margin-top: 25px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.testimonial-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 30px;
    height: 30px;
    border: 1px solid var(--light);
    border-radius: 30px;
    transition: .5s;
}

.testimonial-carousel .owl-dot::after {
    position: absolute;
    content: "";
    width: 16px;
    height: 16px;
    top: 6px;
    left: 6px;
    border-radius: 16px;
    background: var(--light);
    transition: .5s;
}

.testimonial-carousel .owl-dot.active {
    border-color: var(--primary);
}

.testimonial-carousel .owl-dot.active::after {
    background: var(--primary);
}


/*** Footer ***/
.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: var(--light);
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    color: var(--primary);
    letter-spacing: 1px;
    box-shadow: none;
}

.copyright {
    color: var(--light);
    background: #000B1C;
}

.copyright a {
    color: var(--light);
}

.copyright a:hover {
    color: var(--primary);
}

:root {
    --ink: #111b35;
    --muted: #58647a;
    --offer: #f3bd55;
    --surface: #f5f7fc;
}

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
    color: var(--ink);
}

.section-space {
    padding: 5.5rem 0;
}

.section-heading {
    max-width: 720px;
    margin: 0 auto 2.5rem;
    text-align: center;
}

.section-heading h2,
.instant-credit h2,
.project-estimator h2 {
    color: var(--ink);
    font-size: 2.6rem;
    line-height: 1.12;
}

.section-heading > p:last-child {
    max-width: 620px;
    margin: 1rem auto 0;
    color: var(--muted);
}

.section-eyebrow {
    margin-bottom: 0.65rem;
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

#header-carousel .carousel-item {
    position: relative;
    min-height: 680px;
    overflow: hidden;
}

#header-carousel .carousel-item > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#header-carousel .carousel-item::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(8, 18, 43, 0.82) 0%, rgba(8, 18, 43, 0.52) 52%, rgba(8, 18, 43, 0.08) 100%);
    content: "";
}

#header-carousel .carousel-caption {
    z-index: 2;
    padding-top: 7rem;
    padding-bottom: 3rem;
}

#header-carousel .carousel-caption .container {
    max-width: 1320px;
}

#header-carousel .carousel-caption .col-lg-8,
#header-carousel .carousel-caption .col-lg-7 {
    max-width: 720px;
}

#header-carousel .carousel-caption h1 {
    max-width: 740px;
    color: #fff;
    font-size: 4rem;
    line-height: 1.04;
}

#header-carousel .carousel-caption > .container p.d-inline-block {
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.45) !important;
}

.hero-offer {
    width: min(100%, 360px);
    max-width: 100%;
    margin: 0 0 1.3rem;
    padding: 0.9rem 1.2rem 0.85rem;
    border-left: 6px solid #fff;
    background: var(--offer);
    color: var(--ink);
}

.hero-offer-label {
    color: var(--ink);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.hero-offer-value {
    margin: 0.05rem 0 0;
    color: var(--ink);
    font-size: 1rem;
}

.hero-offer-value strong {
    color: var(--ink);
    font-size: 4.25rem;
    line-height: 1;
}

.hero-offer-link {
    color: var(--ink);
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.instant-credit {
    padding: 2.25rem 0;
    background: var(--ink);
    color: #fff;
}

.instant-credit-inner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 1.5rem;
    align-items: center;
}

.instant-credit-icon,
.credit-benefit-icon {
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    border-radius: 50%;
    background: rgba(53, 94, 252, 0.14);
    color: var(--primary);
    font-size: 1.5rem;
}

.instant-credit .section-eyebrow {
    color: #aebfff;
}

.instant-credit h2 {
    margin-bottom: 0.45rem;
    color: #fff;
    font-size: 1.75rem;
}

.instant-credit-copy > p:not(.section-eyebrow) {
    margin-bottom: 0.45rem;
    color: #e1e7f4;
}

.offer-conditions {
    max-width: 860px;
    font-size: 0.75rem;
    line-height: 1.5;
    color: #b6c0d3 !important;
}

.instant-credit-cta {
    width: auto;
    white-space: nowrap;
    color: var(--ink);
}

.life-projects {
    background: #fff;
}

.life-project-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
}

.life-project-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #e5e9f1;
    border-radius: 8px;
    background: #fff;
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.life-project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(17, 27, 53, 0.1);
}

.life-project-card > img {
    display: block;
    width: 100%;
    aspect-ratio: 1.55;
    object-fit: cover;
}

.life-project-card-content {
    padding: 1.25rem;
}

.life-project-icon {
    display: inline-grid;
    width: 42px;
    height: 42px;
    margin-bottom: 0.8rem;
    place-items: center;
    border-radius: 6px;
    background: #edf1ff;
    color: var(--primary);
    font-size: 1.2rem;
}

.life-project-card h3 {
    margin-bottom: 0.55rem;
    color: var(--ink);
    font-size: 1.2rem;
}

.life-project-card p {
    min-height: 4.4em;
    margin-bottom: 1rem;
    color: var(--muted);
    font-size: 0.92rem;
}

.life-project-card a {
    color: var(--primary);
    font-weight: 700;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.55rem;
    margin-top: 1.75rem;
}

.project-tags span {
    padding: 0.45rem 0.8rem;
    border: 1px solid #dce2ed;
    border-radius: 999px;
    color: #33415e;
    font-size: 0.83rem;
}

.project-estimator {
    padding: 4.5rem 0;
    background: var(--surface);
}

.project-estimator-inner {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(2rem, 6vw, 6rem);
    align-items: center;
}

.project-estimator-copy p:not(.section-eyebrow) {
    max-width: 500px;
    color: var(--muted);
}

.project-estimator-copy .estimator-note {
    margin-top: 1.4rem;
    font-size: 0.8rem;
}

.estimator-controls {
    padding: clamp(1.25rem, 4vw, 2.5rem);
    border: 1px solid #e1e6ef;
    border-radius: 8px;
    background: #fff;
}

.estimator-controls > label,
.amount-label-row label {
    display: block;
    margin-bottom: 0.55rem;
    color: var(--ink);
    font-weight: 700;
}

.estimator-label,
.project-picker-label {
    display: block;
    margin-bottom: 0.55rem;
    color: var(--ink);
    font-weight: 700;
}

.project-picker {
    width: 100%;
    min-width: 0;
    margin-bottom: 1.5rem;
}

.project-picker-details {
    width: 100%;
    min-width: 0;
}

.project-picker-trigger {
    display: flex;
    min-height: 52px;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border: 1px solid #ced4da;
    border-radius: 5px;
    background: #fff;
    color: var(--ink);
    cursor: pointer;
    list-style: none;
}

.project-picker-trigger::-webkit-details-marker {
    display: none;
}

.project-picker-trigger:focus-visible,
.project-picker-option:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.project-picker-trigger i {
    flex: 0 0 auto;
    color: var(--muted);
    transition: transform 160ms ease;
}

.project-picker-details[open] .project-picker-trigger i {
    transform: rotate(180deg);
}

.project-picker-options {
    display: flex;
    max-height: 220px;
    flex-direction: column;
    gap: 0.15rem;
    overflow-y: auto;
    margin-top: 0.45rem;
    padding: 0.35rem;
    border: 1px solid #dce2ed;
    border-radius: 5px;
    background: #fff;
    overscroll-behavior: contain;
}

.project-picker-option {
    display: block;
    flex: 0 0 auto;
    width: 100%;
    min-width: 0;
    padding: 0.65rem 0.75rem;
    border: 0;
    border-radius: 3px;
    background: transparent;
    color: var(--ink);
    text-align: left;
    white-space: normal;
    overflow-wrap: anywhere;
    cursor: pointer;
}

.project-picker-option:hover,
.project-picker-option[aria-pressed="true"] {
    background: #edf1ff;
    color: var(--primary);
}

.estimator-controls .form-select {
    min-height: 52px;
    margin-bottom: 1.5rem;
}

.amount-label-row,
.range-limits {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
}

.amount-label-row output {
    color: var(--primary);
    font-size: 1.3rem;
    font-weight: 700;
}

.estimator-controls .form-range {
    margin: 0.8rem 0 0.3rem;
}

.range-limits {
    margin-bottom: 1.5rem;
    color: var(--muted);
    font-size: 0.8rem;
}

.estimator-submit {
    width: 100%;
}

.credit-benefits {
    background: #fff;
}

.credit-benefit-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.credit-benefit {
    padding: 1.75rem;
    border: 1px solid #e5e9f1;
    border-radius: 8px;
    background: #f8f9fc;
}

.credit-benefit h3 {
    margin: 1rem 0 0.6rem;
    color: var(--ink);
    font-size: 1.35rem;
}

.credit-benefit p,
.credit-benefit-disclaimer {
    color: var(--muted);
}

.credit-benefit-disclaimer {
    margin: 1.2rem 0 0;
    font-size: 0.78rem;
}

@media (max-width: 991.98px) {
    #header-carousel .carousel-item {
        min-height: 640px;
    }

    .life-project-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .instant-credit-inner {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .instant-credit-cta {
        grid-column: 2;
        justify-self: start;
    }
}

@media (max-width: 767.98px) {
    .fixed-top {
        background: rgba(255, 255, 255, 0.98);
        box-shadow: 0 4px 18px rgba(17, 27, 53, 0.08);
    }

    .section-space {
        padding: 3.75rem 0;
    }

    #header-carousel .carousel-item {
        min-height: 760px;
    }

    #header-carousel .carousel-item::after {
        background: linear-gradient(180deg, rgba(8, 18, 43, 0.32), rgba(8, 18, 43, 0.88));
    }

    #header-carousel .carousel-caption {
        align-items: center;
        padding: 7rem 1.1rem 3rem;
    }

    #header-carousel .carousel-control-prev,
    #header-carousel .carousel-control-next {
        display: none;
    }

    #header-carousel .carousel-caption .container {
        width: 100%;
        padding: 0;
    }

    #header-carousel .carousel-caption .row {
        margin: 0;
    }

    #header-carousel .carousel-caption .col-lg-8,
    #header-carousel .carousel-caption .col-lg-7 {
        width: 100%;
        max-width: 100%;
        padding: 0;
    }

    #header-carousel .carousel-caption h1 {
        font-size: 3rem;
    }

    .section-heading h2,
    .project-estimator h2 {
        font-size: 2.1rem;
    }

    .hero-offer {
        width: min(100%, 320px);
        margin-bottom: 1rem;
    }

    .hero-offer-value strong {
        font-size: 3.6rem;
    }

    .project-estimator-inner {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .credit-benefit-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    #header-carousel .carousel-item {
        min-height: 780px;
    }

    #header-carousel .carousel-caption {
        padding-right: 0.75rem;
        padding-left: 0.75rem;
    }

    #header-carousel .carousel-caption .display-1 {
        font-size: 2.35rem !important;
        line-height: 1.08;
    }

    #header-carousel .carousel-caption .btn {
        width: auto;
        max-width: 100%;
        white-space: normal;
    }

    .life-project-grid {
        grid-template-columns: 1fr;
    }

    .life-project-card > img {
        aspect-ratio: 1.7;
    }

    .life-project-card p {
        min-height: 0;
    }

    .instant-credit-inner {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }

    .instant-credit-cta {
        grid-column: 1;
        width: 100%;
        justify-self: stretch;
    }

    .amount-label-row output {
        font-size: 1.15rem;
        white-space: nowrap;
    }

    .back-to-top {
        width: 44px;
        height: 44px;
        right: 16px;
        bottom: 16px;
    }

    .whatsapp-float {
        right: 16px;
        bottom: 72px;
        width: 50px;
        height: 50px;
    }

    .footer .d-flex.pt-2 {
        justify-content: center;
        gap: 0.5rem;
    }

    .footer .d-flex.pt-2 .btn-square {
        flex: 0 0 38px;
        width: 38px;
        min-width: 38px;
        height: 38px;
        margin: 0 !important;
    }

    .team-item {
        display: flex;
        flex-direction: column;
        overflow: hidden;
        padding: 0;
        border: 1px solid #e5e9f1;
        border-radius: 8px;
        background: #fff;
    }

    .team-item img {
        display: block;
        width: 100%;
        aspect-ratio: 4 / 3;
        object-fit: cover;
        z-index: auto;
    }

    .team-item .team-text {
        position: relative;
        inset: auto;
        min-height: 0;
        padding: 1.25rem;
        border: 0;
        border-radius: 0;
        background: #fff;
        z-index: auto;
        justify-content: center;
        gap: 0.35rem;
    }

    .team-item .team-text h4,
    .team-item .team-text p {
        margin: 0;
    }

    .team-item .team-social {
        justify-content: center;
        gap: 0.5rem;
        margin-top: 0.75rem;
    }

    .team-item .team-social .btn {
        display: inline-flex;
        flex: 0 0 40px;
        width: 40px;
        min-width: 40px;
        height: 40px;
        margin: 0 !important;
        padding: 0;
        border-radius: 50%;
    }

    .team-item:hover .team-text {
        border-color: transparent;
        background: #fff;
    }

    .team-item:hover .team-text h4 {
        color: var(--ink);
    }

    .team-item:hover .team-social .btn {
        background: var(--light);
        color: var(--primary);
    }

    .footer .position-relative.w-100 {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
    }

    .footer .position-relative.w-100 .form-control {
        height: 50px;
        padding-right: 1rem !important;
        border-radius: 4px;
    }

    .footer .position-relative.w-100 .btn {
        position: static !important;
        width: 100%;
        margin: 0 !important;
        padding: 0.8rem 1rem !important;
        border-radius: 4px;
    }
}