/*
 Theme Name:        Prespa Child
 Theme URI:         https://nasiothemes.com/themes/prespa/
 Description:       Prespa Travel serves as a child theme of Prespa, inheriting all the features of Prespa.
 Author:            Atanas Yonkov
 Author URI:        http://nasiothemes.com
 Template:          prespa
 Requires at least: 6.1
 Tested up to:      6.7
 Requires PHP:      5.6
 Version:           1.0.4
 License:           GNU General Public License v2 or later
 License URI:       http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:       prespa-travel
 Tags:              blog, news, holiday, one-column, two-columns, three-columns, four-columns, grid-layout,
                    right-sidebar, left-sidebar, block-patterns, wide-blocks, custom-colors, custom-header,
                    custom-logo, custom-menu, featured-image-header, featured-images, footer-widgets,
                    full-width-template, rtl-language-support, sticky-post, theme-options,
                    threaded-comments, translation-ready
*/

/* =========================================================
   Dark mode color overrides
   ========================================================= */

.dark-mode {
    --wp--preset--color--dark-gray: #f7f7f7;
    --wp--preset--color--silver-blue: #020205;
    --wp--preset--color--text-secondary: #d2d2d2;
    --wp--preset--color--beige: #262626;
    --wp--preset--color--dark-beige: #161616;
}

/* =========================================================
   Global tweaks (layout-safe)
   ========================================================= */

body {
    position: relative;
    background: transparent;
}

.preloader {
    display: none !important;
}

.site-footer {
    display: none;
}

p {
    text-align: justify;
}

.entry-title {
    text-align: center !important;
    width: 100% !important;
}

/* =========================================================
   Fixed background (desktop + mobile safe)
   ========================================================= */

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    will-change: transform;
}

/* Light mode – desktop */
body:not(.dark-mode)::before {
    background-image: url('https://images.cretetourguide.com/light.avif');
}

/* Dark mode – desktop */
body.dark-mode::before {
    background-image: url('https://images.cretetourguide.com/dark.avif');
}

/* Light mode – mobile */
@media (max-width: 768px) {
    body:not(.dark-mode)::before {
        background-image: url('https://images.cretetourguide.com/light-mobile.avif');
    }
}

/* Dark mode – mobile */
@media (max-width: 768px) {
    body.dark-mode::before {
        background-image: url('https://images.cretetourguide.com/dark-mobile.avif');
    }
}

/* =========================================================
   Header / navigation (light mode only)
   ========================================================= */

body:not(.dark-mode) .main-navigation-container,
body:not(.dark-mode) .top-menu {
    background-color: transparent !important;
}

body:not(.dark-mode) .main-navigation-container {
    box-shadow: none;
}