/* Montserrat (SIL Open Font License, wwwroot/lib/montserrat), the same files and faces as in the meeting room booking.
   One variable file per script covers every weight; the latin-ext file only loads when such characters appear. */
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    src: url('lib/montserrat/montserrat-latin-wght-normal.woff2') format('woff2-variations');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    src: url('lib/montserrat/montserrat-latin-ext-wght-normal.woff2') format('woff2-variations');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Birsta Business Center (the sketch from 2026-10-25): white and warm light grey, dark text, a deep blue for
   buttons and links, and a dark blue-grey band for "Kom och titta". */
:root {
    --font: 'Montserrat', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --text: #222;
    --text-soft: #4a4642;
    --muted: #5f5a54;
    --accent: #0b5f97;
    --accent-dark: #084a76;
    --line: #e6e2dc;
    --light: #f7f5f1;
    --dark: #1f2a33;
    --gutter: clamp(16px, 4vw, 48px);
    --measure: 46rem;
    --page: 77.5rem;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--font);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--text);
    background: #fff;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--accent);
}

a:hover {
    color: var(--accent-dark);
}

h1, h2, h3 {
    font-weight: 600;
    line-height: 1.2;
}

/* Buttons */

.button {
    display: inline-block;
    padding: 0.85rem 1.6rem;
    font-weight: 600;
    text-decoration: none;
    color: #fff;
    background: var(--accent);
    border: 1px solid var(--accent);
    border-radius: 3px;
}

.button:hover {
    color: #fff;
    background: var(--accent-dark);
}

.button-small {
    padding: 0.7rem 1.2rem;
}

.button-light {
    color: #1f1c19;
    background: #fff;
    border-color: #fff;
}

.button-light:hover {
    color: #1f1c19;
    background: #eee;
}

.button-outline {
    color: #fff;
    background: transparent;
    border-color: #fff;
}

.button-outline:hover {
    background: rgba(255, 255, 255, 0.15);
}

.more {
    font-weight: 600;
    color: var(--accent);
}

.eyebrow {
    margin: 0;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
}

/* Header and menu */

.site-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 2rem;
    padding: 1.1rem var(--gutter);
    border-bottom: 1px solid var(--line);
}

.wordmark {
    display: flex;
    flex-direction: column;
    color: var(--text);
    text-decoration: none;
}

.wordmark:hover {
    color: var(--text);
}

.wordmark-name {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--accent);
}

/* The Wiwall pages: the W logo beside the name. */
.wordmark-wiwall {
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
}

.wordmark-wiwall img {
    display: block;
    width: 48px;
    height: auto;
}

.wordmark-wiwall > span {
    display: flex;
    flex-direction: column;
}

.wordmark-tagline {
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    color: var(--muted);
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.site-nav a:not(.button),
.site-nav summary {
    color: #3d3a36;
    text-decoration: none;
    cursor: pointer;
}

.site-nav a:not(.button):hover,
.site-nav summary:hover,
.site-nav a.active {
    color: var(--accent);
}

.site-nav .nav-phone {
    letter-spacing: 0.02em;
    color: var(--accent);
}

.submenu {
    position: relative;
}

.submenu summary {
    list-style: none;
}

.submenu summary::-webkit-details-marker {
    display: none;
}

.submenu summary::after {
    content: " ▾";
}

.submenu ul {
    position: absolute;
    z-index: 10;
    top: 1.75rem;
    left: -1rem;
    width: max-content;
    max-width: calc(100vw - 2 * var(--gutter));
    margin: 0;
    padding: 0.75rem 1rem;
    list-style: none;
    text-transform: none;
    letter-spacing: 0;
    font-size: 0.95rem;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.submenu li + li {
    margin-top: 0.5rem;
}

/* Page content */

main {
    min-height: 60vh;
}

.text {
    max-width: calc(var(--measure) + 2 * var(--gutter));
    margin: 0 auto;
    padding: 3rem var(--gutter) 1rem;
}

.text h2 {
    margin-top: 2.2rem;
}

.lead {
    font-size: 1.15rem;
}

.price {
    font-size: 1.2rem;
    font-weight: 600;
}

.price .vat {
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--muted);
}

.price-note {
    font-size: 0.9rem;
    color: var(--muted);
}

/* The room prices on /kontorsrum */

.price-table {
    width: 100%;
    margin: 1rem 0;
    border-collapse: collapse;
    font-variant-numeric: tabular-nums;
}

.price-table th,
.price-table td {
    padding: 0.6rem 0.5rem;
    text-align: left;
    white-space: nowrap;
    border-bottom: 1px solid var(--line);
}

.price-table thead th {
    font-size: 0.85rem;
    color: var(--muted);
    font-weight: 600;
}

.price-table tbody th {
    font-weight: 600;
}

.price-table td:last-child,
.price-table thead th:last-child {
    text-align: right;
    white-space: nowrap;
}

.price-table tbody td:last-child {
    font-weight: 600;
}

.price-list {
    margin: 0.5rem 0 1rem;
    padding: 0;
    list-style: none;
}

.price-list li {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.25rem 1.5rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--line);
}

.price-list li span:first-child {
    flex: 1 1 16rem;
}

.price-list li span:last-child {
    margin-left: auto;
    font-weight: 600;
    white-space: nowrap;
}

/* On narrow screens every price goes on its own line under the text, so all rows look the same. */
@media (max-width: 640px) {
    .price-list li {
        flex-direction: column;
    }

    .price-list li span:first-child {
        flex: none;
    }

    .price-list li span:last-child {
        margin-left: 0;
        white-space: normal;
    }
}

.section {
    max-width: calc(var(--page) + 2 * var(--gutter));
    margin: 0 auto;
    padding: 5rem var(--gutter) 2.5rem;
}

.section-title {
    margin: 0;
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
}

.section-intro {
    margin: 0.75rem 0 2.5rem;
    font-size: 1.1rem;
    color: var(--muted);
}

.row-link {
    margin: 1rem 0 0;
    font-weight: 600;
}

/* Bands across the whole width */

.band-inner {
    max-width: calc(var(--page) + 2 * var(--gutter));
    margin: 0 auto;
    padding: 5rem var(--gutter);
}

.band-light {
    margin-top: 3rem;
    background: var(--light);
}

.band-dark {
    margin-top: 3rem;
    color: #fff;
    background: var(--dark);
}

.band-dark .section-intro {
    color: #d7dde2;
}

.band-dark a {
    color: #fff;
}

/* Start page: the photo at the top */

/* The photo fills the box behind the text, so the text and min-height decide the height, not the photo's shape. */
.hero {
    position: relative;
    display: grid;
    min-height: clamp(420px, 48vw, 620px);
    overflow: hidden;
    background: #2b2724;
}

.hero > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-text {
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: clamp(24px, 5vw, 72px) var(--gutter);
    color: #fff;
    background: linear-gradient(180deg, rgba(20, 18, 16, 0.05) 25%, rgba(20, 18, 16, 0.75) 100%);
}

.hero-text > div {
    max-width: 52rem;
}

/* On narrow screens the text goes at the top and the buttons at the bottom, so the dining room shows in between.
   The darkening is strongest behind the text and a little behind the buttons. */
@media (max-width: 760px) {
    .hero-text {
        align-items: stretch;
        background: linear-gradient(180deg, rgba(20, 18, 16, 0.8) 0%, rgba(20, 18, 16, 0.5) 40%, rgba(20, 18, 16, 0.15) 65%, rgba(20, 18, 16, 0.55) 100%);
    }

    .hero-text > div {
        display: flex;
        flex-direction: column;
    }

    .hero-text .hero-actions {
        margin-top: auto;
        padding-top: 1.75rem;
    }
}

.hero .eyebrow {
    color: #fff;
}

.hero h1 {
    margin: 0.75rem 0 0;
    font-size: clamp(2rem, 4.6vw, 3.5rem);
    line-height: 1.1;
}

/* The second, smaller line of the start page heading */
.hero h1 .h1-sub {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.55em;
    font-weight: 500;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.75rem;
}

/* The row of short facts under the photo */

.fact-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 9.5rem), 1fr));
    gap: 1px;
    background: var(--line);
    border-bottom: 1px solid var(--line);
}

.fact-row > div {
    padding: 1.5rem clamp(16px, 3vw, 40px);
    background: var(--light);
}

.fact-row strong {
    display: block;
    font-size: clamp(1.2rem, 4.5vw, 1.6rem);
}

.fact-row span {
    font-size: 0.9rem;
    color: var(--muted);
}

/* The three offers */

.offer-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 17.5rem), 1fr));
    gap: 1.75rem;
}

.offer-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 4px;
}

.offer-photo {
    position: relative;
    display: block;
}

/* "Visualisering" on an AI-edited photo that has no caption (the unit card on the start page, the Huset gallery). */
.photo-label {
    position: absolute;
    top: 0.6rem;
    left: 0.6rem;
    padding: 0.2rem 0.5rem;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: #fff;
    background: rgba(20, 18, 16, 0.65);
    border-radius: 3px;
}

.offer-photo img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.offer-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 0.6rem;
    padding: 1.5rem;
}

.offer-body h3 {
    margin: 0;
    font-size: 1.45rem;
}

.offer-body h3 a {
    color: var(--text);
    text-decoration: none;
}

.offer-body h3 a:hover {
    color: var(--accent);
}

.offer-body p,
.offer-body ul {
    margin: 0;
    color: var(--text-soft);
}

.offer-body ul {
    padding-left: 1.1rem;
}

.offer-body .note {
    font-size: 0.9rem;
    color: var(--muted);
}

.offer-body .price {
    margin-top: auto;
    padding-top: 0.75rem;
    color: var(--text);
}

.offer-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1.25rem;
}

.add-on {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 0.75rem;
    align-items: baseline;
    margin: 1.75rem 0 0;
    padding: 1.1rem 1.4rem;
    color: var(--text-soft);
    background: var(--light);
    border-radius: 4px;
}

.add-on strong {
    color: var(--text);
}

.add-on a {
    font-weight: 600;
}

/* "Det här ingår i hyran" */

.included {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
    gap: 1.75rem 2rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.included li {
    display: flex;
    gap: 0.9rem;
    align-items: flex-start;
}

.included .icon {
    flex-shrink: 0;
    color: var(--accent);
}

.included strong {
    display: block;
}

.included span {
    color: var(--text-soft);
}

/* Four photos in a row */

.photo-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 13.75rem), 1fr));
    gap: 0.75rem;
}

.photo-row img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 3px;
}

.section .row-link {
    text-align: right;
}

/* Location: text beside the map */

.location {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    align-items: center;
}

.location > * {
    flex: 1 1 22rem;
    min-width: 0;
}

.location .section-intro {
    margin-bottom: 1.5rem;
}

.location .row-link {
    text-align: left;
}

.location-list {
    display: grid;
    gap: 0.6rem;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 1.05rem;
}

.text .location-list {
    margin: 1.5rem 0;
}

/* "Kom och titta": contact person and form */

.contact-block {
    display: flex;
    flex-wrap: wrap;
    gap: 3.5rem;
}

.contact-block > * {
    flex: 1 1 22rem;
    min-width: 0;
}

.person {
    display: flex;
    gap: 1.25rem;
    align-items: center;
}

.person img {
    width: 96px;
    height: 96px;
    object-fit: cover;
    border-radius: 50%;
}

.person-name {
    font-size: 1.25rem;
    font-weight: 600;
}

.person-role {
    color: #b9c3cb;
}

.person-reach {
    margin-top: 0.4rem;
}

.visit-address {
    margin-top: 2rem;
    color: #d7dde2;
}

.page-head {
    padding-bottom: 0;
}

.page-head h1 {
    margin-top: 0;
    font-size: clamp(2rem, 5vw, 3rem);
}

/* A wide photo with the page heading on it (the other pages). */

.banner {
    position: relative;
    display: grid;
    min-height: clamp(240px, 38vw, 480px);
    overflow: hidden;
    background: #333;
}

.banner.tall {
    min-height: clamp(240px, 38vw, 560px);
}

.banner img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-text {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem var(--gutter);
    color: #fff;
    background: linear-gradient(180deg, rgba(20, 18, 16, 0.05) 30%, rgba(20, 18, 16, 0.7) 100%);
}

.banner-text h1 {
    max-width: 45rem;
    margin: 0;
    font-size: clamp(1.9rem, 5vw, 3.2rem);
}

.banner-text p {
    margin: 0.6rem 0 0;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

/* Om Wiwall: the property cards */

.teasers {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
    gap: 2.5rem;
    max-width: calc(var(--measure) + 2 * var(--gutter));
    margin: 0 auto;
    padding: 1rem var(--gutter) 1rem;
}

.teaser img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.teaser h2 {
    font-size: 1.2rem;
}

/* Property pages: text with a facts box beside it on wide screens. */
.property {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 48rem) {
    .property {
        grid-template-columns: 3fr 2fr;
    }
}

.facts {
    padding: 1.2rem 1.5rem;
    background: var(--light);
}

.facts h2 {
    margin: 0 0 0.6rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.facts h2 + * + h2,
.facts dl + h2 {
    margin-top: 1.4rem;
}

.facts dl {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.2rem 1rem;
    margin: 0;
}

.facts dt {
    color: var(--muted);
}

.facts dd {
    margin: 0;
}

.facts p {
    margin: 0;
}

/* Photo galleries */
.wide {
    max-width: calc(var(--page) + 2 * var(--gutter));
    margin: 0 auto;
    padding: 1rem var(--gutter);
}

/* Two photos side by side with captions: a real photo and a visualisation of it (/kontorsenheter). */
.photo-pair {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
    gap: 1rem;
}

.photo-pair figure {
    margin: 0;
}

.photo-pair img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 3px;
}

.photo-pair figcaption {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--muted);
}

.gallery {
    display: grid;
    /* At most four photos in a row, fewer on narrow screens. */
    grid-template-columns: repeat(auto-fill, minmax(min(100%, max(14rem, (100% - 3 * 0.6rem) / 4)), 1fr));
    gap: 0.6rem;
    margin-bottom: 0.6rem;
}

.gallery img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 3px;
    transition: opacity 0.15s;
}

.gallery a {
    position: relative;
}

.gallery a:hover img {
    opacity: 0.85;
}

/* Maps */
.map iframe {
    display: block;
    width: 100%;
    height: 320px;
    border: 1px solid var(--line);
    border-radius: 4px;
}

.location .map iframe {
    height: auto;
    aspect-ratio: 4 / 3;
}

.map-links {
    display: flex;
    gap: 1.5rem;
    font-size: 0.9rem;
}

/* Floor plan */
.floor-plan {
    margin: 2.5rem 0 0;
}

.floor-plan img {
    display: block;
    width: 100%;
    border: 1px solid var(--line);
}

.floor-plan h3 {
    margin: 1rem 0 0.4rem;
    font-size: 1.1rem;
}

.floor-plan ul {
    margin: 0;
    padding-left: 1.2rem;
    font-size: 0.95rem;
}

/* The form ("Boka visning"), a white card on the dark band */

.lead-form {
    display: grid;
    align-content: start;
    padding: 1.75rem;
    color: var(--text);
    background: #fff;
    border-radius: 4px;
}

.lead-form h3 {
    margin: 0 0 1rem;
    font-size: 1.25rem;
}

.lead-form a {
    color: var(--accent);
}

.lead-form .field {
    margin-bottom: 1rem;
}

.lead-form label {
    display: block;
    margin-bottom: 0.3rem;
    font-size: 0.85rem;
    font-weight: 600;
}

.lead-form input:not([type=checkbox]),
.lead-form select,
.lead-form textarea {
    width: 100%;
    padding: 0.75rem;
    font: inherit;
    color: inherit;
    background: #fff;
    border: 1px solid #c9c4bd;
    border-radius: 3px;
}

.lead-form input:focus,
.lead-form select:focus,
.lead-form textarea:focus {
    outline: 2px solid var(--accent);
    outline-offset: 1px;
    border-color: var(--accent);
}

.lead-form .consent {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.25rem 0.6rem;
    align-items: start;
}

.lead-form .consent input {
    margin-top: 0.2rem;
    width: 1.2rem;
    height: 1.2rem;
}

.lead-form .consent label {
    font-size: 0.85rem;
    font-weight: 400;
}

.lead-form .consent .validation-message {
    grid-column: 1 / -1;
}

.lead-form button {
    width: 100%;
    padding: 0.9rem 1.25rem;
    font: inherit;
    font-weight: 600;
    color: #fff;
    background: var(--accent);
    border: 0;
    border-radius: 3px;
    cursor: pointer;
}

.lead-form button:hover {
    background: var(--accent-dark);
}

.lead-form .validation-message {
    margin-top: 0.3rem;
    font-size: 0.85rem;
    color: #b00020;
}

.lead-form .invalid {
    border-color: #b00020;
}

.form-error {
    padding: 0.8rem 1rem;
    color: #7a0016;
    background: #fdecee;
    border-left: 3px solid #b00020;
}

.form-thanks {
    margin: 0;
    padding: 0.8rem 1rem;
    background: #eef6ee;
    border-left: 3px solid #2e7d32;
}

/* The honeypot field: off screen rather than display:none, which some robots skip. */
.hp {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Footer */

.site-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem 2rem;
    padding: 2rem var(--gutter);
    font-size: 0.875rem;
    color: var(--muted);
    border-top: 1px solid var(--line);
}

.site-footer p {
    margin: 0 0 0.75rem;
}

.site-footer a {
    color: inherit;
}

.site-footer .owner {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    max-width: 40rem;
}

.w-logo img {
    display: block;
    width: 40px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
    margin: 0;
    padding: 0;
    list-style: none;
}
