/* ============ RESET & BASE ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg: #ece6dc;          /* warm cream */
    --bg-alt: #e3dccf;
    --ink: #1a1a1a;
    --ink-soft: #555;
    --line: #b8ad9a;
    --line-soft: #cfc3ad;
    --accent: #1a1a1a;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--ink);
    font-size: 14px;
    line-height: 1.55;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img { display: block; max-width: 100%; height: auto; }
ul, ol { list-style: none; }

.thin { font-weight: 300; color: var(--ink-soft); }

/* ============ HEADER ============ */
.site-header {
    display: grid;
    grid-template-columns: 1fr 2.4fr 1fr;
    align-items: start;
    padding: 28px 40px;
    gap: 32px;
}

.logo {
    display: inline-block;
    line-height: 0;
}

.logo img {
    height: 28px;
    width: auto;
}

.main-nav {
    display: grid;
    grid-template-columns: repeat(4, auto);
    gap: 32px;
    justify-content: center;
}

.main-nav .nav-col li {
    margin-bottom: 4px;
    font-size: 13px;
}

.main-nav a {
    color: var(--ink);
    transition: color 0.2s;
    position: relative;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--ink);
}

.main-nav a.active::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: -2px;
    height: 1px;
    background: var(--ink);
}

.search {
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--ink);
    padding: 4px 0;
    justify-self: end;
    width: 220px;
}

.search input {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    font-family: inherit;
    font-size: 13px;
    color: var(--ink);
}

.search input::placeholder { color: var(--ink-soft); }

.search button { display: flex; align-items: center; justify-content: center; }

/* ============ HERO ============ */
.hero {
    padding: 24px 40px 64px;
}

.page-title {
    font-size: 32px;
    font-weight: 400;
    letter-spacing: -0.01em;
    margin-bottom: 24px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 48px;
    align-items: start;
}

.hero-image {
    position: relative;
}

.hero-image img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.hero-image figcaption {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 11px;
    color: var(--ink-soft);
    background: rgba(236, 230, 220, 0.8);
    padding: 4px 8px;
}

.hero-text {
    padding-top: 8px;
}

.hero-text .lead {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 24px;
    color: var(--ink);
}

.hero-text p {
    font-size: 13px;
    color: var(--ink-soft);
    margin-bottom: 24px;
    max-width: 380px;
}

/* CTA list */
.cta-list li { margin-bottom: 8px; }

.cta-list a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--ink);
    transition: opacity 0.2s;
}

.cta-list a:hover { opacity: 0.6; }

.cta-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px; height: 18px;
    border: 1px solid var(--ink);
    border-radius: 50%;
    font-size: 11px;
    line-height: 1;
}

/* ============ TABS ============ */
.tabs-section {
    padding: 0 40px 80px;
}

.tabs {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 24px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 8px;
    margin-bottom: 48px;
}

.tab {
    text-align: left;
    font-size: 13px;
    color: var(--ink-soft);
    padding: 4px 0;
    transition: color 0.2s;
    position: relative;
}

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

.tab.active { color: var(--ink); }

.tab.active::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: -9px;
    height: 1px;
    background: var(--ink);
}

.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* Story grid (treatment tab) */
.story-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr 1fr 0.85fr;
    gap: 24px;
    align-items: end;
    padding: 24px 0 56px;
}

.story-card {
    display: block;
    color: var(--ink);
    transition: opacity 0.2s;
}

.story-card:hover { opacity: 0.85; }

.story-label {
    display: block;
    font-size: 12px;
    color: var(--ink);
    margin-bottom: 10px;
}

.story-card figure {
    overflow: hidden;
}

.story-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.story-card-wide img { aspect-ratio: 4 / 3; }

.story-card:hover img { transform: scale(1.03); }

/* Collab block (treatment tab) */
.collab-block {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 0;
    align-items: stretch;
    margin-top: 32px;
    border-top: 1px solid var(--line-soft);
    border-bottom: 1px solid var(--line-soft);
}

.collab-block-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 80px 40px;
}

.collab-block-mark {
    font-family: 'Inter', serif;
    font-size: 32px;
    font-weight: 500;
    letter-spacing: 0.1em;
    margin-bottom: 32px;
}

.collab-block-title {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    line-height: 1.6;
    margin-bottom: 16px;
}

.collab-block-body {
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.08em;
    line-height: 1.6;
    color: var(--ink-soft);
}

.collab-block-image img {
    width: 100%;
    height: 100%;
    min-height: 420px;
    object-fit: cover;
}

/* Arkitekt — contact block */
.contact-block {
    font-size: 13px;
    color: var(--ink-soft);
    margin-bottom: 20px;
    line-height: 1.6;
}
.contact-block strong { color: var(--ink); font-weight: 500; }

/* Showroom section */
.showroom-section {
    padding: 80px 40px;
    border-top: 1px solid var(--line-soft);
}

.showroom-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 56px;
    align-items: center;
}

.showroom-eyebrow {
    font-size: 11px;
    letter-spacing: 0.18em;
    color: var(--ink-soft);
    margin-bottom: 24px;
    text-align: center;
}

.showroom-text h2 {
    font-size: 22px;
    font-weight: 400;
    text-align: center;
    margin-bottom: 32px;
}

.showroom-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    text-align: center;
    margin-bottom: 32px;
}

.showroom-list li {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 13px;
    color: var(--ink-soft);
}

.showroom-list strong {
    color: var(--ink);
    font-weight: 500;
    letter-spacing: 0.06em;
    margin-bottom: 4px;
}

.showroom-faq {
    text-align: center;
    font-size: 12px;
    letter-spacing: 0.1em;
}

.showroom-faq a {
    color: var(--ink);
    border-bottom: 1px solid var(--ink);
    padding-bottom: 1px;
}

.showroom-image img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

/* Book a meeting */
.book-section {
    padding: 80px 40px;
    border-top: 1px solid var(--line-soft);
}

.book-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 64px;
    align-items: start;
}

.book-intro h2 {
    font-size: 24px;
    font-weight: 400;
    margin-bottom: 24px;
}

.book-intro p {
    font-size: 13px;
    color: var(--ink-soft);
    line-height: 1.6;
    margin-bottom: 16px;
    max-width: 360px;
}

.book-form {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 520px;
}

.form-row {
    display: grid;
    grid-template-columns: 140px 1fr;
    align-items: center;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line-soft);
}

.form-row label {
    font-size: 13px;
    color: var(--ink);
}

.form-row input,
.form-row select {
    border: none;
    background: transparent;
    font-family: inherit;
    font-size: 13px;
    color: var(--ink);
    outline: none;
    padding: 4px 0;
    width: 100%;
}

.form-row select { cursor: pointer; }

.form-static {
    font-size: 13px;
    color: var(--ink-soft);
    line-height: 1.5;
}

.form-static strong { color: var(--ink); font-weight: 500; }

.btn-solid {
    margin-top: 32px;
    background: var(--ink);
    color: var(--bg);
    padding: 14px 32px;
    font-size: 12px;
    letter-spacing: 0.12em;
    align-self: flex-start;
    cursor: pointer;
    transition: opacity 0.2s;
}

.btn-solid:hover { opacity: 0.85; }

/* Maintenance tab */
.maint-grid {
    padding: 24px 0 56px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.maint-row {
    display: grid;
    grid-template-columns: 33vw 1fr;
    gap: 32px;
    align-items: start;
}

.maint-label {
    font-size: 13px;
    color: var(--ink);
}

.maint-body {
    font-size: 13px;
    color: var(--ink-soft);
    line-height: 1.55;
    max-width: 520px;
}

/* Construction tab */
.constr-grid {
    display: grid;
    grid-template-columns: 33vw 1fr;
    gap: 32px;
    padding: 24px 0 56px;
    align-items: start;
}

.constr-intro {
    font-size: 13px;
    color: var(--ink-soft);
    line-height: 1.55;
    margin-bottom: 32px;
}

.constr-list li {
    font-size: 18px;
    font-weight: 400;
    color: var(--ink);
    padding: 4px 0;
    cursor: pointer;
    transition: color 0.2s;
}

.constr-list li.active { color: var(--line); }
.constr-list li:hover { color: var(--ink-soft); }

.constr-body {
    font-size: 13px;
    color: var(--ink-soft);
    line-height: 1.55;
    max-width: 560px;
    margin-bottom: 32px;
}

.constr-diagram svg {
    width: 100%;
    height: auto;
}

/* Character / Sortering tab */
.char-grid {
    display: grid;
    grid-template-columns: 33vw 1fr 1fr;
    gap: 32px;
    padding: 24px 0 56px;
    align-items: start;
}

.char-intro {
    font-size: 13px;
    color: var(--ink-soft);
    line-height: 1.55;
    margin-bottom: 32px;
}

.char-list li {
    font-size: 18px;
    font-weight: 400;
    color: var(--ink);
    padding: 4px 0;
    cursor: pointer;
    transition: color 0.2s;
}

.char-list li.active {
    color: var(--line);
}

.char-list li:hover { color: var(--ink-soft); }

.char-detail h3 {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 12px;
}

.char-detail p {
    font-size: 13px;
    color: var(--ink-soft);
    max-width: 320px;
}

.char-images {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 12px;
    align-items: stretch;
}

.char-images img {
    width: 100%;
    height: 100%;
    aspect-ratio: 3 / 5;
    object-fit: cover;
}

/* Dimensions tab */
.dim-grid {
    display: grid;
    grid-template-columns: 33vw 1fr 1fr 1fr 1fr;
    gap: 32px;
    padding: 24px 0 56px;
    align-items: start;
}

.dim-intro {
    font-size: 13px;
    color: var(--ink-soft);
    line-height: 1.55;
}

.dim-col {
    display: flex;
    flex-direction: column;
}

.dim-head {
    font-size: 13px;
    color: var(--ink-soft);
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line-soft);
    margin-bottom: 16px;
}

.dim-cell {
    font-size: 13px;
    color: var(--ink);
    line-height: 1.6;
    padding: 16px 0;
    border-bottom: 1px solid var(--line-soft);
    min-height: 120px;
}

.dim-cell:last-child { border-bottom: none; }

.download-list { padding: 24px 0; }
.download-list li { margin-bottom: 12px; }
.download-list a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--ink);
}
.download-list a:hover { opacity: 0.7; }

.panel-placeholder {
    color: var(--ink-soft);
    font-size: 14px;
    padding: 40px 0;
}

/* Variants */
.variants-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1.2fr;
    gap: 48px;
    align-items: start;
}

.variants li {
    display: grid;
    grid-template-columns: 28px 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 6px 0;
    font-size: 13px;
    color: var(--ink-soft);
    border-bottom: 1px dashed transparent;
    cursor: pointer;
    transition: color 0.2s;
}

.variants li:hover { color: var(--ink); }

.variants li.active {
    color: var(--ink);
}

.variants li.active .variant-name { font-weight: 500; }

.swatch {
    width: 24px; height: 16px;
    display: inline-block;
    border: 1px solid var(--line-soft);
}

.variant-type { color: var(--ink-soft); font-size: 12px; }

.variant-detail h3 {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 14px;
}

.variant-detail p {
    font-size: 13px;
    color: var(--ink-soft);
    max-width: 320px;
}

.variant-image img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.pager {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 48px;
}

.pager button {
    width: 28px; height: 28px;
    border: 1px solid var(--ink);
    border-radius: 50%;
    font-size: 14px;
    line-height: 1;
    transition: background 0.2s, color 0.2s;
}

.pager button:hover { background: var(--ink); color: var(--bg); }

/* ============ HOW TO ORDER ============ */
.how-to-order {
    padding: 64px 40px 80px;
    border-top: 1px solid var(--line-soft);
}

.how-to-order h2 {
    font-size: 24px;
    font-weight: 400;
    margin-bottom: 40px;
}

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

.steps li {
    position: relative;
    padding-left: 32px;
}

.step-num {
    position: absolute;
    left: 0;
    top: 0;
    font-size: 13px;
    color: var(--ink);
}

.steps h3 {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 12px;
}

.steps p {
    font-size: 13px;
    color: var(--ink-soft);
    max-width: 280px;
}

.step-link {
    display: inline-block;
    margin-top: 12px;
    font-size: 13px;
    border-bottom: 1px solid var(--ink);
    padding-bottom: 1px;
}

/* ============ FOOTER ============ */
.site-footer {
    background: var(--bg-alt);
    padding: 64px 40px 24px;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1fr;
    gap: 32px;
    align-items: start;
    padding-bottom: 32px;
}

.footer-logo img {
    height: 32px;
    width: auto;
}

.footer-col p {
    font-size: 13px;
    color: var(--ink-soft);
    margin-bottom: 4px;
}

.footer-cta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-end;
}

.btn-outline {
    border: 1px solid var(--ink);
    padding: 10px 22px;
    font-size: 13px;
    color: var(--ink);
    transition: background 0.2s, color 0.2s;
    min-width: 180px;
    text-align: center;
}

.btn-outline:hover {
    background: var(--ink);
    color: var(--bg);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid var(--line-soft);
    padding-top: 16px;
    font-size: 12px;
    color: var(--ink-soft);
}

/* ============ CHAT BUBBLE ============ */
.chat-bubble {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 44px; height: 44px;
    background: var(--ink);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 100;
}

/* ============ HOMEPAGE ============ */
.home-hero {
    display: grid;
    grid-template-columns: 1.35fr 1.35fr 0.85fr 0.85fr;
    gap: 24px;
    align-items: start;
    padding: 40px 40px 96px;
}

.hero-tile {
    display: block;
    text-decoration: none;
    color: inherit;
}

.hero-caption {
    display: block;
    font-size: 11px;
    letter-spacing: 0.04em;
    color: #555;
    margin-bottom: 10px;
    font-weight: 400;
}

.hero-tile figure {
    margin: 0;
    overflow: hidden;
    background: #efece6;
}

.hero-tile img,
.hero-tile video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-tile--xl figure { aspect-ratio: 3 / 4; }
.hero-tile--lg figure { aspect-ratio: 3 / 4; }
.hero-tile--md figure { aspect-ratio: 4 / 5; }
.hero-tile--sm figure { aspect-ratio: 4 / 5; }

.hero-tile--md,
.hero-tile--sm {
    align-self: start;
}

.hero-tile:hover img,
.hero-tile:hover video {
    opacity: 0.92;
    transition: opacity 0.3s ease;
}

.cta-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--ink);
    transition: opacity 0.2s;
}

.cta-link:hover { opacity: 0.6; }

/* Collaboration section */
.collab {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 56px;
    align-items: center;
    padding: 64px 40px 96px;
    border-top: 1px solid var(--line-soft);
}

.collab-mark {
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 0.12em;
    margin-bottom: 24px;
}

.collab-lead {
    font-size: 18px;
    line-height: 1.45;
    margin-bottom: 24px;
    max-width: 420px;
}

.collab-cta {
    margin-top: 32px;
}

.collab-image img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

/* Surfaces */
.surfaces {
    padding: 80px 40px;
    text-align: center;
    border-top: 1px solid var(--line-soft);
}

.surfaces-head h2 {
    font-size: 28px;
    font-weight: 400;
    margin-bottom: 16px;
}

.surfaces-head p {
    font-size: 14px;
    color: var(--ink-soft);
    max-width: 520px;
    margin: 0 auto 20px;
}

/* Design grid */
.design-grid-section {
    padding: 64px 40px 96px;
    border-top: 1px solid var(--line-soft);
}

.section-title {
    font-size: 22px;
    font-weight: 400;
    margin-bottom: 32px;
}

.design-grid {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    flex-wrap: wrap;
}

.design-card {
    display: block;
    color: var(--ink);
    transition: opacity 0.2s;
}

.design-card:hover { opacity: 0.85; }

.design-card figure {
    overflow: hidden;
    margin-bottom: 12px;
}

.design-card img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.design-card:hover img { transform: scale(1.03); }

.design-card span {
    font-size: 13px;
    color: var(--ink);
}

/* Story / about */
.story {
    padding: 96px 40px;
    background: var(--bg-alt);
}

.story-inner {
    max-width: 760px;
    margin: 0 auto;
    display: grid;
    gap: 24px;
}

.story-inner p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--ink);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
    .site-header {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }
    .main-nav { grid-column: 1 / -1; order: 3; grid-template-columns: repeat(2, 1fr); }
    .search { grid-column: 2; justify-self: end; }
    .hero-grid { grid-template-columns: 1fr; }
    .variants-grid { grid-template-columns: 1fr; }
    .tabs { grid-template-columns: repeat(3, 1fr); gap: 16px; }
    .steps { grid-template-columns: 1fr; gap: 40px; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
    .footer-cta { align-items: flex-start; }
    .home-hero { grid-template-columns: 1fr 1fr; padding: 24px 16px 48px; gap: 16px; }
    .hero-tile--xl figure, .hero-tile--lg figure { aspect-ratio: 3 / 4; }
    .hero-tile--md figure, .hero-tile--sm figure { aspect-ratio: 4 / 3; }
    .collab { grid-template-columns: 1fr; padding: 48px 24px; }
    .design-grid { grid-template-columns: repeat(2, 1fr); }
    .story { padding: 64px 24px; }
}

@media (max-width: 600px) {
    .site-header, .hero, .tabs-section, .how-to-order, .site-footer { padding-left: 20px; padding-right: 20px; }
    .main-nav { grid-template-columns: 1fr; }
    .tabs { grid-template-columns: repeat(2, 1fr); }
    .footer-inner { grid-template-columns: 1fr; }
    .page-title { font-size: 24px; }
}
