/* ============================================
   Living Heritage Theme - Milleshaug gård
   ============================================ */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', 'Segoe UI', Tahoma, sans-serif;
    line-height: 1.7;
    color: #3d3d3d;
    background-color: #f9f6f0;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', 'Georgia', serif;
    font-weight: 400;
    letter-spacing: 1px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header and Navigation */
.site-header {
    background-color: #2d4a28;
    background-image: linear-gradient(135deg, #2d4a28 0%, #3a5c35 100%);
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.2rem 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo {
    font-size: 1.8rem;
    font-weight: 600;
    font-family: 'Playfair Display', serif;
    letter-spacing: 2px;
    color: #fef9e7;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.6), 1px 1px 3px rgba(0, 0, 0, 0.8);
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 2.5rem;
}

.nav-menu a {
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 400;
    font-size: 1rem;
    font-family: 'Lora', serif;
    letter-spacing: 0.5px;
}

.nav-menu a:hover {
    color: #d4a574;
}

/* Language switcher */
.language-switcher {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 1.5rem;
}

.lang-link {
    color: #fef9e7;
    text-decoration: none;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.lang-link:hover {
    background-color: rgba(254, 249, 231, 0.15);
}

.lang-link.active {
    background-color: rgba(254, 249, 231, 0.25);
    text-decoration: underline;
}

.lang-separator {
    color: #d4a574;
    font-weight: 300;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #fff;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #5c7b52 0%, #7a9670 50%, #8ca885 100%);
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(212, 165, 116, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(139, 101, 55, 0.08) 0%, transparent 50%),
        linear-gradient(135deg, #5c7b52 0%, #7a9670 50%, #8ca885 100%);
    text-align: center;
    padding: 4rem 20px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* background: rgba(0, 0, 0, 0.15); */
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    color: #fff;
}

.hero-title {
    font-size: 4rem;
    font-weight: 400;
    letter-spacing: 4px;
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    color: #f4e4c1;
}

.hero-subtitle {
    font-size: 1.8rem;
    font-weight: 300;
    letter-spacing: 2px;
    margin-bottom: 2rem;
    font-family: 'Lora', serif;
}

.hero-quote {
    font-size: 1.3rem;
    font-style: italic;
    margin-bottom: 3rem;
    font-family: 'Lora', serif;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 0.9rem 2rem;
    text-decoration: none;
    border-radius: 4px;
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary {
    background-color: #8b5a3c;
    color: #fff;
    border: 2px solid #8b5a3c;
}

.btn-primary:hover {
    background-color: #a6704f;
    border-color: #a6704f;
}

.btn-secondary {
    background-color: #d4a574;
    color: #3d3d3d;
    border: 2px solid #d4a574;
}

.btn-secondary:hover {
    background-color: #e0b889;
    border-color: #e0b889;
}

.btn-outline {
    background-color: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Sections */
section {
    padding: 5rem 20px;
}

section h2 {
    font-size: 2.8rem;
    margin-bottom: 3rem;
    color: #4a6741;
    text-align: center;
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    letter-spacing: 2px;
}

section h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: #5c7b52;
    font-family: 'Playfair Display', serif;
}

.lead {
    font-size: 1.25rem;
    line-height: 1.8;
    color: #555;
    font-family: 'Lora', serif;
}

/* Introduction Section */
.intro-section {
    background-color: #fff;
}

.intro-content {
    max-width: 900px;
    margin: 0 auto;
}

.intro-content h3 {
    text-align: center;
    margin-bottom: 2rem;
}

.intro-content p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Historie Section */
.historie-section {
    background-color: #f5f1e8;
}

.family-section {
    max-width: 900px;
    margin: 4rem auto 0;
    padding: 3rem;
    background-color: #fff;
    border-left: 4px solid #d4a574;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.family-content p {
    margin-bottom: 1rem;
    font-size: 1.05rem;
    line-height: 1.8;
}

/* Prosjektet Section */
.prosjekt-section {
    background-color: #fff;
}

.prosjekt-intro {
    max-width: 900px;
    margin: 0 auto 3rem;
    text-align: center;
}

.prosjekt-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.prosjekt-card {
    background-color: #f9f6f0;
    padding: 2.5rem;
    border-radius: 8px;
    border-top: 4px solid #8b5a3c;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.prosjekt-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.prosjekt-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.prosjekt-card p {
    line-height: 1.7;
}

.drift-info {
    max-width: 900px;
    margin: 3rem auto 0;
    padding: 2.5rem;
    background-color: #f5f1e8;
    border-radius: 8px;
}

.drift-info h3 {
    margin-bottom: 1.5rem;
}

.drift-info p {
    font-size: 1.05rem;
    line-height: 1.8;
}

/* Galleri Section */
.galleri-section {
    background-color: #f5f1e8;
}

.galleri-intro {
    text-align: center;
    font-size: 1.15rem;
    color: #666;
    margin-bottom: 3rem;
    font-family: 'Lora', serif;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #fff;
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.gallery-item img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
    filter: sepia(20%);
    transition: filter 0.3s ease;
}

.gallery-item:hover img {
    filter: sepia(0%);
}

.gallery-caption {
    padding: 1rem;
    background-color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gallery-year {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: #8b5a3c;
}

.gallery-title {
    font-family: 'Lora', serif;
    font-size: 0.95rem;
    color: #666;
}

/* Timeline */
.timeline {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    padding-left: 3rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, #8b5a3c, #d4a574, #8b5a3c);
}

.timeline-item {
    margin-bottom: 3rem;
    position: relative;
    padding-left: 2rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -3.5rem;
    top: 0.3rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-color: #d4a574;
    border: 4px solid #f5f1e8;
    box-shadow: 0 0 0 4px #8b5a3c;
}

.timeline-year {
    font-size: 1.6rem;
    font-weight: 600;
    color: #8b5a3c;
    margin-bottom: 0.5rem;
    font-family: 'Playfair Display', serif;
}

.timeline-content h4 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: #5c7b52;
    font-family: 'Lora', serif;
}

.timeline-content p {
    font-size: 1.05rem;
    color: #555;
    line-height: 1.7;
}

/* Kontakt Section */
.kontakt-section {
    background-color: #fff;
}

.kontakt-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.kontakt-info, .kontakt-location {
    padding: 2rem;
    background-color: #f9f6f0;
    border-radius: 8px;
    border-left: 4px solid #8b5a3c;
}

.kontakt-info h3, .kontakt-location h3 {
    margin-bottom: 1.5rem;
}

.kontakt-info p, .kontakt-location p {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.location-description {
    font-style: italic;
    color: #666;
}

/* Footer */
.site-footer {
    background-color: #4a6741;
    background-image: linear-gradient(135deg, rgba(74, 103, 65, 0.95) 0%, rgba(92, 123, 82, 0.95) 100%);
    color: #fff;
    text-align: center;
    padding: 2.5rem 20px;
    margin-top: 0;
}

.site-footer p {
    margin: 0;
    font-size: 0.95rem;
    opacity: 0.9;
}

/* Responsive Design */
@media (max-width: 968px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 72px;
        flex-direction: column;
        background-color: #4a6741;
        width: 100%;
        text-align: center;
        transition: left 0.3s ease;
        padding: 2rem 0;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 1rem 0;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.3rem;
    }

    .hero-quote {
        font-size: 1.1rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    section h2 {
        font-size: 2.2rem;
    }

    .prosjekt-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .timeline {
        padding-left: 2rem;
    }

    .timeline-item {
        padding-left: 1.5rem;
    }

    .timeline-item::before {
        left: -2.7rem;
    }
}

@media (max-width: 600px) {
    .hero-section {
        min-height: 60vh;
        padding: 3rem 20px;
    }

    .hero-title {
        font-size: 2rem;
        letter-spacing: 2px;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-quote {
        font-size: 1rem;
    }

    section {
        padding: 3rem 20px;
    }

    section h2 {
        font-size: 1.8rem;
    }

    section h3 {
        font-size: 1.4rem;
    }

    .site-logo {
        font-size: 1.4rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .family-section, .drift-info {
        padding: 2rem;
    }

    .kontakt-content {
        grid-template-columns: 1fr;
    }
}
