/* =========================================================
   HAMSA MOBILE FRAMEWORK
   APPROVED RESPONSIVE SYSTEM
   Palette: Gray / Gold / Black / White
   Lightweight • Clean • Corporate
   ========================================================= */


/* =========================================================
   TABLET + MOBILE
   ========================================================= */

@media (max-width: 991px) {

    /* =====================================================
       GLOBAL
       ===================================================== */

    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    *,
    *::before,
    *::after {
        box-sizing: border-box;
    }

    img,
    iframe,
    video {
        display: block;
        max-width: 100%;
        height: auto;
    }


    /* =====================================================
       CONTAINER
       ===================================================== */

    .hamsa-container {
        width: 100%;
        max-width: 100%;

        margin-left: auto;
        margin-right: auto;

        padding-left: 20px;
        padding-right: 20px;
    }

    .hamsa-full-width {
        width: 100%;
        max-width: 100%;

        padding-left: 0;
        padding-right: 0;
    }


    /* =====================================================
       MOBILE HEADER
       ===================================================== */

    .hamsa-header-inner {
        position: relative;

        display: flex;
        align-items: center;
        justify-content: space-between;

        width: 100%;
        min-height: 72px;

        padding-top: 12px;
        padding-bottom: 12px;

        gap: 16px;
    }

    .hamsa-header-left {
        flex: 1 1 auto;
        min-width: 0;
    }

    .hamsa-header-navigation {
        flex: 0 0 auto;
        margin-left: auto;
    }

    .hamsa-primary-nav {
        position: relative;
    }

    .hamsa-header-right {
        display: none;
    }

    .custom-logo {
        display: block;
        width: auto;
        max-width: 180px;
        height: auto;
    }


    /* =====================================================
       MOBILE MENU TOGGLE
       ===================================================== */

    .hamsa-menu-toggle {
        display: inline-flex;

        align-items: center;
        justify-content: center;

        width: 48px;
        min-width: 48px;
        height: 44px;

        padding: 0;

        border: 1px solid #d4d4d4;
        border-radius: 3px;

        background: #ffffff;
        color: #111111;

        cursor: pointer;

        transition:
            background .2s ease,
            border-color .2s ease,
            color .2s ease;
    }

    .hamsa-menu-toggle:hover,
    .hamsa-menu-toggle:focus {
        background: #111111;
        border-color: #111111;
        color: #ffffff;
    }


    /* =====================================================
       MOBILE NAVIGATION
       ===================================================== */

    .hamsa-menu {
        display: none;
    }

    .hamsa-menu.is-open {
        position: absolute;
        top: calc(100% + 8px);
        right: 0;
        left: auto;

        display: flex;
        flex-direction: column;

        width: 320px;
        min-width: 280px;
        max-width: calc(100vw - 32px);

        margin: 0;
        padding: 8px 20px 14px;

        list-style: none;

        background: #ffffff;

        border: 1px solid #dddddd;
        border-top: 2px solid #c6a15b;
        border-radius: 3px;

        box-shadow: 0 12px 30px rgba(0, 0, 0, .10);

        z-index: 99999;
    }

    .hamsa-menu.is-open > li {
        width: 100%;
        margin: 0;
    }

    .hamsa-menu.is-open a {
        display: block;

        width: 100%;

        padding: 12px 0;

        color: #222222;

        font-size: 15px;
        line-height: 1.5;

        white-space: normal;
        word-break: normal;

        text-decoration: none;

        border-bottom: 1px solid #eeeeee;
    }

    .hamsa-menu.is-open > li:last-child > a {
        border-bottom: 0;
    }

    .hamsa-menu.is-open a:hover,
    .hamsa-menu.is-open a:focus {
        color: #9d7a2f;
    }


    /* =====================================================
       MOBILE SUBMENU
       ===================================================== */

    .hamsa-menu.is-open .sub-menu {
        position: static;

        display: block;

        width: 100%;
        min-width: 100%;

        margin: 0;
        padding: 0 0 0 14px;

        background: transparent;

        border: 0;
        border-radius: 0;

        box-shadow: none;

        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: none;
    }

    .hamsa-menu.is-open .sub-menu a {
        padding: 9px 0;

        color: #666666;

        font-size: 14px;
    }


    /* =====================================================
       CONTENT
       ===================================================== */

    .hamsa-content-area {
        display: block;

        width: 100%;
        max-width: 100%;
    }

    .hamsa-main-content,
    .hamsa-entry,
    .entry-content,
    .entry-header {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }


    /* =====================================================
       RESPONSIVE TYPOGRAPHY
       ===================================================== */

    h1,
    .entry-title {
        margin-top: 0;

        font-size: 32px;
        line-height: 1.2;

        word-break: break-word;
    }

    h2 {
        font-size: 26px;
        line-height: 1.25;
    }

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

    h4 {
        font-size: 19px;
        line-height: 1.35;
    }

    p,
    li {
        font-size: 17px;
        line-height: 1.7;
    }


    /* =====================================================
       WORDPRESS BLOCKS
       ===================================================== */

    .wp-block-columns {
        display: block;
        width: 100%;
    }

    .wp-block-column,
    .wp-block-group {
        width: 100%;
        max-width: 100%;
    }

    .wp-block-column + .wp-block-column {
        margin-top: 24px;
    }

    table {
        display: block;

        width: 100%;
        max-width: 100%;

        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 480px) {

    .hamsa-container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .hamsa-header-inner {
        min-height: 64px;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .custom-logo {
        max-width: 150px;
    }

    .hamsa-menu-toggle {
        width: 44px;
        min-width: 44px;
        height: 42px;
    }

    .hamsa-menu.is-open {
        width: 300px;
        max-width: calc(100vw - 24px);

        padding-left: 16px;
        padding-right: 16px;
    }

    h1,
    .entry-title {
        font-size: 28px;
    }

    h2 {
        font-size: 24px;
    }

    h3 {
        font-size: 21px;
    }

    h4 {
        font-size: 18px;
    }

    p,
    li {
        font-size: 16px;
        line-height: 1.65;
    }
}
