* {
    box-sizing: border-box;
}

body {
    margin: 0;
font-family: "Vazirmatn", sans-serif;
    line-height: 1.7;
    background-color: #f4f7fc;
}

/* Header and navigation */
header {
    background-color: #540958;
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

nav a {
    display: inline-block;
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 6px;
    transition: 0.3s;
}

nav a:hover {
    background-color: white;
    color: #540958;
}

/* Hero section */
.hero {
    background-color: #540958;
    color: white;
    padding: 60px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.hero-content,
.hero-image {
    flex: 1;
    min-width: 0;
}

.hero h2 {
    font-size: 32px;
    margin-bottom: 15px;
}

.hero p {
    font-size: 18px;
    margin-bottom: 30px;
}

.hero a {
    display: inline-block;
    background-color: white;
    color: #540958;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

.hero a:hover {
    background-color: #dce6f8;
    transform: translateY(-4px);
}

.hero-image img {
    display: block;
    width: 100%;
    height: 250px;
    object-fit: contain;
    border-radius: 10px;
}

/* Services and benefits */
#services,
#benefits {
    padding: 40px 20px;
}

#services h2,
#benefits h2 {
    color: #540958;
    margin-bottom: 25px;
}

/* Service cards: equal-sized grid */
.service-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
}

/* Benefits cards */
.benefit-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
}

.service-card,
.benefit-card {
    min-width: 0;
    background-color: white;
    padding: 20px;
    border: 1px solid #e0e5ed;
    border-radius: 10px;
}

.benefit-card {
    flex: 1 1 200px;
}

.service-card {
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    transition: 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

.service-card h3,
.benefit-card h3 {
    color: #540958;
    margin-top: 0;
}

.service-card p,
.benefit-card p {
    color: #555;
    line-height: 1.8;
}

#benefits {
    background-color: #e5ebf5;
}

/* Contact section */
#contact {
    background-color: #e5ebf5;
    text-align: center;
    padding: 40px 20px;
    margin-top: 20px;
}

#contact h2 {
    color: #540958;
}

#contact p {
    color: #444;
}

#contact a {
    display: inline-block;
    background-color: #540958;
    color: white;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

#contact a:hover {
    background-color: #921499;
    transform: translateY(-2px);
}

/* Footer */
footer {
    background-color: #540958;
    color: white;
    padding: 35px 20px 0;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.footer-container > div {
    flex: 1 1 220px;
}

.footer-container h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: white;
}

.footer-container p {
    margin: 10px 0;
    line-height: 1.8;
}

footer a {
    color: white;
    text-decoration: none;
    transition: 0.3s;
}

footer a:hover {
    color: #dce6f8;
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #921499;
    margin-top: 30px;
    padding: 15px 0;
}

.footer-bottom p {
    margin: 0;
}

/* Social links and icons */
.social-link {
    display: flex;
    align-items: center;
    gap: 10px;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: 1px solid #ffffff80;
    border-radius: 8px;
    font-size: 20px;
}

/* Floating call button */
.floating-call {
    display: none;
}

/* Tablet */
@media (min-width: 601px) and (max-width: 900px) {
    .service-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Mobile */
@media (max-width: 600px) {
    header {
        flex-direction: column;
        gap: 15px;
    }

    .hero {
        flex-direction: column;
        padding: 40px 20px;
    }

    .hero h2 {
        font-size: 25px;
    }

    .hero-image {
        width: 100%;
    }

    .hero-image img {
        height: 180px;
    }

    .service-list {
        grid-template-columns: 1fr;
    }

    .benefit-card {
        flex-basis: 100%;
    }

    .footer-container {
        flex-direction: column;
        gap: 20px;
    }

    .floating-call {
        display: block;
        position: fixed;
        bottom: 20px;
        right: 20px;
        left: 20px;
        background-color: #540958;
        color: white;
        text-align: center;
        padding: 14px;
        border-radius: 10px;
        text-decoration: none;
        font-weight: bold;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
        z-index: 1000;
    }
}

/* Keyboard accessibility */
nav a:focus-visible,
.hero a:focus-visible,
#contact a:focus-visible,
footer a:focus-visible {
    outline: 3px solid #e6a23c;
    outline-offset: 4px;
}
.service-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    transition: 0.3s;
}

.service-card h3 {
    margin-bottom: 10px;
}

.service-card p {
    margin-top: 0;
}
.service-card a {
    display: inline-block;
    align-self: flex-start;
    margin-top: 10px;
    padding: 8px 14px;
    background-color: #540958;
    color: white;
    border-radius: 6px;
    text-decoration: none;
    transition: 0.3s;
}

.service-card a:hover {
    background-color: #921499;
}
html {
    scroll-behavior: smooth;
}
