/* ===== Reset & Base ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #0B3C5D;       /* Deep Blue */
    --primary-dark: #072A42;
    --primary-light: #1A5F8A;
    --accent: #C41E3A;        /* Strong Red */
    --accent-hover: #A01830;
    --text: #1F2937;
    --text-light: #6B7280;
    --bg: #FFFFFF;
    --bg-light: #F8FAFC;
    --border: #E5E7EB;
    --shadow: 0 4px 20px rgba(11, 60, 93, 0.08);
    --radius: 12px;
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Vazirmatn', 'Tahoma', system-ui, -apple-system, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
    direction: rtl;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    display: block;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== Header & Nav ===== */
.header {
    background: var(--bg);
    box-shadow: 0 2px 15px rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 75px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--primary);
}

.logo-mark {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.logo-mark::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent);
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-text .main {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary);
}

.logo-text .sub {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-light);
    letter-spacing: 0.5px;
}

.logo span {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    font-weight: 500;
    color: var(--text);
    position: relative;
    padding: 6px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 32px;
    height: 24px;
    position: relative;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
    position: absolute;
    left: 0;
    transition: var(--transition);
}

.menu-toggle span:nth-child(1) { top: 0; }
.menu-toggle span:nth-child(2) { top: 10px; }
.menu-toggle span:nth-child(3) { top: 20px; }

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 10px;
}
.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg);
    top: 10px;
}

/* ===== Hero ===== */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 100px 0 90px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(circle, rgba(196, 30, 58, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
}

.hero h1 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 18px;
    line-height: 1.3;
}

.hero h1 span {
    color: #FF6B6B;
}

.hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 32px;
    line-height: 1.8;
}

.btn {
    display: inline-block;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
	text-align: center;
    transition: var(--transition);
	font-family: 'Vazirmatn', 'Tahoma', system-ui, -apple-system, sans-serif;
}

.btn-primary {
    background: var(--accent);
    color: white;
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(196, 30, 58, 0.3);
}

.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid rgba(255,255,255,0.5);
    margin-right: 12px;
}

.btn-outline:hover {
    background: white;
    color: var(--primary);
    border-color: white;
}

/* ===== Sections ===== */
.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 12px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--accent);
    margin: 10px auto 0;
    border-radius: 2px;
}

.section-header p {
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* ===== Features / Cards ===== */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
}

.feature-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 28px;
    transition: var(--transition);
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
    border-color: transparent;
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 1.6rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    color: var(--primary);
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Active company card (clickable) */
.feature-card.active-company {
    border-color: var(--primary-light);
    cursor: pointer;
    position: relative;
}

.feature-card.active-company:hover {
    border-color: var(--accent);
}

.feature-card.active-company .badge-active {
    display: inline-block;
    background: var(--accent);
    color: white;
    font-size: 0.75rem;
    padding: 3px 10px;
    border-radius: 20px;
    margin-top: 12px;
    font-weight: 500;
}

/* Inactive company cards */
.feature-card.inactive {
    opacity: 0.45;
    filter: grayscale(60%);
    pointer-events: none;
    position: relative;
}

.feature-card.inactive:hover {
    transform: none;
    box-shadow: none;
}

.feature-card.inactive .feature-icon {
    background: linear-gradient(135deg, #9CA3AF, #6B7280);
}

.feature-card.inactive h3 {
    color: #6B7280;
}

.feature-card .badge-inactive {
    display: inline-block;
    background: #9CA3AF;
    color: white;
    font-size: 0.75rem;
    padding: 3px 10px;
    border-radius: 20px;
    margin-top: 12px;
    font-weight: 500;
}

/* ===== About / Content ===== */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.content-text h2 {
    font-size: 1.9rem;
    color: var(--primary);
    margin-bottom: 18px;
}

.content-text p {
    color: var(--text-light);
    margin-bottom: 16px;
}

.content-image {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: var(--radius);
    height: 340px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

.content-image::before {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: var(--accent);
    border-radius: 50%;
    opacity: 0.15;
    top: -40px;
    left: -40px;
}

/* ===== Values ===== */
.values {
    background: var(--bg-light);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.value-item {
    background: white;
    padding: 28px 24px;
    border-radius: var(--radius);
    border-right: 4px solid var(--accent);
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

.value-item h3 {
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 1.15rem;
}

.value-item p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* ===== Contact ===== */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
}

.contact-info {
    background: var(--primary);
    color: white;
    border-radius: var(--radius);
    padding: 40px 32px;
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 24px;
}

.info-item {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    align-items: flex-start;
}

.info-item .icon {
    width: 42px;
    height: 42px;
    background: rgba(255,255,255,0.15);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-item p {
    opacity: 0.9;
    font-size: 0.95rem;
}

.contact-form {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px 32px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: var(--text);
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    background: var(--bg-light);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 3px rgba(11, 60, 93, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 130px;
}

/* ===== Footer ===== */
.footer {
    background: var(--primary-dark);
    color: rgba(255,255,255,0.85);
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand h3 {
    color: white;
    font-size: 1.4rem;
    margin-bottom: 14px;
}

.footer-brand h3 span {
    color: var(--accent);
}

.footer-brand p {
    font-size: 0.95rem;
    line-height: 1.7;
    opacity: 0.8;
}

.footer h4 {
    color: white;
    margin-bottom: 18px;
    font-size: 1.1rem;
}

.footer-links a {
    display: block;
    margin-bottom: 10px;
    opacity: 0.8;
    font-size: 0.95rem;
}

.footer-links a:hover {
    opacity: 1;
    color: #FF6B6B;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 24px;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.7;
}

/* ===== Page Header (inner pages) ===== */
.page-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 70px 0 50px;
    text-align: center;
}

.page-header h1 {
    font-size: 2.3rem;
    margin-bottom: 10px;
}

.page-header p {
    opacity: 0.85;
    font-size: 1.1rem;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
    .content-grid,
    .contact-wrapper {
        grid-template-columns: 1fr;
    }

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

    .hero h1 {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 75px;
        right: -100%;
        width: 280px;
        height: calc(100vh - 75px);
        background: white;
        flex-direction: column;
        padding: 30px 24px;
        gap: 20px;
        box-shadow: -5px 0 20px rgba(0,0,0,0.1);
        transition: var(--transition);
    }

    .nav-links.active {
        right: 0;
    }

    .hero {
        padding: 70px 0 60px;
    }

    .hero h1 {
        font-size: 1.9rem;
    }

    .section {
        padding: 60px 0;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .btn-outline {
        margin-right: 0;
        margin-top: 12px;
    }

    .hero .btn {
        display: block;
        text-align: center;
        width: 100%;
        max-width: 260px;
    }
}

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

    .section-header h2 {
        font-size: 1.6rem;
    }

    .contact-form,
    .contact-info {
        padding: 28px 20px;
    }
}