﻿/* =========================
   Variables
========================= */

:root {
    --primary-blue: #04567E;
    --secondary-blue: #007BFF;
    --dark-blue: #002147;
    --light-text: #F8F9FA;
    --light-gray: #E9ECEF;
}

/* =========================
   Base
========================= */

html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

@media (min-width:768px) {
    html {
        font-size: 16px;
    }
}

body {
    margin: 0;
    font-family: 'Vazirmatn', sans-serif;
    background-color: var(--light-text);
    color: var(--dark-blue);
}

main {
    padding-top: 0;
}

hr {
    display: none;
}

/* =========================
   Utility
========================= */

.bg-custom-primary {
    background-color: var(--primary-blue) !important;
}

.bg-light {
    background-color: var(--light-gray) !important;
}

/* =========================
   Buttons
========================= */

.btn-primary {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
}

    .btn-primary:hover {
        background-color: #034261;
        border-color: #02364e;
    }

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 .1rem white, 0 0 0 .25rem var(--secondary-blue);
}

/* =========================
   Navbar
========================= */

.navbar {
    min-height: 70px;
    border: none !important;
    box-shadow: none !important;
}
    .navbar .container {
        position: relative;
    }

.navbar-brand {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    color: #fff !important;
    font-weight: 700;
}

.logo-text {
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    white-space: nowrap;
}

.site-logo {
    width: 48px;
    height: 48px;
}

.navbar-collapse {
    justify-content: center;
}

.navbar-nav {
    margin: 0 auto;
}

    .navbar-nav .nav-link {
        color: #fff !important;
        font-size: 1rem;
        font-weight: 600;
        padding: .75rem 1rem !important;
        position: relative;
        transition: .3s;
    }

        .navbar-nav .nav-link::after {
            content: "";
            position: absolute;
            bottom: -4px;
            right: 50%;
            transform: translateX(50%);
            width: 0;
            height: 3px;
            background: #fff;
            transition: .3s;
        }

        .navbar-nav .nav-link:hover::after,
        .navbar-nav .nav-link.active::after {
            width: 40%;
        }

        .navbar-nav .nav-link.active {
            font-weight: 700;
        }

/* =========================
   Hero
========================= */

.hero-image {
    max-height: 600px;
    object-fit: cover;
}

.carousel-caption {
    background-color: rgba(0,0,0,.40);
    inset: 0;
    padding: 20px;
}

.hero-content h1,
.hero-content p {
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,.7);
}

.hero-company-name {
    display: none;
}

/* =========================
   Cards
========================= */

.card {
    border: none;
    box-shadow: 0 4px 8px rgba(0,0,0,.05);
    transition: .3s;
}

    .card:hover {
        transform: translateY(-5px);
    }

.card-title {
    color: var(--dark-blue);
    font-weight: bold;
}

.card-body .text-primary {
    color: var(--primary-blue) !important;
}

/* =========================
   Sections
========================= */

.equal-height-section {
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* =========================
   Footer
========================= */

.footer {
    background-color: var(--primary-blue);
    margin-top: 0;
}

.footer-bottom {
    color: #ffffff;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 400;
    padding: 18px 0;
    margin: 0;
}

@media (max-width: 768px) {

    .footer-bottom {
        font-size: 0.8rem;
        padding: 14px 10px;
        line-height: 1.8;
    }
}
/* =========================
   Mobile
========================= */

@media (max-width: 992px) {
    .navbar-brand {
        position: static;
        transform: none;
    }

    .logo-text {
        display: none;
    }

    .site-logo {
        width: 40px;
        height: 40px;
    }

    .navbar-collapse {
        text-align: center;
        margin-top: 10px;
    }

    .navbar-nav .nav-link {
        font-size: 1.05rem;
        padding: 10px 0 !important;
    }
}

@media (max-width: 768px) {

    .hero-image {
        height: 350px;
        object-fit: cover;
    }

    .carousel-caption {
        background-color: rgba(0,0,0,.55);
        padding: 15px;
    }

    .hero-company-name {
        display: block;
        color: #fff;
        font-size: 1rem;
        font-weight: 700;
        margin-bottom: 12px;
        text-shadow: 0 0 8px rgba(0,0,0,.9);
    }

    .hero-content h1 {
        font-size: 1.6rem !important;
        line-height: 1.4;
        margin-bottom: 10px;
        color: #fff;
        text-shadow: 0 0 10px rgba(0,0,0,.9);
    }

    .hero-content p {
        display: none;
    }

    .hero-content .btn {
        font-size: .9rem;
        padding: 8px 16px;
    }

    .footer-text {
        font-size: .8rem;
        font-weight: 700;
    }
}
.sajar-link {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 18px;
    border: 1px solid #04567E;
    border-radius: 6px;
    color: #04567E;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    transition: all .3s ease;
}

    .sajar-link:hover {
        background-color: #04567E;
        color: #ffffff;
    }

@media (min-width: 993px) {

    .navbar .container {
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
    }

    .navbar-collapse {
        flex-grow: 0;
    }

    .navbar-nav {
        margin: 0 auto;
    }
}
/* =========================
   Offcanvas Mobile Menu
========================= */

.offcanvas {
    background-color: #04567E;
}

.offcanvas-title {
    color: white;
    font-weight: 700;
}

.offcanvas .btn-close {
    filter: invert(1);
}

.offcanvas .nav-link {
    color: white !important;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,.15);
}

    .offcanvas .nav-link:hover {
        background-color: rgba(255,255,255,.08);
    }

@media (max-width: 992px) {

    .navbar-toggler {
        border: none;
        box-shadow: none !important;
    }
}