/* Stilmall för Snickare Trelleborg */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #faf8f5;
}

/* Header och Navigation */
.header-container {
    background: linear-gradient(135deg, #f5f3f0 0%, #e8e4df 100%);
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    font-size: 2rem;
    font-weight: bold;
    color: #8b7355;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo::before {
    content: "🔨";
    margin-right: 0.5rem;
    font-size: 1.5rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: #5d4e37;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.nav-menu a:hover {
    background-color: #d4af37;
    color: white;
    transform: translateY(-2px);
}

/* Mobil hamburger meny */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    background: none;
    border: none;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: #5d4e37;
    margin: 3px 0;
    transition: 0.3s;
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: #f5f3f0;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0,0,0,0.05);
        padding: 2rem 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 1rem 0;
    }
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #f9f7f4 0%, #f0ede8 50%, #e6e0d8 100%);
    padding: 4rem 0;
    text-align: center;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero-title {
    font-size: 3rem;
    color: #5d4e37;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.hero-subtitle {
    font-size: 1.3rem;
    color: #8b7355;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Knappar */
.btn-primary {
    background: linear-gradient(45deg, #d4af37, #f4d03f);
    color: white;
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    margin: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

.btn-secondary {
    background: linear-gradient(45deg, #8b7355, #a0896b);
    color: white;
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    margin: 0.5rem;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    background: linear-gradient(45deg, #7a6449, #8b7355);
}

/* Container och Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 4rem 0;
}

.section-title {
    font-size: 2.5rem;
    color: #5d4e37;
    text-align: center;
    margin-bottom: 3rem;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #8b7355;
    text-align: center;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Tjänster Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border-top: 4px solid #d4af37;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #d4af37;
}

.service-title {
    font-size: 1.5rem;
    color: #5d4e37;
    margin-bottom: 1rem;
}

/* Info rutor */
.info-box {
    background: linear-gradient(135deg, #fff9e6, #f8f5ee);
    border-left: 5px solid #d4af37;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0 10px 10px 0;
}

.info-box.tip {
    background: linear-gradient(135deg, #e8f4f8, #f0f9fc);
    border-left-color: #3498db;
}

.info-box.warning {
    background: linear-gradient(135deg, #fff2e8, #fdf8f1);
    border-left-color: #e67e22;
}

.info-box h3 {
    color: #5d4e37;
    margin-bottom: 0.5rem;
}

/* Tabeller */
.responsive-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.responsive-table th {
    background: linear-gradient(135deg, #8b7355, #a0896b);
    color: white;
    padding: 1rem;
    text-align: left;
}

.responsive-table td {
    padding: 1rem;
    border-bottom: 1px solid #eee;
}

.responsive-table tr:hover {
    background-color: #f8f5f0;
}

/* Formulär */
.form-container {
    background: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin: 2rem 0;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #5d4e37;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #e8e4df;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #d4af37;
}

.form-group.required label::after {
    content: " *";
    color: #e74c3c;
}

/* Privacy Policy */
.privacy-notice {
    font-size: 0.9rem;
    color: #666;
    margin: 1rem 0;
    padding: 1rem;
    background-color: #f8f6f3;
    border-radius: 8px;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #5d4e37, #4a3c2a);
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h3 {
    color: #d4af37;
    margin-bottom: 1rem;
}

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

.footer-section ul li {
    margin-bottom: 0.5rem;
}

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

.footer-section ul li a:hover {
    color: #d4af37;
}

.footer-address {
    text-align: right;
    font-style: italic;
    color: #ccc;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid #666;
    color: #999;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .navbar {
        padding: 0 1rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .form-container {
        padding: 2rem 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-address {
        text-align: center;
    }
    
    .responsive-table {
        font-size: 0.9rem;
    }
    
    .responsive-table th,
    .responsive-table td {
        padding: 0.5rem;
    }
}

/* Animationer */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Specialklasser för innehåll */
.content-wrapper {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

.content-wrapper h1 {
    color: #5d4e37;
    margin-bottom: 1rem;
}

.content-wrapper h2 {
    color: #5d4e37;
    margin: 2rem 0 1rem;
}

.content-wrapper h3 {
    color: #8b7355;
    margin: 1.5rem 0 0.5rem;
}

.content-wrapper p {
    margin-bottom: 1rem;
}

.content-wrapper ul,
.content-wrapper ol {
    margin: 1rem 0 1rem 2rem;
}

.content-wrapper li {
    margin-bottom: 0.5rem;
}

/* Breadcrumbs */
.breadcrumbs {
    background-color: #f8f6f3;
    padding: 1rem 0;
}

.breadcrumbs ul {
    list-style: none;
    display: flex;
    gap: 0.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.breadcrumbs li::after {
    content: ">";
    margin-left: 0.5rem;
    color: #8b7355;
}

.breadcrumbs li:last-child::after {
    display: none;
}

.breadcrumbs a {
    color: #5d4e37;
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

/* Utmärkningar och certifieringar */
.certifications {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin: 3rem 0;
    flex-wrap: wrap;
}

.cert-badge {
    background: white;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    text-align: center;
    min-width: 120px;
}

.cert-badge img {
    max-width: 60px;
    height: auto;
}

/* Call-to-Action sektioner */
.cta-section {
    background: linear-gradient(135deg, #d4af37, #f4d03f);
    color: white;
    text-align: center;
    padding: 4rem 2rem;
    border-radius: 20px;
    margin: 3rem 0;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Specialstil för sitemap */
.sitemap-container {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.sitemap-container ul {
    list-style: none;
    padding-left: 0;
}

.sitemap-container ul ul {
    padding-left: 2rem;
    margin-top: 0.5rem;
}

.sitemap-container li {
    margin-bottom: 0.5rem;
}

.sitemap-container a {
    color: #5d4e37;
    text-decoration: none;
    font-weight: 500;
    display: block;
    padding: 0.25rem 0;
}

.sitemap-container a:hover {
    color: #d4af37;
    text-decoration: underline;
}