/* فایل style.css */

/* Site Notice Styles */
.site-notice {
    background-color: #ffc107;
    padding: 0.75rem;
    text-align: center;
    position: relative;
    z-index: 1000;
}

.site-notice-text {
    color: #000;
    margin: 0;
    font-size: 0.95rem;
    font-weight: 500;
}

/*
  Color Palette:
    Primary Color: #007bff (آبی اصلی)
    Secondary Color: #0056b3 (آبی تیره)
    Text Color: #333 (خاکستری تیره)
    Background Color: #f8f8f8 (خاکستری روشن)
    Footer Background Color: #343a40 (خاکستری خیلی تیره)
    Footer Text Color: #fff (سفید)
*/
:root {
    --primary-color: #28a745;
    --primary-hover: #218838;
    --secondary-color: #6c757d;
    --dark-color: #343a40;
    --light-color: #f8f9fa;
    --light-border: #e4e7ea;
    --card-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --transition-speed: 0.3s;
    --border-radius: 0.5rem;
    --container-width: 1200px;
    --font-family: 'IRANSansWeb', sans-serif;
    --text-color: #333;
    --background-color: #f8f8f8;
    --footer-bg-color: #343a40;
    --footer-text-color: #fff;
    --box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    --box-shadow-hover: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Reset & Basic Styles */
*, *::before, *::after {
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    line-height: 1.7;
    direction: rtl;
    background-color: var(--background-color);
    color: var(--text-color);
    font-size: 1rem;
    overflow-x: hidden;
}

ul, ol {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

input, button, textarea, select {
    font: inherit;
}

.container {
    width: min(90%, 1200px);
    margin-inline: auto;
    padding-inline: 1rem;
}

/* Fonts */
@font-face {
    font-family: 'IRANSansWeb';
    src: local('IRANSansWeb'),
         url('../fonts/woff2/IRANSansWeb_FaNum_Medium.woff2') format('woff2'),
         url('../fonts/woff/IRANSansWeb_FaNum_Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0600-06FF;
    font-feature-settings: "kern" 1;
    font-synthesis: none;
}

@font-face {
    font-family: 'IRANSansWeb';
    src: local('IRANSansWeb'),
         url('../fonts/woff2/IRANSansWeb_FaNum_Bold.woff2') format('woff2'),
         url('../fonts/woff/IRANSansWeb_FaNum_Bold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0600-06FF;
    font-feature-settings: "kern" 1;
    font-synthesis: none;
}

/* Header Styles */
.header {
    background-color: #fff;
    padding-block: 1rem;
    border-bottom: 1px solid #eee;
    position: relative;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 1.5rem;
    font-weight: bold;
}

.main-nav ul {
    display: flex;
    gap: 2rem;
}

.main-nav a {
    padding: 0.5rem 1rem;
    display: block;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: var(--primary-color);
}

.nav-toggle-btn {
    display: none;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 0.5rem;
}

.nav-toggle-icon {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin-bottom: 5px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle-btn.active .nav-toggle-icon:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.nav-toggle-btn.active .nav-toggle-icon:nth-child(2) {
    opacity: 0;
}

.nav-toggle-btn.active .nav-toggle-icon:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Hero Section Styles */
.hero {
    background-color: #e9ecef;
    padding-block: 4rem;
    text-align: center;
}

.hero-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #555;
}

.hero-cta {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: #0056b3;
    color: #fff;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.hero-cta:hover {
    background-color: #004080;
}

/* Services Section Styles */
.services {
    padding-block: 4rem;
}

.services-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 1rem;
}

.services-description {
    text-align: center;
    color: #555;
    margin-bottom: 2rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.service-item {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: transform var(--transition-speed) ease, 
                box-shadow var(--transition-speed) ease;
    display: flex;
    flex-direction: column;
    min-height: 350px;
    will-change: transform, box-shadow;
    contain: content;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-hover);
}

.service-name {
    padding: 1rem;
    text-align: center;
    background-color: #f0f0f0;
}

.service-name-link {
    font-weight: bold;
    display: block;
}

.service-item-link {
    display: block;
    padding: 1.5rem;
    text-align: center;
    flex: 1;
}

.service-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 1rem;
    object-fit: contain;
    margin-inline: auto;
}

.service-desc {
    color: #666;
}

.service-cta {
    display: block;
    width: 100%;
    padding: 1rem;
    background-color: #1e7e34;
    color: #fff;
    border: none;
    border-radius: 0 0 8px 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-align: center;
    text-decoration: none;
    margin-top: auto;
}

.service-cta:hover {
    background-color: #155724;
}

/* Referral Links Section Styles */
.referral-links {
    padding-block: 2rem;
    background-color: #fff;
}

.referral-links-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 1rem;
}

.referral-links-description {
    text-align: center;
    color: #555;
    margin-bottom: 2.5rem;
    font-size: 1.2rem;
}

.referral-links-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    padding: 0 2rem;
    margin: 0;
    list-style: none;
}

.referral-link-item {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    transition: all var(--transition-speed) ease;
    box-shadow: var(--box-shadow);
    will-change: transform, box-shadow;
    contain: content;
}

.referral-link-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--box-shadow-hover);
    border-color: var(--primary-color);
}

.referral-link {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    color: #333;
    text-decoration: none;
    height: 100%;
}

.referral-link-icon {
    width: 24px;
    height: 24px;
    background-image: url('../images/svg/tick2.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    order: 0;
}

.referral-link-text {
    font-weight: 500;
    font-size: 1rem;
    color: #444;
    order: 1;
}

@media (max-width: 1200px) {
    .referral-links-list {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .referral-links-list {
        grid-template-columns: repeat(2, 1fr);
        padding: 0 1rem;
        gap: 1rem;
    }

    .referral-link {
        padding: 0.875rem;
    }

    .referral-link-icon {
        width: 20px;
        height: 20px;
    }

    .referral-link-text {
        font-size: 0.95rem;
    }
}

@media (max-width: 576px) {
    .referral-links-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
        padding: 0 0.5rem;
    }

    .referral-link-item {
        border-radius: 8px;
    }

    .referral-link {
        padding: 0.75rem;
        gap: 0.5rem;
    }

    .referral-link-icon {
        width: 18px;
        height: 18px;
    }

    .referral-link-text {
        font-size: 0.9rem;
    }
}

/* Video Intro Section Styles */
.video-intro {
    padding-block: 4rem;
    text-align: center;
    background-color: #fff;
}

.video-intro-title {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.video-intro-description {
    color: #555;
    margin-bottom: 2rem;
}

.video-container {
    max-width: 800px;
    margin-inline: auto;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.intro-video {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: block;
}

.video-caption {
    margin-top: 1rem;
    color: #666;
    font-style: italic;
    text-align: center;
    margin-bottom: 2rem;
}

.video-cta {
    margin-top: 1rem;
    padding: 1rem 2rem;
    background-color: #c82333;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: inline-block;
}

.video-cta:hover {
    background-color: #a71d2a;
}

/* About Section Styles */
.about {
    padding-block: 4rem;
    background-color: #fff;
}

.about-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-color);
}

.about-boxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 0 1rem;
}

.about-box {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.about-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.about-box-title {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.about-box-description {
    color: #666;
    line-height: 1.8;
}

@media (max-width: 768px) {
    .about {
        padding-block: 3rem;
    }
    
    .about-boxes {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .about-box {
        padding: 1.5rem;
    }
    
    .about-box-title {
        font-size: 1.3rem;
    }
}

/* Footer Styles */
.footer {
    background-color: var(--footer-bg-color);
    color: var(--footer-text-color);
    padding-block: 3rem;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-contact-info,
.footer-social,
.footer-copyright {
    padding: 1rem;
}

.footer-contact-title,
.footer-social-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #555;
    padding-bottom: 0.5rem;
}

.footer-contact-desc {
    color: #ddd;
    margin-bottom: 1rem;
}

.footer-contact-list {
    margin-bottom: 0.7rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-contact-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-icon {
    font-size: 1.1rem;
    color: #fff;
    margin-left: 0.5em;
}

.footer-contact-list a {
    color: #fff;
    transition: color 0.3s ease;
}

.footer-contact-list a:hover {
    color: #00bcd4;
}

.footer-social-title {
    margin-top: 1rem;
}

.footer-social-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-social-link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: #fff;
    transition: color 0.3s ease;
}

.footer-social-link:hover {
    color: #00bcd4;
}

.footer-social-link img {
    width: 25px;
    height: 25px;
    object-fit: contain;
}

.footer-copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #555;
}

.copyright-text,
.design-text {
    font-size: 0.9rem;
    color: #ccc;
    margin-bottom: 0.5rem;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .main-nav {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        background-color: #fff;
        padding: 1rem;
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: clip-path 0.3s ease;
        z-index: 100;
        width: auto;
        min-width: 200px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    }

    .main-nav.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }

    .main-nav ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        width: 100%;
    }

    .main-nav a {
        padding: 0.5rem 1rem;
        display: block;
        width: 100%;
    }

    .nav-toggle-btn {
        display: block;
    }

    .header-container {
        flex-direction: row;
        align-items: center;
    }

    .logo {
        margin-bottom: 0;
    }

    .hero {
        padding-block: 3rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .services {
        padding-block: 3rem;
    }

    .services-title {
        font-size: 1.8rem;
    }

    .video-intro {
        padding-block: 3rem;
    }

    .video-intro-title {
        font-size: 1.8rem;
    }

    .footer {
        padding-block: 2rem;
    }

    .footer-container {
        grid-template-columns: 1fr;
    }

    .footer-copyright {
        padding-top: 1rem;
    }
}