/*
Theme Name: Business 78
Author: behnam jafari
Description: قالب اختصاصی دارک و مدرن برای 78business.ir
Version: 1.0
*/

@font-face {
    font-family: 'Darbareh';
    src: url('assets/fonts/Darbareh Pro/Webfonts/Font Family WebFonts/fonts/woff2/darbarehWeb-Regular.woff2') format('woff2'),
         url('assets/fonts/Darbareh Pro/Webfonts/Font Family WebFonts/fonts/woff/darbarehWeb-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

/* بیسیک و تایپوگرافی */
body {
    background-color: #050505; /* مشکی عمیق‌تر برای حس لوکس */
    color: #d1d1d1;
    font-family: 'Darbareh', sans-serif;
    line-height: 1.8;
    margin: 0;
}

section {
    padding: 100px 10%;
    border-bottom: 1px solid #1a1a1a;
}

h1, h2 { color: #ffffff; margin-bottom: 20px; }



    /* برای هدر اصلی */
    header {
        position: fixed; /* یا sticky */
        top: 0;
        left: 0;
        width: 100%;
        background-color: transparent; /* در ابتدا شفاف */
        transition: background-color 0.5s ease, backdrop-filter 0.5s ease, box-shadow 0.5s ease; /* افکت نرم برای تغییر رنگ */
        z-index: 1000; /* اطمینان از اینکه روی همه چیز است */
        padding: 15px 0; /* تنظیم padding اولیه */
    }

    /* برای هدر در حالت اسکرول شده (گلاسی مورفیک) */
    header.scrolled {
        background-color: rgba(255, 255, 255, 0.1); /* رنگ پس‌زمینه کمی روشن و شفاف */
        backdrop-filter: blur(10px); /* افکت بلور (گلاسی) */
        -webkit-backdrop-filter: blur(10px); /* برای سازگاری با سافاری */
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* سایه ملایم */
        padding: 10px 0; /* شاید بخواهید padding را کمی کاهش دهید */
    }

    /* استایل منوها و لینک‌ها در حالت عادی (روشن یا مطابق تم دارک) */
    header .menu-item a {
        color: #fff; /* یا هر رنگی که با تم دارک شما هماهنگ باشد */
        transition: color 0.3s ease;
    }

    /* استایل منوها و لینک‌ها در حالت اسکرول شده (برای خوانایی بهتر روی پس‌زمینه روشن‌تر) */
    header.scrolled .menu-item a {
        color: #333; /* یا رنگ تیره‌تر برای خوانایی بهتر */
    }

    /* اگر لوگوی جداگانه‌ای دارید، ممکن است لازم باشد رنگ آن را هم تغییر دهید */
    header .logo img {
        filter: brightness(1) contrast(1); /* حالت عادی */
        transition: filter 0.3s ease;
    }

    header.scrolled .logo img {
        filter: brightness(0.5) contrast(2); /* حالت تیره‌تر برای خوانایی */
    }
/* هیرو سکشن */
#hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

/* ظرف اسلایدها */
.hero-slider {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 1;
}

/* هر اسلاید */
.slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: heroFade 12s infinite ease-in-out;
}

/* اسلاید اول – شروع */
.slide:nth-child(1) {
    animation-delay: 0s;
}

/* اسلاید دوم – با تأخیر */
.slide:nth-child(2) {
    animation-delay: 6s;
}

/* اگر اسلاید سوم اضافه کردی: */
/*
.slide:nth-child(3) {
    animation-delay: 12s;
}
*/

/* انیمیشن فید (کل دوره 12 ثانیه، هر اسلاید 6 ثانیه دیده می‌شود) */
@keyframes heroFade {
    0%   { opacity: 0; }
    5%   { opacity: 1; }
    45%  { opacity: 1; }
    50%  { opacity: 0; }
    100% { opacity: 0; }
}

/* محتوا روی اسلایدر */
.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    padding-top: 20vh;
    color: #fff;
}

.hero-overlay {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(to top, #000, transparent);
    z-index: 2;
}


/* فعال‌سازی اسلایدر با جی‌کوئری (در یک فایل اسکریپت جدا یا فوتر) */

/* کارت‌های خدمات */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* دقیقا ۳ ستون */
    gap: 30px;
    margin-top: 40px;
}

.service-item {
    padding: 30px;
    background: #0f0f0f;
    border: 1px solid #222;
    transition: 0.3s;
}

.service-item:hover {
    border-color: #444;
}

/* تبلت: دو ستونه */
@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* موبایل: تک ستونه */
@media (max-width: 600px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* استایل متدلوژی */
#methodology { background: #0a0a0a; }

/* استایل تایم‌لاین/* استایل تایم‌لاین برای نمایش بهتر */
.timeline-container { 
    border-right: 2px solid #333; 
    margin-right: 20px; 
    padding-right: 30px; 
    margin-top: 40px;
}
.timeline-item { 
    margin-bottom: 40px; 
    position: relative; 
}
.timeline-item::before { 
    content: ''; 
    position: absolute; 
    right: -37px; 
    top: 5px; 
    width: 15px; 
    height: 15px; 
    background: #fff; 
    border-radius: 50%; 
}
.timeline-item h4 { margin: 0; color: #fff; }


/* استایل فرم/* تنظیمات کلی سکشن */
#contact-cta {
    background: #0f0f0f;
    padding: 80px 20px;
    text-align: center;
}

#contact-cta h2 {
    color: #fff;
    margin-bottom: 10px;
}

/* باکس فرم */
.gform_wrapper {
    background: #151515 !important;
    padding: 40px !important;
    border-radius: 12px;
    border: 1px solid #333;
    max-width: 600px;
    margin: 30px auto 0 !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* استایل اینپوت‌ها */
.gform_wrapper .ginput_container input, 
.gform_wrapper .ginput_container textarea {
    background: #0f0f0f !important;
    border: 1px solid #444 !important;
    color: #fff !important;
    border-radius: 6px !important;
    padding: 12px !important;
    transition: 0.3s !important;
}

/* افکت فوکوس (وقتی کاربر کلیک می‌کند) */
.gform_wrapper .ginput_container input:focus, 
.gform_wrapper .ginput_container textarea:focus {
    border-color: #c5a059 !important; /* رنگ طلایی برند */
    outline: none;
    box-shadow: 0 0 5px rgba(197, 160, 89, 0.3);
}

/* دکمه ارسال */
.gform_wrapper .gform_footer input[type="submit"] {
    background: #c5a059 !important; /* رنگ طلایی */
    color: #000 !important;
    border: none !important;
    padding: 12px 30px !important;
    border-radius: 6px !important;
    font-weight: bold;
    cursor: pointer;
    transition: 0.4s;
    width: 100%;
}

.gform_wrapper .gform_footer input[type="submit"]:hover {
    background: #fff !important;
}

/* لیبل‌ها */
.gform_wrapper label {
    color: #aaa !important;
    margin-bottom: 8px !important;
    display: block;
}




#main-footer {
    background: #050505;
    padding: 40px 20px;
    text-align: center;
    border-top: 1px solid #222;
}
.social-links { margin-bottom: 20px; }
.social-links a {
    color: #fff;
    margin: 0 15px;
    text-decoration: none;
    font-size: 14px;
    opacity: 0.7;
    transition: 0.3s;
}
.social-links a:hover { opacity: 1; }
.footer-address { color: #888; font-size: 13px; }




/* اصلاح فضای هیرو برای جلوگیری از هم‌پوشانی */
.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    /* استفاده از padding-top منعطف برای موبایل */
    padding-top: 15vh; 
    padding-left: 20px;
    padding-right: 20px;
}

/* فاصله بیشتر در موبایل برای اینکه متن زیر هدر قرار بگیرد */
@media (max-width: 768px) {
    .hero-content {
        padding-top: 25vh; /* افزایش فاصله از بالا در موبایل */
    }
    
    /* کوچک کردن فونت برای موبایل که در یک خط جا شوند */
    .hero-content h1 {
        font-size: 1.8rem;
    }
}

/* اطمینان از اینکه هدر همیشه فضای خودش را دارد */
header {
    height: 80px; /* یا هر ارتفاعی که هدر شما دارد */
    display: flex;
    align-items: center;
}



#main-footer {
    text-align: center;
    padding: 40px 20px;
    background: #0f0f0f;
    color: #fff;
}

.social-links {
    margin-bottom: 20px;
}

.social-links a {
    color: #c5a059; /* همان رنگ طلایی سایت */
    font-size: 24px;
    margin: 0 15px;
    transition: 0.3s;
    text-decoration: none;
}

.social-links a:hover {
    color: #fff;
    transform: translateY(-5px);
}

.footer-address {
    font-size: 0.9rem;
    color: #888;
}
