/*
Theme Name: DNS Expres Media
Theme URI: https://distribucija-letaka.com
Author: DNS Expres Media
Description: Custom theme for DNS Expres Media - Distribucija letaka website. Compatible with WPBakery Page Builder, Revolution Slider, and Contact Form 7.
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: dns-expres-media
*/

/* === RESET & BASE === */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: "Open Sans", sans-serif;
    font-size: 16px;
    color: #444444;
    line-height: 1.6;
    background: #fff;
}

a {
    color: #383838;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #727272;
}

h1, h2, h3, h4, h5, h6 {
    font-family: "Raleway", sans-serif;
    color: #383838;
    font-weight: bold;
    line-height: 1.3;
    margin-top: 0;
    margin-bottom: 0.3em;
}

h1 { font-size: 35px; }
h2 { font-size: 29px; }
h3 { font-size: 24px; }
h4 { font-size: 21px; }

p {
    margin: 0 0 20px;
}

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

.clear {
    clear: both;
}

/* === LAYOUT === */
.wrapper {
    max-width: 1170px;
    margin: 0 auto;
    padding: 0 15px;
}

.wrapper.main {
    overflow: visible;
}

/* === HEADER === */
.sticky-wrapper {
    min-height: 145px;
    background: #d61921;
}

.header-wrap {
    position: relative;
    z-index: 1000;
    background: #d61921;
}

#header {
    position: relative;
    min-height: 145px;
    padding: 0;
    z-index: 5;
}

#header-logo {
    width: auto;
    position: relative;
    float: left;
    z-index: 1;
    margin-top: 40px;
}

#header-logo.center {
    margin-left: auto;
    margin-right: auto;
    float: none;
    text-align: center;
    margin-top: 0;
    padding-top: 15px;
}

#header-logo img {
    width: auto;
    height: auto;
    max-height: 100%;
}

#logo {
    display: inline-block;
}

#logo img,
#logo .custom-logo {
    max-height: 110px;
    width: auto;
}

/* Hamburger icon (hidden on desktop) */
.mobilemenu-init {
    display: none;
}

/* === NAVIGATION === */
#nv-tabs {
    position: relative;
    float: right;
    margin-top: 50px;
    z-index: 2;
}

#nv-tabs.center {
    clear: both;
    margin-left: auto;
    margin-right: auto;
    margin-top: 5px;
    display: table;
    float: none;
    border-top: solid 1px #d85359;
}

#nv-tabs ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

#nv-tabs ul li {
    float: left;
    margin-bottom: 0;
    list-style: none;
}

#nv-tabs ul li a {
    color: #ffffff;
    font-family: "Open Sans", sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    padding: 12px 18px;
    display: block;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

#nv-tabs ul li a:hover,
#nv-tabs ul li a.active,
#nv-tabs ul li a.waypoint_active {
    color: #d5d5d5;
}

#nv-tabs ul li a .menutitle {
    /* just pass through */
}

/* === STICKY HEADER (scrolled) === */
.header-wrap.stuck {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    min-height: 0 !important;
}

.header-wrap.stuck .header-skin-wrap {
    opacity: 0.9;
}

.header-wrap.stuck #header {
    min-height: 0 !important;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
}

.header-wrap.stuck #header-logo.center {
    float: none;
    text-align: left;
    margin: 0;
    padding-top: 0;
    clear: none;
}

.header-wrap.stuck #header-logo #logo {
    margin-bottom: 0;
    height: 55px !important;
    display: flex;
    align-items: center;
}

.header-wrap.stuck #header-logo img {
    width: auto !important;
    max-height: 55px;
}

.header-wrap.stuck #nv-tabs.center {
    float: none;
    display: block;
    margin: 0;
    clear: none;
    border-top: none !important;
}

.header-wrap.stuck .clear {
    display: none;
}

.header-wrap.animate {
    transition: opacity 0.3s ease, top 0.3s ease;
}

/* === MOBILE MENU === */
#mobile-tabs {
    position: fixed;
    left: -100%;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 1001;
    background: #d61921;
    transition: left 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    padding-top: 60px;
    overflow-y: auto;
}

#mobile-tabs.show {
    left: 0;
    opacity: 1;
}

.mobilemenu-close {
    position: absolute;
    top: 15px;
    right: 20px;
}

.mobilemenu-close a {
    color: #fff;
    font-size: 24px;
}

#mobilemenu {
    list-style: none;
    margin: 0;
    padding: 20px 30px;
}

#mobilemenu li {
    border-bottom: 1px solid rgba(255,255,255,0.15);
}

#mobilemenu li a {
    color: #fff;
    font-family: "Open Sans", sans-serif;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    padding: 15px 0;
    display: block;
    letter-spacing: 1px;
}

#mobilemenu li a:hover {
    color: #d5d5d5;
}

/* === Contact Form 7 Styles === */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 textarea {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-family: "Open Sans", sans-serif;
    font-size: 14px;
    margin-bottom: 10px;
    transition: border-color 0.3s ease;
}

.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 textarea:focus {
    border-color: #d61921;
    outline: none;
}

.wpcf7 textarea {
    height: 150px;
    resize: vertical;
}

.wpcf7 input[type="submit"] {
    background: #383838;
    color: #fff;
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 3px;
    transition: background 0.3s ease;
}

.wpcf7 input[type="submit"]:hover {
    background: #d61921;
}

/* === FOOTER === */
.footer-wrap {
    background: #5b5b5b;
    color: #ededed;
    padding: 20px 0;
}

.lower-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.lower-footer a {
    color: #ededed;
}

/* === BACK TO TOP === */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 40px;
    height: 40px;
    background: #d61921;
    color: #fff;
    text-align: center;
    line-height: 40px;
    border-radius: 3px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    border: none;
    font-size: 18px;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: #383838;
}

/* === RESPONSIVE === */
@media only screen and (max-width: 768px) {
    .mobilemenu-init {
        display: block;
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
    }

    .mobilemenu-init a {
        color: #fff;
        font-size: 24px;
        padding: 10px;
    }

    #header-logo.center {
        float: none;
        text-align: left;
        position: relative;
        padding: 10px 0;
        margin-top: 0;
    }

    #nv-tabs {
        display: none !important;
    }

    #header {
        min-height: auto;
    }

    #logo img {
        max-height: 50px;
    }

    .sticky-wrapper {
        min-height: auto;
    }

    /* Mobile sticky: same as normal */
    .header-wrap.stuck #header {
        display: block;
        padding: 0;
    }

    .header-wrap.stuck #header-logo.center {
        float: none;
        text-align: left;
        margin: 0;
        padding: 8px 0;
    }

    .header-wrap.stuck #header-logo #logo {
        height: auto !important;
    }

    .header-wrap.stuck #header-logo img {
        max-height: 50px;
    }

    .header-wrap.stuck #nv-tabs {
        display: none !important;
    }

    .header-wrap.stuck .clear {
        display: none;
    }

    .header-wrap.stuck .mobilemenu-init {
        display: block;
    }

    .lower-footer {
        text-align: center;
        flex-direction: column;
        gap: 5px;
    }
}
