/* *{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
} */


:root {
    --header-height: 65px;
}

body {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding-top: var(--header-height);
    font-family: "Montserrat", sans-serif;
}

html,
body {
    overflow-x: hidden;
}

button,
input,
select,
textarea {
    font-family: "Montserrat", sans-serif;
}

/* ======================== HEADER ======================== */
header {
    background-color: #f8f9fa;
    padding: 10px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
}

/* Container */
.container {
    width: 95%;
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ======================== LOGO ======================== */
.logo {
    display: inline-flex;
    align-items: center;
    height: 46px;
    overflow: hidden;
    font-size: 24px;
    font-weight: bold;
    color: #333;
    text-decoration: none;
}

.logo img {
    display: block;
    width: 100px;
    max-height: 44px;
    height: auto;
    object-fit: contain;
    background-color: transparent;
    mix-blend-mode: multiply;
}

/* ======================== NAVIGATION ======================== */
.navigation {
    display: flex;
    align-items: center;
    white-space: nowrap;
    gap: 12px;          /* space between ul and lang-switcher */
}

.navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 20px;
    order: 1;
}

.navigation > .book-demo {
    order: 2;
    margin-left: 20px;
}

.navigation li {
    margin-left: 0;
    white-space: nowrap;
    flex: 0 0 auto;
}

.navigation a {
    text-decoration: none;
    color: #333;
    font-size: 18px;
    padding: 5px 10px;
    display: inline-block;
    position: relative;
    transition: color 0.3s;
}

.navigation a::after {
    content: "";
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 2px;
    height: 2px;
    background-color: #2ca56f;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.25s ease;
}

.navigation a:hover {
    color: #1f7a53;
}

.navigation a:hover::after {
    transform: scaleX(1);
}

.navigation .demo-cta {
    order: 99;
    margin-left: 0;
}

/* ======================== BOOK DEMO BUTTON ======================== */
.navigation .book-demo {
    background: linear-gradient(135deg, #1e7f57, #2ca56f);
    color: #ffffff;
    border: 1px solid #1a6b49;
    border-radius: 999px;
    padding: 8px 16px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(30, 127, 87, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    line-height: 1;
    animation: demoBtnPulse 2.4s ease-in-out infinite;
}

.navigation .book-demo::after {
    display: none;
}

.navigation .book-demo:hover {
    background: linear-gradient(135deg, #0f3f2b, #16563a);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(30, 127, 87, 0.3);
    animation-play-state: paused;
}

.navigation .book-demo:focus-visible {
    color: #ffffff;
    outline: 2px solid #2ca56f;
    outline-offset: 2px;
}

@keyframes demoBtnPulse {
    0%, 100% {
        transform: translateY(0) scale(1);
        box-shadow: 0 4px 10px rgba(30, 127, 87, 0.25);
    }
    50% {
        transform: translateY(-1px) scale(1.03);
        box-shadow: 0 8px 16px rgba(30, 127, 87, 0.34);
    }
}

@media (prefers-reduced-motion: reduce) {
    .navigation .book-demo {
        animation: none;
    }
}

/* ======================== LANGUAGE SWITCHER ======================== */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 4px;
    order: 100;             /* always sits after demo button */
    margin-left: 8px;
    flex-shrink: 0;
}

.lang-btn {
    font-size: 13px;
    font-weight: 700;
    color: #1f7a53;
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid transparent;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    line-height: 1;
    white-space: nowrap;
}

.lang-btn:hover {
    background: rgba(44, 165, 111, 0.12);
    border-color: rgba(44, 165, 111, 0.35);
    color: #1f7a53;
}

/* suppress the underline animation for lang buttons */
.lang-btn::after {
    display: none !important;
}

.lang-btn.active {
    background: rgba(44, 165, 111, 0.18);
    border-color: rgba(44, 165, 111, 0.5);
    color: #0f4d33;
    pointer-events: none;   /* can't click the already-active language */
    cursor: default;
}

.lang-divider {
    color: rgba(31, 122, 83, 0.4);
    font-size: 13px;
    user-select: none;
    pointer-events: none;
}

/* ======================== HAMBURGER TOGGLE ======================== */
.nav-toggle {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    display: none;
    position: absolute;
    right: 20px;
    top: 15px;
}

/* ======================== RESPONSIVE — MOBILE ======================== */
@media (max-width: 768px) {
    header {
        left: 0;
        width: 100%;
        max-width: 100%;
        transform: none;
        padding: 10px 0;
    }

    .container {
        width: 90%;
        max-width: 1200px;
        gap: 0;
        min-height: 44px;
    }

    .logo {
        height: 40px;
    }

    .logo img {
        width: 88px;
        max-height: 38px;
    }

    .navigation {
        display: block;
        white-space: normal;
    }

    .nav-toggle {
        display: block;
    }

    /* Nav slides in from the right */
    .navigation ul {
        position: fixed;
        top: 60px;
        right: 0;
        width: min(84vw, 290px);
        background-color: rgba(248, 249, 250, 0.95);
        flex-direction: column;
        display: none;
        gap: 0;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
    }

    .navigation ul.active {
        display: flex;
        transform: translateX(0);
    }

    .navigation li {
        margin: 10px 0;
    }

    .navigation a {
        font-size: 18px;
        padding: 6px 12px;
    }

    .navigation .demo-cta {
        order: initial;
        margin-left: 0;
        margin-top: 8px;
    }

    .navigation .book-demo {
        width: 100%;
        font-size: 16px;
        justify-content: center;
    }

    /* Language switcher on mobile — sits below the nav list */
    .lang-switcher {
        position: fixed;
        top: 18px;              /* vertically centred in the 65px header */
        right: 58px;            /* leaves room for the hamburger at right:20px */
        margin-left: 0;
        order: initial;
        z-index: 1001;
    }

    .lang-btn {
        font-size: 12px;
        padding: 3px 6px;
    }

    .lang-divider {
        font-size: 12px;
    }
}
