/* Golvvärme Hemsida Stilmall - Retro 2010 stil med modern funktionalitet */

/* Reset och grundläggande inställningar */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    overflow-x: hidden;
}

/* Behållare och layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.full-width {
    width: 100%;
}

/* Header och navigation */
.header {
    background: linear-gradient(45deg, #2c3e50 0%, #34495e 100%);
    padding: 15px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: 100%; }
}

.logo-varme {
    font-size: 2.5em;
    font-weight: bold;
    color: #ecf0f1;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    display: inline-block;
    background: linear-gradient(45deg, #e67e22, #f39c12);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: logoGlow 2s ease-in-out infinite alternate;
}

@keyframes logoGlow {
    0% { filter: drop-shadow(0 0 5px #e67e22); }
    100% { filter: drop-shadow(0 0 15px #f39c12); }
}

.nav-varme {
    float: right;
    margin-top: 15px;
}

.nav-varme ul {
    list-style: none;
    display: flex;
}

.nav-varme li {
    margin-left: 30px;
}

.nav-varme a {
    color: #ecf0f1;
    text-decoration: none;
    font-weight: 600;
    padding: 10px 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-varme a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #3498db, #2980b9);
    transition: left 0.3s ease;
    z-index: -1;
}

.nav-varme a:hover::before {
    left: 0;
}

.nav-varme a:hover {
    color: white;
    transform: translateY(-2px);
}

/* Mobil navigation */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #ecf0f1;
    font-size: 1.5em;
    cursor: pointer;
    float: right;
    margin-top: 15px;
}

/* Hero sektion */
.hero-golvvarme {
    background: linear-gradient(rgba(52, 152, 219, 0.8), rgba(41, 128, 185, 0.8)), url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><rect fill="%23e67e22" width="1200" height="600"/><path fill="%23f39c12" d="M0 400c150-50 300-50 450 0s300 50 450 0s300-50 450 0v200H0z"/></svg>');
    background-size: cover;
    background-attachment: fixed;
    color: white;
    text-align: center;
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

.hero-golvvarme::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120"><path d="M0 60c150-30 300 30 450 0s300-30 450 0s300 30 450 0v60H0z" fill="%23ffffff"/></svg>');
    background-size: cover;
}

.hero-golvvarme h1 {
    font-size: 3.5em;
    margin-bottom: 20px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
    animation: heroFloat 3s ease-in-out infinite alternate;
}

@keyframes heroFloat {
    0% { transform: translateY(0px); }
    100% { transform: translateY(-10px); }
}

.hero-golvvarme .lead-text {
    font-size: 1.3em;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* CTA knappar */
.cta-knapp {
    display: inline-block;
    padding: 15px 30px;
    background: linear-gradient(45deg, #e74c3c, #c0392b);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.1em;
    margin: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.4);
    position: relative;
    overflow: hidden;
}

.cta-knapp::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #c0392b, #a93226);
    transition: left 0.3s ease;
}

.cta-knapp:hover::before {
    left: 0;
}

.cta-knapp:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.6);
}

.cta-knapp span {
    position: relative;
    z-index: 1;
}

/* Sektioner */
.section-golvvarme {
    padding: 80px 0;
    position: relative;
}

.section-golvvarme:nth-child(even) {
    background: rgba(255, 255, 255, 0.5);
}

.section-golvvarme h2 {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 50px;
    color: #2c3e50;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.1);
    position: relative;
}

.section-golvvarme h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(45deg, #e67e22, #f39c12);
    border-radius: 2px;
}

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

.card-varme {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card-varme::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(45deg, #3498db, #2980b9);
}

.card-varme:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.card-varme h3 {
    font-size: 1.5em;
    color: #2c3e50;
    margin-bottom: 15px;
}

.card-varme p {
    color: #7f8c8d;
    line-height: 1.8;
}

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

.table-varme th {
    background: linear-gradient(45deg, #34495e, #2c3e50);
    color: white;
    padding: 15px;
    text-align: left;
    font-weight: 600;
}

.table-varme td {
    padding: 15px;
    border-bottom: 1px solid #ecf0f1;
}

.table-varme tr:nth-child(even) {
    background: #f8f9fa;
}

.table-varme tr:hover {
    background: #e3f2fd;
    transition: background-color 0.3s ease;
}

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

.lista-varme li {
    padding: 10px 0;
    position: relative;
    padding-left: 30px;
}

.lista-varme li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #27ae60;
    font-weight: bold;
    font-size: 1.2em;
}

/* Formulär */
.form-varme {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    margin: 40px 0;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ecf0f1;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 10px rgba(52, 152, 219, 0.3);
}

.form-group textarea {
    height: 120px;
    resize: vertical;
}

/* Spam-skydd */
.spam-check {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    margin: 20px 0;
    border: 1px solid #e9ecef;
}

.spam-question {
    font-weight: 600;
    color: #495057;
    margin-bottom: 10px;
}

.hidden {
    display: none !important;
}

/* Footer */
.footer-varme {
    background: linear-gradient(45deg, #2c3e50, #34495e);
    color: #ecf0f1;
    padding: 50px 0 30px;
    position: relative;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h3 {
    font-size: 1.3em;
    margin-bottom: 20px;
    color: #f39c12;
}

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

.footer-section a:hover {
    color: #3498db;
}

.footer-address {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 8px;
    text-align: right;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #34495e;
    color: #95a5a6;
}

/* Responsiv design */
@media (max-width: 768px) {
    .nav-varme {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: linear-gradient(45deg, #2c3e50, #34495e);
        box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    }
    
    .nav-varme.mobile-open {
        display: block;
    }
    
    .nav-varme ul {
        flex-direction: column;
    }
    
    .nav-varme li {
        margin: 0;
        border-bottom: 1px solid #34495e;
    }
    
    .nav-varme a {
        display: block;
        padding: 15px 20px;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .logo-varme {
        font-size: 2em;
    }
    
    .hero-golvvarme {
        padding: 80px 0;
    }
    
    .hero-golvvarme h1 {
        font-size: 2.5em;
    }
    
    .section-golvvarme {
        padding: 40px 0;
    }
    
    .section-golvvarme h2 {
        font-size: 2em;
    }
    
    .cards-varme {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .footer-address {
        text-align: center;
    }
    
    .table-varme {
        font-size: 0.9em;
    }
    
    .table-varme th,
    .table-varme td {
        padding: 8px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-golvvarme h1 {
        font-size: 2em;
    }
    
    .cta-knapp {
        display: block;
        margin: 10px 0;
        text-align: center;
    }
    
    .form-varme {
        padding: 20px;
    }
}

/* Animationer för sidor laddning */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Utskriftsvänlig */
@media print {
    .header, .footer-varme, .cta-knapp, .nav-varme {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .section-golvvarme {
        padding: 20px 0;
    }
}