/* Fönsterputs på Näset - Retro 2010 Mobile-First Design */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Fallback colors for older browsers */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333;
    background: #f8f9fa;
    font-size: 16px;
}

/* Modern CSS variables with fallbacks */
:root {
    --primary-color: #1e90ff;
    --secondary-color: #00bfff;
    --accent-color: #c0c0c0;
    --text-dark: #333333;
    --text-light: #666666;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #dddddd;
    --gradient-primary: linear-gradient(135deg, #1e90ff 0%, #00bfff 100%);
    --gradient-accent: linear-gradient(135deg, #c0c0c0 0%, #e6e6fa 100%);
    --shadow-soft: 0 4px 12px rgba(30, 144, 255, 0.1);
    --shadow-strong: 0 8px 25px rgba(30, 144, 255, 0.2);
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--bg-light);
    font-size: 16px;
}

/* Logo Design with explicit colors */
.logo {
    display: inline-block;
    padding: 12px 20px;
    background: #1e90ff; /* Fallback */
    background: -webkit-linear-gradient(135deg, #1e90ff 0%, #00bfff 100%);
    background: -moz-linear-gradient(135deg, #1e90ff 0%, #00bfff 100%);
    background: -o-linear-gradient(135deg, #1e90ff 0%, #00bfff 100%);
    background: linear-gradient(135deg, #1e90ff 0%, #00bfff 100%);
    background: var(--gradient-primary);
    border-radius: 8px;
    color: white;
    font-weight: bold;
    font-size: 1.5rem;
    text-decoration: none;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    box-shadow: 0 4px 12px rgba(30, 144, 255, 0.1);
    box-shadow: var(--shadow-soft);
    border: 2px solid rgba(255,255,255,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.logo:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(30, 144, 255, 0.2);
    box-shadow: var(--shadow-strong);
    color: white;
    text-decoration: none;
}

/* Header Navigation with explicit colors */
header {
    background: #ffffff;
    background: var(--bg-white);
    box-shadow: 0 4px 12px rgba(30, 144, 255, 0.1);
    box-shadow: var(--shadow-soft);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid #1e90ff;
    border-bottom: 3px solid var(--primary-color);
}

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

.nav-toggle {
    display: none;
    background: #1e90ff;
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1rem;
}

nav a {
    color: #333333;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 5px;
    transition: all 0.3s ease;
    position: relative;
}

nav a:hover, nav a.active {
    background: #1e90ff; /* Fallback */
    background: -webkit-linear-gradient(135deg, #1e90ff 0%, #00bfff 100%);
    background: -moz-linear-gradient(135deg, #1e90ff 0%, #00bfff 100%);
    background: -o-linear-gradient(135deg, #1e90ff 0%, #00bfff 100%);
    background: linear-gradient(135deg, #1e90ff 0%, #00bfff 100%);
    background: var(--gradient-primary);
    color: white;
    transform: translateY(-1px);
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }
    
    nav ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-white);
        flex-direction: column;
        gap: 0;
        box-shadow: var(--shadow-soft);
        border-top: 2px solid var(--primary-color);
    }
    
    nav ul.active {
        display: flex;
    }
    
    nav li {
        border-bottom: 1px solid var(--border-color);
    }
    
    nav a {
        display: block;
        padding: 15px 20px;
    }
}

/* Main Content */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.hero-section {
    background: var(--gradient-primary);
    color: white;
    padding: 4rem 2rem;
    text-align: center;
    border-radius: 15px;
    margin-bottom: 3rem;
    box-shadow: var(--shadow-strong);
}

.hero-section h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-button {
    display: inline-block;
    background: white;
    color: var(--primary-color);
    padding: 15px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    color: var(--primary-color);
    text-decoration: none;
}

/* Content Sections */
.content-section {
    margin-bottom: 3rem;
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow-soft);
}

.section-header {
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

.section-header h2 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.section-header p {
    color: var(--text-light);
    font-size: 1.1rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.2;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; color: var(--primary-color); }
h3 { font-size: 1.5rem; color: var(--secondary-color); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

/* Lists */
ul, ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

ul li {
    list-style-type: none;
    position: relative;
    padding-left: 1.5rem;
}

ul li:before {
    content: "✓";
    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
    background: var(--bg-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

th, td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

th {
    background: var(--gradient-primary);
    color: white;
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

tr:hover {
    background-color: rgba(30, 144, 255, 0.05);
}

/* Forms */
.form-container {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-strong);
    margin: 2rem 0;
    border-top: 4px solid var(--primary-color);
}

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

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: var(--text-dark);
}

input, textarea, select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--bg-white);
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(30, 144, 255, 0.1);
}

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

button[type="submit"] {
    background: var(--gradient-primary);
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-soft);
}

button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-strong);
}

.hidden {
    display: none !important;
}

/* Content Links */
.content-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.content-link {
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-dark);
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
    border-left: 4px solid var(--primary-color);
}

.content-link:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-strong);
    color: var(--text-dark);
    text-decoration: none;
}

.content-link h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* Footer */
footer {
    background: var(--text-dark);
    color: white;
    padding: 3rem 1rem 1rem;
    margin-top: 4rem;
}

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

.footer-section h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

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

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

.footer-address {
    text-align: right;
    padding: 1rem;
    background: rgba(30, 144, 255, 0.1);
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding: 2rem 1rem;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .content-section {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    table {
        font-size: 0.9rem;
    }
    
    th, td {
        padding: 8px 10px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .footer-address {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-section h1 {
        font-size: 1.75rem;
    }
    
    .cta-button {
        padding: 12px 24px;
        font-size: 1rem;
    }
    
    .form-container {
        padding: 1.5rem;
    }
}

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

.content-section {
    animation: fadeInUp 0.6s ease-out;
}

/* Print Styles */
@media print {
    header, footer, .nav-toggle, .cta-button {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .content-section {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}