/* =========================================
   CSS Variables & Resets
   ========================================= */
:root {
    --primary-color: #05211e;
    --primary-light: #0a3d38;
    --secondary-color: #d4af37;
    /* Gold accent for Islamic theme */
    --text-color: #333333;
    --text-light: #666666;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --danger: #e74c3c;
    --success: #2ecc71;
    --transition: all 0.3s ease-in-out;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 10px 25px rgba(5, 33, 30, 0.15);
    --border-radius: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Tajawal', sans-serif;
    color: var(--text-color);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* =========================================
   Typography & Utilities
   ========================================= */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--primary-color);
    margin-bottom: 15px;
}

p {
    margin-bottom: 15px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--bg-light);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.divider {
    height: 3px;
    width: 80px;
    background-color: var(--secondary-color);
    margin: 0 auto;
    border-radius: 2px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    text-align: center;
    border: none;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--white);
    box-shadow: 0 4px 10px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover {
    background-color: #b8992e;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(212, 175, 55, 0.4);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-block {
    display: block;
    width: 100%;
}

/* =========================================
   Navbar
   ========================================= */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: transparent;
    padding: 20px 0;
    z-index: 1000;
    transition: var(--transition);
}

#navbar.scrolled {
    background-color: var(--primary-color);
    padding: 10px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.nav-logo-img {
    height: 70px;
    width: auto;
    object-fit: contain;
    transition: var(--transition);
}

#navbar.scrolled .nav-logo-img {
    height: 60px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links li a {
    color: var(--white);
    font-weight: 500;
    font-size: 1.1rem;
    position: relative;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

.nav-links li a:hover::after {
    width: 100%;
}

.btn-nav {
    background-color: var(--secondary-color);
    color: var(--white) !important;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 700;
}

.btn-nav::after {
    display: none;
}

.btn-nav:hover {
    background-color: var(--white);
    color: var(--primary-color) !important;
}

.menu-toggle {
    display: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
}

/* =========================================
   Hero Section
   ========================================= */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    background: url('https://images.unsplash.com/photo-1565552643950-02bd3dd1dc24?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(5, 33, 30, 0.75);
    /* var(--primary-color) with opacity */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero h1 {
    font-size: 4rem;
    color: var(--white);
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero h3 {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 25px;
    font-weight: 500;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

/* =========================================
   Services Section
   ========================================= */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    background-color: var(--white);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border-bottom: 3px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-bottom: 3px solid var(--secondary-color);
}

.service-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    transition: var(--transition);
}

.service-card:hover i {
    color: var(--secondary-color);
}

/* =========================================
   Owner Section
   ========================================= */
.owner-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.owner-image {
    flex: 1;
}

.owner-image img {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-hover);
}

.owner-text {
    flex: 1;
}

.owner-text p {
    font-size: 1.1rem;
    color: var(--text-light);
}

/* =========================================
   Offers Section (Blog Style)
   ========================================= */
.offers-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 30px;
}

.offer-card {
    display: flex;
    background-color: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.offer-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-5px);
}

.offer-img-container {
    flex: 0 0 35%;
    position: relative;
}

.offer-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.offer-content {
    flex: 1;
    padding: 30px;
    display: flex;
    flex-direction: column;
}

.offer-content h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.offer-content p {
    color: var(--text-light);
    flex-grow: 1;
}

.offer-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.offer-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
}

.offer-price span {
    font-size: 1rem;
    color: var(--text-light);
    font-weight: 400;
}

/* =========================================
   About Section
   ========================================= */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.about-card {
    background-color: var(--white);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
}

.about-card i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

/* =========================================
   Booking Section
   ========================================= */
.booking-wrapper {
    display: flex;
    gap: 50px;
    background-color: var(--primary-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-hover);
}

.booking-info {
    flex: 1;
    padding: 50px;
    color: var(--white);
}

.booking-info h2 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 2rem;
}

.booking-info p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.contact-list i {
    color: var(--secondary-color);
    font-size: 1.2rem;
    width: 25px;
    text-align: center;
}

.booking-form-container {
    flex: 1;
    padding: 50px;
    background-color: var(--white);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: var(--primary-color);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(5, 33, 30, 0.1);
}

.success-message {
    display: none;
    background-color: rgba(46, 204, 113, 0.1);
    border-left: 4px solid var(--success);
    border-right: 4px solid var(--success);
    border-left: none;
    /* Override for RTL */
    padding: 20px;
    border-radius: var(--border-radius);
    margin-top: 20px;
    text-align: center;
}

.success-message i {
    font-size: 3rem;
    color: var(--success);
    margin-bottom: 10px;
}

.success-message p {
    color: var(--text-color);
    font-weight: 700;
    margin-bottom: 0;
}

/* =========================================
   Footer
   ========================================= */
.footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 80px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.footer-logo-img {
    height: 80px;
    width: auto;
    object-fit: contain;
}

.footer-col p {
    color: rgba(255, 255, 255, 0.7);
}

.footer-col h4 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 2px;
    background-color: var(--secondary-color);
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-col ul li a:hover {
    color: var(--secondary-color);
    padding-right: 5px;
}

.footer-col p i {
    color: var(--secondary-color);
    margin-left: 10px;
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* =========================================
   Components Elements
   ========================================= */
/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    /* Left for RTL */
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 100;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.whatsapp-float:hover {
    background-color: #128C7E;
    transform: scale(1.1);
}

/* Scroll to Top */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    /* Right for RTL */
    background-color: var(--primary-color);
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 99;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.scroll-to-top.active {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background-color: var(--secondary-color);
    transform: translateY(-5px);
}

/* =========================================
   Animations
   ========================================= */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards;
}

.delay-1 {
    animation-delay: 0.3s;
}

.delay-2 {
    animation-delay: 0.6s;
}

.delay-3 {
    animation-delay: 0.9s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================
   Responsive Design
   ========================================= */
@media (max-width: 992px) {
    .offers-grid {
        grid-template-columns: 1fr;
    }

    .offer-card {
        flex-direction: column;
    }

    .offer-img-container {
        height: 250px;
    }

    .booking-wrapper {
        flex-direction: column;
    }

    .owner-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero h3 {
        font-size: 1.5rem;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--primary-color);
        flex-direction: column;
        padding: 20px 0;
        gap: 20px;
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: clip-path 0.4s ease-in-out;
    }

    .nav-links.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }

    .menu-toggle {
        display: block;
    }

    #navbar {
        background-color: var(--primary-color);
        /* solid bg on mobile */
        padding: 15px 0;
    }
}