/* =========================================
   AJ ORTHO CARE NAVIGATION
========================================= */

:root {
    --aj-primary: #199c97;
    --aj-secondary: #80c491;
    --aj-white: #ffffff;
    --aj-dark: #163b39;
    --aj-text: #1e4f4c;
    --aj-border: rgba(25, 156, 151, 0.2);
}

/* Header */

.ajHeader {
    position: fixed;
    top: 0; right: 0; left: 0;
    width: 100%;
    background-color: var(--aj-white);
    border-top: 1px solid var(--aj-border);
    border-bottom: 1px solid var(--aj-border);
    z-index: 1050;
}

.ajHeaderContainer {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) auto minmax(230px, 1fr);
    align-items: stretch;
    min-height: 78px;
    padding: 0;
}

/* Logo */

.ajHeaderLogo {
    display: flex;
    align-items: center;
    padding: 11px 42px;
    border-right: 1px solid var(--aj-border);
    text-decoration: none;
}

.ajHeaderLogo img {
    display: block;
    width: auto;
    max-width: 180px;
    max-height: 54px;
    object-fit: contain;
}

/* Desktop navigation */

.ajDesktopNav {
    display: flex;
    align-items: stretch;
    justify-content: center;
}

.ajDesktopNavList {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: clamp(22px, 2vw, 42px);
    margin: 0;
    padding: 0 35px;
    list-style: none;
}

.ajDesktopNavList li {
    display: flex;
    align-items: stretch;
}

.ajDesktopNavList a {
    position: relative;
    display: flex;
    align-items: center;
    color: var(--aj-dark);
    font-family: "Bai Jamjuree", sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
    transition: color 0.3s ease;
}

.ajDesktopNavList a::after {
    position: absolute;
    right: 50%;
    bottom: 20px;
    left: 50%;
    height: 2px;
    background-color: var(--aj-primary);
    content: "";
    transition:
        right 0.3s ease,
        left 0.3s ease;
}

.ajDesktopNavList a:hover,
.ajDesktopNavList a:focus,
.ajDesktopNavList a.active {
    color: var(--aj-primary);
}

.ajDesktopNavList a:hover::after,
.ajDesktopNavList a:focus::after,
.ajDesktopNavList a.active::after {
    right: 0;
    left: 0;
}

/* Header right */

.ajHeaderRight {
    display: flex;
    align-items: stretch;
    justify-content: flex-end;
    border-left: 1px solid var(--aj-border);
}

.ajHeaderPhone {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 220px;
    padding: 15px 28px;
    color: var(--aj-dark);
    font-family: "Bai Jamjuree", sans-serif;
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    transition:
        color 0.3s ease,
        background-color 0.3s ease;
}

.ajHeaderPhone:hover {
    color: var(--aj-white);
    background-color: var(--aj-primary);
}

/* Hamburger */

.ajMenuToggle {
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    width: 78px;
    min-height: 78px;
    padding: 20px;
    background-color: var(--aj-white);
    border: 0;
    border-left: 1px solid var(--aj-border);
    cursor: pointer;
}

.ajMenuToggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--aj-primary);
    border-radius: 20px;
    transition:
        transform 0.3s ease,
        opacity 0.3s ease;
}

.ajMenuToggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.ajMenuToggle.active span:nth-child(2) {
    opacity: 0;
}

.ajMenuToggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* =========================================
   MOBILE OVERLAY MENU
========================================= */

.ajMobileMenu {
    position: fixed;
    top: 78px;
    right: 0;
    bottom: 0;
    left: 0;
    visibility: hidden;
    overflow-y: auto;
    background-color: var(--aj-primary);
    opacity: 0;
    transform: translateY(-20px);
    transition:
        visibility 0.35s ease,
        opacity 0.35s ease,
        transform 0.35s ease;
    z-index: 1040;
}

.ajMobileMenu.active {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.ajMobileMenuInner {
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    min-height: 100%;
    padding: 45px clamp(20px, 5vw, 70px);
}

.ajMobileMenuList {
    margin: 0;
    padding: 0;
    list-style: none;
}

.ajMobileMenuList li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}

.ajMobileMenuList a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 21px 4px;
    color: var(--aj-white);
    font-family: "Bai Jamjuree", sans-serif;
    font-size: clamp(24px, 5vw, 42px);
    font-weight: 500;
    line-height: 1.1;
    text-decoration: none;
}

.ajMobileMenuList a:hover {
    color: var(--aj-white);
}

.ajMobileMenuList i {
    font-size: 20px;
    transition: transform 0.3s ease;
}

.ajMobileMenuList a:hover i {
    transform: translate(5px, -5px);
}

.ajMobileMenuContact {
    margin-top: 50px;
    padding: 25px;
    background-color: var(--aj-secondary);
}

.ajMobileMenuContact p {
    margin-bottom: 8px;
    color: var(--aj-dark);
    font-size: 14px;
    font-weight: 500;
}

.ajMobileMenuContact a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--aj-dark);
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
}

body.ajMenuOpen {
    overflow: hidden;
}

/* =========================================
   LAPTOP
========================================= */

@media (max-width: 1399.98px) {

    .ajHeaderContainer {
        grid-template-columns: 205px auto 195px;
    }

    .ajHeaderLogo {
        padding-right: 25px;
        padding-left: 25px;
    }

    .ajHeaderLogo img {
        max-width: 155px;
    }

    .ajDesktopNavList {
        gap: 21px;
        padding: 0 22px;
    }

    .ajDesktopNavList a {
        font-size: 12px;
    }

    .ajHeaderPhone {
        min-width: 195px;
        padding: 15px 18px;
        font-size: 13px;
    }
}

/* =========================================
   TABLET
========================================= */

@media (max-width: 1199.98px) {

    .ajHeaderContainer {
        display: flex;
        justify-content: space-between;
        min-height: 72px;
    }

    .ajHeaderLogo {
        flex: 1;
        padding: 10px 24px;
    }

    .ajHeaderLogo img {
        max-width: 150px;
        max-height: 50px;
    }

    .ajDesktopNav {
        display: none;
    }

    .ajHeaderRight {
        flex-shrink: 0;
    }

    .ajHeaderPhone {
        min-width: 190px;
        border-right: 0;
    }

    .ajMenuToggle {
        display: flex;
        width: 76px;
        min-height: 72px;
    }

    .ajMobileMenu {
        top: 72px;
    }
}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 575.98px) {

    .ajHeaderContainer {
        min-height: 68px;
    }

    .ajHeaderLogo {
        padding: 9px 16px;
    }

    .ajHeaderLogo img {
        max-width: 130px;
        max-height: 46px;
    }

    .ajHeaderPhone {
        display: none;
    }

    .ajMenuToggle {
        width: 68px;
        min-height: 68px;
        padding: 18px;
    }

    .ajMenuToggle span {
        width: 23px;
    }

    .ajMobileMenu {
        top: 68px;
    }

    .ajMobileMenuInner {
        padding: 28px 18px;
    }

    .ajMobileMenuList a {
        padding: 18px 3px;
        font-size: 22px;
    }

    .ajMobileMenuContact {
        padding: 20px;
    }

    .ajMobileMenuContact a {
        font-size: 16px;
    }
}