:root {
    --primary: #004d61;
    --primary-dark: #003340;
    --secondary: #38bdf8;
    --accent: #f59e0b;
    --dark: #0f172a;
    --gray-light: #f8fafc;
    --gray: #64748b;
    --border: #e2e8f0;
    --success: #10b981;
    --white: #ffffff;
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --shadow: 0 10px 25px -5px rgba(0, 77, 97, 0.1), 0 8px 10px -6px rgba(0, 77, 97, 0.1);
    --shadow-lg: 0 20px 35px -10px rgba(0, 77, 97, 0.15);
    --radius: 12px;
}

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

body {
    font-family: var(--font-sans);
    color: var(--dark);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

ul {
    list-style: none;
}

/* Toppfelt */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

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

.logo {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo span {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    color: var(--dark);
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: var(--primary);
}

.btn-cta {
    background-color: var(--primary);
    color: var(--white) !important;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(0, 77, 97, 0.25);
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-cta:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 77, 97, 0.35);
}

.btn-secondary {
    background-color: var(--gray-light);
    color: var(--primary);
    border: 1px solid var(--border);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background-color: var(--border);
}

/* Hovedbanner */
.hero {
    position: relative;
    padding: 6rem 2rem 5rem;
    background: linear-gradient(135deg, #f0fdf4 0%, #e0f2fe 100%);
    background-image: linear-gradient(rgba(0, 77, 97, 0.85), rgba(0, 51, 64, 0.9)), url('https://images.pexels.com/photos/11622889/pexels-photo-11622889.jpeg?auto=compress&cs=tinysrgb&fit=crop&h=1200&w=1600');
    background-size: cover;
    background-position: center;
    color: var(--white);
    text-align: center;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.badge-norway {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(56, 189, 248, 0.2);
    border: 1px solid var(--secondary);
    color: var(--secondary);
    padding: 0.35rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.25rem;
    color: #e2e8f0;
    margin-bottom: 2.5rem;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
}

/* Kort og rutenett */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2.5rem;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card h3 {
    font-size: 1.35rem;
    color: var(--primary);
    margin-bottom: 1rem;
    font-weight: 700;
}

/* Priskalkulator */
.calculator-box {
    background: var(--white);
    border-radius: var(--radius);
    padding: 3rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    max-width: 800px;
    margin: -4rem auto 4rem;
    position: relative;
    z-index: 10;
}

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

.calc-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.calc-group select, .calc-group input {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    background: var(--gray-light);
    color: var(--dark);
}

.calc-result {
    background: linear-gradient(135deg, #f0fdf4, #e0f2fe);
    border: 2px solid var(--secondary);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    margin-top: 2rem;
}

.calc-result .price {
    font-size: 2.25rem;
    font-weight: 900;
    color: var(--primary);
    margin: 0.5rem 0;
}

/* Tilbudsskjema */
.lead-form-container {
    background: var(--gray-light);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 3rem;
    margin: 3rem 0;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    background: var(--white);
}

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

/* Nøkkeltall */
.stats-banner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    text-align: center;
    background: var(--primary);
    color: var(--white);
    padding: 3rem 2rem;
    border-radius: var(--radius);
    margin: 4rem 0;
}

.stat-item h4 {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: #e2e8f0;
    font-size: 1rem;
}

/* Bunnfelt */
footer {
    background: var(--dark);
    color: var(--white);
    padding: 5rem 2rem 2rem;
}

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

.footer-col h4 {
    color: var(--secondary);
    font-size: 1.2rem;
    margin-bottom: 1.2rem;
    font-weight: 700;
}

.footer-col ul li {
    margin-bottom: 0.75rem;
}

.footer-col a {
    color: #94a3b8;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: var(--white);
}

.footer-bottom {
    max-width: 1280px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #94a3b8;
    font-size: 0.9rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.commune-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.commune-tag {
    background: var(--gray-light);
    border: 1px solid var(--border);
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 500;
    transition: all 0.2s;
}

.commune-tag:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

/* Animasjoner */
.reveal-on-scroll {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
}

@media(max-width: 768px) {
    .hero h1 { font-size: 2.25rem; }
    .nav-links { display: none; }
}