/*
Theme Name: Zoran Đurović Bespoke
Theme URI: https://zorandjurovic.art
Author: Custom Bespoke Theme
Description: High-end architectural theme for Priest and Artist Zoran Đurović.
Version: 1.4
Text Domain: zoran-bespoke
*/

/* =========================================================
   1. VARIABLES & RESET
   ========================================================= */
:root {
    --bg: #e8e7e5;         /* Cold architectural paper/concrete */
    --ink: #111111;        /* Sharp black */
    --grey: #888888;
    --serif: 'Cormorant', serif;
    --sans: 'Inter', sans-serif;
    --sig: 'Meddon', cursive;
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

body, html {
    background-color: var(--bg);
    color: var(--ink);
    font-family: var(--serif);
    overflow-x: hidden;
    cursor: crosshair; 
}

::selection { 
    background: var(--ink); 
    color: var(--bg); 
}

img { 
    max-width: 100%; 
    height: auto; 
    display: block;
}

a { 
    color: var(--ink); 
    text-decoration: none; 
    transition: all 0.3s ease; 
}

ul, li { list-style: none; }

/* =========================================================
   2. WP ADMIN BAR FIXES & GOOGLE TRANSLATE
   ========================================================= */
body { top: 0 !important; position: relative !important; }
.skiptranslate, .goog-te-banner-frame { display: none !important; }
.goog-tooltip, .goog-tooltip:hover { display: none !important; }
.goog-text-highlight { background-color: transparent !important; border: none !important; box-shadow: none !important; }

/* =========================================================
   3. THE ARCHITECTURAL FRAME
   ========================================================= */
.frame {
    position: fixed; 
    top: 1.5vw; left: 1.5vw; right: 1.5vw; bottom: 1.5vw;
    border: 1px solid rgba(17, 17, 17, 0.15);
    pointer-events: none; 
    z-index: 9999;
}
.admin-bar .frame { top: calc(1.5vw + 32px); }
.admin-bar .desktop-header { top: calc(1.5vw + 32px); }
.admin-bar .mobile-header { top: 32px; }

/* =========================================================
   4. DESKTOP HEADER & NAV
   ========================================================= */
.desktop-only { display: flex; }
.mobile-only { display: none; }

.desktop-header {
    position: fixed; top: 1.5vw; left: 1.5vw; right: 1.5vw; 
    height: 100px; /* Повећано да стане већи лого */
    justify-content: space-between; align-items: center; padding: 0 4vw;
    z-index: 100; background: transparent;
}
.header-logo a { font-family: var(--serif); font-size: 1.8rem; font-weight: 400; letter-spacing: 0.05em; }
.header-nav { display: flex; gap: 4vw; }
.header-nav a {
    font-family: var(--sans); font-size: 0.7rem; text-transform: uppercase;
    letter-spacing: 0.15em; position: relative; padding-bottom: 5px;
}
.header-nav a::after {
    content: ''; position: absolute; width: 100%; height: 1px; bottom: 0; left: 0;
    background: var(--ink); transform: scaleX(0); transform-origin: right; transition: 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}
.header-nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.header-actions { display: flex; align-items: center; gap: 2.5vw; }
.lang-selector { font-family: var(--sans); font-size: 0.65rem; letter-spacing: 0.1em; }
.lang-btn { cursor: pointer; color: var(--grey); transition: color 0.3s; }
.lang-sep { color: var(--grey); opacity: 0.5; margin: 0 5px; }
.lang-btn:hover { color: var(--ink); }
.contact-icon svg { transition: transform 0.3s; }
.contact-icon:hover svg { transform: scale(1.1); }

/* =========================================================
   5. MOBILE HEADER & FULLSCREEN MENU
   ========================================================= */
.mobile-header {
    position: fixed; top: 0; left: 0; width: 100%; 
    padding: 15px 6vw; /* Прилагођено за већи лого */
    justify-content: space-between; align-items: center; z-index: 1000;
}
.mobile-logo { font-family: var(--sans); font-weight: 500; letter-spacing: 2px; font-size: 1.2rem; }
.hamburger { background: none; border: none; width: 30px; height: 20px; position: relative; cursor: pointer; z-index: 1001; }
.hamburger span { display: block; width: 100%; height: 2px; background: var(--ink); position: absolute; transition: 0.3s; }
.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 9px; }
.hamburger span:nth-child(3) { top: 18px; }
.hamburger.open span:nth-child(1) { transform: rotate(45deg); top: 9px; }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg); top: 9px; }

.mobile-menu-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
    background: var(--bg); z-index: 999; display: flex; flex-direction: column;
    justify-content: center; align-items: center; opacity: 0; pointer-events: none; transition: 0.4s ease;
}
.mobile-menu-overlay.active { opacity: 1; pointer-events: auto; }
.mobile-nav a { font-family: var(--serif); font-size: 10vw; display: block; margin: 3vh 0; text-align: center; }
.mobile-lang-selector { margin-top: 5vh; display: flex; gap: 8vw; font-family: var(--sans); font-size: 0.9rem; letter-spacing: 0.1em; color: var(--grey); }

/* =========================================================
   6. SWISS MUSEUM LAYOUT (Front Page Base)
   ========================================================= */
main { 
    padding: 100px 1.5vw 1.5vw 1.5vw; 
    max-width: 100%; 
}
.section-border { border-bottom: 1px solid var(--ink); }

/* Museum Hero */
.museum-hero {
    display: grid; grid-template-columns: 1fr 1fr; min-height: 85vh; border-bottom: 1px solid var(--ink);
}
.hero-left {
    padding: 5vw; display: flex; flex-direction: column; justify-content: center; border-right: 1px solid var(--ink);
}
.hero-title {
    font-family: var(--serif); font-size: 8vw; font-weight: 300; line-height: 0.9; text-transform: uppercase; margin-bottom: 3vh;
}
.hero-meta {
    font-family: var(--sans); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.2em; color: var(--grey);
}
.hero-right {
    padding: 2vw; display: flex; align-items: center; justify-content: center;
}
.hero-right img {
    width: 100%; height: 100%; object-fit: cover; filter: grayscale(100%); aspect-ratio: 3/4;
}

/* Museum Story / Manifesto */
.museum-story {
    display: grid; grid-template-columns: 1fr 3fr; border-bottom: 1px solid var(--ink);
}
.meta-col {
    padding: 4vw; border-right: 1px solid var(--ink); font-family: var(--sans); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--grey);
}
.meta-col .chapter { color: var(--ink); display: block; margin-top: 1vh; }
.text-col { padding: 6vw 4vw; }
.story-headline {
    font-family: var(--serif); font-size: 3.5vw; font-weight: 300; line-height: 1.2; margin-bottom: 4vh; color: var(--ink);
}
.story-body {
    font-family: var(--sans); font-size: 1.1rem; line-height: 1.8; color: var(--ink); max-width: 800px; column-count: 2; column-gap: 3vw;
}

/* =========================================================
   7. STRICT PORTFOLIO GRID
   ========================================================= */
.museum-grid-section { padding: 0; border-bottom: 1px solid var(--ink); }
.grid-header {
    display: flex; justify-content: space-between; align-items: center; padding: 3vw 4vw; border-bottom: 1px solid var(--ink);
}
.section-title { font-family: var(--serif); font-size: 3rem; font-weight: 300; }
.view-all {
    font-family: var(--sans); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.15em; padding-bottom: 3px; border-bottom: 1px solid var(--ink);
}

.strict-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.grid-item {
    position: relative; border-right: 1px solid var(--ink); padding: 2vw; cursor: pointer; display: flex; flex-direction: column;
}
.grid-item:last-child { border-right: none; }
.grid-item img {
    width: 100%; aspect-ratio: 4/5; object-fit: cover; filter: grayscale(100%); transition: filter 0.5s ease; margin-bottom: 2vh;
}
.grid-item:hover img { filter: grayscale(0%); }
.item-meta {
    font-family: var(--sans); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; display: flex; justify-content: space-between;
}

/* Standard Inner Page Grid */
.standard-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 3vw; padding: 5vw; }
.artwork { display: block; margin-bottom: 4vh; }
.artwork img { width: 100%; aspect-ratio: 3/4; object-fit: cover; filter: grayscale(100%); transition: 0.5s; }
.artwork:hover img { filter: grayscale(0%); }
.artwork-meta { font-family: var(--sans); font-size: 0.8rem; margin-top: 1vh; text-transform: uppercase; letter-spacing: 0.1em; }

/* Filters */
.filters { display: flex; gap: 2vw; flex-wrap: wrap; margin-bottom: 4vh; padding: 0 5vw; }
.filter-btn { background: none; border: none; font-family: var(--sans); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--grey); cursor: pointer; transition: 0.3s; padding-bottom: 5px; }
.filter-btn.active, .filter-btn:hover { color: var(--ink); border-bottom: 1px solid var(--ink); }

/* =========================================================
   8. SINGLE PAGES & INTERNAL
   ========================================================= */
.single-header { margin-top: 5vh; margin-bottom: 5vh; border-bottom: 1px solid var(--ink); padding: 2vw 5vw; }
.single-title { font-size: 5vw; font-weight: 300; line-height: 1.1; }
.single-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 5vw; padding: 0 5vw; }
.single-image img { width: 100%; height: auto; }
.single-details { font-family: var(--sans); }
.single-details h3 { font-size: 0.8rem; text-transform: uppercase; color: var(--grey); letter-spacing: 0.1em; margin-bottom: 2vh; }
.inquiry-btn { display: inline-block; border: 1px solid var(--ink); padding: 15px 30px; text-transform: uppercase; font-family: var(--sans); font-size: 0.7rem; letter-spacing: 0.15em; cursor: pointer; transition: 0.3s; background: transparent; color: var(--ink); }
.inquiry-btn:hover { background: var(--ink); color: var(--bg); }

/* =========================================================
   9. FOOTER
   ========================================================= */
.site-footer {
    border-top: 1px solid var(--ink); padding: 8vw 5vw 2vw 5vw; background-color: var(--bg); position: relative; z-index: 10; margin-top: 10vh;
}
.footer-top { display: grid; grid-template-columns: 2fr 1.5fr 1.5fr 1fr; gap: 4vw; margin-bottom: 8vw; }
.footer-heading { display: block; font-family: var(--sans); font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.15em; color: var(--grey); margin-bottom: 3vh; }
.footer-tagline { font-family: var(--sans); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--grey); }
.footer-col nav a { display: block; font-family: var(--sans); font-size: 0.8rem; margin-bottom: 2vh; color: var(--ink); text-transform: uppercase; letter-spacing: 0.05em; transition: all 0.3s ease; }
.footer-col nav a:hover { color: var(--grey); padding-left: 8px; }
.contact-col p { font-family: var(--sans); font-size: 0.85rem; line-height: 1.8; color: var(--ink); margin-bottom: 2.5vh; }
.back-to-top { background: none; border: none; cursor: pointer; display: flex; flex-direction: column; align-items: flex-end; color: var(--ink); transition: transform 0.3s ease; margin-left: auto; }
.back-to-top:hover { transform: translateY(-8px); }
.back-to-top .arrow { font-family: var(--sans); font-size: 1.5rem; font-weight: 300; margin-bottom: 5px; }
.back-to-top .text { font-family: var(--sans); font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.1em; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid rgba(17, 17, 17, 0.1); padding-top: 3vh; font-family: var(--sans); font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--grey); }
.legal-links a { color: var(--grey); margin-left: 2vw; }
.legal-links a:hover { color: var(--ink); }

/* =========================================================
   10. RESPONSIVE / MOBILE OVERRIDES
   ========================================================= */
@media (max-width: 1024px) {
    .desktop-only { display: none !important; }
    .mobile-only { display: flex !important; }
    main { padding-top: 100px; }
    
    .museum-hero, .museum-story { grid-template-columns: 1fr; }
    .hero-left, .meta-col { border-right: none; border-bottom: 1px solid var(--ink); }
    .hero-title { font-size: 15vw; }
    .story-headline { font-size: 8vw; }
    .story-body { column-count: 1; }
    
    .strict-grid { grid-template-columns: 1fr; }
    .grid-item { border-right: none; border-bottom: 1px solid var(--ink); }
    
    .single-layout { grid-template-columns: 1fr; }
    .single-title { font-size: 12vw; }
    
    .footer-top { grid-template-columns: 1fr; gap: 6vh; }
    .back-to-top { align-items: flex-start; margin-left: 0; }
    .footer-bottom { flex-direction: column; gap: 2vh; text-align: center; }
    .legal-links a { margin: 0 3vw; }
}

/* =========================================================
   11. BRANDING & LOGO SIZES
   ========================================================= */
.site-logo {
    height: 72px; /* Увећан лого у хедеру */
    width: auto;
    display: block;
}

.mobile-header .site-logo {
    height: 52px; /* Увећан лого на мобилном */
}

.footer-img-logo {
    height: 78px; /* Увећан лого у футеру */
    width: auto;
    display: block;
    margin-bottom: 2vh;
}

/* Уклањање старих потписа */
.signature, .footer-signature, .footer-logo {
    display: none !important;
}

/* =========================================================
   12. UNIFIED PAGE TITLES & HEADINGS
   ========================================================= */
.page-main-title {
    font-family: var(--serif);
    font-size: 6vw;
    font-weight: 300;
    line-height: 1.1;
    color: var(--ink);
    margin-bottom: 3vh;
}

.section-sub-title {
    font-family: var(--serif);
    font-size: 3vw;
    font-weight: 300;
    line-height: 1.2;
    color: var(--ink);
    margin-bottom: 2vh;
}

@media (max-width: 1024px) {
    .page-main-title { font-size: 14vw; } 
    .section-sub-title { font-size: 8vw; } 
}
/* =========================================================
   13. BLOG / JOURNAL ARCHIVE STYLING
   ========================================================= */
.journal-list {
    display: flex;
    flex-direction: column;
}

.journal-item {
    display: grid;
    grid-template-columns: 1fr 3fr 1fr; /* Датум лево, Наслов у средини, Прочитај десно */
    align-items: center;
    padding: 3vw 4vw;
    border-bottom: 1px solid var(--ink);
    text-decoration: none;
    transition: background 0.3s ease;
}

.journal-item:hover {
    background: rgba(17, 17, 17, 0.03); /* Благи сиви ефекат на ховер */
}

.journal-date {
    font-family: var(--sans);
    font-size: 0.85rem;
    color: var(--grey);
    letter-spacing: 0.1em;
}

.journal-title {
    font-family: var(--serif);
    font-size: 2.2rem;
    color: var(--ink);
    font-weight: 300;
    line-height: 1.2;
}

.journal-read {
    font-family: var(--sans);
    font-size: 0.75rem;
    color: var(--grey);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-align: right;
}

/* Стилизација пагинације (бројева страница) */
.journal-pagination {
    padding: 3vw 4vw;
    border-bottom: 1px solid var(--ink);
    display: flex;
    justify-content: space-between;
    font-family: var(--sans);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.journal-pagination .page-numbers {
    padding: 5px 10px;
    color: var(--grey);
    text-decoration: none;
    transition: color 0.3s;
}

.journal-pagination .page-numbers.current {
    color: var(--ink);
    border-bottom: 1px solid var(--ink);
}

.journal-pagination .page-numbers:hover {
    color: var(--ink);
}

/* Респонзив за Мобилни */
@media (max-width: 1024px) {
    .journal-item {
        grid-template-columns: 1fr;
        gap: 1.5vh;
        padding: 5vw 4vw;
    }
    .journal-date { font-size: 0.75rem; }
    .journal-title { font-size: 1.8rem; }
    .journal-read { text-align: left; margin-top: 1vh; color: var(--ink); }
}
/* =========================================================
   GLOBAL MOBILE SPACING FIX (Повлачи садржај нагоре)
   ========================================================= */
@media (max-width: 1024px) {
    main {
        padding-top: 75px !important; /* Уместо старих 100+ px */
    }
    .museum-hero, .museum-story {
        margin-top: 0 !important; /* Уклањамо дупле маргине */
    }
    .hero-left, .meta-col, .text-col {
        padding-top: 4vh !important; /* Смањен празан простор изнад текста */
    }
    .meta-col {
        padding-bottom: 1vh !important; /* Да наслови не беже од текста */
    }
}