/* =========================================================================
   Eau Header Nav – Pixel-perfect from Figma
   =========================================================================
   FIGMA SPECS (Desktop):
   ─────────────────────
   Nav item height:        136px
   Item padding:           10px 16px
   Item gap (text↔arrow):  2px
   Font:                   Calibri Bold, 18px/24px
   Text color (normal):    #4A4A4A
   Arrow color (normal):   #27292F
   Text color (active):    #1A75BC
   Arrow color (active):   #1A75BC
   Active bg:              #FFFFFF
   Active indicator:       border-bottom 3px solid #1A75BC

   Dropdown:
   ─────────
   Background:             #FFFFFF
   Font:                   Calibri Bold, 16px/20px
   Text color:             #18181B
   Padding:                16px 24px  (first-child pt: 24px)
   ========================================================================= */

/* Reset */
.eau-hn,
.eau-hn * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Nav wrapper */
.eau-hn {
    position: relative;
    width: 100%;
}

/* Horizontal list */
.eau-hn__list {
    display: flex;
    align-items: center;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Single menu item */
.eau-hn__item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 136px;
    padding: 10px 16px;
    cursor: pointer;
}

/* Inner flex (text + arrow) */
.eau-hn__item-inner {
    display: flex;
    align-items: center;
    gap: 2px;
}

/* Link */
.eau-hn__link {
    font-family: 'Calibri', sans-serif;
    font-weight: 700;
    font-size: 18px;
    line-height: 24px;
    font-style: normal;
    color: #4A4A4A;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s ease;
}

/* Arrow icon */
.eau-hn__arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    transition: transform 0.25s ease;
}

.eau-hn__arrow svg {
    display: block;
    width: 24px;
    height: 24px;
    overflow: visible;
    transition: stroke 0.2s ease;
}

.eau-hn__arrow svg path {
    stroke: #27292F;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: stroke 0.2s ease;
}

/* Active indicator (bottom border) */
.eau-hn__item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background-color: #1A75BC;
    transform: scaleX(0);
    transition: transform 0.25s ease;
}

.eau-hn__item--active::after {
    transform: scaleX(1);
}

/* Hover indicator */
.elementor-widget-eau_header_nav.eau-hn-hover-indicator-yes .eau-hn__item:hover::after {
    transform: scaleX(1);
}

/* Active state */
.eau-hn__item--active {
    background-color: #FFFFFF;
}

.eau-hn__item--active .eau-hn__link {
    color: #1A75BC;
}

.eau-hn__item--active .eau-hn__arrow svg path {
    stroke: #1A75BC;
}

/* Hover state */
.eau-hn__item:hover .eau-hn__link {
    color: #1A75BC;
}

.eau-hn__item:hover .eau-hn__arrow svg path {
    stroke: #1A75BC;
}

/* =========================================================================
   Dropdown
   ========================================================================= */
.eau-hn__dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 100% !important;
    background-color: #FFFFFF;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.10);
    border-radius: 0 0 4px 4px;
    list-style: none;
    padding: 0;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    z-index: 9999;
}

/* Desktop hover opens dropdown */
.eau-hn:not(.eau-hn--mobile) .eau-hn__item--has-dropdown:hover > .eau-hn__dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Click-open (mobile & desktop fallback) */
.eau-hn__item--has-dropdown.eau-hn__item--open > .eau-hn__dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Arrow rotate on open */
.eau-hn:not(.eau-hn--mobile) .eau-hn__item--has-dropdown:hover > .eau-hn__item-inner .eau-hn__arrow,
.eau-hn__item--has-dropdown.eau-hn__item--open > .eau-hn__item-inner .eau-hn__arrow {
    transform: rotate(180deg);
}

/* Sub-items */
.eau-hn__sub-item {
    list-style: none;
    padding: 16px 24px;
    transition: background-color 0.15s ease;
}

.eau-hn__sub-item:first-child {
    padding-top: 24px;
}

.eau-hn__sub-item:last-child {
    padding-bottom: 24px;
}

.eau-hn__sub-link {
    font-family: 'Calibri', sans-serif;
    font-weight: 700;
    font-size: 16px;
    line-height: 20px;
    font-style: normal;
    color: #18181B;
    text-decoration: none;
    display: block;
    white-space: nowrap;
    transition: color 0.15s ease, background-color 0.15s ease;
}

/* Sub-item active state */
.eau-hn__sub-item--active {
    background-color: #F4F4F5;
}

.eau-hn__sub-item--active .eau-hn__sub-link {
    color: #1A75BC;
}

/* (hover handled in sub-arrow section above) */

/* =========================================================================
   Sub-sub-items flyout (depth 2)
   Figma: white bg, border-left 1px #CECECE, same typography as dropdown
   Position: right side of parent dropdown
   ========================================================================= */

/* Sub-item with children: layout */
.eau-hn__sub-item--has-children {
    position: relative;
}

.eau-hn__sub-item--has-children > .eau-hn__sub-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Chevron-right arrow for sub-items with children
   Figma: viewBox 0 0 12 7, path M1 1L6 6L11 1, rotated -90deg to point right
   Normal: #1A75BC | Hover: #FFFFFF */
.eau-hn__sub-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 7px;
    height: 12px;
    flex-shrink: 0;
    margin-left: 12px;
}

.eau-hn__sub-arrow svg {
    width: 7px;
    height: 12px;
    display: block;
    overflow: visible;
}

.eau-hn__sub-arrow svg path {
    stroke: #1A75BC;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: stroke 0.15s ease;
}

/* ALL sub-items hover: blue bg, white text */
.eau-hn__sub-item:hover {
    background-color: #1A75BC;
}

.eau-hn__sub-item:hover > .eau-hn__sub-link {
    color: #FFFFFF;
}

/* Arrow turns white on hover */
.eau-hn__sub-item:hover > .eau-hn__sub-link .eau-hn__sub-arrow svg path {
    stroke: #FFFFFF;
}

/* Flyout panel – matches dropdown width via JS .eau-hn__dropdown[data-eq-width] */
.eau-hn__flyout {
    position: absolute;
    top: 0;
    left: 100%;
    min-width: var(--eau-hn-dropdown-width, 200px);
    background-color: #FFFFFF;
    border-left: 1px solid #CECECE;
    box-shadow: 4px 4px 16px rgba(0, 0, 0, 0.08);
    border-radius: 0 4px 4px 0;
    list-style: none;
    padding: 0;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-4px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    z-index: 10000;
}

.eau-hn__sub-item--has-children:hover > .eau-hn__flyout {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* Flyout items – same style as dropdown items */
.eau-hn__flyout-item {
    list-style: none;
    padding: 16px 24px;
    transition: background-color 0.15s ease;
}

.eau-hn__flyout-item:first-child {
    padding-top: 16px;
}

.eau-hn__flyout-item:last-child {
    padding-bottom: 16px;
}

.eau-hn__flyout-item:hover {
    background-color: #1A75BC;
}

.eau-hn__flyout-item:hover .eau-hn__sub-link {
    color: #FFFFFF;
}

/* =========================================================================
   Flyout in mobile mode – inline accordion under parent sub-item
   ========================================================================= */
.eau-hn--mobile .eau-hn__sub-item--has-children {
    position: static;
}

.eau-hn--mobile .eau-hn__flyout {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border-left: none;
    border-radius: 0;
    display: none;
    background-color: #F3F4F6;
    min-width: 0;
    border-top: 1px solid #E5E7EB;
}

.eau-hn--mobile .eau-hn__sub-item--has-children.eau-hn__sub-item--open > .eau-hn__flyout {
    display: block;
}

/* Override desktop hover in mobile */
.eau-hn--mobile .eau-hn__sub-item--has-children:hover > .eau-hn__flyout {
    display: none;
    opacity: 0;
    visibility: hidden;
}

.eau-hn--mobile .eau-hn__sub-item--has-children.eau-hn__sub-item--open:hover > .eau-hn__flyout {
    display: block;
    opacity: 1;
    visibility: visible;
}

.eau-hn--mobile .eau-hn__flyout-item {
    padding: 10px 24px 10px 52px;
}

.eau-hn--mobile .eau-hn__sub-arrow {
    transition: transform 0.2s ease;
}

.eau-hn--mobile .eau-hn__sub-item--open > .eau-hn__sub-link .eau-hn__sub-arrow {
    transform: rotate(90deg);
}

/* =========================================================================
   Intermediate responsive – graceful shrink before hamburger kicks in
   =========================================================================
   At 1920px+: pixel-perfect Figma (18px, 16px padding, 136px height)
   At 1400px:  slightly smaller (16px font, 12px padding, 100px height)
   At 1200px:  compact (15px font, 10px padding, 80px height, 20px arrow)
   These only apply while STILL in desktop mode (before .eau-hn--mobile)
   ========================================================================= */

@media (max-width: 1440px) {
    .elementor-widget-eau_header_nav .eau-hn:not(.eau-hn--mobile) .eau-hn__link {
        font-size: 16px;
        line-height: 22px;
    }

    .elementor-widget-eau_header_nav .eau-hn:not(.eau-hn--mobile) .eau-hn__item {
        padding: 10px 12px;
        height: 100px;
    }

    .elementor-widget-eau_header_nav .eau-hn:not(.eau-hn--mobile) .eau-hn__arrow,
    .elementor-widget-eau_header_nav .eau-hn:not(.eau-hn--mobile) .eau-hn__arrow svg {
        width: 22px;
        height: 22px;
    }
}

@media (max-width: 1280px) {
    .elementor-widget-eau_header_nav .eau-hn:not(.eau-hn--mobile) .eau-hn__link {
        font-size: 15px;
        line-height: 20px;
    }

    .elementor-widget-eau_header_nav .eau-hn:not(.eau-hn--mobile) .eau-hn__item {
        padding: 8px 10px;
        height: 80px;
    }

    .elementor-widget-eau_header_nav .eau-hn:not(.eau-hn--mobile) .eau-hn__arrow,
    .elementor-widget-eau_header_nav .eau-hn:not(.eau-hn--mobile) .eau-hn__arrow svg {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 1100px) {
    .elementor-widget-eau_header_nav .eau-hn:not(.eau-hn--mobile) .eau-hn__link {
        font-size: 14px;
        line-height: 18px;
    }

    .elementor-widget-eau_header_nav .eau-hn:not(.eau-hn--mobile) .eau-hn__item {
        padding: 6px 8px;
        height: 70px;
    }

    .elementor-widget-eau_header_nav .eau-hn:not(.eau-hn--mobile) .eau-hn__item-inner {
        gap: 1px;
    }

    .elementor-widget-eau_header_nav .eau-hn:not(.eau-hn--mobile) .eau-hn__arrow,
    .elementor-widget-eau_header_nav .eau-hn:not(.eau-hn--mobile) .eau-hn__arrow svg {
        width: 18px;
        height: 18px;
    }
}

/* =========================================================================
   Hamburger (hidden by default, shown by JS via .eau-hn--mobile)
   ========================================================================= */
.eau-hn__hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.eau-hn__hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: #27292F;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Hamburger X animation */
.eau-hn__hamburger[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.eau-hn__hamburger[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.eau-hn__hamburger[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* =========================================================================
   Mobile mode – toggled by JS class .eau-hn--mobile
   ========================================================================= */
.eau-hn--mobile .eau-hn__hamburger {
    display: flex;
}

.eau-hn--mobile .eau-hn__list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #FFFFFF;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.10);
    z-index: 9999;
    max-height: 80vh;
    overflow-y: auto;
}

.eau-hn--mobile .eau-hn__list--mobile-open {
    display: flex;
}

.eau-hn--mobile .eau-hn__item {
    height: auto;
    flex-direction: column;
    align-items: stretch;
    padding: 0;
}

.eau-hn--mobile .eau-hn__item-inner {
    justify-content: space-between;
    padding: 14px 20px;
    border-bottom: 1px solid #F4F4F5;
}

.eau-hn--mobile .eau-hn__item::after {
    display: none;
}

/* Active left-border on mobile */
.eau-hn--mobile .eau-hn__item--active > .eau-hn__item-inner {
    border-left: 3px solid #1A75BC;
}

/* Dropdown in mobile = accordion */
.eau-hn--mobile .eau-hn__dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border-radius: 0;
    display: none;
    background-color: #F9FAFB;
    min-width: 0;
}

.eau-hn--mobile .eau-hn__item--open > .eau-hn__dropdown {
    display: block;
}

/* Override desktop hover in mobile */
.eau-hn--mobile .eau-hn__item--has-dropdown:hover > .eau-hn__dropdown {
    display: none;
    opacity: 0;
    visibility: hidden;
}

.eau-hn--mobile .eau-hn__item--has-dropdown.eau-hn__item--open:hover > .eau-hn__dropdown {
    display: block;
    opacity: 1;
    visibility: visible;
}

.eau-hn--mobile .eau-hn__sub-item {
    padding: 12px 24px 12px 36px;
}

.eau-hn--mobile .eau-hn__sub-item:first-child {
    padding-top: 16px;
}

.eau-hn--mobile .eau-hn__sub-item:last-child {
    padding-bottom: 16px;
    border-bottom: 1px solid #E4E4E7;
}

.eau-hn--mobile .eau-hn__sub-link {
    white-space: normal;
}
