﻿/* ============================================================
   KeramatApp - Homepage Styles
   طراحی مدرن، تمیز و کاملاً ریسپانسیو
   ============================================================ */

/* ---------- متغیرهای رنگی ---------- */
:root {
    --green: #2d673c;
    --green-light: #3d8a52;
    --green-dark: #1e4629;
    --green-deep: #0f2817;
    --accent: #ffb100;
    --accent-light: #ffd166;
    --text: #2b3a30;
    --muted: #7a8a80;
    --border: #e0ebe3;
    --bg: #ffffff;
    --bg-soft: #f4f9f5;
    --bg-soft-2: #e8f2ea;
    --shadow-sm: 0 4px 16px rgba(45, 103, 60, 0.06);
    --shadow-md: 0 10px 30px rgba(45, 103, 60, 0.12);
    --shadow-lg: 0 20px 60px rgba(45, 103, 60, 0.18);
    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 24px;
    --transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- ریست ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    font-family: Shabnam-Light-FD, Tahoma, sans-serif;
    font-size: 15px;
    line-height: 1.8;
    color: var(--text);
    background: var(--bg);
    direction: rtl;
    text-align: right;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: Shabnam-Bold-FD, Shabnam-Light-FD, Tahoma, sans-serif;
    font-weight: 700;
    line-height: 1.4;
    color: var(--text);
}

a {
    color: var(--green);
    text-decoration: none;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

/* ============================================================
   Top Bar
   ============================================================ */
.topbar {
    background: linear-gradient(135deg, var(--green-deep), var(--green-dark));
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    padding: 10px 0;
}

.topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.contact-info {
    display: flex;
    gap: 22px;
    flex-wrap: wrap;
    align-items: center;
}

    .contact-info span {
        display: inline-flex;
        align-items: center;
        gap: 8px;
    }

        .contact-info span span {
            direction: ltr;
            unicode-bidi: embed;
            display: inline-block;
            font-family: Tahoma, Arial, sans-serif;
            letter-spacing: 0.3px;
        }

    .contact-info i {
        color: var(--accent-light);
    }

.social-links {
    display: flex;
    gap: 10px;
}

    .social-links a {
        width: 30px;
        height: 30px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: rgba(255, 255, 255, 0.1);
        color: #fff;
        border-radius: 50%;
        font-size: 14px;
        transition: var(--transition);
    }

        .social-links a:hover {
            background: var(--accent);
            color: var(--green-deep);
            transform: translateY(-2px);
        }

/* ============================================================
   Main Header
   ============================================================ */
.main-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}

    .main-header.scrolled {
        box-shadow: 0 4px 24px rgba(45, 103, 60, 0.08);
        border-bottom-color: var(--border);
    }

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 20px;
    position: relative;
}

/* لوگو */
.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-img {
    height: 46px;
    width: auto;
    max-width: 140px;
    object-fit: contain;
    transition: var(--transition);
}

.logo:hover .logo-img {
    transform: scale(1.05);
}

.logo-mark {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--green-light), var(--green-dark));
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: Shabnam-Bold-FD, sans-serif;
    font-size: 22px;
    font-weight: 700;
    box-shadow: 0 6px 16px rgba(45, 103, 60, 0.3);
    line-height: 1;
}

.logo-text {
    font-family: Shabnam-Bold-FD, sans-serif;
    font-size: 22px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--green), var(--green-light));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}

/* منوی اصلی */
.main-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

    .main-nav a {
        display: inline-block;
        padding: 9px 14px;
        font-size: 14.5px;
        font-weight: 500;
        color: var(--text);
        border-radius: var(--radius-sm);
        position: relative;
    }

        .main-nav a:hover {
            color: var(--green);
            background: rgba(61, 138, 82, 0.08);
        }

        .main-nav a.active {
            color: var(--green);
            font-weight: 600;
        }

            .main-nav a.active::after {
                content: "";
                position: absolute;
                bottom: 2px;
                right: 14px;
                left: 14px;
                height: 3px;
                background: linear-gradient(90deg, var(--accent), var(--green-light));
                border-radius: 3px;
            }

/* دکمه ورود در منوی موبایل - به صورت پیش‌فرض مخفی */
.btn-login-mobile {
    display: none;
}

/* دکمه ورود هدر */
.header-action {
    flex-shrink: 0;
    display: block;
}

.btn-login {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    background: linear-gradient(135deg, var(--green-light), var(--green-dark));
    color: #fff;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 6px 18px rgba(45, 103, 60, 0.25);
    transition: var(--transition);
    white-space: nowrap;
    text-decoration: none;
}

    .btn-login:hover {
        color: #fff;
        transform: translateY(-2px);
        box-shadow: 0 10px 26px rgba(45, 103, 60, 0.4);
    }

    .btn-login i {
        font-size: 14px;
    }

.btn-text-mobile {
    display: none;
}

/* دکمه منو موبایل */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 22px;
    color: var(--green);
    cursor: pointer;
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    flex-shrink: 0;
}

    .mobile-toggle:hover {
        background: rgba(61, 138, 82, 0.08);
    }

/* ============================================================
   دکمه‌های عمومی
   ============================================================ */
.btn {
    display: inline-block;
    padding: 13px 32px;
    font-size: 15px;
    font-family: inherit;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: var(--transition);
    line-height: 1.4;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--green-light), var(--green));
    color: #fff;
    box-shadow: 0 8px 22px rgba(45, 103, 60, 0.3);
}

    .btn-primary:hover {
        color: #fff;
        transform: translateY(-3px);
        box-shadow: 0 14px 32px rgba(45, 103, 60, 0.45);
    }

.btn-accent {
    background: linear-gradient(135deg, var(--accent-light), var(--accent));
    color: var(--green-deep);
    box-shadow: 0 8px 22px rgba(255, 177, 0, 0.35);
}

    .btn-accent:hover {
        color: var(--green-deep);
        transform: translateY(-3px);
        box-shadow: 0 14px 32px rgba(255, 177, 0, 0.5);
    }

.btn-ghost {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

    .btn-ghost:hover {
        background: rgba(255, 255, 255, 0.15);
        color: #fff;
        border-color: #fff;
    }

.btn-ghost-light {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.6);
}

    .btn-ghost-light:hover {
        background: #fff;
        color: var(--green);
        border-color: #fff;
    }

/* ============================================================
   Hero Section
   ============================================================ */
.hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(15, 40, 23, 0.94) 0%, rgba(30, 70, 41, 0.9) 40%, rgba(45, 103, 60, 0.88) 100%), url('https://images.unsplash.com/photo-1554224155-6726b3ff858f?w=1600') center/cover;
    background-attachment: fixed;
    padding: 100px 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    text-align: center;
    margin: 0 auto;
    animation: heroFadeUp 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes heroFadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-tag {
    display: inline-block;
    padding: 8px 18px;
    background: rgba(255, 177, 0, 0.15);
    color: var(--accent-light);
    border: 1px solid rgba(255, 177, 0, 0.35);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 24px;
    backdrop-filter: blur(8px);
}

.hero h1 {
    font-size: 52px;
    color: #fff;
    line-height: 1.3;
    margin-bottom: 22px;
    font-weight: 700;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

    .hero h1 span {
        background: linear-gradient(135deg, var(--accent-light), var(--accent));
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
    }

.hero p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.88);
    line-height: 2;
    margin-bottom: 36px;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

/* دایره‌های تزئینی Hero */
.hero-decoration {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

    .hero-decoration .circle {
        position: absolute;
        border-radius: 50%;
        filter: blur(60px);
        opacity: 0.35;
    }

    .hero-decoration .c1 {
        width: 400px;
        height: 400px;
        background: var(--accent);
        top: -100px;
        right: -100px;
        animation: floatC1 12s ease-in-out infinite;
    }

    .hero-decoration .c2 {
        width: 500px;
        height: 500px;
        background: var(--green-light);
        bottom: -150px;
        left: -150px;
        animation: floatC2 15s ease-in-out infinite;
    }

    .hero-decoration .c3 {
        width: 300px;
        height: 300px;
        background: var(--accent-light);
        top: 40%;
        left: 30%;
        animation: floatC3 18s ease-in-out infinite;
    }

@keyframes floatC1 {
    0%, 100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(-40px, 40px);
    }
}

@keyframes floatC2 {
    0%, 100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(50px, -30px);
    }
}

@keyframes floatC3 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(30px, 20px) scale(1.15);
    }
}

/* ============================================================
   Highlights
   ============================================================ */
.highlights {
    padding: 0;
    margin-top: -60px;
    position: relative;
    z-index: 5;
}

.highlight-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.highlight-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 32px 26px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(45, 103, 60, 0.06);
    transition: var(--transition);
    text-align: center;
}

    .highlight-card:hover {
        transform: translateY(-8px);
        box-shadow: var(--shadow-lg);
    }

.highlight-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 18px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--green-light), var(--green));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 26px;
    box-shadow: 0 8px 20px rgba(45, 103, 60, 0.25);
    transition: var(--transition);
}

.highlight-card:hover .highlight-icon {
    transform: rotate(-6deg) scale(1.08);
    background: linear-gradient(135deg, var(--accent-light), var(--accent));
    color: var(--green-deep);
    box-shadow: 0 10px 26px rgba(255, 177, 0, 0.4);
}

.highlight-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.highlight-card p {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.9;
}

/* ============================================================
   Section Header (مشترک)
   ============================================================ */
.section-header {
    text-align: center;
    margin-bottom: 54px;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.section-tag {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(61, 138, 82, 0.1);
    color: var(--green);
    border-radius: 50px;
    font-size: 12.5px;
    font-weight: 600;
    margin-bottom: 14px;
}

.section-header h2 {
    font-size: 34px;
    margin-bottom: 14px;
    line-height: 1.4;
}

.section-header p {
    font-size: 15.5px;
    color: var(--muted);
    line-height: 2;
}

/* ============================================================
   About / Videos
   ============================================================ */
.about {
    background: #fff;
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.video-card {
    background: var(--bg-soft);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border);
}

    .video-card:hover {
        box-shadow: var(--shadow-md);
        transform: translateY(-4px);
    }

.video-wrapper {
    position: relative;
    background: #000;
    aspect-ratio: 16/9;
}

    .video-wrapper video {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: cover;
    }

.video-info {
    padding: 22px 24px;
}

    .video-info h3 {
        font-size: 17px;
        margin-bottom: 8px;
        color: var(--green);
    }

    .video-info p {
        font-size: 14px;
        color: var(--muted);
        line-height: 1.9;
    }

/* ============================================================
   Steps
   ============================================================ */
.steps {
    background: linear-gradient(135deg, var(--bg-soft) 0%, var(--bg-soft-2) 100%);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.step-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 30px 26px;
    border: 1px solid rgba(45, 103, 60, 0.06);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

    .step-card::before {
        content: "";
        position: absolute;
        top: 0;
        right: 0;
        width: 4px;
        height: 100%;
        background: linear-gradient(180deg, var(--green-light), var(--accent));
        transform: scaleY(0);
        transform-origin: top;
        transition: transform 0.4s ease;
    }

    .step-card:hover {
        transform: translateY(-6px);
        box-shadow: var(--shadow-md);
    }

        .step-card:hover::before {
            transform: scaleY(1);
        }

.step-num {
    display: inline-block;
    font-family: 'Poppins', Shabnam-Bold-FD, sans-serif;
    font-size: 38px;
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(135deg, var(--green-light), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 14px;
}

.step-card h4 {
    font-size: 17px;
    margin-bottom: 10px;
}

.step-card p {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.9;
}

/* ============================================================
   Services
   ============================================================ */
.services {
    background: #fff;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 32px 26px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    text-align: right;
}

    .service-card:hover {
        transform: translateY(-8px);
        box-shadow: var(--shadow-md);
        border-color: rgba(45, 103, 60, 0.15);
    }

.service-icon {
    width: 62px;
    height: 62px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: #fff;
    margin-bottom: 20px;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    transform: rotate(-6deg) scale(1.1);
}

.service-icon.blue {
    background: linear-gradient(135deg, #47aeff, #2b8cd6);
}

.service-icon.orange {
    background: linear-gradient(135deg, #ffa76e, #f08040);
}

.service-icon.pink {
    background: linear-gradient(135deg, #e80368, #b80254);
}

.service-icon.yellow {
    background: linear-gradient(135deg, #ffbb2c, #d99a15);
}

.service-icon.red {
    background: linear-gradient(135deg, #ff5828, #d63910);
}

.service-icon.teal {
    background: linear-gradient(135deg, #11dbcf, #0ba39a);
}

.service-card h3 {
    font-size: 17px;
    margin-bottom: 12px;
}

.service-card p {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.9;
}

/* ============================================================
   Features
   ============================================================ */
.features {
    background: linear-gradient(135deg, var(--bg-soft) 0%, var(--bg-soft-2) 100%);
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.features-text .section-tag {
    margin-bottom: 16px;
}

.features-text h2 {
    font-size: 34px;
    margin-bottom: 18px;
    line-height: 1.4;
}

.features-text > p {
    font-size: 15.5px;
    color: var(--muted);
    line-height: 2;
    margin-bottom: 24px;
}

.features-list {
    list-style: none;
    margin-bottom: 30px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

    .features-list li {
        display: flex;
        align-items: center;
        gap: 10px;
        font-size: 14.5px;
        font-weight: 500;
    }

    .features-list i {
        color: var(--green);
        font-size: 18px;
        flex-shrink: 0;
    }

/* ویژوال سمت راست Features */
.features-visual {
    position: relative;
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.visual-bg {
    position: absolute;
    inset: 10% 10%;
    background: linear-gradient(135deg, var(--green-light), var(--green-dark));
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    opacity: 0.1;
    animation: morphBg 12s ease-in-out infinite;
}

@keyframes morphBg {
    0%, 100% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }

    50% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }
}

.visual-card {
    position: absolute;
    background: #fff;
    padding: 18px 22px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 14.5px;
    border: 1px solid rgba(45, 103, 60, 0.06);
    animation: floatCard 6s ease-in-out infinite;
}

    .visual-card i {
        color: var(--green);
        font-size: 22px;
    }

    .visual-card.v1 {
        top: 5%;
        right: 0%;
        animation-delay: 0s;
    }

    .visual-card.v2 {
        top: 30%;
        left: 0%;
        animation-delay: 1.5s;
    }

    .visual-card.v3 {
        bottom: 25%;
        right: 5%;
        animation-delay: 3s;
    }

    .visual-card.v4 {
        bottom: 3%;
        left: 10%;
        animation-delay: 4.5s;
    }

@keyframes floatCard {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }
}

/* ============================================================
   Testimonials
   ============================================================ */
.testimonials {
    background: #fff;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.testimonial-card {
    background: linear-gradient(135deg, var(--bg-soft) 0%, #eef5f0 100%);
    border-radius: var(--radius);
    padding: 30px 26px;
    border-right: 4px solid var(--green-light);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
}

    .testimonial-card:hover {
        transform: translateY(-6px);
        box-shadow: var(--shadow-md);
        border-right-color: var(--accent);
    }

.quote-icon {
    position: absolute;
    top: 20px;
    left: 24px;
    font-size: 32px;
    color: rgba(45, 103, 60, 0.1);
}

.testimonial-text {
    font-size: 14.5px;
    color: var(--text);
    line-height: 2;
    margin-bottom: 22px;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 18px;
    border-top: 1px dashed rgba(45, 103, 60, 0.2);
}

.author-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--green-light), var(--green-dark));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(45, 103, 60, 0.25);
}

.author-info strong {
    display: block;
    font-size: 14.5px;
    color: var(--green-dark);
    margin-bottom: 2px;
}

.author-info span {
    font-size: 12.5px;
    color: var(--muted);
}

/* ============================================================
   CTA
   ============================================================ */
.cta {
    background: linear-gradient(135deg, var(--green-deep) 0%, var(--green) 50%, var(--green-light) 100%);
    color: #fff;
    padding: 70px 0;
    position: relative;
    overflow: hidden;
}

    .cta::before {
        content: "";
        position: absolute;
        top: -50%;
        right: -10%;
        width: 500px;
        height: 500px;
        background: radial-gradient(circle, rgba(255, 177, 0, 0.25), transparent 70%);
        border-radius: 50%;
        pointer-events: none;
    }

.cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.cta-text {
    flex: 1;
    min-width: 280px;
}

    .cta-text h2 {
        color: #fff;
        font-size: 30px;
        margin-bottom: 14px;
    }

    .cta-text p {
        color: rgba(255, 255, 255, 0.88);
        font-size: 15.5px;
        line-height: 2;
        max-width: 640px;
    }

.cta-action {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

/* ============================================================
   Contact
   ============================================================ */
.contact {
    background: linear-gradient(135deg, var(--bg-soft) 0%, var(--bg-soft-2) 100%);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 30px;
}

.contact-info-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.info-item {
    display: flex;
    gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
}

    .info-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

.info-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(61, 138, 82, 0.12), rgba(45, 103, 60, 0.18));
    color: var(--green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    transition: var(--transition);
}

.info-item:hover .info-icon {
    background: linear-gradient(135deg, var(--green-light), var(--green));
    color: #fff;
    transform: rotate(-6deg);
}

.info-content h4 {
    font-size: 15.5px;
    margin-bottom: 6px;
    color: var(--green-dark);
}

.info-content p {
    font-size: 13.5px;
    color: var(--muted);
    line-height: 1.8;
}

    .info-content p.ltr-text {
        direction: ltr;
        unicode-bidi: embed;
        text-align: right;
        font-family: Tahoma, Arial, sans-serif;
        letter-spacing: 0.3px;
        display: block;
    }

/* فرم تماس */
.contact-form-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

    .contact-form-card h3 {
        font-size: 20px;
        margin-bottom: 22px;
        padding-bottom: 16px;
        border-bottom: 2px solid var(--bg-soft-2);
        color: var(--green-dark);
    }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    margin-bottom: 16px;
}

    .form-group label {
        display: block;
        font-size: 13.5px;
        font-weight: 600;
        color: var(--text);
        margin-bottom: 8px;
    }

    .form-group input,
    .form-group textarea {
        width: 100%;
        padding: 12px 16px;
        font-size: 14px;
        font-family: inherit;
        color: var(--text);
        background: var(--bg-soft);
        border: 1.5px solid var(--border);
        border-radius: var(--radius-sm);
        transition: var(--transition);
        outline: none;
        resize: vertical;
    }

        .form-group input:focus,
        .form-group textarea:focus {
            background: #fff;
            border-color: var(--green-light);
            box-shadow: 0 0 0 4px rgba(61, 138, 82, 0.12);
        }

        .form-group input::placeholder,
        .form-group textarea::placeholder {
            color: #a8b8ae;
        }

.contact-form-card .btn {
    width: 100%;
    margin-top: 8px;
}

/* ============================================================
   Footer
   ============================================================ */
.main-footer {
    background: linear-gradient(135deg, var(--green-deep) 0%, var(--green-dark) 100%);
    color: rgba(255, 255, 255, 0.85);
    padding: 60px 0 0;
    position: relative;
    overflow: hidden;
}

    .main-footer::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(90deg, var(--accent), var(--green-light), var(--accent));
        background-size: 200% 100%;
        animation: footerShine 4s linear infinite;
    }

@keyframes footerShine {
    0% {
        background-position: 100% 0;
    }

    100% {
        background-position: -100% 0;
    }
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .logo {
    margin-bottom: 16px;
}

.footer-brand .logo-img {
    height: 52px;
    max-width: 160px;
    /* اگر لوگو سبز است، سفید نمایش داده می‌شود */
    filter: brightness(0) invert(1);
}

.footer-brand .logo-mark {
    background: linear-gradient(135deg, var(--accent-light), var(--accent));
    color: var(--green-deep);
}

.footer-brand .logo-text {
    background: linear-gradient(135deg, #fff, var(--accent-light));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-brand p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 2;
}

.footer-links h4,
.footer-social h4 {
    color: #fff;
    font-size: 15.5px;
    margin-bottom: 16px;
    font-weight: 600;
}

.footer-links a {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    padding: 6px 0;
    transition: var(--transition);
}

    .footer-links a:hover {
        color: var(--accent);
        padding-right: 6px;
    }

.social-buttons {
    display: flex;
    gap: 10px;
}

    .social-buttons a {
        width: 42px;
        height: 42px;
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.1);
        color: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 18px;
        transition: var(--transition);
        border: 1px solid rgba(255, 255, 255, 0.15);
    }

        .social-buttons a:hover {
            background: var(--accent);
            color: var(--green-deep);
            transform: translateY(-4px) rotate(8deg);
            box-shadow: 0 8px 20px rgba(255, 177, 0, 0.35);
        }

.footer-bottom {
    padding: 24px 0;
    text-align: center;
    font-size: 13.5px;
    color: rgba(255, 255, 255, 0.65);
}

    .footer-bottom p {
        margin: 4px 0;
    }

    .footer-bottom strong {
        color: var(--accent-light);
    }

    .footer-bottom .designer a {
        color: var(--accent-light);
        font-weight: 600;
    }

        .footer-bottom .designer a:hover {
            color: var(--accent);
        }

/* ============================================================
   Back to top
   ============================================================ */
.back-to-top {
    position: fixed;
    bottom: 24px;
    left: 24px;
    width: 46px;
    height: 46px;
    background: linear-gradient(135deg, var(--green-light), var(--green-dark));
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 6px 20px rgba(45, 103, 60, 0.35);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
}

    .back-to-top.visible {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .back-to-top:hover {
        background: linear-gradient(135deg, var(--accent-light), var(--accent));
        color: var(--green-deep);
        transform: translateY(-4px);
        box-shadow: 0 10px 26px rgba(255, 177, 0, 0.5);
    }

/* ============================================================
   Responsive - Tablet
   ============================================================ */
@media (max-width: 992px) {
    section {
        padding: 60px 0;
    }

    .hero {
        min-height: 70vh;
        background-attachment: scroll;
    }

        .hero h1 {
            font-size: 38px;
        }

        .hero p {
            font-size: 16px;
        }

    /* نمایش دکمه منو */
    .mobile-toggle {
        display: block;
        order: 3;
    }

    /* چیدمان هدر در موبایل: لوگو چپ، دکمه ورود وسط، منو راست */
    .header-inner {
        flex-wrap: wrap;
    }

    .logo {
        order: 1;
    }

    .header-action {
        order: 2;
        margin-right: auto;
        display: block;
    }

    .btn-login {
        padding: 8px 16px;
        font-size: 13px;
        gap: 6px;
    }

        .btn-login .btn-text {
            display: none;
        }

        .btn-login .btn-text-mobile {
            display: inline;
        }

    /* منوی موبایل */
    .main-nav {
        position: fixed;
        top: 72px;
        right: 16px;
        left: 16px;
        background: #fff;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        padding: 14px;
        border-radius: var(--radius);
        box-shadow: var(--shadow-lg);
        transform: translateY(-20px);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
        max-height: calc(100vh - 100px);
        overflow-y: auto;
        z-index: 999;
        order: 4;
    }

        .main-nav.active {
            transform: translateY(0);
            opacity: 1;
            visibility: visible;
        }

        .main-nav a {
            padding: 12px 16px;
            text-align: right;
        }

            .main-nav a.active::after {
                display: none;
            }

    /* دکمه ورود در منوی موبایل */
    .btn-login-mobile {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        margin-top: 10px;
        background: linear-gradient(135deg, var(--green-light), var(--green-dark));
        color: #fff !important;
        padding: 14px !important;
        border-radius: var(--radius-sm);
        font-weight: 600;
        font-size: 14.5px;
    }

        .btn-login-mobile:hover {
            background: linear-gradient(135deg, var(--green-dark), var(--green-deep));
            color: #fff !important;
        }

    .highlight-grid,
    .steps-grid,
    .services-grid,
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .videos-grid {
        grid-template-columns: 1fr;
    }

    .features-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .features-visual {
        min-height: 320px;
    }

    .footer-top {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .section-header h2,
    .features-text h2 {
        font-size: 26px;
    }

    .cta-text h2 {
        font-size: 24px;
    }

    .cta-inner {
        flex-direction: column;
        text-align: center;
    }

    .cta-action {
        justify-content: center;
    }
}

/* ============================================================
   Responsive - Mobile
   ============================================================ */
@media (max-width: 576px) {
    body {
        font-size: 14px;
    }

    section {
        padding: 50px 0;
    }

    .container {
        padding: 0 16px;
    }

    .topbar {
        font-size: 11.5px;
        padding: 8px 0;
    }

    .contact-info {
        gap: 12px;
        font-size: 11.5px;
        justify-content: center;
        width: 100%;
    }

        .contact-info span:nth-child(3) {
            display: none;
        }

    .topbar-inner {
        justify-content: center;
    }

    .social-links {
        display: none;
    }

    .header-inner {
        padding: 10px 16px;
        gap: 10px;
    }

    .logo-img {
        height: 38px;
        max-width: 110px;
    }

    .logo-mark {
        width: 38px;
        height: 38px;
        font-size: 18px;
    }

    .logo-text {
        font-size: 18px;
    }

    .btn-login {
        padding: 7px 14px;
        font-size: 12.5px;
    }

        .btn-login i {
            font-size: 12px;
        }

    .mobile-toggle {
        font-size: 20px;
        padding: 6px 8px;
    }

    .hero {
        min-height: 80vh;
        padding: 60px 0;
    }

        .hero h1 {
            font-size: 26px;
        }

        .hero p {
            font-size: 14.5px;
            line-height: 1.9;
        }

    .hero-tag {
        font-size: 12px;
        padding: 6px 14px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .btn {
        padding: 12px 24px;
        font-size: 14px;
        width: 100%;
    }

    .btn-ghost {
        width: auto;
    }

    .highlights {
        margin-top: -40px;
    }

    .highlight-grid,
    .steps-grid,
    .services-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .section-header h2,
    .features-text h2 {
        font-size: 22px;
    }

    .section-header p {
        font-size: 14px;
    }

    .features-list {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 24px;
        text-align: center;
    }

    .footer-brand,
    .footer-social {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-links a:hover {
        padding-right: 0;
        padding-left: 6px;
    }

    .cta-text h2 {
        font-size: 20px;
    }

    .cta-action {
        flex-direction: column;
        width: 100%;
    }

        .cta-action .btn {
            width: 100%;
        }

    .back-to-top {
        bottom: 16px;
        left: 16px;
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .info-item {
        flex-direction: row;
    }

    .contact-info-card,
    .contact-form-card {
        padding: 22px 18px;
    }
}

/* ============================================================
   Accessibility
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
