:root {
    --primary: #1a5276;
    --secondary: #3498db;
    --accent: #3498db;
    --light: #f8f9fa;
    --dark: #2c3e50;
    --gray: #7f8c8d;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@font-face {
    font-family: "B Nazanin";
    src: url("/fonts/BNazanin.woff2") format("woff2"),
        url("/fonts/BNazanin.woff") format("woff"),
        url("/fonts/BNazanin.TTF") format("truetype");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

body {
    font-family: "B Nazanin", "Tahoma", sans-serif;
    background-color: #fff;
    font-size: 1.2rem;
    direction: rtl;
    line-height: 1.8;
    text-align: right;
    overflow-x: hidden;
    width: 100vw;
    margin: 0;
    padding: 70px 0 0 0;
    color: #333;
}

h1,
h2,
h3,
h4 {
    color: var(--dark);
    margin-bottom: 1rem;
    font-weight: 700;
}

h1 {
    font-size: 2.2rem;
    line-height: 1.3;
}

h2 {
    font-size: 1.8rem;
    border-right: 4px solid var(--secondary);
    padding-right: 15px;
    margin-top: 2.5rem;
}

h3 {
    font-size: 1.4rem;
    color: var(--primary);
}

p {
    margin-bottom: 1.2rem;
    text-align: justify;
}

a {
    text-decoration: none;
    color: var(--accent);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--secondary);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
header {
    background-color: var(--primary);
    color: white;
    padding: .5rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    max-height: 70px;
    width: 100vw;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo h1 {
    font-size: 1.4rem;
    color: white;
    margin-bottom: 0;
}

.logo-subtitle {
    color: #ecf0f1;
    font-size: 0.85rem;
    margin-top: -3px;
}

.logo-icon {
    color: var(--secondary);
    font-size: 1.8rem;
    margin-top: -15px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    padding: .5rem;
    background-color: var(--primary);
    margin-top: -.7rem;
    text-align: center;

}

.nav-links a {
    color: white;
    font-weight: 500;
    padding: 5px 0;
}

.nav-links a:hover {
    color: var(--secondary);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, #2c3e50 100%);
    color: white;
    text-align: center;
}

.hero>img {
    position: relative;
    width: 100%;
    padding: 0 10vw;
    max-height: 80vh;
}

.hero h2 {
    color: white;
    font-size: 2.2rem;
    margin-bottom: 1.2rem;
}

.hero p {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 2rem;
    text-align: center;
}

.location-badge {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 8px 20px;
    border-radius: 30px;
    margin: 1rem 0;
    font-weight: 500;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: var(--secondary);
    color: white;
    padding: 0.9rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    margin: 0.5rem;
}

.cta-button:hover {
    background-color: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    color: white;
}

.cta-button.whatsapp {
    background-color: #25D366;
}

.cta-button.whatsapp:hover {
    background-color: #1da851;
}

.cta-button.phone {
    background-color: var(--accent);
}

.cta-button.phone:hover {
    background-color: #2980b9;
}

/* Services Section */
.services {
    padding: 4rem 0;
    background-color: var(--light);
}

.section-title {
    text-align: right;
    margin-bottom: 2.5rem;
}

.section-title h2 {
    border: none;
    padding: 0;
    display: inline-block;
    position: relative;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.8rem;
}

.service-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #eee;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.service-icon {
    background-color: var(--primary);
    color: white;
    font-size: 2.2rem;
    padding: 1.5rem;
    text-align: center;
}

.service-content {
    padding: 1.5rem;
}

.service-content h3 {
    margin-bottom: 0.8rem;
    color: var(--primary);
}

.service-content p {
    color: var(--gray);
    font-size: 0.95rem;
}

/* Content Section */
.content {
    padding: 4rem 0;
}

.article-content {
    background-color: white;
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
    border: 1px solid #eee;
}

.article-content img {
    max-width: 100%;
    border-radius: 8px;
    margin: 1.8rem 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.feature-box {
    background-color: #f8f9fa;
    border-right: 4px solid var(--accent);
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 8px 8px 0;
}

.feature-box h4 {
    color: var(--primary);
    margin-bottom: 0.8rem;
}

.benefit-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.benefit-item {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.benefit-item i {
    color: var(--secondary);
    font-size: 1.8rem;
    margin-bottom: 1rem;
    display: block;
}

/* Contact Section */
.contact {
    background-color: var(--primary);
    color: white;
    padding: 3rem 0;
}

.contact h2 {
    color: white;
    border-color: var(--secondary);
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.contact-icon {
    background-color: var(--secondary);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.contact-details h3 {
    color: white;
    margin-bottom: 0.5rem;
}

/* Footer */
footer {
    background-color: #1a252f;
    color: #bdc3c7;
    padding: 2.5rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 1.2rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--secondary);
    display: inline-block;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #bdc3c7;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--secondary);
    padding-right: 5px;
}

.copyright {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid #34495e;
    font-size: 0.9rem;
}

.year-badge {
    display: inline-block;
    background-color: var(--secondary);
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.9rem;
    margin-right: 8px;
}

/* Floating Button */
.floating-button {
    position: fixed;
    left: 20px;
    bottom: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #25D366;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    z-index: 999;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.floating-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-links {
        flex-direction: column;
        width: 100%;
        margin-top: 1rem;
        display: none;
    }

    .nav-links.active {
        display: flex;
        margin-top: -10px;
        background-color: var(--primary);
    }

    .nav-links.active a {
        padding: 5px 10px;
        border-bottom: 1px solid;

    }

    .mobile-menu-btn {
        display: block;
        position: absolute;
        left: 20px;
        top: 15px;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .cta-button {
        display: block;
        margin: 0.8rem auto;
        max-width: 280px;
    }

    .article-content {
        padding: 1.8rem;
    }

    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .floating-button {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
        left: 15px;
        bottom: 15px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 1rem 0;
    }

    .services,
    .content,
    .contact {
        padding: 2.5rem 0;
    }

    .contact-item {
        flex-direction: column;
        text-align: center;
    }

    .service-content {
        padding: 1.2rem;
    }
}