Huurbaken website — Marstark 24-Hour Build Challenge (bilingual NL/EN)

This commit is contained in:
2026-12-06 06:24:38 +06:00
commit 124289e742
7 changed files with 1697 additions and 0 deletions
+646
View File
@@ -0,0 +1,646 @@
/* ============================================================
Huurbaken — styles
Brand: deep green #0E3B2E · cream #F7F3EC · sand #EFE7D8
gold/amber accent #C9A227 · ink #1C2420
Fonts: Fraunces (display serif) · Inter (body sans)
============================================================ */
:root {
--green: #0e3b2e;
--green-2: #14503f;
--green-3: #0a2e24;
--cream: #f7f3ec;
--sand: #efe7d8;
--sand-2: #e6dcc8;
--gold: #c9a227;
--gold-2: #b08d1e;
--ink: #1c2420;
--muted: #5b6b62;
--white: #ffffff;
--line: #ddd5c3;
--error: #b3261e;
--radius: 14px;
--shadow: 0 10px 30px rgba(14, 59, 46, 0.10);
--header-h: 72px;
}
* { box-sizing: border-box; }
html {
scroll-behavior: smooth;
scroll-padding-top: calc(var(--header-h) + 16px);
}
body {
margin: 0;
font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
font-size: 16px;
line-height: 1.6;
color: var(--ink);
background: var(--cream);
-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
h1, h2, h3 {
font-family: "Fraunces", Georgia, "Times New Roman", serif;
font-weight: 600;
line-height: 1.15;
color: var(--green);
margin: 0 0 0.5em;
}
h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
a { color: var(--green-2); }
a:hover { color: var(--gold-2); }
.container {
width: min(1180px, 92%);
margin-inline: auto;
}
.section { padding: 84px 0; }
.section-tinted { background: var(--sand); }
.section-eyebrow {
margin: 0 0 0.4em;
font-size: 0.82rem;
font-weight: 700;
letter-spacing: 0.14em;
text-transform: uppercase;
color: var(--gold-2);
}
.section-sub {
max-width: 640px;
color: var(--muted);
font-size: 1.08rem;
margin-bottom: 2.2em;
}
.skip-link {
position: absolute;
left: -9999px;
top: 0;
background: var(--green);
color: #fff;
padding: 10px 16px;
z-index: 200;
border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; color: #fff; }
/* ---------- Buttons ---------- */
.btn {
display: inline-block;
padding: 13px 26px;
border-radius: 999px;
font-weight: 600;
font-size: 0.98rem;
text-decoration: none;
border: 2px solid transparent;
cursor: pointer;
transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
text-align: center;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--gold); color: #231f08; border-color: var(--gold); }
.btn-primary:hover { background: var(--gold-2); border-color: var(--gold-2); color: #fff; }
.btn-ghost { background: transparent; color: var(--green); border-color: var(--green); }
.btn-ghost:hover { background: var(--green); color: #fff; }
.btn-block { width: 100%; }
/* ---------- Header ---------- */
.site-header {
position: sticky;
top: 0;
z-index: 100;
background: rgba(247, 243, 236, 0.96);
backdrop-filter: blur(6px);
border-bottom: 1px solid var(--line);
min-height: var(--header-h);
display: flex;
align-items: center;
}
.header-inner {
display: flex;
align-items: center;
gap: 28px;
}
.brand {
display: flex;
align-items: center;
gap: 10px;
text-decoration: none;
flex-shrink: 0;
}
.brand-logo { width: 40px; height: 40px; }
.brand-name {
font-family: "Fraunces", Georgia, serif;
font-weight: 700;
font-size: 1.45rem;
color: var(--green);
letter-spacing: -0.01em;
}
.main-nav {
display: flex;
gap: 26px;
margin-left: auto;
}
.main-nav a {
color: var(--ink);
text-decoration: none;
font-weight: 500;
font-size: 0.95rem;
white-space: nowrap;
}
.main-nav a:hover { color: var(--gold-2); }
.header-actions {
display: flex;
align-items: center;
gap: 14px;
margin-left: auto;
}
.main-nav + .header-actions { margin-left: 0; }
.lang-switch {
display: flex;
align-items: center;
gap: 2px;
border: 1.5px solid var(--line);
border-radius: 999px;
padding: 3px;
background: var(--white);
}
.lang-btn {
border: 0;
background: transparent;
font: inherit;
font-weight: 700;
font-size: 0.85rem;
color: var(--muted);
padding: 5px 10px;
border-radius: 999px;
cursor: pointer;
}
.lang-btn.is-active { background: var(--green); color: #fff; }
.lang-sep { color: var(--line); font-size: 0.8rem; }
.header-cta { padding: 10px 20px; font-size: 0.92rem; }
.menu-toggle {
display: none;
background: none;
border: 0;
cursor: pointer;
padding: 8px;
flex-direction: column;
gap: 5px;
}
.menu-toggle span {
display: block;
width: 24px;
height: 2.5px;
background: var(--green);
border-radius: 2px;
transition: transform 0.2s ease, opacity 0.2s ease;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
/* ---------- Hero ---------- */
.hero { padding: 72px 0 84px; }
.hero-grid {
display: grid;
grid-template-columns: 1.05fr 0.95fr;
gap: 56px;
align-items: center;
}
.hero-badge {
display: inline-block;
background: var(--sand);
border: 1px solid var(--line);
color: var(--green-2);
font-size: 0.85rem;
font-weight: 600;
padding: 6px 14px;
border-radius: 999px;
margin-bottom: 1.2em;
}
.hero-sub { font-size: 1.12rem; color: var(--muted); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.6em 0 1.8em; }
.trust-points {
list-style: none;
margin: 0;
padding: 0;
display: flex;
flex-wrap: wrap;
gap: 8px 22px;
}
.trust-points li { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 0.95rem; }
.trust-icon {
display: inline-flex;
align-items: center;
justify-content: center;
width: 22px;
height: 22px;
border-radius: 50%;
background: var(--green);
color: #fff;
font-size: 0.78rem;
flex-shrink: 0;
}
.hero-media { position: relative; }
.hero-media img {
width: 100%;
height: 480px;
object-fit: cover;
border-radius: 20px;
background: var(--sand-2);
}
.hero-card {
position: absolute;
left: -14px;
bottom: 26px;
background: var(--white);
border-radius: var(--radius);
box-shadow: var(--shadow);
padding: 16px 22px;
min-width: 190px;
}
.hero-card-label { margin: 0; font-size: 0.85rem; color: var(--muted); }
.hero-card-value {
margin: 0;
font-family: "Fraunces", Georgia, serif;
font-size: 2.1rem;
font-weight: 700;
color: var(--green);
line-height: 1.1;
}
.hero-card-note { margin: 0; font-size: 0.85rem; font-weight: 600; color: var(--gold-2); }
/* ---------- Steps ---------- */
.steps {
list-style: none;
margin: 0;
padding: 0;
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 22px;
counter-reset: step;
}
.step {
background: var(--white);
border: 1px solid var(--line);
border-radius: var(--radius);
padding: 28px 24px;
}
.step-num {
display: inline-flex;
align-items: center;
justify-content: center;
width: 46px;
height: 46px;
border-radius: 50%;
background: var(--green);
color: #fff;
font-family: "Fraunces", Georgia, serif;
font-size: 1.3rem;
font-weight: 700;
margin-bottom: 16px;
}
.step h3 { margin-bottom: 0.4em; }
.step p { color: var(--muted); margin: 0; font-size: 0.96rem; }
/* ---------- Why ---------- */
.why-grid {
display: grid;
grid-template-columns: 0.85fr 1.15fr;
gap: 56px;
align-items: start;
}
.why-img {
width: 100%;
height: 300px;
object-fit: cover;
border-radius: 18px;
margin-top: 8px;
background: var(--sand-2);
}
.why-cards {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 18px;
}
.why-card {
background: var(--white);
border: 1px solid var(--line);
border-radius: var(--radius);
padding: 24px;
}
.why-card h3 { margin-bottom: 0.35em; }
.why-card p { color: var(--muted); margin: 0; font-size: 0.95rem; }
/* ---------- Property types ---------- */
.type-grid {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 20px;
}
.type-card {
background: var(--white);
border: 1px solid var(--line);
border-radius: var(--radius);
overflow: hidden;
box-shadow: 0 4px 16px rgba(14, 59, 46, 0.06);
}
.type-card img { width: 100%; height: 180px; object-fit: cover; background: var(--sand-2); }
.type-body { padding: 20px; }
.type-body h3 { margin-bottom: 0.3em; }
.type-body p { color: var(--muted); margin: 0; font-size: 0.95rem; }
/* ---------- Value teaser ---------- */
.value-grid {
display: grid;
grid-template-columns: 0.9fr 1.1fr;
gap: 56px;
align-items: start;
}
.value-note { color: var(--muted); }
.value-table-wrap { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.value-table { width: 100%; border-collapse: collapse; font-size: 0.97rem; }
.value-table th, .value-table td { padding: 14px 18px; text-align: left; }
.value-table thead th {
background: var(--green);
color: #fff;
font-weight: 600;
font-size: 0.88rem;
letter-spacing: 0.02em;
}
.value-table tbody tr + tr td { border-top: 1px solid var(--line); }
.value-table tbody td:last-child { font-weight: 600; color: var(--green); white-space: nowrap; }
.testdata-tag {
margin: 0;
padding: 10px 18px;
background: var(--sand);
font-size: 0.82rem;
color: var(--muted);
}
/* ---------- Testimonials ---------- */
.testi-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 20px;
}
.testi-card {
margin: 0;
background: var(--white);
border: 1px solid var(--line);
border-radius: var(--radius);
padding: 26px;
display: flex;
flex-direction: column;
gap: 18px;
}
.testi-card blockquote {
margin: 0;
font-family: "Fraunces", Georgia, serif;
font-size: 1.12rem;
line-height: 1.5;
color: var(--green);
}
.testi-card figcaption {
display: flex;
align-items: center;
gap: 12px;
font-size: 0.9rem;
color: var(--muted);
margin-top: auto;
}
.testi-card figcaption strong { color: var(--ink); }
.avatar {
display: inline-flex;
align-items: center;
justify-content: center;
width: 44px;
height: 44px;
border-radius: 50%;
background: var(--green);
color: #fff;
font-weight: 700;
font-size: 0.9rem;
flex-shrink: 0;
}
/* ---------- FAQ ---------- */
.faq-wrap { max-width: 820px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
width: 100%;
display: flex;
justify-content: space-between;
align-items: center;
gap: 16px;
background: none;
border: 0;
padding: 20px 4px;
font: inherit;
font-family: "Fraunces", Georgia, serif;
font-size: 1.15rem;
font-weight: 600;
color: var(--green);
text-align: left;
cursor: pointer;
}
.faq-icon {
flex-shrink: 0;
width: 30px;
height: 30px;
border-radius: 50%;
border: 1.5px solid var(--green);
display: inline-flex;
align-items: center;
justify-content: center;
font-size: 1.2rem;
line-height: 1;
transition: transform 0.2s ease;
}
.faq-item.open .faq-icon { transform: rotate(45deg); background: var(--green); color: #fff; }
.faq-a {
max-height: 0;
overflow: hidden;
transition: max-height 0.28s ease;
}
.faq-a p { color: var(--muted); padding: 0 4px 20px; margin: 0; }
/* ---------- Lead form ---------- */
.form-grid {
display: grid;
grid-template-columns: 0.9fr 1.1fr;
gap: 56px;
align-items: start;
}
.form-points {
list-style: none;
margin: 0 0 1.4em;
padding: 0;
display: grid;
gap: 8px;
}
.form-points li { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.form-points li span:first-child {
display: inline-flex;
align-items: center;
justify-content: center;
width: 22px;
height: 22px;
border-radius: 50%;
background: var(--green);
color: #fff;
font-size: 0.78rem;
flex-shrink: 0;
}
.form-demo-note { font-size: 0.85rem; color: var(--muted); }
.form-card {
background: var(--white);
border: 1px solid var(--line);
border-radius: 18px;
padding: 32px;
box-shadow: var(--shadow);
}
.field { margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { display: block; font-weight: 600; font-size: 0.92rem; margin-bottom: 6px; }
.field input,
.field select,
.field textarea {
width: 100%;
font: inherit;
font-size: 0.97rem;
padding: 12px 14px;
border: 1.5px solid var(--line);
border-radius: 10px;
background: var(--cream);
color: var(--ink);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
outline: none;
border-color: var(--green);
background: var(--white);
box-shadow: 0 0 0 3px rgba(14, 59, 46, 0.14);
}
.field input.invalid,
.field select.invalid { border-color: var(--error); background: #fdf3f2; }
.field textarea { resize: vertical; min-height: 110px; }
.field-error { color: var(--error); font-size: 0.85rem; margin: 6px 0 0; }
.privacy-note { font-size: 0.85rem; color: var(--muted); text-align: center; margin: 14px 0 0; }
.form-success { text-align: center; padding: 24px 8px; }
.success-icon {
display: inline-flex;
align-items: center;
justify-content: center;
width: 64px;
height: 64px;
border-radius: 50%;
background: var(--green);
color: #fff;
font-size: 1.8rem;
margin: 0 0 16px;
}
.form-success h3 { font-size: 1.5rem; }
.form-success p { color: var(--muted); }
.form-success .btn { margin-top: 8px; }
/* ---------- Footer ---------- */
.site-footer { background: var(--green-3); color: #cfd8d2; }
.site-footer .brand-name { color: #fff; }
.footer-grid {
display: grid;
grid-template-columns: 1.4fr 1fr 1fr;
gap: 48px;
padding: 64px 0 40px;
}
.footer-brand p { color: #b9c4bb; max-width: 380px; }
.footer-col h3 {
color: #fff;
font-family: "Inter", system-ui, sans-serif;
font-size: 0.92rem;
letter-spacing: 0.08em;
text-transform: uppercase;
margin-bottom: 14px;
}
.footer-col a {
display: block;
color: #cfd8d2;
text-decoration: none;
margin-bottom: 8px;
font-size: 0.95rem;
}
.footer-col a:hover { color: var(--gold); }
.footer-col p { margin: 0 0 10px; font-size: 0.95rem; }
.footer-bottom {
border-top: 1px solid rgba(255, 255, 255, 0.14);
padding: 20px 0 26px;
display: flex;
flex-wrap: wrap;
gap: 8px 32px;
justify-content: space-between;
font-size: 0.85rem;
color: #9fb0a4;
}
.footer-bottom p { margin: 0; }
/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
.hero-grid { gap: 36px; }
.steps { grid-template-columns: repeat(2, 1fr); }
.type-grid { grid-template-columns: repeat(2, 1fr); }
.why-grid, .value-grid, .form-grid { grid-template-columns: 1fr; gap: 36px; }
.why-img { height: 260px; }
}
@media (max-width: 768px) {
.section { padding: 60px 0; }
.main-nav {
display: none;
position: absolute;
top: var(--header-h);
left: 0;
right: 0;
background: var(--cream);
border-bottom: 1px solid var(--line);
flex-direction: column;
gap: 0;
padding: 8px 4%;
box-shadow: 0 18px 30px rgba(14, 59, 46, 0.12);
}
.main-nav.open { display: flex; }
.main-nav a { padding: 13px 6px; border-top: 1px solid var(--line); }
.main-nav a:first-child { border-top: 0; }
.header-actions { margin-left: auto; }
.header-cta { display: none; }
.menu-toggle { display: flex; }
.hero { padding: 48px 0 60px; }
.hero-grid { grid-template-columns: 1fr; }
.hero-media img { height: 320px; }
.hero-card { left: 12px; bottom: 14px; }
.testi-grid { grid-template-columns: 1fr; }
.footer-grid { grid-template-columns: 1fr; gap: 32px; padding: 48px 0 32px; }
}
@media (max-width: 480px) {
body { font-size: 15px; }
.steps, .type-grid, .why-cards { grid-template-columns: 1fr; }
.field-row { grid-template-columns: 1fr; }
.form-card { padding: 24px 20px; }
.hero-media img { height: 260px; }
.brand-name { font-size: 1.3rem; }
.lang-btn { padding: 5px 8px; }
}