/* ===================================================================
             * # Branchs SECTION - MODERN CARDS
             * ------------------------------------------------------------------- */
.s-Branchs {
    padding-bottom: var(--vspace-2);
}

.Branchs-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

/* Branchs Card */
.Branchs-card {
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    height: 456px;
    /* 20% larger than original 380px */
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.Branchs-card:hover {
    border-color: var(--color-1-500);
    box-shadow: 0 20px 40px rgba(199, 62, 29, 0.15);
    transform: translateY(-8px);
}

/* Status Badge */
.card-status-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.7);
    padding: 4px 8px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 10;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

[dir="rtl"] .card-status-badge {
    left: auto;
    right: 20px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    position: relative;
}

.status-dot.status-open {
    background: #00ff88;
    box-shadow: 0 0 10px #00ff88;
}

.status-dot.status-open::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: inherit;
    animation: pulse-dot 2s infinite;
}

.status-dot.status-closed {
    background: #ff4444;
}

.status-text {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #fff;
}

@keyframes pulse-dot {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(2);
        opacity: 0;
    }
}

/* Card Image */
.card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.Branchs-card:hover .card-image img {
    transform: scale(1.08);
}

/* Card Content */
.card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 28px;
    z-index: 2;
    background: linear-gradient(to top,
            rgba(0, 0, 0, 0.95) 0%,
            rgba(0, 0, 0, 0.8) 25%,
            rgba(0, 0, 0, 0.6) 50%,
            rgba(0, 0, 0, 0.3) 75%,
            transparent 100%);
}

.card-title {
    font-size: 1.9rem;
    /* Increased by 20% */
    margin-bottom: 12px;
    color: #fff;
    font-weight: 600;
}

/* Badges */
.card-badges {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.badge {
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
}

/* Description */
.card-description {
    font-size: 15.6px;
    /* Increased by 20% */
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 16px;
}

/* Additional Info */
.card-info {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 16px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

.info-value {
    font-size: 13px;
    color: #fff;
    font-weight: 500;
}

/* Responsive */
@media screen and (max-width: 1200px) {
    .Branchs-cards-grid {
        grid-template-columns: repeat(auto-fit, minmax(336px, 1fr));
        gap: 24px;
    }
}

@media screen and (max-width: 768px) {
    .Branchs-cards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .Branchs-card {
        height: 408px;
    }

    .card-title {
        font-size: 1.6rem;
    }

    .card-content {
        padding: 24px;
    }

    .text-display-title {
        font-size: 2.5rem;
    }
}

@media screen and (max-width: 400px) {
    .Branchs-card {
        height: 384px;
    }

    .card-content {
        padding: 20px;
    }

    .text-display-title {
        font-size: 2rem;
    }
}


/* ===================================================================
         * # COFFE GALLERY - FULLY RESPONSIVE HEXAGON GRID
         * ------------------------------------------------------------------- */

.s-coffe__header {
    margin-top: 100px;
}

.coffe-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin: 0 auto;
    max-width: auto;
    justify-items: center;
}

/* Individual hexagon styling */
.coffe-hex {
    width: 100%;
    max-width: 280px;
    aspect-ratio: 0.866;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    transition: all 0.4s var(--ease-smooth-in-out);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    background: var(--color-bg-neutral);
}

.coffe-hex::before {
    content: '';
    position: absolute;
    left: 3px;
    right: 3px;
    bottom: 3px;
    background: var(--color-bg);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    z-index: 1;
    transition: all 0.4s var(--ease-smooth-in-out);
}

.coffe-hex::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: linear-gradient(135deg,
            rgba(199, 62, 29, 0.1) 0%,
            rgba(199, 62, 29, 0.3) 50%,
            rgba(199, 62, 29, 0.1) 100%);
    opacity: 0;
    transition: all 0.4s var(--ease-smooth-in-out);
    z-index: 2;
}

.coffe-hex:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: var(--shadow-high);
    z-index: 10;
}

.coffe-hex:hover::before {
    background: transparent;
}

.coffe-hex:hover::after {
    opacity: 1;
}

.coffe-hex:hover img {
    transform: scale(1.15);
    filter: brightness(1.1) saturate(1.2);
}

.coffe-hex img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.6s var(--ease-smooth-in-out);
    filter: grayscale(0.2) brightness(0.9);
}

/* 4-5-4 Pattern for Large Screens */
@media screen and (min-width: 1400px) {
    .coffe-gallery {
        grid-template-columns: repeat(13, 1fr);
        grid-template-rows: auto auto auto;
        max-width: 1400px;
        gap: 10px;
    }

    /* Row 1: 4 hexagons */
    .coffe-hex:nth-child(1) {
        grid-column: 3 / span 2;
    }

    .coffe-hex:nth-child(2) {
        grid-column: 5 / span 2;
    }

    .coffe-hex:nth-child(3) {
        grid-column: 7 / span 2;
    }

    .coffe-hex:nth-child(4) {
        grid-column: 9 / span 2;
    }

    /* Row 2: 5 hexagons */
    .coffe-hex:nth-child(5) {
        grid-column: 2 / span 2;
    }

    .coffe-hex:nth-child(6) {
        grid-column: 4 / span 2;
    }

    .coffe-hex:nth-child(7) {
        grid-column: 6 / span 2;
    }

    .coffe-hex:nth-child(8) {
        grid-column: 8 / span 2;
    }

    .coffe-hex:nth-child(9) {
        grid-column: 10 / span 2;
    }

    /* Row 3: 4 hexagons */
    .coffe-hex:nth-child(10) {
        grid-column: 3 / span 2;
    }

    .coffe-hex:nth-child(11) {
        grid-column: 5 / span 2;
    }

    .coffe-hex:nth-child(12) {
        grid-column: 7 / span 2;
    }

    .coffe-hex:nth-child(13) {
        grid-column: 9 / span 2;
    }
}

/* Large Desktop */
@media screen and (min-width: 1200px) and (max-width: 1399px) {
    .coffe-gallery {
        grid-template-columns: repeat(4, 1fr);
        max-width: 1100px;
        gap: 20px;
    }

    .coffe-hex {
        max-width: 240px;
    }
}

/* Desktop */
@media screen and (min-width: 992px) and (max-width: 1199px) {
    .coffe-gallery {
        grid-template-columns: repeat(4, 1fr);
        max-width: 900px;
        gap: 15px;
    }

    .coffe-hex {
        max-width: 200px;
    }
}

/* Tablet */
@media screen and (min-width: 768px) and (max-width: 991px) {
    .coffe-gallery {
        grid-template-columns: repeat(3, 1fr);
        max-width: 700px;
        gap: 15px;
    }

    .coffe-hex {
        max-width: 200px;
    }
}

/* Mobile - 2 per row */
@media screen and (min-width: 576px) and (max-width: 767px) {
    .coffe-gallery {
        grid-template-columns: repeat(2, 1fr);
        max-width: 500px;
        gap: 20px;
    }

    .coffe-hex {
        max-width: 220px;
    }
}

/* Small Mobile - 2 per row */
@media screen and (max-width: 575px) {
    .coffe-gallery {
        grid-template-columns: repeat(2, 1fr);
        max-width: 400px;
        gap: 15px;
        padding: var(--vspace-2) 15px;
    }

    .coffe-hex {
        max-width: 160px;
    }
}

/* Extra Small Mobile */
@media screen and (max-width: 400px) {
    .coffe-gallery {
        grid-template-columns: repeat(2, 1fr);
        max-width: 350px;
        gap: 12px;
    }

    .coffe-hex {
        max-width: 140px;
    }
}

/* Animation for page load */
@keyframes coffeHexagonReveal {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.8);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.coffe-hex {
    animation: coffeHexagonReveal 0.6s var(--ease-smooth-out) both;
}

/* Stagger animation delays */
.coffe-hex:nth-child(1) {
    animation-delay: 0.1s;
}

.coffe-hex:nth-child(2) {
    animation-delay: 0.2s;
}

.coffe-hex:nth-child(3) {
    animation-delay: 0.3s;
}

.coffe-hex:nth-child(4) {
    animation-delay: 0.4s;
}

.coffe-hex:nth-child(5) {
    animation-delay: 0.5s;
}

.coffe-hex:nth-child(6) {
    animation-delay: 0.6s;
}

.coffe-hex:nth-child(7) {
    animation-delay: 0.7s;
}

.coffe-hex:nth-child(8) {
    animation-delay: 0.8s;
}

.coffe-hex:nth-child(9) {
    animation-delay: 0.9s;
}

.coffe-hex:nth-child(10) {
    animation-delay: 1.0s;
}

.coffe-hex:nth-child(11) {
    animation-delay: 1.1s;
}

.coffe-hex:nth-child(12) {
    animation-delay: 1.2s;
}

.coffe-hex:nth-child(13) {
    animation-delay: 1.3s;
}









.language-dropdown-v3 {
    margin-top: 12px;
    position: relative;
    font-size: 12px;
    display: inline-block;
}


.lang-trigger:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    color: var(--color-white);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.lang-current {
    font-weight: 500;
}

.lang-flag {
    width: 18px;
    height: 18px;
    object-fit: cover;
}

.lang-chevron {
    display: flex;
    align-items: center;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.language-dropdown-v3.active .lang-chevron {
    transform: rotate(180deg);
}

/* Dropdown Menu */
.lang-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--color-bg-neutral-dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 6px;
    min-width: 140px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10105;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

[dir="rtl"] .lang-menu {
    right: auto;
    left: 0;
}

.language-dropdown-v3.active .lang-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(8px);
}

/* Language Options */
.lang-option {
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.lang-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
    transition: left 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.lang-option:hover::before {
    left: 100%;
}

.lang-option:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(2px);
}

[dir="rtl"] .lang-option:hover {
    transform: translateX(-2px);
}

.lang-text {
    font-family: var(--type-body);
    font-size: 14px;
    margin-inline-start: 5px;
    font-weight: 500;
    object-fit: cover;
    color: var(--color-text);
    transition: color 0.2s ease;
}

.lang-option:hover .lang-text {
    color: var(--color-white);
}

.lang-option.active .lang-text {
    color: var(--color-1-400);
    font-weight: 600;
}

/* Desktop positioning */
@media screen and (min-width: 901px) {
    .header-language {
        margin-left: var(--vspace-0_75);
        display: flex;
        align-items: center;
    }

    [dir="rtl"] .header-language {
        margin-left: 0;
        margin-right: var(--vspace-0_75);
    }

    .header-nav__links {
        display: flex;
        align-items: center;
        gap: var(--vspace-0_5);
    }

    .lang-menu {
        right: 0;
        left: auto;
    }

    [dir="rtl"] .lang-menu {
        right: auto;
        left: 0;
    }

    .lang-trigger {
        padding: 6px 14px;
        font-size: 14px;
    }
}

/* FIX FOR MOBILE LANGUAGE DROPDOWN Z-INDEX */
@media screen and (max-width: 900px) {

    /* Override existing header-nav styles that might be causing z-index issues */
    .header-nav {
        z-index: 10050 !important;
        /* Higher than everything else */
    }

    .header-nav__links {
        z-index: 10060 !important;
        position: relative;
    }

    .header-language {
        order: -1;
        margin-bottom: var(--vspace-1);
        padding: 12px 0;
        z-index: 10070 !important;
        /* Higher than nav links */
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        width: 100%;
        transform: translateY(-2rem);
        opacity: 0;
        visibility: hidden;
        position: relative;
    }

    .menu-is-open .header-language {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
        transition: all 0.6s var(--ease-quick-out);
        transition-delay: 0.4s;
        z-index: 10070 !important;
    }

    .language-dropdown-v3 {
        width: 100%;
        z-index: 10080 !important;
        /* Higher than header-language */
        position: relative;
    }

    .lang-trigger {
        width: 100%;
        justify-content: center;
        padding: 10px 16px;
        font-size: 15px;
        z-index: 10090 !important;
        /* Higher than dropdown */
        position: relative;
    }

    .lang-menu {
        width: 100%;
        right: 0;
        left: 0;
        min-width: auto;
        z-index: 10100 !important;
        /* Very high for mobile dropdown */
        margin-top: 8px;
    }

    .lang-option {
        padding: 10px 16px;
        z-index: 10110 !important;
        /* Highest */
    }

    .lang-text {
        font-size: 15px;
    }

    /* Ensure header-contact has lower z-index */
    .header-contact {
        z-index: 1000 !important;
        /* Much lower than language dropdown */
        position: relative;
    }

    /* Override any existing transforms that might be causing issues */
    .menu-is-open .header-nav__links .header-language {
        transform: translateY(0) !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
}

/* Micro-interaction animations */
@keyframes optionSelect {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(0.95);
    }

    100% {
        transform: scale(1);
    }
}

.lang-option.selecting {
    animation: optionSelect 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Compact version for very small screens */
@media screen and (max-width: 360px) {
    .lang-trigger {
        padding: 8px 12px;
        font-size: 13px;
    }

    .lang-menu {
        min-width: 120px;
    }

    .lang-option {
        padding: 8px 12px;
    }

    .lang-text {
        font-size: 13px;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .lang-trigger {
        border: 2px solid currentColor;
    }

    .lang-menu {
        border: 2px solid currentColor;
    }

    .lang-option:hover {
        background: rgba(255, 255, 255, 0.2);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {

    .lang-trigger,
    .lang-option,
    .lang-menu {
        transition: none;
    }

    .lang-option::before {
        display: none;
    }

    .lang-option.selecting {
        animation: none;
    }
}

/* Focus styles for accessibility */
.lang-trigger:focus {
    outline: 2px solid var(--color-1-400);
    outline-offset: 2px;
}

.lang-option:focus {
    outline: 2px solid var(--color-1-400);
    outline-offset: -2px;
}