:root {
    --forest: #15241c;
    --ink: #111;
    --ivory: #f4efe6;
    --paper: #fffdf8;
    --studio: #f4efe6;
    --gold: #c4a35a;
    --gold-light: #d4b76a;
    --muted: #6a655c;
    --line: #e6dfd2;
    --arabic: "Cairo", sans-serif;
    --display: "Cairo", sans-serif;
    --sans: "Outfit", sans-serif;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --radius: 16px;
    --radius-lg: 24px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
    font-family: var(--arabic);
    background: var(--ivory);
    color: var(--ink);
    line-height: 1.7;
    overflow-x: hidden;
    font-weight: 500;
}
body.en { font-family: var(--sans); }
body.menu-open, html.menu-open { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; touch-action: manipulation; }
button { touch-action: manipulation; }
ul { list-style: none; }
.container { width: min(1200px, calc(100% - 40px)); margin-inline: auto; }

/* ─── Navbar ─── */
.navbar {
    position: fixed;
    inset: 0 0 auto;
    z-index: 40;
    padding: calc(14px + env(safe-area-inset-top)) 0 14px;
    transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.navbar.scrolled {
    background: rgba(244, 239, 230, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 var(--line);
}
.navbar.menu-open, .navbar.scrolled.menu-open {
    inset: 0;
    background: #111;
    box-shadow: none;
    backdrop-filter: none;
}
.nav-inner { display: flex; align-items: center; gap: 16px; }
.logo { z-index: 42; }
.logo-img { height: 52px; max-width: 160px; object-fit: contain; }
.logo-on-light { display: none; }
.navbar.scrolled .logo-on-dark { display: none; }
.navbar.scrolled .logo-on-light { display: block; }
.navbar.menu-open .logo-on-dark { display: block; }
.navbar.menu-open .logo-on-light { display: none; }

.nav-drawer { display: flex; align-items: center; gap: 20px; margin-inline-start: auto; }
.nav-links { display: flex; gap: 24px; }
.nav-links a {
    color: rgba(244, 239, 230, 0.85);
    font-weight: 500;
    font-size: 0.88rem;
    transition: color 0.2s;
}
.nav-links a:hover { color: #fff; }
.navbar.scrolled .nav-links a { color: var(--muted); }
.navbar.scrolled .nav-links a:hover { color: var(--ink); }
.nav-cta {
    border: 1px solid var(--gold);
    color: var(--gold);
    padding: 8px 18px;
    font-size: 0.82rem;
    white-space: nowrap;
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
}
.nav-cta:hover { background: var(--gold); color: #111; }
.lang-switcher {
    display: flex;
    padding: 3px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
}
.navbar.scrolled .lang-switcher {
    background: #fff;
    border-color: var(--line);
}
.lang-btn {
    border: 0;
    background: 0;
    padding: 6px 12px;
    cursor: pointer;
    color: rgba(255,255,255,0.5);
    font: 500 0.78rem var(--arabic);
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
}
.navbar.scrolled .lang-btn { color: var(--muted); }
.lang-btn.active { background: var(--gold); color: #111; }
.menu-toggle {
    display: none; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; background: 0; border: 0; cursor: pointer; z-index: 42;
}
.menu-toggle span {
    width: 22px;
    height: 1.5px;
    background: #f4efe6;
    transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}
.navbar.scrolled .menu-toggle span { background: var(--forest); }
.navbar.menu-open .menu-toggle span { background: #fff; }

/* ─── Hero ─── */
.hero {
    min-height: 100svh;
    background: var(--forest);
    background-image:
        radial-gradient(ellipse 80% 60% at 70% 40%, rgba(196, 163, 90, 0.08) 0%, transparent 70%),
        radial-gradient(ellipse 60% 50% at 20% 80%, rgba(196, 163, 90, 0.05) 0%, transparent 70%);
    color: #f4efe6;
    display: flex;
    align-items: center;
    padding: calc(100px + env(safe-area-inset-top)) 0 80px;
    overflow: hidden;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
}
.hero-kicker {
    display: inline-block;
    color: var(--gold);
    font-size: 0.85rem;
    margin-bottom: 20px;
    font-weight: 600;
    letter-spacing: 0.04em;
    border: 1px solid rgba(196, 163, 90, 0.3);
    padding: 6px 16px;
    border-radius: 999px;
}
h1, h2 { font-family: var(--display); line-height: 1.2; font-weight: 800; letter-spacing: -0.02em; }
body.en h1, body.en h2, body.en h3 { font-family: var(--sans); }
.hero h1 {
    font-size: clamp(2rem, 4.5vw, 3.4rem);
    margin-bottom: 20px;
    max-width: 16ch;
    line-height: 1.25;
}
.hero-lead {
    color: rgba(244,239,230,.65);
    margin-bottom: 36px;
    max-width: 36rem;
    font-weight: 400;
    font-size: 1.05rem;
    line-height: 1.8;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1;
    max-height: 420px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(196, 163, 90, 0.15);
    background: rgba(255,255,255,0.03);
    position: relative;
    overflow: hidden;
}
.hero-brand::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle at center, rgba(196, 163, 90, 0.06) 0%, transparent 70%);
}
.hero-tiba {
    width: min(300px, 70%);
    height: auto;
    object-fit: contain;
    position: relative;
    filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.3));
}
.hero-badge {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--gold);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    white-space: nowrap;
    opacity: 0.7;
}

/* ─── Buttons ─── */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 50px; padding: 12px 28px; font: 600 0.95rem var(--arabic);
    border: 1px solid transparent; cursor: pointer; border-radius: 12px;
    transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s;
}
body.en .btn { font-family: var(--sans); }
.btn:active { transform: scale(0.97); }
.btn-gold {
    background: var(--gold);
    color: #111;
    box-shadow: 0 4px 16px rgba(196, 163, 90, 0.3);
}
.btn-gold:hover {
    background: var(--gold-light);
    box-shadow: 0 6px 24px rgba(196, 163, 90, 0.4);
}
.btn-ghost {
    border-color: rgba(244,239,230,.25);
    color: #f4efe6;
}
.btn-ghost:hover {
    background: rgba(255,255,255,0.06);
    border-color: rgba(244,239,230,.4);
}
.btn-full { width: 100%; }

/* ─── Category cards ─── */
.cats { padding: 56px 0 16px; background: var(--ivory); }
.cats-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.cat-card {
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: var(--radius-lg);
    overflow: hidden;
    color: #fff;
    min-height: 280px;
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.cat-chips { background: linear-gradient(145deg, #1a3a2a 0%, #0d2118 100%); }
.cat-sweet { background: linear-gradient(145deg, #2a1a1a 0%, #1a0d0d 100%); }
.cat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.18);
}
.cat-media {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 32px 12px;
}
.cat-media img {
    width: 85%;
    max-width: 360px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.25));
    transition: transform 0.4s var(--ease);
}
.cat-card:hover .cat-media img { transform: scale(1.08) translateY(-4px); }
.cat-copy {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 24px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.cat-kicker {
    font-size: 0.72rem;
    color: var(--gold);
    font-weight: 600;
    letter-spacing: 0.06em;
}
.cat-card strong {
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    flex: 1;
}
.cat-arrow {
    font-size: 1.2rem;
    color: var(--gold);
    opacity: 0.6;
    transition: opacity 0.3s, transform 0.3s var(--ease);
}
body.en .cat-arrow { transform: scaleX(-1); }
.cat-card:hover .cat-arrow { opacity: 1; transform: translateX(-4px); }
body.en .cat-card:hover .cat-arrow { transform: scaleX(-1) translateX(-4px); }

/* ─── Products ─── */
.products { padding: 80px 0 96px; }
.section-head { margin-bottom: 32px; }
.section-tag {
    display: inline-block;
    color: var(--gold);
    font-size: 0.82rem;
    margin-bottom: 8px;
    font-weight: 600;
    letter-spacing: 0.04em;
}
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); color: var(--forest); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 32px; }
.filter {
    border: 1px solid var(--line);
    background: var(--paper);
    padding: 8px 20px;
    cursor: pointer;
    font: 600 0.88rem var(--arabic);
    color: var(--muted);
    border-radius: 999px;
    transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
}
.filter:hover { border-color: var(--gold); color: var(--ink); }
.filter:active { transform: scale(0.96); }
.filter.active { background: var(--forest); color: #fff; border-color: var(--forest); }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
    background: #fff;
    border: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: 0 2px 12px rgba(21, 36, 28, 0.04);
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.card.is-hidden { display: none; }
.card:hover {
    transform: translateY(-6px);
    border-color: rgba(196, 163, 90, 0.4);
    box-shadow: 0 20px 48px rgba(21, 36, 28, 0.1);
}
.card-media {
    background: var(--ivory);
    aspect-ratio: 4 / 3;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.card-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transform: scale(1.05);
    transform-origin: center;
    transition: transform 0.45s var(--ease);
    filter: drop-shadow(0 8px 16px rgba(17, 17, 17, 0.08));
}
.card:hover .card-media img {
    transform: scale(1.12);
}
.card-body {
    padding: 16px 20px 24px;
    border-top: 1px solid var(--line);
    flex: 1;
    display: flex;
    flex-direction: column;
}
.pill {
    display: inline-block;
    font-size: 0.72rem;
    letter-spacing: .06em;
    color: var(--gold);
    font-weight: 600;
    margin-bottom: 6px;
}
.card h3 { font-size: 1.1rem; margin-bottom: 6px; font-weight: 700; }
.card p { color: var(--muted); font-size: 0.88rem; line-height: 1.65; }
.source { margin-top: 32px; font-size: 0.82rem; color: var(--muted); }
.source a { color: var(--forest); border-bottom: 1px solid var(--gold); }

@media (prefers-reduced-motion: reduce) {
    .card, .card-media img, .cat-card, .cat-media img { transition: none; }
    .card:hover { transform: none; }
    .card:hover .card-media img { transform: scale(1.05); }
}

/* ─── About ─── */
.about { padding: 96px 0; background: var(--forest); color: #f4efe6; }
.about h2 { color: #fff; }
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}
.about .section-tag { margin-bottom: 12px; }
.about-ef {
    background: rgba(0,0,0,0.25);
    padding: 32px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(196, 163, 90, 0.12);
}
.about-ef img { height: 48px; width: auto; margin-bottom: 16px; }
.about-ef p, .about p { color: rgba(244,239,230,.7); line-height: 1.8; }

/* ─── Contact ─── */
.contact { padding: 96px 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact-block { margin-bottom: 24px; }
.contact-block h3 {
    font-size: 0.75rem;
    letter-spacing: .12em;
    color: var(--gold);
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
}
.map-link {
    display: inline-block;
    margin-top: 8px;
    color: var(--gold);
    border-bottom: 1px solid transparent;
    font-size: 0.88rem;
    transition: border-color 0.2s;
}
.map-link:hover { border-bottom-color: var(--gold); }
.map-wrap {
    height: 220px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    margin-top: 8px;
}
.map-wrap iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.35); }
.contact-form {
    background: #fff;
    padding: 36px 32px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    box-shadow: 0 8px 32px rgba(0,0,0,.04);
}
.form-group { position: relative; margin-bottom: 22px; }
.form-group input, .form-group textarea {
    width: 100%; border: 0; border-bottom: 1px solid var(--line);
    background: 0; padding: 20px 0 10px; font: 400 16px var(--arabic); resize: none;
    transition: border-color 0.2s;
}
.form-group label {
    position: absolute;
    top: 18px;
    right: 0;
    color: var(--muted);
    pointer-events: none;
    transition: top 0.2s var(--ease), font-size 0.2s var(--ease), color 0.2s;
}
body.en .form-group label { right: auto; left: 0; }
.form-group input:focus, .form-group textarea:focus { outline: 0; border-bottom-color: var(--gold); }
.form-group input:focus ~ label, .form-group input:valid ~ label,
.form-group textarea:focus ~ label, .form-group textarea:valid ~ label {
    top: 0; font-size: 0.72rem; color: var(--gold);
}

/* ─── Footer ─── */
.footer { background: var(--forest); color: rgba(244,239,230,.7); padding: 64px 0 0; }
.footer-grid {
    display: grid;
    grid-template-columns: auto 1fr 1.2fr;
    gap: 48px;
    padding-bottom: 40px;
    align-items: start;
}
.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    width: 200px;
}
.footer-tiba {
    height: 140px;
    width: 100%;
    object-fit: contain;
    object-position: top right;
    margin: 0;
}
body.en .footer-tiba { object-position: top left; }
.ef-lockup {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    padding: 16px 18px;
    border-radius: 10px;
    width: 100%;
}
.ef-lockup img { height: 58px; width: auto; }
.footer h4 {
    color: var(--gold);
    font-size: 0.78rem;
    letter-spacing: .1em;
    margin-bottom: 14px;
    font-weight: 600;
}
.footer ul { display: flex; flex-direction: column; gap: 10px; }
.footer a { transition: color 0.2s; }
.footer a:hover { color: #fff; }
.footer-bottom {
    border-top: 1px solid rgba(196,163,90,.15);
    padding: 20px 16px calc(20px + env(safe-area-inset-bottom));
    text-align: center;
    font-size: 0.82rem;
    color: rgba(244,239,230,.4);
}

/* ─── Tablet (≤ 900px) ─── */
@media (max-width: 900px) {
    .container { width: calc(100% - 32px); }

    .nav-drawer {
        position: fixed; inset: 0; z-index: 41; margin: 0;
        flex-direction: column; justify-content: center; align-items: center; gap: 0;
        background: #111; padding: calc(100px + env(safe-area-inset-top)) 24px 40px;
        opacity: 0; visibility: hidden; pointer-events: none;
        overflow-y: auto;
        transition: opacity 0.3s var(--ease), visibility 0.3s;
    }
    .nav-drawer.open { opacity: 1; visibility: visible; pointer-events: auto; }
    .nav-links { flex-direction: column; align-items: center; gap: 12px; margin-bottom: 28px; }
    .nav-links a, .navbar.scrolled .nav-links a {
        color: #fff; font-size: 1.3rem; font-family: var(--arabic); font-weight: 700;
    }
    .nav-cta {
        background: var(--gold); color: #111; border-color: var(--gold);
        margin-bottom: 28px; padding: 14px 32px; font-size: 0.95rem;
    }
    .menu-toggle { display: flex; margin-inline-start: auto; }
    .menu-toggle.active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
    .menu-toggle.active span:nth-child(2) { opacity: 0; }
    .menu-toggle.active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

    .hero {
        min-height: auto;
        padding: calc(110px + env(safe-area-inset-top)) 0 56px;
    }
    .hero-grid { grid-template-columns: 1fr; gap: 32px; max-width: 100%; text-align: center; }
    .hero h1 { max-width: none; font-size: clamp(1.8rem, 6vw, 2.6rem); }
    .hero-lead { margin-inline: auto; }
    .hero-cta { align-items: center; }
    .hero-brand {
        max-height: 220px;
        aspect-ratio: 16/9;
        max-width: 100%;
        margin-inline: auto;
        width: 100%;
    }
    .hero-cta { flex-direction: column; }
    .hero-cta .btn { width: 100%; }

    .cats-row { grid-template-columns: 1fr 1fr; gap: 16px; }
    .cat-card { min-height: 240px; }
    .cat-media { padding: 20px 20px 8px; }
    .cat-media img { width: 80%; }

    .grid { grid-template-columns: 1fr 1fr; gap: 16px; }

    .about-grid { grid-template-columns: 1fr; gap: 32px; }
    .contact-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; text-align: center; }
    .footer { text-align: center; }
    .footer-brand { width: 180px; margin-inline: auto; }
    .footer-tiba { height: 120px; object-position: top center; }
    .ef-lockup { margin-inline: auto; }
}

/* ─── Mobile (≤ 520px) ─── */
@media (max-width: 520px) {
    .container { width: calc(100% - 24px); }
    .logo-img { height: 44px; max-width: 130px; }

    .hero { padding-top: calc(90px + env(safe-area-inset-top)); padding-bottom: 44px; }
    .hero-kicker { font-size: 0.75rem; padding: 5px 12px; }
    .hero h1 { font-size: 1.55rem; }
    .hero-lead { font-size: 0.92rem; }
    .hero-brand { max-height: 160px; max-width: 100%; margin-inline: auto; width: 100%; }
    .hero-tiba { width: min(160px, 50%); }
    .hero-badge { font-size: 0.68rem; bottom: 12px; }

    .cats { padding: 36px 0 12px; }
    .cats-row { grid-template-columns: 1fr; gap: 12px; }
    .cat-card { min-height: 200px; flex-direction: row; }
    .cat-media { padding: 16px; flex: 0 0 auto; width: 50%; }
    .cat-media img { width: 100%; }
    .cat-copy { border-top: 0; border-inline-start: 1px solid rgba(255,255,255,0.08); flex-direction: column; align-items: flex-start; padding: 16px 18px; }

    .products { padding: 56px 0 64px; }
    .grid { grid-template-columns: 1fr; gap: 16px; }
    .card-media { aspect-ratio: 16 / 10; padding: 14px; }
    .card-body { padding: 14px 16px 20px; }

    .about { padding: 64px 0; }
    .about-ef { padding: 24px; }
    .contact { padding: 64px 0; }
    .contact-form { padding: 24px 20px; }
    .footer { padding-top: 48px; }
    .footer-grid { gap: 24px; }
}
