/* ============================================================
   style-ar.css — Arabic RTL Overrides for Delta Towers
   Loaded AFTER style.css to override LTR-specific rules.
   Font: Cairo — for all text (headings + body)
   ============================================================ */

/* =============================================
   1. GLOBAL: Cairo font + RTL direction
   ============================================= */
body {
    font-family: 'Cairo', sans-serif;
    direction: rtl;
    text-align: right;
}

/* Override ALL elements to Cairo — use !important to beat Playfair Display in base CSS */
* {
    font-family: 'Cairo', sans-serif !important;
    letter-spacing: 0 !important;
}

/* Explicit overrides for high-specificity base rules */
.hero h1,
.section-title,
.stat-item h2,
.service-content h3,
.p-info h3,
.team-info h3,
.news-content h3,
.plan-card h3,
footer h4,
.gold,
span.gold {
    font-family: 'Cairo', sans-serif !important;
    letter-spacing: 0 !important;
}

/* =============================================
   2. NAVIGATION — Logo RIGHT, links start right after it
   ============================================= */

nav {
    direction: rtl;
    justify-content: flex-start !important; /* pack everything to the right */
    gap: 40px;                              /* space between logo and links  */
}

/* Nav-links: RTL flow, items go right → left */
.nav-links {
    direction: rtl;
    display: flex !important;
    flex-direction: row;
    align-items: center;
    gap: 22px;           /* uniform gap between items */
}

/* Zero out the LTR margin-left from base CSS */
.nav-links li {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Language switch: swap border side */
.lang-switch {
    border-left: none !important;
    border-right: 1px solid #444 !important;
    padding-left: 0 !important;
    padding-right: 15px !important;
}

/* ── Hamburger button (hidden on desktop) ─────────────── */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
    background: none;
    border: none;
    margin-right: auto; /* push to the left in RTL nav */
}
.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =============================================
   3. HERO
   ============================================= */
.hero h1 {
    font-size: 4rem;
    line-height: 1.3;
}

.hero p {
    font-size: 1.15rem;
    line-height: 2;
}

/* =============================================
   4. ABOUT — text right, image left
   ============================================= */
.about {
    flex-direction: row-reverse;
}

.about-text p {
    font-size: 1.05rem;
    line-height: 2;
}

.check-list li {
    font-size: 1.05rem;
    line-height: 1.9;
}

/* =============================================
   5. SERVICES / EXPERTISE
   ============================================= */
.service-content h3 {
    font-size: 1.55rem;
    line-height: 1.4;
}
.service-content p {
    font-size: 0.97rem;
    line-height: 1.85;
}

/* =============================================
   6. INSTALLMENT SECTION
   ============================================= */
.install-lead {
    font-size: 1.1rem;
    line-height: 2;
}

.plan-card h3 {
    font-size: 1.7rem;
}

.plan-price {
    direction: rtl;
}

.plan-features {
    text-align: right;
    direction: rtl;
}

.install-feat-item h4 {
    font-size: 1.1rem;
}

.install-feat-item p {
    font-size: 0.92rem;
    line-height: 1.8;
}

/* =============================================
   7. PROJECTS
   ============================================= */
/* Flip project info overlay to right side */
.p-info {
    left: auto;
    right: 30px;
}

/* =============================================
   8. TEAM
   ============================================= */
.team-lead {
    font-size: 1.05rem;
    line-height: 2;
}

.team-info h3 {
    font-size: 1.3rem;
}

.team-info p {
    line-height: 1.9;
    font-size: 0.95rem;
}

/* =============================================
   9. NEWS
   ============================================= */
.news-content h3 {
    font-size: 1.15rem;
    line-height: 1.7;
}

/* =============================================
   10. FOOTER
   ============================================= */
.grid-footer {
    direction: rtl;
}

.f-about p {
    width: 90%;
    line-height: 1.9;
}

footer ul li a {
    font-size: 0.95rem;
}

.bottom-bar p {
    font-size: 14px;
}

/* =============================================
   11. SUB-TITLE adjustments
   ============================================= */
.sub-title {
    letter-spacing: 1px;
    font-size: 13px;
    font-weight: 700;
}

/* =============================================
   12. RESPONSIVE
   ============================================= */
@media (max-width: 1100px) {
    nav { gap: 20px; }
    .nav-links { gap: 14px; }
    .nav-links a { font-size: 12px; }
}

@media (max-width: 992px) {
    .about { flex-direction: column; }
    .hero h1 { font-size: 3rem; }
    .project-grid { grid-template-columns: repeat(2,1fr); }
}

/* ── Mobile: hamburger replaces nav-links ─── */
@media (max-width: 768px) {
    /* Show hamburger */
    .hamburger { display: flex; }

    /* Hide nav-links by default on mobile */
    .nav-links {
        display: none !important;
        position: fixed;
        top: 0;
        right: 0;
        width: 75vw;
        max-width: 320px;
        height: 100vh;
        background: rgba(8,8,8,0.98);
        backdrop-filter: blur(12px);
        flex-direction: column !important;
        align-items: flex-start;
        justify-content: center;
        gap: 10px;
        padding: 80px 30px 40px;
        border-left: 1px solid rgba(212,175,55,0.2);
        z-index: 999;
        transition: transform 0.3s ease;
    }

    /* Open state */
    .nav-links.open {
        display: flex !important;
    }

    .nav-links li { width: 100%; margin: 0 !important; }
    .nav-links a {
        font-size: 18px !important;
        display: block;
        padding: 12px 0;
        border-bottom: 1px solid #1e1e1e;
    }
    .lang-switch {
        border-right: none !important;
        border-top: 1px solid #333 !important;
        padding-right: 0 !important;
        margin-top: 10px;
    }

    /* Keep nav as RTL row: logo right, hamburger left */
    nav {
        justify-content: space-between !important;
        gap: 0;
    }

    .hero h1 { font-size: 2.4rem; }
    .section-title { font-size: 2rem !important; }
    .p-info { right: 20px; left: auto; }
    .project-grid { grid-template-columns: 1fr; }
    .grid-footer { grid-template-columns: 1fr; }
    .install-plans { grid-template-columns: 1fr; }
    .plan-card.featured { transform: scale(1); }
    .team-grid { grid-template-columns: 1fr; }
    .grid-3 { grid-template-columns: 1fr; }
}

/* ===== PREMIUM FOOTER ===== */
.premium-footer {
    position: relative;
    background: 
        linear-gradient(to bottom, rgba(15, 15, 15, 0.92), rgba(0, 0, 0, 0.98)),
        url('https://images.unsplash.com/photo-1512453979798-5ea266f8880c?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
    border-top: 3px solid var(--gold);
    padding-top: 70px;
    color: #aaa;
}
.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 2fr 1.2fr;
    gap: 40px;
    margin-bottom: 50px;
}
@media (max-width: 992px) {
    .footer-top { grid-template-columns: 1fr; }
}
.footer-brand .footer-logo {
    height: 55px;
    width: auto;
    object-fit: contain;
    margin-bottom: 20px;
}
.brand-desc {
    line-height: 1.8;
    margin-bottom: 25px;
    font-size: 0.95rem;
    max-width: 350px;
}
.footer-socials {
    display: flex;
    gap: 15px;
}
.footer-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #111;
    color: white;
    border-radius: 50%;
    text-decoration: none;
    font-size: 0.9rem;
    transition: 0.3s;
    border: 1px solid #222;
}
.footer-socials a:hover {
    background: var(--gold);
    border-color: var(--gold);
    transform: translateY(-3px);
}
.footer-links-group {
    display: flex;
    justify-content: space-around;
    gap: 20px;
}
@media (max-width: 768px) {
    .footer-links-group { flex-direction: column; gap: 40px; }
}
.footer-widget h4 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}
.footer-widget h4::after {
    right: 0;
    left: auto;
}
.footer-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-widget ul li {
    margin-bottom: 12px;
}
.footer-widget ul li a {
    color: #aaa;
    text-decoration: none;
    transition: 0.3s;
    font-size: 0.95rem;
}
.footer-widget ul li a:hover {
    color: var(--gold);
    padding-right: 5px;
    padding-left: 0;
}
.footer-newsletter p {
    font-size: 0.9rem;
    margin-bottom: 15px;
}
.newsletter-form {
    display: flex;
    margin-bottom: 25px;
}
.newsletter-form input {
    border-left: none;
    border-right: 1px solid #222;
}
.newsletter-form input:focus {
    outline: none;
    border-color: var(--gold);
}
.newsletter-form button {
    background: var(--gold);
    color: var(--black);
    border: none;
    padding: 0 20px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
}
.newsletter-form button:hover {
    background: white;
}
.footer-contact-info p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: #ddd;
}
.footer-bottom {
    background: #020202;
    padding: 20px 0;
    border-top: 1px solid #1a1a1a;
}
.fb-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}
.fb-inner p {
    margin: 0;
    font-size: 0.9rem;
}
.fb-links a {
    margin-right: 20px;
}
