/* ============================================================
   LOCAL RAHI — Common Extension Stylesheet
   Responsiveness System
   ============================================================ */

/* ── Layout Transitions ── */
html, body, header, footer, a, button, input, select, textarea, div, section {
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

/* ── Mobile Layout Adjustments for Header ── */
.mobile-only-action {
    display: none !important;
}

@media (max-width: 768px) {
    .header .container {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        background: var(--bg-white);
        position: absolute;
        top: 75px;
        left: 0;
        right: 0;
        width: 100%;
        padding: 24px;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-lg);
        z-index: 1001;
        gap: 16px;
        align-items: stretch;
    }

    .nav-links.show {
        display: flex;
    }

    .nav-links a {
        display: block;
        width: 100%;
        font-size: 15px;
        font-weight: 600;
        padding: 10px 0;
        border-bottom: 1px solid var(--border-light);
        color: var(--text-secondary);
    }

    .nav-links a::after {
        display: none !important;
    }

    .mobile-only-action {
        display: flex !important;
        justify-content: center;
        margin-top: 8px;
    }

    /* Hide the primary auth buttons in the main header actions on mobile to fit hamburger spacing */
    .nav-actions #btn-login,
    .nav-actions #btn-signup {
        display: none !important;
    }

    .logo img {
        height: 48px !important;
    }
}

/* ── Hamburger Animation ── */
.mobile-menu-btn span {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ── Responsive Footer Layout ── */
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* ── Responsive Enhancements ── */
/* Hero section layout on tablets/mobile */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }
    
    .hero-content {
        padding-bottom: 24px !important;
        text-align: center;
    }
    
    .hero-heading {
        font-size: 38px !important;
    }
    
    .hero-subtext {
        max-width: 100% !important;
        margin-bottom: 24px !important;
    }
    
    .hero-buttons-wrapper {
        justify-content: center;
        margin-top: 20px !important;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }
    
    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }
    
    .hero-image-wrapper {
        height: 320px !important;
    }
    
    .hero-image-bg {
        right: 0 !important;
        width: 100% !important;
        border-top-left-radius: 120px !important;
    }
    
    .trust-badge {
        left: 10px !important;
        bottom: 20px !important;
    }
}

/* Steps and columns on mobile */
@media (max-width: 768px) {
    .cp-steps-row {
        flex-direction: column;
        gap: 24px;
        align-items: center;
    }
    
    .cp-step-item:not(:last-child)::after {
        content: "▼" !important;
        position: absolute;
        top: auto;
        bottom: -20px;
        left: 50%;
        transform: translateX(-50%);
        right: auto;
    }
}
