From 124289e742e5eb9afbc39261e4a3f828b60ccae0 Mon Sep 17 00:00:00 2001 From: Amirul Islam Redwan Date: Sun, 6 Dec 2026 06:24:38 +0600 Subject: [PATCH] =?UTF-8?q?Huurbaken=20website=20=E2=80=94=20Marstark=2024?= =?UTF-8?q?-Hour=20Build=20Challenge=20(bilingual=20NL/EN)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 103 +++++++++ favicon.png | Bin 0 -> 4629 bytes favicon.svg | 16 ++ index.html | 429 ++++++++++++++++++++++++++++++++++ logo.svg | 19 ++ script.js | 484 +++++++++++++++++++++++++++++++++++++++ styles.css | 646 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 7 files changed, 1697 insertions(+) create mode 100644 README.md create mode 100644 favicon.png create mode 100644 favicon.svg create mode 100644 index.html create mode 100644 logo.svg create mode 100644 script.js create mode 100644 styles.css diff --git a/README.md b/README.md new file mode 100644 index 0000000..c8637e2 --- /dev/null +++ b/README.md @@ -0,0 +1,103 @@ +# Huurbaken — Verkoop uw verhuurde pand direct + +A fictional German company that buys rented homes and buildings directly from +their owners. Property owners leave their details and receive a fair, +non-binding offer within 48 hours — no viewings, no estate-agent fees, and +the tenants simply stay. + +> **Fictional demo website — test data.** Huurbaken is a fictional company. +> This website was created for the **Marstark Senior Web Developer — +> AI-Native Builder 24-Hour Build Challenge**. All content, names, figures and +> quotes are fictional test data written for this challenge. Nothing here is +> copied from any existing website or company. + +## How to run + +No build step, no backend. Just open `index.html` in a browser, or serve the +folder statically, e.g.: + +```bash +python3 -m http.server 8000 +# then open http://localhost:8000 +``` + +## Tech stack + +- Plain HTML + CSS + JavaScript (static site, zero dependencies at runtime) +- Google Fonts (loaded from CDN): Fraunces + Inter +- Photography: Unsplash (direct `images.unsplash.com` URLs, with fallback + images if one fails to load) +- No frameworks, no build tools, no backend + +## Files + +| File | What it is | +| --- | --- | +| `index.html` | Single-page site: hero, how it works, why Huurbaken, property types, value teaser, testimonials, FAQ, lead form, footer | +| `styles.css` | All styling, responsive breakpoints (480px / 768px / 1020px) | +| `script.js` | NL/EN language switcher with full dictionaries, mobile menu, FAQ accordion, form validation + success state | +| `logo.svg` | Original Huurbaken logo (house + beacon mark + wordmark) | +| `favicon.svg` | Simplified logo mark for browsers/tabs | +| `favicon.png` | PNG version of the favicon mark (local file — the site itself uses `favicon.svg`) | +| `README.md` | This file | + +## Features + +- **Bilingual NL / EN with a working language switch** (NL | EN in the header). + Default language is Dutch. Every visible string switches — navigation, hero, + sections, form labels and placeholders, buttons, FAQ, footer, and the + document title. The choice is remembered in `localStorage`. +- **Fully responsive** — phone, tablet and desktop layouts, with a working + mobile menu. +- **Lead form** (name, email, phone, property type, city/address, monthly + rent optional, message) with client-side validation and a success state in + the active language. Demo form: no data is sent or stored. +- **FAQ accordion**, smooth scrolling, semantic HTML, keyboard-accessible + controls. + +## Brand identity + +The name **Huurbaken** combines the Dutch words *huur* (rent) and *baken* +(beacon): a beacon for owners of rented property. The logo is a house with a +golden beacon light above the roof — guidance and certainty for owners who +want to sell. + +### Logo + +- `logo.svg` — full lock-up: house + beacon mark with the “Huurbaken” + wordmark (Fraunces Bold). +- `favicon.svg` / `favicon.png` — simplified mark: the house and beacon on a + deep-green rounded square. + +### Colors + +| Name | Hex | Use | +| --- | --- | --- | +| Deep Green | `#0E3B2E` | Primary — headings, header, footer, buttons (hover) | +| Green 2 | `#14503F` | Secondary green — links, accents | +| Dark Green | `#0A2E24` | Footer background | +| Cream | `#F7F3EC` | Page background | +| Sand | `#EFE7D8` | Tinted sections, badges | +| Sand 2 | `#E6DCC8` | Image placeholders, borders | +| Gold / Amber | `#C9A227` | Accent — primary CTA buttons, beacon, highlights | +| Gold dark | `#B08D1E` | CTA hover, eyebrow text | +| Ink | `#1C2420` | Body text | +| Muted | `#5B6B62` | Secondary text | +| Line | `#DDD5C3` | Borders | +| Error | `#B3261E` | Form validation | + +### Fonts + +- **Fraunces** (Google Fonts, weights 500/600/700) — display serif for + headings, the logo wordmark and quotes. +- **Inter** (Google Fonts, weights 400/500/600/700) — body text, navigation, + forms and UI. + +## Content note + +All copy is original and written for this challenge in Dutch and English. +Testimonials use clearly fictional names and are labelled as test data; the +value-indication table is labelled as fictional example figures. Contact +email shown on the site is `contact@huurbaken.example` (the `.example` +domain is reserved for documentation, so it cannot belong to a real company). +No real addresses or phone numbers appear anywhere on the site. diff --git a/favicon.png b/favicon.png new file mode 100644 index 0000000000000000000000000000000000000000..0db7186bad4ccb36f1130593b0507d8ddf181e91 GIT binary patch literal 4629 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 NuHS8Ryy-ws{u`FnwIl!l literal 0 HcmV?d00001 diff --git a/favicon.svg b/favicon.svg new file mode 100644 index 0000000..f6556d5 --- /dev/null +++ b/favicon.svg @@ -0,0 +1,16 @@ + + Huurbaken + + + + + + + + + + + + + + diff --git a/index.html b/index.html new file mode 100644 index 0000000..1c57990 --- /dev/null +++ b/index.html @@ -0,0 +1,429 @@ + + + + + + Huurbaken — Verkoop uw verhuurde pand direct + + + + + + + + + + + + + +
+ +
+
+
+

Directe aankoop van verhuurd vastgoed

+

Verkoop uw verhuurde pand direct — zonder bezichtigingen, zonder wachten.

+

Huurbaken koopt verhuurde woningen en gebouwen rechtstreeks van eigenaren. Binnen 48 uur een eerlijk, vrijblijvend bod. Geen makelaarskosten — en uw huurders blijven gewoon wonen.

+ +
    +
  • Bod binnen 48 uur
  • +
  • Geen makelaarskosten
  • +
  • Huurders blijven wonen
  • +
+
+
+ Moderne woning +
+

Eerste bod binnen

+

48 uur

+

Vrijblijvend & gratis

+
+
+
+
+ + +
+
+

Het proces

+

Zo werkt het

+

Van eerste contact tot uitbetaling in vier duidelijke stappen.

+
    +
  1. + +

    Laat uw gegevens achter

    +

    Vul het formulier in — binnen twee minuten gedaan. Wij nemen binnen één werkdag contact met u op.

    +
  2. +
  3. + +

    Ontvang een vrijblijvend bod

    +

    Binnen 48 uur ontvangt u een eerlijk bod op basis van huurinkomsten, locatie en staat van het pand.

    +
  4. +
  5. + +

    Wij regelen alles

    +

    Taxatie, huurders, administratie en papierwerk: wij nemen het u volledig uit handen.

    +
  6. +
  7. + +

    Notaris en uitbetaling

    +

    Na uw akkoord regelen wij de notaris. Het bedrag staat snel op uw rekening.

    +
  8. +
+
+
+ + +
+
+
+

Waarom Huurbaken

+

Waarom verkopen aan Huurbaken?

+

Verkopen zonder gedoe — met zekerheid en een eerlijke prijs.

+ Interieur van een woning +
+
+
+

Geen bezichtigingen

+

Geen vreemden over de vloer en geen open huizen. Uw huurders worden niet gestoord.

+
+
+

Geen makelaarskosten

+

U betaalt geen courtage en geen verkoopkosten. Het bod is het bedrag dat u ontvangt.

+
+
+

Huurders blijven wonen

+

Wij nemen de huurovereenkomsten over zoals ze zijn. Niemand hoeft te verhuizen.

+
+
+

Snel zekerheid

+

Binnen 48 uur weet u waar u aan toe bent — geen maanden wachten op een koper.

+
+
+

Wij kopen zoals het is

+

Renoveren hoeft niet. Ook panden met achterstallig onderhoud nemen wij over.

+
+
+

Discreet en persoonlijk

+

Eén vast aanspreekpunt, geen veiling en geen openbare verkoop.

+
+
+
+
+ + +
+
+

Ons aanbod

+

Wat wij kopen

+

Verhuurde panden in heel Duitsland — van één appartement tot een compleet complex.

+
+
+ Appartementencomplex +
+

Verhuurde appartementen

+

Eén of meerdere appartementen, bewoond of leegstaand.

+
+
+
+ Verhuurde woning +
+

Verhuurde woningen

+

Eengezinswoningen en herenhuizen met lopende huur.

+
+
+
+ Appartementencomplex +
+

Appartementencomplexen

+

Complete complexen met meerdere eenheden en huurders.

+
+
+
+ Gemengd gebouw +
+

Gemengd gebruik

+

Combinaties van wonen en werken, winkels of kantoren.

+
+
+
+
+
+ + +
+
+
+

Eerste indicatie

+

Wat zou uw pand waard kunnen zijn?

+

Een eerste indicatie op basis van huurinkomsten. De cijfers hieronder zijn fictieve voorbeelden (testdata).

+

Elk pand is anders. Uw definitieve bod volgt na een korte beoordeling — altijd vrijblijvend.

+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + +
Type pandHuur per maandIndicatie
Verhuurd appartement€ 1.200€ 180.000 – € 220.000
Verhuurde woning€ 1.800€ 270.000 – € 330.000
Appartementencomplex (8 eenheden)€ 9.500€ 1.400.000 – € 1.700.000
+

Fictieve voorbeeldcijfers — testdata

+
+
+
+ + +
+
+

Ervaringen

+

Wat eigenaren zeggen

+

Fictieve citaten — testdata.

+
+
+
“Binnen drie dagen hadden we een bod op tafel. Geen bezichtigingen, geen gedoe — en onze huurders konden gewoon blijven.”
+
+ + Marleen V.
Eigenaar van twee verhuurde appartementen
+
+
+
+
“Na het overlijden van mijn vader wilde ik het verhuurde huis snel en netjes verkopen. Huurbaken regelde alles, inclusief de huurder.”
+
+ + Johan D.
Erfgenaam van een verhuurde woning
+
+
+
+
“Eindelijk een koper die begrijpt dat huurders mensen zijn. De afhandeling was snel, helder en discreet.”
+
+ + Samira E.
Eigenaar van een appartementencomplex
+
+
+
+
+
+ + +
+
+

Vragen & antwoorden

+

Veelgestelde vragen

+
+
+ +

Nee. Wij nemen de bestaande huurovereenkomsten over zoals ze zijn. Uw huurders blijven gewoon wonen en merken weinig van de verkoop.

+
+
+ +

Binnen 48 uur na uw aanvraag ontvangt u een eerste, vrijblijvend bod — op werkdagen vaak nog sneller.

+
+
+ +

Nee. U betaalt geen makelaarskosten en geen verkoopcommissie. Ook de taxatie- en notariskosten nemen wij voor onze rekening.

+
+
+ +

In eerste instantie alleen de basis: huurinkomsten, adres en type pand. Later vragen wij om de huurovereenkomst en, indien beschikbaar, het WOZ- of taxatierapport.

+
+
+ +

Verhuurde appartementen, woningen, appartementencomplexen en gemengd gebruik — in heel Duitsland, in elke staat van onderhoud.

+
+
+ +

Nee. Ons bod is altijd vrijblijvend. U beslist in alle rust of u wilt verkopen — zonder druk en zonder verplichtingen.

+
+
+
+
+ + +
+
+
+

Gratis & vrijblijvend

+

Ontvang uw gratis, vrijblijvende bod

+

Vul het formulier in — wij nemen binnen één werkdag contact met u op.

+
    +
  • Bod binnen 48 uur
  • +
  • Geen makelaarskosten
  • +
  • Huurders blijven wonen
  • +
+

Demoformulier: er worden geen gegevens verzonden of opgeslagen.

+
+ +
+
+
+ + + +
+
+
+ + + +
+
+ + + +
+
+
+ + + +
+
+
+ + + +
+
+ + +
+
+
+ + +
+ +

Uw gegevens gebruiken wij alleen om contact met u op te nemen.

+
+ +
+
+
+
+ + + + + + + diff --git a/logo.svg b/logo.svg new file mode 100644 index 0000000..1098917 --- /dev/null +++ b/logo.svg @@ -0,0 +1,19 @@ + + Huurbaken + + + + + + + + + + + + + + + + Huurbaken + diff --git a/script.js b/script.js new file mode 100644 index 0000000..c84995a --- /dev/null +++ b/script.js @@ -0,0 +1,484 @@ +/* ============================================================ + Huurbaken — script.js + Language switcher (NL/EN), mobile menu, FAQ accordion, + lead-form validation with success state. + No backend: the form is a demo and stores nothing. + ============================================================ */ + +"use strict"; + +/* ---------------- i18n dictionaries ---------------- */ +const I18N = { + nl: { + "meta.title": "Huurbaken — Verkoop uw verhuurde pand direct", + "meta.description": "Huurbaken koopt verhuurde woningen en gebouwen rechtstreeks van eigenaren. Binnen 48 uur een vrijblijvend bod, zonder makelaarskosten.", + "a11y.skip": "Direct naar het aanvraagformulier", + "nav.how": "Hoe het werkt", + "nav.why": "Waarom Huurbaken", + "nav.types": "Wat wij kopen", + "nav.faq": "Veelgestelde vragen", + "nav.contact": "Contact", + "nav.cta": "Ontvang een bod", + "hero.badge": "Directe aankoop van verhuurd vastgoed", + "hero.title": "Verkoop uw verhuurde pand direct — zonder bezichtigingen, zonder wachten.", + "hero.sub": "Huurbaken koopt verhuurde woningen en gebouwen rechtstreeks van eigenaren. Binnen 48 uur een eerlijk, vrijblijvend bod. Geen makelaarskosten — en uw huurders blijven gewoon wonen.", + "hero.cta1": "Ontvang een gratis bod", + "hero.cta2": "Zo werkt het", + "hero.trust1": "Bod binnen 48 uur", + "hero.trust2": "Geen makelaarskosten", + "hero.trust3": "Huurders blijven wonen", + "hero.imgAlt": "Moderne woning", + "hero.cardLabel": "Eerste bod binnen", + "hero.cardUnit": "uur", + "hero.cardNote": "Vrijblijvend & gratis", + "how.eyebrow": "Het proces", + "how.title": "Zo werkt het", + "how.sub": "Van eerste contact tot uitbetaling in vier duidelijke stappen.", + "how.s1t": "Laat uw gegevens achter", + "how.s1d": "Vul het formulier in — binnen twee minuten gedaan. Wij nemen binnen één werkdag contact met u op.", + "how.s2t": "Ontvang een vrijblijvend bod", + "how.s2d": "Binnen 48 uur ontvangt u een eerlijk bod op basis van huurinkomsten, locatie en staat van het pand.", + "how.s3t": "Wij regelen alles", + "how.s3d": "Taxatie, huurders, administratie en papierwerk: wij nemen het u volledig uit handen.", + "how.s4t": "Notaris en uitbetaling", + "how.s4d": "Na uw akkoord regelen wij de notaris. Het bedrag staat snel op uw rekening.", + "why.eyebrow": "Waarom Huurbaken", + "why.title": "Waarom verkopen aan Huurbaken?", + "why.sub": "Verkopen zonder gedoe — met zekerheid en een eerlijke prijs.", + "why.imgAlt": "Interieur van een woning", + "why.c1t": "Geen bezichtigingen", + "why.c1d": "Geen vreemden over de vloer en geen open huizen. Uw huurders worden niet gestoord.", + "why.c2t": "Geen makelaarskosten", + "why.c2d": "U betaalt geen courtage en geen verkoopkosten. Het bod is het bedrag dat u ontvangt.", + "why.c3t": "Huurders blijven wonen", + "why.c3d": "Wij nemen de huurovereenkomsten over zoals ze zijn. Niemand hoeft te verhuizen.", + "why.c4t": "Snel zekerheid", + "why.c4d": "Binnen 48 uur weet u waar u aan toe bent — geen maanden wachten op een koper.", + "why.c5t": "Wij kopen zoals het is", + "why.c5d": "Renoveren hoeft niet. Ook panden met achterstallig onderhoud nemen wij over.", + "why.c6t": "Discreet en persoonlijk", + "why.c6d": "Eén vast aanspreekpunt, geen veiling en geen openbare verkoop.", + "types.eyebrow": "Ons aanbod", + "types.title": "Wat wij kopen", + "types.sub": "Verhuurde panden in heel Duitsland — van één appartement tot een compleet complex.", + "types.t1img": "Appartementencomplex", + "types.t1t": "Verhuurde appartementen", + "types.t1d": "Eén of meerdere appartementen, bewoond of leegstaand.", + "types.t2img": "Verhuurde woning", + "types.t2t": "Verhuurde woningen", + "types.t2d": "Eengezinswoningen en herenhuizen met lopende huur.", + "types.t3img": "Appartementencomplex", + "types.t3t": "Appartementencomplexen", + "types.t3d": "Complete complexen met meerdere eenheden en huurders.", + "types.t4img": "Gemengd gebouw", + "types.t4t": "Gemengd gebruik", + "types.t4d": "Combinaties van wonen en werken, winkels of kantoren.", + "value.eyebrow": "Eerste indicatie", + "value.title": "Wat zou uw pand waard kunnen zijn?", + "value.sub": "Een eerste indicatie op basis van huurinkomsten. De cijfers hieronder zijn fictieve voorbeelden (testdata).", + "value.note": "Elk pand is anders. Uw definitieve bod volgt na een korte beoordeling — altijd vrijblijvend.", + "value.col1": "Type pand", + "value.col2": "Huur per maand", + "value.col3": "Indicatie", + "value.r1c1": "Verhuurd appartement", + "value.r2c1": "Verhuurde woning", + "value.r3c1": "Appartementencomplex (8 eenheden)", + "value.testdata": "Fictieve voorbeeldcijfers — testdata", + "testi.eyebrow": "Ervaringen", + "testi.title": "Wat eigenaren zeggen", + "testi.sub": "Fictieve citaten — testdata.", + "testi.q1": "“Binnen drie dagen hadden we een bod op tafel. Geen bezichtigingen, geen gedoe — en onze huurders konden gewoon blijven.”", + "testi.a1n": "Marleen V.", + "testi.a1r": "Eigenaar van twee verhuurde appartementen", + "testi.q2": "“Na het overlijden van mijn vader wilde ik het verhuurde huis snel en netjes verkopen. Huurbaken regelde alles, inclusief de huurder.”", + "testi.a2n": "Johan D.", + "testi.a2r": "Erfgenaam van een verhuurde woning", + "testi.q3": "“Eindelijk een koper die begrijpt dat huurders mensen zijn. De afhandeling was snel, helder en discreet.”", + "testi.a3n": "Samira E.", + "testi.a3r": "Eigenaar van een appartementencomplex", + "faq.eyebrow": "Vragen & antwoorden", + "faq.title": "Veelgestelde vragen", + "faq.q1": "Moet ik mijn huurders uitzetten?", + "faq.a1": "Nee. Wij nemen de bestaande huurovereenkomsten over zoals ze zijn. Uw huurders blijven gewoon wonen en merken weinig van de verkoop.", + "faq.q2": "Hoe snel ontvang ik een bod?", + "faq.a2": "Binnen 48 uur na uw aanvraag ontvangt u een eerste, vrijblijvend bod — op werkdagen vaak nog sneller.", + "faq.q3": "Zijn er kosten aan verbonden?", + "faq.a3": "Nee. U betaalt geen makelaarskosten en geen verkoopcommissie. Ook de taxatie- en notariskosten nemen wij voor onze rekening.", + "faq.q4": "Welke documenten heb ik nodig?", + "faq.a4": "In eerste instantie alleen de basis: huurinkomsten, adres en type pand. Later vragen wij om de huurovereenkomst en, indien beschikbaar, het WOZ- of taxatierapport.", + "faq.q5": "Welke panden kopen jullie?", + "faq.a5": "Verhuurde appartementen, woningen, appartementencomplexen en gemengd gebruik — in heel Duitsland, in elke staat van onderhoud.", + "faq.q6": "Is het bod bindend?", + "faq.a6": "Nee. Ons bod is altijd vrijblijvend. U beslist in alle rust of u wilt verkopen — zonder druk en zonder verplichtingen.", + "form.eyebrow": "Gratis & vrijblijvend", + "form.title": "Ontvang uw gratis, vrijblijvende bod", + "form.sub": "Vul het formulier in — wij nemen binnen één werkdag contact met u op.", + "form.p1": "Bod binnen 48 uur", + "form.p2": "Geen makelaarskosten", + "form.p3": "Huurders blijven wonen", + "form.demoNote": "Demoformulier: er worden geen gegevens verzonden of opgeslagen.", + "form.f_name": "Naam *", + "form.ph_name": "Bijv. Anna Jansen", + "form.f_email": "E-mailadres *", + "form.ph_email": "naam@voorbeeld.nl", + "form.f_phone": "Telefoonnummer *", + "form.ph_phone": "+31 6 12345678", + "form.f_type": "Type pand *", + "form.type_ph": "Kies een type", + "form.type1": "Verhuurd appartement", + "form.type2": "Verhuurde woning", + "form.type3": "Appartementencomplex", + "form.type4": "Gemengd gebruik", + "form.type5": "Anders", + "form.f_city": "Plaats en adres *", + "form.ph_city": "Plaats, straat + huisnummer", + "form.f_rent": "Maandelijkse huur (optioneel)", + "form.ph_rent": "Bijv. 1.250", + "form.f_msg": "Bericht", + "form.ph_msg": "Vertel kort iets over uw pand…", + "form.submit": "Vraag een bod aan", + "form.privacy": "Uw gegevens gebruiken wij alleen om contact met u op te nemen.", + "form.success_title": "Bedankt voor uw aanvraag!", + "form.success_text": "Wij nemen binnen één werkdag contact met u op met een eerste indicatie.", + "form.demoNote2": "Demoformulier: er worden geen gegevens verzonden of opgeslagen.", + "form.again": "Nieuwe aanvraag doen", + "footer.tagline": "Huurbaken koopt verhuurde woningen en gebouwen rechtstreeks van eigenaren — snel, eerlijk en discreet.", + "footer.navTitle": "Navigatie", + "footer.contactTitle": "Contact", + "footer.langNote": "Deze website is beschikbaar in het Nederlands en Engels.", + "footer.demo": "Huurbaken is een fictief bedrijf. Deze website is een demo met testdata, gemaakt voor de Marstark Build Challenge.", + "footer.rights": "© 2026 Huurbaken — fictieve demo-website", + "err.required": "Dit veld is verplicht.", + "err.email": "Vul een geldig e-mailadres in.", + "err.phone": "Vul een geldig telefoonnummer in.", + "menu.open": "Menu openen", + "menu.close": "Menu sluiten" + }, + en: { + "meta.title": "Huurbaken — Sell your rented property directly", + "meta.description": "Huurbaken buys rented homes and buildings directly from owners. A non-binding offer within 48 hours, no estate-agent fees.", + "a11y.skip": "Skip to the request form", + "nav.how": "How it works", + "nav.why": "Why Huurbaken", + "nav.types": "What we buy", + "nav.faq": "FAQ", + "nav.contact": "Contact", + "nav.cta": "Get an offer", + "hero.badge": "Direct purchase of rented property", + "hero.title": "Sell your rented property directly — no viewings, no waiting.", + "hero.sub": "Huurbaken buys rented homes and buildings directly from owners. A fair, non-binding offer within 48 hours. No estate-agent fees — and your tenants simply stay.", + "hero.cta1": "Get a free offer", + "hero.cta2": "How it works", + "hero.trust1": "Offer within 48 hours", + "hero.trust2": "No estate-agent fees", + "hero.trust3": "Tenants stay put", + "hero.imgAlt": "Modern house", + "hero.cardLabel": "First offer within", + "hero.cardUnit": "hours", + "hero.cardNote": "Non-binding & free", + "how.eyebrow": "The process", + "how.title": "How it works", + "how.sub": "From first contact to payment in four clear steps.", + "how.s1t": "Leave your details", + "how.s1d": "Fill in the form — done in two minutes. We will contact you within one working day.", + "how.s2t": "Receive a non-binding offer", + "how.s2d": "Within 48 hours you receive a fair offer based on rental income, location and the condition of the property.", + "how.s3t": "We handle everything", + "how.s3d": "Valuation, tenants, administration and paperwork: we take it all off your hands.", + "how.s4t": "Notary and payment", + "how.s4d": "Once you agree, we arrange the notary. The money is in your account quickly.", + "why.eyebrow": "Why Huurbaken", + "why.title": "Why sell to Huurbaken?", + "why.sub": "Sell without the hassle — with certainty and a fair price.", + "why.imgAlt": "Interior of a home", + "why.c1t": "No viewings", + "why.c1d": "No strangers through the house and no open-house days. Your tenants are not disturbed.", + "why.c2t": "No agent fees", + "why.c2d": "You pay no commission and no selling costs. The offer is the amount you receive.", + "why.c3t": "Tenants stay put", + "why.c3d": "We take over the tenancy agreements as they are. Nobody has to move.", + "why.c4t": "Fast certainty", + "why.c4d": "Within 48 hours you know where you stand — no months of waiting for a buyer.", + "why.c5t": "We buy as-is", + "why.c5d": "No renovation needed. We also take on properties with a maintenance backlog.", + "why.c6t": "Discreet and personal", + "why.c6d": "One dedicated contact, no auction and no public sale.", + "types.eyebrow": "What we buy", + "types.title": "What we buy", + "types.sub": "Rented properties across Germany — from a single apartment to a full complex.", + "types.t1img": "Apartment building", + "types.t1t": "Rented apartments", + "types.t1d": "One or more apartments, occupied or vacant.", + "types.t2img": "Rented house", + "types.t2t": "Rented houses", + "types.t2d": "Family homes and townhouses with ongoing tenancies.", + "types.t3img": "Apartment building", + "types.t3t": "Apartment buildings", + "types.t3d": "Entire complexes with multiple units and tenants.", + "types.t4img": "Mixed-use building", + "types.t4t": "Mixed-use buildings", + "types.t4d": "Combinations of living and working, shops or offices.", + "value.eyebrow": "First indication", + "value.title": "What could your property be worth?", + "value.sub": "A first indication based on rental income. The figures below are fictional examples (test data).", + "value.note": "Every property is different. Your final offer follows a short assessment — always non-binding.", + "value.col1": "Property type", + "value.col2": "Rent per month", + "value.col3": "Indication", + "value.r1c1": "Rented apartment", + "value.r2c1": "Rented house", + "value.r3c1": "Apartment building (8 units)", + "value.testdata": "Fictional example figures — test data", + "testi.eyebrow": "Experiences", + "testi.title": "What owners say", + "testi.sub": "Fictional quotes — test data.", + "testi.q1": "“Within three days we had an offer on the table. No viewings, no hassle — and our tenants could simply stay.”", + "testi.a1n": "Marleen V.", + "testi.a1r": "Owner of two rented apartments", + "testi.q2": "“After my father passed away, I wanted to sell the rented house quickly and properly. Huurbaken arranged everything, including the tenant.”", + "testi.a2n": "Johan D.", + "testi.a2r": "Heir to a rented house", + "testi.q3": "“Finally a buyer who understands that tenants are people. The process was fast, clear and discreet.”", + "testi.a3n": "Samira E.", + "testi.a3r": "Owner of an apartment building", + "faq.eyebrow": "Questions & answers", + "faq.title": "Frequently asked questions", + "faq.q1": "Do I need to evict my tenants?", + "faq.a1": "No. We take over the existing tenancy agreements as they are. Your tenants simply stay and barely notice the sale.", + "faq.q2": "How fast do I get an offer?", + "faq.a2": "Within 48 hours of your request you receive a first, non-binding offer — on working days often even faster.", + "faq.q3": "Are there any fees?", + "faq.a3": "No. You pay no estate-agent fees and no sales commission. We also cover the valuation and notary costs.", + "faq.q4": "What documents do I need?", + "faq.a4": "At first only the basics: rental income, address and property type. Later we ask for the tenancy agreement and, if available, the WOZ or valuation report.", + "faq.q5": "Which properties do you buy?", + "faq.a5": "Rented apartments, houses, apartment buildings and mixed-use properties — across Germany, in any state of repair.", + "faq.q6": "Is the offer binding?", + "faq.a6": "No. Our offer is always non-binding. You decide in your own time whether to sell — no pressure, no obligations.", + "form.eyebrow": "Free & non-binding", + "form.title": "Get your free, non-binding offer", + "form.sub": "Fill in the form — we will contact you within one working day.", + "form.p1": "Offer within 48 hours", + "form.p2": "No estate-agent fees", + "form.p3": "Tenants stay put", + "form.demoNote": "Demo form: no data is sent or stored.", + "form.f_name": "Name *", + "form.ph_name": "E.g. Anna Jansen", + "form.f_email": "Email address *", + "form.ph_email": "name@example.com", + "form.f_phone": "Phone number *", + "form.ph_phone": "+31 6 12345678", + "form.f_type": "Property type *", + "form.type_ph": "Choose a type", + "form.type1": "Rented apartment", + "form.type2": "Rented house", + "form.type3": "Apartment building", + "form.type4": "Mixed-use building", + "form.type5": "Other", + "form.f_city": "City and address *", + "form.ph_city": "City, street + number", + "form.f_rent": "Monthly rent (optional)", + "form.ph_rent": "E.g. 1,250", + "form.f_msg": "Message", + "form.ph_msg": "Tell us briefly about your property…", + "form.submit": "Request an offer", + "form.privacy": "We use your details only to contact you.", + "form.success_title": "Thank you for your request!", + "form.success_text": "We will contact you within one working day with a first indication.", + "form.demoNote2": "Demo form: no data is sent or stored.", + "form.again": "Make a new request", + "footer.tagline": "Huurbaken buys rented homes and buildings directly from owners — fast, fair and discreet.", + "footer.navTitle": "Navigation", + "footer.contactTitle": "Contact", + "footer.langNote": "This website is available in Dutch and English.", + "footer.demo": "Huurbaken is a fictional company. This website is a demo with test data, created for the Marstark Build Challenge.", + "footer.rights": "© 2026 Huurbaken — fictional demo website", + "err.required": "This field is required.", + "err.email": "Please enter a valid email address.", + "err.phone": "Please enter a valid phone number.", + "menu.open": "Open menu", + "menu.close": "Close menu" + } +}; + +const DEFAULT_LANG = "nl"; +const STORAGE_KEY = "huurbaken-lang"; +let currentLang = DEFAULT_LANG; + +function getStoredLang() { + try { + const saved = window.localStorage.getItem(STORAGE_KEY); + if (saved === "nl" || saved === "en") return saved; + } catch (e) { /* storage unavailable — use default */ } + return DEFAULT_LANG; +} + +function applyLanguage(lang) { + if (!I18N[lang]) lang = DEFAULT_LANG; + currentLang = lang; + const dict = I18N[lang]; + + document.documentElement.lang = lang; + document.title = dict["meta.title"] || document.title; + + document.querySelectorAll("[data-i18n]").forEach((el) => { + const key = el.getAttribute("data-i18n"); + if (dict[key] !== undefined) el.textContent = dict[key]; + }); + document.querySelectorAll("[data-i18n-ph]").forEach((el) => { + const key = el.getAttribute("data-i18n-ph"); + if (dict[key] !== undefined) el.setAttribute("placeholder", dict[key]); + }); + document.querySelectorAll("[data-i18n-alt]").forEach((el) => { + const key = el.getAttribute("data-i18n-alt"); + if (dict[key] !== undefined) el.setAttribute("alt", dict[key]); + }); + const metaDesc = document.querySelector('meta[name="description"]'); + if (metaDesc && dict["meta.description"]) { + metaDesc.setAttribute("content", dict["meta.description"]); + } + + document.querySelectorAll(".lang-btn").forEach((btn) => { + const active = btn.getAttribute("data-lang") === lang; + btn.classList.toggle("is-active", active); + btn.setAttribute("aria-pressed", active ? "true" : "false"); + }); + + try { window.localStorage.setItem(STORAGE_KEY, lang); } catch (e) { /* ignore */ } +} + +/* ---------------- Mobile menu ---------------- */ +function initMenu() { + const toggle = document.getElementById("menuToggle"); + const nav = document.getElementById("mainNav"); + if (!toggle || !nav) return; + + toggle.addEventListener("click", () => { + const open = nav.classList.toggle("open"); + toggle.setAttribute("aria-expanded", open ? "true" : "false"); + toggle.setAttribute("aria-label", I18N[currentLang][open ? "menu.close" : "menu.open"]); + }); + nav.querySelectorAll("a").forEach((link) => { + link.addEventListener("click", () => { + nav.classList.remove("open"); + toggle.setAttribute("aria-expanded", "false"); + toggle.setAttribute("aria-label", I18N[currentLang]["menu.open"]); + }); + }); +} + +/* ---------------- FAQ accordion ---------------- */ +function initFaq() { + document.querySelectorAll(".faq-item").forEach((item) => { + const btn = item.querySelector(".faq-q"); + const answer = item.querySelector(".faq-a"); + if (!btn || !answer) return; + btn.addEventListener("click", () => { + const isOpen = item.classList.contains("open"); + document.querySelectorAll(".faq-item.open").forEach((other) => { + other.classList.remove("open"); + other.querySelector(".faq-a").style.maxHeight = null; + other.querySelector(".faq-q").setAttribute("aria-expanded", "false"); + }); + if (!isOpen) { + item.classList.add("open"); + answer.style.maxHeight = answer.scrollHeight + "px"; + btn.setAttribute("aria-expanded", "true"); + } + }); + }); +} + +/* ---------------- Lead form ---------------- */ +function showError(input, errorEl, message) { + if (input) input.classList.add("invalid"); + if (errorEl) { + errorEl.textContent = message; + errorEl.hidden = false; + } +} +function clearError(input, errorEl) { + if (input) input.classList.remove("invalid"); + if (errorEl) errorEl.hidden = true; +} + +function initForm() { + const form = document.getElementById("leadForm"); + const success = document.getElementById("formSuccess"); + const resetBtn = document.getElementById("formReset"); + if (!form || !success) return; + + const fields = [ + { input: document.getElementById("fName"), error: document.getElementById("errName"), kind: "required" }, + { input: document.getElementById("fEmail"), error: document.getElementById("errEmail"), kind: "email" }, + { input: document.getElementById("fPhone"), error: document.getElementById("errPhone"), kind: "phone" }, + { input: document.getElementById("fType"), error: document.getElementById("errType"), kind: "required" }, + { input: document.getElementById("fCity"), error: document.getElementById("errCity"), kind: "required" } + ]; + + fields.forEach(({ input, error }) => { + if (!input) return; + input.addEventListener("input", () => clearError(input, error)); + input.addEventListener("change", () => clearError(input, error)); + }); + + form.addEventListener("submit", (event) => { + event.preventDefault(); + const dict = I18N[currentLang]; + let valid = true; + let firstInvalid = null; + + fields.forEach(({ input, error, kind }) => { + if (!input) return; + const value = input.value.trim(); + if (kind === "required" && !value) { + showError(input, error, dict["err.required"]); + valid = false; + if (!firstInvalid) firstInvalid = input; + } else if (kind === "email" && value && !/^[^\s@]+@[^\s@]+\.[^\s@]{2,}$/.test(value)) { + showError(input, error, dict["err.email"]); + valid = false; + if (!firstInvalid) firstInvalid = input; + } else if (kind === "phone" && value && !/^\+?[0-9\s\-().]{7,20}$/.test(value)) { + showError(input, error, dict["err.phone"]); + valid = false; + if (!firstInvalid) firstInvalid = input; + } + }); + + if (!valid) { + if (firstInvalid) firstInvalid.focus(); + return; + } + + // Demo form: no data is sent or stored. + form.hidden = true; + success.hidden = false; + success.scrollIntoView({ behavior: "smooth", block: "center" }); + }); + + if (resetBtn) { + resetBtn.addEventListener("click", () => { + form.reset(); + fields.forEach(({ input, error }) => clearError(input, error)); + success.hidden = true; + form.hidden = false; + }); + } +} + +/* ---------------- Language buttons ---------------- */ +function initLangSwitch() { + document.querySelectorAll(".lang-btn").forEach((btn) => { + btn.addEventListener("click", () => applyLanguage(btn.getAttribute("data-lang"))); + }); +} + +/* ---------------- Init ---------------- */ +document.addEventListener("DOMContentLoaded", () => { + applyLanguage(getStoredLang()); + initLangSwitch(); + initMenu(); + initFaq(); + initForm(); +}); diff --git a/styles.css b/styles.css new file mode 100644 index 0000000..9f105b3 --- /dev/null +++ b/styles.css @@ -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; } +}