﻿/*==================================================

    MONEY PLANT
    Responsive Stylesheet

===================================================*/

/*==========================================
1400px
==========================================*/

@media (max-width:1400px) {

    .container {
        width: min(1200px,94%);
    }

    .hero h1 {
        font-size: 64px;
    }
}

/*==========================================
1200px
==========================================*/

@media (max-width:1200px) {

    .hero-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .hero h1 {
        font-size: 56px;
    }

    .hero p {
        font-size: 17px;
        line-height: 32px;
    }

    .hero-card img {
        max-width: 520px;
    }

    .hero-stats {
        grid-template-columns: repeat(2,1fr);
    }
}

/*==========================================
992px
==========================================*/

@media (max-width:992px) {

    .header {
        padding: 16px 0;
    }

    .navbar {
        display: none;
    }

    .header-buttons {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    .logo img {
        height: 60px;
    }

    .hero {
        padding-top: 120px;
        padding-bottom: 80px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        order: 2;
    }

    .hero-image {
        order: 1;
    }

    .hero p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-services {
        justify-content: center;
    }

    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero-stats {
        margin-top: 30px;
        grid-template-columns: repeat(2,1fr);
    }

    .hero-card {
        max-width: 600px;
        margin: auto;
    }

    .coin {
        width: 65px;
    }

    .leaf {
        width: 60px;
    }
}

/*==========================================
768px
==========================================*/

@media (max-width:768px) {

    .hero {
        min-height: auto;
        padding-top: 110px;
        padding-bottom: 70px;
    }

        .hero h1 {
            font-size: 46px;
            line-height: 1.15;
        }

        .hero p {
            font-size: 16px;
            line-height: 30px;
        }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

        .hero-buttons .btn-primary,
        .hero-buttons .btn-outline {
            width: 260px;
        }

    .hero-stats {
        grid-template-columns: 1fr;
    }

    .stat-card {
        padding: 24px;
    }

        .stat-card h2 {
            font-size: 32px;
        }

    .hero-services {
        gap: 10px;
    }

        .hero-services span {
            font-size: 14px;
            padding: 9px 15px;
        }

    .coin {
        display: none;
    }
}

/*==========================================
576px
==========================================*/

@media (max-width:576px) {

    .container {
        width: 92%;
    }

    .header {
        padding: 14px 0;
    }

    .logo img {
        height: 52px;
    }

    .hero {
        padding-top: 95px;
    }

    .hero-badge {
        font-size: 13px;
        padding: 9px 16px;
    }

    .hero h1 {
        font-size: 38px;
    }

    .hero p {
        font-size: 15px;
        line-height: 28px;
    }

    .hero-card {
        padding: 12px;
        border-radius: 20px;
    }

        .hero-card img {
            border-radius: 12px;
        }

    .hero-buttons .btn-primary,
    .hero-buttons .btn-outline {
        width: 100%;
    }

    .stat-card {
        text-align: center;
    }

    .leaf {
        display: none;
    }
}

/*==========================================
420px
==========================================*/

@media (max-width:420px) {

    .hero h1 {
        font-size: 32px;
    }

    .hero p {
        font-size: 14px;
        line-height: 26px;
    }

    .hero-badge {
        font-size: 12px;
    }

    .hero-services {
        flex-direction: column;
        align-items: center;
    }

        .hero-services span {
            width: 100%;
            text-align: center;
        }
}

/*==========================================
Mobile Menu
==========================================*/

.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 300px;
    max-width: 84vw;
    height: 100vh;
    background: #0b220c;
    z-index: 999999;
    transition: transform .4s ease;
    padding: 100px 30px;
    box-shadow: -10px 0 30px rgba(0,0,0,.4);

    /* transform-based slide instead of animating "right" from -100% to 0.
       Percentage "right" offsets on a position:fixed element resolve
       against the containing block, which certain ancestor properties
       (overflow, filter, backdrop-filter, transform, will-change — even
       on an unrelated sibling in some browser engines) can quietly
       change, silently breaking the slide-in with no console error and
       no visual sign anything is wrong — matching exactly what's been
       happening. translateX doesn't depend on any of that: it moves the
       element by its OWN width, off the right edge, full stop. */
    transform: translateX(110%);
    pointer-events: none;
}

    .mobile-menu.active {
        transform: translateX(0);
        pointer-events: auto;
    }

    .mobile-menu ul {
        display: flex;
        flex-direction: column;
        gap: 25px;
    }

    .mobile-menu a {
        color: #fff;
        font-size: 18px;
        font-weight: 500;
        transition: .3s;
    }

        .mobile-menu a:hover {
            color: var(--secondary);
        }

    .mobile-menu-close {
        position: absolute;
        top: 24px;
        right: 24px;
        width: 36px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        background: rgba(255,255,255,.08);
        color: #fff;
        font-size: 18px;
        cursor: pointer;
        z-index: 2;
    }

        .mobile-menu-close:hover {
            background: rgba(255,255,255,.16);
        }

    .mobile-menu-auth {
        display: flex;
        flex-direction: column;
        gap: 14px;
        margin-top: 40px;
        padding-top: 30px;
        border-top: 1px solid rgba(255,255,255,.12);
    }

        .mobile-menu-auth .btn-outline,
        .mobile-menu-auth .btn-primary {
            width: 100%;
            text-align: center;
        }

/*==========================================
Overlay
==========================================*/

.mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    opacity: 0;
    visibility: hidden;
    transition: .35s;
    z-index: 999998;
    pointer-events: none;
}

    .mobile-overlay.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }


@media(max-width:992px) {

    .about-grid {
        grid-template-columns: 1fr;
    }

    .service-grid {
        grid-template-columns: 1fr;
    }

    .why-grid {
        grid-template-columns: repeat(2,1fr);
    }
}

@media(max-width:576px) {

    .why-grid {
        grid-template-columns: 1fr;
    }

    .section-title h2 {
        font-size: 34px;
    }

    .feature-box {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
}

@media(max-width:992px) {

    .calculator-wrapper {
        grid-template-columns: 1fr;
    }

    .result-box {
        grid-template-columns: 1fr;
    }
}

/*==========================================
BENEFITS RESPONSIVE
==========================================*/

@media(max-width:992px) {

    .benefits-grid {
        grid-template-columns: repeat(2,1fr);
    }
}

@media(max-width:576px) {

    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .benefit-card {
        padding: 32px 24px;
    }

    .benefit-icon {
        width: 72px;
        height: 72px;
        font-size: 34px;
    }
}

/*==========================================
STATISTICS RESPONSIVE
==========================================*/

@media(max-width:992px) {

    .statistics-grid {
        grid-template-columns: repeat(2,1fr);
    }
}

@media(max-width:576px) {

    .statistics-grid {
        grid-template-columns: 1fr;
    }

    .stat-icon {
        width: 72px;
        height: 72px;
        font-size: 34px;
    }

    .stat-card h2 {
        font-size: 40px;
    }
}

/*==========================================
TIMELINE RESPONSIVE
==========================================*/

@media(max-width:991px) {

    .timeline::before {
        left: 25px;
    }

    .timeline-item {
        width: 100%;
        left: 0 !important;
        padding-left: 70px;
        padding-right: 20px;
        margin-bottom: 40px;
    }

        .timeline-item::after {
            left: 14px !important;
        }
}

/*==========================================
GALLERY RESPONSIVE
==========================================*/

@media(max-width:991px) {

    .gallery-grid {
        grid-template-columns: repeat(2,1fr);
    }
}

@media(max-width:767px) {

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-item img {
        height: 260px;
    }
}


/*==========================================
TESTIMONIALS RESPONSIVE
==========================================*/

@media(max-width:991px) {

    .testimonial-slider {
        grid-template-columns: repeat(2,1fr);
    }
}

@media(max-width:767px) {

    .testimonial-slider {
        grid-template-columns: 1fr;
    }
}

/*==========================================
FAQ RESPONSIVE
==========================================*/

@media(max-width:768px) {

    .faq-question {
        font-size: 17px;
        padding: 22px;
    }

    .faq-answer p {
        padding: 0 22px 22px;
    }
}

/*==========================================
CTA + FOOTER RESPONSIVE
==========================================*/

@media(max-width:991px) {

    .footer-grid {
        grid-template-columns: repeat(2,1fr);
    }
}

@media(max-width:768px) {

    .cta-box {
        padding: 60px 30px;
    }

        .cta-box h2 {
            font-size: 34px;
        }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}