/* ===== FONT FACES ===== */
@font-face { font-family: 'Tajawal'; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/tajawal-700-arabic.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: 'Tajawal'; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/tajawal-700-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Tajawal'; font-style: normal; font-weight: 900; font-display: swap; src: url(/fonts/tajawal-900-arabic.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: 'Tajawal'; font-style: normal; font-weight: 900; font-display: swap; src: url(/fonts/tajawal-900-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ===== VARIABLES ===== */
:root {
    --dark: #0E0B09;
    --deep: #1A1410;
    --surface: #1E1814;
    --surface-2: #2A2220;
    --surface-3: #342C28;
    --accent: #C87F3B;
    --accent-deep: #9A5E25;
    --accent-light: #E8A85C;
    --accent-glow: rgba(200, 127, 59, 0.25);
    --accent-pale: #F5EBE0;
    --cream: #FAF6F0;
    --sand: #EDE6DC;
    --steel: #7A7572;
    --white: #FFFFFF;
    --text-primary: #FAF6F0;
    --text-secondary: #A89E96;
    --text-dim: #6B6360;
    --whatsapp: #25D366;
    --radius: 12px;
}

/* ===== RESET ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; max-width: 100%; }
body {
    font-family: 'Tajawal', sans-serif;
    background: #0E0B09;
    color: #FAF6F0;
    direction: rtl;
    line-height: 1.7;
    overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ===== CONTAINER ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ===== SCROLL ANIMATIONS ===== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ===== SECTION TITLES ===== */
.section-header { text-align: center; margin-bottom: 64px; }
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 16px;
}
.section-label::before, .section-label::after {
    content: '';
    width: 32px;
    height: 1px;
    background: var(--accent);
}
.section-title {
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--cream);
    line-height: 1.2;
    margin-bottom: 16px;
}
.section-title span { color: var(--accent); }
.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto;
}

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(14, 11, 9, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(200, 127, 59, 0.08);
    transition: all 0.4s;
}
.header.scrolled {
    background: rgba(14, 11, 9, 0.96);
    border-bottom-color: rgba(200, 127, 59, 0.15);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}
.logo {
    font-size: 2rem;
    font-weight: 900;
    color: var(--cream);
    letter-spacing: -1px;
    position: relative;
}
.logo span {
    color: var(--accent);
    text-shadow: 0 0 20px var(--accent-glow);
}
.nav { display: flex; align-items: center; gap: 36px; }
.nav a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 700;
    transition: color 0.3s;
    position: relative;
}
.nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s;
}
.nav a:hover { color: var(--cream); }
.nav a:hover::after { width: 100%; }
.header-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--whatsapp);
    color: var(--white);
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.85rem;
    transition: all 0.3s;
    border: 1px solid rgba(37,211,102,0.3);
}
.header-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(37,211,102,0.25);
}
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}
.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--cream);
    margin: 6px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* ===== MOBILE NAV ===== */
.mobile-nav {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(14, 11, 9, 0.98);
    backdrop-filter: blur(20px);
    padding: 24px;
    z-index: 999;
    flex-direction: column;
    gap: 8px;
    border-bottom: 1px solid rgba(200,127,59,0.15);
}
.mobile-nav.active { display: flex; }
.mobile-nav a {
    color: var(--text-secondary);
    font-size: 1.05rem;
    font-weight: 600;
    padding: 14px 0;
    border-bottom: 1px solid rgba(200,127,59,0.06);
    transition: color 0.2s;
}
.mobile-nav a:hover { color: var(--accent-light); }

/* ===== BREADCRUMB ===== */
.breadcrumb {
    padding: 16px 0;
    background: var(--surface);
    border-bottom: 1px solid rgba(200,127,59,0.06);
}
.breadcrumb-list {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-dim);
    flex-wrap: wrap;
}
.breadcrumb-list a {
    color: var(--accent);
    font-weight: 700;
    transition: color 0.2s;
}
.breadcrumb-list a:hover { color: var(--accent-light); text-decoration: underline; }
.breadcrumb-sep { color: var(--steel); }
/* Alternative breadcrumb inner class used by some pages */
.breadcrumb-inner {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-dim);
    flex-wrap: wrap;
}
.breadcrumb-inner a {
    color: var(--accent);
    font-weight: 700;
}
.breadcrumb-inner a:hover { text-decoration: underline; }

/* ===== BUTTONS ===== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--whatsapp);
    color: var(--white);
    padding: 16px 40px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1.05rem;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(37,211,102,0.3);
}
.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(200,127,59,0.08);
    color: var(--cream);
    padding: 16px 40px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1.05rem;
    border: 1px solid rgba(200,127,59,0.25);
    transition: all 0.3s;
    cursor: pointer;
    backdrop-filter: blur(8px);
}
.btn-secondary:hover {
    border-color: var(--accent);
    background: rgba(200,127,59,0.15);
}

/* ===== SCROLL HINT ===== */
.scroll-hint {
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: row-reverse;
    gap: 8px;
    margin-top: 12px;
    color: var(--text-dim);
    font-size: 0.78rem;
    font-weight: 700;
}
.scroll-arrow {
    display: inline-block;
    width: 20px;
    height: 20px;
    animation: scroll-bounce 1.5s ease-in-out infinite;
}
.scroll-arrow svg {
    width: 100%;
    height: 100%;
    stroke: var(--accent);
    stroke-width: 2;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}
@keyframes scroll-bounce {
    0%, 100% { transform: translateX(0); opacity: 0.5; }
    50% { transform: translateX(6px); opacity: 1; }
}

/* ===== SECTION FADE TRANSITIONS ===== */
.section-fade-top { position: relative; }
.section-fade-top::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 80px;
    background: linear-gradient(180deg, var(--dark), transparent);
    pointer-events: none;
    z-index: 2;
}
.section-fade-bottom { position: relative; }
.section-fade-bottom::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 80px;
    background: linear-gradient(0deg, var(--dark), transparent);
    pointer-events: none;
    z-index: 2;
}

/* ===== PRICING TABLE ===== */
.pricing-table-wrap {
    background: var(--surface);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(200,127,59,0.08);
}
.pricing-table { width: 100%; border-collapse: collapse; }
.pricing-table thead th {
    background: var(--surface-2);
    color: var(--accent);
    padding: 18px 24px;
    text-align: right;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(200,127,59,0.1);
}
.pricing-table tbody tr {
    transition: background 0.2s;
    border-bottom: 1px solid rgba(200,127,59,0.04);
}
.pricing-table tbody tr:hover {
    background: rgba(200,127,59,0.04);
}
.pricing-table td {
    padding: 16px 24px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}
.pricing-table td:first-child {
    color: var(--cream);
    font-weight: 600;
}
.pricing-table td:last-child {
    color: var(--accent);
    font-weight: 700;
    white-space: nowrap;
    font-size: 0.95rem;
}
/* Alternative pricing table wrapper class used by articles */
.pricing-table-wrapper {
    overflow-x: auto;
    margin: 24px 0;
    border-radius: var(--radius);
    border: 1px solid rgba(200,127,59,0.08);
    background: var(--surface);
}

/* ===== FAQ ===== */
.faq {
    padding: 100px 0;
    background: var(--dark);
}
.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.faq-item {
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid rgba(200,127,59,0.06);
    overflow: hidden;
    transition: border-color 0.3s;
}
.faq-item.active {
    border-color: rgba(200,127,59,0.2);
}
.faq-question {
    background: none;
    border: none;
    width: 100%;
    text-align: right;
    font-family: inherit;
    padding: 22px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 700;
    font-size: 1rem;
    color: var(--cream);
    gap: 16px;
    transition: color 0.3s;
}
.faq-question:hover { color: var(--accent-light); }
.faq-toggle {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    border-radius: 8px;
    background: rgba(200,127,59,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}
.faq-item.active .faq-toggle {
    background: var(--accent);
    transform: rotate(45deg);
}
.faq-toggle svg {
    width: 14px;
    height: 14px;
    stroke: var(--accent);
    stroke-width: 2;
    fill: none;
}
.faq-item.active .faq-toggle svg { stroke: var(--dark); }
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.faq-answer-inner {
    padding: 0 28px 24px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.9;
}
/* Alternative FAQ question style used by articles (::after toggle) */
.faq-question::after {
    content: '+';
    font-size: 1.4rem;
    color: var(--accent);
    font-weight: 700;
    transition: transform 0.3s;
}
.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}
/* Hide the ::after when using .faq-toggle icon */
.faq-question:has(.faq-toggle)::after { display: none; }

/* ===== CTA BANNER ===== */
.cta-banner {
    padding: 80px 0;
    background: var(--surface);
    text-align: center;
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(200,127,59,0.08);
    border-bottom: 1px solid rgba(200,127,59,0.08);
}
.cta-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(ellipse, rgba(200,127,59,0.1), transparent 60%);
    pointer-events: none;
}
.cta-banner h2 {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--cream);
    margin-bottom: 12px;
    position: relative;
}
.cta-banner p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 36px;
    position: relative;
}
.cta-banner .btn-primary { position: relative; }

/* ===== FOOTER ===== */
.footer {
    background: var(--dark);
    padding: 72px 0 28px;
    color: var(--text-dim);
    border-top: 1px solid rgba(200,127,59,0.06);
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 48px;
}
.footer-col h4 {
    color: var(--cream);
    font-size: 1rem;
    font-weight: 900;
    margin-bottom: 20px;
}
.footer-col p {
    font-size: 0.85rem;
    line-height: 1.8;
    color: var(--text-dim);
}
.footer-col a {
    display: block;
    font-size: 0.85rem;
    padding: 5px 0;
    color: var(--text-dim);
    transition: all 0.2s;
}
.footer-col a:hover { color: var(--accent-light); padding-right: 4px; }
.footer-cities-list { display: block; }
.footer-cities-list a { display: block; }
.footer-bottom {
    border-top: 1px solid rgba(200,127,59,0.06);
    padding-top: 24px;
    text-align: center;
    font-size: 0.78rem;
    color: var(--text-dim);
}

/* ===== FLOATING WHATSAPP ===== */
.whatsapp-float {
    position: fixed;
    bottom: 28px;
    left: 28px;
    z-index: 999;
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: var(--whatsapp);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 32px rgba(37,211,102,0.3);
    transition: all 0.3s;
}
.whatsapp-float:hover {
    transform: scale(1.08) translateY(-2px);
    box-shadow: 0 12px 40px rgba(37,211,102,0.4);
}
.whatsapp-float svg { width: 30px; height: 30px; fill: var(--white); }
@keyframes pulse-wa {
    0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,0.4); }
    50% { box-shadow: 0 4px 30px rgba(37,211,102,0.6); }
}

/* ===== SKIP LINK ===== */
.skip-link {
    position: absolute;
    top: -100px;
    right: 0;
    background: var(--accent);
    color: var(--dark);
    padding: 12px 24px;
    font-weight: 700;
    z-index: 10000;
    border-radius: 0 0 8px 8px;
    transition: top 0.3s;
}
.skip-link:focus { top: 0; }

/* ===== BEAM DIVIDER ===== */
.beam-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-deep) 20%, var(--accent) 50%, var(--accent-deep) 80%, transparent);
    opacity: 0.4;
}

/* ===== COPPER DIVIDER ===== */
.copper-divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
    margin: 16px auto 24px;
    border-radius: 2px;
}

/* ===== RESPONSIVE — SHARED ELEMENTS ===== */
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    /* Global */
    .container { padding: 0 20px; }

    /* Header */
    .nav { display: none; }
    .header-cta.desktop-only { display: none; }
    .menu-toggle { display: block; }
    .header-inner { height: 64px; }

    /* Section headers */
    .section-header { margin-bottom: 16px; }
    .section-label { margin-bottom: 8px; gap: 8px; }
    .section-title { font-size: 1.8rem; margin-bottom: 8px; }
    .section-subtitle { font-size: 1rem; }
    .section-label::before, .section-label::after { width: 20px; }

    /* Buttons */
    .btn-primary, .btn-secondary {
        padding: 16px 32px;
        font-size: 1rem;
        width: 100%;
        justify-content: center;
        border-radius: 12px;
    }

    /* Pricing */
    .pricing-table tbody tr:nth-child(even) { background: rgba(200,127,59,0.025); }
    .pricing-table tbody tr:hover { background: rgba(200,127,59,0.06); }
    .pricing-table td, .pricing-table th { padding: 14px 16px; font-size: 0.88rem; }

    /* FAQ */
    .faq-question { padding: 20px 20px; font-size: 0.95rem; min-height: 56px; }
    .faq-toggle { width: 36px; height: 36px; }
    .faq-answer-inner { padding: 0 20px 20px; font-size: 0.9rem; }

    /* Footer */
    .footer { padding: 36px 0 20px; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer-col a { font-size: 0.88rem; padding: 6px 0; }
    .footer-cities-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0 16px;
    }

    /* WhatsApp float */
    .whatsapp-float { bottom: 20px; left: 20px; width: 56px; height: 56px; border-radius: 14px; }
    .whatsapp-float svg { width: 28px; height: 28px; }

    /* Mobile nav */
    .mobile-nav { top: 64px; padding: 16px 20px; }
    .mobile-nav a { font-size: 1rem; padding: 16px 0; }

    /* CTA */
    .cta-banner { padding: 36px 0; }
    .cta-banner h2 { font-size: 1.7rem; }
    .cta-banner p { font-size: 1rem; }

    /* Scroll hint */
    .scroll-hint { display: flex; }

    /* Section fade */
    .section-fade-top::before { height: 48px; }
    .section-fade-bottom::after { height: 48px; }
}

@media (max-width: 480px) {
    .section-title { font-size: 1.5rem; }
    .pricing-table td, .pricing-table th { padding: 12px 12px; font-size: 0.82rem; }
    .cta-banner h2 { font-size: 1.35rem; }
    .whatsapp-float { bottom: 16px; left: 16px; width: 52px; height: 52px; }
}
