/* Golvslipning Malmö - Stilmall */
/* Grundläggande reset och typografi */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f9f9f9;
}

/* Träslipningsrelaterade färger */
:root {
    --trag-vit: #ffffff;
    --parkettgron: #8FBC8F;
    --slipstoft-ljusgron: #E8F5E8;
    --lackgul: #FFD700;
    --boktra: #D2691E;
    --ekparkett: #8B4513;
}

/* Container för träplankor */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header med trästruktur */
header {
    background: linear-gradient(135deg, var(--parkettgron) 0%, var(--slipstoft-ljusgron) 100%);
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logotyp som träskiva */
.logo {
    display: inline-block;
    padding: 10px 20px;
    background: var(--boktra);
    color: white;
    text-decoration: none;
    font-size: 24px;
    font-weight: bold;
    border-radius: 5px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
    position: relative;
}

.logo::after {
    content: '⚒';
    margin-left: 10px;
    font-size: 20px;
}

/* Navigation för slipmaskin */
nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

nav a {
    color: #2c5f2d;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 4px;
    transition: all 0.3s;
    font-weight: 500;
}

nav a:hover {
    background: var(--slipstoft-ljusgron);
    transform: translateY(-2px);
}

/* Mobilmeny för träarbetare */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #2c5f2d;
}

/* Offertknapp som lackburk */
.cta-header {
    background: #FF6B35;
    color: white !important;
    padding: 10px 20px !important;
    border-radius: 25px;
    font-weight: bold !important;
    box-shadow: 0 3px 10px rgba(255,107,53,0.3);
    transition: all 0.3s;
}

.cta-header:hover {
    background: #FF5722;
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(255,107,53,0.4);
}

/* Huvudinnehåll som träyta */
main {
    min-height: 600px;
    padding: 40px 0;
}

/* Hjältesektion för parkett */
.hero {
    background: linear-gradient(135deg, var(--slipstoft-ljusgron) 0%, white 100%);
    padding: 60px 20px;
    text-align: center;
    margin-bottom: 40px;
    border-radius: 10px;
}

.hero h1 {
    font-size: 2.5em;
    color: #2c5f2d;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

/* Träsektioner */
.trag-section {
    background: white;
    padding: 30px;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

/* Rubriker som träskivor */
h1, h2, h3 {
    color: #2c5f2d;
    margin-bottom: 15px;
}

h2 {
    font-size: 1.8em;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--parkettgron);
    margin-bottom: 20px;
}

/* CTA-knappar som lackburkar */
.cta-button {
    display: inline-block;
    background: #FF6B35;
    color: white;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    margin: 10px 5px;
    transition: all 0.3s;
    box-shadow: 0 3px 10px rgba(255,107,53,0.3);
}

.cta-button:hover {
    background: #FF5722;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255,107,53,0.4);
}

/* Formulär som träbehandling */
.offert-form {
    background: var(--slipstoft-ljusgron);
    padding: 30px;
    border-radius: 10px;
    margin: 20px 0;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    color: #2c5f2d;
    font-weight: bold;
    margin-bottom: 5px;
}

input, textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--parkettgron);
    border-radius: 5px;
    font-size: 16px;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--boktra);
    box-shadow: 0 0 5px rgba(139,69,19,0.2);
}

/* Tabeller som träplankor */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

th {
    background: var(--parkettgron);
    color: white;
    padding: 12px;
    text-align: left;
}

td {
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

tr:hover {
    background: var(--slipstoft-ljusgron);
}

/* Informationsrutor */
.info-box {
    background: linear-gradient(135deg, var(--slipstoft-ljusgron) 0%, white 100%);
    border-left: 5px solid var(--parkettgron);
    padding: 20px;
    margin: 20px 0;
    border-radius: 5px;
}

.tips-box {
    background: #FFF9E6;
    border-left: 5px solid var(--lackgul);
    padding: 20px;
    margin: 20px 0;
    border-radius: 5px;
}

/* Foldout för träinformation */
.foldout {
    margin: 20px 0;
}

.foldout-toggle {
    background: var(--parkettgron);
    color: white;
    padding: 10px 15px;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    border-radius: 5px;
    transition: background 0.3s;
}

.foldout-toggle:hover {
    background: #7DAC7D;
}

.foldout-content {
    display: none;
    padding: 15px;
    background: var(--slipstoft-ljusgron);
    border-radius: 0 0 5px 5px;
    margin-top: -5px;
}

.foldout.active .foldout-content {
    display: block;
}

/* Footer som träfundament */
footer {
    background: #2c5f2d;
    color: white;
    padding: 40px 0 20px;
    margin-top: 50px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 20px;
}

.footer-section h3 {
    color: var(--lackgul);
    margin-bottom: 15px;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: #B8D4B8;
    text-decoration: none;
    line-height: 1.8;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--lackgul);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.2);
    color: #B8D4B8;
}

/* Träbilder med CSS */
.trag-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(90deg, 
        var(--boktra) 0%, 
        var(--ekparkett) 25%, 
        var(--boktra) 50%, 
        var(--ekparkett) 75%, 
        var(--boktra) 100%);
    position: relative;
    border-radius: 5px;
    margin: 20px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.trag-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0,0,0,0.1) 2px,
        rgba(0,0,0,0.1) 4px
    );
}

/* Responsiv design för slipverktyg */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }
    
    nav.active {
        display: block;
    }
    
    nav ul {
        flex-direction: column;
        padding: 20px;
    }
    
    .hero h1 {
        font-size: 1.8em;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    table {
        font-size: 14px;
    }
    
    th, td {
        padding: 8px 5px;
    }
}

/* Specialeffekter för träytor */
.wood-texture {
    background-image: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 10px,
        rgba(139,69,19,0.1) 10px,
        rgba(139,69,19,0.1) 20px
    );
}

/* Laddningsindikator som slipmaskin */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid var(--slipstoft-ljusgron);
    border-top-color: var(--parkettgron);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Ortslista som träplankor */
.orts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
    margin: 20px 0;
}

.orts-item {
    background: var(--slipstoft-ljusgron);
    padding: 8px 12px;
    border-radius: 5px;
    font-size: 14px;
    transition: all 0.3s;
}

.orts-item:hover {
    background: var(--parkettgron);
    color: white;
    transform: translateX(5px);
}