@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;800;900&display=swap');

:root {
    --primary: #c4a87c;
    --primary-dark: #a38960;
    --text-main: #2c2825;
    --text-light: #666;
    --bg-body: #fdfbf7;
    --bg-white: #ffffff;
    --bg-checkered: #f4f4f4;

    --font-main: 'Tajawal', sans-serif;

    --transition: all 0.3s ease;
    --shadow-sm: 0 5px 15px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* Floating Order pill */
.order-now {
    position: fixed;
    bottom: 26px;
    left: 22px;
    background: linear-gradient(90deg, #c4a87c 0%, #c4a87c 100%);
    color: #fff;
    border: none;
    padding: 10px 16px;
    border-radius: 999px;
    box-shadow: 0 8px 24px rgba(255, 123, 24, 0.18);
    display: inline-flex;
    gap: 8px;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    line-height: 1;
    z-index: 9999;
    text-decoration: none;
    transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

/* Hide floating buttons when mobile menu is open */
body.no-scroll .order-now,
body.no-scroll .back-to-top {
    opacity: 0;
    pointer-events: none;
}

.order-now:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(255, 123, 24, 0.22);
}

.order-now:active {
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .order-now {
        /* bottom: 82px; */
        left: 14px;
        padding: 9px 12px;
        font-size: 13px
    }
}

/* Language-aware positions: place the floating controls depending on page language/dir */
html:lang(en) .order-now,
html[dir="ltr"] .order-now {
    right: 22px;
    left: auto;
}

html:lang(en) .back-to-top,
html[dir="ltr"] .back-to-top {
    left: 22px;
    right: auto;
}

html:lang(ar) .order-now,
html[dir="rtl"] .order-now {
    left: 22px;
    right: auto;
}

html:lang(ar) .back-to-top,
html[dir="rtl"] .back-to-top {
    right: 22px;
    left: auto;
}

@media (max-width: 768px) {

    html:lang(en) .order-now,
    html[dir="ltr"] .order-now {
        right: 14px;
        left: auto;
    }

    html:lang(en) .back-to-top,
    html[dir="ltr"] .back-to-top {
        left: 14px;
        right: auto;
    }

    html:lang(ar) .order-now,
    html[dir="rtl"] .order-now {
        left: 14px;
        right: auto;
    }

    html:lang(ar) .back-to-top,
    html[dir="rtl"] .back-to-top {
        right: 14px;
        left: auto;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

body.no-scroll {
    overflow: hidden;
}


/* Utilities */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.btn {
    display: inline-block;
    padding: 12px 35px;
    background-color: var(--primary);
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    /* Slight radius based on site */
    font-weight: 700;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: #fff;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--text-main);
    margin-bottom: 0.5rem;
    font-weight: 800;
}

/* Custom decorated section title (lines + diamond) to match reference */
.section-title {
    position: relative;
}

.section-title .section-decor {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 1rem;
}

.section-title .decor-line {
    display: block;
    width: 90px;
    height: 1px;
    background: linear-gradient(90deg, rgba(196, 168, 124, 0.2), rgba(196, 168, 124, 0.6), rgba(196, 168, 124, 0.2));
}

.section-title .decor-diamond {
    width: 12px;
    height: 12px;
    display: inline-block;
    background: var(--primary);
    transform: rotate(45deg);
    border-radius: 2px;
    box-shadow: 0 6px 18px rgba(196, 168, 124, 0.12);
}

.section-title .subtitle {
    display: block;
    text-transform: uppercase;
    letter-spacing: 8px;
    font-weight: 700;
    color: #7a766f;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.section-title h2 {
    font-size: 2.25rem;
    letter-spacing: 0.5px;
    font-weight: 900;
    color: var(--text-main);
    margin: 0;
}

.bg-\[\#C4A87C\]\/50 {
    background-color: #c4a87c80;
    background-color: lab(70.577% 5.94294 26.7627 / .5);
}

.w-12 {
    width: calc(var(--spacing) * 12);
}

.h-px {
    height: 1px;
}

.mx-auto {
    margin-inline: auto;
}

/* Premium Section Title based on Image */
.section-title-premium {
    text-align: center;
    margin-bottom: 60px;
}

.section-title-premium .v-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to top, #c4a87c, transparent);
    margin: 0 auto 30px;
}

.section-title-premium h2 {
    color: #fff;
    font-size: 1.85rem;
    font-weight: 500;
    margin: 0;
    letter-spacing: 1px;
    line-height: 1.2;
}

.section-title-premium .h-line {
    width: 40px;
    height: 1px;
    background: #c4a87c;
    margin: 15px auto 0;
    opacity: 1;
}

@media (max-width: 768px) {
    .section-title-premium h2 {
        font-size: 1.85rem;
    }

    .section-title-premium .v-line {
        height: 40px;
    }
}

*,
:after,
:before,
::backdrop {
    box-sizing: border-box;
    border: 0 solid;
    margin: 0;
    padding: 0;
}

@media (max-width: 991px) {
    .section-title .decor-line {
        width: 60px;
    }

    .section-title h2 {
        font-size: 2.2rem;
    }

    .section-title .subtitle {
        letter-spacing: 6px;
    }
}

.section-title span {
    color: var(--primary);
    font-weight: 700;
    font-size: 1.1rem;
    display: block;
    margin-bottom: 0.5rem;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    transition: var(--transition);
    background: transparent;
}

header.scrolled {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    padding: 0.8rem 0;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* RTL Specific Header Layout */
body[dir="rtl"] header .container {
    flex-direction: row;
}

.logo img {
    height: 50px;
    width: auto;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 0.5rem;
}

nav a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    font-size: 1.05rem;
    transition: var(--transition);
    position: relative;
}

/* Make nav links pill-shaped on larger screens */
nav a {
    /* display: inline-flex; */
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    /* padding: 8px 18px; */
    border-radius: 999px;
    border: 1px solid transparent;
}

/* Transparent header: white pills with subtle border */
header:not(.scrolled) nav a {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

/* Active / hover state */
nav a.active,
nav a:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary);
    transform: scaleX(0);
    transition: var(--transition);
    transform-origin: left;
}

body[dir="rtl"] nav a::after {
    transform-origin: right;
}

nav a:hover,
nav a.active {
    color: var(--primary);
}

nav a:hover::after,
nav a.active::after {
    transform: scaleX(1);
}



header:not(.scrolled) .phone-link {
    color: #fff;
}

header:not(.scrolled) .mobile-menu-btn {
    color: #fff;
}

header:not(.scrolled) .header-actions .btn {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.18);
}

header:not(.scrolled) .btn.btn-outline {
    color: #fff;
    border-color: #fff;
}

header:not(.scrolled) nav a:hover,
header:not(.scrolled) nav a.active {
    color: var(--primary);
}

/* Revert to dark colors when header has scrolled class */
header.scrolled nav a,
header.scrolled .phone-link,
header.scrolled .mobile-menu-btn {
    color: var(--text-main);
}

header.scrolled .btn.btn-outline {
    color: var(--primary);
    border-color: var(--primary);
}

/* Header additional helpers */
.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.phone-link {
    color: var(--text-main);
    font-weight: 700;
    font-size: 0.95rem;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.lang-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 100px;
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

header.scrolled .lang-pill {
    background: rgba(196, 168, 124, 0.1);
    color: var(--primary);
    border-color: rgba(196, 168, 124, 0.2);
}

.lang-pill:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}


/* Mobile adjustments for header elements */
@media (max-width: 991px) {
    .header-left {
        display: none;
    }

    header .container {
        padding: 0 1rem;
    }

    .logo img {
        height: 40px;
    }

    .header-actions {
        margin-right: 50px;
        /* Spacer for the menu button */
    }

    body[dir="rtl"] .header-actions {
        margin-right: 0;
        margin-left: 50px;
    }

    .lang-pill span {
        display: none;
        /* Hide text on small mobiles if needed, or keep it */
    }
}


/* Mobile language link inside nav */
.lang-mobile {
    display: none;
}

@media (max-width: 991px) {

    /* Position mobile menu button and language button near each other */
    .mobile-menu-btn {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        right: 16px;
    }

    body[dir="rtl"] .mobile-menu-btn {
        right: auto;
        left: 16px;
    }

    .header-actions {
        display: flex;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        right: 30px;
    }

    body[dir="rtl"] .header-actions {
        right: auto;
        left: 30px;
    }

    .header-actions .lang-switch a {
        padding: 6px 12px;
        border-radius: 30px;
        border: 2px solid var(--primary);
        color: var(--primary);
        background: transparent;
        font-weight: 700;
    }

    /* make the mobile nav links more button-like space-wise */
    nav ul {
        padding: 2rem;
    }

    nav ul li {
        margin: 0.6rem 0;
    }

    /* header:not(.scrolled) nav a {
        color: #000 !important;
    } */
    header:not(.scrolled) nav a {
        color: #000000 !important;
    }
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    color: var(--text-main);
    cursor: pointer;
    z-index: 1001;

    /* Language pill (header + mobile) */
    .lang-btn {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        padding: 8px 18px;
        border-radius: 999px;
        /* translucent light pill for dark header */
        background: rgba(255, 255, 255, 0.08);
        color: #ffffff;
        text-decoration: none;
        border: 1px solid rgba(255, 255, 255, 0.12);
        box-shadow: 0 12px 34px rgba(0, 0, 0, 0.45);
        backdrop-filter: blur(6px) saturate(120%);
        -webkit-backdrop-filter: blur(6px) saturate(120%);
        font-weight: 700;
        font-size: 0.95rem;
    }

    .lang-btn .lang-icon {
        color: currentColor;
        width: 18px;
        height: 18px;
        opacity: 0.95
    }

    .lang-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5);
        background: rgba(255, 255, 255, 0.12);
    }

    .lang-btn.mobile {
        padding: 6px 12px;
        font-size: 0.9rem;
        border-radius: 999px;
    }

    /* Flip icon/text ordering for RTL */
    html[dir="rtl"] .lang-btn {
        flex-direction: row-reverse;
    }

    html[dir="rtl"] .lang-btn .lang-icon {
        margin-left: 0;
        margin-right: 6px;
    }

    /* Mobile menu tweak: ensure lang-mobile displays inline in menu */
    .lang-mobile a.lang-btn {
        display: inline-flex;
        align-items: center;
    }

    /* Strong overrides: ensure floating controls flip according to html lang/dir
   Placed at file end to override earlier misplaced rules (uses !important)
*/
    html[dir="ltr"] .order-now,
    html:lang(en) .order-now {
        right: 22px !important;
        left: auto !important;
    }

    html[dir="ltr"] .back-to-top,
    html:lang(en) .back-to-top {
        left: 22px !important;
        right: auto !important;
    }

    html[dir="rtl"] .order-now,
    html:lang(ar) .order-now {
        left: 22px !important;
        right: auto !important;
    }

    html[dir="rtl"] .back-to-top,
    html:lang(ar) .back-to-top {
        right: 22px !important;
        left: auto !important;
    }

    @media (max-width: 768px) {

        html[dir="ltr"] .order-now,
        html:lang(en) .order-now {
            right: 14px !important;
            left: auto !important;
        }

        html[dir="ltr"] .back-to-top,
        html:lang(en) .back-to-top {
            left: 14px !important;
            right: auto !important;
        }

        html[dir="rtl"] .order-now,
        html:lang(ar) .order-now {
            left: 14px !important;
            right: auto !important;
        }

        html[dir="rtl"] .back-to-top,
        html:lang(ar) .back-to-top {
            right: 14px !important;
            left: auto !important;
        }
    }
}

/* Nav mobile elements hidden on desktop */
.nav-mobile-header,
.nav-mobile-footer {
    display: none;
}

/* Mobile adjustments for header elements */
@media (max-width: 991px) {
    .header-left {
        display: none;
    }

    header .container {
        padding: 0 1rem;
    }

    .logo img {
        height: 40px;
    }

    /* Hide desktop language pill on mobile */
    .header-actions {
        display: none !important;
    }

    /* Mobile Menu Button (Hamburger) */
    .mobile-menu-btn {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 20px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 1001;
        position: absolute;
        top: 50%;
        right: 1.5rem;
        transform: translateY(-50%);
    }

    body[dir="rtl"] .mobile-menu-btn {
        right: auto;
        left: 1.5rem;
    }

    .mobile-menu-btn span {
        width: 100%;
        height: 2px;
        background-color: var(--text-main);
        border-radius: 10px;
        transition: all 0.3s cubic-bezier(0.68, -0.6, 0.32, 1.6);
    }

    header:not(.scrolled) .mobile-menu-btn span {
        background-color: #fff;
    }

    .mobile-menu-btn.active span:nth-child(1) {
        transform: translateY(9px) rotate(135deg);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
        transform: translateX(-20px);
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-135deg);
    }

    .mobile-menu-btn.active span {
        background-color: var(--text-main) !important;
    }

    /* Mobile Nav Drawer */
    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        max-width: 100%;
        height: 100vh;
        background: #fff;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        padding: 0;
        transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        z-index: 9999;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
        overflow-y: auto;
    }

    body[dir="ltr"] nav {
        right: auto;
        left: -100%;
        transition: left 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    }

    nav.active {
        right: 0;
    }

    body[dir="ltr"] nav.active {
        left: 0;
    }

    /* Mobile Nav Header (Logo + Close Button) */
    .nav-mobile-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 1.5rem 2rem;
        border-bottom: 1px solid #f0f0f0;
        position: relative;
    }

    .nav-close-btn {
        background: none;
        border: none;
        color: var(--text-main);
        cursor: pointer;
        padding: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
        /* position: absolute; */
        left: 1.5rem;
    }

    /* RTL: move close button to right */
    body[dir="rtl"] .nav-close-btn {
        left: auto;
        right: 1.5rem;
    }

    .nav-close-btn:hover {
        opacity: 0.7;
    }

    .nav-logo {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .nav-logo img {
        height: 45px;
        width: auto;
    }

    /* Language button in header */
    .lang-circle-btn-header {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        background: #f4f4f4;
        border-radius: 50%;
        color: var(--text-main);
        transition: all 0.3s ease;
    }

    .lang-circle-btn-header:hover {
        background: #e0e0e0;
    }

    /* Navigation List */
    nav ul {
        display: flex;
        flex-direction: column;
        padding: 1.5rem 2rem;
        gap: 0;
        margin: 0;
        width: 100%;
        flex: 1;
    }

    nav ul li {
        width: 100%;
        margin: 0;
        opacity: 0;
        transform: translateY(10px);
        transition: all 0.4s ease;
        border-bottom: 1px solid #f4f4f4;
    }

    nav ul li a {
        display: block;
        padding: 1.2rem 0;
        font-size: 1.1rem;
        font-weight: 500;
        color: var(--text-main);
        text-align: right;
        border-radius: 0;
        background: transparent !important;
        border: none !important;
        text-decoration: none;
        transition: color 0.3s ease;
    }

    /* LTR: align left */
    body[dir="ltr"] nav ul li a {
        text-align: left;
    }

    nav ul li a:hover,
    nav ul li a.active {
        color: var(--primary) !important;
        background: transparent !important;
        border: none !important;
    }

    /* Staggered animation */
    nav.active ul li {
        opacity: 1;
        transform: translateY(0);
    }

    nav.active ul li:nth-child(1) {
        transition-delay: 0.1s;
    }

    nav.active ul li:nth-child(2) {
        transition-delay: 0.15s;
    }

    nav.active ul li:nth-child(3) {
        transition-delay: 0.2s;
    }

    nav.active ul li:nth-child(4) {
        transition-delay: 0.25s;
    }

    nav.active ul li:nth-child(5) {
        transition-delay: 0.3s;
    }

    /* Mobile Footer (Language Button) */
    .nav-mobile-footer {
        display: flex;
        justify-content: flex-start;
        /* padding-left: 2rem; */
        /* padding-right: 2rem; */
        border-top: 1px solid #f0f0f0;
    }

    /* RTL: move to right */
    body[dir="rtl"] .nav-mobile-footer {
        justify-content: flex-start;
    }

    body[dir="ltr"] .nav-mobile-footer {
        justify-content: flex-end;
    }

    .lang-circle-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 48px;
        height: 48px;
        background: #f4f4f4;
        border-radius: 50%;
        color: var(--text-main);
        transition: all 0.3s ease;
    }

    .lang-circle-btn:hover {
        background: #e0e0e0;
    }
}


/* Hero */
.hero {
    height: 90vh;
    min-height: 600px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-size: cover;
    background-position: center;
    /* Fallback bg if video fails */
    background-color: #f0f0f0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
    max-width: 900px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.hero p {
    font-size: 1.75rem;
    margin-bottom: 2.5rem;
    /* opacity: 0.9; */
}

/* About Section */
.about {
    padding: 6rem 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-img img {
    width: 100%;
    border-radius: 10px;
    box-shadow: var(--shadow-md);
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.about-text p {
    color: var(--text-light);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* Work Steps - Premium Design */
.steps {
    padding: 8rem 0;
    background-color: #FAFAFA;
    /* Very light off-white */
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
}

@media (max-width: 991px) {
    .steps {
        padding: 5rem 0;
    }

    .steps-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.step-wrapper {
    width: 100%;
}

.step-card-modern {
    position: relative;
    height: 329px;
    width: 100%;
    border-radius: 32px;
    overflow: hidden;
    background: #1a1a1a;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.step-card-modern:hover {
    transform: translateY(-10px);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.2);
}

.step-img-new {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.step-img-new img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.step-card-modern:hover .step-img-new img {
    transform: scale(1.1);
}

.step-overlay-new {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
            rgba(0, 0, 0, 0.95) 0%,
            rgba(0, 0, 0, 0.5) 40%,
            rgba(0, 0, 0, 0.1) 70%,
            transparent 100%);
    z-index: 1;
}

.step-body-new {
    position: relative;
    z-index: 2;
    height: 90%;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.step-huge-num {
    position: absolute;
    top: 2rem;
    left: 2.5rem;
    font-size: 8rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.12);
    line-height: 1;
    letter-spacing: -2px;
    pointer-events: none;
    font-family: 'Inter', sans-serif;
    /* Using a cleaner font for large numbers if available */
}

/* RTL adjustment for huge number position if needed */
body[dir="rtl"] .step-huge-num {
    left: 2.5rem;
    /* Keep it on the left as in the image even for RTL cards */
}

.step-content-box {
    text-align: right;
    max-width: 90%;
}

body[dir="ltr"] .step-content-box {
    text-align: left;
}

.step-small-num {
    display: block;
    font-size: 1rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.step-title-new {
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.step-desc-new {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 768px) {
    .step-card-modern {
        height: 400px;
        border-radius: 24px;
    }

    .step-body-new {
        padding: 2rem;
    }

    .step-huge-num {
        font-size: 5rem;
        top: 1.5rem;
        left: 1.5rem;
    }

    .step-title-new {
        font-size: 1.8rem;
    }

    .step-desc-new {
        font-size: 1rem;
    }
}


/* Kitchen Guide (Tabs Re-styled) */
.kitchen-guide.dark-theme {
    padding: 8rem 0;
    background: #141210;
    color: #fff;
}

.kitchen-guide.dark-theme .section-title h2 {
    color: #fff;
    font-size: 1.875rem;
}

.kitchen-guide.dark-theme .section-title .subtitle {
    color: var(--primary);
    opacity: 0.9;
}

.guide-tabs-container {
    max-width: 1000px;
    margin: 0 auto 5rem;
}

.guide-tabs {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.guide-tab-item {
    cursor: pointer;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    flex: 1 1 120px;
    max-width: 160px;
}

.guide-tab-img {
    width: 100%;
    aspect-ratio: 16/10;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid transparent;
    transition: all 0.4s ease;
    background: rgba(255, 255, 255, 0.05);
}

.guide-tab-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    transition: all 0.4s ease;
}

.guide-tab-label {
    font-size: 0.95rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
}

.guide-tab-item.active .guide-tab-img,
.guide-tab-item:hover .guide-tab-img {
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(196, 168, 124, 0.3);
}

.guide-tab-item.active .guide-tab-img img,
.guide-tab-item:hover .guide-tab-img img {
    opacity: 1;
    transform: scale(1.1);
}

.guide-tab-item.active .guide-tab-label,
.guide-tab-item:hover .guide-tab-label {
    color: var(--primary);
}

.guide-content {
    margin-left: 40px;
    margin-right: 40px;
    display: none;
    animation: fadeIn 0.5s ease;
}

.guide-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.guide-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.guide-card img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    display: block;
}

.guide-floating-box {
    position: absolute;
    top: 50%;
    right: 40px;
    transform: translateY(-50%);
    width: 380px;
    background: rgba(30, 27, 24, 0.75);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 3rem 2.5rem;
    color: #fff;
    z-index: 5;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

body[dir="ltr"] .guide-floating-box {
    right: auto;
    left: 40px;
}

.guide-style-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    text-align: right;
}

body[dir="ltr"] .guide-style-title {
    text-align: left;
}

.guide-divider {
    width: 40px;
    height: 1px;
    background: var(--primary);
    margin: 1.5rem 0 2rem auto;
    /* For RTL */
}

body[dir="ltr"] .guide-divider {
    margin: 1.5rem auto 2rem 0;
}

.guide-details {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.guide-detail-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: right;
}

body[dir="ltr"] .guide-detail-item {
    text-align: left;
}

.detail-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

.detail-value {
    font-size: 1.1rem;
    font-weight: 500;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.95);
}

@media (max-width: 991px) {
    .guide-tabs {
        gap: 0.75rem;
    }

    .guide-tab-item {
        flex: 1 1 calc(33.33% - 1rem);
        max-width: none;
    }

    .guide-tab-label {
        font-size: 0.85rem;
    }

    .kitchen-guide.dark-theme .section-title h2 {
        font-size: 2.5rem;
    }

    .guide-card img {
        height: 500px;
    }

    .guide-floating-box {
        position: static;
        width: 100%;
        transform: none;
        border-radius: 0;
        padding: 2rem;
    }

    .guide-style-title {
        font-size: 1.75rem;
    }
}


/* Materials */
.materials {
    padding: 6rem 0;
    background: var(--bg-white);
}

/* Branch / Location */
.branch {
    padding: 6rem 0;
    background: var(--bg-body);
}

.branch-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    margin-top: 30px;
}

.branch-image img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    border-radius: 10px;
}

.branch-content h3 {
    margin-bottom: 0.5rem;
    font-size: 1.6rem;
}

.branch-address,
.branch-hours {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.branch-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

@media (max-width: 991px) {
    .branch-card {
        grid-template-columns: 1fr;
    }

    .branch-image img {
        height: 690px;
    }
}

/* Combined About + Branch styles */
.about-branch {
    padding: 6rem 0;
    background: var(--bg-body);
}

.about-branch-grid {
    display: grid;
    grid-template-columns: 1fr 560px;
    gap: 2.5rem;
    align-items: start;
}

.about-branch .about-img img {
    width: 100%;
    height: 840px;
    /* height: 100%; */
    max-height: 840px;
    object-fit: cover;
    border-radius: 12px;
}

.about-branch-content .about-text-block {
    color: var(--text-light);
    margin: 1rem 0 0.5rem 0;
    line-height: 1.8;
}

/* Step Modal Styles */
.step-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.step-modal.open {
    display: flex;
}

.step-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.step-modal-card {
    position: relative;
    width: min(900px, 94%);
    max-height: 90vh;
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
    z-index: 2001;
    display: flex;
    flex-direction: column;
    animation: modalScaleUp 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

@keyframes modalScaleUp {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.step-modal-close {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 2010;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.step-modal-close:hover {
    transform: rotate(90deg);
    background: #fff;
}

body[dir="rtl"] .step-modal-close {
    left: auto;
    right: 20px;
}

.step-modal-media {
    position: relative;
    width: 100%;
    height: 400px;
    min-height: 300px;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.step-modal-media img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.step-modal-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.2) 50%, transparent 100%);
    z-index: 1;
}

.step-modal-number-bg {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 150px;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.1);
    line-height: 0.8;
    pointer-events: none;
    z-index: 2;
}

body[dir="rtl"] .step-modal-number-bg {
    right: auto;
    left: 30px;
}

.step-modal-header-content {
    position: absolute;
    bottom: 30px;
    right: 40px;
    z-index: 3;
    text-align: right;
}

body[dir="ltr"] .step-modal-header-content {
    right: auto;
    left: 40px;
    text-align: left;
}

.step-modal-badge {
    width: 44px;
    height: 44px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.9rem;
    margin-bottom: 15px;
    box-shadow: 0 4px 10px rgba(196, 168, 124, 0.3);
    margin-left: auto;
    /* For RTL */
}

body[dir="ltr"] .step-modal-badge {
    margin-left: 0;
    margin-right: auto;
}

.step-modal-title {
    font-size: 3rem;
    font-weight: 900;
    color: #fff;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.step-modal-body {
    padding: 2.5rem 3rem;
    background: #fff;
    overflow-y: auto;
    flex: 1;
}

.step-modal-lead {
    font-size: 1.25rem;
    color: #8b8076;
    font-weight: 600;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.step-modal-desc {
    font-size: 1.1rem;
    color: var(--text-main);
    line-height: 1.8;
    opacity: 0.9;
}

@media (max-width: 991px) {
    .step-modal-media {
        height: 300px;
    }

    .step-modal-title {
        font-size: 2.25rem;
    }

    .step-modal-number-bg {
        font-size: 100px;
    }

    .step-modal-body {
        padding: 1.5rem 2rem;
    }

    .step-modal-header-content {
        bottom: 20px;
        right: 20px;
    }

    body[dir="ltr"] .step-modal-header-content {
        left: 20px;
    }
}


.branch-card.premium {
    background: #FFFAF1;
    border-radius: 40px;
    padding-left: 3rem;
    padding-right: 3rem;
    box-shadow: 0 30px 70px rgba(16, 24, 32, 0.04);
    border: 1px solid rgba(196, 168, 124, 0.12);
    max-width: 900px;
    margin: 1rem auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.branch-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 15px;
    text-align: right;
    /* margin-bottom: 2.5rem; */
}

.branch-tag {
    color: #bfa37e;
    font-weight: 700;
    font-size: 1.25rem;
}

.branch-icon-box {
    width: 64px;
    height: 64px;
    background: #bfa37e;
    color: #fff;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    box-shadow: 0 10px 25px rgba(191, 163, 126, 0.2);
}

.branch-body {
    text-align: right;
    /* margin-bottom: 4rem; */
}

body[dir="ltr"] .branch-body {
    text-align: left;
}

.branch-title {
    font-size: 1.25rem;
    font-weight: 900;
    color: #1a1a1a;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.branch-subtitle {
    font-size: 1.1rem;
    color: #8b8076;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.branch-time {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 12px;
    color: #8b8076;
    font-size: 1.25rem;
    font-weight: 600;
}

.branch-time i {
    font-size: 1.8rem;
    color: #bfa37e;
}

.branch-footer {
    border-top: 1.5px solid rgba(196, 168, 124, 0.1);
    padding-top: 1rem;
}

.branch-btns-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.branch-btn-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 2rem 1rem;
    background: #fff;
    border: 1px solid rgba(196, 168, 124, 0.15);
    border-radius: 24px;
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.1rem;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.02);
}

.branch-btn-item i {
    font-size: 1.6rem;
    color: #bfa37e;
    transition: all 0.3s ease;
}

.branch-btn-item:hover {
    background: #bfa37e;
    color: #fff;
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(191, 163, 126, 0.25);
    border-color: #bfa37e;
}

.branch-btn-item:hover i {
    color: #fff;
}

@media (max-width: 991px) {
    .branch-card.premium {
        padding: 1rem;
        margin: 1rem auto;
    }

    .branch-title {
        font-size: 2.5rem;
    }

    .branch-subtitle {
        font-size: 1.25rem;
    }

    .branch-btns-grid {
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .branch-title {
        font-size: 2rem;
    }

    .branch-btns-grid {
        grid-template-columns: 1fr;
    }

    .branch-btn-item {
        flex-direction: row;
        justify-content: center;
        padding: 1.25rem;
        gap: 15px;
    }
}



/* About card styling to match reference */
.about-card {
    background: #fff;
    border-radius: 18px;
    padding: 2rem;
    box-shadow: 0 8px 30px rgba(16, 24, 32, 0.06);
    border: 1px solid rgba(196, 168, 124, 0.06);
}

.about-card .section-title span {
    color: rgba(196, 168, 124, 0.7);
    font-weight: 700;
    display: block;
    margin-bottom: 0.25rem;
}

.about-card .section-title h2 {
    font-size: 2.6rem;
    margin-bottom: 0.75rem;
    color: var(--text-main);
    font-weight: 800;
}

.about-card .about-text-block {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.about-img img {
    border-radius: 18px;
    border: 6px solid rgba(196, 168, 124, 0.04);
    box-shadow: 0 10px 30px rgba(16, 24, 32, 0.06);
}


/* About features (three rounded cards) */
.about-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 1.75rem;
}

.feature-card {
    /* background: linear-gradient(180deg, rgba(240, 239, 239, 0.65), rgba(175, 112, 112, 0.55)); */
    /* background: linear-gradient(180deg,rgb(255 255 255 / 65%), rgb(191 164 164 / 55%)) */
    background: linear-gradient(rgb(255 255 255 / 65%), rgb(191 164 164 / 55%));
    border-radius: 18px;
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: #000000;
}

/* Hover effects to match original site (subtle lift, shadow and primary border) */
.feature-card {
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    cursor: default;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(16, 24, 32, 0.12);
    border-color: rgba(196, 168, 124, 0.28);
}

.feature-card:hover .feature-icon {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 16px 36px rgba(196, 168, 124, 0.14);
}

.feature-icon,
.feature-icon svg {
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

/* Add hover for about-card, branch-card and compact branch */
.about-card,
.branch-card,
.branch-card.compact {
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.about-card:hover,
.branch-card:hover,
.branch-card.compact:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(16, 24, 32, 0.12);
    border-color: rgba(196, 168, 124, 0.18);
}

/* Ensure project items have clear pointer and consistent hover overlay */
.project-item {
    cursor: pointer;
    transition: transform 0.6s ease, box-shadow 0.35s ease;
}

.project-item:hover {
    box-shadow: 0 20px 50px rgba(16, 24, 32, 0.12);
}

/* Ensure material and other cards use the same lift */
.material-card,
.about-card,
.branch-card,
.feature-card {
    will-change: transform;
}


.feature-icon {
    width: 72px;
    height: 72px;
    border-radius: 14px;
    background: linear-gradient(180deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem auto;
    font-size: 1.25rem;
    box-shadow: 0 8px 20px rgba(196, 168, 124, 0.16);
}

.feature-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.15rem;
    color: #0c0c0c;
}

.feature-card p {
    color: rgba(11, 11, 11, 0.85);
    margin: 0;
}

.blur-2xl {
    --tw-blur: blur(var(--blur-2xl));
    filter: var(--tw-blur, ) var(--tw-brightness, ) var(--tw-contrast, ) var(--tw-grayscale, ) var(--tw-hue-rotate, ) var(--tw-invert, ) var(--tw-saturate, ) var(--tw-sepia, ) var(--tw-drop-shadow, );
}

@media (max-width: 991px) {
    .about-features {
        grid-template-columns: 1fr;
    }
}

.branch-card.compact .branch-content h3 {
    margin: 0 0 0.25rem 0;
    font-size: 1.1rem;
}

.branch-card.compact .branch-content p {
    margin: 0;
    color: var(--text-light);
    font-size: 1.6rem;
}

.branch-card.compact .branch-actions {
    margin-top: 0.5rem;
}

@media (max-width: 991px) {
    .about-branch-grid {
        grid-template-columns: 1fr;
    }

    .about-branch .about-img img {
        max-height: 320px;
    }

    .about-branch-content {
        margin-top: 1.5rem;
    }
}

.materials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.material-card {
    background: var(--bg-body);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.material-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.material-image {
    height: 250px;
    overflow: hidden;
}

.material-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.material-card:hover .material-image img {
    transform: scale(1.1);
}

.container-fluid {
    padding-right: 100px;
    padding-left: 100px;
}

.social-links {
    display: flex;
    gap: 10px;
}

.material-content {
    padding: 1.5rem;
    background: #000000;
    color: #ffffff;
    /* border-radius: 10px; */
    /* border: 1px solid #c4a87c; */
    /* box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05); */
    transition: var(--transition);
    cursor: pointer;

}

.material-content h3 {
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.material-content p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Partners Ticker - Removed if old/unused */
.partners {
    padding: 6rem 0;
    background: var(--bg-white);
    overflow: hidden;
}


/* Gallery / Portfolio */
.gallery {
    padding: 6rem 0;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.project-item {
    position: relative;
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
}

.project-item.hidden {
    display: none;
}

.project-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    will-change: transform;
}

.project-item:hover img {
    transform: scale(1.05);
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.3) 50%, rgba(0, 0, 0, 0) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    color: #fff;
    pointer-events: none;
    /* Keep overlay non-blocking */
}

.project-item:hover .project-overlay {
    opacity: 1;
}

.gallery-actions-wrap {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    gap: 12px;
    z-index: 10;
    pointer-events: auto;
    /* Enable interaction for buttons */
}

.gallery-action-btn {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8b7355;
    font-size: 1.25rem;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(10px);
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.project-item:hover .gallery-action-btn {
    opacity: 1;
    transform: translateY(0);
}

.gallery-action-btn:hover {
    background: var(--primary);
    color: #fff;
    transform: scale(1.1);
}

.project-info h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
}

.project-info span {
    font-size: 0.85rem;
    opacity: 0.9;
}

/* Lightbox Modal */
.lightbox-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(10px);
}

.lightbox-modal.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.lightbox-modal.active .lightbox-content {
    transform: scale(1);
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: -40px;
    background: none;
    border: none;
    color: #fff;
    font-size: 2.5rem;
    cursor: pointer;
    line-height: 1;
    transition: transform 0.3s ease;
}

.lightbox-close:hover {
    transform: rotate(90deg) scale(1.2);
    color: var(--primary);
}

@media (max-width: 768px) {
    .lightbox-close {
        top: -50px;
        right: 0;
    }
}

/* Footer */
footer {
    background: #1a1a1a;
    color: #fff;
    padding: 5rem 0 2rem;
    text-align: right;
    /* RTL Default */
}

body[dir="ltr"] footer {
    text-align: left;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h4 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.footer-col a {
    display: block;
    color: #bbb;
    text-decoration: none;
    margin-bottom: 0.8rem;
    transition: var(--transition);
}

.footer-col a:hover {
    color: var(--primary);
    padding-right: 5px;
    /* RTL shift */
}

body[dir="ltr"] .footer-col a:hover {
    padding-right: 0;
    padding-left: 5px;
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    color: #777;
    font-size: 0.9rem;
}

/* Responsive Tweaks */
@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .project-item {
        height: 300px;
    }

    .section-title h2 {
        font-size: 2rem;
    }
}

/* Contact card two-column layout like reference */
.contact-card {
    background: #fff;
    border-radius: 12px;
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 2rem;
    padding: 2.25rem;
    box-shadow: 0 20px 50px rgba(16, 24, 32, 0.06);
    border: 1px solid rgba(196, 168, 124, 0.06);
    max-width: 1100px;
    margin: 0 auto;
}

.contact-left h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.35rem;
    color: var(--text-main);
}

.contact-left .muted {
    color: var(--text-light);
    margin-bottom: 1.25rem;
}

.contact-form-grid {
    display: grid;
    gap: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 700;
    color: var(--text-main);
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    background: #fbf9f7;
    color: var(--text-main);
}

.form-group textarea {
    resize: vertical;
}

.file-upload {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 18px 20px;
    border-radius: 12px;
    border: 2px dashed rgba(196, 168, 124, 0.28);
    background: linear-gradient(180deg, rgba(250, 247, 244, 1), rgba(255, 255, 255, 1));
    cursor: pointer;
    justify-content: center;
}

.file-upload input[type=file] {
    display: none;
}

.file-label {
    color: #8b7f72;
    font-weight: 700;
}

.file-upload svg {
    margin-right: 8px;
    color: #8b7f72;
}

.submit-full {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: linear-gradient(180deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #1a1a1a;
    padding: 18px 24px;
    border-radius: 14px;
    font-weight: 800;
    font-size: 1.05rem;
    box-shadow: 0 10px 30px rgba(16, 24, 32, 0.12);
    border: none;
    cursor: pointer;
    text-align: center;
}

.submit-full .btn-icon {
    color: #1a1a1a;
    transform: translateY(1px);
}

.submit-full .btn-text {
    color: #1a1a1a;
}

.submit-full:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(16, 24, 32, 0.16);
}


.contact-right {
    padding: 0 1.25rem;
    display: flex;
    align-items: center;
}

.contact-right-inner {
    width: 100%;
}

.contact-right-inner h4 {
    margin: 0 0 1rem 0;
    font-size: 1rem;
    color: var(--text-main);
    font-weight: 800;
}

/* Linkified contact boxes: card appearance + hover */
.contact-box {
    display: flex;
    gap: 14px;
    align-items: center;
    padding: 14px;
    border-radius: 12px;
    background: #fff;
    margin-bottom: 14px;
    box-shadow: 0 8px 20px rgba(16, 24, 32, 0.03);
    border: 1px solid rgba(196, 168, 124, 0.06);
    text-decoration: none;
    color: inherit;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease, background 0.35s ease;
}

.contact-box:hover {
    transform: translateY(-6px);
    box-shadow: 0 28px 60px rgba(16, 24, 32, 0.12);
    border-color: rgba(196, 168, 124, 0.18);
}

.contact-box:active {
    transform: translateY(-2px);
}

/* Beige rounded-square icon background with subtle inset shadow to match reference */
.contact-box .icon-wrap {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: linear-gradient(180deg, #fbf6f0 0%, #f7f2eb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(196, 168, 124, 0.06) inset, 0 6px 18px rgba(16, 24, 32, 0.03);
    border: 1px solid rgba(196, 168, 124, 0.06);
}

.contact-box .icon-wrap svg {
    color: var(--primary);
    width: 20px;
    height: 20px;
}

.contact-box .contact-info .label {
    font-size: 0.82rem;
    color: var(--text-light);
}

.contact-box .contact-info .value {
    font-weight: 800;
    color: var(--text-main);
}

/* Divider between columns */
.contact-card {
    position: relative;
}

.contact-right {
    border-left: 1px solid rgba(196, 168, 124, 0.08);
    padding-left: 2rem;
}

.contact-left {
    padding-right: 2rem;
}

/* Logo above right column title */
.contact-logo-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.contact-logo {
    max-width: 90px;
    opacity: 0.95;
    filter: saturate(0.9);
}

/* Right column background to match reference: subtle warm tint */
.contact-right-inner {
    background: linear-gradient(180deg, rgba(249, 246, 243, 1), rgba(249, 246, 243, 1));
    padding: 1rem;
    border-radius: 8px;
}

.contact-right-title {
    text-align: center;
    font-weight: 800;
    margin: 0 0 1rem 0;
    font-size: 1rem;
    color: var(--text-main);
    text-transform: none;
    letter-spacing: 0;
}

.contact-right-inner .contact-box {
    background: #fff;
}

/* Make subtitle small uppercase style (like the top 'GET A FREE ...') */
.section-subtle {
    display: block;
    text-transform: uppercase;
    letter-spacing: 6px;
    color: #8b8076;
    font-weight: 700;
    font-size: 0.85rem;
    text-align: center;
    margin-bottom: 0.5rem;
}

.follow {
    margin-top: 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    text-align: center;
    position: relative;
    padding-top: 1rem;
    color: var(--text-light);
}

.follow::before {
    content: '';
    display: block;
    width: 100%;
    max-width: 520px;
    height: 1px;
    background: rgba(0, 0, 0, 0.06);
    margin: 0 auto 6px auto;
}

.follow-title {
    font-size: 1rem;
    color: var(--text-main);
    font-weight: 700;
    letter-spacing: 0.4px;
}

.socials {
    display: flex;
    gap: 18px;
    align-items: center;
    justify-content: center;
}

.social {
    width: 68px;
    height: 68px;
    border-radius: 14px;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 18px rgba(16, 24, 32, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.social svg {
    width: 24px;
    height: 24px;
    color: #6d6056;
}

.social:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(16, 24, 32, 0.12);
}

/* Hover color for social icons on hover-capable devices.
   Also include a Tailwind-like utility selector provided by the user for compatibility. */
@media (hover: hover) {

    .follow .social:hover svg,
    .follow .social:focus svg {
        color: #1877f2;
    }

    .group-hover\:text-\[\#1877F2\]:is(:where(.group):hover *) {
        color: #1877f2;
    }
}

@media (max-width: 991px) {
    .contact-card {
        grid-template-columns: 1fr;
        padding: 1rem;
    }

    .contact-right {
        order: 2;
        padding: 0;
    }

    .social {
        width: 56px;
        height: 56px;
        border-radius: 12px;
    }
}

/* Partners - centered large title + evenly spaced logos (like reference) */
.partners .section-title {
    text-align: center;
    margin-bottom: 3.5rem;
}

.partners .section-title .subtitle {
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #8b8076;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.partners .section-title h2 {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--text-main);
    margin: 0.5rem 0 2rem;
}

.partners-logos {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2.5rem;
    padding: 2.5rem 1rem;
}

.partners-logos .partner-logo {
    flex: 1 1 16%;
    min-width: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem 0;
}

@media (max-width: 991px) {
    .partners .section-title h2 {
        font-size: 2.4rem;
    }

    .partners-logos {
        flex-wrap: wrap;
        gap: 1.25rem;
    }

    .partners-logos .partner-logo {
        flex: 0 0 33%;
    }
}

/* Marquee animation for partners logos
.partners-marquee {
    overflow: hidden;
}

.partners-track {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    will-change: transform;
    animation: partners-scroll 28s linear infinite;
}

.partners-marquee:hover .partners-track {
    animation-play-state: paused;
}

.partners-track .partner-logo {
    flex: 0 0 12.5%;
    min-width: 120px;
    padding: 1.25rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes partners-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .partners-track {
        animation: none;
    }
}

@media (max-width: 991px) {
    .partners-track {
        animation-duration: 40s;
    }
}

@media (max-width: 1200px) {
    .partners-track .partner-logo {
        flex: 0 0 16.666%;
    }
}

@media (max-width: 768px) {
    .partners-track .partner-logo {
        flex: 0 0 33.333%;
    }
} */
/* Marquee animation for partners logos */
.partners-marquee {
    overflow: hidden;
    position: relative;
    width: 100%;
    direction: ltr;
    /* Force LTR to ensure consistent scrolling from right-to-left */
    padding: 1rem 0;
}

.partners-track {
    display: flex;
    align-items: center;
    width: max-content;
    animation: partners-scroll 50s ease infinite;
    will-change: transform;
}

.partners-marquee:hover .partners-track {
    animation-play-state: paused;
}

.partners-track .partner-logo {
    flex: 0 0 auto;
    padding: 0 3rem;
    /* Spacing between logos */
    display: flex;
    align-items: center;
    justify-content: center;
}

.partners-track .partner-logo img {
    max-width: 180px;
    /* max-height: 80px; */
    height: auto;
    object-fit: contain;
    /* filter: grayscale(100%); */
    /* opacity: 0.5; */
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.partners-track .partner-logo:hover img {
    /* filter: grayscale(0%); */
    opacity: 1;
    transform: scale(1.1);
}

/* Definition for seamless loop */
@keyframes partners-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        /* Move by half because we have duplicates */
        transform: translateX(-50%);
    }
}

/* Edge Fades */
.partners-marquee::before,
.partners-marquee::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 150px;
    z-index: 2;
    pointer-events: none;
}

.partners-marquee::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-white), transparent);
}

.partners-marquee::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-white), transparent);
}

@media (max-width: 768px) {

    .partners-marquee::before,
    .partners-marquee::after {
        width: 60px;
    }

    .partners-track {
        animation-duration: 50s;
    }

    .partners-track .partner-logo {
        padding: 0 1.5rem;
    }

    .partners-track .partner-logo img {
        max-width: 120px;
        /* max-height: 60px; */
    }
}


/* Back-to-top floating button */
.back-to-top {
    position: fixed;
    right: 28px;
    /* lifted so it doesn't overlap the Order pill */
    bottom: 20px;
    width: 56px;
    height: 56px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.04);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 40px rgba(16, 24, 32, 0.08);
    cursor: pointer;
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
    transition: transform 0.28s cubic-bezier(.2, .9, .2, 1), opacity 0.28s ease, box-shadow 0.2s ease;
    z-index: 1200;
}

.back-to-top svg {
    color: var(--text-main);
    width: 18px;
    height: 18px;
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.back-to-top:hover {
    transform: translateY(-6px);
    box-shadow: 0 26px 60px rgba(16, 24, 32, 0.14);
}

/* RTL support: place on left when needed */
body[dir="rtl"] .back-to-top {
    left: auto;
    right: 28px;
}

@media (prefers-reduced-motion: reduce) {
    .back-to-top {
        transition: none;
    }
}

/* Ensure back-to-top sits above the order pill on small screens */
@media (max-width: 768px) {
    .order-now {
        /* bottom: 82px; */
        left: 14px;
        padding: 9px 12px;
        font-size: 13px
    }

    .back-to-top {
        /* bottom: 146px !important; */
        right: 18px !important;
    }

    body[dir="rtl"] .back-to-top {
        left: 18px !important;
        right: auto !important;
    }

    body[dir="ltr"] .back-to-top {
        right: 18px !important;
        left: auto !important;
    }

    body[dir="rtl"] .order-now {
        right: 18px !important;
        left: auto !important;
    }

    body[dir="ltr"] .order-now {
        left: 18px !important;
        right: auto !important;
    }
}

/* Material modal styles (matches the second attachment layout) */
.material-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1500;
}

.material-modal[aria-hidden="false"],
.material-modal.active {
    display: flex;
}

.material-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(4, 4, 5, 0.6);
    backdrop-filter: blur(6px);
}

.material-modal-card {
    position: relative;
    width: 360px;
    max-width: calc(100% - 32px);
    background: linear-gradient(180deg, rgba(10, 8, 7, 0.9), rgba(18, 16, 14, 0.95));
    border-radius: 14px;
    padding: 22px;
    box-shadow: 0 30px 80px rgba(3, 3, 3, 0.6);
    color: #fff;
    display: block;
}

.material-modal-close {
    position: absolute;
    top: 10px;
    left: 12px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 24px;
    cursor: pointer;
}

.material-modal-body {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

.material-modal-visual {
    height: 140px;
    border-radius: 12px;
    overflow: hidden;
    background: #111;
    display: flex;
    align-items: center;
    justify-content: center;
}

.material-modal-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: brightness(0.85) contrast(1.02);
}

.material-modal-content h3 {
    color: #dcbf96;
    font-size: 28px;
    margin-bottom: 6px;
    text-align: center;
}

.material-modal-content .muted {
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    margin-bottom: 12px;
}

.modal-divider {
    height: 2px;
    width: 60px;
    background: linear-gradient(90deg, transparent, rgba(200, 180, 140, 0.95), transparent);
    margin: 0 auto 12px auto;
    border-radius: 3px;
}

.material-modal-list {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 8px;
    overflow: hidden;
}

.material-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 12px;
    background: transparent;
}

.material-row+.material-row {
    border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.material-row .label {
    color: rgba(255, 255, 255, 0.75);
    font-weight: 600;
}

.material-row .value {
    color: rgba(200, 180, 140, 1);
    font-weight: 700;
}

.modal-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 14px;
}

/* Ensure RTL orders labels to the right */
html[dir="rtl"] .material-row {
    direction: rtl;
}

/* Make material cards clickable */
.material-card {
    cursor: pointer;
}

.material-card:focus {
    outline: 2px solid rgba(196, 168, 124, 0.35);
    outline-offset: 4px;
}

/* In-place expanded card styles (appended) */
.material-card {
    position: relative;
}

.material-card-new .material-expanded {
    position: absolute;
    inset: 0;
    z-index: 5;
    pointer-events: auto;
}

.material-expanded .expanded-inner {
    width: 100%;
    height: 100%;
    background: #141210;
    display: flex;
    flex-direction: column;
    padding: 1rem;
    text-align: center;
}

.expanded-title {
    color: #c4a87c;
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 0.2rem;
    text-align: center;
}

.expanded-sub {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.75rem;
    margin-bottom: 0.75rem;
    text-align: center;
}

.expanded-divider {
    width: 30px;
    height: 1px;
    background: rgba(196, 168, 124, 0.4);
    margin: 0 auto 1rem;
}

.material-expanded .material-modal-list {
    list-style: none;
    padding: 0;
    margin: 0;
    flex-grow: 1;
}

.material-expanded .material-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.material-expanded .label {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.95rem;
}

.material-expanded .value {
    color: #fff;
    font-weight: 700;
    font-size: 1.05rem;
}

.material-expanded .material-row:last-child .value {
    color: #c4a87c;
}

.expanded-close-wrap {
    margin-top: auto;
    display: flex;
    justify-content: center;
}

.expanded-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.expanded-close:hover {
    color: #c4a87c;
    transform: rotate(-45deg);
}

/* --- About & Branch Section Refresh to match Image --- */

.about-branch {
    background-color: #f7f3f0 !important;
    /* Soft beige background from reference */
    padding: 100px 0;
}

.about-branch-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    /* Adjusted proportions */
    gap: 3rem;
    align-items: stretch;
}

.about-img {
    height: 100%;
    position: relative;
    min-height: 400px;
    /* Minimum height to prevent collapse if content is very thin */
}

.about-img img {
    width: 100%;
    height: 100% !important;
    max-height: none !important;
    object-fit: cover;
    border-radius: 40px !important;
    /* Large rounded corners as per image */
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    position: absolute;
    top: 0;
    left: 0;
}

.about-branch-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.about-card.premium,
.branch-card.premium {
    background: #ffffff !important;
    border-radius: 40px !important;
    padding: 3rem !important;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.02) !important;
    border: 1px solid rgba(196, 168, 124, 0.08) !important;
    margin: 0 !important;
    max-width: none !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    /* Ensure children take full width */
}

/* About Card Specifics */
.about-card-inner {
    text-align: right;
}

body[dir="ltr"] .about-card-inner {
    text-align: left;
}

.about-subtitle {
    display: block;
    font-size: 0.85rem;
    letter-spacing: 2px;
    color: #c4a87c;
    font-weight: 700;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
}

.about-title-large {
    font-size: 3.5rem !important;
    font-weight: 800 !important;
    color: #1a1a1a !important;
    margin-bottom: 1.5rem !important;
    line-height: 1.1 !important;
}

.about-divider {
    width: 100%;
    height: 1px;
    background: #eeeeee;
    margin: 1.5rem 0;
}

.about-description {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #777;
    margin: 0;
}

/* Branch Card Specifics */
.branch-header-new {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 2rem;
    justify-content: flex-start;
}

body[dir="rtl"] .branch-header-new {
    justify-content: flex-start;
}

body[dir="ltr"] .branch-header-new {
    justify-content: flex-start;
}

.branch-icon-square {
    width: 52px;
    height: 52px;
    background: #a38960;
    color: white !important;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 10px 20px rgba(163, 137, 96, 0.15);
}

.branch-tag-new {
    font-size: 0.85rem;
    font-weight: 700;
    color: #c4a87c;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.branch-body-new {
    text-align: right;
}

body[dir="ltr"] .branch-body-new {
    text-align: left;
}

.branch-title-new {
    font-size: 1.5rem !important;
    font-weight: 600 !important;
    color: #1a1a1a !important;
    margin-bottom: 0.5rem !important;
    line-height: 1.2 !important;
}

.branch-subtitle-new {
    font-size: 1.1rem;
    color: #777;
    margin-bottom: 2rem;
}

.branch-time-new {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #777;
    font-weight: 600;
    /* margin-bottom: 2.5rem; */
    font-size: 1.1rem;
    justify-content: flex-start;
}

.branch-time-new i {
    color: #c4a87c;
    font-size: 1.2rem;
}

/* Branch Footer Actions */
.branch-actions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.branch-action-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem 0.5rem;
    background: #f7f3f0;
    border-radius: 24px;
    color: #1a1a1a !important;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
}

.branch-action-card i {
    color: #c4a87c;
    font-size: 1.4rem;
}

.branch-action-card:hover {
    background: #ffffff;
    border-color: #c4a87c;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

/* Responsive */
@media (max-width: 1200px) {
    .about-branch-grid {
        grid-template-columns: 1fr;
    }

    .about-img {
        height: 450px !important;
        min-height: 450px !important;
    }

    .about-img img {
        position: relative !important;
        height: 100% !important;
    }
}

@media (max-width: 768px) {
    .about-title-large {
        font-size: 2.5rem !important;
    }

    .branch-title-new {
        font-size: 1rem !important;
    }

    .about-card.premium,
    .branch-card.premium {
        padding: 2rem !important;
    }

    .branch-actions-grid {
        grid-template-columns: 1fr;
    }

    .branch-action-card {
        flex-direction: row;
        justify-content: center;
        padding: 1.25rem;
        gap: 1rem;
    }
}

/* --- Consolidated Kitchen Guide & Materials (Dark Theme) --- */

.kitchen-consolidated {
    background-color: #12100e !important;
    /* Dark rich brown/black background */
    padding: 100px 0;
    color: #ffffff;
}

.kitchen-consolidated .section-title h2 {
    color: #ffffff !important;
    font-size: 3.5rem !important;
    margin-bottom: 3rem !important;
}

.kitchen-consolidated .subtitle {
    color: #c4a87c !important;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.9rem;
}

/* Tabs Styling */
.guide-tabs-new {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

.guide-tab-item-new {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 140px;
    opacity: 0.4;
}

.guide-tab-item-new.active {
    opacity: 1;
}

.tab-thumb {
    width: 130px;
    height: 80px;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.guide-tab-item-new.active .tab-thumb {
    border-color: #c4a87c;
    box-shadow: 0 0 20px rgba(196, 168, 124, 0.3);
}

.guide-tab-item-new .tab-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: #8b8076;
    transition: color 0.3s ease;
}

.guide-tab-item-new.active .tab-label {
    color: #c4a87c;
}

/* Display Area Area */
.guide-display-area {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
}

.guide-content-new {
    display: none;
    animation: fadeIn 0.6s ease;
}

.guide-content-new.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.guide-main-card {
    position: relative;
    width: 100%;
    height: 600px;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.main-guide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Glass Card */
.guide-glass-card {
    position: absolute;
    top: 40px;
    left: 40px;
    width: 340px;
    background: rgba(30, 25, 20, 0.6);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 2.5rem;
    z-index: 5;
}

body[dir="rtl"] .guide-glass-card {
    left: auto;
    right: 40px;
}

.guide-name {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 2rem;
    color: #fff;
}

.guide-info-row {
    margin-bottom: 1.5rem;
}

.info-label {
    display: block;
    font-size: 0.75rem;
    color: #c4a87c;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    margin-bottom: 4px;
}

.info-value {
    font-size: 1.25rem;
    font-weight: 600;
    color: #fff;
}

.info-desc {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin: 0;
}

/* Materials Part */
.materials-title-new {
    margin-top: 100px !important;
    text-align: center;
}

.materials-title-new h2 {
    font-size: 2.5rem !important;
    margin-bottom: 1rem !important;
}

.title-underline {
    width: 60px;
    height: 2px;
    background: #c4a87c;
    margin: 0 auto;
}

.materials-grid-new {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
    margin-top: 4rem;
}

.material-card-new {
    position: relative;
    height: 300px;
    perspective: 1000px;
    cursor: pointer;
    background: transparent;
}

.mat-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.material-card-new.expanded .mat-card-inner {
    transform: rotateY(180deg);
}

.mat-card-front,
.mat-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(196, 168, 124, 0.3);
    /* Visible border as requested */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.mat-card-back {
    transform: rotateY(180deg);
    background: #141210;
}

.material-card-new:hover .mat-card-inner {
    transform: translateY(-5px);
}

.material-card-new.expanded:hover .mat-card-inner {
    transform: rotateY(180deg) translateY(-5px);
}

.mat-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.material-card-new:hover .mat-bg-img {
    transform: scale(1.1);
}

.mat-overlay-new {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.1) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    color: #fff;
    text-align: right;
    pointer-events: none;
    /* Let clicks pass to the parent card */
}

.mat-title-new {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 4px 0;
}

.mat-sub-new {
    font-size: 0.85rem;
    color: rgb(196 168 124);
    margin: 0;
    line-height: 1.4;
}

/* Responsive */
@media (max-width: 1200px) {
    .materials-grid-new {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 991px) {
    .guide-main-card {
        height: 500px;
    }

    .guide-glass-card {
        position: relative;
        top: 0;
        left: 0;
        width: 100%;
        border-radius: 0;
        background: rgba(30, 25, 20, 0.9);
        padding: 2rem;
    }

    body[dir="rtl"] .guide-glass-card {
        right: 0;
    }
}

@media (max-width: 768px) {
    .materials-grid-new {
        grid-template-columns: repeat(2, 1fr);
    }

    .kitchen-consolidated .section-title h2 {
        font-size: 2.5rem !important;
    }
}

@media (max-width: 480px) {
    .materials-grid-new {
        grid-template-columns: 1fr;
    }

    .guide-tabs-new {
        gap: 1rem;
    }

    .guide-tab-item-new {
        width: 110px;
    }

    .tab-thumb {
        width: 100px;
        height: 60px;
    }
}

.branches-container {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 2rem;
    margin-top: 1rem;
    align-items: stretch;
}

@media (max-width: 991px) {
    .branches-container {
        grid-template-columns: 1fr;
    }
}

.branch-card.premium {
    background: #fff;
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.04);
    border: 1px solid #f0f0f0;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.branch-card.premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.branch-card.premium:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(196, 168, 124, 0.12);
    border-color: rgba(196, 168, 124, 0.2);
}

.branch-card.premium:hover::before {
    opacity: 1;
}

.branch-header-new {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.branch-icon-square {
    width: 54px;
    height: 54px;
    background: rgba(196, 168, 124, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    font-size: 1.4rem;
    transition: all 0.3s ease;
}

.branch-card.premium:hover .branch-icon-square {
    background: var(--primary);
    color: #fff;
    transform: rotate(10deg);
}

.branch-tag-new {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.branch-body-new {
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.branch-title-new {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.branch-time-new {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-light);
    font-size: 0.95rem;
}

.branch-time-new i {
    color: var(--primary);
}

.branch-footer-new {
    border-top: 1px solid #f4f4f4;
    padding-top: 2rem;
}

.branch-actions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.branch-action-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: #fdfbf7;
    border: 1px solid #f4f2ee;
    border-radius: 16px;
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 700;
    transition: all 0.3s ease;
}

.branch-action-card i {
    font-size: 1.1rem;
    color: var(--primary);
}

.branch-action-card:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.branch-action-card:hover i {
    color: #fff;
}

@media (max-width: 480px) {
    .branch-actions-grid {
        grid-template-columns: 1fr;
    }

    .branch-action-card {
        flex-direction: row;
        justify-content: flex-start;
        padding: 12px 20px;
        gap: 15px;
    }
}