/* =========================================================
   Tariqarain.com
   Global Base Styles
========================================================= */


/* -------------------------
   Box sizing
-------------------------- */

*,
*::before,
*::after {
    box-sizing: border-box;
}


/* -------------------------
   Document
-------------------------- */

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--tq-bg-page);
    color: var(--tq-text-primary);
    font-family: var(--tq-font-en);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}


/* -------------------------
   Arabic / RTL
-------------------------- */

html[dir="rtl"] body {
    font-family: var(--tq-font-ar);
}


/* -------------------------
   Typography
-------------------------- */

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 0;
    color: var(--tq-text-primary);
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: 36px;
}

h2 {
    font-size: 30px;
}

h3 {
    font-size: 24px;
}

h4 {
    font-size: 20px;
    font-weight: 600;
}

p {
    margin-top: 0;
    margin-bottom: var(--tq-space-4);
}

a {
    color: var(--tq-blue);
    text-decoration: none;
}

a:hover {
    color: var(--tq-blue-dark);
}


/* -------------------------
   Media
-------------------------- */

img,
svg,
video {
    display: block;
    max-width: 100%;
}

img {
    height: auto;
}


/* -------------------------
   Forms
-------------------------- */

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

input,
select,
textarea {
    color: var(--tq-text-primary);
}


/* -------------------------
   Main Layout Container
-------------------------- */

.tq-container {
    width: min(
        calc(100% - 48px),
        var(--tq-container)
    );
    margin-inline: auto;
}


/* -------------------------
   Utility
-------------------------- */

.tq-surface {
    background: var(--tq-surface);
}

.tq-muted {
    color: var(--tq-text-muted);
}


/* -------------------------
   Accessibility
-------------------------- */

:focus-visible {
    outline: 2px solid var(--tq-blue);
    outline-offset: 2px;
}

.tq-sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}


/* -------------------------
   Responsive
-------------------------- */

@media (max-width: 767px) {

    .tq-container {
        width: calc(100% - 32px);
    }

    h1 {
        font-size: 30px;
    }

    h2 {
        font-size: 26px;
    }

    h3 {
        font-size: 22px;
    }

    h4 {
        font-size: 18px;
    }
}