/* ==========================================================
   Top bar (social icons + phone / email / hours)
   Markup : resources/views/partials/header.blade.php (.top-bar-area)
   Loaded after style.css / responsive.css, so these win.

   Desktop  (>=1200px) : unchanged theme layout
   Laptop   (992-1199) : one row, slightly smaller text
   Tablet   (576-991)  : one row - socials left, phone + email right
                         (hours hidden; they're in the footer & mobile menu)
   Phone    (<576px)   : original theme layout and icons (unchanged)
   ========================================================== */

@media (min-width: 576px) and (max-width: 1199.98px) {
    .top-bar-area {
        padding: 10px 0;
    }
    .top-bar-area > .container-fluid {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
        padding-left: 15px;
        padding-right: 15px;
    }
    .top-bar {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        flex-wrap: nowrap;
        gap: 12px;
    }
    .top-bar::after {
        display: none;
    }
    .top-bar .top-left,
    .top-bar .top-right {
        float: none !important;
        width: auto;
        max-width: none;
        margin: 0;
        min-height: 0;
    }
    .top-bar .top-left {
        display: flex !important;
        align-items: center;
        flex-shrink: 0;
        gap: 10px;
    }
    .top-bar .top-left .fa {
        margin-left: 0;
    }
    .top-bar .top-right {
        min-width: 0;
    }
    .top-bar .top-right ul {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        flex-wrap: nowrap;
        gap: 18px;
        margin: 0;
        padding: 0;
        text-align: right;
    }
    .top-bar .top-right ul li {
        float: none;
        margin: 0 !important;
        font-size: 14px;
        line-height: 24px;
        white-space: nowrap;
    }
}

/* ---------- Tablet ---------- */
@media (min-width: 576px) and (max-width: 991.98px) {
    /* hours: shown in the footer and the mobile menu instead */
    .top-bar .top-right ul li:nth-child(3) {
        display: none;
    }
}

/* ==========================================================
   Phone (<576px): same icons as the original theme, only the
   layout is tidied - social icons centred on row 1, phone +
   email side by side on row 2 (hours are in the mobile menu).
   Icon sizes, colours and styles are NOT changed here.
   ========================================================== */
@media (max-width: 575.98px) {
    .top-bar-area {
        padding: 10px 0 8px;
    }
    /* theme limits container-fluid to 80% on phones; use the full width */
    .top-bar-area > .container-fluid {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
        padding-left: 15px;   /* matches the row's -15px margin: no sideways scroll */
        padding-right: 15px;
    }
    .top-bar .top-left {
        max-width: none;
        width: 100%;
        float: none !important;
        margin: 0;
        display: flex !important;
        justify-content: center;
    }
    /* theme gives each icon a left margin; drop it on the first so the row is truly centred */
    .top-bar .top-left a:first-child .fa {
        margin-left: 0;
    }
    .top-bar .top-right {
        margin-top: 6px;
    }
    .top-bar .top-right ul {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        column-gap: 16px;
        row-gap: 2px;
        margin: 0;
        padding: 0;
    }
    .top-bar .top-right ul li {
        margin-right: 0 !important;
        font-size: 13px;
        white-space: nowrap;
    }
    .top-bar .top-right ul li:nth-child(3) {
        display: none;
    }
}

/* very narrow phones: slightly smaller text so phone + email still fit one line */
@media (max-width: 374.98px) {
    .top-bar .top-right ul {
        column-gap: 10px;
    }
    .top-bar .top-right ul li {
        font-size: 12px;
    }
    .top-bar .top-right ul li a span:before {
        padding-right: 5px;
    }
}
