:root {
    --site-nav-height: 76px;
    --site-nav-offset: clamp(0.8rem, 1.6vw, 1.45rem);
    --section-anchor-offset: calc(var(--site-nav-height) + var(--site-nav-offset) + 0.75rem);
}

.site-nav {
    position: sticky;
    top: var(--site-nav-offset);
    z-index: 80;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(calc(100% - clamp(2rem, 8vw, 12rem)), 1640px);
    min-height: var(--site-nav-height);
    margin: var(--site-nav-offset) auto calc(-1 * (var(--site-nav-height) + var(--site-nav-offset)));
    padding: 0 clamp(1rem, 2.4vw, 2.4rem);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    background: rgba(10, 14, 26, 0.58);
    backdrop-filter: blur(18px);
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.24);
}

.site-nav__brand,
.site-nav__links,
.site-nav__link,
.site-nav__cta,
.site-nav__toggle-button {
    display: flex;
    align-items: center;
}

.site-location-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 42px;
    max-width: 190px;
    border: 1px solid rgba(175, 255, 0, 0.34);
    border-radius: 999px;
    padding: 0 0.85rem;
    background: rgba(175, 255, 0, 0.08);
    color: #fff;
    font: inherit;
    font-size: 0.88rem;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.site-location-trigger:hover {
    border-color: rgba(175, 255, 0, 0.68);
    background: rgba(175, 255, 0, 0.14);
    transform: translateY(-1px);
}

.site-location-trigger svg,
.location-use-device svg {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
}

.site-location-trigger span {
    overflow: hidden;
    text-overflow: ellipsis;
}

.location-dialog {
    position: fixed;
    inset: 0;
    width: min(92vw, 560px);
    max-height: min(88vh, 760px);
    margin: auto;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 26px;
    padding: 0;
    background: #111827;
    color: #fff;
    box-shadow: 0 32px 90px rgba(0, 0, 0, 0.58);
    overflow: auto;
}

.location-dialog::backdrop {
    background: rgba(2, 6, 15, 0.76);
    backdrop-filter: blur(8px);
}

.location-dialog__panel {
    padding: clamp(1.2rem, 4vw, 2rem);
}

.location-dialog__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.location-dialog__header h2 {
    margin: 0.3rem 0 0;
    font-family: var(--font-display);
    font-size: clamp(1.65rem, 4vw, 2.2rem);
    font-weight: var(--font-heading-weight);
    letter-spacing: -0.025em;
    line-height: 1;
}

.location-dialog__eyebrow {
    color: #afff00;
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: var(--font-list-title-weight);
    letter-spacing: 0;
}

.location-dialog__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    cursor: pointer;
}

.location-dialog__close svg {
    width: 20px;
    height: 20px;
}

.location-dialog__intro {
    margin: 1rem 0 1.25rem;
    color: #cbd5e1;
    font-weight: var(--font-card-copy-weight);
    line-height: 1.5;
}

.location-form {
    display: grid;
    gap: 1rem;
}

.location-field {
    display: grid;
    gap: 0.45rem;
    color: var(--color-label);
    font-size: 0.86rem;
    font-weight: var(--font-list-title-weight);
}

.location-field__input,
.location-field__select {
    width: 100%;
    min-height: 52px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    padding: 0 1rem;
    background: #0b1220;
    color: #fff;
    font: inherit;
    outline: none;
}

.location-field__input:focus,
.location-field__select:focus {
    border-color: #afff00;
    box-shadow: 0 0 0 3px rgba(175, 255, 0, 0.12);
}

.location-field--radius {
    grid-template-columns: 1fr 130px;
    align-items: center;
}

.location-suggestions-wrap {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    background: #f8fafc;
    color: #0f172a;
}

.location-suggestions {
    list-style: none;
    margin: 0;
    padding: 0.35rem;
}

.location-suggestion {
    width: 100%;
    border: 0;
    border-radius: 11px;
    padding: 0.75rem;
    background: transparent;
    color: inherit;
    text-align: left;
    cursor: pointer;
}

.location-suggestion:hover,
.location-suggestion:focus-visible {
    background: #eaf1fb;
}

.location-suggestion strong,
.location-suggestion span {
    display: block;
}

.location-suggestion span {
    margin-top: 0.15rem;
    color: var(--color-label-on-light);
    font-size: 0.82rem;
}

.google-attribution {
    display: flex;
    justify-content: flex-end;
    align-items: baseline;
    gap: 0.3rem;
    padding: 0.35rem 0.7rem 0.55rem;
    color: var(--color-label-on-light);
    font-family: Arial, sans-serif;
    font-size: 0.7rem;
}

.google-attribution strong {
    font-size: 1rem;
    letter-spacing: -0.08em;
}

.google-attribution i {
    font-style: normal;
}

.google-attribution i:nth-child(1),
.google-attribution i:nth-child(4) { color: #4285f4; }
.google-attribution i:nth-child(2),
.google-attribution i:nth-child(6) { color: #ea4335; }
.google-attribution i:nth-child(3) { color: #fbbc05; }
.google-attribution i:nth-child(5) { color: #34a853; }

.location-use-device {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-height: 48px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    font: inherit;
    font-weight: var(--button-font-weight);
    cursor: pointer;
}

.location-selection {
    border: 1px solid rgba(175, 255, 0, 0.34);
    border-radius: 14px;
    padding: 0.85rem 1rem;
    background: rgba(175, 255, 0, 0.08);
    color: #fff;
    font-weight: var(--font-card-copy-weight);
}

.location-dialog__status {
    min-height: 1.25rem;
    margin: 0;
    color: var(--color-label);
    font-size: 0.84rem;
    font-weight: var(--font-card-copy-weight);
}

.location-dialog__status[data-error="true"] {
    color: #fda4af;
}

.location-dialog__actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

.location-remove {
    border-color: rgba(255, 255, 255, 0.16);
    background: transparent;
    color: #cbd5e1;
}

.site-nav__brand {
    color: #fff;
}

.brand-lockup {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: inherit;
    text-decoration: none;
}

.brand-lockup__mark {
    width: 32px;
    height: 35px;
    flex: 0 0 auto;
    border-radius: 10px;
    display: block;
    object-fit: contain;
}

.brand-lockup__name {
    font-family: var(--font-body);
    font-size: 1.27rem;
    font-weight: 400;
    letter-spacing: 0.07em;
}

.brand-name {
    display: inline-flex;
    align-items: center;
    gap: 0.04em;
    color: inherit;
}

.brand-name__accent {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 0.9em;
    height: 0.9em;
    margin: 0 0.01em;
    transform: translateY(0.02em);
}

.brand-name__accent-icon {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.site-nav__links {
    gap: 0.35rem;
}

.site-nav__link {
    min-height: 44px;
    border-radius: var(--radius-button);
    padding: 0 1rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 400;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.site-nav__link {
    color: #cbd5e1;
}

.site-nav__link:hover,
.site-nav__link--active {
    color: #fff;
    background: rgba(255, 255, 255, 0.07);
}

.site-nav__cta {
    margin-left: 0.5rem;
}

.site-nav__cta:hover {
    transform: translateY(-1px);
}

.site-nav__cta svg,
.button-brand-icon {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    display: block;
}

.site-nav__toggle {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.site-nav__toggle-button {
    display: none;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius-button);
    cursor: pointer;
}

.site-nav__toggle-button span {
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: #fff;
}

@media (max-width: 1180px) {
    .site-nav {
        width: calc(100% - 1.5rem);
        min-height: 68px;
        padding: 0 0.75rem 0 0.95rem;
        margin-bottom: calc(-1 * (68px + var(--site-nav-offset)));
    }

    .site-nav__toggle-button {
        display: flex;
    }

    .site-nav__links {
        position: absolute;
        top: calc(100% + 0.65rem);
        left: 1rem;
        right: 1rem;
        display: grid;
        gap: 0.55rem;
        padding: 0.8rem;
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 18px;
        background: rgba(10, 14, 26, 0.84);
        box-shadow: 0 22px 60px rgba(0, 0, 0, 0.36);
        opacity: 0;
        transform: translateY(-8px);
        pointer-events: none;
        transition: opacity 0.2s ease, transform 0.2s ease;
    }

    .site-nav__toggle:checked ~ .site-nav__links {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    .site-nav__link,
    .site-nav__cta,
    .site-location-trigger {
        justify-content: center;
        min-height: 48px;
        width: 100%;
        max-width: none;
        margin-left: 0;
    }

    .location-dialog__actions {
        flex-direction: column-reverse;
    }

    .location-dialog__actions .btn {
        width: 100%;
    }
}
