/*
Theme Name: EsDesignLast
Theme URI: https://www.esdizayn.com/
Author: Digitrex
Author URI: https://digitrex.com.tr/
Description: Custom Modern Responsive Theme for ES Dizayn Architecture.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: esdesignlast
*/

/* Reset & Global Tokens */
*, *::before, *::after {
    box-sizing: border-box !important;
}

html {
    scroll-behavior: smooth !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #111111;
    background-color: #ffffff;
}

body {
    margin: 0;
    padding: 0;
    background-color: #ffffff;
    color: #111111;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

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

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Site Header */
header.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    background: #ffffff;
    box-shadow: 0 2px 15px rgba(0,0,0,0.06);
}

.top-bar {
    background: #f9f9f9;
    border-bottom: 1px solid #eeeeee;
    padding: 8px 0;
    font-size: 13.5px;
}

.top-bar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-info {
    display: flex;
    gap: 16px;
    align-items: center;
}

.top-info-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.top-socials-langs {
    display: flex;
    align-items: center;
    gap: 20px;
}

.top-socials {
    display: flex;
    gap: 12px;
    align-items: center;
}

.top-languages {
    display: flex;
    align-items: center;
    gap: 10px;
    border-left: 1px solid #eeeeee;
    padding-left: 14px;
}

/* Main Navigation Bar */
.main-nav-bar {
    padding: 14px 0;
    background: #ffffff;
}

.main-nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo img {
    height: 48px;
    width: auto;
}

header.site-header ul.es-main-nav-ul {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 32px !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

header.site-header ul.es-main-nav-ul > li {
    position: relative !important;
    list-style: none !important;
}

header.site-header ul.es-main-nav-ul > li > a {
    font-size: 15.5px !important;
    font-weight: 600 !important;
    color: #111111 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
}

/* Dropdown */
.has-drop {
    position: relative;
}

.es-drop-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    min-width: 210px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    border-radius: 8px;
    padding: 10px 0;
    display: none;
    flex-direction: column;
    list-style: none !important;
    margin: 0 !important;
}

.has-drop:hover .es-drop-menu {
    display: flex !important;
}

.es-drop-menu a {
    padding: 10px 20px !important;
    font-size: 14px !important;
    color: #111111 !important;
    display: block !important;
}

.es-drop-menu a:hover {
    background: #f5f5f5 !important;
}

/* Mobile Drawer */
.es-mobile-hamburger {
    display: none;
    background: none;
    border: none;
    padding: 6px;
    cursor: pointer;
}

.es-mobile-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.6);
    z-index: 99998;
    display: none;
}

.es-mobile-drawer-overlay.is-open {
    display: block !important;
}

.es-mobile-drawer {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    height: 100vh;
    background: #111111;
    color: #ffffff;
    z-index: 99999;
    transition: right 0.3s ease;
    padding: 30px 24px;
    overflow-y: auto;
}

.es-mobile-drawer.is-open {
    right: 0 !important;
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.drawer-header img {
    height: 36px;
    filter: brightness(0) invert(1);
}

.drawer-header button {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 24px;
    cursor: pointer;
}

.drawer-menu {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.drawer-menu a {
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
}

.drawer-sub-menu {
    display: none;
    list-style: none !important;
    padding-left: 16px !important;
    margin-top: 10px !important;
}

.drawer-sub-menu.is-open {
    display: flex !important;
    flex-direction: column;
    gap: 12px;
}

/* Mobile Breakpoints */
@media (max-width: 991px) {
    .main-menu-nav {
        display: none !important;
    }
    .es-mobile-hamburger {
        display: flex !important;
    }
}

@media (max-width: 768px) {
    .top-bar-container {
        padding: 0 14px;
    }
    .top-info-item:nth-child(n+3),
    .top-bar-divider {
        display: none !important;
    }
    .site-logo img {
        height: 38px;
    }
}

/* Marquee Infinite Logo Slider */
.logo-marquee-container {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

.logo-marquee-track {
    display: inline-flex;
    align-items: center;
    animation: marquee 35s linear infinite;
}

.logo-marquee-container:hover .logo-marquee-track {
    animation-play-state: paused;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Floating WA Button */
.es-floating-wa-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(37,211,102,0.4);
    z-index: 99990;
    transition: transform 0.3s ease;
}

.es-floating-wa-btn:hover {
    transform: scale(1.08);
}

/* Fail-safe Immediate Visible Elements */
.reveal-on-scroll {
    opacity: 1 !important;
    transform: translateY(0) !important;
    visibility: visible !important;
}

/* Fixed Header Clearance for Subpage Banners */
.subpage-header,
.services-hero-banner,
.page-hero-banner {
    padding-top: 165px !important;
    padding-bottom: 65px !important;
    margin-top: 0 !important;
}
