/*
Theme Name: Rawasi Sovereign Child
Description: Luxury Sovereign Child Theme for Rawasi (رواسي)
Author: Design Pro
Template: hello-elementor
Version: 3.0.0
Text Domain: rawasi-sovereign-child
*/

/* ========================================
   SOVEREIGN PALETTE — Single Source of Truth
   --sage:   #4A6741  (Primary Action)
   --gold:   #D4AF37  (Luxury Accent)
   --ink:    #1A1A1A  (Body Text & Headings)
   --alabaster: #F9FBFA (Surface Background)
   --white:  #FFFFFF  (Pure Container)
   --divider: rgba(26, 26, 26, 0.05)
   ======================================== */

:root {
    --sage:      #4A6741;
    --sage-dark: #3a5233;
    --gold:      #D4AF37;
    --gold-light: #e8c84a;
    --ink:       #1A1A1A;
    --ink-muted: rgba(26, 26, 26, 0.65);
    --ink-faint:  rgba(26, 26, 26, 0.40);
    --alabaster: #F9FBFA;
    --white:     #FFFFFF;
    --divider:   rgba(26, 26, 26, 0.05);
    --radius-btn: 10px;
    --transition: 0.4s ease;
}

/* ========================================
   GLOBAL BASE
   ======================================== */
html, body {
    font-family: 'Almarai', sans-serif;
    font-weight: 400;
    background-color: var(--alabaster);
    color: var(--ink);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* ========================================
   LTR UTILITIES (Phone Numbers, Emails)
   ======================================== */
.zam-ltr,
[dir="ltr"] {
    direction: ltr !important;
    unicode-bidi: embed;
    display: inline-block;
}

/* ========================================
   HELLO ELEMENTOR CLEANUP
   ======================================== */
.site-header, .site-footer {
    padding: 0 !important;
    margin: 0 !important;
}

.page-title, .entry-title {
    display: none !important;
}

/* ========================================
   ELITE LAYOUT — Wide-Screen Containers
   ======================================== */
.elementor-section.elementor-section-boxed > .elementor-container,
.e-con-inner,
.elementor-container {
    max-width: 1400px !important;
    padding-left: 40px;
    padding-right: 40px;
}

@media (max-width: 1024px) {
    .elementor-section.elementor-section-boxed > .elementor-container,
    .e-con-inner,
    .elementor-container {
        padding-left: 24px;
        padding-right: 24px;
    }
}

/* ========================================
   FOOTER STYLES (Scoped to #zam-footer)
   ======================================== */
#zam-footer {
    background-color: var(--ink);
    color: var(--white);
    font-family: 'Almarai', sans-serif;
    direction: rtl;
    margin-top: 60px;
}

#zam-footer * {
    box-sizing: border-box;
}

/* Top accent bar — Sovereign Gold */
.zam-footer-top-accent {
    height: 4px;
    background: var(--gold);
    width: 100%;
}

.zam-footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 64px 40px 28px;
}

.zam-footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--divider);
}

/* ---- Typography ---- */
.zam-footer-logo {
    font-size: 28px;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

/* Accent spans — Gold replaces old red */
.zam-accent {
    color: var(--gold);
}

.zam-footer-text {
    font-size: 14px;
    color: var(--ink-muted);
    margin-bottom: 20px;
    line-height: 1.8;
    font-weight: 300;
}

/* ---- Coverage Box ---- */
.zam-coverage-box {
    background: rgba(212, 175, 55, 0.08);
    border-right: 3px solid var(--gold);
    padding: 14px 18px;
    margin: 16px 0;
    border-radius: 8px;
}

.zam-coverage-main {
    font-size: 13px;
    color: var(--white);
    margin-bottom: 4px;
    line-height: 1.6;
}

.zam-coverage-main strong {
    font-weight: 800;
    color: var(--gold);
}

.zam-coverage-sub {
    font-size: 12px;
    color: var(--ink-faint);
    margin: 0;
    font-weight: 300;
}

/* ---- Section Headings ---- */
.zam-footer-heading {
    font-size: 17px;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 24px;
    position: relative;
    display: inline-block;
    letter-spacing: 0.2px;
}

.zam-footer-heading::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 0;
    width: 32px;
    height: 2px;
    background: var(--gold);
    transition: width var(--transition);
}

.zam-footer-heading:hover::after {
    width: 100%;
}

/* ---- Links ---- */
.zam-footer-links,
.zam-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.zam-footer-links li,
.zam-contact-list li {
    margin-bottom: 12px;
}

.zam-footer-links a,
.zam-contact-link {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 400;
    color: var(--ink-muted);
    text-decoration: none;
    transition: color var(--transition), padding-right var(--transition);
}

.zam-footer-links a:hover,
.zam-contact-link:hover {
    color: var(--gold);
    padding-right: 8px;
}

.zam-footer-links svg,
.zam-contact-link svg {
    min-width: 18px;
    color: var(--sage);
    transition: color var(--transition);
}

.zam-footer-links a:hover svg,
.zam-contact-link:hover svg {
    color: var(--gold);
}

/* ---- Address ---- */
.zam-address {
    font-size: 14px;
    font-weight: 300;
    color: var(--ink-muted);
    margin-bottom: 20px;
    line-height: 1.8;
}

/* ---- Primary Button (Sovereign Style) ---- */
.zam-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--sage);
    color: var(--white);
    padding: 13px 26px;
    border-radius: var(--radius-btn);
    font-size: 13px;
    font-weight: 700;
    font-family: 'Almarai', sans-serif;
    text-decoration: none;
    letter-spacing: 0.3px;
    transition: background var(--transition), color var(--transition),
                transform var(--transition), box-shadow var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
}

.zam-btn:hover {
    background: var(--gold);
    color: var(--ink);
    border-color: var(--gold);
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(212, 175, 55, 0.25);
}

/* Ghost / Outline Variant */
.zam-btn-outline {
    background: transparent;
    color: var(--gold);
    border: 2px solid var(--gold);
}

.zam-btn-outline:hover {
    background: var(--gold);
    color: var(--ink);
}

/* ---- Social Icons ---- */
.zam-social-icons {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}

.zam-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-btn);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--ink-muted);
    text-decoration: none;
    transition: all var(--transition);
}

.zam-social-link:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--ink);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.30);
}

/* ---- Bottom Bar ---- */
.zam-footer-bottom {
    padding-top: 24px;
    text-align: center;
    font-size: 13px;
    font-weight: 300;
    color: var(--ink-faint);
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
    .zam-footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .zam-footer-container {
        padding: 48px 24px 24px;
    }
}

@media (max-width: 640px) {
    .zam-footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 32px;
    }

    .zam-footer-heading::after {
        right: 50%;
        transform: translateX(50%);
    }

    .zam-social-icons {
        justify-content: center;
    }

    .zam-coverage-box {
        text-align: center;
        border-right: none;
        border-bottom: 3px solid var(--gold);
    }

    .zam-footer-container {
        padding: 40px 20px 20px;
    }
}

/* ========================================
   ACCESSIBILITY & PRINT
   ======================================== */
a:focus, button:focus {
    outline: 2px solid var(--gold) !important;
    outline-offset: 3px;
}

@media print {
    .zam-desktop-header,
    .zam-mobile-header,
    .zam-sidebar,
    .zam-sidebar-overlay,
    .mobile-bottom-nav,
    #zam-footer {
        display: none !important;
    }
}

/* Reduce Motion Preference */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}