/*
Theme Name: Webstudio Albania 
Theme URI: https://webstudio.al/
Author: Emri Juaj
Author URI: https://webstudio.al/
Description: Tema personale për Webstudio Albania. Me klasa të izoluara dionn-, rezistente ndaj plugin-eve, responsive, shpejtë, SEO friendly, Elementor compatible.
Version: 1.2
Text Domain: webstudio-albania
*/

/* === FORCE RESET - ABSOLUTE PRIORITY === */
html, body {
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
}

*, *::before, *::after {
    box-sizing: border-box !important;
}

/* === LAYER SYSTEM === */
/* Header layer is defined in functions.php for dynamic control */

/* Body layer */
body {
    position: relative !important;
    z-index: 1 !important;
    min-height: 100vh !important;
    background: var(--dionn-bg, #fff);
    color: var(--dionn-text, #222);
    font-family: var(--dionn-font-body, 'Roboto', Arial, sans-serif);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Content layer */
#dionn-site-content,
main {
    position: relative !important;
    z-index: 10 !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: var(--dionn-bg, #fff) !important;
    min-height: 50vh;
}

/* Footer layer */
.dionn-site-footer,
#dionn-footer-elementor {
    position: relative !important;
    z-index: 10 !important;
}

/* === ELEMENTOR FULL WIDTH INTEGRATION === */
html body div.elementor div.elementor-section.elementor-section-stretched,
html body div.elementor div.elementor-section[data-settings*="stretch_section"],
html body .elementor-section.elementor-section-stretched,
html body .elementor-section[data-settings*="stretch_section"] {
    width: 100vw !important;
    max-width: 100vw !important;
    left: 50% !important;
    right: 50% !important;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    position: relative !important;
    z-index: 5 !important;
    box-sizing: border-box !important;
}

html body div.elementor div.elementor-section-stretched div.elementor-container,
html body div.elementor div.elementor-section[data-settings*="stretch_section"] div.elementor-container,
html body .elementor-section-stretched .elementor-container,
html body .elementor-section[data-settings*="stretch_section"] .elementor-container {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box !important;
}

/* Elementor sections should not have top margins */
html body div.elementor div.elementor-section,
html body .elementor-section {
    margin: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* === LAYOUT CONTAINERS === */
.dionn-boxed {
    max-width: 1200px;
    margin: 0 auto;
    box-shadow: 0 0 30px rgba(0,0,0,0.03);
    background: var(--dionn-bg, #fff);
}

.dionn-fullwidth {
    width: 100%;
    margin: 0;
}

/* Eliminate site margins globally */
#page,
.site,
.site-content,
.content-area {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* === TYPOGRAPHY === */
a { 
    color: var(--dionn-primary, #0073e6); 
    text-decoration: none;
    transition: color 0.2s ease;
}
a:hover { 
    color: var(--dionn-secondary, #e67e22);
}

h1, h2, h3, h4, h5, h6 { 
    font-family: var(--dionn-font-heading, 'Montserrat', Arial, sans-serif);
    line-height: 1.3;
    margin: 0 0 1rem 0;
}

/* === HEADER STYLES === */
.dionn-header-inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    width: 100%;
    position: relative;
}

/* === LOGO STYLES === */
.dionn-logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #222;
    font-weight: 700;
    font-size: 1.25rem;
    transition: transform 0.3s ease;
    position: relative;
}

.dionn-logo-container:hover {
    transform: scale(1.03);
}

.dionn-logo-bg {
    width: 40px;
    height: 40px;
    background: #5D5CDE;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.dionn-logo-bg svg {
    color: #fff;
    width: 24px;
    height: 24px;
}

.dionn-brand-title {
    color: #222;
    font-size: 1.2rem;
    font-weight: 700;
}

/* === NAVIGATION STYLES === */
.dionn-primary-nav {
    display: flex;
    align-items: center;
    gap: 34px;
    position: relative;
}

.dionn-primary-nav ul {
    display: flex;
    gap: 28px;
    margin: 0;
    padding: 0;
    list-style: none;
    position: relative;
}

.dionn-primary-nav a {
    position: relative;
    color: #222;
    font-weight: 500;
    font-size: 1.07rem;
    text-decoration: none;
    padding: 4px 0;
    transition: color 0.2s ease;
    overflow-wrap: anywhere;
}

.dionn-primary-nav a:after {
    content: "";
    display: block;
    position: absolute;
    width: 0;
    height: 2px;
    left: 0;
    bottom: -3px;
    background: #5D5CDE;
    transition: width 0.3s ease;
}

.dionn-primary-nav a:hover,
.dionn-primary-nav .current-menu-item > a,
.dionn-primary-nav .current_page_item > a {
    color: #5D5CDE;
}

.dionn-primary-nav a:hover:after,
.dionn-primary-nav .current-menu-item > a:after,
.dionn-primary-nav .current_page_item > a:after {
    width: 100%;
}

/* === CONTACT BUTTON === */
.dionn-contact-btn {
    margin-left: 30px;
    padding: 9px 25px;
    background: #5D5CDE;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.04rem;
    cursor: pointer;
    transition: background 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 8px rgba(93,92,222,0.08);
    text-decoration: none;
    display: inline-block;
    white-space: nowrap;
    position: relative;
}

.dionn-contact-btn:hover {
    background: #4a49b9;
}

/* === MOBILE MENU === */
.dionn-mobile-menu-btn {
    background: none;
    border: none;
    padding: 8px;
    display: none;
    color: #222;
    cursor: pointer;
    position: relative;
}

.dionn-mobile-menu-btn svg {
    width: 28px;
    height: 28px;
}

/* Mobile navigation overlay */
.dionn-mobile-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    padding: 22px 0 18px 0;
    z-index: 999;
    transition: all 0.3s ease;
}

.dionn-mobile-nav.active {
    display: block;
}

.dionn-mobile-nav ul {
    list-style: none;
    padding: 0 24px;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dionn-mobile-nav a {
    color: #222;
    font-size: 1.08rem;
    font-weight: 500;
    text-decoration: none;
    padding: 10px 0;
    border-bottom: 1px solid #f2f2f2;
    transition: color 0.2s ease;
    width: 100%;
    display: block;
    overflow-wrap: anywhere;
    position: relative;
}

.dionn-mobile-nav a:last-child {
    border-bottom: none;
}

.dionn-mobile-nav a:hover {
    color: #5D5CDE;
}

.dionn-mobile-nav .dionn-contact-btn {
    margin: 15px 0 0 0;
    display: block;
    text-align: center;
    width: 100%;
}

/* === FOOTER STYLES === */
.dionn-site-footer {
    background: #232323;
    color: #fff;
    padding: 32px 0 18px 0;
    margin: 0;
}

.dionn-footer-inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    min-height: 40px;
}

.dionn-footer-info {
    font-size: 1rem;
    opacity: 0.8;
}

.dionn-footer-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 18px;
}

.dionn-footer-nav a {
    color: #ffe164;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.2s ease;
}

.dionn-footer-nav a:hover {
    color: #fff;
}

/* === CUSTOM SCROLLBAR === */
::-webkit-scrollbar {
    width: 7px;
}

::-webkit-scrollbar-thumb {
    background: #eee;
    border-radius: 3px;
}

/* === MOBILE RESPONSIVE === */
@media (max-width: 900px) {
    .dionn-boxed {
        max-width: 94vw;
    }
    .dionn-header-inner {
        max-width: 100vw;
    }
}

@media (max-width: 800px) {
    .dionn-header-inner {
        height: 60px;
        padding: 0 8px;
    }
    .dionn-primary-nav {
        display: none;
    }
    .dionn-contact-btn {
        display: none;
    }
    .dionn-mobile-menu-btn {
        display: block;
    }
}

@media (max-width: 700px) {
    .dionn-footer-inner {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}

@media (max-width: 600px) {
    .dionn-boxed, .dionn-fullwidth {
        padding: 0 10px;
    }
}