Files
Website/assets/scss/main.scss
2026-02-24 19:10:47 +01:00

562 lines
11 KiB
SCSS

// Globals
/* $container-max-widths: (
sm: 540px,
md: 720px,
lg: 960px,
xl: 1140px,
xxl: 1520px
); */
// Imports
@import "node_modules/bootstrap/scss/bootstrap";
// Fonts
@font-face {
font-family: 'Mukta';
font-style: normal;
font-weight: 400;
font-display: swap;
src: url('/fonts/mukta-400.woff2') format('woff2');
}
@font-face {
font-family: 'Mukta';
font-style: normal;
font-weight: 600;
font-display: swap;
src: url('/fonts/mukta-600.woff2') format('woff2');
}
@font-face {
font-family: 'Mukta';
font-style: normal;
font-weight: 800;
font-display: swap;
src: url('/fonts/mukta-800.woff2') format('woff2');
}
@font-face {
font-family: 'Kantumruy Pro';
font-style: normal;
font-weight: 400;
font-display: swap;
src: url('/fonts/kantumruy-400.woff2') format('woff2');
}
@font-face {
font-family: 'Kantumruy Pro';
font-style: normal;
font-weight: 500;
font-display: swap;
src: url('/fonts/kantumruy-500.woff2') format('woff2');
}
@font-face {
font-family: 'Kantumruy Pro';
font-style: normal;
font-weight: 600;
font-display: swap;
src: url('/fonts/kantumruy-600.woff2') format('woff2');
}
// Defaults
$van-emous-blue: #dce4ee;
$van-emous-orange: #b95913;
$nav-link-color: #212121;
$primary: $van-emous-orange;
$mukta-font: 'Mukta', system-ui, -apple-system, sans-serif;
$kantumruy-font: 'Kantumruy Pro', sans-serif;
$font-family-base: $mukta-font;
$headings-font-family: $kantumruy-font;
$headings-font-weight: 500;
$headings-color: #212121;
.text-primary {
color: $van-emous-orange !important;
}
.bg-secondary {
background-color: $van-emous-blue !important;
}
body {
font-family: $font-family-sans-serif;
font-weight: 400;
-webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6,
[class^="display-"] {
font-family: $headings-font-family;
font-weight: $headings-font-weight;
color: $headings-color;
}
h1, .display-3 {
line-height: 1.1;
margin-bottom: 1.5rem;
letter-spacing: -0.01em;
}
h2, .h2 {
font-size: 2.5rem;
margin-bottom: 1.25rem;
}
h6 {
font-size: 20px;
line-height: normal;
font-weight: 500;
letter-spacing: 0.4em;
color: darken($van-emous-blue, 40%) !important;
margin: 0;
padding-bottom: 20px;
display: block;
@media (max-width: 991px) {
font-size: 14px;
letter-spacing: 0.3em;
}
}
p {
font-family: $mukta-font;
font-size: 18px;
line-height: 30px;
font-weight: normal;
margin-block-start: 0;
margin-block-end: 0;
padding-bottom: 20px;
a {
color:$van-emous-orange;
}
}
.panel {
border-radius: 40px;
}
.bg-primary {
background: $van-emous-orange !important;
}
.bg-light {
background: #f0f1ec !important;
}
.bg-blue {
background: $van-emous-blue;
}
.bg-blue-dark {
background: #a8bbd5;
}
.footer-main {
border-radius: 100px 100px 0 0;
}
.lead {
font-weight: 400;
}
.rounded-img {
border-radius: 20px;;
}
// Menu
.top-bar {
background-color: #a8bbd5;
font-size: 0.9rem;
color: white;
font-size:18px;
font-family: $mukta-font;
a { color: white; text-decoration: none; }
}
.navbar-nav .nav-link {
color: $nav-link-color;
font-weight: 600;
&:hover { color: $van-emous-orange; }
}
.navbar {
transition: all 0.3s ease-in-out;
backface-visibility: hidden;
}
.navbar.sticky-top {
position: -webkit-sticky !important; // Voor Safari
position: sticky !important;
top: 0 !important;
z-index: 1030 !important;
background-color: rgba(255, 255, 255, 0.9) !important;
backdrop-filter: blur(4px);
}
// Animation
[data-aos^="fade"][data-aos^="fade"] {
transition-property: opacity, transform;
}
[data-aos="fade-up"] { transform: translateY(30px) !important; }
[data-aos="fade-down"] { transform: translateY(-30px) !important; }
[data-aos="fade-left"] { transform: translateX(30px) !important; }
[data-aos="fade-right"] { transform: translateX(-30px) !important; }
[data-aos].aos-animate {
transform: translate(0) !important;
opacity: 1;
}
.dropdown-menu {
border: none;
box-shadow: 0 10px 30px rgba(0,0,0,0.1);
border-radius: 8px;
padding: 1rem 0;
background-color: $van-emous-orange;
.dropdown-item {
font-family: $mukta-font;
padding: 0.5rem 1.5rem;
font-weight: 400;
color: #fff;
position: relative;
transition: all 0.2s ease-in-out;
display: flex;
align-items: center;
&::before {
content: "\F285";
font-family: "bootstrap-icons";
position: absolute;
left: 0.5rem;
opacity: 0;
transition: all 0.2s ease-in-out;
font-size: 0.8rem;
}
&:hover {
background-color: $van-emous-orange;
color: #fff;
padding-left: 2.2rem;
&::before {
opacity: 1;
left: 1.2rem;
}
}
&:active {
background-color: darken($van-emous-orange, 5%);
}
}
}
@media (min-width: 992px) {
.nav-item.dropdown {
&:hover {
> .dropdown-menu {
display: block;
margin-top: 0;
opacity: 1;
visibility: visible;
animation: fadeIn 0.2s ease-in;
}
}
}
}
.hero-section {
padding-top: 5rem;
padding-bottom: 5rem;
h1 {
color: #222;
line-height: 1.1;
letter-spacing: -1px;
}
.lead {
font-size: 1.1rem;
line-height: 1.6;
border-color: $van-emous-orange !important;
border-width: 3px !important;
}
}
.hero-image-dynamic {
width: 100%;
background-position: center center;
background-size: cover;
background-repeat: no-repeat;
border-radius: 40px;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
min-height: 400px;
@media (min-width: 992px) {
min-height: 600px;
aspect-ratio: 21 / 9;
}
}
// Buttons
.btn-cta {
display: inline-block;
position: relative;
font-weight: 600;
color: #ffffff;
background-color: $van-emous-orange !important;
padding: 17px 60px 17px 35px;
font-size: 16px;
line-height: normal;
border-radius: 50px;
transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
font-family: $mukta-font;
border: none;
text-decoration: none;
&::after {
content: "";
background-image: url('/img/chevron.svg');
background-size: contain;
background-repeat: no-repeat;
display: block;
width: 7px;
height: 13px;
position: absolute;
right: 30px;
top: 50%;
transform: translateY(-50%);
transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
&:hover {
color: #ffffff;
padding-right: 80px;
&::after {
right: 30px;
}
}
}
.cta-wrapper {
@media (min-width: 992px) {
min-width: 320px;
display: flex;
justify-content: flex-end;
}
}
// Hero
.hero-rounded-img {
border-radius: 40px;
width: 100%;
height: auto;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
image-rendering: -webkit-optimize-contrast;
}
.hero-image-container {
position: relative;
overflow: hidden;
animation: imageReveal 1.2s cubic-bezier(0.23, 1, 0.32, 1);
}
@keyframes imageReveal {
from {
opacity: 0;
transform: translateY(30px) scale(1.02);
}
to {
opacity: 1;
transform: translateY(0) scale(1);
}
}
@media (max-width: 768px) {
.hero-rounded-img {
border-radius: 20px;
}
}
// USPS
.usp-bar {
.usp-item {
.usp-text {
font-family: $mukta-font;
font-size: 18px;
font-weight: 500;
color: #1a1a1a;
white-space: nowrap;
}
svg {
flex-shrink: 0;
}
}
@media (max-width: 991px) {
.row {
flex-direction: column;
align-items: flex-start;
padding-left: 1rem;
}
}
}
.modellen-sectie {
.model-card {
min-height: 480px;
border: none;
background-color: #fff;
&:hover .model-card-bg {
transform: scale(1.05);
}
}
.model-card-bg {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-size: cover;
background-position: center;
transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
z-index: 1;
}
.model-card-overlay {
position: relative;
height: 100%;
width: 100%;
z-index: 2;
background: linear-gradient(0deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0) 100%);
}
.price-badge {
background: rgba(255, 255, 255, 0.95);
display: inline-block;
padding: 10px 20px;
border-radius: 15px;
color: #1a1a1a;
align-self: flex-start;
span:first-child {
color: $van-emous-orange;
font-size: 0.7rem;
letter-spacing: 0.1em;
}
}
.model-info {
text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
}
// Forms
.form-control {
padding: 16px 22px;
}
// Map
#col-map {
transition: flex 0.6s cubic-bezier(0.4, 0, 0.2, 1), max-width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
#col-results {
opacity: 0;
transform: translateX(20px);
transition: opacity 0.5s ease-out, transform 0.5s ease-out;
display: none;
}
#col-results.animate-in {
display: block !important;
opacity: 1 !important;
transform: translateX(0) !important;
}
.ol-control {
background: none !important;
}
.ol-zoom {
display: none;
}
.custom-zoom {
bottom: 20px;
right: 20px;
top: auto;
left: auto;
position: absolute;
display: flex;
flex-direction: column;
background: none;
}
.custom-zoom button {
background-color: #fff !important;
color: $van-emous-orange !important;
border: none !important;
border-radius: 5px !important;
margin-bottom: 5px !important;
width: 30px !important;
height: 30px !important;
font-size: 1.2rem !important;
cursor: pointer;
box-shadow: none;
}
.custom-zoom button:hover {
background-color: $van-emous-orange !important;
color: #fff !important;
}
.ol-attribution {
right: 20px !important;
bottom: 10px !important;
display: none !important;
}
// Footer
.footer-main {
.footer-inner {
border-radius: 60px 60px 0 0;
background-color: #e2eaf0 !important;
}
.icon-circle {
width: 45px;
height: 45px;
background-color: $van-emous-orange;
color: white;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-size: 1.2rem;
}
.form-control {
box-shadow: none;
&::placeholder {
color: #adb5bd;
}
}
a:hover {
color: $van-emous-orange !important;
}
}