/* ==============================================
   HEADER.CSS — Onise Ona Theme
   ============================================== */

:root {
    --header-height:           80px;
    --header-dropdown-height:  280px;
    --header-z:                200;
    --header-pad-x:            3%;

    --header-bg-top:           rgba(255, 255, 255, 0.55);
    --header-bg-scrolled:      rgba(255, 255, 255, 1);
    --header-border:           rgba(0, 0, 0, 0.07);
    --mobile-menu-bg:          #ffffff;

    --transition-fast:         0.3s ease;
    --transition-med:          0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow:         0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}


/* ── HEADER SHELL ──────────────────────────────── */
.site-header {
    position: fixed;
    top: 2vw;
   height: 100px;
    left: 2%;
    padding: 0;
    border-radius: 10px;
    width: 96%;
    z-index: var(--header-z);
    /* Smooth height expansion */
}

/* Desktop dropdown: header height grows */
.site-header.dropdown-open {
    height: calc(var(--header-height) + var(--header-dropdown-height) + 4vw);
}
.site-header.dropdown-open::before{
    background-color: rgba(0, 0, 0, 0.09);
}

/* Mobile open: header fills screen */
.site-header.mobile-open {

    overflow-y: auto;
}


/* ── HEADER INNER ──────────────────────────────── */
.site-header__inner {
    position: relative;
    z-index: 4;
    display: flex;
    align-items: center;
    border-radius: 10px;
    justify-content: space-between;
    padding: 15px 2%;
    gap: 24px;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.767);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(3px);
    border-bottom: 1px solid var(--header-border);
    transition:
        background 0.4s ease,
        box-shadow 0.4s ease;
}

.site-header.is-scrolled .site-header__inner,
.site-header.dropdown-open .site-header__inner {
    background: var(--header-bg-scrolled);
}

.site-header.mobile-open .site-header__inner {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: 1px solid var(--header-border);
    box-shadow: none;
}


/* ── BRANDING ──────────────────────────────────── */
.site-header__brand { flex-shrink: 0; }

.site-header__brand img,
.site-header__brand svg {
    height: 60px;
    width: auto;
    display: block;
}

.site-header__site-name {
    font-family: 'Figtree', sans-serif;
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--color-text);
    letter-spacing: -0.02em;
    text-decoration: none;
    white-space: nowrap;
}


/* ── NAV WRAPPER ───────────────────────────────── */
.site-header__nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;
    flex: 1;
}

.site-header__nav-left {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.site-header__nav-top {
    display: flex;
    align-items: center;
    gap: 20px;
}

.site-header__faq {
    font-family: var(--text);
    font-size: 0.7rem;
    font-weight: var(--text-font-weight);
    color: var(--color-text-muted);
    text-decoration: none;
    letter-spacing: 0.03em;
    transition: color var(--transition-fast);
    white-space: nowrap;
}

.site-header__faq:hover { color: var(--color-text); }

.site-header__phone {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: var(--text-font);
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--color-text-muted);
    text-decoration: none;
    letter-spacing: 0.02em;
    white-space: nowrap;
    transition: opacity var(--transition-fast);
}

.site-header__phone:hover { opacity: 0.75; }
.phone-icon { color: var(--color-text-muted); flex-shrink: 0; }


/* ── DESKTOP MENU ──────────────────────────────── */
.site-header__menu-wrap {
    display: flex;
    align-items: center;
}

.site-header__menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 2px;
}

.site-header__menu > li > a,
.site-header__menu > li > button,
.services-toggle__btn {
    font-family: var(--accent-font);
    font-size: var(--accent-font-size);
    font-weight: var(--accent-font-weight);
    color: var(--color-text);
    text-decoration: none;
    padding: 6px 12px;
    background: transparent;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
    line-height: 1;
    transition: color var(--transition-fast), background var(--transition-fast);
}

.site-header__menu > li > a:hover,
.site-header__menu > li > button:hover,
.services-toggle__btn:hover {
    color: var(--color-primary);
}

.menu-item--services { 
    list-style: none; 
    position: relative;
}

.services-toggle__icon {
    position: relative;
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.services-toggle__icon::before,
.services-toggle__icon::after {
    content: '';
    position: absolute;
    background: currentColor;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.services-toggle__icon::before {
    width: 14px; height: 2px;
    top: 50%; left: 0;
    transform: translateY(-50%);
}

.services-toggle__icon::after {
    width: 2px; height: 14px;
    top: 0; left: 50%;
    transform: translateX(-50%);
}

.services-toggle__btn[aria-expanded="true"] .services-toggle__icon::after {
    transform: translateX(-50%) rotate(90deg);
    opacity: 0;
}


/* ── CTA BUTTON ────────────────────────────────── */
.site-header__cta {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 20px;
    background: var(--color-secondary);
    border: 1px solid var(--color-secondary);
    border-radius: 5px;
    cursor: pointer;
    transition: background var(--transition-fast), transform var(--transition-fast);
}

.site-header__cta span {
    font-family: var(--accent-font);
    font-size: var(--accent-font-size);
    font-weight: var(--accent-font-weight);
    color: #fff;
    white-space: nowrap;
    letter-spacing: 0.02em;
    transition: color var(--transition-fast);
}

.site-header__cta:hover { background: transparent; }
.site-header__cta:hover span { color: var(--color-secondary); }
.site-header__cta:active { transform: translateY(1px); }


/* ── SERVICES MEGA DROPDOWN ────────────────────── */
.services-dropdown {
    position: absolute;
    width: 100%;
    opacity: 0;
    top: var(--header-height);
    left: 0%;
    right: 2%;
    height: var(--header-dropdown-height);
    z-index: 3;
    border-radius: 0 0 10px 10px;
    background: var(--color-primary-light);
    border-bottom: 1px solid var(--header-border);
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    
    /* Hidden state: translateY up and opacity 0 */
    pointer-events: none;
    
    /* Smooth slide-down animation */
        transform 0.6s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-header.dropdown-open .services-dropdown {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.services-dropdown__inner {
    padding: 30px 15%;
}

.services-dropdown__label {
    font-family: var(--accent-font);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--color-text-muted);
    margin-bottom: 16px;
}

.services-dropdown__grid {
    list-style: none;
    padding: 0; margin: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px 24px;
}

.services-dropdown__grid li a {
    font-family: var(--accent-font);
    font-size: 0.95rem;
    font-weight: var(--accent-font-weight);
    color: var(--color-text);
    text-decoration: none;
    display: block;
    padding: 10px 14px;
    border-radius: 8px;
    transition: background var(--transition-fast), color var(--transition-fast);
}

.services-dropdown__grid li a:hover {
    background: rgba(0,0,0,0.04);
}


/* ── HAMBURGER ─────────────────────────────────── */
.site-header__hamburger {
    display: none;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
    background-color: #e961272e;
    padding: 6px 10px;
}

.hamburger__label--menu,
.hamburger__label--close {
    font-family: var(--accent-font);
    font-size: var(--accent-font-size-mobile);
    font-weight: var(--accent-font-weight);
    color: var(--color-secondary);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    user-select: none;
}

.hamburger__label--close { display: none; }
.site-header__hamburger.is-open .hamburger__label--menu  { display: none; }
.site-header__hamburger.is-open .hamburger__label--close { display: block; }

.hamburger__icon {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 4px;
    width: 20px;
    height: 20px;
}

.hamburger__bar {
    display: block;
    height: 1px;
    border-radius: 1px;
    transform-origin: right center;
    transition:
        transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.3s ease,
        width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hamburger__bar--top { width: 11px; background: var(--color-text); }
.hamburger__bar--mid { width: 16px; background: var(--color-text); }
.hamburger__bar--bot { width: 20px; background: var(--color-secondary); }

.site-header__hamburger.is-open .hamburger__bar--top {
    width: 16px;
    transform: translateY(5px) rotate(-45deg);
    background: var(--color-text);
}
.site-header__hamburger.is-open .hamburger__bar--mid {
    opacity: 0;
    transform: scaleX(0);
}
.site-header__hamburger.is-open .hamburger__bar--bot {
    width: 16px;
    transform: translateY(-5px) rotate(45deg);
    background: var(--color-text);
}


/* ── MOBILE MENU ───────────────────────────────── */
.mobile-menu {
    /* Hidden: translateY up, opacity 0 */
    pointer-events: none;
    opacity: 0;
    
    /* Smooth slide-down */
        transform 0.65s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-header.mobile-open .mobile-menu {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.mobile-menu__inner {
    padding: 20px var(--header-pad-x) 48px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}


/* ── MOBILE LIST STYLES ────────────────────────── */
.mobile-menu__list,
.mobile-menu__custom-items {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu__list > li,
.mobile-menu__item {
    border-bottom: 1px solid #e961276f;
}

.mobile-menu__custom-items > .mobile-menu__item:first-child {
    border-top: 1px solid var(--color-border, #e5e7eb);
}

.mobile-menu__list > li > a,
.mobile-item__link,
.mobile-item__btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 16px 4px;
    font-family: var(--accent-font);
    font-size: var(--accent-font-size-mobile);
    font-weight: var(--accent-font-weight);
    color: var(--color-text);
    text-decoration: none;
    letter-spacing: var(--accent-letter-spacing);
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
}

.mobile-item__label {
    font-family: var(--accent-font);
    font-size: var(--accent-font-size-mobile);
    font-weight: var(--accent-font-weight);
    color: var(--color-text);
    letter-spacing: var(--accent-letter-spacing);
}

/* Arrow icon */
.mobile-menu__list > li > a::after,
.mobile-item__arrow {
    content: '';
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m12 5 7 7-7 7'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.mobile-item__arrow {
    display: block;
}

/* +/− icon */
.mobile-item__toggle-icon {
    position: relative;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='M12 5v14'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-item__btn[aria-expanded="true"] .mobile-item__toggle-icon {
    transform: rotate(45deg);
}


/* ── MOBILE SUB-DROPDOWN ───────────────────────── */
.mobile-submenu {
    overflow: hidden;
    
    /* Smooth height expansion using grid + scale */
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-submenu.is-open { 
    grid-template-rows: 1fr;
}

.mobile-submenu__list {
    list-style: none;
    padding: 0 0 8px 16px;
    margin: 0;
    overflow: hidden;
}

.mobile-submenu__list > li {
    border-bottom: 1px solid var(--color-border, #e5e7eb);
}

.mobile-submenu__list > li:last-child { border-bottom: none; }

.mobile-submenu__list > li > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 4px;
    font-family: 'Figtree', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text-muted);
    text-decoration: none;
}

.mobile-submenu__list > li > a::after {
    content: '';
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m12 5 7 7-7 7'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}


/* ── MOBILE ACTIONS ────────────────────────────── */
.mobile-menu__actions {
    display: flex;
    align-items: stretch;
    gap: 10px;
}

.mobile-menu__phone {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 50px;
    font-family: var(--accent-font);
    font-size: var(--accent-font-size);
    font-weight: var(--accent-font-weight);
    color: var(--color-secondary);
    text-decoration: none;
    padding: 10px 8px;
    border-radius: 10px;
    border: 1px solid var(--color-secondary);
    width: 50%;
    white-space: nowrap;
}

.mobile-menu__phone .phone-icon {
    color: var(--color-secondary);
    display: flex;
    align-items: center;
}

.mobile-menu__cta {
    flex: 1;
    width: 50%;
    padding: 10px 8px;
    min-height: 50px;
    background: var(--color-secondary);
    border: 1px solid var(--color-secondary);
    border-radius: 10px;
    cursor: pointer;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition-fast);
}

.mobile-menu__cta span {
    font-family: 'Figtree', sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
    color: #fff;
    transition: color var(--transition-fast);
}

.mobile-menu__cta:hover { background: transparent; }
.mobile-menu__cta:hover span { color: var(--color-secondary); }


/* ── RESPONSIVE ────────────────────────────────── */
@media (max-width: 1024px) {
    .site-header__nav      { display: none; }
    .site-header__hamburger { display: flex; }
    .site-header__brand img,
    .site-header__brand svg{
        height: 45px;
    }
    .site-header__inner{
        padding: 10px 15px;
    }

}
@media (max-width: ) {
    
}

@media (max-width: 480px) {
    :root { --header-pad-x: 5%; }
}