/* ============================================================
   Apex Nav  —  Global Stylesheet  v1.0.0
   Clean, zero-glitch, fully responsive header widget.
   All breakpoint logic lives in per-instance <style> tags
   generated by widget.php so this file handles only
   visual design — colours, spacing, animations.
   ============================================================ */

/* ── Box sizing reset for all nav elements ── */
.an-nav *,
.an-nav *::before,
.an-nav *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ── Nav shell ── */
.an-nav {
    width: 100%;
    background-color: #2d2d2d;
    font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    -webkit-font-smoothing: antialiased;
    position: relative;
    z-index: 9999;
}

.an-nav.an-sticky {
    position: sticky;
    top: 0;
    z-index: 9999;
}

/* Editor: sticky conflicts */
.elementor-editor-active .an-sticky {
    position: relative;
}

/* ── Main bar — flex, single row on desktop/tablet ── */
.an-bar {
    display: flex;
    align-items: center;
    height: 72px;
    padding: 0 32px;
    gap: 0;
    width: 100%;
    overflow: visible;
}

/* ────────────────────────────────
   LOGO
──────────────────────────────── */
.an-logo-wrap {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-decoration: none;
    flex-shrink: 0;
    line-height: 1;
    margin-right: 32px;        /* gap between logo and nav */
}

.an-logo-img {
    width: 200px;
    height: 52px;
    object-fit: contain;
    object-position: left center;
    display: block;
}

.an-logo-text {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #d4a843;
    line-height: 1.2;
}

.an-logo-tagline {
    display: block;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.04em;
    color: rgba(212, 168, 67, 0.65);
    margin-top: 3px;
}

/* ────────────────────────────────
   DESKTOP NAV LIST
──────────────────────────────── */
.an-nav-list {
    list-style: none;
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: center;
    gap: 2px;
}

.an-link {
    display: inline-block;
    color: #cccccc;
    text-decoration: none;
    font-size: 12.5px;
    font-weight: 500;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 4px;
    white-space: nowrap;
    transition: color 0.18s ease, background-color 0.18s ease;
}

.an-link:hover {
    color: #d4a843;
    background-color: rgba(212, 168, 67, 0.09);
}

/* ────────────────────────────────
   RIGHT WRAP (buttons + burger)
──────────────────────────────── */
.an-right-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    margin-left: auto;
}

/* ────────────────────────────────
   SHARED BUTTON BASE
──────────────────────────────── */
.an-call,
.an-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.03em;
    white-space: nowrap;
    cursor: pointer;
    line-height: 1;
    border: none;
    outline: none;
    transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    /* Default sizing — equal height via padding */
    padding: 10px 20px;
    min-height: 40px;
}

.an-call:hover,
.an-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
}

/* ── Call ── */
.an-call {
    background-color: #d4a843;
    color: #1a1a1a;
    border-radius: 8px;
}

.an-call:hover {
    background-color: #e8c060;
}

.an-call svg {
    flex-shrink: 0;
    width: 14px;
    height: 14px;
}

/* ── CTA ── */
.an-cta {
    background-color: #ffffff;
    color: #2d2d2d;
    border-radius: 5px;
}

.an-cta:hover {
    background-color: #efefef;
}

/* Desktop button group */
.an-btn-desktop {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ────────────────────────────────
   TABLET CALL (shown tab only)
  Visibility controlled by
  per-instance <style> breakpoints
──────────────────────────────── */
.an-call-tablet {
    /* hidden by default; shown by breakpoint CSS */
    display: none;
}

/* ────────────────────────────────
   MOBILE CALL (grid area "call")
──────────────────────────────── */
.an-call-mobile {
    display: none;     /* shown by breakpoint CSS */
    width: 100%;
}

/* Alignment variants */
.an-call-mob-left   { text-align: left; }
.an-call-mob-center { text-align: center; }
.an-call-mob-right  { text-align: right; }

.an-call-mob-left   .an-call { margin-right: auto; }
.an-call-mob-center .an-call { margin: 0 auto; }
.an-call-mob-right  .an-call { margin-left: auto; }

/* ────────────────────────────────
   HAMBURGER
──────────────────────────────── */
.an-burger {
    display: none;     /* shown by breakpoint CSS */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 5px;
    flex-shrink: 0;
    transition: background-color 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.an-burger:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.an-burger span {
    display: block;
    width: 22px;
    height: 2px;
    background-color: #ffffff;
    border-radius: 2px;
    transform-origin: center;
    transition: transform 0.28s ease, opacity 0.2s ease, width 0.25s ease;
    pointer-events: none;
}

/* Burger → X */
.an-burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.an-burger.is-open span:nth-child(2) { opacity: 0; width: 0; }
.an-burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ────────────────────────────────
   MOBILE DROPDOWN MENU
──────────────────────────────── */
.an-mob-menu {
    display: block;
    background-color: #252525;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    /* No borders, no dividers */
}

.an-mob-menu.is-open {
    max-height: 560px;
}

.an-mob-link {
    display: block;
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 15px 24px;
    /* No border-bottom — per user request */
    transition: color 0.18s ease, background-color 0.18s ease, padding-left 0.18s ease;
}

.an-mob-link:hover {
    color: #d4a843;
    background-color: rgba(212, 168, 67, 0.08);
    padding-left: 32px;
}

.an-mob-cta-row {
    padding: 14px 24px 18px;
}

.an-mob-cta {
    display: inline-flex;
}
