/* Mobile Responsive CSS for rue-montorgueil.com
   Based on ladies-market.hk mobile design patterns
   January 25, 2025 */

/* Mobile-First Media Queries */
@media handheld, only screen and (max-width: 640px), only screen and (max-device-width: 640px) {
    
    /* Base Mobile Styles */
    body {
        font-size: 90%;
        line-height: 1.5;
    }
    
    /* Container Adjustments */
    #wrapperContent {
        width: 100%;
        margin: 0;
        box-shadow: none;
    }
    
    /* Header/Logo Mobile */
    #slideWrapper {
        height: 200px;
    }
    
    #logo {
        position: absolute;
        top: 30px;
        left: 20px;
        right: 60px;
        transform: none;
    }
    
    #logoline1 {
        font-size: 1.8em;
        line-height: 1.1;
    }
    
    .logoline2 {
        font-size: 1em;
    }
    
    /* Mobile Menu */
    #mobile-menu-button {
        display: block !important;
    }
    
    /* Hide desktop navigation on mobile */
    #nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #24572d; /* match new brand primary */
        z-index: 30;
    }
    
    /* Show navigation when mobile menu is activated */
    #nav-menu.active {
        display: block;
    }
    
    #nav-menu ul {
        flex-direction: column;
        width: 100%;
    }
    
    #nav-menu li {
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    #nav-menu a {
        padding: 15px 20px;
        width: 100%;
        text-align: left;
        font-size: 1.1em;
    }
    
    /* Content Mobile Adjustments */
    #mainContent {
        padding: 15px;
    }
    
    #mid1, #mid2, #mid3, #mid4, .thickBorderOverBox {
        margin: 10px;
        padding: 20px 15px;
        border-radius: 5px;
    }
    
    /* Typography Mobile */
    h1 {
        font-size: 130%;
        line-height: 1.3;
        margin: 10px 0;
    }
    
    h2 {
        font-size: 120%;
        margin: 15px 0 8px 0;
    }
    
    h3, h4 {
        font-size: 110%;
        margin: 12px 0 6px 0;
    }
    
    p {
        margin: 8px 0;
        text-align: left;
    }
    
    /* Lists Mobile */
    ul {
        margin: 10px 0 10px 15px;
    }
    
    li {
        margin: 6px 0;
        font-size: 0.95em;
    }
    
    /* Tables Mobile */
    table {
        font-size: 0.85em;
        margin: 15px 0;
    }
    
    th, td {
        padding: 8px 10px;
    }
    
    /* Horizontal scroll for wide tables */
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Buttons Mobile */
    .buttonGradient, .contentbutton {
        padding: 0.9em 1.25em;
        font-size: 0.95em;
        margin: 8px 0;
        display: block;
        text-align: center;
        width: 100%;
        max-width: 230px;
        border-radius: 5000rem; /* pill */
    }
    
    /* Footer Mobile */
    footer {
        padding: 20px 0;
        margin-top: 30px;
    }
    
    #footerWrapper {
        padding: 0 15px;
    }
    
    footer p {
        font-size: 0.85em;
        line-height: 1.4;
    }
    
    /* Images Mobile */
    img {
        max-width: 100%;
        height: auto;
        margin: 10px 0;
    }
    
    /* Hide certain elements on mobile */
    .desktop-only {
        display: none !important;
    }
    
    /* Show mobile-only elements */
    .mobile-only {
        display: block !important;
    }
    
    /* Breadcrumb Mobile */
    .breadcrumb {
        font-size: 0.8em;
        padding: 8px 0;
        margin: 0 0 15px 0;
    }
    
    /* Social sharing mobile */
    .addthis_toolbox, .addthis_inline_share_toolbox {
        margin: 15px 0;
        padding: 10px 0;
    }
    
    /* Form elements mobile */
    input, textarea, select {
        width: 100%;
        padding: 10px;
        margin: 5px 0;
        border: 1px solid #ddd;
        border-radius: 3px;
        font-size: 1em;
    }
    
    /* Contact and special content mobile */
    .contact-info {
        text-align: left;
        padding: 15px;
        background: #f8f9fa;
        border-radius: 5px;
        margin: 15px 0;
    }
    
    /* Business listings mobile optimization */
    .business-listing {
        padding: 15px;
        margin: 10px 0;
        border-left: 4px solid #ce5736; /* coral accent */
        background: #f5f3ee;
        border-radius: 0 8px 8px 0;
    }
    
    .business-listing h3 {
        margin-top: 0;
        margin-bottom: 10px;
        color: #2c3e50;
    }
    
    .business-details {
        font-size: 0.9em;
        line-height: 1.4;
    }
    
    /* Callout boxes mobile */
    .callout {
        padding: 15px;
        margin: 15px 0;
        border-radius: 8px;
        background: #ecebfc;
        border-left: 4px solid #6e66e9; /* purple accent reserved for info */
    }
    
    .callout.warning {
        background: #fff5e6;
        border-left-color: #ff9933;
    }
    
    .callout.tip {
        background: #eaf7ec;
        border-left-color: #76c25c;
    }
}

/* Tablet Adjustments */
@media only screen and (min-width: 641px) and (max-width: 1024px) {
    
    #wrapperContent {
        width: 100%;
        margin: 0;
        padding: 0 10px;
    }
    
    #mainContent {
        padding: 25px;
    }
    
    #nav-menu ul {
        justify-content: space-around;
    }
    
    #nav-menu a {
        padding: 12px 15px;
        font-size: 0.9em;
    }
    
    #slideWrapper {
        height: 250px;
    }
    
    #logo {
        left: 30px;
    }
    
    #logoline1 {
        font-size: 2.2em;
    }
    
    .logoline2 {
        font-size: 1.1em;
    }
}

/* Landscape mobile adjustments */
@media only screen and (max-height: 500px) and (orientation: landscape) {
    
    #slideWrapper {
        height: 150px;
    }
    
    #logo {
        top: 20px;
        transform: none;
    }
    
    #logoline1 {
        font-size: 1.5em;
    }
    
    .logoline2 {
        font-size: 0.9em;
    }
}

/* High DPI Display Support */
@media only screen and (-webkit-min-device-pixel-ratio: 2),
       only screen and (min-resolution: 192dpi),
       only screen and (min-resolution: 2dppx) {
    
    /* Ensure images and text remain crisp on retina displays */
    img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
    
    /* Slightly adjust text for better readability on high DPI */
    body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}