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

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

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

:root {
    --font-family: "Inter", sans-serif;
    --primary-color: #171414;
}

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 1.5rem;
}

/* 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;
    padding: 0 1.5rem;
    margin: 0 auto;
    position: relative;
    z-index: 40;
}

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

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

.logo-text {
    font-weight: bold;
    font-size: 1.5rem;
    color: var(--primary-color);
    white-space: nowrap;
}

.logo-text-emph {
    color: #007bff; /* primary color */
    font-weight: 600;
    font-size: 1.5rem;
}

/* 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;
}

.btn {
    border: none;
    padding: 0.75rem 1.25rem;
    border-radius: 9999999px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

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

.btn-primary:hover {
    background-color: #333333;
}

.btn-full-width {
    width: 100%;
}

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

.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 1.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-wrapper {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: 15px;
    z-index: 9999;
    background: white;
    border: 1px solid #e4e4e4;
    width: 50%;
    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;
}

.cookies-banner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.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;
}

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

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