/* Responsive & Mobile Navigation Stylesheet for Cleveland Signature Properties */

/* Header Customer Care Phone Pill */
.header-phone {
    display: inline-flex;
    align-items: center;
}

.header-phone .phone-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(212, 175, 55, 0.12);
    border: 1px solid rgba(212, 175, 55, 0.45);
    color: #d4af37;
    padding: 0.45rem 0.95rem;
    border-radius: 9999px;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.header-phone .phone-link:hover {
    background: #d4af37;
    color: #0b1329;
    border-color: #d4af37;
    box-shadow: 0 4px 14px rgba(212, 175, 55, 0.35);
}

.header-phone .phone-link svg {
    flex-shrink: 0;
}

@media (min-width: 993px) {
    .nav-links {
        margin-left: auto;
        margin-right: 1.5rem;
    }
}

/* Mobile Hamburger Toggle */
.mobile-toggle {
    display: none;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.35);
    color: #d4af37;
    width: 42px;
    height: 42px;
    border-radius: 8px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: all 0.2s ease;
    z-index: 1100;
}

.mobile-toggle:hover {
    background: rgba(212, 175, 55, 0.15);
    border-color: #d4af37;
}

.mobile-toggle svg {
    width: 22px;
    height: 22px;
    pointer-events: none;
}

/* Tablet & Mobile Screens (<= 992px) */
@media (max-width: 992px) {
    .nav-container {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 10px !important;
    }

    .header-phone {
        margin-left: auto !important;
        order: 2 !important;
    }

    .mobile-toggle {
        display: inline-flex !important;
        order: 3 !important;
    }

    /* Keep nav-links hidden until .open is applied */
    .nav-links {
        display: none !important;
        position: fixed !important;
        top: 76px !important;
        left: 0 !important;
        right: 0 !important;
        background: #0b1329 !important;
        background: rgba(11, 19, 41, 0.98) !important;
        backdrop-filter: blur(16px) !important;
        -webkit-backdrop-filter: blur(16px) !important;
        flex-direction: column !important;
        align-items: stretch !important;
        padding: 1.5rem 2rem !important;
        gap: 8px !important;
        border-bottom: 2px solid #d4af37 !important;
        box-shadow: 0 16px 36px rgba(0, 0, 0, 0.7) !important;
        z-index: 9999 !important;
        margin: 0 !important;
    }

    /* When clicked, show smoothly */
    .nav-links.open {
        display: flex !important;
    }

    .nav-links li {
        width: 100% !important;
        list-style: none !important;
    }

    .nav-links a {
        display: block !important;
        padding: 12px 0 !important;
        font-size: 1.05rem !important;
        font-weight: 600 !important;
        color: #ffffff !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
        text-decoration: none !important;
    }

    .nav-links a:hover, .nav-links a.active {
        color: #d4af37 !important;
        padding-left: 6px !important;
    }

    /* Layout Adaptations */
    .modules-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1.5rem !important;
    }

    .workflow-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1.5rem !important;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1.5rem !important;
    }

    .contact-layout, .support-layout {
        grid-template-columns: 1fr !important;
        gap: 2.5rem !important;
    }

    .channels-grid {
        grid-template-columns: 1fr !important;
        margin-top: 2rem !important;
        gap: 1.25rem !important;
    }
}

/* Mobile Screens (<= 768px) */
@media (max-width: 768px) {
    .container {
        padding: 0 1.25rem !important;
    }

    .metrics-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1.25rem !important;
    }

    .metric-item:nth-child(2)::after {
        display: none !important;
    }

    .modules-grid, .workflow-grid, .services-grid {
        grid-template-columns: 1fr !important;
    }

    .hero h1, .page-hero h1, .support-hero h1 {
        font-size: 2.1rem !important;
        line-height: 1.25 !important;
    }

    .hero p, .page-hero p, .support-hero p {
        font-size: 0.98rem !important;
    }

    .cta-banner {
        flex-direction: column !important;
        padding: 2.5rem 1.5rem !important;
        text-align: center !important;
        gap: 1.5rem !important;
    }

    .cta-buttons {
        width: 100% !important;
        flex-direction: column !important;
    }

    .cta-buttons .btn {
        width: 100% !important;
    }

    .hero-actions {
        flex-direction: column !important;
        width: 100% !important;
    }

    .hero-actions .btn {
        width: 100% !important;
    }

    .form-card, .ticket-box, .legal-box {
        padding: 1.8rem 1.4rem !important;
    }

    .footer-content {
        flex-direction: column !important;
        gap: 1.75rem !important;
        text-align: center !important;
    }

    .footer-brand {
        flex-direction: column !important;
    }

    .footer-links {
        justify-content: center !important;
        gap: 16px !important;
    }

    .copyright {
        flex-direction: column !important;
        gap: 0.75rem !important;
        text-align: center !important;
    }
}

/* Small SmartPhones (<= 540px) */
@media (max-width: 540px) {
    .header-phone .phone-link span {
        display: none !important;
    }
    .header-phone .phone-link {
        padding: 9px 10px !important;
        border-radius: 8px !important;
    }
}

/* Small SmartPhones (<= 480px) */
@media (max-width: 480px) {
    .container {
        padding: 0 1rem !important;
    }

    .metrics-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    .metric-item::after {
        display: none !important;
    }

    .brand-logo {
        height: 38px !important;
    }

    .brand-title {
        font-size: 0.75rem !important;
    }

    .brand-subtitle {
        font-size: 0.72rem !important;
    }

    .hero h1, .page-hero h1, .support-hero h1 {
        font-size: 1.8rem !important;
    }

    .form-row {
        grid-template-columns: 1fr !important;
        gap: 0 !important;
    }

    .btn {
        padding: 0.7rem 1.2rem !important;
        font-size: 0.88rem !important;
    }

    .service-card, .module-card, .info-card {
        padding: 1.6rem 1.25rem !important;
    }
}
