/* =====================================================
   KØBERKARTOTEKET
   DESIGN
   ===================================================== */

:root {
    --color-primary: #1f2a2e;
    --color-secondary: #e8e3dc;
    --color-background: #f8f7f4;
    --color-white: #ffffff;
    --color-text: #1f2426;
    --color-muted: #6f7475;
    --color-border: #dedbd5;

    --font-heading: Arial, sans-serif;
    --font-body: Arial, sans-serif;

    --content-width: 1200px;
    --radius: 2px;
}


/* =====================================================
   RESET
   ===================================================== */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--color-background);
    color: var(--color-text);
    font-family: var(--font-body);
    line-height: 1.6;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
}


/* =====================================================
   HEADER
   ===================================================== */

.header {
    position: relative;
    z-index: 100;
    background: var(--color-background);
    border-bottom: 1px solid var(--color-border);
}

.header-inner {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 24px 32px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.menu-button {
    border: none;
    background: transparent;
    cursor: pointer;

    display: flex;
    flex-direction: column;
    gap: 6px;

    padding: 8px;
}

.menu-line {
    display: block;
    width: 27px;
    height: 2px;
    background: var(--color-primary);
}


/* =====================================================
   MENU
   ===================================================== */

.menu {
    display: none;
    position: absolute;
   z-index: 100;
    top: 100%;
    left: 0;
    right: 0;

    background: var(--color-white);
    border-bottom: 1px solid var(--color-border);
}

.menu.open {
    display: block;
}

.menu-inner {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 30px 32px 40px;
}

.menu a {
    display: block;
    padding: 10px 0;

    text-decoration: none;
    font-size: 20px;
    font-weight: 500;
}

.menu a:hover {
    text-decoration: underline;
}

.menu-divider {
    height: 1px;
    background: var(--color-border);
    margin: 20px 0;
}


/* =====================================================
   HERO
   ===================================================== */

.hero {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 70px 32px 80px;

    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    max-width: 560px;
}

.hero-label {
    margin-bottom: 20px;

    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-muted);
}

.hero h1 {
    margin-bottom: 25px;

    font-family: var(--font-heading);
    font-size: clamp(42px, 5vw, 72px);
    line-height: 1.02;
    font-weight: 600;
    letter-spacing: -0.04em;
}

.hero-text {
    max-width: 500px;
    margin-bottom: 32px;

    font-size: 19px;
    color: var(--color-muted);
}

.primary-button {
    display: inline-block;

      margin-top: 12px;

    padding: 15px 25px;

    background: var(--color-primary);
    color: var(--color-white);

    text-decoration: none;
    font-size: 15px;
    font-weight: 600;

    border-radius: var(--radius);
    transition: opacity 0.2s ease;
}

.primary-button:hover {
    opacity: 0.85;
}

.hero-image {
    height: 560px;
    overflow: hidden;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* =====================================================
   SECTIONS
   ===================================================== */

.section {
    padding: 100px 32px;
}

.section-inner {
    max-width: var(--content-width);
    margin: 0 auto;
}

.section-light {
    background: var(--color-white);
}

.section-heading {
    max-width: 700px;
    margin-bottom: 45px;
}

.section-label {
    margin-bottom: 12px;

    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-muted);
}

.section h2 {
    font-family: var(--font-heading);
    font-size: clamp(34px, 4vw, 52px);
    line-height: 1.08;
    letter-spacing: -0.03em;
    font-weight: 600;
}


/* =====================================================
   AREA SEARCH
   ===================================================== */

.area-search-section {
    background: var(--color-white);
}

.area-search-box {
    max-width: 800px;
}

.area-input-wrapper {
    display: flex;
    border-bottom: 2px solid var(--color-primary);
}

.area-input {
    width: 100%;
    padding: 18px 0;

    border: none;
    outline: none;
    background: transparent;

    font-size: 22px;
    font-family: var(--font-body);
}

.area-input::placeholder {
    color: #999;
}

.search-icon {
    padding: 18px 0 18px 20px;
    font-size: 20px;
}

.area-result {
    margin-top: 35px;
    padding: 35px;

    background: var(--color-background);
}

.area-result h3 {
    margin-bottom: 8px;
    font-size: 25px;
}

.area-result-number {
    font-size: 52px;
    line-height: 1;
    font-weight: 600;
}

.area-result-text {
    margin-top: 8px;
    color: var(--color-muted);
}

.area-note {
    max-width: 700px;
    margin-top: 35px;

    font-size: 19px;
}


/* =====================================================
   TEXT LINKS
   ===================================================== */

.text-link {
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.text-link:hover {
    opacity: 0.65;
}


/* =====================================================
   BEFORE PUBLIC MARKET
   ===================================================== */

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

.early-content {
    max-width: 800px;
}

.early-section .section-label {
    color: rgba(255,255,255,0.65);
}

.early-section p {
    margin-top: 25px;
    font-size: 20px;
    color: rgba(255,255,255,0.78);
}


/* =====================================================
   THREE STEPS
   ===================================================== */

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
}

.step {
    border-top: 1px solid var(--color-border);
    padding-top: 22px;
}

.step-number {
    margin-bottom: 25px;

    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--color-muted);
}

.step h3 {
    margin-bottom: 15px;

    font-size: 24px;
    line-height: 1.2;
}

.step p {
    color: var(--color-muted);
}


/* =====================================================
   FINAL CTA
   ===================================================== */

.final-section {
    text-align: center;
}

.final-section .section-inner {
    max-width: 600px;
}

.final-section h2 {
    margin-bottom: 30px;
}

.final-section p {
    max-width: 600px;
    margin: 0 auto 35px;

    font-size: 19px;
    color: var(--color-muted);
}


/* =====================================================
   FOOTER
   ===================================================== */

.footer {
    padding: 35px 32px;

    background: var(--color-white);
    border-top: 1px solid var(--color-border);
}

.footer-inner {
    max-width: var(--content-width);
    margin: 0 auto;

    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.footer p {
    font-size: 13px;
    color: var(--color-muted);
}


/* =====================================================
   MOBILE
   ===================================================== */

@media (max-width: 800px) {

    .header-inner {
        padding: 20px;
    }

    .hero {
        padding: 45px 20px 55px;

        grid-template-columns: 1fr;
        gap: 35px;
    }

    .hero-image {
        height: 400px;
    }

    .section {
        padding: 70px 20px;
    }

    .steps {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .area-result {
        padding: 25px;
    }

    .area-result-number {
        font-size: 42px;
    }

    .footer {
        padding: 30px 20px;
    }

    .footer-inner {
        flex-direction: column;
    }
}

/* MENU OVERLAY */

.menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(31, 42, 46, 0.35);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

   transition: none;

    z-index: 90;
}

.menu-overlay.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* =====================================================
   KØBERKARTOTEK
   ===================================================== */

.buyer-hero {
    padding: 110px 24px 85px;
    background: var(--color-background);
}

.buyer-hero-inner {
    max-width: var(--content-width);
    margin: 0 auto;
}

.buyer-hero h1 {
    max-width: 800px;
    margin: 14px 0 24px;
    font-size: 58px;
    line-height: 1.05;
    font-weight: 500;
    letter-spacing: -2px;
}

.buyer-hero-text {
    max-width: 650px;
    margin: 0;
    color: var(--color-muted);
    font-size: 18px;
    line-height: 1.7;
}


.buyer-form-section {
    padding: 85px 24px 120px;
    background: var(--color-white);
}

.buyer-form-inner {
    max-width: 900px;
    margin: 0 auto;
}


.buyer-form-block {
    padding: 0 0 80px;
    border-bottom: 1px solid var(--color-border);
}


.buyer-form-heading {
    display: flex;
    align-items: flex-start;
    gap: 28px;
    margin-bottom: 38px;
}

.buyer-form-number {
    flex: 0 0 auto;
    padding-top: 7px;
    color: var(--color-muted);
    font-size: 13px;
    letter-spacing: 1px;
}

.buyer-form-heading h2 {
    margin: 0 0 10px;
    font-size: 32px;
    line-height: 1.2;
    font-weight: 500;
    letter-spacing: -0.5px;
}

.buyer-form-heading p {
    margin: 0;
    color: var(--color-muted);
    font-size: 16px;
    line-height: 1.6;
}


/* OMRÅDESØGNING */

.buyer-area {
    margin-left: 57px;
}

.buyer-area-search {
    position: relative;
}

.buyer-area-search input {
    width: 100%;
    height: 68px;
    padding: 0 60px 0 22px;

    border: 1px solid var(--color-border);
    border-radius: var(--radius);

    background: var(--color-background);

    color: var(--color-text);
    font-family: inherit;
    font-size: 16px;

    outline: none;

    transition:
        border-color 0.2s ease,
        background 0.2s ease;
}

.buyer-area-search input::placeholder {
    color: var(--color-muted);
}

.buyer-area-search input:focus {
    border-color: var(--color-primary);
    background: var(--color-white);
}

.buyer-area-search-icon {
    position: absolute;
    top: 50%;
    right: 22px;

    transform: translateY(-50%);

    color: var(--color-muted);
    font-size: 25px;
    line-height: 1;

    pointer-events: none;
}


/* RESULTATER */

.buyer-area-suggestions {
    display: none;
    margin-top: 8px;

    border: 1px solid var(--color-border);
    background: var(--color-white);
}


/* VALGTE OMRÅDER */

.buyer-selected-areas {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.buyer-selected-area {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    padding: 10px 14px;

    border: 1px solid var(--color-border);
    background: var(--color-background);

    font-size: 14px;
}

.buyer-selected-area button {
    padding: 0;
    border: 0;
    background: none;

    color: var(--color-muted);
    font-size: 17px;
    line-height: 1;

    cursor: pointer;
}


/* MOBIL */

@media (max-width: 700px) {

    .buyer-hero {
        padding: 75px 20px 60px;
    }

    .buyer-hero h1 {
        font-size: 42px;
        letter-spacing: -1.2px;
    }

    .buyer-hero-text {
        font-size: 16px;
    }

    .buyer-form-section {
        padding: 60px 20px 90px;
    }

    .buyer-form-heading {
        gap: 18px;
    }

    .buyer-form-heading h2 {
        font-size: 26px;
    }

    .buyer-area {
        margin-left: 0;
    }

    .buyer-form-number {
        padding-top: 5px;
    }

}

/* =====================================================
   KØBERKARTOTEK — BOLIGØNSKER
   ===================================================== */

.buyer-form-block-details {
    padding-top: 80px;
}


.buyer-details {
    margin-left: 57px;
    max-width: 760px;
}


.buyer-field-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-bottom: 28px;
}


.buyer-field {
    margin-bottom: 28px;
}

.buyer-field-group .buyer-field {
    margin-bottom: 0;
}


.buyer-field-full {
    width: 100%;
}


.buyer-field label {
    display: block;
    margin-bottom: 10px;

    color: var(--color-text);

    font-size: 14px;
    font-weight: 600;
}


.buyer-field-label-spacer {
    visibility: hidden;
}


.buyer-field input,
.buyer-field select {
    box-sizing: border-box;

    width: 100%;
    height: 58px;

    padding: 0 18px;

    border: 1px solid var(--color-border);
    border-radius: var(--radius);

    background: var(--color-background);

    color: var(--color-text);

    font-family: inherit;
    font-size: 15px;

    outline: none;

    transition:
        border-color 0.2s ease,
        background 0.2s ease;
}


.buyer-field input::placeholder {
    color: var(--color-muted);
}


.buyer-field input:focus,
.buyer-field select:focus {
    border-color: var(--color-primary);
    background: var(--color-white);
}


.buyer-input-with-suffix {
    position: relative;
}


.buyer-input-with-suffix input {
    padding-right: 55px;
}


.buyer-input-with-suffix span {
    position: absolute;

    top: 50%;
    right: 18px;

    transform: translateY(-50%);

    color: var(--color-muted);

    font-size: 14px;

    pointer-events: none;
}


@media (max-width: 700px) {

    .buyer-details {
        margin-left: 0;
    }

    .buyer-field-group {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .buyer-field-group .buyer-field {
        margin-bottom: 28px;
    }

    .buyer-field-label-spacer {
        display: none;
    }

}

.buyer-field-error {
    margin-top: 8px;
    color: var(--color-muted);
    font-size: 13px;
    line-height: 1.4;
}

.buyer-choice-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    height: 58px;
}

.buyer-choice {
    border: 1px solid var(--color-border);
    background: var(--color-background);
    color: var(--color-muted);
    font-family: inherit;
    font-size: 15px;
    cursor: pointer;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.buyer-choice:first-child {
    border-radius: var(--radius) 0 0 var(--radius);
}

.buyer-choice:last-child {
    margin-left: -1px;
    border-radius: 0 var(--radius) var(--radius) 0;
}

.buyer-choice.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-white);
}

/* =====================================================
   KØBERKARTOTEK — AFSLUTNING
   ===================================================== */

.buyer-form-finish {
    padding-top: 60px;
    text-align: center;
}

.buyer-form-finish p {
    margin: 0 0 30px;
    color: var(--color-muted);
    font-size: 14px;
    line-height: 1.6;
    font-style: italic;
}

.buyer-form-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 180px;
    height: 58px;
    padding: 0 28px;
    box-sizing: border-box;
    border-radius: var(--radius);
    background: var(--color-primary);
    color: var(--color-white);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: opacity .2s ease;
}

.buyer-form-submit:hover {
    opacity: .88;
}
