/*
 * Header & Footer Styles
 */

html body {
    font-family: 'Exo 2', sans-serif;
}

/* Header */
.xhp-header {
    background-color: #000000;
    color: #ffffff;
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    transition: box-shadow 0.3s ease;
}
.xhp-header--scrolled {
    box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}
.xhp-header__inner {
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0;
    min-height: 80px;
    box-sizing: border-box;
}
.xhp-header__logo {
    flex-shrink: 0;
    margin-right: 30px;
}
.xhp-header__logo .custom-logo {
    max-height: 50px;
    width: auto;
    display: block;
}
.xhp-header__logo-link {
    text-decoration: none;
    color: #ffffff;
    display: inline-block;
}
.xhp-header__logo-text {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #ffffff;
    text-transform: uppercase;
}
.xhp-header__right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    flex-grow: 1;
    margin-top: 20px;
}
.xhp-header__top-row {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 10px;
}
.xhp-header__search-form {
    margin: 0;
}
.xhp-header__search-wrap {
    position: relative;
    display: inline-block;
}
.xhp-header__search-input {
    background-color: #1a1a1a;
    border: 1px solid #444;
    border-radius: 4px;
    padding: 5px 38px 5px 12px;
    color: #ffffff;
    font-size: 13px;
    width: 200px;
    line-height: 1.4;
    transition: border-color 0.3s, background-color 0.3s;
    outline: none;
    font-family: inherit;
}
.xhp-header__search-input::placeholder {
    color: #aaa;
}
.xhp-header__search-input:focus {
    border-color: #ffffff;
    background-color: #222;
}
.xhp-header__search-btn {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    padding: 5px;
    cursor: pointer;
    color: #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}
.xhp-header__search-btn:hover .xhp-header__search-icon {
    color: #ffffff;
}
.xhp-header__search-icon {
    display: block;
    color: inherit;
    width: 16px;
    height: 16px;
}
.xhp-header__contact {
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}
.xhp-header__whatsapp-link {
    display: flex;
    align-items: center;
    transition: opacity 0.2s;
}
.xhp-header__whatsapp-link:hover {
    opacity: 0.8;
}
.xhp-header__whatsapp-icon {
    display: block;
}
.xhp-header__phone {
    font-family: 'Exo 2', sans-serif;
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.5px;
}
.xhp-header__phone:hover {
    text-decoration: underline;
}
.xhp-header__nav {
    width: 100%;
}
.xhp-header__menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}
#xhp-header .xhp-header__menu .menu-item {
    position: relative;
    margin: 0;
}
#xhp-header .xhp-header__menu-link {
    color: #ffffff !important;
    text-decoration: none !important;
    font-size: 15px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 10px 18px;
    display: block;
    border-radius: 4px;
    transition: background-color 0.2s;
    background: transparent !important;
}
#xhp-header .xhp-header__menu-link:hover {
    background-color: rgba(255,255,255,0.15) !important;
}
#xhp-header .xhp-header__menu .current-menu-item .xhp-header__menu-link,
#xhp-header .xhp-header__menu .current_page_item .xhp-header__menu-link,
#xhp-header .xhp-header__menu-link--active {
    background-color: rgba(255,255,255,0.2) !important;
    color: #ffffff !important;
}
.xhp-header__submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #111;
    min-width: 200px;
    padding: 8px 0;
    margin: 0;
    list-style: none;
    box-shadow: 0 8px 20px rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
    z-index: 100;
    border-radius: 0 0 4px 4px;
}
#xhp-header .menu-item-has-children:hover > .xhp-header__submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
#xhp-header .xhp-header__submenu-link {
    display: block;
    padding: 8px 20px;
    color: #cccccc !important;
    text-decoration: none !important;
    font-size: 14px;
    text-transform: uppercase;
    transition: background-color 0.2s, color 0.2s;
}
#xhp-header .menu-item-has-children > .xhp-header__menu-link::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 6px;
    vertical-align: middle;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid #ffffff;
    transition: transform 0.2s;
}
#xhp-header .xhp-header__submenu-link:hover {
    background-color: #333;
    color: #ffffff !important;
}
.xhp-header__submenu .xhp-header__submenu {
    left: 100%;
    top: 0;
}

@media (min-width: 1025px) {
    .xhp-header {
        position: -webkit-sticky;
        position: sticky;
        top: 0;
    }
}

@media (max-width: 1024px) {
    .xhp-header__inner {
        padding: 0 20px;
    }
    .xhp-header__top-row {
        flex-wrap: wrap;
        justify-content: flex-end;
        gap: 10px;
    }
    .xhp-header__search-input {
        width: 180px;
    }
}

/* Footer */
.xhp-footer {
    background-color: #000;
    color: #ccc;
    font-family: 'Exo 2', sans-serif;
    width: 100%;
}
.xhp-footer__inner {
    max-width: 1600px;
    margin: 0 auto;
    padding: 60px 0 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
}
.xhp-footer__col {
    flex: 1 1 0;
    min-width: 150px;
}
.xhp-footer__col--logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}
.xhp-footer__logo-link {
    text-decoration: none;
}
.xhp-footer__logo-text {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
}
.xhp-footer .custom-logo {
    max-height: 50px;
    width: auto;
}
.xhp-footer__heading {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.xhp-footer__nav {
    margin: 0;
}
.xhp-footer__menu {
    list-style: none;
    margin: 0;
    padding: 0;
}
.xhp-footer__menu li {
    margin-bottom: 8px;
}
.xhp-footer__menu-link {
    color: #ccc;
    text-decoration: none;
    font-size: 14px;
    text-transform: uppercase;
    transition: color 0.2s;
}
.xhp-footer__menu-link:hover {
    color: #fff;
    text-decoration: underline;
}
.xhp-footer__products-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.xhp-footer__product-card {
    aspect-ratio: 3 / 2;
    overflow: hidden;
    border-radius: 4px;
}
.xhp-footer__product-img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-color: #333;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 10px;
    box-sizing: border-box;
    position: relative;
}
.xhp-footer__product-img::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
    border-radius: inherit;
}
.xhp-footer__product-title {
    color: #fff;
    font-size: 13px;
    text-transform: uppercase;
    text-align: center;
    background: transparent;
    padding: 4px 8px;
    border-radius: 3px;
    width: 100%;
    line-height: 1.3;
    position: relative;
    z-index: 2;
}
.xhp-footer__product-link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.xhp-footer__product-link:hover .xhp-footer__product-card {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.xhp-footer__product-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.xhp-footer__contact-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.xhp-footer__contact-item {
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 1.6;
}
.xhp-footer__link {
    color: #ccc;
    text-decoration: none;
    transition: color 0.2s;
}
.xhp-footer__link:hover {
    color: #fff;
    text-decoration: underline;
}
.xhp-footer__subscribe-desc {
    font-size: 14px;
    color: #ccc;
    margin: 0 0 12px;
}
.xhp-footer__subscribe-field {
    display: flex;
    max-width: 100%;
}
.xhp-footer__subscribe-input {
    flex: 1;
    padding: 10px 12px;
    background-color: #1a1a1a;
    border: 1px solid #444;
    border-right: none;
    border-radius: 4px 0 0 4px;
    color: #fff;
    font-size: 13px;
    outline: none;
    font-family: inherit;
    transition: border-color 0.2s;
}
.xhp-footer__subscribe-input::placeholder {
    color: #888;
}
.xhp-footer__subscribe-input:focus {
    border-color: #888;
}
.xhp-footer__subscribe-btn {
    padding: 10px 20px;
    background-color: #fff;
    color: #000;
    border: 1px solid #fff;
    border-radius: 0 4px 4px 0;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background-color 0.2s;
    font-family: inherit;
}
.xhp-footer__subscribe-btn:hover {
    background-color: #ddd;
}
.xhp-footer__subscribe-note {
    font-size: 12px;
    color: #777;
    margin: 8px 0 0;
    line-height: 1.4;
}
.xhp-footer__bottom {
    border-top: 1px solid #333;
    margin-top: 20px;
}
.xhp-footer__bottom-inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 20px 0;
    text-align: center;
}
.xhp-footer__copyright {
    font-size: 13px;
    color: #888;
    margin: 0;
}

@media (max-width: 1024px) {
    .xhp-footer__inner {
        flex-wrap: wrap;
        gap: 30px 20px;
        padding: 40px 20px;
    }
    .xhp-footer__col {
        flex: 1 1 calc(33.333% - 20px);
        min-width: 200px;
    }
    .xhp-footer__col--logo {
        justify-content: flex-start;
    }
}
@media (max-width: 768px) {
    .xhp-footer__inner {
        flex-direction: column;
        gap: 30px;
    }
    .xhp-footer__col {
        flex: 1 1 auto;
    }
    .xhp-footer__products-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Modal (shared) */
.xhp-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}
.xhp-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
}
.xhp-modal-box {
    position: relative;
    background: #fff;
    max-width: 1000px;
    width: 90%;
    padding: 35px 30px 25px;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    z-index: 1;
    animation: xhpFadeIn 0.3s ease;
}
.xhp-modal-close {
    position: absolute;
    top: 12px;
    right: 18px;
    font-size: 28px;
    background: none;
    border: none;
    cursor: pointer;
    color: #999;
    transition: color 0.2s;
    line-height: 1;
}
.xhp-modal-close:hover {
    color: #222;
}
.xhp-modal-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--xhp-primary);
    margin: 0 0 20px;
}
.xhp-modal .xhp-form-row {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}
.xhp-modal .xhp-form-row--two .xhp-form-field {
    flex: 1 1 50%;
}
.xhp-modal .xhp-form-row--submit {
    justify-content: flex-end;
    align-items: center;
    gap: 16px;
    margin-bottom: 0;
}
.xhp-modal .xhp-form-field {
    flex: 1;
}
.xhp-modal .xhp-form-field input,
.xhp-modal .xhp-form-field textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--xhp-gray-border);
    border-radius: 6px;
    font-size: 15px;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: inherit;
    background: #fafafa;
}
.xhp-modal .xhp-form-field input:focus,
.xhp-modal .xhp-form-field textarea:focus {
    border-color: var(--xhp-accent);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(42,125,225,0.15);
    outline: none;
}
.xhp-modal .xhp-form-field textarea {
    resize: vertical;
}
#xhp-contact-form .xhp-btn--primary {
    background-color: var(--xhp-accent);
    color: #fff;
    border: none;
    padding: 12px 32px;
    border-radius: 6px;
    border: 2px solid transparent;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s;
    font-size: 15px;
    margin-top: 15px;
}
#xhp-contact-form .xhp-btn--primary:hover {
    background-color: transparent;
    color: var(--xhp-accent);
    border-color: var(--xhp-accent);
}
#xhp-contact-status {
    color: #666;
    font-size: 14px;
    margin-right: auto;
}
@keyframes xhpFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
@media (max-width: 480px) {
    .xhp-modal .xhp-form-row--two {
        flex-direction: column;
        gap: 12px;
    }
    .xhp-modal .xhp-form-row--two .xhp-form-field {
        flex: 1 1 auto;
    }
    .xhp-modal-box {
        padding: 25px 20px 20px;
    }
    .xhp-modal .xhp-form-row--submit {
        flex-wrap: wrap;
        justify-content: center;
    }
    #xhp-contact-status {
        margin-right: 0;
        width: 100%;
        text-align: center;
        margin-bottom: 6px;
    }
}

/* ============================================
   Mobile Hamburger Menu
   ============================================ */

.xhp-header__hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px 4px;
    margin-left: 12px;
    z-index: 100;
}

.xhp-hamburger__line {
    display: block;
    width: 26px;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.xhp-header__hamburger.active .xhp-hamburger__line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.xhp-header__hamburger.active .xhp-hamburger__line:nth-child(2) {
    opacity: 0;
}

.xhp-header__hamburger.active .xhp-hamburger__line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile overlay */
.xhp-header__mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.xhp-header__mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

.xhp-header__mobile-menu {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    max-width: 80%;
    height: 100%;
    background: #111;
    padding: 60px 30px 30px;
    overflow-y: auto;
    transition: right 0.35s ease;
    z-index: 9999;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3);
}

.xhp-header__mobile-overlay.active .xhp-header__mobile-menu {
    right: 0;
}

.xhp-header__mobile-close {
    position: absolute;
    top: 16px;
    right: 20px;
    font-size: 32px;
    color: #fff;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
}

.xhp-header__mobile-close:hover {
    color: #999;
}

.xhp-header__mobile-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.xhp-header__mobile-menu-list .menu-item {
    margin-bottom: 4px;
}

.xhp-header__mobile-menu-list a {
    display: block;
    padding: 14px 0;
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    transition: color 0.2s;
}

.xhp-header__mobile-menu-list a:hover {
    color: #2A7DE1;
}

.xhp-header__mobile-menu-list .current-menu-item a,
.xhp-header__mobile-menu-list .current_page_item a {
    color: #2A7DE1;
}

/* Submenu in mobile */
.xhp-header__mobile-menu-list .menu-item-has-children {
    position: relative;
}

.xhp-header__mobile-menu-list .menu-item-has-children > a::after {
    content: '+';
    float: right;
    font-size: 20px;
    transition: transform 0.3s;
}

.xhp-header__mobile-menu-list .menu-item-has-children.open > a::after {
    content: '−';
}

.xhp-header__mobile-menu-list .sub-menu {
    display: none;
    padding-left: 20px;
    list-style: none;
    margin: 0;
}

.xhp-header__mobile-menu-list .sub-menu a {
    font-size: 15px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    text-transform: none;
}

.xhp-header__mobile-menu-list .sub-menu a:hover {
    color: #2A7DE1;
}

.xhp-header__mobile-menu-list .menu-item-has-children.open > .sub-menu {
    display: block;
}

/* Mobile contact info */
.xhp-header__mobile-contact {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.xhp-header__mobile-contact a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #ccc;
    text-decoration: none;
    font-size: 15px;
    transition: color 0.2s;
}

.xhp-header__mobile-contact a:hover {
    color: #fff;
}

.xhp-header__mobile-contact svg {
    flex-shrink: 0;
}

/* ---- Mobile breakpoints ---- */
@media (max-width: 1024px) {
    .xhp-header__hamburger {
        display: flex;
    }

    /* Hide top row items except hamburger */
    .xhp-header__top-row .xhp-header__search-form,
    .xhp-header__top-row .xhp-header__contact {
        display: none;
    }

    .xhp-header__top-row {
        gap: 0;
        justify-content: flex-end;
    }

    /* Hide desktop nav */
    .xhp-header__nav {
        display: none;
    }

    .xhp-header__inner {
        min-height: 60px;
        padding: 0 16px;
    }

    .xhp-header__logo .custom-logo {
        max-height: 40px;
    }

    .xhp-header__logo-text {
        font-size: 20px;
    }

    .xhp-header__right {
        margin-top: 0;
        align-items: center;
        flex-direction: row;
        justify-content: flex-end;
    }
}

@media (max-width: 480px) {
    .xhp-header__mobile-menu {
        width: 280px;
        padding: 50px 20px 20px;
    }

    .xhp-header__mobile-menu-list a {
        font-size: 16px;
        padding: 12px 0;
    }

    .xhp-header__mobile-menu-list .sub-menu a {
        font-size: 14px;
        padding: 8px 0;
    }
}