/* =====================================================
   Waiyyaka / ويّاك — Brand Style Sheet
   ===================================================== */

/* ---------- CSS Variables ---------- */
:root {
    --primary:        #2d3019;
    --primary-hover:  #3e4522;
    --gold:           #938620;
    --gold-light:     #b8a940;
    --sand:           #adac84;
    --cream:          #f1eada;
    --cream-dark:     #e5dece;
    --white:          #ffffff;
    --text-dark:      #1a1a1a;
    --text-muted:     #6b6b5a;
    --border-color:   #d9d5c4;
    --shadow-sm:      0 2px 12px rgba(45,48,25,.08);
    --shadow-md:      0 6px 32px rgba(45,48,25,.14);
    --shadow-lg:      0 16px 56px rgba(45,48,25,.18);
    --radius:         14px;
    --radius-lg:      22px;
    --transition:     0.28s ease;
    --font-ar:        'Cairo', sans-serif;
    --font-en:        'Inter', sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-ar);
    background-color: var(--cream);
    color: var(--text-dark);
    margin: 0;
    overflow-x: hidden;
}

/* ---------- Typography helpers ---------- */
.nav-en, .brand-en, .en-sub {
    font-family: var(--font-en);
    font-size: 0.78em;
    opacity: .72;
    letter-spacing: .04em;
}
.nav-ar { font-weight: 600; }

/* ---------- Navbar ---------- */
.wiyyak-navbar {
    background: rgba(241,234,218,.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-color);
    padding: .75rem 0;
    position: sticky;
    top: 0;
    z-index: 1030;
    transition: box-shadow var(--transition);
}
.wiyyak-navbar.scrolled { box-shadow: var(--shadow-md); }

.wiyyak-brand {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
    text-decoration: none !important;
    color: var(--primary) !important;
}
.wiyyak-brand .brand-ar {
    font-family: var(--font-ar);
    font-size: 1.55rem;
    font-weight: 900;
    color: var(--primary);
    letter-spacing: -.01em;
}
.wiyyak-brand .brand-en {
    font-family: var(--font-en);
    font-size: .68rem;
    font-weight: 600;
    letter-spacing: .12em;
    color: var(--gold);
    text-transform: uppercase;
    opacity: 1;
}

.wiyyak-navbar .nav-link {
    color: var(--primary) !important;
    font-weight: 600;
    padding: .45rem .85rem !important;
    border-radius: 8px;
    transition: background var(--transition), color var(--transition);
}
.wiyyak-navbar .nav-link:hover,
.wiyyak-navbar .nav-link.active {
    background: var(--primary);
    color: var(--cream) !important;
}
.wiyyak-navbar .nav-link .nav-en { display: block; font-size: .65rem; }

.navbar-toggler {
    border: none;
    background: none;
    color: var(--primary);
    font-size: 1.5rem;
    padding: .25rem .5rem;
}
.navbar-toggler:focus { box-shadow: none; }

/* ---------- Buttons ---------- */
.btn-wiyyak {
    background: var(--primary);
    color: var(--cream) !important;
    font-family: var(--font-ar);
    font-weight: 700;
    padding: .55rem 1.5rem;
    border-radius: 50px;
    border: 2px solid var(--primary);
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}
.btn-wiyyak:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.btn-wiyyak-outline {
    background: transparent;
    color: var(--primary) !important;
    font-family: var(--font-ar);
    font-weight: 700;
    padding: .55rem 1.5rem;
    border-radius: 50px;
    border: 2px solid var(--primary);
    transition: background var(--transition), color var(--transition);
}
.btn-wiyyak-outline:hover {
    background: var(--primary);
    color: var(--cream) !important;
}
.btn-gold {
    background: var(--gold);
    color: var(--white) !important;
    font-weight: 700;
    padding: .65rem 2rem;
    border-radius: 50px;
    border: none;
    transition: background var(--transition), transform var(--transition);
}
.btn-gold:hover { background: var(--gold-light); transform: translateY(-2px); }

/* ---------- Section helpers ---------- */
.section-light  { background: var(--cream); }
.section-cream  { background: var(--cream-dark); }
.section-dark   { background: var(--primary); color: var(--cream); }
.section-pad    { padding: 90px 0; }
.section-pad-sm { padding: 60px 0; }

.section-heading { margin-bottom: 3rem; text-align: center; }
.section-heading h2 {
    font-size: 2.1rem;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: .4rem;
}
.section-heading .en-title {
    font-family: var(--font-en);
    font-size: .95rem;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: .12em;
    display: block;
    margin-bottom: .7rem;
}
.section-heading p {
    color: var(--text-muted);
    max-width: 580px;
    margin: .6rem auto 0;
    line-height: 1.8;
}
.divider-gold {
    width: 54px; height: 4px;
    background: var(--gold);
    border-radius: 4px;
    margin: .9rem auto;
}

/* ---------- Hero ---------- */
.wiyyak-hero {
    background: linear-gradient(145deg, var(--primary) 0%, #3e4522 55%, #55580d 100%);
    color: var(--cream);
    padding: 110px 0 90px;
    position: relative;
    overflow: hidden;
}
.wiyyak-hero::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at 70% 50%, rgba(147,134,32,.25) 0%, transparent 65%);
    pointer-events: none;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 50px;
    padding: .35rem 1rem;
    font-size: .82rem;
    font-weight: 600;
    margin-bottom: 1.4rem;
    color: var(--cream);
}
.hero-title {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 900;
    line-height: 1.25;
    color: var(--white);
    margin-bottom: 1rem;
}
.hero-title span { color: #c5b93d; }
.hero-sub-ar {
    font-size: 1.15rem;
    line-height: 1.9;
    color: rgba(241,234,218,.85);
    margin-bottom: .5rem;
}
.hero-sub-en {
    font-family: var(--font-en);
    font-size: .95rem;
    color: rgba(241,234,218,.6);
    margin-bottom: 2rem;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-visual {
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    backdrop-filter: blur(6px);
}
.hero-stat {
    text-align: center;
    padding: 1.1rem;
    background: rgba(255,255,255,.09);
    border-radius: var(--radius);
    border: 1px solid rgba(255,255,255,.12);
}
.hero-stat .stat-num {
    font-size: 2rem;
    font-weight: 900;
    color: var(--white);
    display: block;
}
.hero-stat .stat-label {
    font-size: .78rem;
    color: rgba(241,234,218,.7);
    display: block;
    margin-top: .2rem;
}

/* ---------- Feature Cards ---------- */
.feature-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem 1.6rem;
    height: 100%;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    position: relative;
    overflow: hidden;
}
.feature-card::after {
    content: '';
    position: absolute;
    bottom: 0; right: 0; left: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--gold), var(--primary));
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition);
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--sand); }
.feature-card:hover::after { transform: scaleX(1); }
.feature-icon {
    width: 60px; height: 60px;
    background: var(--cream);
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.7rem;
    color: var(--primary);
    margin-bottom: 1.2rem;
}
.feature-card h5 { font-weight: 800; color: var(--primary); margin-bottom: .3rem; }
.feature-card .en-title { font-family: var(--font-en); font-size: .75rem; color: var(--gold); display: block; margin-bottom: .6rem; }
.feature-card p { color: var(--text-muted); font-size: .92rem; line-height: 1.7; margin: 0; }

/* ---------- Pricing ---------- */
.pricing-card {
    background: var(--white);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2.2rem 1.8rem;
    height: 100%;
    transition: transform var(--transition), box-shadow var(--transition);
    position: relative;
}
.pricing-card.featured {
    border-color: var(--gold);
    box-shadow: var(--shadow-md);
    transform: translateY(-8px);
}
.pricing-badge {
    position: absolute;
    top: -14px; left: 50%; transform: translateX(-50%);
    background: var(--gold);
    color: var(--white);
    font-size: .75rem;
    font-weight: 700;
    padding: .3rem 1.2rem;
    border-radius: 50px;
    white-space: nowrap;
}
.pricing-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.pricing-card.featured:hover { transform: translateY(-14px); }
.pricing-title-ar { font-size: 1.4rem; font-weight: 900; color: var(--primary); margin-bottom: .1rem; }
.pricing-title-en { font-family: var(--font-en); font-size: .8rem; color: var(--gold); display: block; margin-bottom: 1rem; text-transform: uppercase; letter-spacing: .08em; }
.pricing-price {
    font-size: 2.6rem; font-weight: 900; color: var(--primary);
    line-height: 1;
}
.pricing-price sup { font-size: 1.1rem; vertical-align: super; }
.pricing-period { font-size: .82rem; color: var(--text-muted); margin-bottom: 1.4rem; display: block; }
.pricing-features { list-style: none; padding: 0; margin: 0 0 1.8rem; }
.pricing-features li {
    padding: .45rem 0;
    border-bottom: 1px solid var(--cream-dark);
    font-size: .9rem;
    display: flex; align-items: flex-start; gap: .5rem;
}
.pricing-features li:last-child { border-bottom: none; }
.pricing-features li i { color: var(--gold); margin-top: .2rem; flex-shrink: 0; }
.pricing-features li .feat-en { font-family: var(--font-en); font-size: .75rem; color: var(--text-muted); display: block; }

/* ---------- Brand Story ---------- */
.story-section { background: var(--primary); color: var(--cream); }
.story-section h2 { color: var(--white); }
.story-section .divider-gold { background: var(--gold-light); }
.story-section p { color: rgba(241,234,218,.85); line-height: 2; }

/* ---------- Stats Bar ---------- */
.stats-bar {
    background: var(--gold);
    padding: 2.5rem 0;
}
.stat-item { text-align: center; }
.stat-item .num {
    font-size: 2.4rem; font-weight: 900;
    color: var(--white); display: block;
}
.stat-item .lbl-ar { font-size: .9rem; color: rgba(255,255,255,.85); display: block; }
.stat-item .lbl-en { font-family: var(--font-en); font-size: .72rem; color: rgba(255,255,255,.65); display: block; }

/* ---------- Contact ---------- */
.contact-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
}
.contact-info-item {
    display: flex; gap: 1rem; align-items: flex-start;
    padding: 1rem 0;
    border-bottom: 1px solid var(--cream-dark);
}
.contact-info-item:last-child { border-bottom: none; }
.contact-info-icon {
    width: 46px; height: 46px; flex-shrink: 0;
    background: var(--cream);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem; color: var(--gold);
}
.contact-info-text strong { display: block; font-weight: 700; color: var(--primary); font-size: .95rem; }
.contact-info-text span  { font-size: .82rem; color: var(--text-muted); }
.form-control-wiyyak {
    background: var(--cream);
    border: 1.5px solid var(--border-color);
    border-radius: 10px;
    padding: .7rem 1rem;
    font-family: var(--font-ar);
    font-size: .95rem;
    color: var(--text-dark);
    transition: border-color var(--transition), box-shadow var(--transition);
    width: 100%;
}
.form-control-wiyyak:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(147,134,32,.15);
}
.form-label-wiyyak { font-weight: 700; color: var(--primary); font-size: .9rem; margin-bottom: .4rem; display: block; }
.form-label-wiyyak .en-sub { font-family: var(--font-en); font-weight: 400; color: var(--text-muted); font-size: .75rem; }

/* ---------- Services page ---------- */
.service-hero { background: linear-gradient(145deg, var(--primary), #3e4522); color: var(--cream); padding: 80px 0 60px; }
.service-hero h1 { font-size: 2.6rem; font-weight: 900; }
.service-block {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    height: 100%;
}
.service-block-icon { font-size: 2.5rem; color: var(--gold); margin-bottom: 1rem; }
.service-block h3 { font-size: 1.4rem; font-weight: 900; color: var(--primary); }
.service-block .en-title { font-family: var(--font-en); font-size: .8rem; color: var(--gold); display: block; margin-bottom: .7rem; }
.service-block ul { padding-right: 1.2rem; color: var(--text-muted); line-height: 2; }

/* ---------- Integration Badge ---------- */
.meta-badge {
    display: inline-flex; align-items: center; gap: .6rem;
    background: var(--cream-dark);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    padding: .5rem 1.2rem;
    font-size: .88rem; font-weight: 600; color: var(--primary);
    margin: .3rem;
}
.meta-badge i { color: #25D366; font-size: 1rem; }

/* ---------- Footer ---------- */
.wiyyak-footer {
    background: var(--primary);
    color: var(--cream);
    padding: 60px 0 0;
    margin-top: 0;
}
.border-footer { border-color: rgba(241,234,218,.15) !important; }
.footer-heading {
    font-size: .95rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 1rem;
}
.footer-tagline { font-size: .9rem; color: rgba(241,234,218,.8); line-height: 1.9; }
.text-muted-footer { color: rgba(241,234,218,.5); }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { padding: .3rem 0; font-size: .88rem; color: rgba(241,234,218,.75); }
.footer-links a { color: rgba(241,234,218,.75); text-decoration: none; transition: color var(--transition); }
.footer-links a:hover { color: var(--gold-light); }
.social-links { display: flex; gap: .6rem; }
.social-icon {
    width: 38px; height: 38px;
    background: rgba(255,255,255,.1);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: var(--cream);
    font-size: 1rem;
    text-decoration: none;
    transition: background var(--transition), transform var(--transition);
}
.social-icon:hover { background: var(--gold); transform: translateY(-3px); color: var(--white); }
.footer-copy {
    font-size: .82rem;
    color: rgba(241,234,218,.5);
    padding: 1.1rem 0;
}

/* ---------- Page Banner ---------- */
.page-banner {
    background: linear-gradient(140deg, var(--primary) 0%, #3e4522 100%);
    color: var(--cream);
    padding: 70px 0 55px;
}
.page-banner h1 { font-size: 2.4rem; font-weight: 900; margin-bottom: .5rem; }
.page-banner p { font-size: 1.05rem; opacity: .8; }

/* ---------- Utility ---------- */
.text-gold   { color: var(--gold) !important; }
.text-primary-wiyyak { color: var(--primary) !important; }
.bg-cream    { background-color: var(--cream) !important; }
.rounded-wiyyak { border-radius: var(--radius) !important; }

@media (max-width: 991.98px) {
    .pricing-card.featured { transform: none; }
    .pricing-card.featured:hover { transform: translateY(-6px); }
}
@media (max-width: 575.98px) {
    .section-pad { padding: 60px 0; }
    .hero-title { font-size: 2rem; }
    .wiyyak-hero { padding: 70px 0 60px; }
}

/* =====================================================
   Language Switching
   ===================================================== */

/* Default: Arabic visible, English hidden */
.lang-en { display: none !important; }
.lang-ar { display: block; }

/* Inline elements (spans inside text) stay inline */
span.lang-ar { display: inline; }

/* English mode: show EN, hide AR */
html[data-lang="en"] .lang-en { display: block !important; }
html[data-lang="en"] span.lang-en { display: inline !important; }
html[data-lang="en"] .lang-ar { display: none !important; }

/* Flex items that need inline-flex */
html[data-lang="en"] .hero-badge.lang-en,
html[data-lang="en"] .meta-badge.lang-en { display: inline-flex !important; }

/* Brand name stays inline-block in both modes */
.brand-name { display: inline-block !important; }

/* English mode — switch to LTR font */
html[data-lang="en"] body { font-family: var(--font-en); }
html[data-lang="en"] .wiyyak-brand .brand-name { font-family: var(--font-en); font-size: 1.4rem; font-weight: 800; }

/* ---------- Language Toggle Button ---------- */
.btn-lang-toggle {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    background: transparent;
    border: 1.5px solid var(--primary);
    color: var(--primary);
    font-family: var(--font-ar);
    font-size: .82rem;
    font-weight: 700;
    padding: .35rem .85rem;
    border-radius: 50px;
    cursor: pointer;
    transition: background var(--transition), color var(--transition);
    white-space: nowrap;
}
.btn-lang-toggle:hover {
    background: var(--primary);
    color: var(--cream);
}
.btn-lang-toggle i { font-size: .95rem; }
}