/* —— بنك بوبيان: نظام التصميم —— */

:root {
    --bb-red: #c41e3a;
    --bb-red-dark: #a81830;
    --bb-gold: #c9a227;
    --bb-gold-light: #f5e6b8;
    --bb-ink: #1a2332;
    --bb-muted: #5c6578;
    --bb-border: #e4e8ef;
    --bb-bg: #f3f5f8;
    --bb-card: #ffffff;
    --bb-radius: 16px;
    --bb-radius-lg: 24px;
    --bb-shadow: 0 16px 40px -24px rgb(26 35 50 / 0.35);
    --primary: #c41e3a;
    --gold: #c9a227;
    --background: #f8f9fb;
    --foreground: #1a2332;
    --card: #ffffff;
    --border: #e4e8ef;
    --muted-foreground: #5c6578;
    --secondary: #eef1f5;
    --accent: #fdf4f5;
    --ink: #1a2332;
    --ink-foreground: #f7f8fa;
}

/* Layout */

.bb-home {
    background: var(--bb-bg);
    color: var(--bb-ink);
}

.bb-site-accent {
    height: 4px;
    background: linear-gradient(90deg, var(--bb-red) 0%, var(--bb-gold) 50%, var(--bb-red) 100%);
}

.bb-home-header {
    border-bottom: 1px solid var(--bb-border);
    background: rgb(255 255 255 / 0.92);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgb(0 0 0 / 0.04);
}

.bb-home-header__inner {
    margin: 0 auto;
    max-width: 72rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 1.25rem;
}

.bb-brand-logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.bb-brand-logo img {
    display: block;
    height: auto;
    max-height: 46px;
    width: auto;
    max-width: min(170px, 46vw);
}

.bb-home-nav {
    display: none;
    align-items: center;
    gap: 0.25rem;
}

@media (min-width: 768px) {
    .bb-home-nav {
        display: flex;
    }
}

.bb-nav-pill {
    border: none;
    background: transparent;
    border-radius: 999px;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--bb-muted);
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.bb-nav-pill:hover {
    color: var(--bb-red);
    background: var(--accent);
}

/* Buttons */

.bb-btn-apply {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--bb-red) 0%, var(--bb-red-dark) 100%);
    color: #fff !important;
    font-weight: 700;
    text-decoration: none !important;
    box-shadow: 0 12px 28px -8px rgb(196 30 58 / 0.55);
    transition: transform 0.15s, box-shadow 0.15s;
}

.bb-btn-apply:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px -8px rgb(196 30 58 / 0.6);
}

.bb-btn-apply:active {
    transform: translateY(0);
}

.bb-btn-apply--sm {
    padding: 0.55rem 1.25rem;
    font-size: 0.875rem;
}

.bb-btn-apply--md {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
}

.bb-btn-apply--lg {
    padding: 1rem 2.25rem;
    font-size: 1.05rem;
}

.bb-btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--bb-border);
    border-radius: 999px;
    background: var(--bb-card);
    padding: 1rem 1.75rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--bb-ink);
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}

.bb-btn-ghost:hover {
    border-color: var(--bb-gold);
    background: #fffdf7;
}

/* Hero */

.bb-home-hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(ellipse 80% 60% at 100% 0%, rgb(196 30 58 / 0.08), transparent),
        radial-gradient(ellipse 60% 50% at 0% 100%, rgb(201 162 39 / 0.1), transparent),
        var(--bb-bg);
}

.bb-home-hero__grid {
    position: relative;
    margin: 0 auto;
    max-width: 72rem;
    display: grid;
    align-items: center;
    gap: 2.5rem;
    padding: 3rem 1.25rem 3.5rem;
}

@media (min-width: 1024px) {
    .bb-home-hero__grid {
        grid-template-columns: 1.05fr 1fr;
        gap: 2.5rem;
        padding: 4.5rem 1.5rem 5rem;
    }
}

.bb-hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    border-radius: 999px;
    border: 1px solid rgb(201 162 39 / 0.45);
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    padding: 0.4rem 0.95rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: #854d0e;
}

.bb-hero-kicker strong {
    color: var(--bb-red);
}

.bb-home-hero h1 {
    margin-top: 1.25rem;
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.12;
    font-weight: 800;
    color: var(--bb-ink);
}

.bb-hero-accent {
    display: block;
    background: linear-gradient(100deg, var(--bb-gold), #e8c96a);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.bb-home-hero__lead {
    margin-top: 1.25rem;
    max-width: 32rem;
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--bb-muted);
}

.bb-trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.25rem;
}

.bb-trust-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border-radius: 999px;
    border: 1px solid var(--bb-border);
    background: #fff;
    padding: 0.35rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--bb-ink);
    box-shadow: 0 1px 2px rgb(0 0 0 / 0.04);
}

.bb-trust-chip svg {
    color: var(--bb-red);
}

.bb-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 2rem;
}

.bb-hero-sharia {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 1.25rem;
    font-size: 0.78rem;
    color: var(--bb-muted);
}

.bb-hero-sharia svg {
    color: var(--bb-gold);
}

.bb-hero-visual {
    position: relative;
}

.bb-hero-visual__frame {
    overflow: hidden;
    border-radius: var(--bb-radius-lg);
    border: 1px solid rgb(201 162 39 / 0.35);
    background: #fff;
    box-shadow: var(--bb-shadow);
}

.bb-hero-visual__frame img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.bb-hero-badge {
    position: absolute;
    bottom: -0.75rem;
    left: -0.5rem;
    display: none;
    align-items: center;
    gap: 0.5rem;
    border-radius: 14px;
    border: 1px solid var(--bb-border);
    background: rgb(255 255 255 / 0.96);
    padding: 0.65rem 1rem;
    box-shadow: var(--bb-shadow);
    font-size: 0.85rem;
    font-weight: 600;
}

@media (min-width: 640px) {
    .bb-hero-badge {
        display: flex;
    }
}

/* Marquee */

.bb-marquee {
    overflow: hidden;
    background: var(--bb-red);
    padding: 0.85rem 0;
}

.bb-marquee .text-ink-foreground\/85 {
    color: rgb(255 255 255 / 0.95) !important;
}

.bb-marquee .text-gold {
    color: var(--bb-gold-light) !important;
}

/* Sections */

.bb-section {
    padding: 4rem 1.25rem;
}

@media (min-width: 1024px) {
    .bb-section {
        padding: 5.5rem 1.5rem;
    }
}

.bb-section--alt {
    background: #fff;
    border-block: 1px solid var(--bb-border);
}

.bb-section__inner {
    margin: 0 auto;
    max-width: 72rem;
}

.bb-eyebrow {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--bb-red);
}

.bb-section h2 {
    margin-top: 0.5rem;
    font-size: clamp(1.65rem, 3.5vw, 2.35rem);
    font-weight: 800;
    color: var(--bb-ink);
}

.bb-section__lead {
    margin-top: 0.65rem;
    color: var(--bb-muted);
    max-width: 36rem;
}

/* Feature cards */

.bb-features-grid {
    display: grid;
    gap: 1rem;
    margin-top: 2.5rem;
}

@media (min-width: 640px) {
    .bb-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .bb-features-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.bb-feature-card {
    height: 100%;
    border-radius: var(--bb-radius);
    border: 1px solid var(--bb-border);
    background: var(--bb-card);
    padding: 1.5rem;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.bb-feature-card:hover {
    transform: translateY(-4px);
    border-color: rgb(201 162 39 / 0.5);
    box-shadow: var(--bb-shadow);
}

.bb-feature-card__icon {
    display: grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--bb-red), var(--bb-gold));
    color: #fff;
}

.bb-feature-card h3 {
    margin-top: 1.15rem;
    font-size: 1.05rem;
    font-weight: 700;
}

.bb-feature-card p {
    margin-top: 0.5rem;
    font-size: 0.88rem;
    line-height: 1.55;
    color: var(--bb-muted);
}

/* Calculator */

.bb-calc-grid {
    display: grid;
    gap: 2rem;
    margin-top: 2rem;
}

@media (min-width: 1024px) {
    .bb-calc-grid {
        grid-template-columns: 1fr 1.1fr;
        gap: 2.5rem;
    }
}

.bb-calc-result {
    margin-top: 2rem;
    border-radius: var(--bb-radius);
    border: 1px solid rgb(201 162 39 / 0.35);
    background: linear-gradient(145deg, var(--bb-ink) 0%, #2a3548 100%);
    padding: 1.5rem;
    color: var(--ink-foreground);
    box-shadow: var(--bb-shadow);
}

.bb-calc-result__value {
    font-size: clamp(2.25rem, 5vw, 3rem);
    font-weight: 800;
    background: linear-gradient(100deg, var(--bb-gold), #f0d78a);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.bb-calc-panel {
    border-radius: var(--bb-radius);
    border: 1px solid var(--bb-border);
    background: #fff;
    padding: 1.5rem;
    box-shadow: 0 4px 20px -12px rgb(26 35 50 / 0.15);
}

@media (min-width: 640px) {
    .bb-calc-panel {
        padding: 2rem;
    }
}

/* Steps */

.bb-steps-grid {
    display: grid;
    gap: 1.5rem;
    margin-top: 2.5rem;
    list-style: none;
    padding: 0;
}

@media (min-width: 640px) {
    .bb-steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .bb-steps-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.bb-step-num {
    display: grid;
    place-items: center;
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 14px;
    border: 1px solid rgb(201 162 39 / 0.45);
    background: #fff;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--bb-red);
}

/* FAQ */

.bb-faq-wrap {
    margin-top: 2.5rem;
    border-radius: var(--bb-radius);
    border: 1px solid var(--bb-border);
    background: #fff;
    padding: 0 1.25rem;
    box-shadow: 0 4px 20px -12px rgb(26 35 50 / 0.12);
}

@media (min-width: 640px) {
    .bb-faq-wrap {
        padding: 0 1.75rem;
    }
}

.faq-item {
    border-bottom: 1px solid var(--bb-border);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-trigger {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0;
    border: none;
    background: none;
    text-align: right;
    font-size: 1rem;
    font-weight: 600;
    color: var(--bb-ink);
    cursor: pointer;
}

.faq-item.is-open .faq-trigger svg {
    transform: rotate(180deg);
}

.faq-panel {
    font-size: 0.9rem;
    line-height: 1.65;
    color: var(--bb-muted);
}

/* CTA */

.bb-cta {
    margin: 0 auto 4rem;
    max-width: 72rem;
    padding: 0 1.25rem;
}

.bb-cta__box {
    position: relative;
    overflow: hidden;
    border-radius: var(--bb-radius-lg);
    background: linear-gradient(135deg, var(--bb-red) 0%, #8f1528 55%, var(--bb-ink) 100%);
    padding: 3rem 1.5rem;
    text-align: center;
    color: #fff;
    box-shadow: var(--bb-shadow);
}

@media (min-width: 640px) {
    .bb-cta__box {
        padding: 3.5rem 2.5rem;
    }
}

.bb-cta__box h2 {
    margin-top: 0.5rem;
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 800;
    color: #fff;
}

.bb-cta__box p {
    margin: 0.75rem auto 0;
    max-width: 28rem;
    font-size: 0.95rem;
    opacity: 0.88;
}

.bb-perfume-guide h2 {
    margin: 1.5rem 0 0.65rem;
    font-size: 1.1rem;
    color: #1a2332;
}

.bb-perfume-guide h2:first-child {
    margin-top: 0;
}

.bb-perfume-guide ul {
    margin: 0 0 0.5rem;
    padding-right: 1.25rem;
    color: #475569;
    line-height: 1.65;
}

.bb-perfume-guide li {
    margin-bottom: 0.45rem;
}

.bb-perfume-guide__note {
    margin: 1.75rem 0 0;
    padding: 1rem;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    font-size: 0.9rem;
    color: #64748b;
}

.bb-cta__box .bb-btn-apply {
    margin-top: 1.75rem;
    background: #fff;
    color: var(--bb-red) !important;
    box-shadow: none;
}

/* Footer */

.bb-footer-brand {
    border-top: 4px solid;
    border-image: linear-gradient(90deg, var(--bb-red), var(--bb-gold), var(--bb-red)) 1;
    background: var(--bb-ink);
    color: #f0f2f5;
    padding: 3rem 1.25rem;
}

.bb-footer-brand button {
    border: none;
    background: none;
    color: rgb(240 242 245 / 0.78);
    cursor: pointer;
    font-size: 0.9rem;
}

.bb-footer-brand button:hover {
    color: var(--bb-gold-light);
}

.bb-footer-brand .bb-brand-logo img {
    filter: brightness(0) invert(1);
    max-height: 42px;
}

.bb-footer-inner {
    margin: 0 auto;
    max-width: 72rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .bb-footer-inner {
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
    }
}

.bb-footer-meta {
    margin: 2rem auto 0;
    max-width: 72rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgb(255 255 255 / 0.1);
    font-size: 0.75rem;
    opacity: 0.75;
}

/* Range sliders */

.boubyan-range {
    -webkit-appearance: none;
    appearance: none;
    position: relative;
    z-index: 1;
    width: 100%;
    height: 1.5rem;
    background: transparent;
    cursor: pointer;
}

.boubyan-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 999px;
    background: var(--bb-red);
    border: 3px solid #fff;
    box-shadow: 0 4px 12px rgb(196 30 58 / 0.4);
}

.boubyan-range::-moz-range-thumb {
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 999px;
    background: var(--bb-red);
    border: 3px solid #fff;
    box-shadow: 0 4px 12px rgb(196 30 58 / 0.4);
}

.calc-slider {
    position: relative;
    margin-top: 0.75rem;
}

.boubyan-range-track {
    pointer-events: none;
    position: absolute;
    inset: 50% 0 auto;
    translate: 0 -50%;
    display: block;
    height: 6px;
    border-radius: 999px;
    background: rgb(196 30 58 / 0.15);
    overflow: hidden;
}

.boubyan-range-fill {
    display: block;
    height: 100%;
    background: var(--bb-red);
    width: 50%;
}

.calc-field + .calc-field {
    margin-top: 2rem;
}

.calc-field__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: 0.9rem;
}

.calc-field__head strong {
    font-size: 1.05rem;
    color: var(--bb-ink);
}

.bb-calc-panel__foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--bb-border);
    font-size: 0.75rem;
    color: var(--bb-muted);
}

.text-center {
    text-align: center;
}

.scroll-mt-24 {
    scroll-margin-top: 6rem;
}