/* ================================================================
   KONTRAST GROUP - MASTER STYLE SHEET (2026 - SHARP LOOK)
================================================================ */

/* --- 1. IMPORTER & VARIABLER --- */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

:root {
    /* Färger */
    --k-blue: #00A1D0;
    --k-dark: #121212;
    --k-text: #333333;
    --k-light-bg: #f8f9fa;
    --k-border: #eaecf0;
    
    /* Layout */
    --nav-height: 80px;
    --sidebar-width: 300px;
    --k-transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --k-font: 'Plus Jakarta Sans', sans-serif;
    
    /* Skuggor */
    --k-shadow-sm: 0 1px 3px rgba(16, 24, 40, 0.05);
    --k-shadow-hover: 0 15px 30px rgba(0,0,0,0.08);
}

/* --- 2. BASSTIL & TYPOGRAFI --- */
html, body { overflow-x: hidden; }

body { 
    font-family: var(--k-font); 
    color: var(--k-text);
    background-color: #fff;
    line-height: 1.6;
    margin: 0;
    -webkit-font-smoothing: antialiased;
    padding-top: var(--nav-height); 
}

h1, h2, h3, h4, h5, h6 { 
    font-weight: 800; 
    color: var(--k-dark);
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

a { text-decoration: none; color: inherit; transition: var(--k-transition); }
img { max-width: 100%; height: auto; }

/* --- 3. KOMPONENTER --- */
.btn {
    border-radius: 0; padding: 0.8rem 2rem;
    font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.5px; font-size: 0.85rem;
    transition: var(--k-transition);
}
.btn-rounded-pill { border-radius: 50rem !important; }
.btn-dark { background-color: var(--k-dark); border-color: var(--k-dark); color: #fff; }
.btn-dark:hover { background-color: var(--k-blue); border-color: var(--k-blue); transform: translateY(-2px); }
.btn-light { background-color: #fff; color: var(--k-dark); border: 1px solid var(--k-border); }
.btn-light:hover { background-color: var(--k-light-bg); border-color: #ccc; }
.btn-outline-dark { border-color: var(--k-dark); color: var(--k-dark); }
.btn-outline-dark:hover { background-color: var(--k-dark); color: #fff; }

.fs-7 { font-size: 0.75rem !important; }
.ls-1 { letter-spacing: 1px !important; }
.ls-2 { letter-spacing: 2px !important; }

/* --- 4. NAVIGATION --- */
.navbar {
    height: var(--nav-height);
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--k-border);
    padding: 0;
    position: fixed; top: 0; width: 100%; z-index: 1000;
}
.navbar-brand img { height: 40px; width: auto; }
.nav-link { 
    font-weight: 600; text-transform: uppercase; font-size: 0.8rem; 
    letter-spacing: 0.5px; color: var(--k-dark) !important;
    padding: 0.5rem 1rem !important; position: relative;
}
.nav-link:hover, .nav-link.active { color: var(--k-blue) !important; }

/* --- 5. UNDERSIDOR: STANDARD HEADER --- */
.standard-page-header {
    padding: 60px 0 40px 0;
    border-bottom: 1px solid var(--k-border);
    margin-bottom: 60px;
    background-color: #fff;
}
.page-title {
    font-weight: 800;
    font-size: clamp(2.5rem, 6vw, 5rem);
    line-height: 0.95;
    letter-spacing: -2px;
    text-transform: uppercase;
    color: var(--k-dark);
    margin-bottom: 20px;
}
.page-lead {
    font-size: 1.25rem;
    font-weight: 300;
    line-height: 1.5;
    color: #555;
    max-width: 650px;
    margin-left: auto; 
}

/* --- 6. STARTSIDA (HERO) --- */
.hero-container {
    position: relative; width: 100%; min-height: 80vh;
    display: flex; align-items: center; background-color: #fff; overflow: hidden;
}
.hero-image {
    position: absolute; top: 0; right: 0; width: 60%; height: 100%;
    background-image: url('images/start2.webp'); 
    background-size: cover; background-position: center;
    z-index: 1; 
    clip-path: polygon(15% 0%, 100% 0%, 100% 100%, 0% 100%);
}
.hero-content {
    position: relative; z-index: 2; padding-left: 8%; width: 50%; padding-right: 20px;
}
.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem); font-weight: 800; line-height: 0.95;
    text-transform: uppercase; margin-bottom: 1.5rem; color: var(--k-dark);
}
.hero-description { font-size: 1.25rem; font-weight: 300; line-height: 1.5; color: #555; max-width: 500px; }
.hero-accent-line { width: 80px; height: 4px; background: var(--k-blue); margin-top: 2rem; }

/* Segment */
.segment-section { padding: 80px 0; }
.section-header-wrap { text-align: center; margin-bottom: 50px; }
.section-subtitle { display: block; font-size: 0.8rem; font-weight: 800; color: var(--k-blue); text-transform: uppercase; letter-spacing: 2px; margin-bottom: 10px; }
.section-label { font-size: 2.5rem; font-weight: 800; color: var(--k-dark); margin: 0; }
.section-divider { width: 60px; height: 3px; background: var(--k-blue); margin: 20px auto 0 auto; }

.segment-wrapper { display: flex; height: 500px; gap: 10px; width: 100%; overflow: hidden; }
.segment-item {
    flex: 1; position: relative; overflow: hidden; background: #000;
    transition: flex 0.3s cubic-bezier(0.25, 1, 0.5, 1); 
    cursor: pointer;
}
.segment-item:hover { flex: 3.5; }
.segment-bg {
    position: absolute; inset: 0; background-size: cover; background-position: center;
    opacity: 0.5; transition: 0.3s; filter: grayscale(100%);
}
.segment-item:hover .segment-bg { opacity: 0.8; filter: grayscale(0%); transform: scale(1.05); }
.segment-info { position: absolute; bottom: 40px; left: 30px; right: 30px; color: white; z-index: 2; pointer-events: none; }
.segment-info h3 { color: #fff; font-size: 1.5rem; text-transform: uppercase; margin-bottom: 0.5rem; }
.segment-info p { opacity: 0; transform: translateY(20px); transition: 0.3s ease 0.1s; font-weight: 300; font-size: 1rem; }
.segment-item:hover p { opacity: 1; transform: translateY(0); }

/* --- 7. LJUS DIALUX SEKTION --- */
.dialux-feature-section {
    padding: 100px 0;
    background-color: #fff;
}
.dialux-card {
    background-color: var(--k-light-bg);
    border: 1px solid var(--k-border);
    border-radius: 0; 
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 500px;
}
.dialux-text-content {
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.dialux-text-content h2 {
    font-size: 2.5rem;
    color: var(--k-dark);
    margin-bottom: 1.5rem;
    line-height: 1;
}
.dialux-text-content p {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 480px;
}
.dialux-image-side {
    background-image: url('images/dialuxkurs-1024x685.webp');
    background-size: cover;
    background-position: center;
    position: relative;
    clip-path: polygon(10% 0, 100% 0, 100% 100%, 0% 100%);
}

/* --- 8. KONTAKTSIDA STILAR --- */
.contact-card {
    background: #fff; padding: 30px; border: 1px solid var(--k-border);
    height: 100%; transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.contact-card:hover { transform: translateY(-5px); box-shadow: var(--k-shadow-hover); border-color: transparent; }
.contact-icon { font-size: 2rem; color: var(--k-blue); margin-bottom: 15px; }
.contact-label { font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1.5px; color: #999; margin-bottom: 10px; display: block; }
.contact-value { font-size: 1.1rem; font-weight: 600; color: var(--k-dark); }

.image-block-contact {
    position: relative; height: 100%; min-height: 500px; width: 100%;
    background: url('images/start-hero.webp') center/cover no-repeat;
    clip-path: polygon(10% 0, 100% 0, 100% 100%, 0% 100%);
}

.form-underline {
    width: 100%; border: none; border-bottom: 1px solid #ddd;
    padding: 15px 0; font-size: 1.1rem; margin-bottom: 25px;
    background: transparent; border-radius: 0; transition: border-color 0.3s;
}
.form-underline:focus { outline: none; border-bottom-color: var(--k-blue); }

/* --- 9. PRODUKTSIDA --- */
.products-master-wrapper { display: flex; min-height: 100vh; }
.sidebar-index {
    width: var(--sidebar-width); border-right: 1px solid var(--k-border);
    padding: 40px 30px; position: sticky; top: var(--nav-height);
    height: calc(100vh - var(--nav-height)); overflow-y: auto; background: #fff;
}
.main-content-area { flex: 1; padding: 40px 5vw; background: #fff; }
.sidebar-label { font-size: 0.75rem; font-weight: 800; text-transform: uppercase; color: #999; letter-spacing: 1px; margin-bottom: 1rem; }
.sidebar-list a { display: block; padding: 6px 0; color: #555; font-weight: 500; font-size: 0.9rem; }
.sidebar-list a:hover, .sidebar-list a.fw-bold { color: var(--k-dark); }

.product-grid { 
    display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 30px; 
}
.minimal-card { 
    text-decoration: none; color: inherit; display: block; height: 100%;
    background: #fff; border: 1px solid var(--k-border); border-radius: 8px;
    padding: 20px; transition: all 0.3s ease;
}
.minimal-card:hover { transform: translateY(-5px); box-shadow: var(--k-shadow-hover); border-color: transparent; }
.card-img-wrap {
    background-color: var(--k-light-bg); aspect-ratio: 1/1;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 20px; border-radius: 6px; overflow: hidden;
}
.card-img-wrap img { max-width: 85%; max-height: 85%; object-fit: contain; mix-blend-mode: multiply; transition: transform 0.5s ease; }
.minimal-card:hover .card-img-wrap img { transform: scale(1.08); }
.card-info h3 { font-size: 1.1rem; font-weight: 700; margin: 0 0 8px 0; color: var(--k-dark); }
.card-info p { 
    font-size: 0.9rem; color: #666; margin: 0; line-height: 1.5;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* --- 10. KOMPAKT FOOTER --- */
.site-footer {
    background-color: #000;
    border-top: 1px solid #222;
    padding: 25px 0;
    font-size: 0.85rem;
    color: #666;
    margin-top: auto;
}
.site-footer .footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}
.footer-logo { 
    height: 24px; 
    width: auto; 
    filter: brightness(0) invert(1);
    opacity: 0.9;
}
.footer-single-link {
    color: #999;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: color 0.2s;
}
.footer-single-link:hover { color: #fff; }

.footer-socials a { color: #999; font-size: 1.2rem; transition: color 0.2s; }
.footer-socials a:hover { color: #fff; transform: translateY(-2px); }

.footer-contact-info { text-align: right; color: #666; font-size: 0.8rem; line-height: 1.4; }
.footer-contact-info a { color: #888; text-decoration: none; margin-left: 10px; }
.footer-contact-info a:hover { color: #fff; }

/* --- 11. OM OSS (CLEAN GRID) --- */
@media (min-width: 768px) {
    .border-end-md {
        border-right: 1px solid var(--k-border);
    }
}
.ratio-21x9 { --bs-aspect-ratio: 42.857%; }

/* --- 12. NYA STILAR FÖR PROJEKTDETALJ (2026 UPDATE) --- */
.room-card {
    border: 1px solid #eaecf0;
    border-left: 4px solid var(--k-dark);
    border-radius: 4px;
    margin-bottom: 2rem !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.room-header {
    background-color: #f8f9fa;
    border-bottom: 2px solid var(--k-dark);
    padding: 0.75rem 1.25rem;
}

.btn-icon {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid transparent;
    background: transparent;
    color: #999;
    transition: all 0.2s;
}

.btn-icon:hover {
    background-color: #f5f5f5;
    color: #333;
    border-color: #ddd;
}

.btn-icon.delete:hover {
    background-color: #fff5f5;
    color: #dc3545;
    border-color: #ffc9c9;
}

.table-v-center td {
    vertical-align: middle;
}

/* ================================================================
   13. MOBILANPASSNING (RESPONSIVE)
================================================================ */
@media (max-width: 991px) {
    /* Navbar & Body */
    .navbar { height: auto; padding: 10px 0; position: relative; }
    body { padding-top: 0; }
    
    /* Standard Header */
    .standard-page-header { padding: 40px 0; text-align: center; }
    .page-title { font-size: 2.5rem; }
    
    /* HERO */
    .hero-container { 
        height: auto; 
        padding: 40px 20px; 
        flex-direction: column; 
        text-align: center; 
    }
    .hero-image { 
        position: relative; 
        width: 100%; 
        height: 350px; 
        margin-top: 30px; 
        border-radius: 0; 
        clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
    }
    .hero-content { width: 100%; padding: 0; order: -1; }
    .hero-title { font-size: 2.2rem; }
    
    /* Segment */
    .segment-wrapper { flex-direction: column; height: auto; gap: 15px; }
    .segment-item { 
        height: 250px; 
        flex: none !important; 
        margin-bottom: 0;
        width: 100%;
    }
    .segment-info p { opacity: 1; transform: none; } 

    /* Dialux */
    .dialux-card { grid-template-columns: 1fr; border-radius: 0; } 
    .dialux-image-side { 
        height: 300px; 
        order: 1; 
        clip-path: none; 
        border-bottom: 1px solid var(--k-border);
        border-radius: 0;
    }
    .dialux-text-content { 
        order: 2; 
        padding: 40px 20px; 
        text-align: center;
    }
    .dialux-text-content h2 { font-size: 2rem; }

    /* Produkter */
    .product-grid { grid-template-columns: 1fr; }
    @media (min-width: 576px) { .product-grid { grid-template-columns: 1fr 1fr; } }

    /* Footer */
    .site-footer .footer-content { flex-direction: column; text-align: center; gap: 25px; }
    .footer-contact-info { text-align: center; }
    
    /* Produksida Sidebar */
    .products-master-wrapper { flex-direction: column; }
    .sidebar-index { width: 100%; height: auto; position: relative; top: 0; padding: 20px; border-right: none; border-bottom: 1px solid var(--k-border); }
}