/* ============================================================
   ALFA PHARMA — Premium Visual Identity 2026
   Design language: deep emerald + warm gold on soft cream.
   Distinctive, modern, commercial-grade. All layout uses
   logical properties (RTL/LTR ready). UI only — no logic.
   ============================================================ */

:root {
    --primary: #0d7a5b;
    --primary-600: #0a6149;
    --primary-700: #084e3c;
    --primary-deep: #06352a;
    --accent: #c9a15f;
    --accent-soft: #f0e6cf;
    --accent-ink: #7d5e2c;

    --bg: #f6f4ee;
    --surface: #ffffff;
    --wash: #fbfaf6;
    --ink: #15281f;
    --muted: #5f7067;
    --line: #e6e2d4;
    --line-soft: #efecdf;

    --success: #15803d;
    --success-bg: #e9f7ee;
    --warning: #b45309;
    --error: #b42318;
    --error-bg: #fbeeec;

    --r-xs: 8px;
    --r-sm: 12px;
    --r-md: 16px;
    --r-lg: 24px;
    --r-pill: 999px;

    --sh-xs: 0 2px 4px rgb(6 53 42 / .05);
    --sh-sm: 0 4px 12px rgb(6 53 42 / .08);
    --sh-md: 0 12px 32px rgb(6 53 42 / .12);
    --sh-lg: 0 24px 56px rgb(6 53 42 / .16);

    --grad-primary: linear-gradient(135deg, #0e8a66 0%, #0d7a5b 45%, #084e3c 100%);
    --grad-gold: linear-gradient(135deg, #dbb97a 0%, #c9a15f 55%, #a9863f 100%);
    --grad-ink: linear-gradient(160deg, #07261e 0%, #06352a 60%, #0a5040 100%);

    --container: 1200px;
    --header-h: 76px;
    --font: "Cairo", "Segoe UI", Tahoma, Arial, sans-serif;
}

/* Scroll lock (mobile nav open) */
body.no-scroll { overflow: hidden; }

/* Skip to content (a11y) */
.skip-link {
    position: absolute;
    top: -64px;
    inset-inline-start: 12px;
    z-index: 1200;
    padding: 10px 18px;
    border-radius: 0 0 var(--r-sm) var(--r-sm);
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    transition: top .2s ease;
}
.skip-link:focus { top: 0; }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0a1210;
        --surface: #0f1a17;
        --wash: #162420;
        --ink: #e6f3ee;
        --muted: #a3b0a8;
        --line: #24312c;
        --line-soft: #1c2824;
        --accent-soft: #2a241a;
        --accent-ink: #dbb97a;
        --success-bg: #0a2215;
        --error-bg: #2a0a0a;
    }
    .card, .btn-outline, .lang-switch a, .cat-combo-btn, .cat-combo-menu {
        background: var(--surface);
        border-color: var(--line);
    }
    .header, .header.scrolled {
        background: rgb(15 26 23 / .9);
        border-bottom-color: var(--line);
    }
    .filter-form input,
    .filter-form select {
        background: var(--surface);
        color: var(--ink);
        border-color: var(--line);
    }
    .btn-outline { color: var(--accent); }
    .btn-outline:hover { background: var(--wash); }
    .cat-combo-opt { color: var(--ink); }
    .cat-combo-opt:hover { background: var(--wash); }
    .cat-combo-opt.is-active .cat-combo-num { background: var(--wash); }
    .btn-inverse { color: var(--surface); }
    .back-top { background: var(--surface); color: var(--ink); box-shadow: var(--sh-md); }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font);
    background: var(--bg);
    color: var(--ink);
    line-height: 1.7;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 { color: var(--ink); line-height: 1.35; margin: 0 0 .5em; font-weight: 800; }
p { margin: 0 0 1em; }
img { max-width: 100%; display: block; }
a { color: var(--primary); }
a:hover { text-decoration: none; }
::selection { background: var(--primary); color: #fff; }

:focus-visible {
    outline: 3px solid rgb(201 161 95 / .9);
    outline-offset: 3px;
    border-radius: 6px;
    box-shadow: 0 0 0 6px rgb(201 161 95 / .15);
}

/* Ripple base (opt-in via .has-ripple) */
.has-ripple { position: relative; overflow: hidden; }
.has-ripple::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, currentColor, transparent 70%);
    opacity: 0;
    transform: scale(0);
    pointer-events: none;
    border-radius: inherit;
}
.has-ripple:active::after {
    animation: ripple 0.45s ease-out forwards;
}
@keyframes ripple {
    0% { opacity: .18; transform: scale(0); }
    100% { opacity: 0; transform: scale(2.5); }
}

.container { max-width: var(--container); margin-inline: auto; padding-inline: 24px; }

/* ============================================================
   TOP BAR
   ============================================================ */
.topbar {
    background: var(--grad-ink);
    color: #d9eae2;
    font-size: .8rem;
    position: relative;
    z-index: 40;
}
.topbar-inner {
    max-width: var(--container);
    margin-inline: auto;
    padding: 9px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
.topbar .address { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; letter-spacing: .2px; }
.topbar .address svg { color: var(--accent); flex-shrink: 0; width: 14px; height: 14px; }
.topbar .contact { display: inline-flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.topbar a { color: #e6f3ee; text-decoration: none; transition: color .2s ease; }
.topbar a:hover { color: var(--accent); }
.topbar .social { display: inline-flex; gap: 8px; }
.topbar .social a {
    display: inline-grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgb(255 255 255 / .08);
    border: 1px solid rgb(255 255 255 / .12);
    transition: background .2s ease, transform .2s ease, border-color .2s ease;
}
.topbar .social a:hover { background: var(--accent); border-color: var(--accent); color: #fff; transform: translateY(-2px); }
.topbar .social svg { width: 13px; height: 13px; fill: currentColor; }

/* ============================================================
   HEADER / NAVBAR
   ============================================================ */
.header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgb(255 255 255 / .82);
    -webkit-backdrop-filter: blur(16px) saturate(1.3);
    backdrop-filter: blur(16px) saturate(1.3);
    border-bottom: 1px solid rgb(6 53 42 / .07);
    box-shadow: var(--sh-xs);
    transition: box-shadow .3s ease, background .3s ease;
}
.header.scrolled {
    background: rgb(255 255 255 / .94);
    box-shadow: 0 6px 26px rgb(6 53 42 / .10);
}
.header-inner {
    max-width: var(--container);
    margin-inline: auto;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: var(--header-h);
}

/* Brand */
.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--ink);
    flex-shrink: 0;
}
.brand-monogram {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: var(--grad-primary);
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 1.35rem;
    box-shadow: 0 10px 22px rgb(13 122 91 / .35);
    position: relative;
    overflow: hidden;
    letter-spacing: 0;
}
.brand-monogram::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(140deg, rgb(255 255 255 / .28), transparent 45%);
}
.brand-monogram-logo { background: #fff; padding: 5px; box-shadow: 0 10px 22px rgb(6 53 42 / .14); }
.brand-monogram-logo::after { display: none; }
.brand-monogram-logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.brand-word { display: grid; line-height: 1.25; }
.brand-name { font-weight: 800; font-size: 1.02rem; letter-spacing: .2px; color: var(--ink); }
.brand-tagline { font-size: .66rem; font-weight: 600; color: var(--muted); letter-spacing: .35px; text-transform: uppercase; }
.header .brand-tagline { display: none; }
.brand:hover { text-decoration: none; }
.brand:hover .brand-name { color: var(--primary); }

/* Nav */
.nav { display: flex; gap: 4px; flex: 1 1 auto; min-width: 0; justify-content: center; }
.nav a {
    padding: 8px 10px;
    border-radius: var(--r-pill);
    color: var(--ink);
    font-weight: 700;
    font-size: .85rem;
    white-space: nowrap;
    text-decoration: none;
    transition: background .2s ease, color .2s ease;
}
.nav a:hover { background: rgb(13 122 91 / .09); color: var(--primary); }
.nav a.active { background: var(--grad-primary); color: #fff; box-shadow: 0 8px 18px rgb(13 122 91 / .30); }

/* Header tools (language + search) */
.header-tools { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.search-btn {
    width: 48px;
    height: 48px;
    min-width: 48px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--grad-primary);
    color: #fff;
    text-decoration: none;
    box-shadow: 0 8px 20px rgb(13 122 91 / .28);
    transition: transform .2s ease, box-shadow .2s ease, color .2s ease;
}
.search-btn:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 14px 30px rgb(13 122 91 / .34); }
.search-btn svg { width: 19px; height: 19px; }

/* Lang switch */
.lang-switch { display: inline-flex; flex-shrink: 0; }
.lang-switch a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 62px;
    height: 48px;
    padding: 0 14px;
    border: 1px solid var(--line);
    background: var(--surface);
    border-radius: var(--r-pill);
    font-weight: 700;
    font-size: .82rem;
    color: var(--ink);
    text-decoration: none;
    white-space: nowrap;
    box-shadow: var(--sh-xs);
    transition: border-color .2s ease, color .2s ease, background .2s ease;
}
.lang-switch a:hover { border-color: var(--accent); color: var(--accent-ink); background: var(--accent-soft); }

/* Mobile toggle + drawer */
.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    cursor: pointer;
    position: relative;
    z-index: 61;
    padding: 0;
}
.nav-toggle span {
    position: absolute;
    inset-inline-start: 11px;
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: var(--ink);
    transition: transform .25s ease, opacity .25s ease, top .25s ease;
}
.nav-toggle span:nth-child(1) { top: 13px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 29px; }

#m-nav-check { position: absolute; opacity: 0; pointer-events: none; }

.m-scrim {
    position: fixed;
    inset: 0;
    background: rgb(6 28 22 / .45);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, visibility .3s ease;
    z-index: 55;
}
.m-nav {
    position: fixed;
    top: 0;
    bottom: 0;
    inset-inline-start: -324px;
    width: min(324px, 86vw);
    background: var(--wash);
    z-index: 60;
    display: flex;
    flex-direction: column;
    padding: 22px 18px 26px;
    overflow-y: auto;
    box-shadow: 26px 0 60px rgb(6 28 22 / .18);
    transition: inset-inline-start .32s cubic-bezier(.4, 0, .2, 1);
    border-inline-end: 1px solid var(--line);
}
#m-nav-check:checked ~ .m-nav { inset-inline-start: 0; }
#m-nav-check:checked ~ .m-scrim { opacity: 1; visibility: visible; }
html[dir="rtl"] .m-nav { inset-inline-start: auto; inset-inline-end: -324px; }
#m-nav-check:checked ~ .m-nav { inset-inline-end: 0; }

.m-nav .m-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 2px 2px 16px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.m-nav .m-head .brand { font-size: .92rem; }
.m-nav .m-links { display: grid; gap: 4px; }
.m-nav .m-tools { display: flex; align-items: center; gap: 10px; margin-top: 16px; }
.m-nav .m-tools .lang-switch { flex: 1; }
.m-nav .m-tools .lang-switch a { width: 100%; }
.m-nav .m-tools .search-btn { width: 44px; height: 44px; min-width: 44px; }
.m-nav .m-tools .search-btn svg { width: 18px; height: 18px; }
.m-nav a.m-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 12px;
    color: var(--ink);
    font-weight: 700;
    text-decoration: none;
    transition: background .2s ease, color .2s ease;
}
.m-nav a.m-link:hover, .m-nav a.m-link.active { background: rgb(13 122 91 / .10); color: var(--primary); }
.m-nav a.m-link svg { width: 15px; height: 15px; color: var(--muted); flex-shrink: 0; }
.m-nav .m-card {
    margin-top: 16px;
    background: var(--grad-primary);
    border-radius: var(--r-md);
    color: #fff;
    padding: 20px;
    text-align: center;
}
.m-nav .m-card p { color: #d8ece3; margin: 0 0 10px; }
.m-nav .m-card strong { color: #fff; font-size: .92rem; }
.m-nav .m-card a { color: #fff; font-weight: 800; }

/* ============================================================
   HERO (home — premium split layout)
   ============================================================ */
.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--bg);
    padding: 40px 0 56px;
}
.hero-bg-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.4s ease;
    will-change: opacity;
    filter: saturate(.85);
    transform: scale(1.02);
}
.hero-bg-slide.active { opacity: 1; animation: heroZoom 7s ease-out forwards; }
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1.02); } }
.hero-wash {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(70% 90% at 85% 12%, rgb(201 161 95 / .22), transparent 60%),
        radial-gradient(60% 70% at 8% 88%, rgb(13 122 91 / .16), transparent 60%),
        linear-gradient(180deg, rgb(246 244 238 / .94) 0%, rgb(246 244 238 / .86) 55%, var(--bg) 100%);
}
.hero-blob { position: absolute; border-radius: 50%; pointer-events: none; }
.hero-blob.b1 { width: 480px; height: 480px; top: -180px; inset-inline-end: -140px; background: radial-gradient(circle, rgb(13 122 91 / .16), transparent 65%); }
.hero-blob.b2 { width: 420px; height: 420px; bottom: -160px; inset-inline-start: -120px; background: radial-gradient(circle, rgb(201 161 95 / .20), transparent 65%); }
.hero-inner {
    position: relative;
    z-index: 2;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: 24px;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 52px;
    align-items: center;
    width: 100%;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: var(--r-pill);
    background: var(--accent-soft);
    color: var(--accent-ink);
    font-weight: 800;
    font-size: .78rem;
    letter-spacing: .5px;
    text-transform: uppercase;
}
.eyebrow svg { width: 15px; height: 15px; }
.hero-title {
    font-size: clamp(2rem, 4.6vw, 3.4rem);
    font-weight: 800;
    color: var(--ink);
    margin: 20px 0 16px;
    line-height: 1.28;
    text-wrap: balance;
}
.hero-title .grad {
    background: var(--grad-gold);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hero-title .mark { color: var(--primary); }
.hero-sub {
    max-width: 520px;
    color: var(--muted);
    font-size: 1.06rem;
    margin: 0 0 26px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 30px; }

.hero-metrics {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    border: 1px solid var(--line);
    background: rgb(255 255 255 / .72);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-radius: var(--r-md);
    padding: 14px 8px;
    box-shadow: var(--sh-sm);
    max-width: 600px;
}
.hero-metrics .metric { padding: 2px 20px; border-inline-end: 1px solid var(--line); }
.hero-metrics .metric:first-child { padding-inline-start: 16px; }
.hero-metrics .metric:last-child { border-inline-end: 0; padding-inline-end: 16px; }
.hero-metrics .metric b { display: block; font-size: 1.4rem; font-weight: 800; color: var(--primary); line-height: 1.2; }
.hero-metrics .metric b .plus { color: var(--accent); }
.hero-metrics .metric span { font-size: .74rem; color: var(--muted); font-weight: 700; }

.hero-media { position: relative; padding-block: 30px; }
.hero-media .hm-main {
    width: 100%;
    aspect-ratio: 5 / 4.6;
    object-fit: cover;
    border-radius: var(--r-lg);
    box-shadow: var(--sh-lg);
    border: 6px solid #fff;
}
.hero-media .hm-side {
    position: absolute;
    width: 46%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--r-md);
    border: 5px solid #fff;
    box-shadow: var(--sh-md);
}
.hero-media .hm-side.tl { top: 0; inset-inline-end: -6px; }
.hero-media .hm-side.br { bottom: 0; inset-inline-start: -6px; }
.hero-media .hm-chip {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: rgb(255 255 255 / .88);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgb(6 53 42 / .08);
    border-radius: var(--r-pill);
    padding: 9px 16px;
    box-shadow: var(--sh-md);
    font-weight: 800;
    font-size: .84rem;
    color: var(--ink);
}
.hero-media .hm-chip svg { width: 16px; height: 16px; color: var(--primary); }
.hero-media .hm-chip.gold svg { color: var(--accent); }
.hero-media .hm-chip.c1 { top: 44%; inset-inline-start: -34px; }
.hero-media .hm-chip.c2 { bottom: -8px; inset-inline-end: 14px; }
.hero-media .hm-ring {
    position: absolute;
    top: -16px;
    inset-inline-start: -20px;
    width: 92px;
    height: 92px;
    border-radius: 50%;
    background: var(--grad-primary);
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 1.6rem;
    box-shadow: 0 16px 34px rgb(13 122 91 / .4);
    border: 5px solid var(--bg);
    animation: floatY 4.5s ease-in-out infinite;
}
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

.hero-dots {
    position: absolute;
    bottom: 26px;
    inset-inline: 0;
    display: flex;
    gap: 9px;
    justify-content: center;
    z-index: 3;
}
.hero-dots span {
    width: 9px;
    height: 9px;
    border-radius: var(--r-pill);
    background: rgb(6 53 42 / .18);
    cursor: pointer;
    transition: all .3s ease;
}
.hero-dots span.active { width: 28px; background: var(--grad-gold); }

.hero .fade-in { opacity: 0; transform: translateY(24px); animation: fadeInUpHero .9s ease forwards; }
.hero .fade-in.d1 { animation-delay: .12s; }
.hero .fade-in.d2 { animation-delay: .26s; }
.hero .fade-in.d3 { animation-delay: .4s; }
.hero .fade-in.d4 { animation-delay: .54s; }
@keyframes fadeInUpHero { to { opacity: 1; transform: none; } }

/* ============================================================
   SECTIONS
   ============================================================ */
.section { position: relative; padding-block: 84px; padding-inline: 24px; }
.section > * { max-width: var(--container); margin-inline: auto; }

.section-title {
    font-size: clamp(1.5rem, 3vw, 2.15rem);
    font-weight: 800;
    color: var(--ink);
    margin: 0 0 10px;
    line-height: 1.3;
}
.section-title .accent { color: var(--accent-ink); }
.section-title.center { text-align: center; }
.section-title.center::after {
    content: "";
    display: block;
    width: 62px;
    height: 4px;
    margin: 14px auto 0;
    border-radius: 4px;
    background: var(--grad-gold);
}
.section-title:not(.center)::after {
    content: "";
    display: inline-block;
    width: 46px;
    height: 3px;
    margin-inline-start: 10px;
    border-radius: 3px;
    background: var(--grad-gold);
    vertical-align: middle;
}
.section-intro { max-width: 720px; margin: 0 auto 46px; text-align: center; color: var(--muted); font-size: 1rem; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.section-head h2 { margin: 0; font-size: 1.7rem; }

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
    max-width: var(--container);
    margin-inline: auto;
}
.split-media { position: relative; }
.split-media img {
    width: 100%;
    border-radius: var(--r-lg);
    box-shadow: var(--sh-md);
    object-fit: cover;
    position: relative;
    z-index: 1;
}
.split-media::before {
    content: "";
    position: absolute;
    inset: -18px;
    border: 2px dashed var(--accent);
    border-radius: 34px;
    opacity: .5;
    z-index: 0;
}
.split-media.tile-flip::after {
    content: "";
    position: absolute;
    width: 42%;
    height: 34%;
    background: var(--accent-soft);
    border-radius: 22px;
    bottom: -22px;
    inset-inline-end: -16px;
    z-index: 0;
}
.split-body p { text-align: justify; color: #3c4d44; }
.split-body .btn { margin-top: 6px; }

.section-about, .section-numbers { background: var(--surface); }
.section-why { background: var(--surface); }
.section-about { border-block: 1px solid var(--line-soft); }

/* ============================================================
   SERVICE CARDS
   ============================================================ */
.section-services { background: var(--bg); }
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: var(--container);
    margin-inline: auto;
}
.service-card {
    position: relative;
    border-radius: var(--r-lg);
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--sh-sm);
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
    display: flex;
    flex-direction: column;
}
.service-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, var(--primary), transparent 70%);
    opacity: 0;
    transform: scale(0);
    pointer-events: none;
    border-radius: inherit;
}
.service-card:active::after {
    animation: ripple 0.5s ease-out forwards;
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--sh-lg); border-color: rgb(201 161 95 / .6); }
.service-card::before {
    content: "";
    position: absolute;
    top: 0;
    inset-inline: 0;
    height: 4px;
    background: var(--grad-gold);
    z-index: 3;
    transform: scaleX(0);
    transform-origin: 50%;
    transition: transform .35s ease;
}
.service-card:hover::before { transform: scaleX(1); }
.service-card .sc-media { position: relative; overflow: hidden; aspect-ratio: 16 / 9; }
.service-card .sc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s ease; }
.service-card:hover .sc-media img { transform: scale(1.06); }
.service-card .sc-icon {
    position: absolute;
    z-index: 2;
    bottom: -22px;
    inset-inline-start: 22px;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: var(--grad-primary);
    color: #fff;
    display: grid;
    place-items: center;
    box-shadow: 0 12px 24px rgb(13 122 91 / .35);
    border: 3px solid var(--surface);
}
.service-card .sc-icon svg { width: 24px; height: 24px; }
.service-overlay { padding: 34px 22px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.service-overlay h3 { font-size: 1.18rem; margin: 0; }
.service-overlay p { margin: 0; color: var(--muted); font-size: .92rem; flex: 1; }
.service-link {
    font-weight: 800;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
}
.service-link:hover { color: var(--accent-ink); }
.service-link svg { width: 15px; height: 15px; transition: transform .25s ease; }
html[dir="ltr"] .service-link:hover svg { transform: translateX(4px); }
html[dir="rtl"] .service-link:hover svg { transform: translateX(-4px); }

/* ============================================================
   WHY LIST + COUNTERS
   ============================================================ */
.why-list { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 13px; }
.why-list li { position: relative; padding-inline-start: 34px; line-height: 1.8; color: #33443b; font-weight: 600; }
.why-list li::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    top: 7px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--accent-soft);
    box-shadow: inset 0 0 0 2px var(--accent);
}
.why-list li::after {
    content: "✓";
    position: absolute;
    inset-inline-start: 0;
    top: 7px;
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    color: var(--accent-ink);
    font-size: .72rem;
    font-weight: 800;
}

.counters { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 26px; }
.counter-card {
    background: var(--wash);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: 22px 14px 18px;
    text-align: center;
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
    position: relative;
    overflow: hidden;
}
.counter-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, var(--primary), transparent 70%);
    opacity: 0;
    transform: scale(0);
    pointer-events: none;
    border-radius: inherit;
}
.counter-card:active::after {
    animation: ripple 0.45s ease-out forwards;
}
.counter-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: var(--grad-gold);
    transform: scaleX(0);
    transition: transform .3s ease;
    transform-origin: 50%;
}
.counter-card:hover { transform: translateY(-4px); box-shadow: var(--sh-md); border-color: rgb(13 122 91 / .3); }
.counter-card:hover::before { transform: scaleX(1); }
.counter-value { font-weight: 800; font-size: 2.5rem; color: var(--primary); line-height: 1.1; }
.counter-label { margin-top: 6px; font-size: .92rem; font-weight: 700; color: var(--muted); }

/* ============================================================
   PARTNERS
   ============================================================ */
.section-partners { background: var(--bg); }
.partners-panel {
    max-width: var(--container);
    margin-inline: auto;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: var(--sh-sm);
    padding: 54px 30px 46px;
    position: relative;
}
.partners-panel::before {
    content: "";
    position: absolute;
    inset: -14px;
    border: 1px dashed var(--accent);
    border-radius: 38px;
    opacity: .35;
    pointer-events: none;
}
.partners-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 42px;
    padding-top: 12px;
    position: relative;
    z-index: 1;
}
.partners-row img {
    max-height: 66px;
    max-width: 130px;
    object-fit: contain;
    filter: grayscale(1);
    opacity: .72;
    transition: filter .3s ease, opacity .3s ease, transform .3s ease;
}
.partners-row img:hover { filter: grayscale(0); opacity: 1; transform: scale(1.08); }

/* ============================================================
   BRANCH CARDS + GRID + MAP
   ============================================================ */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 30px; }

.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    box-shadow: var(--sh-sm);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
    position: relative;
}
.card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, var(--primary), transparent 70%);
    opacity: 0;
    transform: scale(0);
    pointer-events: none;
    border-radius: inherit;
}
.card:active::after {
    animation: ripple 0.5s ease-out forwards;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--sh-md); border-color: rgb(13 122 91 / .35); }

.card-img-wrap { overflow: hidden; position: relative; }
.card-img-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 62%, rgb(6 53 42 / .28));
    opacity: 0;
    transition: opacity .3s ease;
}
.card:hover .card-img-wrap::after { opacity: 1; }
.card-img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    background: var(--line-soft);
    transition: transform .5s ease;
}
.card:hover .card-img { transform: scale(1.04); }

.wishlist-btn {
    position: absolute;
    top: 12px;
    inset-inline-end: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--surface);
    color: var(--muted);
    cursor: pointer;
    display: grid;
    place-items: center;
    box-shadow: var(--sh-sm);
    transition: all .2s ease;
    z-index: 5;
}
.wishlist-btn:hover { transform: scale(1.1); color: var(--primary); }
.wishlist-btn.active { background: var(--grad-primary); color: #fff; }
.wishlist-btn svg { width: 18px; height: 18px; transition: fill .2s ease, stroke .2s ease; }
.wishlist-btn.active svg { fill: #fff; stroke: #fff; }

.card-body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-title-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.card-title { font-size: 1.12rem; font-weight: 800; margin: 0; }
.card-meta { color: var(--muted); font-size: .9rem; display: flex; align-items: center; gap: 7px; }
.card-meta svg, .card-meta .pin { color: var(--accent); flex-shrink: 0; }
.card-meta a { font-weight: 700; color: inherit; }
.card-meta a:hover { color: var(--primary); }
.card-actions { margin-top: auto; padding-top: 8px; display: flex; gap: 8px; flex-wrap: wrap; }

.empty {
    text-align: center;
    padding: 70px 24px;
    color: var(--muted);
    border: 1.6px dashed var(--line);
    border-radius: var(--r-md);
    background: var(--wash);
    font-weight: 600;
}

.map-wrap { margin-top: 18px; }
.map-wrap .map {
    height: 380px;
    border-radius: var(--r-lg);
    border: 1px solid var(--line);
    overflow: hidden;
    box-shadow: var(--sh-sm);
    z-index: 1;
}
.map-cluster {
    display: grid;
    place-items: center;
    background: var(--grad-primary);
    color: #fff;
    border: 3px solid #fff;
    border-radius: 50%;
    font-weight: 800;
    font-size: .9rem;
    box-shadow: var(--sh-md);
}
.map-cluster span { line-height: 1; }
.map-nojs { background: var(--wash); border: 1px dashed var(--line); border-radius: var(--r-lg); padding: 22px; }
.leaflet-container { font-family: var(--font); z-index: 1; }

.detail-grid { display: grid; gap: 28px; grid-template-columns: 1fr 1fr; align-items: start; }
.detail-panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: 24px;
    box-shadow: var(--sh-xs);
}
.detail-panel h2 { font-size: 1.15rem; margin: 0 0 14px; display: flex; align-items: center; gap: 8px; }
.detail-panel h2::after { content: ""; flex: 1; height: 2px; background: var(--line); border-radius: 2px; }
.info-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.info-list li { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; }
.info-list .k { min-width: 118px; color: var(--muted); font-weight: 700; font-size: .84rem; padding-top: 2px; }
.info-list a { font-weight: 700; }
.detail-media img { width: 100%; border-radius: var(--r-lg); border: 1px solid var(--line); box-shadow: var(--sh-sm); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: var(--r-sm);
    border: 1px solid transparent;
    background: var(--grad-primary);
    color: #fff;
    font-weight: 700;
    font-size: .92rem;
    font-family: inherit;
    cursor: pointer;
    text-decoration: none;
    line-height: 1.2;
    box-shadow: 0 8px 20px rgb(13 122 91 / .28);
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}
.btn::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(255,255,255,.35), transparent 70%);
    opacity: 0;
    transform: scale(0);
    pointer-events: none;
    border-radius: inherit;
}
.btn:active::after {
    animation: ripple 0.45s ease-out forwards;
}
.btn svg { width: 17px; height: 17px; }
.btn:hover { color: #fff; text-decoration: none; transform: translateY(-2px); box-shadow: 0 14px 30px rgb(13 122 91 / .34); }
.btn:active { transform: translateY(0) scale(.98); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }

.btn-outline { background: var(--surface); color: var(--primary); border-color: rgb(13 122 91 / .5); box-shadow: none; }
.btn-outline:hover { background: rgb(13 122 91 / .08); color: var(--primary); box-shadow: none; }

.btn-soft { background: rgb(13 122 91 / .1); color: var(--primary); box-shadow: none; }
.btn-soft:hover { background: rgb(13 122 91 / .16); color: var(--primary); box-shadow: none; }

.btn-ghost { background: transparent; color: var(--primary); box-shadow: none; }
.btn-ghost:hover { background: rgb(13 122 91 / .08); color: var(--primary); box-shadow: none; }

.btn-inverse { background: #fff; color: var(--primary); box-shadow: 0 10px 24px rgb(6 53 42 / .25); }
.btn-inverse:hover { color: var(--primary); background: var(--wash); box-shadow: 0 14px 30px rgb(6 53 42 / .3); }

.btn-gold { background: var(--grad-gold); color: #fff; box-shadow: 0 10px 24px rgb(201 161 95 / .4); }
.btn-gold:hover { color: #fff; box-shadow: 0 14px 30px rgb(201 161 95 / .45); }

.btn-danger { background: linear-gradient(135deg, #c2410c, #b42318); box-shadow: 0 8px 20px rgb(180 35 24 / .3); }
.btn-danger:hover { color: #fff; }

.btn-lg { padding: 15px 30px; font-size: 1rem; border-radius: 14px; }
.btn-sm { padding: 8px 14px; font-size: .82rem; border-radius: 10px; box-shadow: 0 5px 12px rgb(13 122 91 / .22); }

/* ============================================================
   BADGES
   ============================================================ */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: var(--r-pill);
    font-size: .74rem;
    font-weight: 800;
    letter-spacing: .2px;
}
.badge-active { background: var(--success-bg); color: var(--success); }
.badge-inactive { background: var(--error-bg); color: var(--error); }
.badge-featured { background: var(--accent-soft); color: var(--accent-ink); }

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero {
    position: relative;
    background: var(--grad-ink);
    padding: 66px 24px 74px;
    text-align: center;
    overflow: hidden;
    border-bottom: 1px solid rgb(201 161 95 / .35);
}
.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(60% 90% at 12% 0%, rgb(201 161 95 / .20), transparent 55%),
        radial-gradient(50% 80% at 90% 100%, rgb(13 122 91 / .35), transparent 60%),
        linear-gradient(140deg, rgb(255 255 255 / .05), transparent);
}
.page-hero::after {
    content: "";
    position: absolute;
    inset-inline: 0;
    bottom: -1px;
    height: 46px;
    background: radial-gradient(70% 60% at 50% 0%, transparent 60%, rgb(246 244 238 / .65) 100%);
    -webkit-mask-image: linear-gradient(180deg, transparent, #000);
            mask-image: linear-gradient(180deg, transparent, #000);
}
.page-hero-inner {
    position: relative;
    z-index: 2;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: 24px;
}
.page-hero-title {
    font-weight: 800;
    font-size: clamp(1.7rem, 4vw, 2.6rem);
    color: #fff;
    margin: 14px 0 0;
    line-height: 1.2;
}
.page-hero-title small { display: block; font-size: .48em; color: #cfe4da; font-weight: 600; margin-top: 6px; }
.breadcrumb {
    font-size: .86rem;
    color: #a8c9bc;
    display: inline-flex;
    gap: 10px;
    align-items: center;
    background: rgb(255 255 255 / .08);
    border: 1px solid rgb(255 255 255 / .12);
    padding: 7px 16px;
    border-radius: var(--r-pill);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}
.breadcrumb a { color: #d8ebe3; text-decoration: none; font-weight: 600; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { color: var(--accent); }
.breadcrumb span[aria-current="page"] { color: var(--accent); font-weight: 800; }

.page-body { padding-block: 78px; min-height: 40vh; }
.split-page { max-width: 1020px; }

.page-gallery { background: var(--bg); padding-block: 78px; min-height: 40vh; }
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 22px;
    max-width: var(--container);
    margin-inline: auto;
}
.gallery-item {
    display: block;
    border-radius: var(--r-md);
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--sh-xs);
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
    position: relative;
}
.gallery-item::after {
    content: "↗";
    position: absolute;
    bottom: 12px;
    inset-inline-end: 12px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--grad-gold);
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 800;
    opacity: 0;
    transform: scale(.6);
    transition: all .25s ease;
}
.gallery-item:hover { transform: translateY(-5px); box-shadow: var(--sh-md); border-color: rgb(201 161 95 / .6); text-decoration: none; }
.gallery-item:hover::after { opacity: 1; transform: scale(1); }
.gallery-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }

/* ============================================================
   FORMS (public)
   ============================================================ */
.alert { padding: 13px 18px; border-radius: var(--r-sm); margin-bottom: 18px; font-weight: 700; border: 1px solid transparent; font-size: .92rem; }
.alert-success { background: var(--success-bg); color: var(--success); border-color: rgb(21 128 61 / .3); }

.contact-form { display: grid; gap: 16px; }
.contact-form .field { display: grid; gap: 7px; }
.contact-form label { font-weight: 700; font-size: .88rem; }
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 13px 15px;
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    font-family: inherit;
    font-size: .95rem;
    background: var(--wash);
    color: var(--ink);
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 4px rgb(13 122 91 / .12);
}
.form-error { color: var(--error); font-size: .8rem; font-weight: 700; }
.contact-form .btn { margin-top: 4px; }

.filter-form {
    max-width: 780px;
    margin: 26px auto 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    background: rgb(255 255 255 / .1);
    border: 1px solid rgb(255 255 255 / .16);
    padding: 14px;
    border-radius: 18px;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 2;
}
.filter-form input,
.filter-form select {
    padding: 12px 16px;
    border-radius: var(--r-sm);
    border: 1px solid rgb(255 255 255 / .3);
    font-family: inherit;
    font-size: .92rem;
    background: rgb(255 255 255 / .94);
    color: var(--ink);
    flex: 1 1 150px;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.filter-form input:focus, .filter-form select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgb(201 161 95 / .25); }
.filter-form .btn { flex: 0 0 auto; }

/* Filter toggle (mobile accordion) */
.filter-toggle {
    display: none;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 12px 14px;
    border: 1px solid rgb(255 255 255 / .3);
    border-radius: var(--r-sm);
    background: rgb(255 255 255 / .94);
    color: var(--ink);
    font-family: inherit;
    font-size: .92rem;
    font-weight: 700;
    cursor: pointer;
}
.filter-toggle .chev {
    margin-inline-start: auto;
    width: 10px;
    height: 10px;
    border-inline-start: 2px solid currentColor;
    border-block-end: 2px solid currentColor;
    transform: rotate(-45deg);
    transition: transform .2s ease;
}
.filter-fields { display: contents; }
.filter-toggle[aria-expanded="false"] .chev { transform: rotate(45deg); }

/* ============================================================
   CTA STRIP + FOOTER
   ============================================================ */
.cta-strip { max-width: var(--container); margin-inline: auto; }
.cta-strip .cta-box {
    position: relative;
    background: var(--grad-primary);
    border-radius: var(--r-lg);
    padding: 46px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    flex-wrap: wrap;
    overflow: hidden;
    box-shadow: var(--sh-lg);
}
.cta-box::before {
    content: "";
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgb(255 255 255 / .16), transparent 62%);
    top: -120px;
    inset-inline-start: -80px;
}
.cta-box::after {
    content: "";
    position: absolute;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: radial-gradient(circle, rgb(201 161 95 / .4), transparent 65%);
    bottom: -110px;
    inset-inline-end: -60px;
}
.cta-box h3 { color: #fff; font-size: 1.5rem; margin: 0 0 6px; position: relative; z-index: 1; }
.cta-box p { color: #d3e8df; margin: 0; position: relative; z-index: 1; }
.cta-box .btn { position: relative; z-index: 1; }

.footer {
    background: var(--grad-ink);
    color: #c6d9d0;
    margin-top: 64px;
    position: relative;
}
.footer::before {
    content: "";
    position: absolute;
    inset-inline: 0;
    top: 0;
    height: 3px;
    background: var(--grad-gold);
    opacity: .8;
}
.footer-inner {
    max-width: var(--container);
    margin-inline: auto;
    padding: 60px 24px 40px;
    display: grid;
    gap: 40px;
    grid-template-columns: 1.4fr 1fr 1fr;
}
.footer h4 {
    color: #fff;
    margin: 0 0 16px;
    font-size: 1rem;
    padding-bottom: 10px;
    position: relative;
}
.footer h4::after {
    content: "";
    position: absolute;
    bottom: 0;
    inset-inline-start: 0;
    width: 32px;
    height: 3px;
    border-radius: 3px;
    background: var(--grad-gold);
}
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer a { color: #bfd4ca; text-decoration: none; font-weight: 600; transition: color .2s ease, padding-inline-start .2s ease; }
.footer a:hover { color: var(--accent); padding-inline-start: 3px; }
.footer .f-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer .f-brand .brand-monogram { width: 44px; height: 44px; border-radius: 12px; font-size: 1.2rem; box-shadow: none; }
.footer .f-brand .brand-name { color: #fff; }
.footer .f-brand .brand-tagline { color: #8fb0a2; }
.footer p.f-about { color: #b3c9bf; font-size: .92rem; max-width: 340px; }
.footer .f-socials { display: flex; gap: 10px; margin-top: 16px; }
.footer .f-socials a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgb(255 255 255 / .16);
    background: rgb(255 255 255 / .05);
    display: inline-grid;
    place-items: center;
    color: #dfeae5;
    transition: all .2s ease;
}
.footer .f-socials a:hover { background: var(--accent); border-color: var(--accent); color: #fff; transform: translateY(-3px); padding-inline-start: 0; }
.footer .f-socials svg { width: 16px; height: 16px; fill: currentColor; }
.footer .sub {
    border-top: 1px solid rgb(255 255 255 / .1);
    text-align: center;
    padding: 18px 24px;
    font-size: .84rem;
    color: #8fb0a8;
}

/* ============================================================
   WHATSAPP FLOAT + BACK TO TOP
   ============================================================ */
.wa-float {
    position: fixed;
    bottom: 24px;
    inset-inline-end: 24px;
    z-index: 70;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #25d366, #128c4a);
    color: #fff;
    display: grid;
    place-items: center;
    box-shadow: 0 12px 30px rgb(18 140 74 / .45);
    transition: transform .25s ease, box-shadow .25s ease;
}
.wa-float:hover { transform: translateY(-4px) scale(1.04); color: #fff; box-shadow: 0 18px 40px rgb(18 140 74 / .5); }
.wa-float::after {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 1px solid rgb(37 211 102 / .5);
    animation: waPulse 2.4s ease-out infinite;
}
@keyframes waPulse {
    0% { transform: scale(.9); opacity: 1; }
    100% { transform: scale(1.5); opacity: 0; }
}
.wa-float svg { width: 27px; height: 27px; fill: currentColor; }

.back-top {
    position: fixed;
    bottom: 24px;
    inset-inline-start: 24px;
    z-index: 70;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--grad-gold);
    color: #fff;
    display: grid;
    place-items: center;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 24px rgb(201 161 95 / .4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(14px);
    transition: opacity .3s ease, transform .3s ease, visibility .3s ease;
}
.back-top.show { opacity: 1; visibility: visible; transform: none; }
.back-top:hover { transform: translateY(-3px); }
.back-top svg { width: 18px; height: 18px; }

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 32px; flex-wrap: wrap; }
.pagination a, .pagination span {
    border: 1px solid var(--line);
    background: var(--surface);
    padding: 8px 14px;
    border-radius: 10px;
    color: var(--ink);
    text-decoration: none;
    font-weight: 600;
    transition: all .2s ease;
}
.pagination a:hover { border-color: var(--primary); color: var(--primary); }
.pagination .active { background: var(--grad-primary); color: #fff; border-color: transparent; }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.fade-in-up, .fade-in-right { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.fade-in-right { transform: translate(28px, 0); }
html[dir="rtl"] .fade-in-right { transform: translate(-28px, 0); }
.fade-in-up.is-visible, .fade-in-right.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .fade-in-up, .fade-in-right { opacity: 1; transform: none; transition: none; }
    .hero .fade-in { animation: none; opacity: 1; transform: none; }
    .hero-media .hm-ring { animation: none; }
    .wa-float::after { animation: none; }
    html { scroll-behavior: auto; }
}

/* ============================================================
   PRODUCTS
   ============================================================ */
.product-card .card-img-wrap { aspect-ratio: 4 / 3; }
.product-card .card-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.p-layout { display: grid; grid-template-columns: 1.02fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: start; }
.p-media { position: relative; border-radius: 22px; overflow: hidden; box-shadow: var(--sh-lg); }
.p-media::before { content: ""; position: absolute; inset: 0; z-index: 2; background: linear-gradient(200deg, rgb(13 122 91 / .12), transparent 45%); pointer-events: none; }
.p-media img { width: 100%; height: 100%; max-height: 520px; object-fit: cover; display: block; }
.p-info { padding-top: 8px; }
.p-description { color: var(--ink-soft); line-height: 1.9; white-space: pre-line; }
.p-description p { margin: 0 0 1em; }
.p-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 28px; }
.gallery-item { margin: 0; border-radius: 18px; overflow: hidden; box-shadow: var(--sh-sm); background: var(--surface); }
.gallery-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; transition: transform .5s ease; }
.gallery-item:hover img { transform: scale(1.05); }
@media (max-width: 640px) {
    .p-layout { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}

/* Category combo (products filter) */
.cat-filter { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 8px 0 34px; }
.cat-filter-label { font-size: .74rem; font-weight: 800; color: var(--muted); letter-spacing: .6px; text-transform: uppercase; }
.cat-combo { position: relative; flex: 1 1 320px; max-width: 460px; min-width: 0; }
.cat-combo-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 16px;
    border: 1px solid var(--line);
    background: var(--surface);
    border-radius: var(--r-sm);
    font: inherit;
    font-weight: 700;
    font-size: .92rem;
    color: var(--ink);
    text-align: start;
    cursor: pointer;
    box-shadow: var(--sh-xs);
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.cat-combo-btn:hover { border-color: var(--accent); }
.cat-filter.is-open .cat-combo-btn { border-color: var(--primary); background: var(--wash); box-shadow: 0 0 0 4px rgb(13 122 91 / .12); }
.cat-combo-value { display: inline-flex; align-items: center; gap: 10px; min-width: 0; flex: 1; }
.cat-combo-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cat-combo-num { margin-inline-start: auto; color: var(--muted); font-size: .78rem; font-weight: 700; white-space: nowrap; }
.cat-combo-caret { width: 18px; height: 18px; color: var(--muted); flex-shrink: 0; transition: transform .25s ease; }
.cat-filter.is-open .cat-combo-caret { transform: rotate(180deg); }
.cat-combo-code {
    display: inline-grid;
    place-items: center;
    min-width: 26px;
    height: 26px;
    padding: 0 6px;
    border-radius: 8px;
    background: var(--accent-soft);
    color: var(--accent-ink);
    font-size: .76rem;
    font-weight: 800;
    flex-shrink: 0;
}
.cat-combo-code.is-all { background: var(--grad-primary); color: #fff; }
.cat-combo-code svg { width: 14px; height: 14px; }
.cat-combo-search {
    padding: 12px;
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    background: var(--surface);
    z-index: 10;
}
.cat-combo-search input {
    width: 100%;
    padding: 8px 12px;
    border-radius: var(--r-sm);
    border: 1px solid var(--line);
    background: var(--wash);
    color: var(--ink);
    font: inherit;
    font-size: .85rem;
    transition: border-color .2s ease;
}
.cat-combo-search input:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--surface);
}
.cat-combo-menu {
    position: absolute;
    inset-inline: 0;
    top: calc(100% + 8px);
    z-index: 40;
    padding: 0; /* Changed from 8px to 0 because of search bar */
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    box-shadow: var(--sh-md);
    max-height: min(62vh, 430px);
    overflow-y: auto;
    overscroll-behavior: contain;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}
.cat-combo-menu .cat-combo-opt {
    padding: 10px 16px; /* Adjusted padding */
}
.cat-filter.is-open .cat-combo-menu { opacity: 1; visibility: visible; transform: none; }
.cat-combo-menu::-webkit-scrollbar { width: 8px; }
.cat-combo-menu::-webkit-scrollbar-thumb { background: var(--line); border-radius: 999px; }
.cat-combo-opt {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: var(--r-sm);
    color: var(--ink);
    font-size: .9rem;
    font-weight: 600;
    text-decoration: none;
    transition: background .16s ease, color .16s ease;
}
.cat-combo-opt .cat-combo-name { flex: 1; min-width: 0; }
.cat-combo-opt .cat-combo-num { margin-inline-start: 0; background: var(--wash); border: 1px solid var(--line-soft); border-radius: var(--r-pill); padding: 1px 10px; }
.cat-combo-opt:hover { background: var(--wash); color: var(--primary-700); }
.cat-combo-opt.is-active { background: rgb(13 122 91 / .08); color: var(--primary-700); }
.cat-combo-opt.is-active .cat-combo-code { background: var(--grad-primary); color: #fff; }
.cat-combo-opt.is-active .cat-combo-num { background: #fff; border-color: transparent; color: var(--primary-700); }

.category-section { margin-top: 42px; scroll-margin-top: calc(var(--header-h) + 20px); }
.category-section:first-of-type { margin-top: 0; }
.category-head { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; margin-bottom: 22px; border-bottom: 2px solid var(--line-soft); }
.category-head h3 { margin: 0; font-size: clamp(1.1rem, 2.4vw, 1.45rem); }
.category-code { display: inline-grid; place-items: center; min-width: 34px; height: 34px; padding: 0 8px; border-radius: 10px; background: var(--grad-gold); color: #4a3410; font-size: .95rem; font-weight: 800; }
.category-count { margin-inline-start: auto; color: var(--muted); font-size: .85rem; font-weight: 600; white-space: nowrap; }

@media (max-width: 640px) {
    .cat-filter { gap: 8px; margin-bottom: 26px; }
    .cat-filter-label { display: none; }
    .cat-combo { flex-basis: 100%; max-width: 100%; }
    .cat-combo-btn { padding: 10px 13px; font-size: .86rem; }
    .category-head { gap: 9px; }
    .category-count { display: none; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1280px) {
    .nav { gap: 0; }
    .nav a { padding: 7px 8px; font-size: .78rem; }
    .header-inner { gap: 8px; }
    .header-tools { gap: 8px; }
    .search-btn { width: 44px; height: 44px; min-width: 44px; }
    .search-btn svg { width: 18px; height: 18px; }
    .lang-switch a { min-width: 56px; height: 44px; }
}

@media (max-width: 1080px) {
    .nav-toggle { display: block; margin-inline-start: auto; }
    .nav, .header-tools { display: none; }
    .hero-inner { grid-template-columns: 1fr; gap: 40px; }
    .hero { min-height: auto; padding-top: 60px; }
    .hero-metrics { max-width: 100%; }
    .hero-media { max-width: 520px; margin-inline: auto; width: 100%; }
    .split { grid-template-columns: 1fr; gap: 44px; }
    .detail-grid { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
    .topbar .contact > a:nth-of-type(3) { display: none; }
    .section { padding-block: 60px; }
    .hero-title { font-size: clamp(1.7rem, 8vw, 2.4rem); }
    .hero-metrics .metric { padding: 2px 14px; }
    .counters { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .footer-inner { grid-template-columns: 1fr; gap: 28px; }
    .cta-strip .cta-box { padding: 34px 22px; text-align: center; justify-content: center; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .filter-form { padding: 10px; }
    .filter-toggle { display: inline-flex; }
    .filter-fields {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 10px;
        flex-wrap: nowrap;
    }
    .filter-fields.is-open { display: flex; flex-wrap: wrap; }
    .filter-fields input,
    .filter-fields select {
        flex: 1 1 100%;
        width: 100%;
    }
    .hero-media .hm-side { width: 42%; }
    
    /* Touch Targets Improvement */
    .topbar a, .topbar .social a, .nav a, .btn-sm, .lang-switch a, .cat-combo-opt {
        min-width: 44px;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    .cat-combo-opt { padding: 14px 12px; }
}

@media (max-width: 400px) {
    .hero-media .hm-side, .hero-media .hm-ring { display: none; }
    .brand-tagline { display: none; }
}
/* ============================================================
   HERO SLIDER (single, fully managed from admin → Slider)
   ============================================================ */
.hero-slider { position: relative; background: var(--grad-ink); overflow: hidden; }
.hero-slider .hs-track { position: relative; width: 100%; min-height: clamp(460px, 78vh, 760px); overflow: hidden; }
.hero-slider .hs-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 1s ease, visibility 1s ease; }
.hero-slider .hs-slide.active { opacity: 1; visibility: visible; }
.hero-slider .hs-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-slider .hs-wash { position: absolute; inset: 0; background: linear-gradient(180deg, rgb(6 53 42 / .42) 0%, rgb(6 53 42 / .58) 42%, rgb(6 53 42 / .9) 100%); }
.hero-slider .hs-caption { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; text-align: center; padding: clamp(72px, 12vh, 150px) clamp(20px, 5vw, 48px); }
.hero-slider .hs-title { margin: 0; max-width: 1000px; color: #fff; font-size: clamp(1.7rem, 4.6vw, 3.2rem); font-weight: 800; line-height: 1.3; }
.hero-slider .hs-sub { margin: 0; max-width: 720px; color: #dfeae4; font-size: clamp(1rem, 2.1vw, 1.28rem); }
.hero-slider .hs-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }
.hero-slider .grad { background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-slider .hs-dots { position: absolute; inset-inline: 0; bottom: 18px; z-index: 3; display: flex; justify-content: center; gap: 8px; }
.hero-slider .hs-dots span { width: 10px; height: 10px; border-radius: 50%; background: rgb(255 255 255 / .5); cursor: pointer; transition: width .25s ease, background .25s ease; }
.hero-slider .hs-dots span.active { width: 26px; border-radius: 999px; background: var(--accent); }
.hero-slider .hs-arrow { position: absolute; top: 50%; z-index: 3; width: 44px; height: 44px; transform: translateY(-50%); border: none; border-radius: 50%; background: rgb(255 255 255 / .85); color: var(--primary-deep); display: grid; place-items: center; cursor: pointer; box-shadow: var(--sh-sm); transition: background .25s ease; }
.hero-slider .hs-arrow:hover { background: #fff; }
.hero-slider .hs-arrow.prev { inset-inline-start: 16px; }
.hero-slider .hs-arrow.next { inset-inline-end: 16px; }
html[dir="rtl"] .hero-slider .hs-arrow svg { transform: scaleX(-1); }

@media (max-width: 640px) {
    .hero-slider .hs-track { min-height: 74vh; }
    .hero-slider .hs-caption { padding: 96px 18px 72px; }
    .hero-slider .hs-arrow { width: 36px; height: 36px; }
    .hero-slider .hs-arrow.prev { inset-inline-start: 8px; }
    .hero-slider .hs-arrow.next { inset-inline-end: 8px; }
    .hero-slider .hs-dots { bottom: 12px; }
}

/* Skeletons & Loading states */
.skeleton {
    background: linear-gradient(90deg, var(--wash) 25%, var(--line-soft) 50%, var(--wash) 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite linear;
    border-radius: 4px;
    color: transparent !important;
    pointer-events: none;
    user-select: none;
}
@keyframes skeleton-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
.skeleton-text { height: 1rem; margin-bottom: 0.5rem; width: 100%; }
.skeleton-title { height: 1.5rem; width: 60%; margin-bottom: 1rem; }
.skeleton-img { aspect-ratio: 16/10; width: 100%; margin-bottom: 1rem; }

/* Lightbox for product images */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, visibility .3s ease;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox-overlay {
    position: absolute;
    inset: 0;
    background: rgba(6, 53, 42, .95);
    backdrop-filter: blur(12px);
}
.lightbox-content {
    position: relative;
    z-index: 10;
    max-width: 90%;
    max-height: 90%;
}
.lightbox-content img {
    display: block;
    max-width: 100%;
    max-height: 90vh;
    border-radius: var(--r-md);
    box-shadow: var(--sh-lg);
}
.lightbox-close {
    position: absolute;
    top: -40px;
    inset-inline-end: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}

.p-media-wish { top: 16px; inset-inline-end: 16px; width: 42px; height: 42px; }
.gallery-item img { cursor: zoom-in; }
.p-media img { cursor: zoom-in; }
