/*
Theme Name: Get Webency Theme
Theme URI: https://getwebency.com
Author: Get Webency
Author URI: https://getwebency.com
Description: High-performance, ultra-lightweight, and SEO-optimized custom corporate theme engineered exclusively for Get Webency.
Version: 2.7.0
Text Domain: get-webency
*/

/* --- Baseline CSS Reset --- */
*, *::before, *::after {
    box-sizing: border-box;
}

body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: #222222;
    background-color: #ffffff;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

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

/* --- Floating Smart Header Base Container --- */
.gw-header-wrapper {
    position: fixed;
    top: 20px;
    left: 0;
    right: 0;
    z-index: 999999;
    padding: 0 15px;
    pointer-events: none;
}

body.admin-bar .gw-header-wrapper {
    top: 52px !important;
}

.gw-header-pill {
    pointer-events: auto;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
}

/* Logo Section */
.gw-header-logo {
    display: flex;
    align-items: center;
    flex-shrink: 1;
    min-width: 0;
}

.gw-header-logo a {
    display: flex;
    align-items: center;
    max-width: 100%;
}

.gw-header-logo img {
    width: auto;
    height: auto;
    max-width: 100%;
    object-fit: contain;
}

.gw-header-logo .site-title {
    font-weight: 700;
    font-size: 1.15rem;
    white-space: nowrap;
}

/* Navigation System (Desktop Top Level Only) */
.gw-header-nav > ul,
.gw-header-nav > div > ul {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 24px !important;
}

.gw-header-nav li {
    position: relative;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.gw-header-nav a {
    font-weight: 500;
    transition: color 0.2s ease;
    text-decoration: none !important;
    display: block;
    padding: 10px 0;
}

/* Desktop Arrow Icon for Submenus */
.gw-header-nav .menu-item-has-children > a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.gw-header-nav .menu-item-has-children > a::after {
    content: '';
    display: inline-block;
    width: 5px;
    height: 5px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    margin-top: -3px;
    transition: transform 0.2s ease;
}

.gw-header-nav .menu-item-has-children:hover > a::after {
    transform: rotate(-135deg);
    margin-top: 2px;
}

/* --- DESKTOP SUB-MENU (POSITION FIXED & DOWNWARD GAP) --- */
.gw-header-nav .sub-menu {
    position: absolute;
    top: calc(100% + 14px); /* Pushes dropdown down nicely */
    left: 0;
    min-width: 200px;
    border-radius: 12px;
    padding: 8px 0 !important;
    margin: 0 !important;
    display: none !important;
    flex-direction: column !important;
    gap: 0 !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    z-index: 1000;
}

/* Hover bridge gap fix */
.gw-header-nav .sub-menu::before {
    content: '';
    position: absolute;
    top: -16px;
    left: 0;
    right: 0;
    height: 16px;
}

.gw-header-nav li:hover > .sub-menu {
    display: flex !important;
    animation: gwSubMenuFade 0.2s ease-in-out;
}

.gw-header-nav .sub-menu li {
    width: 100%;
    display: block !important;
}

.gw-header-nav .sub-menu a {
    padding: 8px 16px !important;
    font-size: 13px !important;
    white-space: nowrap;
}

.gw-header-nav .sub-menu a::after {
    display: none !important;
}

@keyframes gwSubMenuFade {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Actions & Button Area */
.gw-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.gw-cta-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: 600;
    white-space: nowrap;
    line-height: 1 !important;
    transition: transform 0.2s ease, filter 0.2s ease;
    text-align: center;
}

.gw-cta-btn:hover {
    transform: translateY(-1px);
    filter: brightness(0.95);
}

/* Mobile Toggle Hamburger */
.gw-mobile-toggle {
    display: none;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex-shrink: 0;
}

.gw-mobile-toggle span {
    width: 16px;
    height: 2px;
    transition: 0.3s ease;
}

/* --- MOBILE NAVIGATION & ACCORDION SUB-MENU --- */
.gw-mobile-menu-overlay {
    position: fixed;
    left: 15px;
    right: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: none;
    pointer-events: auto;
    backdrop-filter: blur(15px);
    z-index: 999998;
    max-height: 80vh;
    overflow-y: auto;
}

.gw-mobile-menu-overlay.active {
    display: block;
    animation: gwFadeIn 0.3s ease-in-out;
}

.gw-mobile-nav-list,
.gw-mobile-menu-overlay ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
}

.gw-mobile-menu-overlay a {
    font-size: 15px;
    font-weight: 500;
    display: block;
    transition: color 0.2s ease;
}

/* Mobile Menu Item Layout with Submenu Toggle */
.gw-mobile-menu-overlay .menu-item-has-children {
    display: flex;
    flex-direction: column;
}

.gw-mobile-menu-overlay .gw-menu-item-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

/* Sub-menu Collapsible Accordion State */
.gw-mobile-menu-overlay .sub-menu {
    display: none !important;
    padding-left: 15px !important;
    margin-top: 6px !important;
    border-left: 2px solid rgba(255, 255, 255, 0.2);
    gap: 8px !important;
}

.gw-mobile-menu-overlay .menu-item-has-children.open > .sub-menu {
    display: flex !important;
}

.gw-dropdown-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    cursor: pointer;
    font-size: 12px;
    transition: transform 0.3s ease;
    border-radius: 4px;
}

.gw-mobile-menu-overlay .menu-item-has-children.open > .gw-menu-item-wrapper .gw-dropdown-icon {
    transform: rotate(180deg);
}

@keyframes gwFadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive Rules */
@media (max-width: 900px) {
    .gw-header-nav {
        display: none !important;
    }
    .gw-mobile-toggle {
        display: flex !important;
    }
}

@media (max-width: 600px) {
    .gw-header-pill {
        padding: 6px 12px !important;
    }
    .gw-header-actions {
        gap: 6px !important;
    }
}