/*
Theme Name: Modern Dairy Factory
Author: ISATIS IT
Version: 3.2
*/

@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;700;800&display=swap');

/* =========================
   Base
========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    direction: rtl;
    font-family: 'Vazirmatn', sans-serif;
    background: #f5f8fb;
    color: #222;
    overflow-x: hidden;
}


/* =========================
   Header & Logo Layout
========================= */

header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    height: 100px; /* افزایش جزئی ارتفاع هدر برای جایگیری بهتر لوگوی بزرگتر */

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 0 50px; /* ایجاد فضا از طرفین */
    z-index: 999;

    background: rgba(0, 0, 0, .22); /* افزایش ملایم تیرگی برای تفکیک بهتر لوگوی بدون بک‌گراند */
    backdrop-filter: blur(6px);
}
.header-title{
    color:#ffd54f;
    font-size:24px;
    font-weight:800;
    text-align:center;
    flex:1;
    text-shadow:0 2px 10px rgba(0,0,0,.4);
}

/* بزرگ‌سازی و تنظیم موقعیت دقیق لوگو */
.logo, .site-logo {
    display: flex;
    align-items: center;
}

.logo img, 
.site-logo img,
header img {
    height: 160px !important; /* افزایش چشمگیر سایز لوگو مطابق درخواست شما */
    width: auto !important;   /* حفظ هوشمندانه تناسب ابعاد ابجکت */
    display: block;
    margin-top: 25px;         /* هدایت بخش پایینی لوگو به بیرون از کادر هدر جهت جلوه بصری سه بعدی */
    filter: drop-shadow(0px 5px 15px rgba(0, 0, 0, 0.3)); /* ایجاد سایه جذاب برای تفکیک کامل از پس‌زمینه شیر */
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.04);   /* افکت زوم بسیار ملایم هنگام رفتن موس روی گاو لوگو */
}

/* منو */

nav {
    display: flex;
    align-items: center;
    gap: 35px;
}

nav a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 700;
    transition: .3s;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

nav a:hover {
    color: #9ff3e7;
}


/* =========================
   Mobile Menu Button
========================= */

.menu-toggle {
    display: none;
    font-size: 32px;
    color: white;
    cursor: pointer;
}


/* =========================
   Hero
========================= */

.hero {
    position: relative;
    height: 100vh;

    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;

    padding: 20px;
    color: white;

    background:
    linear-gradient(rgba(0,0,0,.40),rgba(0,0,0,.40)),
    url('https://www.tooscommerce.com/wp-content/uploads/2026/06/Untitled-2.jpg')
    center/cover no-repeat;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 120px;
    background: linear-gradient(to top,#f5f8fb,transparent);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 850px;
    background: rgba(255,255,255,.08);
    padding: 50px 40px;
    border-radius: 30px;
    backdrop-filter: blur(8px);
    box-shadow: 0 10px 35px rgba(0,0,0,.18);
}

.hero h1{
    font-size:72px;
    font-weight:900;

    background:linear-gradient(
        180deg,
        #ffffff 0%,
        #dbeafe 100%
    );

    -webkit-background-clip:text;
    -webkit-text-fill-color:transparent;

    text-shadow:
    0 4px 12px rgba(0,0,0,.45);
}

.hero-subtitle {
    font-size: 24px;
    color: #bae6fd;
    margin-bottom: 15px;
    font-weight: 600;
}

.hero-text {
    font-size: 22px;
    color: #f8fafc;
    line-height: 2;
    margin-bottom: 35px;
}

.hero-btn {
    display: inline-block;
    background: linear-gradient(135deg,#06b6d4,#0284c7);
    color: white;
    padding: 14px 34px;
    border-radius: 60px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 700;
    transition: .35s;
    box-shadow: 0 10px 25px rgba(2,132,199,.35);
}

.hero-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(2,132,199,.45);
}


/* =========================
   Sections
========================= */

.section {
    padding: 100px 50px;
}

.section-title {
    text-align: center;
    font-size: 42px;
    margin-bottom: 60px;
    color: #006c67;
    position: relative;
}

.section-title::after {
    content: '';
    width: 90px;
    height: 4px;
    background: linear-gradient(to left,#00b894,#00cec9);
    display: block;
    margin: 15px auto 0;
    border-radius: 20px;
}


/* =========================
   Products
========================= */

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(280px,1fr));
    gap: 30px;
}

.product-card {
    background: rgba(255,255,255,.85);
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,.08);
    transition: .4s;
}

.product-card:hover {
    transform: translateY(-10px);
}

.product-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.product-card h3 {
    padding: 20px;
    text-align: center;
    font-size: 20px;
}


/* =========================
   Contact Box
========================= */

.contact-box {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,.08);
    text-align: center;
    line-height: 2.5;
    font-size: 18px;
}


/* =========================
   Footer
========================= */

footer {
    background: #022c43;
    color: white;
    padding: 50px 20px;
    text-align: center;
    line-height: 2.4;
    margin-top: 80px;
}


/* =========================
   Tablet Responsive
========================= */

@media(max-width:992px){
    header {
        padding: 0 30px;
        height: 90px;
    }

    .logo img, .site-logo img, header img {
        height: 110px !important; /* بهینه‌سازی ملایم سایز برای تبلت */
        margin-top: 15px;
    }

    .hero h1 {
        font-size: 44px;
    }

    .hero-subtitle {
        font-size: 22px;
    }

    .hero-text {
        font-size: 20px;
    }

    .section {
        padding: 80px 30px;
    }
}


/* =========================
   Mobile Responsive
========================= */

@media(max-width:768px){
    header {
        height: auto;
        padding: 15px 20px;
        flex-wrap: wrap;
        background: #022c43; /* پس‌زمینه ثابت در موبایل برای حفظ خوانایی */
    }

    .logo img, .site-logo img, header img {
        height: 75px !important; /* اندازه کاملاً متناسب برای کادر هدر موبایل */
        margin-top: 0;
        filter: none;
    }

    .menu-toggle {
        display: block;
    }

    nav {
        width: 100%;
        display: none;
        flex-direction: column;
        margin-top: 15px;
        background: #033649;
        border-radius: 15px;
        padding: 10px 15px;
        gap: 0;
    }

    nav.active {
        display: flex;
    }

    nav a {
        padding: 14px 0;
        border-bottom: 1px solid rgba(255,255,255,.1);
    }

    nav a:last-child {
        border-bottom: none;
    }

    .hero {
        height: auto;
        min-height: 100vh;
        padding: 140px 20px 80px;
    }

    .hero-content {
        padding: 35px 22px;
    }

    .hero h1 {
        font-size: 32px;
        line-height: 1.9;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .hero-text {
        font-size: 16px;
        line-height: 2.1;
    }

    .hero-btn {
        font-size: 15px;
        padding: 12px 24px;
    }

    .section {
        padding: 60px 20px;
    }

    .section-title {
        font-size: 30px;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .product-card img {
        height: 220px;
    }

    .contact-box {
        padding: 25px;
        font-size: 16px;
    }

    footer {
        padding: 30px 15px;
        font-size: 14px;
    }
}


/* =========================
   Small Mobile
========================= */

@media(max-width:480px){
    .hero h1 {
        font-size: 26px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .hero-text {
        font-size: 15px;
    }

    .hero-content {
        padding: 30px 18px;
    }

    .logo img, .site-logo img, header img {
        height: 100px !important;
    }
}