/********** Tarahan Choob RTL & Premium Overrides **********/

:root {
    --primary: #8B6914;
    --primary-light: #B78D65;
    --primary-dark: #5C4A1F;
    --light: #FAF8F5;
    --dark: #1A1612;
    --glass: rgba(255, 255, 255, 0.72);
    --glass-border: rgba(183, 141, 101, 0.28);
    --shadow-soft: 0 8px 32px rgba(26, 22, 18, 0.08);
    --shadow-hover: 0 20px 50px rgba(26, 22, 18, 0.15);
    --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --nav-top-offset: 0px;
    --bs-primary: #8B6914;
    --bs-primary-rgb: 139, 105, 20;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    max-width: 100%;
}

body.site-body,
body {
    font-family: 'Vazirmatn', 'Tahoma', sans-serif;
    background-color: var(--light);
    color: var(--dark);
    overflow-x: hidden;
    max-width: 100%;
    position: relative;
}

/* Bootstrap brand overrides — NO blue */
.btn-primary {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
    color: #fff !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: var(--primary-dark) !important;
    border-color: var(--primary-dark) !important;
    color: #fff !important;
    box-shadow: 0 0 0 0.2rem rgba(139, 105, 20, 0.25) !important;
}

.text-primary {
    color: var(--primary) !important;
}

.border-primary {
    border-color: var(--primary) !important;
}

.spinner-border.text-primary {
    color: var(--primary) !important;
}

a:not(.btn):not(.nav-link):not(.footer-logo):not(.copyright-text a):hover {
    color: var(--primary);
}

h1, h2, h3, h4, h5, h6,
.display-1, .display-5, .section-title {
    font-family: 'Vazirmatn', 'Tahoma', sans-serif;
}

[dir="rtl"] .text-start {
    text-align: right !important;
}

[dir="rtl"] .text-end {
    text-align: left !important;
}

/*** Premium Scrollbar ***/
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 4px;
}

/*** Reveal Animations ***/
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.9s var(--transition-smooth), transform 0.9s var(--transition-smooth);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

.navbar.sticky-top {
    top: 0 !important;
}

/*** Floating Glass Capsule Navbar ***/
.nav-float-wrap {
    position: fixed;
    top: var(--nav-top-offset, 0px);
    left: 0;
    right: 0;
    z-index: 1030;
    padding: 12px 16px 0;
    pointer-events: none;
    max-width: 100%;
    box-sizing: border-box;
    transition: top 0.5s var(--transition-smooth), padding 0.5s var(--transition-smooth);
}

.nav-glass-panel {
    pointer-events: auto;
    position: relative;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0;
    background: var(--glass);
    backdrop-filter: blur(20px) saturate(1.4);
    -webkit-backdrop-filter: blur(20px) saturate(1.4);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    box-shadow: 0 4px 24px rgba(26, 22, 18, 0.07);
    transition: max-width 0.5s var(--transition-smooth),
                border-radius 0.5s var(--transition-smooth),
                box-shadow 0.5s var(--transition-smooth),
                background 0.5s var(--transition-smooth);
    width: 100%;
    box-sizing: border-box;
}

.nav-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    min-height: 56px;
    padding-top: 0.4rem;
    padding-bottom: 0.4rem;
}

/* ── Capsule / dock state on scroll — MOBILE & TABLET ONLY ── */
@media (max-width: 991.98px) {
    .nav-float-wrap.is-capsule {
        padding: 8px 12px 0;
    }

    .nav-float-wrap.is-capsule .nav-glass-panel {
        max-width: min(420px, calc(100% - 20px));
        border-radius: 50px;
        background: rgba(255, 255, 255, 0.9);
        box-shadow:
            0 10px 40px rgba(26, 22, 18, 0.14),
            0 2px 8px rgba(26, 22, 18, 0.06),
            inset 0 1px 0 rgba(255, 255, 255, 0.6);
        border-color: rgba(183, 141, 101, 0.38);
    }

    .nav-float-wrap.is-capsule .nav-inner {
        min-height: 50px;
        padding-top: 0.3rem;
        padding-bottom: 0.3rem;
        flex-wrap: nowrap;
    }

    .nav-float-wrap.is-capsule .navbar-brand img {
        height: 32px;
    }

    .nav-float-wrap.is-capsule .nav-scroll-progress {
        max-width: min(420px, calc(100% - 20px));
        opacity: 0.7;
    }
}

/* ── Desktop: always flat, full-width, flush under topbar ── */
@media (min-width: 992px) {
    .nav-float-wrap {
        padding: 0;
        transition: padding 0.5s var(--transition-smooth);
        will-change: top;
    }

    .nav-float-wrap.is-docked {
        top: 0 !important;
    }

    .nav-glass-panel {
        max-width: none;
        width: 100%;
        margin: 0;
        border-radius: 0;
        border-left: none;
        border-right: none;
        border-top: none;
        border-bottom: 1px solid rgba(183, 141, 101, 0.28);
        background: rgba(255, 255, 255, 0.88);
        backdrop-filter: blur(20px) saturate(1.4);
        -webkit-backdrop-filter: blur(20px) saturate(1.4);
        box-shadow: 0 2px 16px rgba(26, 22, 18, 0.06);
    }

    .nav-scroll-progress {
        max-width: 100%;
        margin: 0;
        border-radius: 0;
    }

    .nav-float-wrap.is-scrolled .nav-glass-panel {
        box-shadow: 0 4px 28px rgba(26, 22, 18, 0.1);
    }

    .nav-float-wrap.is-scrolled .nav-scroll-progress {
        opacity: 1;
    }

    .nav-float-wrap.is-scrolled .nav-inner {
        min-height: 56px;
        padding-top: 0.45rem;
        padding-bottom: 0.45rem;
    }

    .nav-float-wrap.is-scrolled .navbar-brand img {
        height: 38px;
    }

    .nav-float-wrap.is-scrolled .navbar-nav .nav-link {
        padding-top: 0.65rem !important;
        padding-bottom: 0.65rem !important;
    }

    /* Never apply capsule styling on desktop */
    .nav-float-wrap.is-capsule .nav-glass-panel {
        max-width: none;
        width: 100%;
        border-radius: 0;
    }
}

.nav-float-wrap.is-scrolled .navbar-nav .nav-link,
.nav-float-wrap.is-capsule .navbar-nav .nav-link {
    padding-top: 0.55rem !important;
    padding-bottom: 0.55rem !important;
}

@media (max-width: 991.98px) {
    .nav-float-wrap.is-capsule .nav-cta {
        padding-top: 0.35rem !important;
        padding-bottom: 0.35rem !important;
        font-size: 0.86rem;
        border-radius: 50px;
    }
}

.nav-brand-link {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    flex-shrink: 0;
}

.navbar-brand img {
    height: 44px;
    width: auto;
    transition: height 0.4s var(--transition-smooth), transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.03);
}

/* Custom hamburger — always visible & centered in capsule */
.nav-toggler-capsule {
    display: none;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    min-width: 42px;
    min-height: 42px;
    padding: 0;
    margin: 0;
    margin-inline-start: auto;
    border: 1px solid rgba(183, 141, 101, 0.45);
    border-radius: 50%;
    background: rgba(139, 105, 20, 0.1);
    cursor: pointer;
    flex-shrink: 0;
    align-self: center;
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.nav-toggler-capsule:hover,
.nav-toggler-capsule:focus {
    background: rgba(139, 105, 20, 0.18);
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(139, 105, 20, 0.18);
}

.nav-toggler-bars {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 20px;
    height: 16px;
}

.nav-toggler-bars span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--primary-dark);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease, width 0.3s ease;
}

.nav-float-wrap.menu-open .nav-toggler-bars span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-float-wrap.menu-open .nav-toggler-bars span:nth-child(2) {
    opacity: 0;
    width: 0;
}

.nav-float-wrap.menu-open .nav-toggler-bars span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.nav-scroll-progress {
    max-width: 1140px;
    margin: 6px auto 0;
    height: 2px;
    background: rgba(183, 141, 101, 0.12);
    border-radius: 1px;
    overflow: hidden;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.35s ease, max-width 0.5s ease;
}

.nav-scroll-progress::after {
    content: '';
    display: block;
    height: 100%;
    width: var(--scroll-pct, 0%);
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: 1px;
    transition: width 0.12s linear;
}

.nav-glass-panel .navbar-nav .nav-link {
    color: var(--dark);
    font-weight: 500;
    padding: 0.85rem 0.5rem;
    margin-left: 0;
    margin-right: 0;
    transition: color 0.25s ease;
    white-space: nowrap;
}

.nav-glass-panel .navbar-nav .nav-link:hover,
.nav-glass-panel .navbar-nav .nav-link.active {
    color: var(--primary);
}

.nav-glass-panel .navbar-collapse {
    max-width: 100%;
    flex-basis: 100%;
}

.nav-links-list {
    align-items: center;
}

@media (max-width: 991.98px) {
    .nav-toggler-capsule {
        display: flex;
    }

    .nav-inner {
        flex-wrap: nowrap;
        padding-top: 0.35rem;
        padding-bottom: 0.35rem;
    }

    .nav-glass-panel .navbar-collapse {
        position: absolute;
        top: calc(100% + 10px);
        left: 0;
        right: 0;
        z-index: 1040;
        background: rgba(255, 255, 255, 0.97);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 1px solid rgba(183, 141, 101, 0.28);
        border-radius: 24px;
        padding: 0.75rem 1rem 1rem;
        box-shadow: 0 16px 48px rgba(26, 22, 18, 0.14);
        max-height: calc(100vh - 120px);
        overflow-y: auto;
        overflow-x: hidden;
    }

    .nav-float-wrap:not(.is-capsule) .nav-glass-panel .navbar-collapse {
        border-radius: 16px;
    }

    .nav-glass-panel .navbar-nav .nav-link {
        padding: 0.7rem 0.35rem !important;
        white-space: normal;
    }

    .nav-cta {
        display: inline-flex !important;
        width: 100%;
        margin: 0.65rem 0 0 !important;
        justify-content: center;
        border-radius: 50px;
    }
}

@media (min-width: 992px) {
    .nav-glass-panel .navbar-collapse {
        display: flex !important;
        flex-basis: auto;
        flex-grow: 1;
        align-items: center;
        justify-content: flex-end;
    }

    .nav-links-list {
        flex-direction: row;
        margin-inline-end: auto;
    }

    .nav-cta {
        margin-inline-start: 0.75rem;
    }
}

/*** Legacy glass class — kept for compat ***/
.navbar-glass {
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    background: var(--glass) !important;
    box-shadow: var(--shadow-soft);
    transition: all 0.4s var(--transition-smooth);
}

.navbar-glass.scrolled {
    box-shadow: var(--shadow-hover);
}

[dir="rtl"] .navbar .dropdown-toggle::after {
    margin-right: 8px;
    margin-left: 0;
}

[dir="rtl"] .nav-glass-panel .navbar-nav .nav-link {
    margin-left: 1.25rem;
    margin-right: 0;
}

@media (max-width: 991.98px) {
    [dir="rtl"] .nav-glass-panel .navbar-nav .nav-link {
        margin-left: 0;
    }
}

/*** Topbar — high contrast contact info ***/
.topbar {
    background: #14110E !important;
    position: relative;
    z-index: 1001;
    border-bottom: 1px solid rgba(183, 141, 101, 0.35);
}

.topbar-link {
    color: #F8F4EF !important;
    font-weight: 500;
    font-size: 0.9rem;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.topbar-link:hover {
    color: var(--primary-light) !important;
}

.topbar-link i {
    color: var(--primary-light) !important;
}

.topbar-social {
    border-color: rgba(183, 141, 101, 0.6) !important;
    color: var(--primary-light) !important;
}

.topbar-social:hover {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
    color: #fff !important;
}

/*** Hero — strict full-viewport height ***/
.hero-section {
    --hero-h: 100vh;
    --hero-h: 100dvh;
    height: var(--hero-h);
    min-height: var(--hero-h);
    max-height: none;
    padding: 0 !important;
    margin: 0;
    overflow: hidden;
    position: relative;
}

.hero-section .header-carousel {
    height: var(--hero-h) !important;
    min-height: var(--hero-h) !important;
}

.header-carousel .owl-stage-outer,
.header-carousel .owl-stage,
.header-carousel .owl-item,
.header-carousel .owl-carousel-item {
    height: var(--hero-h) !important;
    min-height: var(--hero-h) !important;
}

.header-carousel .owl-carousel-item {
    position: relative;
    overflow: hidden;
    max-height: none !important;
}

.hero-slide-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    transform: none !important;
    image-rendering: auto;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    will-change: auto;
}

.hero-brand-en {
    font-size: 0.45em;
    font-weight: 400;
    letter-spacing: 0.04em;
    opacity: 0.9;
}

.hero-actions {
    gap: 0.75rem;
}

/*** Contact ***/
.contact-section {
    background: linear-gradient(135deg, var(--dark) 0%, #2D2419 100%);
    padding: 4rem 0 4.5rem;
}

.contact-divider {
    margin-right: 0;
    margin-left: auto;
    background: var(--primary-light);
}

.contact-heading {
    font-size: clamp(1.45rem, 2.5vw, 1.85rem);
    font-weight: 600;
    line-height: 1.35;
    margin-bottom: 0.75rem;
}

.contact-lead {
    font-size: 0.92rem;
    line-height: 1.75;
    margin-bottom: 0;
    max-width: 34rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-top: 1.5rem;
}

.contact-card {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 0.85rem 1rem;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0;
    transition: background 0.25s ease, border-color 0.25s ease;
}

.contact-card:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(183, 141, 101, 0.35);
}

.contact-card-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(183, 141, 101, 0.15);
    color: var(--primary-light);
    font-size: 0.95rem;
}

.contact-card-body {
    min-width: 0;
    padding-top: 0.1rem;
}

.contact-card-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 0.25rem;
}

.contact-card-value {
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.92);
    line-height: 1.55;
}

.contact-card-value--address {
    font-size: 0.84rem;
    font-weight: 400;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.82);
}

.contact-link {
    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-link:hover {
    color: var(--primary-light);
}

.contact-phone-sep {
    margin: 0 0.45rem;
    color: rgba(255, 255, 255, 0.35);
}

.contact-form-panel {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.65rem 1.75rem;
}

.contact-form-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.35rem;
}

.contact-form-subtitle {
    font-size: 0.84rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 1.25rem;
    line-height: 1.6;
}

.contact-form .form-control,
.contact-form .form-select {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    border-radius: 0;
    height: 44px;
    padding: 0.45rem 0.9rem;
    font-size: 0.88rem;
    transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.contact-form textarea.form-control {
    height: auto;
    min-height: 108px;
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
    resize: vertical;
}

.contact-form .form-control:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(183, 141, 101, 0.55);
    box-shadow: 0 0 0 3px rgba(183, 141, 101, 0.12);
    color: #fff;
}

.contact-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.38);
    font-size: 0.86rem;
}

.contact-submit {
    min-width: 140px;
    padding: 0.6rem 1.75rem !important;
    font-size: 0.88rem;
}

.contact-form-wrapper {
    position: relative;
}

.form-group {
    position: relative;
}

.form-control.is-valid {
    border-color: rgba(46, 160, 110, 0.6) !important;
}

.form-control.is-invalid {
    border-color: rgba(220, 80, 60, 0.7) !important;
}

.field-error {
    display: block;
    color: #ffb4a8;
    font-size: 0.78rem;
    margin-top: 0.35rem;
    min-height: 1.1em;
}

.form-message {
    padding: 1rem 1.1rem;
    border-radius: 0;
    text-align: right;
    font-size: 0.9rem;
}

.form-message.error {
    background: rgba(220, 80, 60, 0.15);
    color: #ffb4a8;
    border: 1px solid rgba(220, 80, 60, 0.35);
}

.btn-submit {
    position: relative;
    min-width: 160px;
}

.btn-submit:disabled {
    opacity: 0.72;
    cursor: not-allowed;
}

.btn-spinner {
    display: none;
    width: 18px;
    height: 18px;
    margin-right: 8px;
    border: 2px solid rgba(255,255,255,0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: btnSpin 0.7s linear infinite;
    vertical-align: middle;
}

.btn-submit.loading .btn-spinner {
    display: inline-block;
}

@keyframes btnSpin {
    to { transform: rotate(360deg); }
}

.form-success-overlay {
    display: none;
    text-align: center;
    padding: 3rem 1.5rem 2rem;
    color: #fff;
}

.form-success-overlay.visible {
    display: block;
}

.form-success-overlay .success-icon {
    width: 78px;
    height: 78px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.form-success-overlay .success-icon svg {
    width: 36px;
    height: 36px;
    fill: #fff;
}

.form-success-overlay h3 {
    color: #fff;
    font-size: 1.4rem;
    margin-bottom: 0.65rem;
}

.form-success-overlay p {
    color: rgba(255,255,255,0.75);
    max-width: 420px;
    margin: 0 auto;
    line-height: 1.8;
}

/*** Hero Carousel RTL ***/
[dir="rtl"] .header-carousel .owl-dots {
    right: auto;
    left: 16px;
    width: 50px;
    max-width: 50px;
    overflow: hidden;
}

.header-carousel .owl-carousel-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        rgba(20, 16, 12, 0.42) 0%,
        rgba(20, 16, 12, 0.18) 45%,
        rgba(20, 16, 12, 0.08) 100%
    );
    z-index: 1;
    pointer-events: none;
}

.header-carousel .owl-carousel-inner {
    background: transparent !important;
    z-index: 2;
}

.header-carousel .owl-carousel-item img,
.header-carousel .owl-carousel-item .hero-slide-img {
    transform: none !important;
    filter: none !important;
}

.header-carousel .owl-carousel-item.active img,
.header-carousel .owl-carousel-item.active .hero-slide-img {
    transform: none !important;
}

.hero-subtitle {
    font-size: 1.15rem;
    line-height: 2;
    opacity: 1;
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}

.hero-section .display-1 {
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

.btn-premium {
    position: relative;
    overflow: hidden;
    border-radius: 0;
    letter-spacing: 0.5px;
    transition: all 0.4s var(--transition-smooth);
}

.btn-premium::before {
    content: '';
    position: absolute;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: right 0.5s ease;
}

.btn-premium:hover::before {
    right: 100%;
}

.btn-outline-light-premium {
    border: 2px solid rgba(255,255,255,0.8);
    color: #fff;
    background: transparent;
}

.btn-outline-light-premium:hover {
    background: rgba(255,255,255,0.15);
    color: #fff;
    border-color: #fff;
}

/*** Facts / Features ***/
.fact-item {
    border-radius: 0;
    box-shadow: var(--shadow-soft);
    transition: all 0.4s var(--transition-smooth);
    border: 1px solid rgba(183, 141, 101, 0.12);
}

.fact-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.fact-item .fact-icon {
    background: linear-gradient(135deg, #fff 0%, var(--light) 100%);
    box-shadow: var(--shadow-soft);
}

.fact-item .fact-icon i {
    font-size: 2.5rem;
    color: var(--primary);
}

.fact-item:hover .fact-icon {
    background: var(--primary);
}

.fact-item:hover .fact-icon i {
    color: #fff;
}

/*** About RTL ***/
[dir="rtl"] .about-img img:last-child,
[dir="rtl"] .feature-img img:last-child {
    margin: 20% 40% 0 0;
}

[dir="rtl"] .about-img::before,
[dir="rtl"] .feature-img::before {
    left: auto;
    right: 20%;
}

.about-img img,
.feature-img img {
    box-shadow: var(--shadow-hover);
    transition: transform 0.5s ease;
}

.about-img:hover img:first-child {
    transform: translate(-5px, -5px);
}

.experience-badge {
    border-color: var(--primary) !important;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(8px);
}

[dir="rtl"] .experience-badge + .ps-4 {
    padding-right: 1.5rem !important;
    padding-left: 0 !important;
}

/*** Services ***/
.service-item {
    border-radius: 0;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: all 0.5s var(--transition-smooth);
}

.service-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.service-item .service-text {
    backdrop-filter: blur(4px);
}

.service-item .service-icon-wrap {
    width: 64px;
    height: 64px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.service-item:hover .service-icon-wrap {
    transform: scale(1.1) rotate(5deg);
}

[dir="rtl"] .service-item .btn {
    flex-direction: row-reverse;
}

/*** Portfolio Grid ***/
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
    cursor: pointer;
    box-shadow: var(--shadow-soft);
    transition: all 0.5s var(--transition-smooth);
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s var(--transition-smooth);
}

.portfolio-item:hover {
    box-shadow: var(--shadow-hover);
}

.portfolio-item:hover img {
    transform: scale(1.12);
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26, 22, 18, 0.85) 0%, transparent 60%);
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-overlay span {
    color: #fff;
    font-weight: 500;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.portfolio-item:hover .portfolio-overlay span {
    transform: translateY(0);
}

.portfolio-zoom-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.5);
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    opacity: 0;
    transition: all 0.4s ease;
}

.portfolio-item:hover .portfolio-zoom-icon {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}


/*** Footer RTL ***/
[dir="rtl"] .footer .btn.btn-link {
    text-align: right;
}

[dir="rtl"] .footer .btn.btn-link::before {
    content: "\f104";
    margin-left: 10px;
    margin-right: 0;
}

/*** Footer ***/
.site-footer {
    overflow: visible;
    position: relative;
    z-index: 1;
    margin-bottom: 0 !important;
}

.site-footer .footer-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(183, 141, 101, 0.25);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    margin-bottom: 1.25rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.site-footer .footer-logo:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
}

.site-footer .footer-logo-img {
    display: block;
    height: 52px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    filter: none !important;
}

.site-footer .copyright {
    padding: 0;
    margin: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.25);
}

.site-footer .copyright .container {
    padding-top: 1.25rem !important;
    padding-bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px)) !important;
}

.copyright-text {
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.92rem;
    line-height: 1.7;
}

.copyright-text a {
    color: #F5F0EB;
    text-decoration: none;
    transition: color 0.2s ease;
}

.copyright-text a:hover {
    color: var(--primary-light);
}

.copyright-dev-link {
    border-bottom: 1px solid rgba(183, 141, 101, 0.55);
}

.site-footer p {
    color: rgba(255, 255, 255, 0.72);
}

[dir="rtl"] .back-to-top {
    right: auto;
    left: 30px;
    bottom: calc(24px + env(safe-area-inset-bottom, 0px));
    z-index: 99;
}

/*** Mobile sticky conversion bar ***/
.mobile-cta-bar {
    display: none;
}

@media (max-width: 991.98px) {
    body.site-body {
        padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px));
    }

    .mobile-cta-bar {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 9999;
        gap: 0.55rem;
        padding: 0.55rem 0.75rem;
        padding-bottom: calc(0.55rem + env(safe-area-inset-bottom, 0px));
        background: rgba(255, 255, 255, 0.82);
        backdrop-filter: blur(18px) saturate(1.35);
        -webkit-backdrop-filter: blur(18px) saturate(1.35);
        border-top: 1px solid rgba(183, 141, 101, 0.32);
        box-shadow: 0 -10px 36px rgba(26, 22, 18, 0.12);
        pointer-events: auto;
    }

    .mobile-cta-btn {
        flex: 1;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0.4rem;
        min-height: 44px;
        padding: 0.5rem 0.65rem;
        font-size: 0.82rem;
        font-weight: 600;
        text-decoration: none;
        border-radius: 50px;
        transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
        white-space: nowrap;
    }

    .mobile-cta-btn i {
        font-size: 0.85rem;
        opacity: 0.92;
    }

    .mobile-cta-btn:active {
        transform: scale(0.98);
    }

    .mobile-cta-btn--contact {
        color: var(--primary-dark);
        background: rgba(255, 255, 255, 0.65);
        border: 1.5px solid rgba(139, 105, 20, 0.45);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
    }

    .mobile-cta-btn--contact:hover,
    .mobile-cta-btn--contact:focus {
        color: var(--primary-dark);
        background: rgba(255, 255, 255, 0.9);
        border-color: var(--primary);
    }

    .mobile-cta-btn--wizard {
        color: #fff;
        background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
        border: 1.5px solid rgba(139, 105, 20, 0.5);
        box-shadow: 0 4px 16px rgba(139, 105, 20, 0.28);
    }

    .mobile-cta-btn--wizard:hover,
    .mobile-cta-btn--wizard:focus {
        color: #fff;
        box-shadow: 0 6px 20px rgba(139, 105, 20, 0.38);
    }

    [dir="rtl"] .back-to-top {
        bottom: calc(78px + env(safe-area-inset-bottom, 0px));
    }
}

[dir="rtl"] .footer .position-absolute.end-0 {
    right: auto !important;
    left: 0 !important;
}

[dir="rtl"] .footer .pe-5 {
    padding-left: 3rem !important;
    padding-right: 1rem !important;
}

/*** Section dividers ***/
.section-divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    margin: 0 auto 1.5rem;
}

.bg-premium-light {
    background: linear-gradient(180deg, #fff 0%, var(--light) 100%);
}

/*** Lightbox ***/
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.92);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    box-shadow: 0 25px 80px rgba(0,0,0,0.5);
}

.lightbox-close {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
    background: none;
    border: none;
}

.lightbox-close:hover {
    opacity: 1;
}

[dir="rtl"] .lightbox-close {
    left: auto;
    right: 1.5rem;
}

@media (max-width: 768px) {
    .owl-carousel-inner {
        background: transparent !important;
    }

    .header-carousel .owl-carousel-item {
        position: relative;
        min-height: 100vh !important;
        min-height: 100dvh !important;
        height: 100vh !important;
        height: 100dvh !important;
    }

    .header-carousel .owl-carousel-item img,
    .header-carousel .owl-carousel-item .hero-slide-img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
        transform: none !important;
    }

    .display-1 {
        font-size: 2rem !important;
        line-height: 1.25;
    }

    .hero-brand-en {
        font-size: 0.5em;
    }

    .header-carousel .owl-carousel-item,
    .header-carousel .owl-stage-outer,
    .header-carousel .owl-stage,
    .header-carousel .owl-item {
        min-height: 100vh !important;
        min-height: 100dvh !important;
        height: 100vh !important;
        height: 100dvh !important;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        line-height: 1.75;
        margin-bottom: 1.5rem !important;
        padding-bottom: 0 !important;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
        text-align: center;
    }

    [dir="rtl"] .header-carousel .owl-dots {
        left: 12px;
        width: 48px;
    }

    .header-carousel .owl-dots .owl-dot {
        width: 38px;
        height: 38px;
    }

    .header-carousel .owl-dots .owl-dot.active {
        width: 48px;
        height: 48px;
    }

    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .navbar-brand img {
        height: 40px;
    }

    .topbar-link {
        font-size: 0.8rem;
    }

    [dir="rtl"] .about-img img:last-child,
    [dir="rtl"] .feature-img img:last-child {
        margin: 15% 30% 0 0;
    }

    .about-img,
    .feature-img {
        min-height: 320px;
        margin-bottom: 1rem;
    }

    .contact-card-value--address {
        font-size: 0.8rem;
    }

    .contact-form-panel {
        padding: 1.25rem 1.15rem;
    }

    .contact-section {
        padding: 3rem 0 3.5rem;
    }

    .display-5 {
        font-size: 1.75rem;
    }

    .container-xxl {
        overflow-x: hidden;
        max-width: 100%;
    }

    .nav-float-wrap {
        padding-left: 10px;
        padding-right: 10px;
    }

    .nav-float-wrap.is-capsule {
        padding-left: 8px;
        padding-right: 8px;
    }

    .nav-glass-panel {
        max-width: 100%;
    }

    [dir="rtl"] .header-carousel .owl-dots {
        left: 8px;
        width: 42px;
    }

    .container-fluid {
        max-width: 100%;
        overflow-x: hidden;
    }
}

@media (max-width: 400px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .topbar-link {
        font-size: 0.75rem;
        padding-left: 0.25rem !important;
        padding-right: 0.25rem !important;
    }
}
