﻿:root {
    --header-h: 4rem;
    --shadow-1: 0 2px 14px rgba(0,0,0,.06);
    /* === Brand customs Palette === */
    --color-custom-dark: #1B3C53;
    --color-custom-medium: #234C6A;
    --color-custom-light: #456882;
    --color-custom-pale: #E3E3E3;
    /* === Background Variants === */
    --bg-custom-dark: var(--color-custom-dark);
    --bg-custom-medium: var(--color-custom-medium);
    --bg-custom-light: var(--color-custom-light);
    --bg-custom-pale: var(--color-custom-pale);
    /* === Text Variants === */
    --text-custom-dark: var(--color-custom-dark);
    --text-custom-medium: var(--color-custom-medium);
    --text-custom-light: var(--color-custom-light);
    --text-custom-pale: var(--color-custom-pale);
    /* === Neutral Colors === */
    --color-white: #f5f7f5;
    --color-black: #000000;
    --custom-bg: #f4f8fb;
}

@font-face {
    font-family: 'VazirFarsiDigits';
    src: url('/fonts/Vazir-FD-WOL.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'VazirFarsiDigits';
    src: url('/fonts/Vazir-Bold-FD-WOL.woff2') format('woff2');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'VazirFarsiDigits';
    src: url('/fonts/Vazir-Light-FD-WOL.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'VazirFarsiDigits';
    src: url('/fonts/Vazir-Medium-FD-WOL.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'VazirFarsiDigits';
    src: url('/fonts/Vazir-Thin-FD-WOL.woff2') format('woff2');
    font-weight: 100;
    font-style: normal;
}

body {
    font-family: 'VazirFarsiDigits', sans-serif;
    font-size: 1rem;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

html {
    direction: rtl;
    scroll-behavior: smooth;
    text-align: right;
}

.custom-max-width {
    max-width: 1140px;
    width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
}

/* === Text Colors === */
.custom-text-white {
    color: var(--color-white) !important;
}

.custom-text-black {
    color: var(--color-black) !important;
}

/* === Background Colors === */
.custom-bg-white {
    background-color: var(--color-white) !important;
}

.custom-bg-black {
    background-color: var(--color-black) !important;
}

.custom-bg-pale {
    background-color: var(--bg-custom-pale) !important;
}

/* === Text Colors === */
.text-custom-dark {
    color: var(--color-custom-dark) !important;
}

.text-custom-medium {
    color: var(--color-custom-medium) !important;
}

.text-custom-light {
    color: var(--color-custom-light) !important;
}

.text-custom-pale {
    color: var(--color-custom-pale) !important;
}

/* === Background Colors === */
.bg-custom-dark-hero {
    background-color: var(--color-custom-dark) !important;
    /*background-image: radial-gradient(rgba(0, 0, 0, 0.12) 1px, transparent 1px);*/
    background-size: 24px 24px;
}

.bg-custom-dark {
    background-color: var(--color-custom-dark) !important;
}

.bg-custom-medium {
    background-color: var(--color-custom-medium) !important;
}

.bg-custom-light {
    background-color: var(--color-custom-light) !important;
}

.bg-custom-pale {
    background-color: var(--color-custom-pale) !important;
}

.bg-custom {
    background-color: var(--custom-bg) !important;
}

.custom-border-bottom {
    border-bottom: 1px solid #c3c8c1;
    gap: 6px;
}

.lh-custom {
    line-height: 2;
}

main {
    flex: 1; /* main grows to fill remaining height */
}

.pointer {
    cursor: pointer;
}

/* full screen section, accounting for the sticky header height */
.screen-with-header {
    min-height: calc(100svh - var(--header-h));
    height: auto;
    display: flex;
    flex-direction: column;
}

/* ---- Header ---- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--bg-custom-dark);
    /*background-image: radial-gradient(rgba(0, 0, 0, 0.12) 1px, transparent 1px);*/
    background-size: 24px 24px;
    transition: background-color .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.header-inner {
    height: var(--header-h);
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    align-items: center;
    /* RTL row; logo appears at right naturally */
}

.logo-header {
    display: inline-block;
    width: 80px; /* Desired logo width */
}

    .logo-header img {
        width: 100%;
        height: auto;
        display: block;
    }


/* when scrolled */
.logo-text {
    right: 2rem;
    top: 50%;
    transform: translateY(-50%); /* vertically center */
}

.logo img {
    display: block;
    height: 4.5rem;
    width: auto;
}

/* Desktop nav (left side) */
.site-nav {
    margin-inline-start: auto; /* push nav to the left in RTL */
    display: flex;
    align-items: center;
}

.dropdown-toggle::after {
    display: none;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}

    .nav-list a:not(.btn-login):not(.btn-start) {
        text-decoration: none;
        padding: 10px 12px;
        border-radius: 10px;
        color: var(--color-white);
        font-weight: 500;
        transition: color .2s ease, background-color .2s ease;
    }

        .nav-list a:not(.btn-login):not(.btn-start):hover,
        .nav-list a:not(.btn-login):not(.btn-start):focus-visible {
            background: var(--bg-custom-pale);
            color: var(--text-custom-dark);
            outline: none;
        }

    .nav-list .dropdown-menu a {
        color: var(--text-custom-dark) !important;
    }

/* DropDown for menu */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    background: none;
    border: none;
    font-size: inherit;
    color: inherit;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    width: 850px;
    background: #fff;
    box-shadow: 0 15px 40px rgba(0,0,0,.08);
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    gap: 3rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all .35s ease;
    z-index: 1000;
}

.dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown.active .fa-chevron-down {
    transform: rotate(180deg);
    transition: .3s;
}

.dropdown-column {
    flex: 1;
}

    .dropdown-column h4 {
        font-size: 16px;
        font-weight: 700;
        margin-bottom: 0;
        text-align: right;
        color: var(--color-custom-dark, #1a1a2e);
    }

    .dropdown-column a {
        display: block;
        padding: 6px 0;
        text-decoration: none;
        text-align: right;
        color: #555;
        transition: all .2s ease;
    }

        .dropdown-column a:hover {
            color: var(--color-custom-medium, #0f3460);
            transform: translateX(-4px);
        }

    .dropdown-column .service-area {
        position: relative;
        padding-right: 2.5rem !important;
    }

        .dropdown-column .service-area::before {
            content: "•";
            position: absolute;
            right: 1.5rem;
            top: 50%;
            transform: translateY(-50%);
            font-size: 1rem;
        }

.btn-login {
    text-decoration: none;
    display: flex;
    align-items: center;
    border: 1px solid var(--color-white);
    padding: 0.5rem 1.5rem;
    border-radius: 2rem;
    transition: all 0.3s ease;
    cursor: pointer;
    background-color: transparent;
    color: var(--color-white);
    gap: 6px;
}
    /* scrolled (outline custgom) */
    .btn-login.scrolled {
        background-color: transparent;
        color: var(--color-custom-dark);
        border-color: #325343;
    }



    .btn-login:hover {
        border: 1px solid var(--color-custom-medium);
    }

.btn-start {
    font-weight: bold;
    text-decoration: none;
    display: flex;
    align-items: center;
    padding: 0.5rem 1.5rem;
    border-radius: 2rem;
    transition: all 0.3s ease;
    cursor: pointer;
    background-color: var(--bg-custom-medium);
    color: var(--text-custom-pale) !important;
    gap: 6px;
}

    .btn-start.scrolled {
        background-color: var(--bg-custom-medium);
        color: var(--text-custom-pale) !important;
    }

    .btn-start:hover {
        opacity: 0.8;
    }
/* Hamburger button (hidden on desktop) */
.menu-toggle {
    display: none; /* show on mobile */
    margin-inline-start: 12px; /* keeps it at far left in RTL */
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 12px;
    background: transparent;
    cursor: pointer;
}

    .menu-toggle .icon {
        width: 24px;
        height: 24px;
        display: block;
    }

    .menu-toggle .icon-close {
        display: none;
    }
/* default: show hamburger */
/* Backdrop for drawer */
.nav-backdrop {
    position: fixed;
    inset: var(--header-h) 0 0 0; /* do not cover header */
    background: rgba(0,0,0,.32);
    backdrop-filter: blur(1px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, visibility .25s ease;
    z-index: 900;
}

.custom-scroll-header {
    box-shadow: var(--shadow-1);
    border-bottom: 1px solid rgba(0,0,0,.06);
    background: var(--color-white);
}
/* Base */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .8s ease, transform .8s ease;
    will-change: opacity, transform;
}
    /* When visible */
    .reveal.in {
        opacity: 1;
        transform: none;
    }
    /* Variants */
    .reveal[data-reveal="fade-up"] {
        transform: translateY(24px);
    }

    .reveal[data-reveal="fade-right"] {
        transform: translateX(24px);
    }

    .reveal[data-reveal="zoom-in"] {
        transform: scale(.96);
    }

    .reveal.in[data-reveal="fade-up"],
    .reveal.in[data-reveal="fade-right"],
    .reveal.in[data-reveal="zoom-in"] {
        transform: none;
    }
    /* Optional: children stagger when parent is a grid/stack */
    .reveal.stagger > * {
        opacity: 0;
        transform: translateY(12px);
        transition: opacity .6s ease, transform .6s ease;
    }

    .reveal.in.stagger > * {
        opacity: 1;
        transform: none;
    }

        .reveal.in.stagger > *:nth-child(1) {
            transition-delay: 0ms;
        }

        .reveal.in.stagger > *:nth-child(2) {
            transition-delay: 60ms;
        }

        .reveal.in.stagger > *:nth-child(3) {
            transition-delay: 120ms;
        }

        .reveal.in.stagger > *:nth-child(4) {
            transition-delay: 180ms;
        }
/* WhatsApp Chat */
.wa-fab {
    position: fixed;
    left: 1rem; /* use left:16px for RTL if you prefer */
    bottom: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    z-index: 1055;
    transition: transform .15s ease, box-shadow .15s ease;
}

    .wa-fab:hover {
        transform: translateY(-2px);
    }
/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    .reveal,
    .reveal > * {
        transition: none !important;
        transform: none !important;
        opacity: 1 !important;
    }
}
/* ---- Mobile / Tablet ---- */
@media (max-width: 992px) {
    .lh-custom {
        line-height: 1.5;
    }

    .header-inner {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    /* turn nav into a left drawer */
    .site-nav {
        position: fixed;
        top: var(--header-h);
        inset-inline-start: 0; /* left edge in RTL-aware terms */
        width: min(84vw, 320px);
        height: calc(100dvh - var(--header-h));
        background: #fff;
        box-shadow: 0 10px 30px rgba(0,0,0,.12);
        border-inline-end: 1px solid rgba(0,0,0,.06);
        transform: translateX(100%);
        transition: transform .28s ease;
        display: block; /* vertical list */
        padding: 16px;
        overflow-y: auto;
        z-index: 950;
    }

    .nav-list {
        display: grid;
        gap: 1rem;
    }

    /* DropDown for menu */
    .dropdown-menu {
        position: static;
        width: 100%;
        box-shadow: none;
        border-radius: 0;
        padding: 0;
        flex-direction: column;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease;
        border: none;
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .dropdown.active .dropdown-menu {
        max-height: 2000px;
    }

    .dropdown-column h4 {
        padding-top: 1rem;
        font-size: 15px;
    }

    .btn-login {
        width: 100%;
        color: var(--color-white);
        border-color: #325343;
        justify-content: center;
        align-items: center;
    }

    .btn-start {
        width: 100%;
        background-color: var(--bg-custom-dark);
        color: var(--text-custom-pale);
        font-weight: normal;
        justify-content: center;
        align-items: center;
    }

    .nav-list a:not(.btn-login):not(.btn-start) {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 12px 14px;
        border-radius: 12px;
    }

    .nav-list i {
        display: inline-block;
    }
    /* When open */
    html.nav-open .site-nav {
        transform: translateX(0);
    }

    html.nav-open .nav-backdrop {
        opacity: 1;
        visibility: visible;
    }
    /* swap icons when open */
    html.nav-open .menu-toggle .icon-open {
        display: none;
    }

    html.nav-open .menu-toggle .icon-close {
        display: block;
    }
}

footer {
    background-color: #f5f7f5;
    border-top: 1px solid #e7ece7;
}
/* === Bootstrap class === */

.btn-close {
    margin: 0 !important;
}
/* --- Footer --- */
.site-footer {
    background: var(--color-white);
    border-top: 1px solid #e7ece7;
    position: relative;
}

    .site-footer a {
        color: var(--color-custom-dark);
        text-decoration: none;
    }

        .site-footer a:hover {
            color: var(--color-custom-medium);
        }

.footer-top h6 {
    font-weight: 700;
}

.footer-social {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: 1px solid #e7ece7;
    transition: transform .15s ease, background-color .2s ease;
}

    .footer-social:hover {
        background: var(--bg-custom-pale);
        transform: translateY(-1px);
    }

.newsletter .form-control {
    background: #fff;
    border-color: #dfe4df;
}

.newsletter .btn {
    background: var(--bg-custom-medium);
    color: var(--text-custom-pale);
    border: none;
}

    .newsletter .btn:hover {
        opacity: .9;
    }

.btn-to-top {
    position: fixed;
    z-index: 1030;
    inset-inline-start: 1rem;
    inset-block-end: 1.1rem;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: none;
    background: var(--bg-custom-light);
    color: var(--color-white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-1);
    cursor: pointer;
    transition: opacity 0.3s ease, transform 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

    .btn-to-top:hover {
        transform: translateY(-2px);
    }

    .btn-to-top.visible {
        display: flex;
        opacity: 1;
        transform: translateY(0);
    }


/*@media (max-width: 992px) {
    .btn-to-top {
        display: none;
        transition: opacity 0.3s ease, transform 0.3s ease;
        opacity: 0;
    }
}*/
