﻿/* ==========================================
   layout.css
   Global Styles
   ========================================== */

html {
    scrollbar-width: none; /* Firefox */

    -ms-overflow-style: none; /* IE */
}

    html::-webkit-scrollbar {
        display: none;
    }
/* ========= Variables ========= */

:root {
    --primary: #0f172a;
    --secondary: #334155;
    --accent: #2563eb;
    --success: #16a34a;
    --danger: #dc2626;
    --warning: #f59e0b;
    --text: #1f2937;
    --text-light: #64748b;
    --border: #e5e7eb;
    --background: #ffffff;
    --background-soft: #f8fafc;
    --radius: 12px;
    --container: 1280px;
    --transition: .25s ease;
}


/* ========= Reset ========= */

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}


body {
    direction: rtl;
    font-family: system-ui, sans-serif;
    background: var(--background);
    color: var(--text);
    line-height: 1.8;
    font-size: 15px;
    overflow-x: hidden;
}


/* ========= Selection ========= */

::selection {
    background: var(--accent);
    color: #fff;
}


/* ========= Links ========= */

a {
    color: inherit;
    text-decoration: none;
}


/* ========= Images ========= */

img {
    display: block;
    max-width: 100%;
    height: auto;
}


/* ========= Lists ========= */

ul,
ol {
    list-style: none;
}


/* ========= Buttons ========= */

button {
    font: inherit;
    cursor: pointer;
    border: none;
    background: none;
}


/* ========= Inputs ========= */

input,
textarea,
select {
    font: inherit;
    outline: none;
}


/* ========= Main ========= */

.site-main {
    min-height: calc(100vh - 56px);
}


/* ========= Container ========= */

.container {
    width: 100%;
    max-width: var(--container);
    margin: auto;
    padding-inline: 20px;
}


/* ========= Sections ========= */

.section {
    padding: 80px 0;
}


.section-title {
    font-size: 32px;
    margin-bottom: 24px;
    color: var(--primary);
}


.section-subtitle {
    color: var(--text-light);
    margin-bottom: 40px;
}


/* ========= Buttons ========= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: var(--radius);
    transition: var(--transition);
}


.btn-primary {
    background: var(--primary);
    color: #fff;
}


    .btn-primary:hover {
        background: #1e293b;
    }


.btn-outline {
    border: 1px solid var(--border);
}


    .btn-outline:hover {
        background: #f5f5f5;
    }


/* ========= Tables ========= */

table {
    width: 100%;
    border-collapse: collapse;
}


th,
td {
    padding: 12px;
    border: 1px solid var(--border);
    text-align: right;
}


/* ========= Forms ========= */

.form-group {
    margin-bottom: 20px;
}


.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
}


    .form-control:focus {
        border-color: var(--accent);
    }


/* ========= Utilities ========= */

.text-center {
    text-align: center;
}


.text-start {
    text-align: right;
}


.text-end {
    text-align: left;
}


.mt-1 {
    margin-top: 8px;
}

.mt-2 {
    margin-top: 16px;
}

.mt-3 {
    margin-top: 24px;
}

.mt-4 {
    margin-top: 32px;
}

.mb-1 {
    margin-bottom: 8px;
}

.mb-2 {
    margin-bottom: 16px;
}

.mb-3 {
    margin-bottom: 24px;
}

.mb-4 {
    margin-bottom: 32px;
}

.p-1 {
    padding: 8px;
}

.p-2 {
    padding: 16px;
}

.p-3 {
    padding: 24px;
}

.p-4 {
    padding: 32px;
}


/* ========= Flex ========= */

.d-flex {
    display: flex;
}

.justify-between {
    justify-content: space-between;
}

.justify-center {
    justify-content: center;
}

.align-center {
    align-items: center;
}

.flex-column {
    flex-direction: column;
}

.flex-wrap {
    flex-wrap: wrap;
}

.gap-1 {
    gap: 8px;
}

.gap-2 {
    gap: 16px;
}

.gap-3 {
    gap: 24px;
}


/* ========= Grid ========= */

.grid {
    display: grid;
    gap: 24px;
}


.grid-2 {
    grid-template-columns: repeat(2,1fr);
}


.grid-3 {
    grid-template-columns: repeat(3,1fr);
}


.grid-4 {
    grid-template-columns: repeat(4,1fr);
}


/* ========= Scrollbar ========= */

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-thumb {
    background: #d4d4d4;
    border-radius: 50px;
}


/* ========= Responsive ========= */

@media(max-width:992px) {

    .grid-4 {
        grid-template-columns: repeat(2,1fr);
    }

    .grid-3 {
        grid-template-columns: repeat(2,1fr);
    }

    .section {
        padding: 60px 0;
    }
}


@media(max-width:768px) {

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .container {
        padding-inline: 16px;
    }

    .section-title {
        font-size: 26px;
    }
}

/* ==========================
   FLOATING ACTIONS
   ========================== */

.floating-actions {
    position: fixed;
    left: 25px;
    bottom: 80px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 9999;
}

/* WhatsApp */

.floating-whatsapp {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #25d366;
    color: #fff;
    font-size: 1.2rem;
    box-shadow: 0 10px 25px rgba(0,0,0,.2);
    transition: .3s;
}

    .floating-whatsapp:hover {
        transform: translateY(-4px);
        color: #fff;
    }

/* Phone */

.phone-wrapper {
    position: relative;
}

.floating-phone {
    width: 60px;
    height: 60px;
    border: none;
    border-radius: 50%;
    background: #2563eb;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0,0,0,.2);
}

/* Phone Menu */

.phone-menu {
    position: absolute;
    bottom: 75px;
    left: 0;
    min-width: 220px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 10px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: .3s;
}

    .phone-menu.show {
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .phone-menu a {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 12px;
        border-radius: 10px;
        color: var(--text);
        transition: .3s;
    }

        .phone-menu a:hover {
            background: var(--surface-2);
        }

    .phone-menu i {
        color: var(--primary);
    }

/* ==========================
   css های مربوط به _Header
   ========================== */

/* ==========================================
   HEADER.CSS
   Part 1
   ========================================== */

/* ============ Variables ============ */

:root {
    --header-height: 56px;
    --color-primary: #0f172a;
    --color-secondary: #1e293b;
    --color-text: #1f2937;
    --color-muted: #6b7280;
    --color-bg: #ffffff;
    --color-bg-soft: #f8fafc;
    --color-border: #e5e7eb;
    --color-hover: #f3f4f6;
    --shadow-sm: 0 2px 8px rgba(0,0,0,.06);
    --shadow-lg: 0 12px 40px rgba(0,0,0,.08);
    --radius: 12px;
    --transition: .25s ease;
}


/* ============ Reset ============ */

.site-header *,
.site-header *::before,
.site-header *::after {
    box-sizing: border-box;
}

.site-header a {
    color: inherit;
    text-decoration: none;
}

.site-header ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-header button {
    font: inherit;
    background: none;
    border: none;
    cursor: pointer;
}


/* ============ Header ============ */

.site-header {
    position: sticky;
    top: 0;
    right: 0;
    left: 0;
    height: var(--header-height);
    background: var(--color-bg);
    border-bottom: 1px solid blue;
    box-shadow: 0 8px 20px rgba(0,0,0,.9);
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    z-index: 1000;
}


/* ============ Container ============ */

.header-container {
    max-width: 1400px;
    height: 100%;
    margin: auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}


/* ============ Logo ============ */

.site-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

    .site-logo img {
        width: 42px;
        height: 42px;
        object-fit: contain;
    }

.site-brand {
    display: flex;
    flex-direction: column;
}

.site-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1.2;
}

.site-brand small {
    font-size: 12px;
    color: darkblue;
}


/* ============ Desktop Menu ============ */

.desktop-nav {
    height: 100%;
}

.desktop-menu {
    display: flex;
    align-items: center;
    gap: 28px;
    height: 100%;
}

    .desktop-menu > li {
        position: relative;
        height: 100%;
        display: flex;
        align-items: center;
    }

        .desktop-menu > li > a,
        .menu-button {
            height: 100%;
            display: flex;
            align-items: center;
            gap: 8px;
            color: var(--color-text);
            font-size: 15px;
            transition: var(--transition);
        }

            .desktop-menu > li > a:hover,
            .menu-button:hover {
                color: var(--color-primary);
            }


/* ============ CSS Arrow ============ */

.menu-arrow {
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: .3s;
}

.has-dropdown:hover .menu-arrow,
.has-mega:hover .menu-arrow {
    transform: rotate(225deg);
}


/* ============ Mega Base ============ */

.has-mega {
    position: relative;
}

.has-dropdown {
    position: relative;
}


/* ==========================================
   HEADER.CSS
   Part 2
   Mega Menu + Dropdown
   ========================================== */


/* ==========================
   Mega Menu
========================== */

.mega-menu {
    position: absolute;
    top: 100%;
    left: -360px;
    width: 1400px;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 32px;
    padding: 28px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: opacity .25s, transform .25s, visibility .25s;
    z-index: 500;
}


/* Hover */

.has-mega:hover > .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}


/* ==========================
   Mega Column
========================== */

.mega-column {
    display: flex;
    flex-direction: column;
}


    .mega-column h4 {
        margin: 0 0 14px;
        font-size: 15px;
        font-weight: 700;
        color: darkblue;
    }


    .mega-column a {
        padding: 9px 0;
        color: var(--color-muted);
        font-size: 14px;
        transition: var(--transition);
    }


        .mega-column a:hover {
            color: var(--color-primary);
            padding-right: 8px;
        }


/* ==========================
   Blog Dropdown
========================== */

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    width: 230px;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity .25s, transform .25s, visibility .25s;
    z-index: 500;
}


.has-dropdown:hover > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}


/* ==========================
   Dropdown Links
========================== */

.dropdown-menu li {
    border-bottom: 1px solid #f3f4f6;
}

    .dropdown-menu li:last-child {
        border-bottom: none;
    }


.dropdown-menu a {
    display: block;
    padding: 14px 18px;
    font-size: 14px;
    color: var(--color-text);
    transition: var(--transition);
}


    .dropdown-menu a:hover {
        background: var(--color-hover);
        color: var(--color-primary);
        padding-right: 24px;
    }


/* ==========================
   Active Menu
========================== */

.desktop-menu > li > a.active,
.menu-button.active {
    color: var(--color-primary);
    font-weight: 600;
}


/* ==========================
   Hover Underline
========================== */

.desktop-menu > li > a,
.menu-button {
    position: relative;
}


    .desktop-menu > li > a::after,
    .menu-button::after {
        content: "";
        position: absolute;
        right: 0;
        bottom: 0;
        width: 0;
        height: 2px;
        background: var(--color-primary);
        transition: .25s;
    }


.desktop-menu > li:hover > a::after,
.has-dropdown:hover > .menu-button::after,
.has-mega:hover > .menu-button::after {
    width: 100%;
}

/* ==========================================
   HEADER.CSS
   Part 3
   Mobile Menu
   ========================================== */


/* ==========================
   Mobile Menu Button
========================== */

.mobile-menu-button {
    display: none;
    width: 42px;
    height: 42px;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
    position: relative;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

    .mobile-menu-button span {
        display: block;
        width: 22px;
        height: 2px;
        background: var(--color-primary);
        border-radius: 2px;
        transition: .3s;
    }


/* ==========================
   Overlay
========================== */

.menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    opacity: 0;
    visibility: hidden;
    transition: .3s;
    z-index: 1990;
}

    .menu-overlay.show {
        opacity: 1;
        visibility: visible;
    }


/* ==========================
   Mobile Drawer
========================== */

.mobile-menu {
    position: fixed;
    top: 0;
    right: -340px;
    width: 300px;
    max-width: 90vw;
    height: 100vh;
    background: #fff;
    box-shadow: -10px 0 35px rgba(0,0,0,.12);
    transition: right .35s ease;
    display: flex;
    flex-direction: column;
    z-index: 2000;
}

    .mobile-menu.show {
        right: 0;
    }


/* ==========================
   Mobile Header
========================== */

.mobile-header {
    height: 56px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 18px;
    border-bottom: 1px solid var(--color-border);
}

.mobile-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

    .mobile-brand img {
        width: 40px;
        height: 40px;
        object-fit: contain;
    }

    .mobile-brand strong {
        display: block;
        font-size: 15px;
        color: var(--color-primary);
    }

    .mobile-brand small {
        display: block;
        color: var(--color-muted);
        font-size: 12px;
    }


/* ==========================
   Close Button
========================== */

.close-menu {
    width: 38px;
    height: 38px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 24px;
    color: var(--color-primary);
}


/* ==========================
   Navigation
========================== */

.mobile-nav {
    flex: 1;
    overflow: auto;
    padding: 10px 0;
}

    .mobile-nav > a {
        display: flex;
        align-items: center;
        padding: 16px 22px;
        color: var(--color-text);
        transition: .25s;
    }

        .mobile-nav > a:hover {
            background: var(--color-hover);
        }


/* ==========================
   Dropdown
========================== */

.mobile-dropdown {
    border-top: 1px solid #f5f5f5;
}

.mobile-dropdown-button {
    width: 100%;
    height: 54px;
    padding: 0 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-text);
    font-size: 15px;
}

    .mobile-dropdown-button:hover {
        background: var(--color-hover);
    }


/* ==========================
   Dropdown Content
========================== */

.mobile-dropdown-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease;
    background: #fafafa;
}

.mobile-dropdown.open .mobile-dropdown-content {
    max-height: 500px;
}


.mobile-dropdown-content a {
    display: block;
    padding: 14px 38px;
    font-size: 14px;
    color: var(--color-muted);
    transition: .25s;
}

    .mobile-dropdown-content a:hover {
        color: var(--color-primary);
        background: #f3f4f6;
    }


/* ==========================
   Rotate Arrow
========================== */

.mobile-dropdown.open .menu-arrow {
    transform: rotate(225deg);
}


/* ==========================
   Footer
========================== */

.mobile-footer {
    border-top: 1px solid var(--color-border);
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mobile-call,
.mobile-whatsapp {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 46px;
    border-radius: 10px;
    transition: .25s;
}

.mobile-call {
    background: var(--color-primary);
    color: #fff;
}

    .mobile-call:hover {
        background: #1f2937;
    }

.mobile-whatsapp {
    border: 1px solid var(--color-border);
}

    .mobile-whatsapp:hover {
        background: #f7f7f7;
    }

/* ==========================================
   HEADER.CSS
   Part 4
   Responsive + Utilities
   ========================================== */


/* ==========================
   Tablet & Mobile
========================== */

@media (max-width:991px) {

    .desktop-nav {
        display: none;
    }

    .mobile-menu-button {
        display: flex;
    }

    .header-container {
        padding: 0 16px;
    }

    .site-title {
        font-size: 16px;
    }

    .site-brand small {
        font-size: 11px;
    }
}


/* ==========================
   Desktop
========================== */

@media (min-width:992px) {

    .mobile-menu,
    .menu-overlay {
        display: none;
    }
}


/* ==========================
   Large Desktop
========================== */

@media (min-width:1200px) {

    .header-container {
        max-width: 1320px;
    }
}


/* ==========================
   Extra Large
========================== */

@media (min-width:1440px) {

    .header-container {
        max-width: 1400px;
    }
}


/* ==========================
   Mega Menu Responsive
========================== */

@media (max-width:1200px) {

    .mega-menu {
        width: 760px;
        grid-template-columns: repeat(4,1fr);
        gap: 20px;
    }
}


@media (max-width:1050px) {

    .mega-menu {
        width: 680px;
    }
}


/* ==========================
   Hamburger Animation
========================== */

.mobile-menu-button.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-button.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-button.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}


/* ==========================
   Prevent Scroll
========================== */

body.menu-open {
    overflow: hidden;
}


/* ==========================
   Keyboard Focus
========================== */

.site-header a:focus-visible,
.site-header button:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 3px;
    border-radius: 6px;
}


/* ==========================
   Smooth Images
========================== */

.site-header img {
    display: block;
    max-width: 100%;
}


/* ==========================
   Selection
========================== */

.site-header ::selection {
    background: #2563eb;
    color: #fff;
}


/* ==========================
   Reduce Motion
========================== */

@media (prefers-reduced-motion:reduce) {

    * {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}


/* ==========================
   Print
========================== */

@media print {

    .site-header,
    .mobile-menu,
    .menu-overlay {
        display: none !important;
    }
}

/* ==========================
   css های مربوط به icons
========================== */


/* ==========================================
   icons.css
   SVG Icon System
   CoolingTower-Fills
   ========================================== */
/* ==========================
   Base Icon
========================== */
.icon {
    width: 20px;
    height: 20px;
    display: inline-flex;
    flex-shrink: 0;
    vertical-align: middle;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: all .25s ease;
}


/* ==========================
   Sizes
========================== */

.icon-xs {
    width: 14px;
    height: 14px;
}

.icon-sm {
    width: 18px;
    height: 18px;
}

.icon-md {
    width: 20px;
    height: 20px;
}

.icon-lg {
    width: 28px;
    height: 28px;
}

.icon-xl {
    width: 36px;
    height: 36px;
}

.icon-2xl {
    width: 48px;
    height: 48px;
}


/* ==========================
   Colors
========================== */

.icon-primary {
    color: #2563eb;
}

.icon-success {
    color: #16a34a;
}

.icon-danger {
    color: #dc2626;
}

.icon-warning {
    color: #f59e0b;
}

.icon-muted {
    color: #94a3b8;
}

.icon-white {
    color: #ffffff;
}


/* ==========================
   Rotate
========================== */

.rotate-90 {
    transform: rotate(90deg);
}

.rotate-180 {
    transform: rotate(180deg);
}

.rotate-270 {
    transform: rotate(270deg);
}


/* ==========================
   Flip
========================== */

.flip-x {
    transform: scaleX(-1);
}

.flip-y {
    transform: scaleY(-1);
}


/* ==========================
   Hover
========================== */

.icon-hover:hover {
    color: #2563eb;
    transform: scale(1.1);
}


/* ==========================
   Circle Button
========================== */

.icon-circle {
    width: 42px;
    height: 42px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    border: 1px solid #e5e7eb;
    transition: .25s;
}


    .icon-circle:hover {
        background: #2563eb;
        border-color: #2563eb;
        color: #fff;
    }


/* ==========================
   Square Button
========================== */

.icon-square {
    width: 42px;
    height: 42px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    transition: .25s;
}


    .icon-square:hover {
        background: #2563eb;
        border-color: #2563eb;
        color: #fff;
    }


/* ==========================
   Navigation Links
========================== */

.footer-link .icon {
    margin-left: 10px;
}


.navigate-btn .icon {
    margin-left: 8px;
}


.desktop-nav .icon,
.mobile-nav .icon {
    margin-right: 8px;
}


/* ==========================
   Dropdown Arrow
========================== */

.menu-arrow {
    transition: transform .3s ease;
}


.mobile-dropdown.open .menu-arrow {
    transform: rotate(180deg);
}


/* ==========================
   Social Icons
========================== */

.social-links .icon {
    width: 22px;
    height: 22px;
}


/* ==========================
   Icon Buttons
========================== */

.icon-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}


/* ==========================
   Disabled
========================== */

.icon-disabled {
    opacity: .35;
    pointer-events: none;
}


/* ==========================
   Animation
========================== */

@keyframes iconPulse {

    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.15);
    }

    100% {
        transform: scale(1);
    }
}


.icon-pulse:hover {
    animation: iconPulse .5s ease;
}


/* ==========================
   Responsive
========================== */

@media(max-width:768px) {

    .icon-lg {
        width: 24px;
        height: 24px;
    }

    .icon-xl {
        width: 30px;
        height: 30px;
    }
}
