/* ==========================================================================
   HOMEPAGE CSS - NON-CRITICAL STYLES
   ========================================================================== */

/* ==========================================================================
   Partners Section
   ========================================================================== */

.partners {
    position: relative;
    z-index: 0;
}

.partners .partner-logos {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 1rem;
    backdrop-filter: blur(10px);
    background: rgba(255,255,255,0.9);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 999px;
    padding: 1.25rem 1.25rem;
    justify-content: center;
}

.partners .partner-logos .logo {
    padding: 0.5625rem 0;
    text-align: center;
    height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.partners .partner-logos .logo img {
    max-height: 11px;
}

.partners .partner-logos .logo:first-of-type img {
    max-height: 19px;
}


/* ==========================================================================
   Agent Section
   ========================================================================== */

.agent-section {
    max-width: 1200px;
    margin: 0 auto;
    background: #fff;
    border-radius: 16px;
}

.agent-card {
    background-image: url(/revamp/images/callcenter-blurred.webp);
    background-repeat: no-repeat;
    background-size: 100%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    min-height: auto;
    position: relative;
}

.agent-card .agent-image {
    width: 100%;
    z-index: 1;
}

.agent-card .agent-image .desktop-image {
    display: none;
    margin-top: -35px;
}

.agent-card .agent-image .mobile-image {
    display: block;
    position: absolute;
    bottom: -9px;
}

.agent-card .agent-content {
    padding: 1.25rem 0.6875rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    width: 210%;
    max-width: 450px;
    right: 0;
    margin-left: auto;
    z-index: 1;
    overflow: hidden;
}

.agent-card .agent-content .contact-banner {
    background: var(--color-blue);
    color: white;
    padding: 0.625rem 3.75rem 0.4375rem 1.125rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    text-align: center;
    margin-right: -40px;
    position: relative;
}

.agent-card .agent-content .contact-banner:after {
    content: '';
    width: 20px;
    height: 20px;
    display: block;
    position: absolute;
    background-image: url(/revamp/images/ribbon-piece.svg);
    right: -3px;
    background-repeat: no-repeat;
    bottom: -14px;
    z-index: -1;
}

.agent-card .agent-content .contact-banner h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: #fff;
    line-height: 1;
    display: block;
}

.agent-card .agent-content .contact-banner h2 span {
    display: block;
    font-size: 1rem;
    color: #fff;
    font-weight: 400;
}

.agent-card .agent-content .phone-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    margin-top: -0.6875rem;
}

.agent-card .agent-content .phone-section .btn-outline {
    font-size: 1rem;
    padding: 0.6rem 1rem 0.6rem;
}

.agent-card .agent-content .phone-section .btn-outline .icon svg {
    width: 14px;
    height: 14px;
    margin-right: 0.375rem;
    position: relative;
    top: 2px;
}

.agent-card .agent-content .availability {
    margin-top: 0.375rem;
    text-align: center;
}

.agent-card .agent-content .availability .hours {
    font-size: 0.875rem;
    color: #898989;
    margin-bottom: 0.5rem;
}

.agent-card .agent-content .availability .status {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    font-weight: 500;
    gap: 0.5625rem;
    justify-content: center;
    margin-top: -0.6875rem;
}

.agent-card .agent-content .availability .status .status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--color-green);
    position: relative;
    box-shadow: 0 0 0 0 var(--color-green);
    animation: online-pulse 2s infinite;
}

.agent-card .agent-content .availability .status .status-dot.unavailable {
    background: #ef4444;
    outline: 7px solid #ef444485;
    animation: none;
    outline: none;
}

.agent-card .agent-content .availability .status .status-text {
    color: var(--color-text);
}

.agent-card .agent-content .availability .status .status-text.unavailable strong {
    color: #ef4444;
}

.agent-card .agent-content .availability .status strong {
    color: var(--color-green);
}

@keyframes online-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(142, 184, 74, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(142, 184, 74, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(142, 184, 74, 0);
    }
}

/* ==========================================================================
   Steps Section
   ========================================================================== */

.steps {
    padding: 3rem 0 1rem;
}

.steps .container {
    position: relative;
}

.steps h2 {
    text-align: center;
}

.steps .steps-grid {
    display: grid;
    gap: 2rem;
    margin-top: 2rem;
}

.steps .steps-grid .step {
    text-align: center;
    display: flex;
}

.steps .steps-grid .step .step-number {
    width: 48px;
    height: 48px;
    font-size: 1.4375rem;
    background: var(--color-green);
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-weight: 700;
}

.steps .steps-grid .step h3 {
    max-width: 280px;
    line-height: 1.1;
    margin: 0;
    text-align: left;
    font-size: 1.25rem;
}

.steps .steps-grid .step h3 span {
    font-weight: 600;
}

.steps .call-opt {
    text-align: center;
}

.steps .call-opt a {
    display: inline-block;
    margin: 1.875rem auto 0;
}

/* ==========================================================================
   Info Cards Section
   ========================================================================== */

.info-cards {
    padding: 3rem 0;
}

.info-cards a {
    text-decoration: none;
}

.info-cards h2 {
    text-align: center;
}

.info-cards .cards-grid {
    display: grid;
    gap: 1rem;
    margin-top: 2rem;
    grid-template-columns: 48% 48%;
}

.info-cards .cards-grid .card {
    padding: 1.5rem 1rem;
    border-radius: 8px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(white, white) padding-box,
    linear-gradient(180deg, var(--color-blue) 0%, var(--color-green) 70%) border-box;
    border: 0.22rem solid transparent;
    background-origin: border-box;
    background-clip: padding-box, border-box;
    background-size: 100% 200%;
    background-position: top center;
    transition: background-position 0.6s ease;
}

.info-cards .cards-grid .card a {
    width: 100%;
    display: block;
}

.info-cards .cards-grid .card img {
    transition: 0.4s all;
}

.info-cards .cards-grid .card:hover {
    background-position: bottom center;
}

.info-cards .cards-grid .card:hover .icon-bg {
    fill: #8EB84A;
}

.info-cards .cards-grid .card:hover .icon-check {
    fill: #6FAF38;
}

.info-cards .cards-grid .card:hover .small-btn img {
    transform: translate(4px, 0px);
}

.info-cards .cards-grid .icon {
    height: 46px;
    margin: 0 auto 1rem;
    width: 100%;
}

.info-cards .cards-grid .icon .icon-bg {
    transition: fill 0.3s ease;
    fill: #0076B6;
}

.info-cards .cards-grid .icon .icon-check {
    transition: fill 0.3s ease;
    fill: #0076B6;
}

.info-cards .cards-grid h3 {
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.info-cards .cards-grid .small-btn img {
    transition: 0.4s all;
}

/* ==========================================================================
   Matchmaker Section
   ========================================================================== */

.matchmaker {
    padding: 2rem 0 3rem;
}

.matchmaker .matchmaker-content {
    display: grid;
    gap: 2rem;
    align-items: center;
    background: #fff;
    padding: 2.5rem 1.4375rem;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
    border-radius: 20px;
}

.matchmaker .matchmaker-text {
    text-align: center;
}

.matchmaker .matchmaker-text h2 {
    margin-bottom: 1rem;
}

.matchmaker .matchmaker-text p {
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
    line-height: 1.2;
}

.matchmaker .matchmaker-text .wrap {
    display: block;
    text-align: center;
}

.matchmaker .matchmaker-text .wrap .btn-outline {
    margin-bottom: 0.9375rem;
}

.matchmaker .matchmaker-text .wrap .btn-outline svg {
    margin-left: 0.625rem;
    max-width: 16px;
    transition: 0.3s all;
}

.matchmaker .matchmaker-text .wrap .btn-outline svg path {
    transition: all 0.3s ease;
    fill: var(--color-blue);
}

.matchmaker .matchmaker-text .wrap .btn-outline:hover svg path {
    fill: #fff;
}

.matchmaker .matchmaker-image .image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.matchmaker .matchmaker-image .image img {
    width: 100%;
    max-width: 430px;
    border-radius: 20px;
    height: auto;
}

.matchmaker .call-cta {
    font-size: 1.125rem !important;
    margin-bottom: 0 !important;
}

.matchmaker .call-cta a {
    display: block;
    text-decoration: none;
    margin-top: 0.4375rem;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */

/* Mobile Specific (414px to 1024px) */
@media (min-width: 414px) and (max-width: 1024px) {
    .agent-card:after {
        content: '';
        background: #fff;
        display: block;
        width: 100%;
        position: absolute;
        height: 73px;
        bottom: 0;
        z-index: 0;
    }
}

/* Mobile Small (481px+) */
@media (min-width: 481px) {
    .agent-card .agent-content {
        padding: 1rem;
    }

    .agent-card .agent-content .phone-section {
        flex-direction: row;
        align-items: center;
        gap: 0.5rem;
    }
}

/* Mobile Very Small (max 413px) */
@media (max-width: 413px) {
    .agent-card .agent-image .mobile-image {
        left: -40px !important;
    }

    .agent-card .agent-content .contact-banner h2 {
        font-size: 1.125rem;
    }
}

/* Mobile Small (max 500px) */
@media (max-width: 500px) {
    .agent-card .agent-image .mobile-image {
        left: -15px;
    }
}

/* Mobile (max 767px) */
@media screen and (max-width: 767px) {
    .info-cards .cards-grid > .card:nth-child(3) {
        grid-column: 1 / -1;
    }
}

/* Tablet (768px+) */
@media (min-width: 768px) {
    .partners .partner-logos {
        grid-template-columns: repeat(4, 1fr);
    }

    .steps .steps-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .info-cards .cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop (1024px+) */
@media screen and (min-width: 1024px) {
    .partners .partner-logos {
        padding: 3.125rem 4.375rem;
    }

    .partners .partner-logos .logo {
        padding: 1rem;
    }

    .partners .partner-logos .logo img {
        max-height: 24px;
    }

    .partners .partner-logos .logo:first-of-type img {
        max-height: 36px;
    }

    .agent-card {
        flex-direction: row;
        align-items: center;
        min-height: 200px;
        background: url(/revamp/images/office-bg-blurred-desktop.png);
        background-repeat: no-repeat;
        border-radius: 16px;
    }

    .agent-card .agent-image {
        flex: 0 0 auto;
        width: 600px;
        padding-left: 190px;
        height: auto;
        margin-top: -52px;
        margin-bottom: -9px;
    }

    .agent-card .agent-image .desktop-image {
        display: block;
    }

    .agent-card .agent-image .mobile-image {
        display: none;
    }

    .agent-card .agent-content {
        flex: 1;
        padding: 1.5rem;
    }

    .agent-card .agent-content .contact-banner {
        padding: 1rem 1.5rem;
        margin-bottom: 1.25rem;
        margin-top: 3.8125rem;
    }

    .agent-card .agent-content .contact-banner h2 {
        font-size: 2.0625rem;
        text-align: right;
        padding-right: 1.1875rem;
    }

    .agent-card .agent-content .contact-banner h2 span {
        font-size: 2.0625rem;
    }

    .agent-card .agent-content .phone-section {
        position: relative;
        justify-content: end;
    }

    .agent-card .agent-content .phone-section .btn-outline {
        font-size: 1.25rem;
        padding: 0.9rem 1.5rem 0.9rem;
    }

    .agent-card .agent-content .phone-section .btn-outline .icon svg {
        width: 18px;
        height: 18px;
        top: 2px;
    }

    .agent-card .agent-content .availability {
        text-align: right;
        margin-top: 1.25rem;
    }

    .agent-card .agent-content .availability .status {
        font-size: 1.25rem;
        justify-content: end;
    }

    .agent-card .agent-content .availability .hours {
        font-size: 1.125rem;
    }

    .steps {
        padding: 6.5rem 0 4.5rem;
    }

    .steps h2 {
        font-size: 2.375rem;
    }

    .steps .steps-grid {
        margin: 3rem 2rem 1rem;
    }

    .steps .steps-grid .step {
        display: block;
    }

    .steps .steps-grid .step h3 {
        font-size: 1.5625rem;
        text-align: center;
        margin: 0 auto;
        padding-top: 1.25rem;
    }

    .steps .steps-grid .step .step-number {
        font-size: 2.5rem;
        width: 70px;
        height: 70px;
    }

    .info-cards h2 {
        font-size: 2.375rem;
    }

    .info-cards h3 {
        font-size: 1.4rem;
    }

    .matchmaker {
        padding: 3rem 0 5rem;
    }

    .matchmaker .matchmaker-content {
        grid-template-columns: 56% 41%;
    }

    .matchmaker .matchmaker-text {
        text-align: left;
        padding: 2.5rem 0 2.5rem 2.5rem;
    }

    .matchmaker .matchmaker-text h2 {
        font-size: 2.375rem;
    }

    .matchmaker .matchmaker-text p {
        font-size: 1.25rem;
        line-height: 1.4;
    }

    .matchmaker .matchmaker-text .wrap {
        text-align: left;
        display: flex;
    }

    .matchmaker .matchmaker-text .wrap .btn-outline {
        width: 660px;
        font-size: 1.375rem;
        margin-bottom: 0;
    }

    .matchmaker .matchmaker-image .image {
        padding-right: 2.5rem;
    }

    .matchmaker .call-cta {
        width: 730px;
        padding-left: 1.25rem;
    }

    .matchmaker .call-cta a {
        margin-top: 0;
    }
}

/* Large Desktop (1200px+) */
@media screen and (min-width: 1200px) {
    .agent-card .agent-content {
        overflow: visible;
    }

    .steps .step:nth-child(2) .step-number:before {
        content: '';
        width: 300px;
        display: block;
        height: 23px;
        background-image: url(/revamp/images/steps-line.svg);
        position: absolute;
        background-repeat: no-repeat;
        left: 300px;
    }

    .steps .step:nth-child(3) .step-number:before {
        content: '';
        width: 300px;
        display: block;
        height: 23px;
        background-image: url(/revamp/images/steps-line.svg);
        position: absolute;
        background-repeat: no-repeat;
        left: 680px;
    }


    .info-cards .cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .cta-section .cta-content {
        grid-template-columns: 1fr 1fr;
    }

    .footer-content {
        grid-template-columns: repeat(4, 1fr);
    }
}