/* =========================================================
   FONTS
   ========================================================= */

/* =========================================================
   FONTS
   ========================================================= */

/* Normal Vazir */
@font-face {
    font-family: "Vazir";
    src: url("../fonts/vazir-font/Vazir.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* Vazir Bold */
@font-face {
    font-family: "Vazir";
    src: url("../fonts/vazir-font/Vazir-Bold.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}


/* =========================================================
   VAZIR FONT WITH PERSIAN DIGITS
   ========================================================= */

@font-face {
    font-family: "Vazir FD";
    src: url("../fonts/vazir-font/Vazir-FD-WOL.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Vazir FD";
    src: url("../fonts/vazir-font/Vazir-Bold-FD-WOL.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}


/* =========================================================
   LIGHT FONT
   ========================================================= */

@font-face {
    font-family: "Vazir";
    src: url("../fonts/vazir-font/Vazir-Light-FD-WOL.woff2") format("woff2");
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}


/* =========================================================
   VARIABLES
   ========================================================= */

:root {

    --brown-dark: #3b281e;
    --brown: #654536;
    --brown-medium: #80604c;
    --brown-light: #a98b76;

    --beige-dark: #d5c2ad;
    --beige: #e8d9c7;
    --beige-light: #f3ece3;

    --cream: #faf8f4;

    --white: #ffffff;

    --text-dark: #2c211b;
    --text: #51443b;
    --text-muted: #7c7067;

    --border: #e4dbd1;

    --shadow-small: 0 2px 10px rgba(59, 40, 30, 0.06);

    --shadow: 0 8px 30px rgba(59, 40, 30, 0.10);

    --container-width: 1200px;

    --radius-small: 8px;
    --radius: 12px;
    --radius-large: 18px;
}


/* =========================================================
   RESET
   ========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Vazir FD", "Vazir", Tahoma, Arial, sans-serif;

    background: var(--cream);

    color: var(--text-dark);

    line-height: 1.7;

    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font-family: inherit;
}

button {
    cursor: pointer;
}

img {
    max-width: 100%;
    display: block;
}

.site-main {
    min-height: calc(100vh - 150px);
}


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

.site-header {
    position: relative;
    z-index: 1000;

    width: 100%;

    background: var(--white);

    border-bottom: 1px solid var(--border);

    box-shadow: var(--shadow-small);
}

.header-container {
    width: min(
            calc(100% - 40px),
            var(--container-width)
    );

    min-height: 76px;

    margin: 0 auto;

    display: flex;
    align-items: center;

    gap: 30px;
}


/* =========================================================
   BRAND
   ========================================================= */

.brand {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.brand-logo {
    display: block;
    width: 190px;
    height: auto;
    object-fit: contain;
}

.brand-icon {
    width: 42px;
    height: 42px;

    border-radius: 50%;

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

    background: var(--brown-dark);

    color: var(--white);

    font-size: 19px;
}

.brand-name {
    color: var(--brown-dark);

    font-size: 22px;

    font-weight: 700;

    white-space: nowrap;
}

.brand-name span {
    color: var(--brown);
}


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

.main-navigation {
    display: flex;
    align-items: center;

    gap: 4px;

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

.nav-link {
    position: relative;

    padding: 9px 14px;

    color: var(--text);

    border-radius: var(--radius-small);

    font-size: 14px;

    transition: color 0.2s ease,
    background 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--brown-dark);

    background: var(--beige-light);
}


/* =========================================================
   HEADER ACTIONS
   ========================================================= */

.header-actions {
    display: flex;
    align-items: center;

    gap: 10px;

    flex-shrink: 0;
}

.account-button {
    min-height: 42px;

    padding: 0 16px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    border: 1px solid var(--border);

    border-radius: var(--radius);

    background: var(--white);

    color: var(--brown-dark);

    font-size: 13px;

    transition: background 0.2s ease,
    border-color 0.2s ease;
}

.account-button:hover {
    background: var(--beige-light);

    border-color: var(--beige-dark);
}


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

.mobile-menu-button {
    width: 42px;
    height: 42px;

    display: none;

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

    border: 1px solid var(--border);

    border-radius: var(--radius);

    background: var(--white);

    color: var(--brown-dark);

    font-size: 21px;
}

.mobile-navigation {
    display: none;
}


/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
    margin-top: 70px;

    background: var(--brown-dark);

    color: var(--beige-light);
}

.footer-container {
    width: min(
            calc(100% - 40px),
            var(--container-width)
    );

    margin: 0 auto;

    padding: 55px 0 45px;

    display: grid;

    grid-template-columns:
        2fr
        1fr
        1fr
        1.5fr;

    gap: 45px;
}

.footer-column {
    display: flex;

    flex-direction: column;

    align-items: flex-start;

    gap: 8px;
}

.footer-brand-title {
    display: inline-flex;
    align-items: center;

    gap: 10px;

    margin-bottom: 15px;

    color: var(--white);

    font-size: 21px;

    font-weight: 700;
}

.footer-brand-icon {
    width: 40px;
    height: 40px;

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

    border-radius: 50%;

    background: var(--brown);

    color: var(--white);
}

.footer-brand p {
    max-width: 300px;

    color: var(--beige-dark);

    font-size: 13px;
}

.footer-column h3 {
    margin-bottom: 10px;

    color: var(--white);

    font-size: 15px;
}

.footer-column > a {
    color: var(--beige-dark);

    font-size: 13px;

    transition: color 0.2s ease;
}

.footer-column > a:hover {
    color: var(--white);
}

.footer-contact span {
    display: flex;
    align-items: center;

    gap: 8px;

    color: var(--beige-dark);

    font-size: 13px;
}

.footer-contact i {
    color: var(--brown-light);

    font-size: 16px;
}


/* =========================================================
   FOOTER BOTTOM
   ========================================================= */

.footer-bottom {
    border-top: 1px solid rgba(232, 217, 199, 0.12);
}

.footer-bottom-container {
    width: min(
            calc(100% - 40px),
            var(--container-width)
    );

    min-height: 60px;

    margin: 0 auto;

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

    color: var(--beige-dark);

    font-size: 12px;
}


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

@media (max-width: 900px) {

    .main-navigation {
        display: none;
    }

    .mobile-menu-button {
        display: flex;
    }

    .mobile-navigation {
        width: min(
                calc(100% - 40px),
                var(--container-width)
        );

        margin: 0 auto;

        padding-bottom: 15px;

        flex-direction: column;

        gap: 4px;
    }

    .mobile-navigation.is-open {
        display: flex;
    }

    .mobile-nav-link {
        padding: 12px 14px;

        display: flex;
        align-items: center;

        gap: 10px;

        border-radius: var(--radius-small);

        color: var(--text);
    }

    .mobile-nav-link:hover {
        background: var(--beige-light);

        color: var(--brown-dark);
    }

    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
}


@media (max-width: 600px) {

    .header-container {
        width: calc(100% - 24px);

        min-height: 68px;

        gap: 10px;
    }

    .brand-name {
        font-size: 18px;
    }

    .brand-icon {
        width: 38px;
        height: 38px;
    }

    .account-button {
        width: 42px;
        height: 42px;

        padding: 0;
    }

    .account-button span {
        display: none;
    }

    .footer-container {
        width: calc(100% - 24px);

        grid-template-columns: 1fr;

        gap: 30px;

        padding: 40px 0;
    }

    .footer-bottom-container {
        width: calc(100% - 24px);

        padding: 18px 0;

        min-height: auto;

        flex-direction: column;

        align-items: flex-start;

        gap: 5px;
    }
}