/*@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=DM+Sans:wght@300;400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');*/
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap');
/* ─── Variables ─── */
:root {
    --bg: #ffffff;
    --bg-2: #ebebeb;
    --bg-3: #f5f5f5;
    --navy: #18233E;
    --navy-dim: rgba(24,35,62,0.08);
    --navy-mid: rgba(24,35,62,0.5);
    --border: rgba(24,35,62,0.12);
    --red: #E04D39;
    --red-dim: rgba(224,77,57,0.12);
    --red-glow: rgba(224,77,57,0.06);
    --green: #2a9d5c;
    --text: #18233E;
    --text-muted: #5a6680;
    --ion-navy: #0b2149;
    --ion-navy-dark: #071534;
    --ion-orange: #ee7454;
    --text-faint: #a0aab8;
    --font-display: 'Montserrat', sans-serif;
    --font-body: 'Montserrat', sans-serif;
    --radius: 6px;
    --shadow: 0 4px 24px rgba(24,35,62,0.12);
}

html,
body,
* {
    font-family: 'Montserrat', sans-serif;
    box-sizing: border-box;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
}

.logo {
    height: 8vh;
    width: auto;
}

.site-header {
    background: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 0;
}

.logo-image {
    width: 220px;
    height: auto;
}

.logo-mark {
    width: 64px;
    height: 64px;
}

.logo-text {
    font-size: 44px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--ion-navy);
}

/* ===== Hero Section ===== */
.hero {
    position: relative;
    overflow: hidden;
    padding: 20px 2rem 300px;
    /*    min-height: 800px;*/
    background: var(--ion-navy); /* fallback while video loads */
}

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: #041e42;
    opacity: 0;
    z-index: 1;
    min-height:100vh;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1600px;
    margin: 0 auto;
    color: #ffffff;
    min-height: 65vh;
}

.breadcrumb {
    font-size: 28px;
    font-weight: 300;
    margin-bottom: 60px;
}

    .breadcrumb .current {
        font-weight: 700;
    }

    .breadcrumb .divider {
        margin: 0 10px;
        font-weight: 300;
        opacity: 0.7;
    }

.hero-title {
    text-align: center;
    font-size: 3rem;
    font-weight: 400;
    letter-spacing: 1px;
    margin: 3rem 2rem 3rem;
    outline: none;
    border: none;
}

.hero-description {
    text-align: center;
    max-width: 70rem;
    margin: 0 auto;
    font-size: 1.65rem;
    font-weight: 300;
    line-height: 1.5;
}

    .hero-description p {
        margin-bottom: 3rem;
    }

/* ===== Search + Autocomplete ===== */
.search-wrapper {
    max-width: 80rem;
    margin: 4rem auto 0;
    padding: 0 1rem;
}

.autocomplete {
    position: relative;
    width: 100%;
}

.search-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #eceef0;
    border: 2px solid var(--ion-orange);
    border-radius: 22px;
    padding: 1rem 1.8rem;
    transition: box-shadow 0.15s ease, border-radius 0.1s ease;
}

.autocomplete.is-open .search-bar {
    border-radius: 22px 22px 0 0;
    border-bottom-color: rgba(238, 116, 84, 0.35);
}

.search-bar:focus-within {
    box-shadow: 0 0 0 4px rgba(238, 116, 84, 0.15);
}

.search-bar svg {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    stroke: var(--ion-orange);
}

.search-bar input {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    font-size: 1.65rem;
    color: var(--ion-orange);
    font-weight: 500;
    width: 100%;
}

    .search-bar input::placeholder {
        color: var(--ion-orange);
        opacity: 0.9;
    }

/* Dropdown */
.autocomplete-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    list-style: none;
    margin: 0;
    padding: 8px 0;
    background: #eceef0;
    border: 2px solid var(--ion-orange);
    border-top: none;
    border-radius: 0 0 22px 22px;
    max-height: 50vh;
    overflow-y: auto;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
    z-index: 10;
}

    .autocomplete-list li {
        display: flex;
        justify-content: space-between;
        align-items: baseline;
        gap: 1.4rem;
        padding: 1.1rem 1.8rem;
        font-size: 1.2rem;
        color: var(--ion-navy);
        cursor: pointer;
    }

        .autocomplete-list li.highlighted,
        .autocomplete-list li:hover {
            background: rgba(238, 116, 84, 0.15);
        }

        .autocomplete-list li .gas-name {
            font-weight: 400;
        }

            .autocomplete-list li .gas-name strong {
                color: var(--ion-orange);
                font-weight: 700;
            }

        .autocomplete-list li .gas-cas {
            font-size: 1.2rem;
            color: #6b7280;
            white-space: nowrap;
        }

        .autocomplete-list li.no-results {
            color: #6b7280;
            font-style: italic;
            cursor: default;
            justify-content: center;
        }

/* ===== Responsive ===== */
@media (max-width: 768px) {

    .logo {
        height: 6vh;
        width: auto;
    }

    .hero {
        padding: 1px 5px 5px;
        min-height: auto;
    }

    .hero-title {
        font-size: 2rem;
        margin: 1rem 0 1.5rem;
    }

    .hero-description {
        font-size: 1rem;
        margin: 0 1rem 0 1rem;
    }

    .hero-overlay {
        position: absolute;
        inset: 0;
        background: #041e42;
        opacity: 0;
        z-index: 1;
        min-height: 100vh;
    }

    .hero {
        position: relative;
        overflow: hidden;
        padding: 2px 2px 180px;
        /*    min-height: 800px;*/
        background: var(--ion-navy); /* fallback while video loads */
    }

    .hero-content {
        position: relative;
        z-index: 2;
        margin: 0 auto;
        color: #ffffff;
        min-height: 75vh;
    }

    .search-wrapper {
        padding: 0 4px;
        margin-top: 2px;
    }

    .search-bar {
        padding: 8px 8px;
        border-radius: 16px;
        margin: 0 1rem 0 1rem;
    }

    .autocomplete.is-open .search-bar {
        border-radius: 6px 6px 0 0;
    }

    .search-bar input {
        font-size: 1rem;
    }

    .search-bar svg {
        width: 1.2rem;
        height: 1.2rem;
    }

    .autocomplete-list {
        border-radius: 0 0 6px 6px;
        margin: 0 1rem 0 1rem;
    }

        .autocomplete-list li {
            padding: 12px 20px;
            font-size: 1rem;
        }

            .autocomplete-list li .gas-cas {
                font-size: 1rem;
            }
}

@media (prefers-reduced-motion: reduce) {
    .hero-video {
        display: none;
    }

    .hero {
        background: linear-gradient(180deg, #14315e 0%, var(--ion-navy) 40%, var(--ion-navy-dark) 100%);
    }
}
