/* PHP layout helpers — WhatsApp float + consultation modal + submenu */

/* ----- Compact header (fixed #header from theme) + shrink when scrolled ----- */
/* main.js adds .header-scrolled after ~100px scroll */

#header {
    padding: 0 0 10px !important;
    transition: padding 0.35s ease, box-shadow 0.35s ease;
}

#header .header-top {
    padding: 6px 8px !important;
    transition: padding 0.2s ease, font-size 0.2s ease;
}

#header .main-menu {
    padding-top: 10px !important;
    padding-bottom: 6px !important;
    transition: padding 0.35s ease;
}

#header .site-logo {
    display: block;
    width: auto;
    max-width: 220px;
    height: auto;
    max-height: 78px;
    object-fit: contain;
    transition: max-height 0.35s ease, max-width 0.35s ease;
}

#header .nav-menu > li > a {
    transition: padding 0.25s ease, font-size 0.25s ease;
}

/* Scrolled — slimmer bar, smaller logo (aligned with nav) */
#header.header-scrolled {
    padding: 0 0 6px !important;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.18);
}

#header.header-scrolled .header-top {
    padding: 4px 8px !important;
    font-size: 11px !important;
}

#header.header-scrolled .main-menu {
    padding-top: 5px !important;
    padding-bottom: 4px !important;
}

#header.header-scrolled .site-logo {
    max-height: 42px;
    max-width: 140px;
}

#header.header-scrolled .nav-menu > li > a {
    padding-top: 6px !important;
    padding-bottom: 6px !important;
    font-size: 11px !important;
}

@media (max-width: 768px) {
    #header .site-logo {
        max-height: 52px;
    }

    #header.header-scrolled .site-logo {
        max-height: 36px;
    }
}

.float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 100;
}

.my-float {
    margin-top: 16px;
}

.modal-overlay {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background: #fff;
    padding: 30px;
    margin: 10% auto;
    width: 90%;
    max-width: 500px;
    border-radius: 8px;
    position: relative;
}

.close-button {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
}

.modal-content h2 {
    margin-bottom: 20px;
    font-size: 24px;
    text-align: center;
}

.modal-content input,
.modal-content textarea {
    width: 100%;
    padding: 10px 15px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
}

.submit-btn {
    display: inline-block;
    width: 100%;
    background: #c6b069;
    color: #fff !important;
    padding: 12px;
    border: none;
    font-size: 16px;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 10px;
    text-align: center;
}

.submit-btn:hover {
    background: #000;
    color: #fff !important;
}

.single-service:hover {
    color: #ffffff;
}

.single-feature:hover {
    color: #ffffff;
}

.nav-menu .submenu {
    display: none;
    position: absolute;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 180px;
    z-index: 1000;
    padding: 8px 0;
    list-style: none;
}

.nav-menu li.dropdown-parent {
    position: relative;
}

.nav-menu li.dropdown-parent:hover > .submenu {
    display: block;
}

.nav-menu .submenu li {
    padding: 0;
}

.nav-menu .submenu a {
    display: block;
    padding: 8px 16px;
}

/* Footer social — Font Awesome brand icons */
.footer-social-icons {
    gap: 14px;
}

.footer-social-icons .footer-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    font-size: 28px;
    line-height: 1;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.footer-social-icons .footer-social-link:hover {
    transform: scale(1.08);
    opacity: 0.92;
}

.footer-social-icons .footer-social-instagram {
    color: #e1306c;
}

.footer-social-icons .footer-social-facebook {
    color: #1877f2;
}

.footer-social-icons .footer-social-linkedin {
    color: #0a66c2;
}

.footer-social-icons .footer-social-link.is-disabled,
.footer-social-icons span.footer-social-link.is-disabled {
    cursor: default;
    opacity: 0.45;
    transform: none;
}
