/* Reset og base stilark */
*,
*::before,
*::after {

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

:root {
    --primary-color: #4a6741; /* Olivengrønn */
    --secondary-color: #c9aa6b; /* Gyllen */
    --text-color: #333333;
    --light-bg: #f9f7f2; /* Kremfarget bakgrunn */
    --white: #ffffff;
    --light-grey: #f4f4f4;
    --dark-grey: #666666;
    --accent-color: #8e4f2a; /* Rustikk brun */
    --font-primary: 'Playfair Display', serif;
    --font-secondary: 'Raleway', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-secondary);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
    font-size: 16px;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

ul {
    list-style: none;
}

/* Typografi */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    line-height: 1.3;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1rem;
}

/* Seksjonslayout */
section {
    padding: 6rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-header p {
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1rem;
    color: var(--dark-grey);
}

/* Knapper */
.btn {
    display: inline-block;
    padding: 12px 30px;
    font-family: var(--font-secondary);
    font-weight: 500;
    font-size: 1rem;
    text-align: center;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn.primary {
    background-color: var(--primary-color);
    color: var(--white);
    border: 2px solid var(--primary-color);
}

.btn.primary:hover {
    background-color: transparent;
    color: var(--primary-color);
}

.btn.secondary {
    background-color: var(--secondary-color);
    color: var(--white);
    border: 2px solid var(--secondary-color);
}

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

.btn.primary-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn.primary-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn.text {
    padding: 0;
    color: var(--primary-color);
    background: none;
    border: none;
    text-transform: none;
    letter-spacing: normal;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
}

.btn.text i {
    margin-left: 8px;
    transition: margin-left 0.3s ease;
}

.btn.text:hover i {
    margin-left: 12px;
}

.btn.primary-small {
    padding: 8px 16px;
    font-size: 0.875rem;
}

/* Header */
header {
    position: relative;
}

.header-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    max-width: 200px;
}

.logo img {
    height: auto;
}

.main-nav {
    display: flex;
    align-items: center;
}

.main-nav li {
    margin-left: 1.5rem;
}

.main-nav a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-color);
    position: relative;
    padding-bottom: 5px;
}

.main-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.main-nav a:hover::after,
.main-nav a:focus::after {
    width: 100%;
}

.b2b-button {
    background-color: var(--primary-color);
    color: var(--white) !important;
    padding: 8px 16px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.b2b-button:hover {
    background-color: var(--secondary-color);
}

.b2b-button::after {
    display: none;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
}

.mobile-menu-btn span {
    height: 3px;
    width: 100%;
    background-color: var(--primary-color);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Hero section */
.hero {
    height: 100vh;
    min-height: 600px;
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('../images/hero-image.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--white);
    padding-top: 80px;
}

.hero .container {
    max-width: 900px;
}

.hero h1 {
    color: var(--white);
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* About section */
.about {
    background-color: var(--light-bg);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.about-image img {
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Products section */
.product-category {
    margin-bottom: 4rem;
}

.product-category h3 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--accent-color);
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.product-category h3::after {
    content: '';
    position: absolute;
    height: 3px;
    width: 50px;
    background-color: var(--secondary-color);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.product-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    padding-bottom: 2rem;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.product-image {
    height: 250px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-card h4 {
    margin: 1.5rem 1rem 0.5rem;
    font-weight: 700;
}

.product-card p {
    margin: 0 1.5rem 1rem;
    font-size: 0.95rem;
    color: var(--dark-grey);
}

.product-size {
    display: block;
    font-size: 0.875rem;
    color: var(--accent-color);
    font-style: italic;
    margin-bottom: 1.5rem;
}

.b2b-banner {
    background-color: var(--light-bg);
    border-radius: 8px;
    padding: 3rem 2rem;
    text-align: center;
    margin-top: 4rem;
}

.b2b-banner h3 {
    margin-bottom: 0.5rem;
}

.b2b-banner p {
    margin-bottom: 1.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Knowledge section */
.knowledge {
    background-color: var(--white);
}

.knowledge-grid {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.knowledge-card {
    display: grid;
    grid-template-columns: 40% 60%;
    gap: 3rem;
    align-items: center;
}

.knowledge-card.reverse {
    grid-template-columns: 60% 40%;
}

.knowledge-card.reverse .knowledge-image {
    order: 2;
}

.knowledge-card.reverse .knowledge-content {
    order: 1;
}

.knowledge-image img {
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.knowledge-content p {
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

/* Farming section */
.farming {
    background-color: var(--light-bg);
}

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

.farming-feature {
    text-align: center;
    padding: 2rem;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.farming-feature:hover {
    transform: translateY(-10px);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
}

.farming-feature h3 {
    margin-bottom: 1rem;
}

.farming-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.gallery-item {
    overflow: hidden;
    border-radius: 8px;
    height: 200px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Quality section */
.quality {
    background-color: var(--white);
}

.quality-timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 5rem;
}

.timeline-item {
    text-align: center;
    position: relative;
}

.timeline-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 auto 1.5rem;
}

.timeline-item::after {
    content: '';
    position: absolute;
    top: 30px;
    right: -50%;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
    z-index: -1;
}

.timeline-item:last-child::after {
    display: none;
}

.timeline-item h3 {
    margin-bottom: 1rem;
}

.timeline-item p {
    font-size: 0.95rem;
    color: var(--dark-grey);
}

.quality-testing {
    display: grid;
    grid-template-columns: 40% 60%;
    gap: 4rem;
    align-items: center;
}

.testing-image img {
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.testing-content h3 {
    margin-bottom: 1.5rem;
}

.testing-content p {
    margin-bottom: 1.5rem;
}

.testing-criteria {
    list-style: disc;
    padding-left: 1.5rem;
}

.testing-criteria li {
    margin-bottom: 0.5rem;
}

/* Contact section */
.contact {
    background-color: var(--light-bg);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
}

.contact-info h3 {
    margin-bottom: 1.5rem;
}

.contact-info p {
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin: 2rem 0;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.social-links a:hover {
    background-color: var(--secondary-color);
}

.b2b-contact {
    margin-top: 2.5rem;
    padding: 1.5rem;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.b2b-contact h4 {
    margin-bottom: 0.5rem;
}

.b2b-contact p {
    margin-bottom: 1rem;
}

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

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: var(--font-secondary);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}
/* Styling for book CTA buttons */
.article-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.btn.book-cta {
    background-color: var(--secondary-color);
    color: var(--white);
    border: 2px solid var(--secondary-color);
    padding: 10px 20px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.btn.book-cta:hover {
    background-color: transparent;
    color: var(--secondary-color);
}

.btn.book-cta i {
    font-size: 1rem;
}

@media (max-width: 768px) {
    .article-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 5rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-logo img {
    max-width: 180px;
    margin-bottom: 1.5rem;
}

.footer-logo p {
    opacity: 0.8;
}

.footer-links h4 {
    color: var(--white);
    margin-bottom: 1.5rem;
    position: relative;
}

.footer-links h4::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 2px;
    background-color: var(--secondary-color);
    bottom: -8px;
    left: 0;
}

.footer-links ul li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--white);
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
}

.footer-newsletter h4 {
    color: var(--white);
    margin-bottom: 1.5rem;
    position: relative;
}

.footer-newsletter h4::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 2px;
    background-color: var(--secondary-color);
    bottom: -8px;
    left: 0;
}

.footer-newsletter p {
    opacity: 0.8;
    margin-bottom: 1.5rem;
}

.newsletter-form {
    display: flex;
}

.newsletter-form input {
    flex: 1;
    padding: 10px 12px;
    border: none;
    border-radius: 4px 0 0 4px;
    font-family: var(--font-secondary);
}

.newsletter-form input:focus {
    outline: none;
}

.newsletter-form button {
    border-radius: 0 4px 4px 0;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright p {
    opacity: 0.6;
    font-size: 0.9rem;
    margin: 0;
}

.footer-policies {
    display: flex;
    gap: 1.5rem;
}

.footer-policies a {
    color: var(--white);
    opacity: 0.6;
    font-size: 0.9rem;
    transition: opacity 0.3s ease;
}

.footer-policies a:hover {
    opacity: 1;
}

/* Responsive design */
@media (max-width: 1024px) {
    h1 {
        font-size: 2.8rem;
    }
    
    h2 {
        font-size: 2.2rem;
    }
    
    .quality-timeline {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .timeline-item:nth-child(2)::after {
        display: none;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    section {
        padding: 4rem 0;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        background-color: var(--white);
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        padding: 1rem 0;
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: clip-path 0.4s ease;
    }
    
    .main-nav.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }
    
    .main-nav li {
        margin: 0;
        width: 100%;
        text-align: center;
    }
    
    .main-nav a {
        display: block;
        padding: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .about-content,
    .knowledge-card,
    .knowledge-card.reverse,
    .quality-testing,
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .knowledge-card.reverse .knowledge-image {
        order: 1;
    }
    
    .knowledge-card.reverse .knowledge-content {
        order: 2;
    }
    
    .farming-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .section-header {
        margin-bottom: 2.5rem;
    }
    
    .quality-timeline {
        grid-template-columns: 1fr;
    }
    
    .timeline-item::after {
        display: none;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .footer-policies {
        justify-content: center;
    }
}
