:root {
    --primary-color: #1e9484;
    --secondary-color: #08211d;
    --text-color: #333;
    --text-light: #fff;
    --bg-light: #f9f9f9;
    --border-color: #eee;
    --font-family: 'Amiri', serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    direction: rtl;
    text-align: right;
    color: var(--text-color);
    line-height: 1.6;
    background-color: #fff;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.text-center { text-align: center; }
.bg-light { background-color: var(--bg-light); }
.bg-primary { background-color: var(--primary-color); }
.text-white { color: var(--text-light); }

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 25px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    font-family: var(--font-family);
    font-size: 16px;
    transition: all 0.3s;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
}

.btn-primary:hover {
    background-color: #156b60;
}

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

.btn-white:hover {
    background-color: #f0f0f0;
}

/* Header */
.main-header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.main-header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-right .logo h1 {
    font-size: 24px;
    color: var(--primary-color);
    margin: 0;
}

.desktop-nav ul {
    display: flex;
    gap: 20px;
}

.desktop-nav a {
    font-size: 18px;
    font-weight: 700;
    color: #333;
}

.desktop-nav a:hover {
    color: var(--primary-color);
}

.mobile-nav-toggle { display: none; }
.mobile-nav { display: none; }

/* New Hero Section Styles (Site123 Clone) */
.s123-module-headers {
    position: relative;
    padding: 60px 0;
    overflow: hidden;
}

.bg-primary-gray {
    background-color: #f7f7f7;
}

.hpm-height-85vh {
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.headers-text-resize-container {
    width: 100%;
}

.headers-text-orders {
    margin-bottom: 30px;
}

.m-h-item.header2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.4;
}

.m-h-item.header2 div {
    font-size: 18px;
    font-weight: 400;
    color: #666;
    margin-top: 10px;
}

.headers-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin: 20px 0;
}

.s123-c-t-a {
    margin-top: 30px;
}

.s123-action-btn.btn-primary-white {
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 50px;
    padding: 15px 40px;
    font-size: 20px;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 5px 15px rgba(30, 148, 132, 0.3);
}

.s123-action-btn.btn-primary-white:hover {
    background-color: #156b60;
    transform: translateY(-2px);
}

.a-b-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Shape Mask Support */
.s123-module-headers::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: var(--shape-height, 30px);
    background-color: #fff; /* Match the next section's background */
    mask-image: var(--shape-mask);
    -webkit-mask-image: var(--shape-mask);
    mask-size: 100% 100%;
    -webkit-mask-size: 100% 100%;
    z-index: 10;
    pointer-events: none;
}

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

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

.section-header h2 {
    font-size: 36px;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.section-divider {
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
    border: none;
    margin: 0 auto;
}

.section-divider.white { background-color: #fff; }

/* About */
.about-section {
    background-color: #f2f2f2;
}

.about-content-wrapper {
    display: flex;
    align-items: center;
    gap: 40px;
}

.about-content-wrapper .col-text {
    flex: 1;
}

.about-content-wrapper .col-image {
    flex: 1;
}

.about-content-wrapper img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Services (Layout 4 Clone) */
.s123-module-blogs .container-content .row {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.blog-m {
    background: #fff;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    width: 100%;
    max-width: 350px;
    margin-bottom: 30px;
    transition: transform 0.3s;
}

.blog-m:hover {
    transform: translateY(-5px);
}

.blog-m-bg {
    height: 200px;
    background-size: cover;
    background-position: center;
    display: block;
}

.blog-m-details {
    padding: 20px;
    text-align: right;
}

.blog-m-title h4 {
    font-size: 20px;
    margin-bottom: 10px;
}

.blog-m-title a {
    color: var(--secondary-color);
}

.blog-m-meta {
    font-size: 12px;
    color: #999;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.blog-m-content p {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Limit to 2 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.6;
}

.blog-read-more-btn {
    display: inline-block;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 14px;
}

/* Gallery (Flickity/Isotope) */
.isotope-gallery-container {
    width: 100%;
    overflow: hidden;
    background: #000;
}

.flickity-viewport {
    width: 100%;
}

.g-i {
    width: 25%; /* 4 images per row on desktop */
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
    transition: opacity 0.3s;
}

.g-i.is-selected {
    opacity: 1;
}

@media (max-width: 768px) {
    .g-i { width: 50%; } /* 2 images per row on mobile */
}


/* Contact Form */
.contact-form-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-row input, .form-row textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 5px;
    background: rgba(255,255,255,0.1);
    color: #fff;
    font-family: var(--font-family);
}

.form-row input::placeholder, .form-row textarea::placeholder {
    color: rgba(255,255,255,0.7);
}

.form-row input:focus, .form-row textarea:focus {
    outline: none;
    background: rgba(255,255,255,0.2);
}

.full-width {
    width: 100%;
}

.contact-info-wrapper {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 30px;
    color: #fff;
    font-size: 18px;
}

/* Footer */
.main-footer {
    background-color: var(--secondary-color);
    color: #fff;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    text-align: right;
    margin-bottom: 40px;
}

.footer-section h3 {
    margin-bottom: 20px;
    color: var(--primary-color);
}

.footer-section a {
    color: #ccc;
    display: block;
    margin-bottom: 10px;
}

.footer-section a:hover {
    color: #fff;
}

.contact-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    font-size: 14px;
    color: #aaa;
}

/* Responsive */
@media (max-width: 768px) {
    .desktop-nav { display: none; }
    .mobile-nav-toggle { display: block; }
    
    .mobile-nav-toggle button {
        background: none;
        border: none;
        font-size: 24px;
        color: var(--primary-color);
    }

    .mobile-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 250px;
        height: 100vh;
        background: #fff;
        z-index: 1001;
        transition: right 0.3s;
        padding: 20px;
        box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    }

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

    .mobile-nav ul li {
        margin-bottom: 20px;
    }

    .mobile-nav a {
        font-size: 18px;
        font-weight: 700;
        color: #333;
    }

    .hero-title { font-size: 32px; }
    .hero-subtitle { font-size: 18px; }
    
    .about-content-wrapper {
        flex-direction: column;
    }

    .form-row {
        flex-direction: column;
    }
}

/* Mobile Contact Options */
@media (max-width: 768px) {
    .mobile-contact-options { display: none !important; }

    .mobile-bottom-bar {
        display: flex !important;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 60px;
        background-color: var(--primary-color);
        z-index: 9999;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    }

    .bottom-bar-item {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        color: #fff;
        text-decoration: none;
        border-left: 1px solid rgba(255,255,255,0.1);
        font-size: 14px;
        transition: background-color 0.3s;
    }
    
    .bottom-bar-item:active {
        background-color: rgba(0,0,0,0.1);
    }
    
    .bottom-bar-item:last-child {
        border-left: none;
    }

    .bottom-bar-item i {
        font-size: 24px;
        margin-bottom: 2px;
    }

    /* Share Button */
    .mobile-share-btn {
        display: block !important;
        position: fixed;
        bottom: 75px;
        left: 20px;
        z-index: 9999;
    }

    .mobile-share-btn button {
        width: 50px;
        height: 50px;
        border-radius: 50%;
        background-color: var(--primary-color);
        color: #fff;
        border: none;
        box-shadow: 0 4px 10px rgba(0,0,0,0.2);
        font-size: 20px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

@media (min-width: 769px) {
    .mobile-bottom-bar, .mobile-share-btn {
        display: none !important;
    }
}


/* Enhanced Contact Form Section */
.contact-section {
    background-color: #f7f9fc;
    background-image: linear-gradient(135deg, #f7f9fc 0%, #eef2f7 100%);
    position: relative;
    padding: 100px 0;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 10px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
}

.section-subtitle {
    color: #666;
    font-size: 18px;
    margin-bottom: 30px;
    margin-top: -10px;
}

.contact-card {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    padding: 40px;
    max-width: 900px;
    margin: 0 auto;
    border-top: 5px solid var(--primary-color);
}

.contact-form-wrapper {
    width: 100%;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: var(--secondary-color);
    font-size: 15px;
}

.input-icon-wrapper {
    position: relative;
}

.input-icon-wrapper i {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    color: #999;
    transition: color 0.3s;
}

.input-icon-wrapper.textarea-wrapper i {
    top: 20px;
}

.form-control {
    width: 100%;
    padding: 12px 45px 12px 15px; /* Right padding for icon in RTL */
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    font-family: var(--font-family);
    transition: all 0.3s ease;
    background-color: #fcfcfc;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(30, 148, 132, 0.1);
}

.form-control:focus + i,
.input-icon-wrapper:focus-within i {
    color: var(--primary-color);
}

.full-width {
    grid-column: 1 / -1;
}

.form-submit {
    margin-top: 10px;
}

.btn-lg {
    padding: 15px 40px;
    font-size: 18px;
    min-width: 200px;
}

.btn-block {
    width: 100%;
    display: block;
}

/* Floating WhatsApp (Desktop) */
.floating-whatsapp {
    display: none;
}

@media (min-width: 769px) {
    .floating-whatsapp {
        display: flex;
        align-items: center;
        justify-content: center;
        position: fixed;
        bottom: 30px;
        left: 30px;
        width: 60px;
        height: 60px;
        background-color: #25d366;
        color: #fff;
        border-radius: 50%;
        text-decoration: none;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
        z-index: 1000;
        transition: all 0.3s ease;
    }
    
    .floating-whatsapp:hover {
        transform: translateY(-5px);
        box-shadow: 0 6px 16px rgba(0,0,0,0.2);
        background-color: #20bd5a;
        color: #fff;
    }
    
    .floating-whatsapp i {
        font-size: 32px;
    }
}

/* Responsive for Contact Form */
@media (max-width: 768px) {
    .contact-card {
        padding: 25px;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .btn-lg {
        width: 100%;
    }
}

/* Compare Details (About Us) */
.compare-details {
    padding: 20px;
}

.compare-title {
    color: var(--primary-color);
    font-size: 24px;
    margin-bottom: 20px;
    font-weight: bold;
}

.compare-description {
    color: #555;
    line-height: 1.8;
}

.text-130 {
    font-size: 1.3em;
}

.compare-description strong {
    color: var(--secondary-color);
}
