/* ============================================================
   فایل: style.css
   توضیحات: استایل کامل پروژه با قابلیت شب/روز
   راهنمای رنگ‌ها:
   - نارنجی نیونی (رنگ اصلی): #ff6b00
   - مشکی متن: #1a1a1a
   - سفید: #ffffff
   - پس‌زمینه روشن: #f8f9fa
   - پس‌زمینه تاریک: #121212
   - کارت‌ها در حالت روشن: #ffffff با سایه
   - کارت‌ها در حالت تاریک: #2a2a2a
   - رنگ هدر شیشه‌ای: rgba(255,255,255,0.7) روشن / rgba(0,0,0,0.6) تاریک
   ============================================================ */


.btn {
    text-decoration: none; /* حذف خط زیر لینک‌ها */
}

/* ----- تنظیمات پایه ----- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Vazirmatn', 'Poppins', sans-serif;
}

html {
    scroll-behavior: smooth; /* اسکرول نرم */
}

body {
    background-color: var(--bg-body);
    color: var(--text-color);
    transition: background-color 0.4s, color 0.4s;
    line-height: 1.6;
    padding-top: 80px; /* فضای هدر ثابت */
    direction: rtl;
}

/* متغیرهای حالت روشن (پیش‌فرض) */
:root {
    --bg-body: #f8f9fa;
    --text-color: #1a1a1a;
    --bg-card: #ffffff;
    --shadow-card: 0 8px 20px rgba(0,0,0,0.08);
    --header-bg: rgba(255,255,255,0.72);
    --header-border: rgba(0,0,0,0.08);
    --nav-bg: rgba(255,255,255,0.95);
    --wave-color: rgba(255,107,0,0.15);
    --btn-primary-bg: #ff6b00;
    --btn-primary-text: #fff;
    --btn-outline-border: #ff6b00;
    --btn-outline-text: #1a1a1a;
    --btn-secondary-bg: transparent;
    --btn-secondary-border: #ff6b00;
    --btn-secondary-text: #1a1a1a;
    --icon-color: #ff6b00;
    --footer-bg: #1a1a1a;
    --footer-text: #ccc;
}

/* حالت شب (تاریک) */
body.dark-mode {
    --bg-body: #121212;
    --text-color: #e0e0e0;
    --bg-card: #2a2a2a;
    --shadow-card: 0 8px 20px rgba(0,0,0,0.5);
    --header-bg: rgba(0,0,0,0.6);
    --header-border: rgba(255,255,255,0.1);
    --nav-bg: rgba(30,30,30,0.95);
    --wave-color: rgba(255,107,0,0.25);
    --btn-outline-text: #e0e0e0;
    --btn-secondary-text: #e0e0e0;
    --footer-bg: #0a0a0a;
    --footer-text: #aaa;
}

/* ----- کانتینر مشترک ----- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ----- هدر شیشه‌ای (iOS 26 style) ----- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--header-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--header-border);
    transition: background 0.4s, border 0.4s;
    padding: 10px 0;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    flex-wrap: nowrap;
}

/* سمت چپ (منو همبرگر) */
.header-left {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
}

.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 22px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10;
}
.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--text-color);
    border-radius: 10px;
    transition: all 0.3s ease;
}
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* سمت راست (شب/روز) */
.header-right {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
}

.theme-toggle {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: var(--text-color);
    cursor: pointer;
    padding: 8px;
    border-radius: 30px;
    transition: background 0.3s, transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.theme-toggle:hover {
    background: rgba(255,107,0,0.2);
    transform: scale(1.05);
}

/* وسط (برند) */
.header-center {
    flex: 1 1 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
}

.brand {
    font-size: 1.4rem;
    font-weight: 900;
    letter-spacing: 0.5px;
    line-height: 1.2;
}
.brand-orange {
    color: #ff6b00; /* نارنجی نیونی */
}
.brand-black {
    color: var(--text-color); /* مشکی در روز، سفید در شب */
    transition: color 0.4s;
}
.brand-sub {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--text-color);
    opacity: 0.7;
    letter-spacing: 0.3px;
    margin-top: 2px;
}

/* ----- منوی کشویی ----- */
.nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--nav-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--header-border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s;
    opacity: 0;
    visibility: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}
.nav-menu.open {
    max-height: 500px;
    opacity: 1;
    visibility: visible;
}
.nav-menu ul {
    list-style: none;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.nav-menu ul li {
    width: 100%;
    text-align: center;
}
.nav-menu ul li a {
    display: block;
    padding: 12px 0;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-color);
    text-decoration: none;
    border-radius: 12px;
    transition: background 0.3s, color 0.3s;
}
.nav-menu ul li a:hover {
    background: rgba(255,107,0,0.15);
    color: #ff6b00;
}

/* ----- انیمیشن موج پس‌زمینه (بهینه‌شده) ----- */
.wave-bg {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 180px;
    z-index: -1;
    pointer-events: none;
    opacity: 0.6;
    transition: opacity 0.4s;
}
.wave-bg svg {
    width: 100%;
    height: 100%;
    display: block;
}
.wave-path {
    fill: var(--wave-color);
    transition: fill 0.8s ease;
    animation: waveMove 12s ease-in-out infinite alternate;
}
@keyframes waveMove {
    0% { transform: translateX(-4%) scaleY(1); }
    100% { transform: translateX(4%) scaleY(1.2); }
}

/* ----- بخش‌ها (سکشن‌ها) ----- */
.section {
    padding: 60px 0 50px;
    position: relative;
    z-index: 1;
}
.section-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: var(--text-color);
}
.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: #ff6b00;
    margin: 10px auto 0;
    border-radius: 4px;
}

/* ========== سکشن ۱: معرفی ========== */
.intro-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}
.intro-right {
    flex: 1 1 45%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.intro-left {
    flex: 1 1 45%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

.logo-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.intro-logo {
    max-width: 180px;
    height: auto;
    border-radius: 24px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.1);
    background: #fff;
    padding: 10px;
}
.logo-text {
    margin-top: 16px;
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-color);
}

/* دکمه‌ها */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 60px;
    font-weight: 600;
    font-size: 1rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 260px;
    text-align: center;
}
.btn-primary {
    background: #ff6b00;
    color: #fff;
    border-color: #ff6b00;
}
.btn-primary:hover {
    background: #e05e00;
    border-color: #e05e00;
    transform: scale(1.02);
}
.btn-outline {
    background: transparent;
    color: var(--btn-outline-text);
    border-color: #ff6b00;
}
.btn-outline:hover {
    background: #ff6b00;
    color: #fff;
    transform: scale(1.02);
}
.btn-secondary {
    background: transparent;
    color: var(--btn-secondary-text);
    border-color: #ff6b00;
}
.btn-secondary:hover {
    background: rgba(255,107,0,0.1);
    transform: scale(1.02);
}

/* ========== سکشن ۲: خدمات ما ========== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}
.service-card {
    background: var(--bg-card);
    box-shadow: var(--shadow-card);
    border-radius: 24px;
    padding: 30px 15px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}
.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(255,107,0,0.15);
}
.icon-wrapper {
    font-size: 3.2rem;
    color: #ff6b00;
    margin-bottom: 16px;
}
.service-card p {
    font-weight: 500;
    font-size: 1rem;
    color: var(--text-color);
}

/* ========== سکشن ۳: مراکز خدمات ========== */
.centers-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: stretch;
}
.center-map {
    background: var(--bg-card);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    height: 100%;
    min-height: 250px;
}
.center-map iframe {
    width: 100%;
    height: 100%;
    min-height: 250px;
    border: 0;
}
.center-addresses {
    background: var(--bg-card);
    border-radius: 24px;
    padding: 24px 20px;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
}
.address-item {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 1rem;
    color: var(--text-color);
}
.address-item i {
    color: #ff6b00;
    font-size: 1.4rem;
    width: 30px;
    text-align: center;
}

/* ========== سکشن ۴: شرایط و ضوابط ========== */
.terms-box {
    background: var(--bg-card);
    box-shadow: var(--shadow-card);
    border-radius: 28px;
    padding: 40px 35px;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    border-right: 6px solid #ff6b00;
}
.terms-box p {
    font-size: 1rem;
    line-height: 1.9;
    color: var(--text-color);
}

/* ========== سکشن ۵: محصولات ========== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}
.product-card {
    background: var(--bg-card);
    box-shadow: var(--shadow-card);
    border-radius: 24px;
    padding: 20px 15px 25px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}
.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(255,107,0,0.12);
}
.product-img {
    width: 100%;
    max-width: 140px;
    height: auto;
    border-radius: 16px;
    margin-bottom: 14px;
}
.product-card p {
    font-weight: 500;
    font-size: 1rem;
    color: var(--text-color);
}

/* ===== فوتر ===== */
.footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    padding: 40px 0 25px;
    margin-top: 40px;
    transition: background 0.4s, color 0.4s;
    border-radius: 40px 40px 0 0;
}
.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    text-align: center;
}
.footer-socials {
    display: flex;
    gap: 20px;
}
.footer-socials a {
    color: var(--footer-text);
    font-size: 1.8rem;
    transition: color 0.3s, transform 0.3s;
}
.footer-socials a:hover {
    color: #ff6b00;
    transform: scale(1.1);
}
.footer-contact {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    font-size: 0.95rem;
}
.footer-contact span i {
    margin-left: 8px;
    color: #ff6b00;
}
.footer-copy {
    font-size: 0.85rem;
    opacity: 0.7;
}

/* ============================================================
   ===== ریسپانسیو =====
   ============================================================ */

/* تبلت و موبایل بزرگ (max-width: 992px) */
@media (max-width: 992px) {
    .intro-grid {
        flex-direction: column;
        text-align: center;
    }
    .intro-right, .intro-left {
        flex: 1 1 100%;
        width: 100%;
    }
    .intro-left {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 14px;
    }
    .intro-left .btn {
        max-width: 200px;
        flex: 1 0 auto;
    }
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .centers-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .center-map {
        order: 1;
    }
    .center-addresses {
        order: 2;
    }
    .brand {
        font-size: 1.1rem;
    }
    .brand-sub {
        font-size: 0.65rem;
    }
}

/* موبایل (max-width: 576px) */
@media (max-width: 576px) {
    body {
        padding-top: 70px;
    }
    .header-inner {
        padding: 0 12px;
    }
    .brand {
        font-size: 0.95rem;
    }
    .brand-sub {
        font-size: 0.55rem;
    }
    .intro-left {
        flex-direction: column;
        align-items: center;
    }
    .intro-left .btn {
        max-width: 100%;
        width: 90%;
    }
    .services-grid {
        grid-template-columns: 1fr 1fr;
        gap: 14px;
    }
    .products-grid {
        grid-template-columns: 1fr 1fr;
        gap: 14px;
    }
    .service-card, .product-card {
        padding: 18px 10px;
    }
    .icon-wrapper {
        font-size: 2.4rem;
    }
    .section {
        padding: 40px 0 30px;
    }
    .section-title {
        font-size: 1.6rem;
        margin-bottom: 28px;
    }
    .terms-box {
        padding: 25px 18px;
    }
    .footer-contact {
        flex-direction: column;
        gap: 8px;
    }
    .center-map {
        min-height: 200px;
    }
    .center-map iframe {
        min-height: 200px;
    }
}