/* M-Lau Living — public marketing site (mlauliving.dk).
   Calm Scandinavian minimalism (Movinn/Kassøe register): white ground,
   near-black text, sentence case, hairlines, photography-led cards, dark
   pill buttons. Hand-written, no build step. Font self-hosted (SIL OFL):
   Instrument Sans variable. */

@font-face {
    font-family: 'Instrument Sans';
    src: url('fonts/instrument-sans-var-latin.woff2') format('woff2-variations');
    font-weight: 400 700;
    font-display: swap;
}

:root {
    --ink: #16201b;
    --text: #232b26;
    --text-soft: #6a7069;
    --bg: #ffffff;
    --bg-alt: #f7f6f2;
    --line: #e7e4dc;
    --green: #1f5c4e;
    --footer: #161d19;
    --radius: 12px;
    --font: 'Instrument Sans', -apple-system, 'Helvetica Neue', Arial, sans-serif;
    --ease: cubic-bezier(0.25, 0.6, 0.3, 1);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    color: var(--text);
    background: var(--bg);
    line-height: 1.65;
    font-size: 16.5px;
    -webkit-font-smoothing: antialiased;
}

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

a { color: var(--ink); text-decoration: none; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 1.5rem; }

h1, h2, h3 { color: var(--ink); font-weight: 600; letter-spacing: -0.015em; text-wrap: balance; }

h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); line-height: 1.08; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.15; }
h3 { font-size: 1.08rem; line-height: 1.35; }

.eyebrow {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-soft);
    margin-bottom: 0.9rem;
}

/* Buttons — dark pills, sentence case */

.btn {
    display: inline-block;
    padding: 0.78rem 1.5rem;
    border-radius: 999px;
    font-family: var(--font);
    font-size: 0.95rem;
    font-weight: 550;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background 0.2s var(--ease), color 0.2s, border-color 0.2s, opacity 0.2s;
}

.btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

.btn-sm { padding: 0.5rem 1.1rem; font-size: 0.88rem; }

.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #2b3831; color: #fff; }

.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--bg-alt); }

.btn-outline-light { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-outline-light:hover { border-color: var(--ink); }

/* Header — white, quiet */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
}

.site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    height: 74px;
}

.site-logo img { height: 30px; width: auto; }

.site-nav { display: flex; align-items: center; gap: 1.9rem; }

.site-nav a { color: var(--text); font-size: 0.95rem; font-weight: 500; }

.site-nav a:hover, .site-nav a.is-active { color: var(--ink); text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }

.site-nav .nav-cta { color: #fff; text-decoration: none; }
.site-nav .nav-cta:hover { color: #fff; text-decoration: none; }

.site-nav .nav-login { color: var(--text-soft); }
.site-nav .nav-login:hover { color: var(--ink); }

.nav-toggle-input { display: none; }
.nav-toggle { display: none; }

/* Language toggle */

.lang-switch { position: relative; }

.lang-switch summary {
    list-style: none;
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--text-soft);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0.4rem 0.9rem;
}

.lang-switch summary::-webkit-details-marker { display: none; }
.lang-switch summary::after { content: ' ▾'; font-size: 0.7em; }
.lang-switch summary:hover { color: var(--ink); border-color: var(--ink); }

.lang-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(22, 32, 27, 0.08);
    padding: 0.4rem;
    display: flex;
    flex-direction: column;
    min-width: 5.5rem;
    z-index: 60;
}

.lang-menu a {
    padding: 0.45rem 0.9rem;
    border-radius: 7px;
    font-size: 0.85rem;
    font-weight: 550;
    letter-spacing: 0.06em;
    color: var(--text);
}

.lang-menu a:hover { background: var(--bg-alt); text-decoration: none; }
.lang-menu a.is-active { background: var(--ink); color: #fff; }

/* Hero — light, typographic, photo beside the message */

.hero { background: var(--bg); padding: 5rem 0 4.5rem; }

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 3.5rem;
    align-items: center;
}

.hero-inner { max-width: 780px; }

.hero-photo img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: var(--radius);
    background: var(--bg-alt);
}

/* Full-width photo/video break between sections */

.photo-band, .video-band { padding-top: 0; }

.photo-band img,
.video-band video {
    width: 100%;
    aspect-ratio: 21 / 9;
    object-fit: cover;
    border-radius: var(--radius);
    background: var(--bg-alt);
    display: block;
}

/* Reference projects — photo grid */

.reference-grid {
    margin-top: 2.25rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem 1.5rem;
}

.reference-grid figure { margin: 0; }

.reference-grid img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    border-radius: var(--radius);
    background: var(--bg-alt);
}

.reference-grid figcaption {
    margin-top: 0.6rem;
    font-size: 0.92rem;
    font-weight: 550;
    color: var(--ink);
}

/* Partner logos — quiet grayscale strip */

.partner-grid {
    margin-top: 2.5rem;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 2rem 2.5rem;
    align-items: center;
}

.partner-grid img {
    max-height: 44px;
    width: 100%;
    object-fit: contain;
    filter: grayscale(1);
    opacity: 0.65;
    transition: filter 0.2s, opacity 0.2s;
}

.partner-grid img:hover { filter: none; opacity: 1; }

.hero-sub {
    margin-top: 1.5rem;
    font-size: 1.15rem;
    color: var(--text-soft);
    max-width: 36rem;
    line-height: 1.7;
}

.hero-actions { margin-top: 2.25rem; display: flex; gap: 0.8rem; flex-wrap: wrap; }

.hero-facts {
    margin-top: 4rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
    display: flex;
    gap: 3rem;
    flex-wrap: wrap;
}

.hero-fact { font-size: 0.95rem; color: var(--text-soft); }
.hero-fact strong { display: block; font-size: 1.05rem; font-weight: 600; color: var(--ink); }

/* Sections */

.section { padding: 5rem 0; }

.section-alt { background: var(--bg-alt); }

.section-dark { background: var(--bg-alt); color: var(--text); }

.section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2.25rem;
}

.link-more { font-weight: 550; font-size: 0.95rem; white-space: nowrap; }
.link-more:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Listing cards — photography-led, borderless */

.listing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem 1.75rem;
}

.listing-grid > div { display: flex; }
.listing-grid > div > .listing-card { flex: 1; }

.listing-card { color: var(--text); display: flex; flex-direction: column; }

.listing-card-photo {
    position: relative;
    aspect-ratio: 4 / 3;
    background: var(--bg-alt);
    border-radius: var(--radius);
    overflow: hidden;
}

.listing-card-photo > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--ease);
}

.listing-card:hover .listing-card-photo > img { transform: scale(1.03); }

.listing-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-alt);
}

.listing-card-placeholder img { height: 34px; width: auto; opacity: 0.3; }

.listing-badge {
    position: absolute;
    top: 0.8rem;
    left: 0.8rem;
    background: rgba(255, 255, 255, 0.95);
    color: var(--ink);
    font-size: 0.78rem;
    font-weight: 550;
    padding: 0.32rem 0.75rem;
    border-radius: 999px;
}

.listing-card-body { padding: 0.9rem 0.1rem 0; display: flex; flex-direction: column; gap: 0.18rem; flex: 1; }

.listing-card-area { font-size: 0.85rem; color: var(--text-soft); }

.listing-card h3 { font-weight: 600; }

.listing-card-capacity { font-size: 0.9rem; color: var(--text-soft); }

.listing-card-link { margin-top: 0.5rem; font-weight: 550; font-size: 0.9rem; color: var(--ink); }

.listing-card:hover .listing-card-link { text-decoration: underline; text-underline-offset: 4px; }

/* Services — hairline editorial columns */

.services-grid {
    margin-top: 2.5rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.services-grid-2col { grid-template-columns: repeat(2, 1fr); }

.service-card { border-top: 1px solid var(--ink); padding-top: 1.25rem; }

.service-card h3 { margin-bottom: 0.5rem; }

.service-card p { color: var(--text-soft); font-size: 0.95rem; }

.service-quote {
    grid-column: 1 / -1;
    border-top: none;
    margin-top: 2.5rem;
    padding: 0;
    text-align: center;
    font-size: clamp(1.25rem, 2.4vw, 1.7rem);
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: -0.01em;
    color: var(--ink);
}

.services-note { margin-top: 2rem; font-size: 1.05rem; color: var(--text-soft); }

/* Steps — small numerals, hairlines */

.steps {
    margin-top: 2.5rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.step { border-top: 1px solid var(--line); padding-top: 1.25rem; }

.step-number { display: block; font-size: 0.85rem; font-weight: 550; color: var(--text-soft); margin-bottom: 0.75rem; }

.step h3 { margin-bottom: 0.5rem; }
.step p { color: var(--text-soft); font-size: 0.95rem; }

/* Legacy value props */

.value-props { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.value-prop { border-top: 1px solid var(--line); padding-top: 1.25rem; }
.value-prop h3 { margin-bottom: 0.5rem; }
.value-prop p { color: var(--text-soft); font-size: 0.95rem; }

/* References + testimonials — quiet */

.reference-strip {
    margin-top: 1.75rem;
    display: flex;
    flex-wrap: wrap;
    column-gap: 2.25rem;
    row-gap: 0.6rem;
}

.reference-strip span { font-size: 0.95rem; color: var(--text-soft); }

.testimonials {
    margin-top: 2.75rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

.testimonial blockquote {
    font-size: 1.15rem;
    font-weight: 500;
    line-height: 1.55;
    color: var(--ink);
    letter-spacing: -0.01em;
}

.testimonial blockquote::before { content: '“'; }
.testimonial blockquote::after { content: '”'; }

.testimonial figcaption { margin-top: 1rem; font-size: 0.88rem; color: var(--text-soft); }

/* Prose (about page) */

.prose { max-width: 700px; }
.prose h2 { margin-bottom: 1.25rem; }
.prose p { color: var(--text-soft); margin-bottom: 1.25rem; max-width: 65ch; }

.pull-quote {
    border-left: 2px solid var(--ink);
    padding: 0.25rem 0 0.25rem 1.5rem;
    margin: 2rem 0;
    font-size: 1.3rem;
    font-weight: 500;
    line-height: 1.45;
    letter-spacing: -0.01em;
    color: var(--ink);
}

/* Page head (inner pages) */

.page-head { background: var(--bg); padding: 4.5rem 0 2.75rem; }

.page-head-sub { margin-top: 1.1rem; color: var(--text-soft); max-width: 560px; }

/* Empty state */

.empty-state { text-align: center; padding: 3rem 1rem; display: flex; flex-direction: column; align-items: center; gap: 0.75rem; }
.empty-state p { color: var(--text-soft); max-width: 460px; }
.empty-state .btn { margin-top: 0.75rem; }

/* City filter chips */

.chip-row { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-bottom: 2.25rem; }

.chip {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0.42rem 1.05rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text);
    background: var(--bg);
    transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.chip:hover { border-color: var(--ink); }

.chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }

/* Listing detail */

.breadcrumb { margin-bottom: 1.5rem; font-size: 0.92rem; }
.breadcrumb a { color: var(--text-soft); }
.breadcrumb a:hover { color: var(--ink); }

.listing-detail { padding-top: 3.5rem; }

.listing-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    gap: 3rem;
    align-items: start;
}

.listing-detail-main h1 { margin-bottom: 1rem; font-size: clamp(1.8rem, 3.5vw, 2.6rem); }

.listing-body { color: var(--text-soft); max-width: 62ch; }

.gallery { margin-bottom: 2rem; }

.gallery-main {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--radius);
    background: var(--bg-alt);
}

div.gallery-main { display: flex; }

.gallery-thumbs {
    margin-top: 0.7rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 0.6rem;
}

.gallery-thumb {
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    padding: 0;
    cursor: pointer;
    background: none;
    aspect-ratio: 4 / 3;
}

.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb:hover { border-color: var(--ink); }

.listing-detail-aside { display: flex; flex-direction: column; gap: 1.25rem; }

.facts-card {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.6rem;
}

.facts-card h2 { font-size: 1.08rem; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 0.9rem; }

.facts-card dl div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.55rem 0;
    border-bottom: 1px solid var(--line);
    font-size: 0.95rem;
}

.facts-card dl div:last-child { border-bottom: none; }
.facts-card dt { color: var(--text-soft); }
.facts-card dd { font-weight: 550; text-align: right; }

/* Contact page */

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    gap: 3rem;
    align-items: start;
}

.contact-aside { display: flex; flex-direction: column; gap: 1.25rem; }
.contact-aside dd a { font-weight: 550; }
.contact-aside-text { font-size: 0.95rem; color: var(--text-soft); margin-bottom: 1rem; }

/* Lead form */

.contact-container { max-width: 640px; }

.lead-form form { display: flex; flex-direction: column; gap: 1.1rem; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }

.lead-form label { display: flex; flex-direction: column; gap: 0.35rem; font-size: 0.88rem; font-weight: 550; color: var(--ink); }

.lead-form input,
.lead-form textarea {
    font: inherit;
    font-weight: 400;
    font-size: 0.98rem;
    padding: 0.72rem 0.95rem;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    color: var(--text);
    transition: border-color 0.2s;
    width: 100%;
    min-width: 0;
}

/* Inputs must never force the grid wider than its card. */
.form-grid > label { min-width: 0; }

/* The detail-page aside is too narrow for two columns. */
.listing-detail-aside .form-grid { grid-template-columns: 1fr; }

.lead-form input:focus,
.lead-form textarea:focus { outline: none; border-color: var(--ink); }

.lead-form .btn { align-self: flex-start; }

.form-privacy { font-size: 0.82rem; font-weight: 400; color: var(--text-soft); }
.form-privacy a { text-decoration: underline; text-underline-offset: 3px; }

.hp-field {
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.alert { border-radius: 10px; padding: 0.9rem 1.1rem; margin-bottom: 1.25rem; font-size: 0.95rem; }
.alert-success { background: #eef4ee; color: #24582f; }
.alert-error { background: #f9edea; color: #93392c; }
.alert-error ul { list-style: none; }

/* CTA band — quiet, centered */

.cta-band { background: var(--bg); padding: 5.5rem 0; border-top: 1px solid var(--line); }

.cta-band-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.75rem;
}

.cta-band h2 { max-width: 20ch; }

/* Footer — dark, columned */

.site-footer { background: var(--footer); color: rgba(255, 255, 255, 0.75); padding: 4rem 0 2rem; }

.site-footer-inner { display: flex; justify-content: space-between; gap: 3rem; flex-wrap: wrap; }

.footer-brand { max-width: 360px; }
.footer-brand img { height: 28px; width: auto; margin-bottom: 1rem; }
.footer-brand p { font-size: 0.9rem; color: rgba(255, 255, 255, 0.55); }

.footer-contact h3 { font-size: 0.88rem; font-weight: 600; color: #fff; margin-bottom: 0.8rem; }
.footer-contact p { font-size: 0.92rem; margin-bottom: 0.3rem; }
.footer-contact a { color: rgba(255, 255, 255, 0.75); }
.footer-contact a:hover { color: #fff; }

.footer-nav { display: flex; flex-direction: column; gap: 0.55rem; }
.footer-nav a { color: rgba(255, 255, 255, 0.75); font-size: 0.92rem; }
.footer-nav a:hover { color: #fff; }

.footer-meta {
    margin-top: 3rem;
    padding-top: 1.4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.45);
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Responsive */

@media (max-width: 900px) {
    .listing-grid, .steps, .value-props { grid-template-columns: repeat(2, 1fr); }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .listing-detail-grid, .contact-grid, .hero-grid { grid-template-columns: 1fr; }
    .hero { padding: 4.5rem 0 3.5rem; }
    .hero-grid { gap: 2.5rem; }
    .hero-photo img { aspect-ratio: 4 / 3; }
    .photo-band img, .video-band video { aspect-ratio: 16 / 9; }
    .reference-grid { grid-template-columns: repeat(2, 1fr); }
    .partner-grid { grid-template-columns: repeat(4, 1fr); }
    .hero-facts { gap: 2rem; }
}

@media (max-width: 640px) {
    .listing-grid, .steps, .value-props, .form-grid, .services-grid, .testimonials, .reference-grid { grid-template-columns: 1fr; }
    .partner-grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }

    .nav-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        width: 42px;
        height: 42px;
        cursor: pointer;
    }

    .nav-toggle span { display: block; height: 1.5px; background: var(--ink); border-radius: 2px; margin: 0 9px; }

    .site-nav {
        display: none;
        position: absolute;
        top: 74px;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: flex-start;
        background: var(--bg);
        border-bottom: 1px solid var(--line);
        padding: 1.4rem 1.5rem;
        gap: 1.1rem;
    }

    .nav-toggle-input:checked ~ .site-nav { display: flex; }

    .lang-menu { position: static; box-shadow: none; border: none; padding: 0; flex-direction: row; flex-wrap: wrap; gap: 0.25rem; }
}
