/* ============================================================
   SITE HEADER & NAVIGATION
   ============================================================ */

:root {
    --jr-dark:          #1a1a1a;
    --jr-darker:        #0f0f0f;
    --jr-gold:          #c8a032;
    --jr-teal:          #4ecdc4;
    --jr-white:         #ffffff;
    --jr-muted:         #aaaaaa;
    --jr-header-height: 115px;
}

/* ---- Outer wrapper ---- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(0, 0, 0, 1);
    height: var(--jr-header-height);
}

.header-inner {
  display: flex;
  align-items: center;
  height: 100%;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 0 50px 0 45px;
  font-family: "brother-1816", sans-serif;
}

/* ---- Logo ---- */
.site-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
    margin-right: 60px;
}

.logo-svg {
    height:auto;
    max-width: 255px;
    display: block;
}

/* ---- Primary navigation list ---- */
.site-nav {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    height: 100%;
    flex: 1;
    column-gap: 40px;
}

.site-nav > li {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.site-nav > li > a,
.site-nav > li > .nav-parent {
    display: flex;
    align-items: center;
    height: 100%;
    color: var(--jr-white);
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 0;
    transition: color 0.2s ease;
    white-space: nowrap;
    background: none;
    border: none;
    font-family: inherit;
  }

.site-nav > li > .nav-parent {
    cursor: pointer;
}

.site-nav > li > a:hover,
.site-nav > li > a.active,
.site-nav > li > .nav-parent:hover,
.site-nav > li.current > .nav-parent,
.site-nav > li.current > a {
    color: var(--jr-gold);
}

/* ---- Dropdown ---- */
.site-nav > li > .nav-dropdown {
    display: none;
    position: absolute;
    top: calc(100% - 3px);
    left: 0;
    background-color: var(--jr-darker);
    min-width: 240px;
    list-style: none;
    margin: 0;
    padding: 8px 0;
    z-index: 1001;
    border-top: 3px solid var(--jr-gold);
}

.site-nav > li:hover > .nav-dropdown {
    display: block;
}

.nav-dropdown li a {
    display: block;
    color: var(--jr-white);
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    padding: 11px 24px;
    transition: color 0.2s ease, background-color 0.2s ease;
    white-space: nowrap;
}

.nav-dropdown li a:hover {
    color: var(--jr-gold);
    background-color: rgba(255, 255, 255, 0.04);
}

.nav-dropdown li a.active {
    color: var(--jr-gold);
}

/* ---- Header right: LinkedIn + divider + phones ---- */
.header-right {
    display: flex;
    align-items: center;
    height: 100%;
    margin-left: auto;
    flex-shrink: 0;
    gap: 18px;
}

.header-linkedin {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    flex-shrink: 0;
    transition: opacity 0.2s ease;
}

.header-linkedin:hover {
    opacity: 0.75;
}

.linkedin-icon {
    display: block;
    width: 25px;
    height: auto;
}

.header-divider {
  width: 1px;
  height: 60%;
  background-color: var(--jr-gold);
  flex-shrink: 0;
}

.header-phones {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-family: "brother-1816", sans-serif;
    color: var(--jr-white);
    white-space: nowrap;
}

.header-phones .phone-icon {
    width: 18px;
    height: auto;
    display: block;
    margin-right: 16px;
    flex-shrink: 0;
}

.phone-entry .phone-city {
  color: var(--jr-white);
  font-weight: 400;
  font-size: 16px;
}

.phone-entry .phone-number {
    color: var(--jr-white);
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
}

.phone-entry .phone-number:hover {
    color: var(--jr-gold);
}

.phone-separator {
  color: var(--jr-white);
  font-size: 16px;
  margin: 0 4px;
}

/* ---- Mobile hamburger (hidden on desktop) ---- */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    outline: none;
    box-shadow: none;
    appearance: none;
    -webkit-appearance: none;
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;
    padding: 4px;
    margin-left: auto;
}

.nav-toggle:focus,
.nav-toggle:focus-visible,
.nav-toggle:active {
    outline: none;
    border: none;
    box-shadow: none;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--jr-white);
    transition: all 0.3s ease;
}

.nav-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ---- Responsive ---- */
@media (max-width: 1230px) {
    .site-nav {
        justify-content: center;
        column-gap: 24px;
    }

    .site-nav > li > a,
    .site-nav > li > .nav-parent {
        padding: 0;
        font-size: 13px;
    }

    .header-phones {
        font-size: 12px;
    }

    .phone-entry .phone-number {
        font-size: 13px;
    }
}

@media (max-width: 1230px) and (min-width: 1025px) {
    .logo-svg {
        max-width: 180px;
    }
}

@media (max-width: 1820px) and (min-width: 1025px) {
    .header-phones {
        display: grid;
        grid-template-columns: auto auto;
        column-gap: 16px;
        row-gap: 2px;
        align-items: center;
    }

    .header-phones .phone-icon {
        grid-row: 1 / span 2;
        margin-right: 0;
    }

    .header-phones > .phone-entry:first-of-type {
        grid-column: 2;
        grid-row: 1;
    }

    .header-phones > .phone-entry:last-of-type {
        grid-column: 2;
        grid-row: 2;
    }

    .header-phones .phone-entry {
        display: grid;
        grid-template-columns: 115px auto;
        align-items: baseline;
    }

    .header-phones .phone-city {
        display: inline-block;
    }

    .phone-separator {
        display: none;
    }
}

@media (max-width: 1024px) {
    .header-inner {
        padding: 0 16px 0 20px;
        border-bottom: none;
    }

    .site-logo {
        margin-right: 0;
    }

    .logo-svg {
        max-width: 225px;
    }

    .nav-toggle {
        display: flex;
        margin-left: 0;
        padding: 0;
        width: 50px;
        height: 50px;
        gap: 16px;
        align-items: center;
        justify-content: center;
        order: 3;
    }

    .nav-toggle span {
        width: 34px;
        height: 2px;
    }

    .nav-toggle.open span:nth-child(1) {
        transform: translateY(18px) rotate(45deg);
    }

    .nav-toggle.open span:nth-child(3) {
        transform: translateY(-18px) rotate(-45deg);
    }

    .site-nav,
    .header-right {
        display: none;
        justify-content:flex-start;
    }

    .header-right {
        display: flex;
        order: 2;
        margin-left: auto;
        gap: 0;
        align-items: center;
    }

    .site-header.menu-open .header-right {
        display: none;
    }

    .site-header.menu-open .nav-toggle {
        margin-left: auto;
    }

    .header-right .header-linkedin {
        width: 46px;
        height: 46px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .header-right .header-divider {
        display: block;
        height: 75px;
        margin: 0 20px;
        align-self: center;
    }

    .header-right .header-phones {
        display: none;
    }

    .site-nav.open {
        display: flex;
    }

    .site-nav.open {
        flex-direction: column;
        position: absolute;
        top: var(--jr-header-height);
        left: 0;
        right: 0;
        background-color: #000;
        height: calc(100vh - var(--jr-header-height));
        padding: 60px 0 28px;
        align-items: center;
        overflow-y: auto;
        scrollbar-gutter: stable;
        row-gap: 40px;
    }

    .site-header.menu-open .header-inner {
        border-bottom: 1px solid var(--jr-gold);
    }

    .site-header.menu-open {
        background-color: #000;
    }

    body.mobile-nav-open {
        background-color: #000;
    }

    .site-nav.open > li {
        height: auto;
        width: 100%;
        position: relative;
        flex-direction: column;
        align-items: center;
    }

    .site-nav.open > li > a,
    .site-nav.open > li > .nav-parent {
        height: auto;
        padding: 4px 20px;
        justify-content: center;
        font-size: 24px;
        line-height: 1.05;
        letter-spacing: 0;
        font-weight: 700;
        text-transform: uppercase;
    }

    .site-nav.open > li > .nav-parent {
        position: relative;
        display: flex;
        width: min(100%, 420px);
        margin: 0 auto;
        justify-content: center;
        text-align: center;
        appearance: none;
        -webkit-appearance: none;
        border: 0;
        outline: none;
        box-shadow: none;
        -webkit-tap-highlight-color: transparent;
    }

    .site-nav.open > li > .nav-parent:focus,
    .site-nav.open > li > .nav-parent:focus-visible,
    .site-nav.open > li > .nav-parent:active {
        outline: none;
        border: 0;
        box-shadow: none;
    }

    .site-nav > li > .nav-dropdown {
        position: static;
        display: none;
        border-top: none;
        background: transparent;
        min-width: 0;
        padding: 6px 0 10px;
    }

    .site-nav > li:hover > .nav-dropdown {
        display: none;
    }

    .site-nav.open > li.open > .nav-dropdown {
        display: block;
    }

    .site-nav.open > li.current > .nav-dropdown {
        display: block;
    }

    .site-nav.open > li > .nav-parent::after {
        content: '';
        width: 18px;
        height: 18px;
        position: absolute;
        top: 50%;
        margin-top: -9px;
        right: 85px;
        background-repeat: no-repeat;
        background-position: center;
        background-size: 18px 18px;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpolyline points='2,5 9,12 16,5' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    }

    .site-nav.open > li.current > .nav-parent::after,
    .site-nav.open > li.current > a,
    .site-nav.open > li.current > .nav-parent,
    .site-nav.open .nav-dropdown li a.active {
        color: var(--jr-gold);
    }

    .site-nav.open > li > .nav-parent[aria-expanded="true"] {
        color: var(--jr-gold);
    }

    .site-nav.open > li.open > .nav-parent::after,
    .site-nav.open > li.current > .nav-parent::after {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpolyline points='2,13 9,6 16,13' fill='none' stroke='%23c8a032' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    }

    .site-nav.open > li > .nav-parent[aria-expanded="true"]::after {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpolyline points='2,13 9,6 16,13' fill='none' stroke='%23c8a032' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    }

    .site-nav.open .nav-dropdown li a {
        font-size: 22px;
        font-weight: 400;
        line-height: 1.2;
        padding: 6px 20px;
        text-align: center;
        white-space: normal;
    }

}

@media (max-width: 1630px) {
    .header-divider,
    .header-phones {
        display: none;
    }
}

@media (max-width: 1330px) {
    .header-linkedin {
        display: none;
    }
}

@media (max-width: 600px) {
    .header-right .header-linkedin,
    .header-right .header-divider {
        display: none;
    }
}
