/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --gray-lightest: #f5f5f5;
    --gray-light: #e8e8e8;
    --gray-medium: #b0b0b0;
    --gray-dark: #555555;
    --gray-darkest: #333333;
    --accent: #4a9b8e;
    --accent-dark: #3a7d72;
    --white: #ffffff;
    --shadow: rgba(0, 0, 0, 0.08);
    --whatsapp-green: #25D366;
    --whatsapp-dark: #128C7E;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--gray-lightest);
    color: var(--gray-darkest);
    line-height: 1.7;
    font-size: 16px;
    direction: rtl;
    text-align: right;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== HEADER / NAVBAR ===== */
header {
    background-color: var(--white);
    box-shadow: 0 2px 10px var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    max-width: 1100px;
    margin: 0 auto;
    flex-direction: row-reverse;
}

.navbar .logo img {
    height: 75px;
    width: auto;
}

.navbar nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
    flex-direction: row-reverse;
}

.navbar nav ul li a {
    font-weight: 500;
    font-size: 15px;
    color: var(--gray-dark);
    transition: color 0.3s;
    position: relative;
    padding-bottom: 4px;
}

.navbar nav ul li a:hover,
.navbar nav ul li a.active {
    color: var(--accent);
}

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

.navbar nav ul li a:hover::after,
.navbar nav ul li a.active::after {
    width: 100%;
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.menu-toggle span {
    width: 28px;
    height: 3px;
    background: var(--gray-darkest);
    border-radius: 2px;
    transition: 0.3s;
}

/* ===== HERO SECTION ===== */
.hero {
    background: linear-gradient(135deg, var(--gray-light) 0%, var(--white) 100%);
    padding: 80px 20px;
    text-align: center;
}

.hero h1 {
    font-size: 2.6rem;
    color: var(--gray-darkest);
    margin-bottom: 15px;
    font-weight: 700;
}

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

.hero p {
    font-size: 1.15rem;
    color: var(--gray-dark);
    max-width: 650px;
    margin: 0 auto 30px;
}

.hero .cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: var(--whatsapp-green);
    color: var(--white);
    padding: 14px 32px;
    border-radius: 50px;
    font-size: 1.05rem;
    font-weight: 600;
    transition: background-color 0.3s, transform 0.2s;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    direction: rtl;
}

.hero .cta-btn:hover {
    background-color: var(--whatsapp-dark);
    transform: translateY(-2px);
}

.hero .cta-btn svg {
    width: 22px;
    height: 22px;
    fill: var(--white);
}

/* ===== SECTION COMMON ===== */
section {
    padding: 70px 20px;
}

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

.section-title h2 {
    font-size: 2rem;
    color: var(--gray-darkest);
    margin-bottom: 10px;
}

.section-title p {
    color: var(--gray-dark);
    font-size: 1rem;
}

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

/* ===== SERVICES ===== */
.services {
    background-color: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.service-card {
    background: var(--gray-lightest);
    border-radius: 12px;
    padding: 35px 25px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--shadow);
}

.service-card .icon {
    font-size: 2.5rem;
    margin-bottom: 18px;
    display: inline-block;
    width: 70px;
    height: 70px;
    line-height: 70px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--white);
}

.service-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--gray-darkest);
}

.service-card p {
    font-size: 0.95rem;
    color: var(--gray-dark);
}

/* ===== ABOUT ===== */
.about {
    background-color: var(--gray-lightest);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    font-size: 1.05rem;
    color: var(--gray-dark);
    margin-bottom: 20px;
}

.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    margin-top: 35px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.info-card {
    background: var(--white);
    border-radius: 12px;
    padding: 25px 20px;
    text-align: center;
    box-shadow: 0 2px 10px var(--shadow);
}

.info-card .icon {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: var(--accent);
}

.info-card h4 {
    font-size: 1rem;
    color: var(--gray-darkest);
    margin-bottom: 6px;
}

.info-card p {
    font-size: 0.9rem;
    color: var(--gray-dark);
    margin-bottom: 0;
}

/* ===== CONTACT / WHATSAPP ===== */
.contact {
    background-color: var(--white);
    text-align: center;
}

.whatsapp-box {
    max-width: 500px;
    margin: 0 auto;
    background: var(--gray-lightest);
    border-radius: 16px;
    padding: 40px 30px;
    box-shadow: 0 4px 20px var(--shadow);
}

.whatsapp-box p {
    color: var(--gray-dark);
    margin-bottom: 25px;
    font-size: 1.05rem;
}

.whatsapp-box .wa-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background-color: var(--whatsapp-green);
    color: var(--white);
    padding: 16px 36px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: background-color 0.3s, transform 0.2s;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    direction: rtl;
}

.whatsapp-box .wa-btn:hover {
    background-color: var(--whatsapp-dark);
    transform: translateY(-2px);
}

.whatsapp-box .wa-btn svg {
    width: 24px;
    height: 24px;
    fill: var(--white);
}

/* ===== FOOTER ===== */
footer {
    background-color: var(--gray-darkest);
    color: var(--gray-medium);
    text-align: center;
    padding: 30px 20px;
    font-size: 0.9rem;
}

footer a {
    color: var(--accent);
    transition: color 0.3s;
}

footer a:hover {
    color: var(--whatsapp-green);
}

footer .footer-links {
    margin-bottom: 12px;
}

footer .footer-links a {
    margin: 0 12px;
}

/* ===== FLOATING WHATSAPP BUTTON ===== */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    left: 25px;
    width: 60px;
    height: 60px;
    background-color: var(--whatsapp-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: transform 0.3s, box-shadow 0.3s;
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
    fill: var(--white);
}

@keyframes pulse {
    0% { box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4); }
    50% { box-shadow: 0 4px 25px rgba(37, 211, 102, 0.6); }
    100% { box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .navbar {
        flex-wrap: wrap;
        position: relative;
    }

    .navbar nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        box-shadow: 0 4px 10px var(--shadow);
        display: none;
        padding: 20px;
    }

    .navbar nav.open {
        display: block;
    }

    .navbar nav ul {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

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

    .hero p {
        font-size: 1rem;
    }

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