@font-face {
    font-family: "Inter";
    src: url("/assets/fonts/Inter-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Inter";
    src: url("/assets/fonts/Inter-Bold.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --font-family: "Inter", sans-serif;
    --primary-color: rgba(51, 51, 51, 1);
    --secondary-color: #f0f0f0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    scroll-behavior: smooth;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
span,
td,
th,
a,
li,
input,
button {
    color: var(--primary-color);
}

#main-container {
    position: relative;
    max-width: 1220px;
    width: 100%;
    margin: 5rem auto 5rem;
}

.header {
    position: sticky;
    top: 0;
    z-index: 40;
}

.main-section {
    text-align: center;
    max-width: 1024px;
    margin: auto;
    padding: 0 8px;
}

/* Global Reset & Layout */
.navbar {
    position: sticky;
    top: 0;
    inset-inline: 0;
    z-index: 40;
    width: 100%;
    backdrop-filter: saturate(150%) blur(10px);
    background-color: rgba(255, 255, 255, 0.7); /* adjust for dark/light */
}

.navbar-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    max-width: 1024px;
    height: 4rem;
    margin: 0 auto;
    position: relative;
    z-index: 40;
    padding-top: 10px;
}

/* Branding */
.navbar-brand {
    display: flex;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

/* Navigation Menu */
.navbar-menu {
    display: flex;
    flex-direction: row;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    height: 100%;
}

.navbar-menu-center {
    justify-content: center;
    flex-grow: 1;
    gap: 1rem;
}

.nav-item-lang {
    position: relative;
    margin-right: 1rem;
}

.navbar-menu-end {
    justify-content: flex-end;
    flex-grow: 0;
    gap: 0.5rem;
}

.nav-item {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 500;
    transition: opacity 0.3s;
}

.nav-item:hover {
    opacity: 0.8;
}

/* Buttons */

.btn-auth {
    text-decoration: none;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition:
        opacity 0.2s,
        transform 0.2s;
    padding: 0.5rem 1rem;
    border-radius: 999999px;
    font-size: 14px;
}

.btn-signin {
    background-color: rgba(0, 0, 0, 0.04);
    color: var(--primary-color);
}

.btn-signup {
    background-color: var(--primary-color);
    color: white;
}

.btn-signup:hover {
    opacity: 0.85;
}

.hide-on-mobile {
    display: none;
}

.cookies-title {
    margin-bottom: 16px;
}

.globe-switch {
    color: #0051a9;
    cursor: pointer;
    transition: color 0.2s;
    width: 22px;
    height: 22px;
    position: relative;
    top: 2px;
}

.globe-switch:hover {
    color: #1f81e9;
}

.lang-panel {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 1rem;
    padding: 1rem;
    margin-top: 8px;
    z-index: 1000;
    width: 160px;
    box-shadow:
        rgba(0, 0, 0, 0) 0px 0px 0px 0px,
        rgba(0, 0, 0, 0) 0px 0px 0px 0px,
        rgba(0, 0, 0, 0.1) 0px 4px 6px -1px,
        rgba(0, 0, 0, 0.1) 0px 2px 4px -2px;
}

.lang-panel li {
    list-style: none;
}

.lang-panel li a {
    display: block;
    padding: 8px 16px;
    color: var(--primary-color);
    text-decoration: none;
}

.lang-panel li a:hover {
    background: #f3f4f6;
    border-radius: 0.75rem;
}

.footer {
    background-color: var(--primary-color);
}

.footer a,
.footer p {
    color: #d6d6d6;
    font-size: 14px;
}

.footer-copyright-wrapper {
    border-top: 1px solid #919191;
    padding-top: 0.5rem;
}

.footer .footer-copyright {
    text-align: left;
    font-size: 0.75rem;
    color: #919191;
}

.footer-container {
    max-width: 1024px;
    margin: 0 auto;
    padding: 3rem 0.5rem 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 3.5rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.footer-logo-wrapper,
.footer-links-wrapper {
    width: 50%;
}

.footer-links-wrapper {
    display: flex;
    padding-left: 3rem;
    gap: 3rem;
}

.footer .footer-list-item-title {
    font-size: 16px;
    color: white;
    margin-bottom: 0.5rem;
}

.footer-list {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.logo-text-footer {
    color: white;
}

.cookies-banner__link {
    color: black;
    text-decoration: underline;
}
.cookies-banner-wrapper {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    padding: 20px;
    background: rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(2px);
}

.cookies-banner {
    max-width: 980px;
    margin: 0 auto;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
    padding: 14px;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.cookies-banner__p {
    margin: 0;
    line-height: 1.45;
    font-size: 14px;
    color: #1f2937;
}

.cookies-banner__actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.cookies-btn {
    min-width: 140px;
}

.footer-list-item-link:hover a{
    text-decoration: underline;
}

@media (max-width: 520px) {
    .cookies-btn {
        min-width: auto;
    }
    .cookies-banner__actions {
        justify-content: stretch;
    }
    .cookies-banner__actions .btn {
        flex: 1;
    }
}

.back-to-top {
    position: sticky;
    bottom: 1rem;
    margin-left: auto;
    z-index: 1000;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border: none;
    border-radius: 999px;
    background: #111; /* adjust to your theme */
    color: #fff; /* SVG uses currentColor */
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);

    /* hidden by default */
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
    transition:
        opacity 0.2s,
        transform 0.2s;
}

.back-to-top svg {
    width: 20px;
    height: 20px;
}

.back-to-top.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.logo-icon {
    width: 50px;
}

.logo-text {
    width: 150px;
}



/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    .back-to-top {
        transition: none;
    }
}

@media (min-width: 1024px) {
    .hide-on-mobile {
        display: list-item;
    }
}
