/* =========================================================
   Tariqarain.com
   Main Header
========================================================= */


/* -------------------------
   Header Shell
-------------------------- */

.tq-header {
    position: relative;
    z-index: 100;
    width: 100%;
    background: var(--tq-surface);
    border-bottom: 1px solid var(--tq-border-light);
}

.tq-header__inner {
    min-height: 72px;

    display: flex;
    align-items: center;
    gap: var(--tq-space-5);
}


/* -------------------------
   Logo
-------------------------- */

.tq-header__logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.tq-header__logo img {
    width: 185px;
    max-height: 48px;
    object-fit: contain;
}


/* -------------------------
   Desktop Area
-------------------------- */

.tq-header__desktop {
    flex: 1;

    display: flex;
    align-items: center;
    gap: var(--tq-space-3);

    min-width: 0;
}


/* -------------------------
   Location Selector
-------------------------- */

.tq-header__location {
    height: 44px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    padding: 0 14px;

    color: var(--tq-navy);
    background: var(--tq-bg-soft);

    border: 1px solid var(--tq-border);
    border-radius: var(--tq-radius-md);

    font-size: 14px;
    font-weight: 500;

    white-space: nowrap;
}

.tq-header__location:hover {
    background: #eef5ff;
}


/* -------------------------
   Search
-------------------------- */

.tq-header__search {
    flex: 1;

    min-width: 220px;
    max-width: 560px;

    height: 44px;

    display: flex;
    align-items: center;

    overflow: hidden;

    background: var(--tq-surface);

    border: 1px solid var(--tq-border);
    border-radius: var(--tq-radius-md);

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.tq-header__search:focus-within {
    border-color: var(--tq-blue);

    box-shadow:
        0 0 0 3px rgba(11, 99, 246, 0.12);
}

.tq-header__search input {
    flex: 1;

    min-width: 0;
    height: 100%;

    padding: 0 16px;

    border: 0;
    outline: 0;

    background: transparent;

    font-size: 14px;
}

.tq-header__search input::placeholder {
    color: var(--tq-text-muted);
}

.tq-header__search select {
    height: 100%;

    min-width: 150px;

    padding: 0 34px 0 14px;

    border: 0;
    border-left: 1px solid var(--tq-border-light);
    outline: 0;

    color: var(--tq-navy);
    background-color: var(--tq-surface);

    font-size: 13px;
    font-weight: 500;

    cursor: pointer;
}


/* -------------------------
   Header Actions
-------------------------- */

.tq-header__actions {
    margin-left: auto;

    display: flex;
    align-items: center;
    gap: 10px;

    flex-shrink: 0;
}

.tq-header__login,
.tq-header__account {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 44px;

    padding: 0 8px;

    color: var(--tq-navy);

    font-size: 14px;
    font-weight: 600;
}

.tq-header__login:hover,
.tq-header__account:hover {
    color: var(--tq-blue);
}


/* -------------------------
   Buttons
-------------------------- */

.tq-button {
    min-height: 44px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    padding: 0 17px;

    border-radius: var(--tq-radius-md);

    font-size: 14px;
    font-weight: 600;

    line-height: 1;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        transform 0.15s ease;
}

.tq-button:active {
    transform: scale(0.98);
}


/* Primary */

.tq-button--primary {
    color: #ffffff;
    background: var(--tq-blue);

    border: 1px solid var(--tq-blue);
}

.tq-button--primary:hover {
    color: #ffffff;
    background: var(--tq-blue-dark);
    border-color: var(--tq-blue-dark);
}


/* Secondary */

.tq-button--secondary {
    color: var(--tq-navy);
    background: #ffffff;

    border: 1px solid #cbd5e1;
}

.tq-button--secondary:hover {
    color: var(--tq-blue);
    border-color: var(--tq-blue);
}


/* Post Listing CTA */

.tq-header__post {
    min-width: 146px;
}


/* -------------------------
   Mobile Header
-------------------------- */

.tq-header__mobile {
    display: none;

    margin-left: auto;

    align-items: center;
    gap: 8px;
}

.tq-header__mobile-post {
    min-height: 40px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;

    padding: 0 14px;

    color: #ffffff;
    background: var(--tq-blue);

    border-radius: var(--tq-radius-md);

    font-size: 14px;
    font-weight: 600;
}

.tq-header__mobile-post:hover {
    color: #ffffff;
    background: var(--tq-blue-dark);
}


/* Mobile Menu Button */

.tq-header__menu-button {
    width: 40px;
    height: 40px;

    padding: 0;

    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 4px;

    background: #ffffff;

    border: 1px solid var(--tq-border);
    border-radius: var(--tq-radius-md);
}

.tq-header__menu-button span {
    width: 17px;
    height: 2px;

    display: block;

    background: var(--tq-navy);

    border-radius: 2px;
}


/* =========================================================
   Responsive
========================================================= */

@media (max-width: 1180px) {

    .tq-header__logo img {
        width: 155px;
    }

    .tq-header__search select {
        min-width: 125px;
    }

    .tq-header__post {
        min-width: auto;
    }
}


@media (max-width: 1024px) {

    .tq-header__location {
        display: none;
    }

    .tq-header__search {
        max-width: none;
    }
}


@media (max-width: 900px) {

    .tq-header__desktop {
        display: none;
    }

    .tq-header__mobile {
        display: flex;
    }

    .tq-header__inner {
        min-height: 64px;
    }

    .tq-header__logo img {
        width: 140px;
        max-height: 42px;
    }
}


@media (max-width: 480px) {

    .tq-header__logo img {
        width: 125px;
    }

    .tq-header__mobile-post {
        padding: 0 12px;
    }
}

/* =========================================================
   Medium Desktop / Tablet Header Safety
========================================================= */

@media (max-width: 1180px) {

    .tq-header__desktop {
        display: none;
    }

    .tq-header__mobile {
        display: flex;
    }

    .tq-header__inner {
        min-height: 64px;
    }

    .tq-header__logo img {
        width: 145px;
        max-height: 44px;
    }
}