/* 
 * NutriNorge - styles.css
 * Comprehensive stylesheet for NutriNorge website
 */

/* ===== GENERAL STYLES ===== */
:root {
    --primary: #6C9A8B;
    --primary-light: #8BB5A5;
    --primary-dark: #5A8A7A;
    --accent: #9DC88D;
    --accent-hover: #7BBF7B;
    --light-bg: #F1F5F2;
    --dark-text: #333;
    --mid-text: #666;
    --light-text: #888;
    --white: #FFFFFF;
    --border-radius: 1.5rem;
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--dark-text);
    background-color: var(--white);
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.8rem;
}

h2 {
    font-size: 2.2rem;
}

h3 {
    font-size: 1.8rem;
}

p {
    margin-bottom: 1.5rem;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

ul {
    list-style-type: none;
}

img {
    max-width: 100%;
    height: auto;
}

.section-title {
    position: relative;
    margin-bottom: 2.5rem;
    color: var(--dark-text);
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--primary);
}

.section-title.center {
    text-align: center;
}

.section-title.center:after {
    left: 50%;
    transform: translateX(-50%);
}

section {
    padding: 80px 0;
}

.lead-text {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    font-weight: 400;
}

/* ===== BUTTONS ===== */
.cta-button {
    display: inline-block;
    padding: 15px 30px;
    background-color: var(--accent);
    color: var(--white);
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    box-shadow: 0 4px 10px rgba(157, 200, 141, 0.3);
}

.cta-button:hover {
    background-color: var(--accent-hover);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(157, 200, 141, 0.4);
}

.submit-btn {
    display: inline-block;
    width: 100%;
    padding: 15px 30px;
    background-color: var(--primary);
    color: var(--white);
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
}

.submit-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
}

.pakke-btn {
    display: block;
    width: 100%;
    padding: 12px 0;
    background-color: var(--primary);
    color: var(--white);
    text-align: center;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition);
}

.pakke-btn:hover {
    background-color: var(--primary-dark);
    color: var(--white);
}

/* ===== HEADER ===== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    z-index: 1000;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

header.scrolled {
    padding: 10px 0;
    background-color: rgba(255, 255, 255, 0.98);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    max-width: 200px;
}

.logo img {
    height: 50px;
    transition: var(--transition);
}

header.scrolled .logo img {
    height: 40px;
}

.desktop-nav ul {
    display: flex;
}

.desktop-nav ul li {
    margin-left: 30px;
}

.desktop-nav ul li a {
    color: var(--dark-text);
    font-weight: 600;
    position: relative;
}

.desktop-nav ul li a:hover {
    color: var(--primary);
}

.desktop-nav ul li a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary);
    transition: var(--transition);
}

.desktop-nav ul li a:hover:after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
}

.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--dark-text);
    transition: var(--transition);
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

.mobile-nav {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background-color: var(--white);
    padding: 20px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    transform: translateY(-150%);
    transition: var(--transition);
    z-index: 999;
}

.mobile-nav.active {
    transform: translateY(0);
}

.mobile-nav ul li {
    margin-bottom: 15px;
}

.mobile-nav ul li a {
    color: var(--dark-text);
    font-weight: 600;
    font-size: 1.1rem;
    display: block;
    padding: 5px 0;
}

.mobile-nav ul li a:hover {
    color: var(--primary);
}

/* ===== HERO SECTION ===== */
#hero {
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    position: relative;
    padding: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('images/hero.jpg');
    background-size: cover;
    background-position: center;
    margin-top: 80px;
}

#hero .container {
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 600px;
    color: var(--white);
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content h2 {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 2.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* ===== TJENESTER SECTION ===== */
#tjenester {
    background-color: var(--light-bg);
}

.tjenester-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-gap: 30px;
    margin-top: 50px;
}

.tjeneste-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 30px;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--box-shadow);
}

.tjeneste-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.tjeneste-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--light-bg);
    border-radius: 50%;
    color: var(--primary);
}

.tjeneste-icon svg {
    width: 35px;
    height: 35px;
}

.tjeneste-card h3 {
    margin-bottom: 15px;
    color: var(--primary-dark);
}

.tjeneste-card p {
    color: var(--mid-text);
    margin-bottom: 0;
}

/* ===== OM OSS SECTION ===== */
.om-oss-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 50px;
    align-items: center;
}

.om-oss-image {
    position: relative;
}

.om-oss-image img {
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.om-oss-image:before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 3px solid var(--primary);
    border-radius: var(--border-radius);
    z-index: -1;
}

.om-oss-content blockquote {
    padding: 20px;
    background-color: var(--light-bg);
    border-left: 4px solid var(--primary);
    margin: 30px 0;
    font-style: italic;
}

.om-oss-content blockquote p {
    margin-bottom: 10px;
}

.om-oss-content blockquote cite {
    font-style: normal;
    font-weight: 600;
    color: var(--primary-dark);
}

/* ===== FORDELER SECTION ===== */
#fordeler {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.fordeler-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 50px;
}

.fordel-card {
    flex: 1 1 calc(25% - 30px);
    min-width: 250px;
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.fordel-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.fordel-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
    color: var(--primary);
}

.fordel-icon svg {
    width: 100%;
    height: 100%;
}

.fordel-card h3 {
    color: var(--primary-dark);
    margin-bottom: 15px;
}

.fordel-card p {
    color: var(--mid-text);
    margin-bottom: 0;
}

/* ===== SLIK JOBBER VI SECTION ===== */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 50px auto 0;
}

.timeline:before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 3px;
    background-color: var(--primary-light);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
    display: flex;
}

.timeline-item:nth-child(odd) {
    flex-direction: row-reverse;
}

.timeline-number {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    background-color: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    z-index: 1;
}

.timeline-content {
    width: 45%;
    padding: 30px;
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.timeline-content h3 {
    color: var(--primary-dark);
    margin-bottom: 15px;
}

.timeline-content p {
    color: var(--mid-text);
    margin-bottom: 0;
}

/* ===== PRISER SECTION ===== */
#priser {
    background-color: var(--light-bg);
}

.pakker-flex {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    margin-top: 50px;
}

.pakke-card {
    flex: 1 1 350px;
    max-width: 400px;
    background-color: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    position: relative;
}

.pakke-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.pakke-card.popular {
    border: 2px solid var(--accent);
    transform: scale(1.05);
}

.popular-tag {
    position: absolute;
    top: 0;
    right: 0;
    background-color: var(--accent);
    color: var(--white);
    padding: 8px 15px;
    font-size: 0.9rem;
    font-weight: 600;
    border-bottom-left-radius: 10px;
}

.pakke-header {
    background-color: var(--primary-light);
    color: var(--white);
    padding: 30px;
    text-align: center;
}

.pakke-header h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.pakke-pris {
    margin-bottom: 15px;
}

.pakke-pris .pris {
    font-size: 3rem;
    font-weight: 700;
}

.pakke-pris .valuta {
    font-size: 1.2rem;
    vertical-align: super;
}

.pakke-beskrivelse {
    font-size: 0.9rem;
    margin-bottom: 0;
}

.pakke-innhold {
    padding: 30px;
}

.pakke-innhold ul {
    margin-bottom: 30px;
}

.pakke-innhold ul li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
}

.pakke-innhold ul li:before {
    content: '✓';
    color: var(--accent);
    font-weight: 700;
    margin-right: 10px;
}

/* ===== REFERANSER SECTION ===== */
.testimonial-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
}

.testimonial-slide {
    padding: 40px 20px;
}

.testimonial-content {
    background-color: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 20px;
    position: relative;
}

.testimonial-content:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50px;
    width: 20px;
    height: 20px;
    background-color: var(--white);
    transform: rotate(45deg);
    box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.05);
}

.testimonial-content p {
    font-style: italic;
    margin-bottom: 0;
}

.testimonial-author {
    display: flex;
    align-items: center;
    padding-left: 20px;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 15px;
    object-fit: cover;
}

.testimonial-author h4 {
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.testimonial-author p {
    margin-bottom: 0;
    color: var(--light-text);
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.dot {
    width: 10px;
    height: 10px;
    background-color: #ddd;
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background-color: var(--primary);
}

/* ===== KONTAKT SECTION ===== */
.kontakt-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 50px;
}

.kontakt-detaljer {
    margin-bottom: 30px;
}

.kontakt-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.kontakt-item svg {
    width: 25px;
    height: 25px;
    color: var(--primary);
    margin-right: 15px;
}

.kontakt-map {
    height: 300px;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.kontakt-form {
    background-color: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-family: 'Open Sans', sans-serif;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(108, 154, 139, 0.1);
}

.form-check {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.form-check input {
    margin-right: 10px;
    margin-top: 5px;
}

.form-check label {
    font-size: 0.9rem;
    color: var(--mid-text);
}

/* ===== NYHETSBREV SECTION ===== */
#nyhetsbrev {
    background-color: var(--primary-dark);
    color: var(--white);
    padding: 60px 0;
}

.nyhetsbrev-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.nyhetsbrev-content {
    max-width: 600px;
    margin-bottom: 30px;
}

.nyhetsbrev-content h2 {
    margin-bottom: 15px;
}

.nyhetsbrev-content p {
    margin-bottom: 0;
    opacity: 0.9;
}

.nyhetsbrev-form {
    display: flex;
    width: 100%;
    max-width: 500px;
    margin-bottom: 15px;
}

.nyhetsbrev-form input {
    flex: 1;
    padding: 15px;
    border: none;
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    font-family: 'Open Sans', sans-serif;
}

.nyhetsbrev-form input:focus {
    outline: none;
}

.nyhetsbrev-form button {
    padding: 0 30px;
    background-color: var(--accent);
    color: var(--white);
    border: none;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.nyhetsbrev-form button:hover {
    background-color: var(--accent-hover);
}

.privacy-note {
    font-size: 0.8rem;
    opacity: 0.7;
    max-width: 500px;
}

.privacy-note a {
    color: var(--white);
    text-decoration: underline;
}

/* ===== FOOTER ===== */
footer {
    background-color: #2d3436;
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    grid-gap: 40px;
    margin-bottom: 40px;
}

.footer-logo img {
    height: 50px;
    margin-bottom: 20px;
}

.footer-logo p {
    opacity: 0.7;
}

.footer-nav h3,
.footer-legal h3,
.footer-contact h3 {
    color: var(--white);
    font-size: 1.3rem;
    margin-bottom: 20px;
    position: relative;
}

.footer-nav h3:after,
.footer-legal h3:after,
.footer-contact h3:after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary);
}

.footer-nav ul li,
.footer-legal ul li {
    margin-bottom: 10px;
}

.footer-nav ul li a,
.footer-legal ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-nav ul li a:hover,
.footer-legal ul li a:hover {
    color: var(--white);
    padding-left: 5px;
}

.footer-contact p {
    opacity: 0.7;
    margin-bottom: 15px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    opacity: 0.7;
    margin-bottom: 0;
    font-size: 0.9rem;
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 992px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .om-oss-grid {
        grid-template-columns: 1fr;
        grid-gap: 30px;
    }
    
    .om-oss-image {
        margin-bottom: 20px;
    }
    
    .timeline:before {
        left: 40px;
    }
    
    .timeline-item {
        flex-direction: row-reverse !important;
    }
    
    .timeline-number {
        left: 40px;
    }
    
    .timeline-content {
        width: calc(100% - 80px);
        margin-left: 80px;
    }
    
    .kontakt-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }
    
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    .desktop-nav {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content h2 {
        font-size: 1.3rem;
    }
    
    .tjenester-grid {
        grid-template-columns: 1fr;
    }
    
    .pakke-card.popular {
        transform: scale(1);
    }
    
    .nyhetsbrev-form {
        flex-direction: column;
    }
    
    .nyhetsbrev-form input {
        border-radius: var(--border-radius) var(--border-radius) 0 0;
        margin-bottom: 1px;
    }
    
    .nyhetsbrev-form button {
        border-radius: 0 0 var(--border-radius) var(--border-radius);
        padding: 15px;
    }
}

@media (max-width: 576px) {
    section {
        padding: 50px 0;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content h2 {
        font-size: 1.1rem;
    }
    
    .cta-button {
        padding: 12px 25px;
        font-size: 0.9rem;
    }
}