/*
Theme Name: Sofra 038
Theme URI: https://sofra038.com
Author: noni
Description: Custom theme for Sofra 038
Version: 0.1.0
Requires at least: 6.0
Tested up to: 6.6
License: GNU General Public License v2 or later
Text Domain: sofra038
*/
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300..700;1,300..700&family=Marcellus&display=swap');

:root {
    --black: #020202;
    --white: #ffffff;
    --gray: #f4f4f4;
    --muted: #888;
    --accent: #ffffff;
    --green: #b1b1b1;
    --header-offset: 0px;
    --mobile-gutter: 35px;
}

body {
    background: var(--white);
    color: var(--black);
    margin: 0;
    font-family: "Marcellus", system-ui, serif;
}
.wrap{}
.site-header{ border-bottom:1px solid #eee; }
.brand img{ height:44px; width:auto; }
nav.primary{ display:flex; gap:1rem; }
nav.primary a{ text-decoration:none; color:var(--text); padding:.5rem .75rem; border-radius:8px; }
.hero{ padding:56px 0 40px; display:grid; gap:1rem; }
.hero h1{ font-size:clamp(28px,4vw,44px); margin:0; }
.btn{ display:inline-block; padding:.75rem 1rem; border-radius:10px; background:var(--accent); color:#fff; text-decoration:none; }
.section{}
.hours{ display:grid; gap:.4rem; }
.footer{ padding:28px 0 40px; border-top:1px solid #eee; color:var(--muted); font-size:.95rem; }
.balkan-pattern {
    filter: grayscale(100%);
}

/* === HEADER === */
.mini-header {
    height: 25px;
    background: var(--white);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content:space-between;
    padding:0 24px;
    border-top: 2px solid var(--black);
    border-bottom: 2px solid var(--black);
    margin-top: 4px;
    margin-bottom: 4px;
}

.mini-header.slider {
    display: none;
}

.mini-header a {
    color: #000;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease, transform 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.right-side-mini-header {
    display: flex;
    align-items: center;
    color: #000;
    font-weight: 600;
    gap: 10px;
}

.rating-pill {
    display: flex;
    align-items: center;
    gap: 4px;
}

.left-side-mini-header {
    display: flex;
    justify-self: flex-end;
    align-items: center;
    gap: 4px;
}

.mini-header.center-mini-header {
    justify-content: center !important;
}

.mini-header.center-mini-header .left-side-mini-header {
    margin-left: 0 !important;
}

.mini-header-text {
    font-size: 0.85rem;
    color: #000;
    text-decoration: none;
    font-weight: 700;
}

.mini-header-text:hover {
    text-decoration: underline;
}

.sofra-divider {
    width: 100%;
    height: 20px;
    display: block;
}

.site-header {
    background: var(--black);
    color: var(--white);
    border-bottom: 1px solid #222;
}
.wrap.brand {
    width: min(1200px, 92%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto 1fr; /* nav | logo | lang */
    align-items: center;
}

/* NAV (left) */
nav.primary {
    justify-self: start;
}
nav.primary .menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}
nav.primary .menu > li > a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}
nav.primary .menu > li > a:hover {
    color: var(--gray);
}

/* Logo (center) */
.logo {
    justify-self: center;
}
.logo img {
    height: 75px;
    width: auto;
}
.logo strong {
    color: var(--white);
}

.lang-switcher { justify-self:end; }

.lang-dropdown{
    position:relative;
    display:inline-block;
}
.lang-dropdown::after{
    content:"";
    position:absolute;
    left:0; right:0;
    top:100%;
    height:10px;
}

.lang-trigger{
    background:transparent;
    border:1px solid #444;
    color:var(--white);
    padding:6px 10px;
    border-radius:6px;
    cursor:pointer;
    font-weight:700;
    text-transform:uppercase;
}

.lang-menu{
    position:absolute;
    right:0;
    top:100%;
    background:var(--black);
    border:1px solid #333;
    border-radius:6px;
    list-style:none;
    padding:5px 0;
    min-width:100px;
    margin-top:4px;
    opacity:0;
    visibility:hidden;
    pointer-events:none;
    transition:opacity .15s ease, visibility .15s ease;
    z-index:1000;
}

.lang-menu li a{
    display:block;
    color:var(--white);
    text-decoration:none;
    padding:6px 10px;
    text-transform:uppercase;
    font-weight:600;
}
.lang-menu li[aria-selected="true"] a{
    background:#222;
    color:var(--accent);
}
.lang-menu li a:hover{ background:#333; }

.lang-dropdown:hover .lang-menu,
.lang-dropdown:focus-within .lang-menu,
.lang-menu:hover{
    opacity:1;
    visibility:visible;
    pointer-events:auto;
}

/* === SOCIALS === */

.separator {
    width: 1px;
    height: 30px;
    background: #ffffff;
    opacity: 0.5;
    align-self: baseline;
}

.right-side {
    display: flex;
    flex-flow: row;
    justify-self: flex-end;
    gap: 0.5rem;
}

.social-logos {
    display: flex;
    flex-flow: row;
    gap: 0.5rem;
}

/* === FOOTER === */
footer.footer {
    background: var(--black);
    color: var(--white);
    text-align: center;
    padding: 30px 0;
    border-top: 1px solid #222;
}

footer.footer a {
    color: var(--white);
    text-decoration: none;
}

.wrap-footer {
    display: flex;
    height: 350px;
    justify-content: space-evenly;
    flex-direction: row;
    align-items: center;
    border-top: 2px solid white;
    border-bottom: 2px solid white;
}

.left-logo-footer p {
    text-decoration: none;
    color: #d1d1d1d1;
}

.left-logo-footer a {
    text-decoration: none;
    color: #d1d1d1d1 !important;
}

.right-side-footer{
    display: flex;
    flex-direction: row;
    column-gap: 48px;
}

.footer-logo {
    height: 250px;
}

.follow-footer {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    row-gap: 10px;
}

.legal-footer {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    row-gap: 10px;
}

.footer-links {
    display: flex;
    flex-direction: row;
    align-items: center;
    column-gap: 8px;
}

.contact-footer {
    display: flex;
    flex-direction: column;
    text-align: start;
    row-gap: 10px;
}

.tel {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* === CONTENT === */
main {
    background: var(--white);
    color: var(--black);
    padding-bottom: 40px;
}

/* === HELPERS === */
.sofra-stars {
    display: flex;
    gap: 2px;
}

.star-bg {
    fill: #ddd;
}

.star-fill {
    fill: #000;
}

/* === UNDERTEXTDECORATION === */
.primary .menu > li > a {
    position: relative;
    text-decoration: none;
    display: inline-block;
    padding-bottom: 8px;
}

.primary .menu > li > a::before,
.primary .menu > li > a::after {
    content: "";
    position: absolute;
    bottom: 0;
    height: 0px;
    width: 0;
    background: #ffffff;
    transition: width 0.25s ease;
}

.primary .menu > li > a::before {
    left: 50%;
    transform: translateX(-100%);
}

.primary .menu > li > a::after {
    right: 50%;
    transform: translateX(100%);
}

.primary .menu > li > a .arrow {
    position: absolute;
    bottom: -3px;
    left: 50%;
    transform: translateX(-50%) translateY(-5px);
    opacity: 0;
    transition: opacity 0.25s ease;

    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-bottom: 5px solid #ffffff;
}

.primary .menu > li > a::before,
.primary .menu > li > a::after {
    display: none !important;
}

.primary .menu > li > a:hover .arrow {
    opacity: 1;
}

.primary .menu > li.current-menu-item > a .arrow {
    opacity: 1;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 8px;
    z-index: 1100;
}

.hamburger span {
    display: block;
    width: 26px;
    height: 3px;
    background: #ffffff;
    border-radius: 3px;
    transition: 0.3s ease;
    transform-origin: center;
}

/* === OVERLAY === */
.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 900;
}

body.no-scroll {
    overflow: hidden;
    height: 100vh;
}

/* Mobile only */
@media (max-width: 768px) {
    .site-header {
        position: sticky;
        top: 0;
        z-index: 950;
    }

    .wrap-footer {
        display: flex;
        height: 700px;
        justify-content: space-evenly;
        flex-direction: column;
        align-items: center;
        border-top: 2px solid white;
        border-bottom: 2px solid white;
    }

    .wrap.brand {
        width: min(1200px, 92%);
        margin: 0 auto;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .primary .menu > li.current-menu-item > a .arrow {
        padding-bottom: -5px;
    }

    .logo img {
        height: 52px;
    }

    .hamburger {
        display: flex;
    }

    .lang-switcher--mobile {
        display: block;
        align-self: flex-end;
        position: relative;
        z-index: 1200;
    }

    .lang-switcher--mobile .lang-menu {
        top: auto;
        bottom: 100%;
        margin-top: 0;
        margin-bottom: 6px;
        left: 0;
    }

    .lang-switcher--mobile .lang-trigger {
        padding: 6px 12px;
    }

    nav.primary {
        position: fixed;
        top: var(--header-offset);
        height: calc(100vh - var(--header-offset));
        left: 0;
        width: 100%;
        max-width: none;
        background: #000;
        padding: 60px 20px 80px;
        box-sizing: border-box;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 1000;
    }

    nav.primary .menu {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        margin: 0;
        padding: 0;
    }

    nav.primary .menu > li > a {
        display: block;
        width: 100%;
        font-size: 1rem;
        padding: 0.5rem 0;
    }

    .right-side {
        position: fixed;
        left: 0;
        bottom: 20px;
        width: 100%;
        padding: 0 20px;
        box-sizing: border-box;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 1001;

        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 0.75rem;
    }

    .separator {
        display: none;
    }

    .social-logos {
        display: flex;
        flex-direction: row;
        gap: 0.5rem;
    }

    .social-logos svg {
        width: 24px;
        height: 24px;
    }

    .lang-switcher {
        justify-self: flex-start;
    }

    .site-header.mobile-open nav.primary,
    .site-header.mobile-open .right-side {
        transform: translateX(0);
    }

    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}


@media (max-width: 480px) {
    .right-side-footer {
        display: flex;
        flex-direction: column;
        row-gap: 48px;
    }

    .wrap-footer {
        display: flex;
        height: 1100px;
        justify-content: space-evenly;
        flex-direction: column;
        align-items: center;
        border-top: 2px solid white;
        border-bottom: 2px solid white;
    }

    .mini-header:not(.slider) {
        display: none;
    }

    .mini-header.slider {
        height: 32px;
        display: block;
        width: 100%;
        align-content: center;
        box-sizing: border-box;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;

        padding: 0;

        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .mini-header.slider::-webkit-scrollbar {
        display: none;
    }

    .mini-header.slider .slider-track {
        display: flex;
    }

    .mini-header.slider .slide {
        flex: 0 0 100%;
        scroll-snap-align: start;

        padding: 0 16px;
        box-sizing: border-box;

        display: flex;
        align-items: center;
        justify-content: center;
    }

    .right-side-mini-header {
        flex-wrap: nowrap;
    }

    .left-side-mini-header svg {
        width: 16px;
        height: 16px;
        flex-shrink: 0;
    }
}