/* CSS för Snickare Malmö - Retro 2008 stil med beige, blå och orange färger */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Grundläggande styling */
body {
    font-family: Arial, Helvetica, sans-serif;
    background: linear-gradient(135deg, #f5f5dc, #e6e6d6);
    color: #333;
    line-height: 1.6;
}

/* Header navigation */
.header-nav {
    background: linear-gradient(90deg, #2c5aa0, #1e4080);
    padding: 15px 0;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    border-bottom: 3px solid #ff8c00;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo styling */
.logo {
    font-size: 28px;
    font-weight: bold;
    color: #ff8c00;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    text-decoration: none;
}

.logo:hover {
    color: #ffb84d;
}

/* Desktop navigation */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    color: #f5f5dc;
    text-decoration: none;
    font-weight: bold;
    padding: 10px 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.nav-menu a:hover,
.nav-menu a.active {
    background: linear-gradient(135deg, #ff8c00, #ff6600);
    color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

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

.hamburger span {
    width: 25px;
    height: 3px;
    background: #f5f5dc;
    margin: 3px 0;
    transition: 0.3s;
}

/* Herobild container */
.hero-image-container {
    position: relative;
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, #e6e6d6, #d0d0c0);
    overflow: hidden;
    border-bottom: 5px solid #ff8c00;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(44,90,160,0.7), rgba(255,140,0,0.5));
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-text {
    text-align: center;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

.hero-text h1 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: bold;
}

.hero-text p {
    font-size: 24px;
    margin-bottom: 30px;
}

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

/* Innehållsområde */
.content-area {
    background: white;
    margin: 30px auto;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border: 2px solid #e6e6d6;
}

/* Typografi */
h1, h2, h3, h4, h5, h6 {
    color: #2c5aa0;
    margin: 25px 0 15px 0;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

h1 {
    font-size: 36px;
    border-bottom: 3px solid #ff8c00;
    padding-bottom: 10px;
}

h2 {
    font-size: 28px;
    color: #1e4080;
}

h3 {
    font-size: 22px;
    color: #2c5aa0;
}

p {
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.7;
}

/* CTA-knappar */
.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, #ff8c00, #ff6600);
    color: white;
    padding: 15px 30px;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    border-radius: 8px;
    margin: 10px 10px 10px 0;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.cta-button:hover {
    background: linear-gradient(135deg, #ff6600, #e55a00);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}

.cta-button.secondary {
    background: linear-gradient(135deg, #2c5aa0, #1e4080);
}

.cta-button.secondary:hover {
    background: linear-gradient(135deg, #1e4080, #164066);
}

/* Above the fold CTAs */
.above-fold-cta {
    text-align: center;
    margin: 30px 0;
    padding: 25px;
    background: linear-gradient(135deg, #f5f5dc, #e6e6d6);
    border-radius: 10px;
    border: 2px solid #ff8c00;
}

.above-fold-cta h2 {
    color: #2c5aa0;
    margin-bottom: 15px;
    font-size: 26px;
}

.above-fold-cta .cta-button {
    font-size: 20px;
    padding: 18px 35px;
    margin: 10px;
}

/* Informationsrutor */
.info-box {
    background: linear-gradient(135deg, #e6f2ff, #d1e7ff);
    border-left: 5px solid #2c5aa0;
    padding: 20px;
    margin: 25px 0;
    border-radius: 5px;
}

.info-box h4 {
    color: #1e4080;
    margin-bottom: 10px;
}

.warning-box {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    border-left: 5px solid #ff8c00;
    padding: 20px;
    margin: 25px 0;
    border-radius: 5px;
}

.warning-box h4 {
    color: #e55a00;
    margin-bottom: 10px;
}

/* Listor */
ul, ol {
    margin: 20px 0;
    padding-left: 30px;
}

li {
    margin-bottom: 8px;
    line-height: 1.6;
}

/* Tabeller */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    background: white;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
}

th {
    background: linear-gradient(135deg, #2c5aa0, #1e4080);
    color: white;
    padding: 15px;
    text-align: left;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

td {
    padding: 12px 15px;
    border-bottom: 1px solid #e6e6d6;
}

tr:nth-child(even) {
    background: #f9f9f9;
}

tr:hover {
    background: #f0f8ff;
}

/* Formulär */
.form-container {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border: 2px solid #e6e6d6;
    margin: 30px 0;
}

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

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

input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e6e6d6;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    background: white;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #ff8c00;
    box-shadow: 0 0 8px rgba(255,140,0,0.3);
}

textarea {
    height: 120px;
    resize: vertical;
}

/* Spam-skydd */
.captcha-section {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    border: 2px solid #e6e6d6;
    margin: 20px 0;
}

.captcha-question {
    font-weight: bold;
    color: #2c5aa0;
    margin-bottom: 10px;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #2c5aa0, #1e4080);
    color: white;
    padding: 40px 0 20px 0;
    margin-top: 50px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

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

.footer-info {
    text-align: center;
    margin-bottom: 30px;
}

.footer-info h3 {
    color: #ff8c00;
    font-size: 24px;
    margin-bottom: 15px;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 25px;
    margin-bottom: 25px;
}

.footer-links a {
    color: #f5f5dc;
    text-decoration: none;
    font-weight: bold;
    padding: 8px 12px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    background: rgba(255,140,0,0.3);
    color: #ff8c00;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 2px solid #ff8c00;
    color: #f5f5dc;
}

/* Mobilresponsiv design */
@media screen and (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: linear-gradient(135deg, #2c5aa0, #1e4080);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0,0,0,0.05);
        padding: 20px 0;
        gap: 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 15px 0;
    }
    
    .nav-menu a {
        padding: 15px;
        display: block;
    }
    
    .hero-text h1 {
        font-size: 32px;
    }
    
    .hero-text p {
        font-size: 18px;
    }
    
    .content-area {
        margin: 20px 10px;
        padding: 25px 20px;
    }
    
    .container {
        padding: 0 10px;
    }
    
    h1 {
        font-size: 28px;
    }
    
    h2 {
        font-size: 24px;
    }
    
    .cta-button {
        display: block;
        text-align: center;
        margin: 15px 0;
        width: 100%;
    }
    
    .above-fold-cta .cta-button {
        width: auto;
        display: inline-block;
    }
    
    .footer-links {
        flex-direction: column;
        align-items: center;
    }
    
    table {
        font-size: 14px;
    }
    
    th, td {
        padding: 8px;
    }
}

/* Mycket små skärmar */
@media screen and (max-width: 480px) {
    .hero-text h1 {
        font-size: 24px;
    }
    
    .hero-text p {
        font-size: 16px;
    }
    
    .content-area {
        padding: 20px 15px;
    }
    
    .form-container {
        padding: 25px 20px;
    }
    
    .cta-button {
        font-size: 16px;
        padding: 12px 20px;
    }
}

/* Genererade bilder styling */
.generated-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    margin: 20px 0;
}

/* Bildgalleri för ortsspecifika sidor */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.image-gallery img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.image-gallery img:hover {
    transform: scale(1.05);
}

/* Sitemap styling */
.sitemap {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

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

.sitemap ul li {
    margin: 10px 0;
    padding: 10px;
    background: #f9f9f9;
    border-left: 4px solid #ff8c00;
    border-radius: 5px;
}

.sitemap ul li a {
    color: #2c5aa0;
    text-decoration: none;
    font-weight: bold;
}

.sitemap ul li a:hover {
    color: #ff8c00;
}