/* ==========================================================================
   Responsive Styles for Web Source Guyana
   Add this file AFTER all other stylesheets
   ========================================================================== */

/* Mobile menu toggle button */
.mobile-menu-toggle {
    display: none;
    background: #1d1e1e;
    color: #fff;
    border: none;
    padding: 12px 20px;
    font-size: 16px;
    cursor: pointer;
    width: 100%;
    text-align: left;
}

.mobile-menu-toggle:after {
    content: "☰";
    float: right;
}

/* Tablet and below (max-width: 1024px) */
@media screen and (max-width: 1024px) {
    .container {
        width: 95%;
        max-width: 1000px;
        padding: 0 10px;
        box-sizing: border-box;
    }

    header {
        height: auto;
        min-height: 60px;
        padding: 10px 0;
    }

    h1 {
        position: relative;
        left: 0;
        top: 0;
        width: auto;
        height: auto;
        padding: 10px 0 10px 70px;
        background-size: 60px auto;
        font-size: 24px;
    }

    ul.sdt_menu {
        left: 0;
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }

    ul.sdt_menu li {
        width: auto;
        min-width: 100px;
    }

    #gallery {
        height: auto;
        padding: 20px 0;
    }

    .roundabout-holder {
        width: 100%;
        height: auto;
    }

    .roundabout-moveable-item {
        width: 90%;
        max-width: 646px;
        height: auto;
    }

    #content {
        width: 100%;
        float: none;
    }

    aside {
        width: 100%;
        float: none;
        margin-right: 0;
        margin-bottom: 20px;
    }

    .inside {
        padding: 20px 10px;
    }

    .fright, .fleft {
        float: none;
    }
}

/* Mobile devices (max-width: 768px) */
@media screen and (max-width: 768px) {
    .container {
        width: 100%;
        padding: 0 15px;
    }

    header {
        height: auto;
        padding: 10px 0;
    }

    header .container {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    h1 {
        position: relative;
        left: 0;
        top: 0;
        width: 200px;
        height: 70px;
        padding: 0;
        background-size: contain;
        background-position: center;
        margin: 0 auto 10px;
        font-size: 0;
    }

    /* Mobile menu */
    .mobile-menu-toggle {
        display: block;
    }

    ul.sdt_menu {
        display: none;
        flex-direction: column;
        width: 100%;
        left: 0;
        position: relative;
    }

    ul.sdt_menu.active {
        display: flex;
    }

    ul.sdt_menu li {
        width: 100%;
        height: auto;
        border-bottom: 1px solid #333;
    }

    ul.sdt_menu li > a {
        position: relative;
        width: 100%;
        height: auto;
        padding: 15px;
        box-sizing: border-box;
        background: #1d1e1e;
    }

    ul.sdt_menu li a img {
        display: none;
    }

    ul.sdt_menu li span.sdt_wrap {
        position: relative;
        top: 0;
        left: 0;
        width: 100%;
        height: auto;
        padding: 15px;
        box-sizing: border-box;
    }

    ul.sdt_menu li span.sdt_active {
        display: none;
    }

    ul.sdt_menu li span span.sdt_link {
        font-size: 18px;
        margin-left: 0;
    }

    ul.sdt_menu li span span.sdt_descr {
        display: none;
    }

    ul.sdt_menu li div.sdt_box {
        position: relative;
        top: 0;
        left: 0;
        width: 100%;
        height: auto;
        display: none;
    }

    /* Hide gallery carousel on mobile, show simple version */
    #gallery {
        height: auto;
        padding: 15px;
        overflow: visible;
    }

    .roundabout-holder,
    #myRoundabout {
        display: none;
    }

    /* Content layout */
    #content {
        width: 100%;
        float: none;
    }

    aside {
        width: 100%;
        float: none;
        margin: 0 0 20px 0;
    }

    .wrapper {
        display: flex;
        flex-direction: column;
    }

    .inside {
        padding: 15px;
    }

    h2 {
        font-size: 22px;
        line-height: 1.3;
    }

    /* Footer */
    footer .container {
        text-align: center;
    }

    footer .fleft {
        float: none;
        display: block;
        margin: 0 auto 15px;
        padding: 0;
    }

    footer .p1 {
        margin-bottom: 10px;
    }

    /* Forms */
    #frmOutboundShipping ul,
    #frmInboundShipping {
        width: 100%;
    }

    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="tel"],
    select,
    textarea {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    /* Tables */
    table {
        width: 100%;
        display: block;
        overflow-x: auto;
    }

    /* Buttons */
    .btn {
        display: block;
        width: 100%;
        margin-bottom: 10px;
        box-sizing: border-box;
    }

    /* Login slider menu */
    #toppanel {
        position: relative;
    }

    /* Contact cards from rates page */
    .contact-grid {
        grid-template-columns: 1fr;
    }

    /* Images */
    img {
        max-width: 100%;
        height: auto;
    }

    /* Fancybox adjustments */
    #fancybox-wrap {
        width: 95% !important;
        left: 2.5% !important;
    }

    #fancybox-content {
        width: 100% !important;
    }
}

/* Login panel adjustments */
@media screen and (max-width: 768px) {
    #login_toppanel {
        position: relative;
    }

    #login_panel .content {
        display: flex;
        flex-direction: column;
        padding: 15px;
    }

    #login_panel .content .left {
        float: none;
        width: 100%;
        margin-bottom: 20px;
        padding: 0;
    }

    #login_panel .content .left.right {
        margin-bottom: 0;
    }

    .login_tab {
        position: relative;
    }

    .login_tab ul.login {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
    }

    .login_tab ul.login li {
        padding: 5px 10px;
    }
}

/* Small mobile devices (max-width: 480px) */
@media screen and (max-width: 480px) {
    h1 {
        width: 150px;
        height: 55px;
    }

    h2 {
        font-size: 20px;
    }

    .inside {
        padding: 10px;
    }

    ul.sdt_menu li span span.sdt_link {
        font-size: 16px;
    }

    /* Contact cards */
    .contact-card {
        padding: 20px 15px;
    }

    .contact-card .icon {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
}

/* Ensure images don't overflow */
img {
    max-width: 100%;
    height: auto;
}

/* Box sizing for all elements */
*, *:before, *:after {
    box-sizing: border-box;
}
