:root {
	--header-height: 70px;
	--header-tucked-height: 60px;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
    color: var(--text-color);
    position: fixed;
    top: 0;
    z-index: 1000;
    transition: height 0.3s;
    width: 100%;

}
header {
  user-select: none;
}


.header-bg {
	background: var(--header-color);
	backdrop-filter: blur(7px);
	-webkit-backdrop-filter: blur(7px);
	width: 100%;
	height: 100%;
	position: absolute;
	z-index: -1;
}

header.hidden {
    height: var(--header-tucked-height);
}


.header-logo-a {
    height: 100%;
    display: flex;
    align-items: center;
    border-bottom: none !important;
}

.dark-theme .logo {
    content: url('../../images/logo-horizontal-w.svg');
}

.header-logo-and-nav {
    display: flex;
    align-items: center;
    margin-left: 50px;
    gap: 30px;
}

.language-switcher {
    cursor: pointer;
    margin: 0 10px;
    display: flex;
    flex-direction: row;
    align-items: center;
    font-size: 17px;
    gap: 7px;
    position: absolute;
	right: 20px;
}

.logo {
    height: calc(100% - 20px);
    transition: height 0.3s, margin-left 0.3s;
    margin-left: 10px;
}

#nav-list {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    position: absolute;
    right: 50%;
    transform: translateX(50%);
    height: 100%;
}

#nav-list-collapse {
    font-size: 25px;
    margin-left: 10px;
    top: 10px;
    position: absolute;
    color: var(--text-color);
    cursor: pointer;
}

#nav-list ul {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 30px;
    list-style-type: none;
    padding-left: 0;
    text-align: center;
    list-style-type: none;
    margin: 0;
    height: 100%;
}


#nav-list ul li {
	height: 100%;
	display: flex;
	align-items: center;
	margin: 0;
	width: 100%;
	justify-content: center;
}

/* Base link style */
nav ul li a {
	color: var(--dim-text-color);
	text-decoration: none;
	white-space: nowrap;
	position: relative;
	font-family: system-ui;
	font-size: 1rem;
    padding-top: 3px;
	padding-bottom: 3px;
	border-bottom: 3px solid transparent;
	transition: border-bottom 0.25s ease-in-out;
	font-weight: 400;
}

/* Hover effect — soft background and lift */
nav ul li a:hover {
    color: var(--text-color);
	border-color: var(--text-color);
}

/* Current (active) tab */
nav ul li a.current {
    color: var(--text-color);
	border-color: var(--logo-dark-contrast);
}

.nav-list-logo {
    height: 100%;
	margin: 0;
    border-bottom: none !important;
}
.nav-list-logo:hover {
    border-bottom: none !important;
}


.mobile-only {
    display: none;
}

#hamburger-icon {
    cursor: pointer;
	margin-right: 10px;
}

.hamburger-line {
	stroke: var(--text-color);
    stroke-width: 2;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Default (Hamburger) State */
.hamburger-line.nav_top {
    transform-origin: center;
}

.hamburger-line.nav_middle {
    opacity: 1;
}

.hamburger-line.nav_bottom {
    transform-origin: center;
}

/* Active (X) State */
#hamburger-icon.nav_active .hamburger-line.nav_top {
    transform: translateY(6px) translateX(-6px) rotate(45deg);
}

#hamburger-icon.nav_active .hamburger-line.nav_middle {
    opacity: 0;
}

#hamburger-icon.nav_active .hamburger-line.nav_bottom {
    transform: translateY(-6px) translateX(-6px) rotate(-45deg);
}

/* Toggle switch */
.toggle-switch {
    display: flex;
    align-items: center;
    margin-right: 20px;
}

.switch-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.switch-label .sun,
.switch-label .moon {
    font-size: 1.5em;
    margin: 0 10px;
    transition: transform 0.3s ease;
}

.switch-label .sun:hover,
.switch-label .moon:hover {
    transform: scale(1.3);
}

.switch-label .moon {
    color: white;
}

.switch-label .sun {
    color: black;
}


#theme-toggle {
    display: none;
}

#theme-toggle:checked ~ .switch-label .sun {
    display: none;
}

#theme-toggle:not(:checked) ~ .switch-label .moon {
    display: none;
}


/* End of Header */

/* ~~~~~~~~~~~~~ */

/* Start of Body */


h2 {
	font-size: 1.6rem;
	margin: 0;
}

p {
	line-height: 1.6;
	margin: 0;
	font-family: system-ui;
	font-weight: 300;
}


.background-image {
	height: 100vh;
	position: fixed;
	width: 100%;
	object-fit: cover;
	z-index: 0;
}

@media (max-width: 900px) {
    .background-image {
	    height: calc(100vh - 200px);
    }
}

.landing-image-container {
    height: 100%;
}
.landing-image-container img {
    height: 100%;
	width: 100%;
	object-fit: cover;
    object-position: 40% 100%;
}

body {
    font-family: system-ui;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 100vh;
    color: var(--text-color);
    background-color:  var(--main-content-background);
}

.modal-open {
    overflow: hidden !important;
}


main {
    margin-top: var(--header-height);
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    background-color: var(--main-content-background);
    min-height: calc(100vh - var(--header-height));
    transition: background-color 0.3s, margin-top 0.3s;
}
main {
    transition: background-color 0.3s;
}

body.modal-open main {
    background-color: var(--contrast-item-background-3);
}


main.hidden {
    margin-top: var(--header-tucked-height);
}


.main-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: calc(100% - 40px);
    max-width: 1000px;
    margin-top: 20px;
    margin-bottom: 20px;
    gap: 20px;
}


.whatsapp-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

#whatsapp-button,
#contact_phone-hovering-button {
    background-color: #25D366;
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

#whatsapp-button:hover,
#contact_phone-hovering-button:hover {
    transform: scale(1.1);
}


/* End of Body */

/* ~~~~~~~~~~~~~ */

.no-select {
    user-select: none;
    -webkit-user-drag: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.no-select img {
    pointer-events: none;
    -webkit-user-drag: none;
}

@media (max-width: 1150px) {

    :root {
        --header-height: 70px;
        --header-tucked-height: 60px;
    }

    #nav-list.show {
        opacity: 1;
        transform: unset;
    }

    .desktop-only {
        display: none;
    }
    .mobile-only {
        display: flex;
    }

    .header-logo-and-nav {
        margin-left: 0px;
    }

    .hamburger-menu {
        display: block;
    }
    /* Mobile menu */
    #nav-list {
		transition: transform 0.2s ease-in-out;
		z-index: 1000;
		height: auto;
		border-bottom-left-radius: 15px;
		position: fixed;
		top: var(--header-height);
		right: 0;
		opacity: 0;
        transform: translateX(100%);
        transition: transform 0.2s ease-in-out, opacity 0.2s ease-in-out;
		left: unset;
		width: fit-content;
        background: var(--header-color);
        backdrop-filter: blur(7px);
        -webkit-backdrop-filter: blur(7px);
    }

    #nav-list ul {
		flex-direction: column;
		margin: 20px 40px;
		gap: 1rem;
    }

    /* Class that will be toggled by JavaScript */
    header {
        justify-content: space-between;
    }

    #tucked-header.hidden #nav-list {
        top: var(--header-tucked-height);
    }
}


@media (max-width: 768px) {
    h2 {
        font-size: 1.3rem;
    }
    .language-switcher {
    	right: 40px;
    }

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

    .logo {
        max-width: 250px;
        object-fit: contain;
    }
}
