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

/* ==================== VARIABLES ==================== */
:root {
    --color-text: #000000;
    --font-vazir: vazir, sans-serif;
    --font-lalezar: lalezar, sans-serif;
    --color-main: #bb5333;
    --background-color: #fff;
    --background-color2: #bb65331a;
    --background-color3: #bb5333cb;
    --color-blue: rgb(24, 24, 87);
    --box-shadow: 1px 1px 20px 0px rgba(51, 51, 51, 0.568);
}

/* ==================== FONTS ==================== */
@font-face {
    font-family: vazir;
    src: url(font/Vazirmatn-Medium.ttf) format('truetype');
    font-display: swap;
}

@font-face {
    font-family: lalezar;
    src: url(font/Digi\ Lalezar\ Plus.ttf) format('truetype');
    font-display: swap;
}

/* ==================== BASE ==================== */
body {
    font-family: var(--font-vazir);
    color: var(--color-blue);
    overflow-x: hidden;
    line-height: 1.8;
}

a {
    text-decoration: none;
    color: var(--color-text);
    transition: color 0.2s ease;
}

a:hover {
    color: var(--color-main);
}

p {
    line-height: 1.9;
}

h1, h2, h3 {
    line-height: 1.5;
}

/* دسترسی‌پذیری */
a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--color-main);
    outline-offset: 3px;
    border-radius: 6px;
}

/* ==================== NAVBAR ==================== */
.header {
    padding: 10px 20px;
}

.navbar {
    display: flex;
    justify-content: center;
    padding: 10px;
}

.navbar ul {
    list-style: none;
    display: flex;
    padding: 10px 20px;
    gap: 70px;
    border-radius: 100px;
}

.navbar ul li {
    list-style: none;
}

.home {
    background-color: var(--color-main);
    border-radius: 30px;
    padding: 4px 12px;
    color: var(--background-color) !important;
}

.home:hover {
    color: var(--background-color) !important;
    opacity: 0.9;
}

/* ==================== HERO SECTION ==================== */
.hero-section {
    background-color: var(--background-color2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 40px 20px;
}

.right {
    width: 50%;
    margin: 20px;
}

.right h1 {
    text-align: right;
    font-size: 32px;
    margin-bottom: 15px;
}

.right h2 {
    color: var(--color-main);
    text-align: right;
    padding: 15px 0;
    font-size: 20px;
}

.right p {
    text-align: right;
    padding: 15px 0;
}

.left {
    width: 50%;
    display: flex;
    justify-content: center;
}

.image {
    border-radius: 20px;
    max-width: 100%;
    height: auto;
}

.btn-wrapper {
    margin-top: 20px;
    text-align: right;
}

.hero-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 200px;
    height: 50px;
    font-size: 18px;
    font-family: var(--font-vazir);
    background-color: var(--background-color3);
    color: var(--background-color) !important;
    border-radius: 20px;
    box-shadow: 6px 3px 20px 1px var(--background-color3);
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.hero-button:hover {
    transform: translateY(-3px);
    opacity: 0.95;
    color: var(--background-color) !important;
}

/* ==================== FAQ SECTION ==================== */
.faq {
    padding: 60px 20px;
    background-color: var(--background-color2);
}

.section-title {
    text-align: center;
    font-size: 30px;
    margin-bottom: 30px;
}

.boxs {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin: 40px auto;
    flex-wrap: wrap;
    max-width: 1100px;
}

.box {
    background-color: #ffffff;
    width: 350px;
    min-height: 170px;
    border-radius: 15px;
    box-shadow: var(--box-shadow);
    padding: 25px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.box h2,
.box h3 {
    text-align: center;
    font-size: 18px;
    margin-bottom: 12px;
    color: var(--color-main);
}

.box p {
    text-align: center;
    font-size: 14px;
    padding: 0;
    margin: 0;
    color: var(--color-blue);
}

/* ==================== SERVICES SECTION ==================== */
.services {
    background-color: #bb53336b;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    padding: 60px 100px;
}

.left2 {
    width: 50%;
}

.right2 {
    width: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: right;
}

.right2 div h1 {
    font-size: 26px;
    margin-bottom: 15px;
}

.right2 div p {
    font-size: 15px;
}

.left2 .box {
    width: 100%;
    max-width: 400px;
    margin: 20px auto;
}

.hero2-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-blue);
    color: var(--background-color) !important;
    width: 260px;
    height: 55px;
    font-size: 24px;
    font-family: var(--font-lalezar);
    border-radius: 20px;
    border: none;
    margin: 30px auto;
    box-shadow: 1px 2px 10px var(--color-blue);
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.hero2-button:hover {
    transform: translateY(-3px);
    opacity: 0.95;
    color: var(--background-color) !important;
}

/* ==================== ABOUT SECTION ==================== */
.about {
    padding: 80px 30px;
    text-align: center;
}

.about h3 {
    color: var(--color-main);
    font-size: 18px;
    margin-bottom: 10px;
}

.about h1 {
    font-size: 28px;
    margin-bottom: 20px;
}

.about p {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 15px;
}

/* ==================== FOOTER ==================== */
.contact {
    background-color: var(--background-color3);
    color: #000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 50px;
    padding: 50px 30px;
    flex-wrap: wrap;
}

.part1,
.part2,
.part3 {
    min-width: 200px;
}

.part1,
.part2 {
    width: 22%;
}

.part3 {
    width: 40%;
}

.contact h2 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #fff;
}

.contact ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact ul li {
    margin-bottom: 8px;
}

.contact ul li a {
    color: #000;
    font-size: 14px;
}

.contact ul li a:hover {
    color: var(--color-blue);
}

.part3 p {
    font-size: 14px;
    margin-bottom: 15px;
    color: #000;
    text-align: right;
}

.socials {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.socials li {
    margin: 0;
}

.contact img {
    width: 35px;
    height: 35px;
    border-radius: 100px;
    object-fit: cover;
    transition: transform 0.2s ease;
}

.contact img:hover {
    transform: scale(1.15);
}

/* ==================== TABLET (601px - 1023px) ==================== */
@media (min-width: 601px) and (max-width: 1023px) {
    .navbar {
        font-size: 14px;
    }

    .navbar ul {
        gap: 30px;
    }

    .hero-section {
        padding: 30px;
    }

    .right h1 {
        font-size: 24px;
    }

    .right h2 {
        font-size: 17px;
    }

    .hero-button {
        width: 170px;
        font-size: 16px;
    }

    .faq {
        padding: 40px 20px;
    }

    .section-title {
        font-size: 26px;
    }

    .boxs {
        gap: 25px;
        margin: 25px auto;
    }

    .box {
        width: 45%;
        min-width: 240px;
    }

    .services {
        flex-direction: column;
        padding: 40px 30px;
        gap: 30px;
    }

    .left2,
    .right2 {
        width: 100%;
    }

    .left2 .box {
        max-width: 500px;
    }

    .hero2-button {
        width: 220px;
        height: 50px;
        font-size: 20px;
    }

    .about {
        padding: 60px 30px;
    }

    .contact {
        gap: 30px;
        padding: 40px 30px;
    }

    .part1,
    .part2 {
        width: 28%;
    }

    .part3 {
        width: 100%;
    }
}

/* ==================== MOBILE (max-width: 600px) ==================== */
@media (max-width: 600px) {
    body {
        font-size: 14px;
    }

    /* NAVBAR */
    .header {
        padding: 8px;
    }

    .navbar ul {
        gap: 12px;
        padding: 8px 10px;
        flex-wrap: wrap;
        justify-content: center;
        font-size: 12px;
    }

    /* HERO */
    .hero-section {
        flex-direction: column-reverse;
        padding: 20px 15px;
        gap: 10px;
    }

    .right,
    .left {
        width: 100%;
        margin: 0;
    }

    .right h1 {
        font-size: 20px;
        text-align: center;
    }

    .right h2 {
        font-size: 14px;
        text-align: center;
        padding: 10px 0;
    }

    .right p {
        font-size: 13px;
        text-align: justify;
        padding: 10px 0;
    }

    .image {
        width: 100%;
        border-radius: 12px;
    }

    .btn-wrapper {
        text-align: center;
    }

    .hero-button {
        width: 170px;
        height: 45px;
        font-size: 15px;
    }

    /* FAQ */
    .faq {
        padding: 30px 15px;
    }

    .section-title {
        font-size: 22px;
        margin-bottom: 20px;
    }

    .boxs {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        margin: 20px auto;
    }

    .box {
        width: 100%;
        max-width: 340px;
        min-height: auto;
        padding: 20px 15px;
    }

    .box h2,
    .box h3 {
        font-size: 16px;
    }

    .box p {
        font-size: 13px;
    }

    /* SERVICES */
    .services {
        flex-direction: column;
        padding: 30px 15px;
        gap: 20px;
    }

    .left2,
    .right2 {
        width: 100%;
    }

    .left2 .box {
        max-width: 100%;
    }

    .right2 div h1 {
        font-size: 18px;
        text-align: center;
    }

    .right2 div p {
        text-align: justify;
        font-size: 13px;
    }

    .hero2-button {
        width: 200px;
        height: 50px;
        font-size: 18px;
        margin: 20px auto;
    }

    /* ABOUT */
    .about {
        padding: 40px 15px;
    }

    .about h3 {
        font-size: 15px;
    }

    .about h1 {
        font-size: 20px;
    }

    .about p {
        font-size: 13px;
        text-align: justify;
    }

    /* FOOTER */
    .contact {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 30px 20px;
        gap: 25px;
    }

    .part1,
    .part2,
    .part3 {
        width: 100%;
        min-width: auto;
    }

    .contact h2 {
        text-align: center;
        font-size: 16px;
    }

    .contact ul li a {
        font-size: 13px;
    }

    .part3 p {
        text-align: justify;
        font-size: 13px;
    }

    .socials {
        justify-content: center;
    }

    .contact img {
        width: 38px;
        height: 38px;
    }
}