:root {
    --color-dark-blue: #001a33;
    --color-gold: #D4AF37;
    --color-yellow: #FFD700;
    --color-cream: #FDFBF7;
    --color-charcoal: #1A1A1A;
    --color-text: #2D2D2D;
    --color-text-dim: #666666;
    --color-whatsapp: #24CD63;
    --color-accent-bg: #F5F5F0;
    --font-ar: 'Tajawal', sans-serif;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-ar);
    background-color: var(--color-cream);
    color: var(--color-text);
    line-height: 1.8;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.p-block {
    padding: 6rem 0;
}

.bg-alternate {
    background-color: white;
}

/* Navigation */
nav#main-nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    padding: 1.5rem 0;
    background: white;
}

nav#main-nav.scrolled {
    padding: 0.8rem 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo Styles */
.logo-flex {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--color-dark-blue);
    border: 2.5px solid var(--color-dark-blue);
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.brand-name {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--color-dark-blue);
}

.brand-sub {
    font-size: 0.6rem;
    font-weight: 700;
    color: var(--color-text-dim);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--color-text);
    font-weight: 600;
}

.nav-links a:hover {
    color: var(--color-gold);
}

.nav-actions {
    display: flex;
    gap: 1rem;
}

.btn-icon {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 50%;
    box-shadow: var(--shadow);
    color: var(--color-text);
}

.whatsapp-color {
    background: var(--color-whatsapp);
    color: white;
}

.mobile-toggle {
    display: none;
    background: var(--color-dark-blue);
    color: white;
    padding: 10px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    padding: 2rem;
    transform: translateX(100%);
    transition: transform 0.4s ease;
}


.mobile-menu-overlay.active {
    transform: translateX(0);
}

.close-menu {
    align-self: flex-start;
    background: none;
    border: none;
    font-size: 2rem;
}

.menu-content {
    margin-top: 3rem;
    text-align: right;
}

.menu-logo {
    font-size: 2rem;
    font-weight: 900;
    color: var(--color-dark-blue);
    margin-bottom: 2rem;
}

.mobile-nav-links {
    list-style: none;
}

.mobile-nav-links li {
    margin-bottom: 1.5rem;
}

.mobile-nav-links a {
    font-size: 1.5rem;
    font-weight: 800;
    text-decoration: none;
    color: var(--color-dark-blue);
}

.menu-footer {
    margin-top: auto;
    border-top: 1px solid #eee;
    padding-top: 2rem;
}

/* Hero */
#hero {
    min-height: 70vh;
    padding-top: 10rem;
    background: radial-gradient(circle at 0% 0%, #fff 0%, var(--color-cream) 100%);
    position: relative;
}

.main-title {
    font-size: 4rem;
    font-weight: 900;
    color: var(--color-dark-blue);
    line-height: 1.2;
}

.accent-large {
    color: var(--color-yellow);
}

.hero-description {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--color-dark-blue);
    margin-top: 2rem;
}

.btn-copy-alt {
    margin-top: 2.5rem;
    background: white;
    border: 2.5px solid var(--color-dark-blue);
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-ar);
}

.floating-whatsapp-btn {
    position: absolute;
    right: 0;
    top: 50%;
    background: var(--color-whatsapp);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px 0 0 50px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    z-index: 100;
}

.pulsing {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4);
    }

    70% {
        box-shadow: 0 0 0 20px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    align-items: center;
}

.badge-gold {
    background: rgba(212, 175, 55, 0.1);
    color: var(--color-gold);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 800;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.stat-card {
    background: var(--color-cream);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
}

.stat-card strong {
    font-size: 2.5rem;
    color: var(--color-dark-blue);
    display: block;
}

/* Service Promo */
.promo-box {
    background: var(--color-dark-blue);
    padding: 4rem;
    border-radius: 24px;
    text-align: center;
    color: white;
}

.promo-title {
    color: var(--color-yellow);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    font-weight: 900;
}

.promo-whatsapp-btn {
    background: var(--color-yellow);
    color: var(--color-dark-blue);
    padding: 1.2rem 2.5rem;
    border-radius: 12px;
    font-weight: 900;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 2rem;
}

/* Advantages */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

.adv-card {
    background: white;
    padding: 3rem 2.5rem;
    border-radius: 20px;
    text-align: center;
    border: 1px solid #eee;
}

.adv-card i {
    color: var(--color-gold);
    width: 50px;
    height: 50px;
    margin-bottom: 1.5rem;
}

.adv-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background: white;
    padding: 0;
    border-radius: 20px;
    text-align: center;
    border: 1px solid #f5f5f5;
    overflow: hidden;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
}

.card-img {
    width: 100%;
    height: 180px;
    overflow: hidden;
    margin-bottom: 2rem;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.service-card:hover .card-img img {
    transform: scale(1.1);
}

.service-card i {
    color: var(--color-gold);
    width: 45px;
    height: 45px;
    margin-bottom: 1rem;
    position: relative;
    z-index: 10;
}

.service-card h3,
.service-card p {
    padding: 0 1.5rem;
}

.service-card p {
    margin-bottom: 2rem;
    font-size: 0.95rem;
    color: var(--color-text-dim);
}

/* Blog Section */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.blog-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    transition: var(--transition);
    border: 1px solid #f0f0f0;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
}

.blog-img {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
    background: #f8f9fa;
    /* Fallback for loading */
}

.trending-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #ff3b30;
    color: white;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 800;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 12px rgba(255, 59, 48, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.trending-badge i {
    width: 14px;
    color: white;
    margin: 0;
}

.blog-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.blog-card:hover .blog-img img {
    transform: scale(1.1);
}

.blog-info {
    padding: 2rem;
}

.blog-date {
    font-size: 0.85rem;
    color: var(--color-gold);
    font-weight: 700;
    display: block;
    margin-bottom: 0.8rem;
}

.blog-info h3 {
    font-size: 1.4rem;
    color: var(--color-dark-blue);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.blog-info p {
    font-size: 0.95rem;
    color: var(--color-text-dim);
    margin-bottom: 1.5rem;
}

.read-more {
    color: var(--color-dark-blue);
    text-decoration: none;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.read-more:hover {
    color: var(--color-gold);
}

.read-more i {
    width: 20px;
}

/* Areas */
.area-box {
    background: var(--color-dark-blue);
    color: white;
    padding: 4rem 2rem;
    border-radius: 30px;
    text-align: center;
}

.pill-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 2rem;
}

.pill {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
}

/* Contact Section */
.contact-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    background: var(--color-dark-blue);
    padding: 4rem;
    border-radius: 24px;
    color: white;
}

.contact-methods {
    margin-top: 2rem;
}

.method {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.sell-form {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    color: var(--color-text);
}

.form-group {
    margin-bottom: 1.5rem;
}

.sell-form input,
.sell-form select {
    width: 100%;
    padding: 1rem;
    border: 1.5px solid #eee;
    border-radius: 8px;
    font-family: var(--font-ar);
}

.btn-primary {
    background: var(--color-dark-blue);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-weight: 800;
    cursor: pointer;
}

.w-100 {
    width: 100%;
}

/* Sticky Nav (Mobile) */
.sticky-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--color-dark-blue);
    display: none;
    justify-content: space-around;
    padding: 0.8rem 0;
    z-index: 2000;
}

.sticky-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 700;
    flex: 1;
}

.sticky-item.active {
    color: var(--color-yellow);
}

.call-action {
    transform: translateY(-15px);
}

.call-circle {
    width: 60px;
    height: 60px;
    background: var(--color-yellow);
    color: var(--color-dark-blue);
    border-radius: 50%;
    border: 6px solid var(--color-dark-blue);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Footer */
.main-footer {
    background: #0a0a0a;
    color: #999;
    padding: 5rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    border-bottom: 1px solid #222;
    padding-bottom: 4rem;
}

.footer-col h4 {
    color: white;
    margin-bottom: 2rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col a {
    color: #999;
    text-decoration: none;
    display: block;
    margin-bottom: 0.8rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 6rem;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 0.8rem 2.5rem;
    border-radius: 50px;
    z-index: 5000;
}

.hidden {
    display: none;
}

/* Mobile Responsive */
@media (max-width: 968px) {
    .p-block {
        padding: 4rem 0;
    }

    .nav-wrapper {
        flex-direction: row-reverse;
    }

    .mobile-toggle {
        display: block;
    }

    .nav-links,
    .nav-actions.desktop-only,
    .hero-btns-refined,
    .about-stats {
        display: none;
    }

    #hero {
        padding-top: 8rem;
        text-align: right;
    }

    .hero-grid,
    .about-grid,
    .contact-card {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .main-title {
        font-size: 3rem;
    }

    .hero-description {
        font-size: 1.5rem;
        text-align: right;
    }

    .floating-whatsapp-btn {
        top: 60%;
    }

    .sticky-bottom-nav {
        display: flex;
    }

    body {
        padding-bottom: 80px;
    }
}