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

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

/* Färgpalett inspirerad av natursten och murning */
:root {
    --murare-sten: #8B7355;
    --murare-diamant: #A8A8A8;
    --murare-ljus-beige: #F5F0E8;
    --murare-ljus-bla: #E3F2FD;
    --murare-ljus-gul: #FFF9C4;
    --murare-mork: #4A3C2A;
    --murare-accent: #D4940F;
}

/* Logo med CSS - professionellt utseende */
.logo {
    display: flex;
    align-items: center;
    font-size: 28px;
    font-weight: bold;
    color: var(--murare-mork);
    text-decoration: none;
    position: relative;
}

.logo::before {
    content: "🧱";
    margin-right: 10px;
    font-size: 32px;
    animation: subtle-glow 3s infinite;
}

.logo::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--murare-accent), var(--murare-sten));
    opacity: 0.7;
}

@keyframes subtle-glow {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

/* Header och navigation */
header {
    background: linear-gradient(135deg, var(--murare-ljus-beige), #fff);
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--murare-mork);
    font-weight: 500;
    padding: 10px 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    background-color: var(--murare-ljus-gul);
    transform: translateY(-2px);
}

.cta-knapp {
    background: linear-gradient(45deg, var(--murare-accent), #B8860B);
    color: white !important;
    padding: 12px 24px !important;
    border-radius: 25px;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(212, 148, 15, 0.3);
    transition: all 0.3s ease;
}

.cta-knapp:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(212, 148, 15, 0.4);
    background: linear-gradient(45deg, #B8860B, var(--murare-accent));
}

/* Mobilmeny */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--murare-mork);
    margin: 3px 0;
    transition: 0.3s;
}

/* Huvudinnehåll */
main {
    min-height: calc(100vh - 200px);
}

/* Hero sektion */
.hero {
    background: linear-gradient(135deg, var(--murare-ljus-bla), var(--murare-ljus-beige));
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 20"><defs><pattern id="brick" x="0" y="0" width="20" height="10" patternUnits="userSpaceOnUse"><rect width="20" height="10" fill="none" stroke="%23' + var(--murare-sten).slice(1) + '" stroke-width="0.5" opacity="0.1"/></pattern></defs><rect width="100" height="20" fill="url(%23brick)"/></svg>') repeat;
    opacity: 0.3;
}

.hero-innehall {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3.5em;
    color: var(--murare-mork);
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.hero p {
    font-size: 1.3em;
    color: var(--murare-sten);
    margin-bottom: 30px;
    line-height: 1.8;
}

/* Sektioner */
.sektion {
    padding: 60px 0;
}

.sektion-alternativ {
    background: linear-gradient(to right, var(--murare-ljus-beige), #fff);
}

.sektion h2 {
    font-size: 2.5em;
    color: var(--murare-mork);
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.sektion h2::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--murare-accent), var(--murare-sten));
    border-radius: 2px;
}

.sektion h3 {
    font-size: 1.8em;
    color: var(--murare-mork);
    margin: 30px 0 15px;
}

/* Grid system */
.tjanster-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.tjanst-kort {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border-left: 5px solid var(--murare-accent);
}

.tjanst-kort:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.tjanst-kort h3 {
    color: var(--murare-mork);
    font-size: 1.5em;
    margin-bottom: 15px;
}

.tjanst-kort p {
    color: #666;
    line-height: 1.7;
    margin-bottom: 20px;
}

/* Knappar */
.knapp {
    display: inline-block;
    padding: 14px 28px;
    background: linear-gradient(45deg, var(--murare-accent), #B8860B);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 16px;
    margin: 10px 5px;
    box-shadow: 0 4px 15px rgba(212, 148, 15, 0.3);
}

.knapp:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(212, 148, 15, 0.4);
    background: linear-gradient(45deg, #B8860B, var(--murare-accent));
}

.knapp-sekundar {
    background: linear-gradient(45deg, var(--murare-sten), #6D5D4A);
    box-shadow: 0 4px 15px rgba(139, 115, 85, 0.3);
}

.knapp-sekundar:hover {
    background: linear-gradient(45deg, #6D5D4A, var(--murare-sten));
    box-shadow: 0 6px 25px rgba(139, 115, 85, 0.4);
}

/* Informationsrutor */
.info-ruta {
    background: var(--murare-ljus-gul);
    border: 2px solid var(--murare-accent);
    border-radius: 10px;
    padding: 25px;
    margin: 30px 0;
    position: relative;
}

.info-ruta::before {
    content: "💡";
    position: absolute;
    top: -15px;
    left: 20px;
    background: var(--murare-ljus-gul);
    padding: 0 10px;
    font-size: 1.5em;
}

.info-ruta h4 {
    color: var(--murare-mork);
    font-size: 1.3em;
    margin-bottom: 10px;
    font-weight: bold;
}

.kom-ihag-ruta {
    background: var(--murare-ljus-bla);
    border: 2px solid var(--murare-diamant);
}

.kom-ihag-ruta::before {
    content: "📝";
    background: var(--murare-ljus-bla);
}

/* Tabeller */
.tabell {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.tabell th {
    background: linear-gradient(45deg, var(--murare-sten), #6D5D4A);
    color: white;
    padding: 15px;
    text-align: left;
    font-weight: 600;
}

.tabell td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    transition: background-color 0.3s ease;
}

.tabell tr:hover td {
    background-color: var(--murare-ljus-beige);
}

.tabell tr:last-child td {
    border-bottom: none;
}

/* Listor */
.lista {
    list-style: none;
    padding: 0;
}

.lista li {
    padding: 10px 0;
    padding-left: 30px;
    position: relative;
    border-bottom: 1px solid #eee;
    transition: all 0.3s ease;
}

.lista li:hover {
    background-color: var(--murare-ljus-beige);
    padding-left: 35px;
}

.lista li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 10px;
    color: var(--murare-accent);
    font-weight: bold;
    font-size: 1.2em;
}

.numrerad-lista {
    counter-reset: lista-counter;
}

.numrerad-lista li::before {
    counter-increment: lista-counter;
    content: counter(lista-counter);
    background: var(--murare-accent);
    color: white;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9em;
    font-weight: bold;
}

/* Formulär */
.formular {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    max-width: 600px;
    margin: 50px auto;
}

.formular-grupp {
    margin-bottom: 25px;
}

.formular label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--murare-mork);
}

.formular input,
.formular textarea,
.formular select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.formular input:focus,
.formular textarea:focus,
.formular select:focus {
    border-color: var(--murare-accent);
    outline: none;
    box-shadow: 0 0 0 3px rgba(212, 148, 15, 0.1);
}

.formular textarea {
    min-height: 120px;
    resize: vertical;
}

.spam-skydd {
    background: var(--murare-ljus-gul);
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
    border: 1px solid var(--murare-accent);
}

.spam-skydd label {
    font-size: 14px;
    color: var(--murare-mork);
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--murare-mork), #2C1F14);
    color: white;
    padding: 50px 0 20px;
    margin-top: 80px;
}

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

.footer-sektion h4 {
    color: var(--murare-accent);
    font-size: 1.3em;
    margin-bottom: 20px;
}

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

.footer-sektion ul li {
    margin-bottom: 10px;
}

.footer-sektion ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-sektion ul li a:hover {
    color: var(--murare-accent);
}

.adress-box {
    text-align: right;
    background: rgba(255,255,255,0.1);
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid var(--murare-accent);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #555;
    color: #999;
    font-size: 0.9em;
}

/* Mobilanpassning */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        padding: 20px 0;
    }
    
    .nav-links.aktiv {
        display: flex;
    }
    
    .hero h1 {
        font-size: 2.5em;
    }
    
    .hero p {
        font-size: 1.1em;
    }
    
    .tjanster-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .formular {
        margin: 30px 20px;
        padding: 25px;
    }
    
    .tabell {
        font-size: 14px;
    }
    
    .tabell th,
    .tabell td {
        padding: 8px 10px;
    }
    
    .footer-innehall {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .adress-box {
        text-align: left;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 50px 0;
    }
    
    .hero h1 {
        font-size: 2em;
    }
    
    .sektion {
        padding: 40px 0;
    }
    
    .sektion h2 {
        font-size: 2em;
    }
    
    .tjanst-kort {
        padding: 20px;
    }
    
    .knapp {
        display: block;
        margin: 10px 0;
        text-align: center;
    }
}

/* Animationer för bättre användarupplevelse */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

/* Förbättrad tillgänglighet */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Fokusindikatorer */
*:focus-visible {
    outline: 3px solid var(--murare-accent);
    outline-offset: 2px;
}

/* Print-stilar */
@media print {
    .nav-links,
    .hamburger,
    .cta-knapp,
    .knapp {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
    }
    
    .hero {
        padding: 20px 0;
        background: white;
    }
    
    .sektion {
        padding: 20px 0;
    }
}