:root {
    --forest-dark: #122217;
    --forest-light: #2c4234;
    --wood-accent: #C5A059;
    --wood-accent-hover: #b08d4b;
    --paper-cream: #FDFBF7;
    --text-dark: #2A231E;
    --transition-smooth: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--paper-cream);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, .serif { font-family: 'Playfair Display', serif; }

.script-font {
    font-family: 'Caveat', cursive;
    color: var(--wood-accent);
    font-size: 2.2rem;
    transform: rotate(-2deg);
    display: inline-block;
}

/* --- Navigasjon --- */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: var(--transition-smooth);
}

nav.scrolled {
    background: rgba(18, 34, 23, 0.95);
    backdrop-filter: blur(10px);
    padding: 10px 5%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.nav-actions { display: flex; gap: 15px; align-items: center; }
.logo-link { text-decoration: none; display: flex; align-items: center; }
.logo-img { height: 160px; width: auto; transition: var(--transition-smooth); }
nav.scrolled .logo-img { height: 80px; }

/* --- Knapper --- */
.cta-btn {
    background: var(--wood-accent);
    color: var(--forest-dark);
    padding: 14px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
    border: 2px solid var(--wood-accent);
    display: inline-block;
    cursor: pointer;
}

.cta-btn:hover {
    background: var(--wood-accent-hover);
    border-color: var(--wood-accent-hover);
    color: var(--forest-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(197, 160, 89, 0.3);
}

.btn-secondary { color: white; text-decoration: none; font-weight: 600; font-size: 0.95rem; transition: var(--transition-smooth); }
.btn-secondary:hover { color: var(--wood-accent); }

/* --- Hero --- */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(18, 34, 23, 0.75), rgba(18, 34, 23, 0.5)), url('/ekempel.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    padding: 0 10%;
}

.hero-content { max-width: 650px; color: white; margin-top: 50px; }
.hero-content h1 { font-size: clamp(3.5rem, 6vw, 5rem); line-height: 1.1; margin: 15px 0 25px; }
.hero-content p { font-size: 1.15rem; opacity: 0.9; margin-bottom: 40px; font-weight: 300; }
.hero-buttons { display: flex; gap: 20px; flex-wrap: wrap; }
.hero-secondary { background: transparent; color: white; border-color: white; }
.hero-secondary:hover { background: white; color: var(--forest-dark); }

/* --- Story --- */
.story-section {
    padding: 120px 10%;
    display: flex;
    align-items: center;
    gap: 80px;
    flex-wrap: wrap;
    background: var(--paper-cream);
}

.story-text { flex: 1; min-width: 320px; }
.story-text h2 { font-size: 2.8rem; margin-bottom: 20px; color: var(--forest-dark); }
.story-text p { margin-bottom: 20px; font-size: 1.1rem; color: #555; }

.story-image { flex: 1; min-width: 320px; position: relative; }
.story-image img { width: 100%; border-radius: 16px; box-shadow: 0 30px 60px rgba(0,0,0,0.15); }

.quote-box {
    position: absolute;
    bottom: -30px;
    left: -30px;
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    max-width: 300px;
    border-left: 4px solid var(--wood-accent);
}
.quote-icon { font-size: 1.5rem; color: var(--wood-accent); margin-bottom: 10px; }
.quote-box p { font-size: 1.1rem; font-style: italic; color: var(--text-dark); margin: 0; }

.signature { margin-top: 40px; }
.signature p.script-font { font-size: 2.8rem; color: var(--forest-dark); margin-bottom: -10px; }
.signature-title { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 2px; color: #888; font-weight: 600; }

/* --- Tjenester --- */
.solution-section { background: var(--forest-dark); color: white; padding: 120px 10%; }
.solution-header { text-align: center; margin-bottom: 70px; max-width: 700px; margin-inline: auto; }
.solution-header h2 { font-size: 2.8rem; margin-bottom: 20px; }
.solution-header p { opacity: 0.9; font-size: 1.1rem; }

.services-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.service-box {
    background: var(--forest-light);
    padding: 50px 35px;
    border-radius: 16px;
    text-align: center;
    border-bottom: 4px solid transparent;
    transition: var(--transition-smooth);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.service-box:hover {
    transform: translateY(-15px);
    border-bottom: 4px solid var(--wood-accent);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    background: #334c3c;
}
.service-icon { font-size: 3.5rem; color: var(--wood-accent); margin-bottom: 25px; transition: transform 0.4s ease; }
.service-box:hover .service-icon { transform: scale(1.15) rotate(5deg); }
.service-box h3 { font-size: 1.6rem; margin-bottom: 15px; color: white; }
.service-box p { color: rgba(255,255,255,0.85); font-size: 1rem; }

.partnership-banner {
    background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01));
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    backdrop-filter: blur(5px);
}
.partnership-banner h3 { color: var(--wood-accent); margin-bottom: 10px; font-size: 1.5rem; }
.partnership-banner p { color: rgba(255,255,255,0.9); font-size: 1.1rem; }

/* --- Kontakt --- */
.modern-contact { padding: 120px 10%; background-color: var(--paper-cream); }
.modern-contact .container { max-width: 1100px; margin: 0 auto; }
.section-title { text-align: center; margin-bottom: 60px; }
.section-title h2 { font-size: 2.8rem; margin-bottom: 15px; color: var(--forest-dark); }
.section-title p { color: #666; font-size: 1.1rem; max-width: 600px; margin: 0 auto; }

.contact-box {
    display: flex;
    flex-wrap: wrap;
    background: white;
    border-radius: 24px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.08);
    overflow: hidden;
}

.c-info {
    flex: 1;
    min-width: 320px;
    background: var(--forest-dark);
    color: white;
    padding: 60px 50px;
    position: relative;
    overflow: hidden;
}
.c-info::after {
    content: '';
    position: absolute;
    bottom: -50px; right: -50px;
    width: 200px; height: 200px;
    background: var(--wood-accent);
    border-radius: 50%;
    opacity: 0.1;
    filter: blur(30px);
}
.c-info h3 { color: var(--wood-accent); font-size: 2rem; margin-bottom: 20px; }
.c-info p { opacity: 0.9; margin-bottom: 40px; line-height: 1.7; font-size: 1.05rem; }
.c-methods { display: flex; flex-direction: column; gap: 30px; }
.c-link { display: flex; align-items: center; gap: 20px; color: white; text-decoration: none; transition: var(--transition-smooth); }
.c-link:hover { transform: translateX(10px); color: var(--wood-accent); }
.c-icon {
    width: 50px; height: 50px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem; color: var(--wood-accent);
}
.c-link span { font-size: 1.1rem; font-weight: 600; }

.c-form-wrap { flex: 1.5; min-width: 320px; padding: 60px 50px; background: white; }
.form-row { display: flex; gap: 25px; margin-bottom: 25px; }
.input-wrap { flex: 1; display: flex; flex-direction: column; margin-bottom: 25px; }
.form-row .input-wrap { margin-bottom: 0; }
.input-wrap label { font-weight: 600; font-size: 0.95rem; margin-bottom: 10px; color: var(--forest-dark); }
.modern-contact input, .modern-contact textarea {
    width: 100%; padding: 16px 20px; border: 1px solid #e0e0e0; border-radius: 12px;
    background: var(--paper-cream); font-family: inherit; font-size: 1rem; transition: var(--transition-smooth);
}
.modern-contact input:focus, .modern-contact textarea:focus {
    outline: none; border-color: var(--wood-accent); background: white;
    box-shadow: 0 0 0 4px rgba(197, 160, 89, 0.15);
}
.submit-btn.w-full { width: 100%; border-radius: 12px; margin-top: 10px; padding: 18px; font-size: 1.1rem; }

/* --- Footer --- */
.premium-footer {
    background-image: url('/wood.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: rgba(18, 34, 23, 0.88);
    background-blend-mode: overlay;
    color: white;
    padding: 80px 10% 40px;
    position: relative;
    border-top: 5px solid var(--wood-accent);
}

.footer-logo { height: 75px; width: auto; margin-bottom: 15px; }

.footer-grid-premium {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 50px;
    padding-bottom: 50px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-top: -10px;
}

.footer-col h4 {
    color: white; font-size: 1.4rem; margin-bottom: 25px;
    position: relative; padding-bottom: 10px;
}
.footer-col h4::after {
    content: ''; position: absolute; left: 0; bottom: 0;
    width: 40px; height: 3px; background: var(--wood-accent);
}

.brand-col p { opacity: 0.8; margin-bottom: 20px; max-width: 350px; line-height: 1.7; }
.social-links { display: flex; gap: 15px; }
.social-links a {
    width: 40px; height: 40px; border-radius: 50%;
    background: rgba(255,255,255,0.05);
    display: flex; align-items: center; justify-content: center;
    color: white; text-decoration: none;
    transition: var(--transition-smooth);
    border: 1px solid rgba(255,255,255,0.1);
}
.social-links a:hover { background: var(--wood-accent); border-color: var(--wood-accent); transform: translateY(-3px); }

.links-col ul { list-style: none; padding: 0; }
.links-col ul li { margin-bottom: 15px; display: flex; align-items: center; gap: 10px; }
.links-col ul li i { color: var(--wood-accent); font-size: 0.8rem; }
.links-col ul li a { color: rgba(255,255,255,0.8); text-decoration: none; transition: var(--transition-smooth); }
.links-col ul li a:hover { color: white; margin-left: 5px; }

.contact-col .contact-item { display: flex; gap: 15px; margin-bottom: 20px; align-items: flex-start; }
.contact-col .contact-item i { color: var(--wood-accent); font-size: 1.2rem; margin-top: 5px; }
.contact-col .contact-item p { color: rgba(255,255,255,0.5); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 2px; }
.contact-col .contact-item a,
.contact-col .contact-item span { color: white; text-decoration: none; font-weight: 600; transition: color 0.3s ease; }
.contact-col .contact-item a:hover { color: var(--wood-accent); }

.trust-list { list-style: none; padding: 0; }
.trust-list li { margin-bottom: 15px; display: flex; align-items: center; gap: 12px; color: rgba(255,255,255,0.9); }
.trust-list li i { color: #4CAF50; font-size: 1.1rem; }

.footer-copyright {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding-top: 20px;
    margin-top: 40px;
    font-size: 0.9rem;
}
.footer-copyright p { opacity: 0.5; }

.developer-credit { display: flex; align-items: center; gap: 10px; opacity: 0.7; transition: opacity 0.3s ease; }
.developer-credit:hover { opacity: 1; }
.developer-logo { height: 20px; width: auto; display: block; }

/* --- Animasjoner --- */
.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* --- Responsiv (1024px) --- */
@media (max-width: 1024px) {
    .footer-grid-premium { grid-template-columns: 1fr 1fr; }
}

/* --- Responsiv (768px) --- */
@media (max-width: 768px) {

    /* Navbar */
    nav { padding: 10px 5% !important; height: auto; flex-direction: row; align-items: center; }
    .logo-img { height: 50px !important; width: auto; }
    nav .cta-btn { display: none !important; }
    .hidden-mail, .hidden-mobile { display: none !important; }
    .nav-actions { gap: 0; }

    /* Hero */
    .hero {
        background-attachment: scroll !important;
        background-size: cover !important;
        background-position: center center !important;
        background-image: linear-gradient(rgba(18, 34, 23, 0.342), rgba(18, 34, 23, 0.795)), url('/ekempel.png') !important;
        padding-top: 120px !important;
        height: auto;
        min-height: 100vh;
        display: flex;
        align-items: flex-start;
    }
    .hero-content { margin-top: 20px; text-align: left; }
    .hero-content h1 { font-size: 2.5rem !important; line-height: 1.2; }
    .script-font { font-size: 1.4rem !important; display: block; margin-bottom: 10px; transform: rotate(0deg); }

    /* Sitatboks */
    .story-image { margin-bottom: 30px; }
    .quote-box { padding: 15px 20px; bottom: -20px; left: 10px; right: 10px; max-width: calc(100% - 20px); }
    .quote-box p { font-size: 0.95rem; }
    .quote-icon { font-size: 1.2rem; margin-bottom: 5px; }

    /* Kontaktskjema */
    .modern-contact { padding: 60px 5%; }
    .c-info { padding: 40px 20px; }
    .c-icon { flex-shrink: 0; width: 40px; height: 40px; font-size: 1.1rem; }
    .c-link span { font-size: 0.95rem; word-break: break-word; }
    .c-form-wrap { padding: 40px 20px; }
    .form-row { flex-direction: column; gap: 15px; margin-bottom: 15px; }
    .input-wrap { margin-bottom: 15px; }

    /* Footer */
    .footer-grid-premium { grid-template-columns: 1fr !important; gap: 40px; text-align: left; padding-left: 5%; padding-right: 5%; }
    .footer-col h4 { margin-bottom: 15px; }
    .brand-col { max-width: 100%; }
    .footer-copyright { flex-direction: column; text-align: center; gap: 15px; }
}