@font-face {
    font-family: 'afarinw';
    src: url('Afarinw-Light.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'afarinw';
    src: url('Afarinw-Bold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
}

:root {
    --bg-light: rgb(252, 250, 243);
    --primary-color: rgb(0, 119, 115);
    --secondary-color: rgb(193, 199, 173);
    --text-dark: #333;
    --text-light: #555;
    --white: #ffffff;
    --border-radius: 12px;
    --shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'afarinw', sans-serif;
    direction: rtl;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.8;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

h1, h2, h3, h4, h5 {
    color: var(--primary-color);
    margin-bottom: 20px;
    line-height: 1.4;
    font-weight: bold;
}

p {
    color: var(--text-light);
    margin-bottom: 15px;
    font-weight: normal;
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
    display: block;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 40px; /* فاصله بین لوگو و منو */
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

nav ul li a {
    font-weight: bold;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: var(--secondary-color);
}

.header-cta {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.header-cta:hover {
    background-color: rgb(0, 99, 95);
    color: var(--white);
}

#hero {
    background-color: var(--secondary-color);
    color: var(--white);
    text-align: center;
    padding: 120px 0;
    background: linear-gradient(rgba(0, 119, 115, 0.8), rgba(0, 119, 115, 0.8)), url('hero-background.jpg') no-repeat center center/cover;
}

#hero h1 {
    font-size: 3.5rem;
    color: var(--white);
    margin-bottom: 15px;
}

#hero p {
    font-size: 1.25rem;
    color: var(--bg-light);
    margin-bottom: 30px;
}

.cta-button {
    background-color: var(--white);
    color: var(--primary-color);
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.cta-button:hover {
    background-color: transparent;
    color: var(--white);
    border-color: var(--white);
}

#about {
    text-align: center;
    max-width: 800px;
}

#about h3 {
    color: var(--text-light);
    font-size: 1.5rem;
    font-weight: normal;
}

#services {
    background-color: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.card {
    background-color: var(--bg-light);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #eee;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.card h4 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.process-steps {
    display: flex;
    justify-content: space-between;
    text-align: center;
    gap: 40px;
}

.step {
    flex: 1;
}

.step-number {
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: bold;
    margin: 0 auto 20px auto;
    border: 4px solid var(--secondary-color);
}

.step h5 {
    font-size: 1.2rem;
    color: var(--text-dark);
}

#contact {
    background-color: var(--secondary-color);
}

#contact h2, #contact p {
    color: var(--primary-color);
    text-align: center;
}

#contact-form {
    max-width: 600px;
    margin: 40px auto 0 auto;
    background: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 20px;
}

input, textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: 'afarinw', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

#contact-form button {
    width: 100%;
    background-color: var(--primary-color);
    color: white;
    border: none;
    cursor: pointer;
    font-family: 'afarinw', sans-serif;
    font-weight: bold;
}

#contact-form button:hover {
    background-color: rgb(0, 99, 95);
    border-color: transparent;
}

#form-message {
    text-align: center;
    margin-top: 20px;
    font-weight: bold;
    padding: 10px;
    border-radius: 8px;
}

#form-message.success {
    background-color: #d4edda;
    color: #155724;
}

.hidden {
    display: none;
}

footer {
    background-color: var(--text-dark);
    color: #ccc;
    text-align: center;
    padding: 25px 0;
}

@media (max-width: 768px) {
    h2 { font-size: 2rem; }
    
    .nav-left ul { /* در سایز کوچک منو مخفی شود */
        display: none;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .process-steps {
        flex-direction: column;
    }
}
