/* colors: #874b05 (main system) */
/* color2: #058776 (buttons and hoverings) */
/* color3: #ffe600 (icons only) */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Figtree', sans-serif;
}

/* top-nav */
.top-nav {
    background-color: #874b05;
    color: #ffffff;
    padding: 5px 0;
}

.social-icons {
    display: flex;
    align-items: center;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 25px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    margin-right: 8px;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    transform: scale(1.1);
}

.social-link .fa-facebook-f { color: #ffffff; }
.social-link .fa-facebook-f:hover { color: #1877F2; }
.social-link .fa-twitter { color: #ffffff; }
.social-link .fa-twitter:hover { color: #1DA1F2; }
.social-link .fa-instagram { color: #ffffff; }
.social-link .fa-instagram:hover { color: #E4405F; }
.social-link .fa-linkedin-in { color: #ffffff; }
.social-link .fa-linkedin-in:hover { color: #0A66C2; }
.social-link .fa-whatsapp { color: #ffffff; }
.social-link .fa-whatsapp:hover { color: #25D366; }
.social-link .fa-youtube { color: #ffffff; }
.social-link .fa-youtube:hover { color: #FF0000; }
.social-link .fa-pinterest-p { color: #ffffff; }
.social-link .fa-pinterest-p:hover { color: #BD081C; }
.social-link .fa-tiktok { color: #ffffff; }
.social-link .fa-tiktok:hover { color: #000000; }

.email-section {
    font-size: 14px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.email-link, .phone-link {
    color: #ffffff;
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.email-link:hover, .phone-link:hover {
    color: #ffffff;
}

.email-link i, .phone-link i {
    font-size: 18px;
    margin-right: 3px;
    color: #ebba41;
}

.social-link, .email-link, .phone-link {
    animation: slideIn 0.5s ease forwards;
}

.social-link:nth-child(1) { animation-delay: 0.1s; }
.social-link:nth-child(2) { animation-delay: 0.2s; }
.social-link:nth-child(3) { animation-delay: 0.3s; }
.social-link:nth-child(4) { animation-delay: 0.4s; }
.social-link:nth-child(5) { animation-delay: 0.5s; }
.social-link:nth-child(6) { animation-delay: 0.6s; }
.social-link:nth-child(7) { animation-delay: 0.7s; }
.social-link:nth-child(8) { animation-delay: 0.8s; }
email-link { animation-delay: 0.9s; }
.phone-link { animation-delay: 1.0s; }

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* navbar */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1030;
    background-color: #ffffff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
    border-bottom: 2px solid #874b05;
}

.navbar-brand .logo-img {
    height: 80px;
    animation: fadeIn 0.5s ease forwards;
}

.navbar-nav {
    display: flex;
    align-items: center;
}

.nav-item {
    position: relative;
}

.nav-select-wrapper {
    display: block;
}

.nav-select {
    background-color: transparent;
    color: #333;
    font-size: 14px;
    padding: 5px 10px;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: slideIn 0.5s ease forwards;
    border-radius: 5px;
    font-weight: 500;
    position: relative;
}

.nav-select i {
    margin-right: 5px;
    font-size: 14px;
    color: #058776;
}

.nav-select::after {
    content: '\f107';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-left: 5px;
    transition: transform 0.3s ease;
    color: #058776;
}

.nav-options {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    border-radius: 8px;
    min-width: 200px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    background-color: white;
    padding: 10px 0;
    z-index: 1000;
    animation: growDown 0.3s ease-in-out forwards;
}

.nav-options::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 20px;
    width: 16px;
    height: 16px;
    background-color: #ffffff;
    transform: rotate(45deg);
    border-top: 1px solid #eee;
    border-left: 1px solid #eee;
}

.nav-option {
    display: flex;
    align-items: center;
    color: #333;
    text-decoration: none;
    padding: 10px 20px;
    font-size: 12px;
    transition: all 0.3s ease;
    border-left: 1px solid transparent;
}

.nav-option i {
    margin-right: 10px;
    font-size: 18px;
    width: 20px;
    text-align: center;
    color: #ffe600;
}

.nav-option:hover {
    background-color: rgba(5, 135, 118, 0.05);
    color: #058776;
    border-left: 3px solid #058776;
    padding-left: 25px;
}

.nav-option:not(:last-child) {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-options.active {
    display: block;
}

@keyframes growDown {
    0% { opacity: 0; transform: scaleY(0) translateY(-10px); }
    80% { transform: scaleY(1.1) translateY(0); }
    100% { opacity: 1; transform: scaleY(1) translateY(0); }
}

.navbar-nav .nav-item:nth-child(1) .nav-select { animation-delay: 0.1s; }
.navbar-nav .nav-item:nth-child(2) .nav-select { animation-delay: 0.2s; }
.navbar-nav .nav-item:nth-child(3) .nav-select { animation-delay: 0.3s; }
.navbar-nav .nav-item:nth-child(4) .nav-select { animation-delay: 0.4s; }
.navbar-nav .nav-item:nth-child(5) .nav-select { animation-delay: 0.5s; }
.navbar-nav .nav-item:nth-child(6) .nav-select { animation-delay: 0.6s; }

.book-now {
    background-color: #058776;
    border-color: #058776;
    font-size: 14px;
    padding: 5px 15px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    animation: slideIn 0.5s ease forwards;
    animation-delay: 0.8s;
    border-radius: 5px;
    color: #ffffff;
    text-decoration: none;
}

.book-now i {
    margin-right: 5px;
    font-size: 14px;
    color: #ffe600;
}

.book-now:hover {
    background-color: #046b5f;
    border-color: #046b5f;
    color: #ffe600;
    transform: scale(1.05);
}

.book-now:active {
    transform: scale(0.95);
}

/* Mobile-specific Login Button */
.book-now-mobile {
    background-color: #058776;
    border-color: #058776;
    font-size: 12px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border-radius: 5px;
    color: #ffffff;
    text-decoration: none;
    width: 40px;
    height: 40px;
    animation: slideIn 0.5s ease forwards;
}

.book-now-mobile i {
    font-size: 16px;
    color: #ffe600;
    margin: 0;
}

.book-now-mobile:hover {
    background-color: #046b5f;
    border-color: #046b5f;
    color: #ffe600;
    transform: scale(1.05);
}

.book-now-mobile:active {
    transform: scale(0.95);
}

.navbar-toggler {
    border: none;
    animation: fadeIn 0.5s ease forwards;
    padding: 6px 12px;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler .navbar-toggler-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #058776;
    font-size: 22px;
}

.navbar-toggler .menu-icon {
    display: inline-block;
}

.navbar-toggler .close-icon {
    display: none;
}

.navbar-toggler[aria-expanded="true"] .menu-icon {
    display: none;
}

.navbar-toggler[aria-expanded="true"] .close-icon {
    display: inline-block;
}

.mobile-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    color: #058776;
    cursor: pointer;
    z-index: 1001;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(5, 135, 118, 0.1);
    transition: all 0.3s ease;
}

.mobile-close-btn:hover {
    background-color: rgba(5, 135, 118, 0.2);
    transform: rotate(90deg);
}

@media (max-width: 991.98px) {
    /* Name/login + hamburger: stable stacking; dropdown must not sit under the toggler */
    .navbar-mobile-trailing {
        position: relative;
        z-index: 1045;
        align-items: center;
    }

    .navbar-mobile-trailing .navbar-toggler {
        position: relative;
        z-index: 1046;
    }

    .nav-user-menu--mobile {
        z-index: 1047;
    }

    .nav-user-menu--mobile.is-open {
        z-index: 1060;
    }

    /* Toggler is to the RIGHT of the name — keep dropdown right-aligned so it grows left, away from the button */
    .nav-user-menu--mobile .nav-user-dropdown {
        left: auto;
        right: 0;
        top: calc(100% + 8px);
        min-width: min(240px, calc(100vw - 5.5rem));
        max-width: calc(100vw - 5.5rem);
    }

    .navbar-collapse {
        background-color: #ffffff;
        padding: 20px;
        box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        z-index: 1000;
    }

    .navbar-collapse.show {
        transform: translateX(0);
    }

    .navbar-nav {
        flex-direction: column;
        width: 100%;
        margin-top: 50px;
    }

    .nav-item {
        margin: 10px 0;
        width: 100%;
    }

    .nav-select-wrapper {
        display: block;
    }

    .nav-select {
        width: 100%;
        justify-content: flex-start;
        padding: 10px 15px;
        background-color: rgba(5, 135, 118, 0.05);
        border-radius: 8px;
        font-size: 16px;
    }

    .nav-select::after {
        position: absolute;
        right: 15px;
    }

    .nav-options {
        position: static;
        min-width: 100%;
        box-shadow: none;
        border: none;
        background-color: transparent;
        padding: 0;
        margin: 10px 0;
    }

    .nav-options::before {
        display: none;
    }

    .nav-option {
        padding: 10px 15px;
        font-size: 14px;
        border-left: none;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .nav-option:hover {
        background-color: rgba(5, 135, 118, 0.05);
        color: #058776;
        padding-left: 15px;
    }

    .mobile-buttons {
        width: 100%;
        flex-direction: column;
        margin-top: 20px;
    }

    /* Hide desktop buttons on mobile */
    .desktop-buttons {
        display: none !important;
    }
}

@media (min-width: 992px) {
    /* Brand + collapse share one vertical middle line */
    .navbar-expand-lg > .container {
        align-items: center;
    }

    /*
     * Desktop navbar row: [nav grows + centers its items] [desktop-buttons pinned right]
     * Matches guest layout: links in the middle, Login+Translate (or name+Translate) on the right.
     */
    .navbar-expand-lg .navbar-collapse {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        flex-grow: 1;
        min-width: 0;
    }

    .navbar-expand-lg .navbar-collapse > .navbar-nav {
        flex: 1 1 auto !important;
        min-width: 0;
        justify-content: center !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .navbar-expand-lg .navbar-collapse > .desktop-buttons {
        flex: 0 0 auto !important;
        margin-left: auto !important;
    }

    /* Ensure mobile login is hidden on large screens */
    .book-now-mobile {
        display: none !important;
    }

    /* Show desktop buttons */
    .desktop-buttons {
        display: flex !important;
        align-items: center;
        align-self: center;
    }

    .mobile-buttons {
        display: none !important;
    }
}

@media (hover: hover) {
    .nav-item:hover .nav-options {
        display: block;
    }

    .nav-item:hover .nav-select::after {
        transform: rotate(-180deg);
    }
}

.nav-item.active .nav-options {
    display: block;
}

.nav-item.active .nav-select::after {
    transform: rotate(-180deg);
}

/* Logged-in: first-name trigger + links (Profile, Home, Application case, Log out) */
.nav-user-menu {
    position: relative;
    z-index: 1040;
}
/* Reserve space for hamburger + gap so the label doesn’t crowd the toggler */
.nav-user-menu--mobile {
    max-width: min(200px, calc(100vw - 5.5rem));
}
.nav-user-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    min-height: 44px;
    padding: 0.35rem 0.65rem;
    border: none;
    border-radius: 8px;
    background: #fff;
    color: #333;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(5, 135, 118, 0.12);
    max-width: 100%;
    box-shadow: none;
}
.nav-user-trigger__name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 600;
}
.nav-user-trigger__caret {
    font-size: 0.7rem;
    color: #058776;
    transition: transform 0.2s ease;
}
.nav-user-menu.is-open .nav-user-trigger__caret {
    transform: rotate(180deg);
}
.nav-user-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 220px;
    max-width: min(280px, 92vw);
    padding: 0.35rem 0;
    margin: 0;
    background: #fff;
    border: 1px solid rgba(5, 135, 118, 0.2);
    border-radius: 10px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    z-index: 1080;
}
.nav-user-menu--desktop .nav-user-dropdown {
    right: 0;
    left: auto;
}
.nav-user-menu.is-open .nav-user-dropdown {
    display: block;
}
.nav-user-dropdown__link {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0.65rem 1rem;
    color: #333;
    text-decoration: none;
    font-size: 0.9rem;
    border: 0;
    background: transparent;
    text-align: left;
    cursor: pointer;
}
.nav-user-dropdown__link:hover {
    background: rgba(5, 135, 118, 0.08);
    color: #058776;
}
.nav-user-dropdown__link--btn {
    color: #b02a37;
}
.nav-user-dropdown__logout {
    margin: 0;
    padding: 0;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    margin-top: 0.25rem;
    padding-top: 0.25rem;
}

/* Logged in (desktop): name menu in desktop-buttons row */
@media (min-width: 992px) {
    .desktop-buttons--auth {
        align-items: center !important;
        align-self: center !important;
        flex-wrap: nowrap;
    }

    .desktop-buttons--auth .nav-user-menu--desktop {
        flex: 0 0 auto !important;
        width: max-content !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
        display: inline-flex !important;
        align-items: center !important;
        align-self: center !important;
        min-height: 0 !important;
    }

    .desktop-buttons--auth .nav-user-trigger {
        box-sizing: border-box;
        min-height: 34px;
        height: 34px;
        margin: 0;
        padding: 0 10px;
        border: none !important;
        box-shadow: none !important;
        outline: none;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0.35rem;
        line-height: 1;
        font-size: 14px;
        font-weight: 500;
        vertical-align: middle;
        animation: none !important;
        border-radius: 8px;
        background: transparent;
        color: #333;
    }

    .desktop-buttons--auth .nav-user-trigger i {
        font-size: 12px;
        line-height: 1;
    }

    .desktop-buttons--auth .nav-user-trigger:hover,
    .desktop-buttons--auth .nav-user-trigger:focus {
        background-color: rgba(5, 135, 118, 0.08) !important;
        color: #058776 !important;
        transform: none !important;
        border: none !important;
        box-shadow: none !important;
    }

    .desktop-buttons--auth .nav-user-trigger:hover .nav-user-trigger__caret {
        color: #058776;
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* When hero Google Translate is loaded (translate.blade), hide plugin top bar */
.VIpgJd-ZVi9od-l4eHX-hSRGPd {
    display: none !important;
}