:root {
    --color-wood-dark: #3a2e28;
    --color-wood-light: #8a6a57;
    --color-cream: #f4f1eb;
    --color-text-dark: #222222;
    --color-accent-gold: #c9a87c;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-cream);
    color: var(--color-text-dark);
    line-height: 1.6;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 6rem 0;
}

.section h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--color-wood-dark);
    text-align: center;
    margin-bottom: 3rem;
}

.site-header {
    background-color: var(--color-wood-dark);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 100;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--color-cream);
    text-decoration: none;
    font-weight: 700;
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-link {
    color: var(--color-cream);
    text-decoration: none;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease, border-bottom 0.3s ease;
    border-bottom: 2px solid transparent;
}

.nav-link:not(.cta-button):hover,
.nav-link:not(.cta-button).active {
    color: var(--color-accent-gold);
    border-bottom-color: var(--color-accent-gold);
}

.cta-button {
    background-color: var(--color-accent-gold);
    color: var(--color-wood-dark);
    font-weight: 600;
    border-radius: 5px;
    padding: 0.5rem 1.2rem;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: var(--color-cream);
    color: var(--color-wood-dark);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.hamburger {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--color-cream);
    position: relative;
    transition: background 0.2s ease-out;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 3px;
    background: var(--color-cream);
    transition: transform 0.2s ease-out, top 0.2s ease-out, bottom 0.2s ease-out;
}

.hamburger::before { top: -8px; }
.hamburger::after { bottom: -8px; }
.nav-open .hamburger { background: transparent; }
.nav-open .hamburger::before { transform: rotate(45deg); top: 0; }
.nav-open .hamburger::after { transform: rotate(-45deg); bottom: 0; }

.section-intro {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('../img/solbakgard-dekke1.jpg');
    background-size: cover;
    background-position: center;
    color: #fff;
    padding-top: 5rem;
}

.section-intro h1 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.section-intro p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    max-width: 600px;
}

.scroll-down-arrow {
    position: absolute;
    bottom: 2rem;
    animation: bounce 2s infinite;
}
.scroll-down-arrow a {
    font-size: 2rem;
    color: white;
    text-decoration: none;
}
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-15px); }
    60% { transform: translateY(-10px); }
}

.section-about .about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto; 
    gap: 2rem 3rem;
    align-items: start;
}

.about-main-image {
    grid-column: 1;
    grid-row: 1 / span 2;
    width: 100%;
    border-radius: 5px;
    align-self: center;
}

.about-logo {
    grid-column: 2;
    grid-row: 1;
    max-width: 200px;
    margin: 0 auto;
    padding-top: 1rem;
}

.about-content p {
    grid-column: 2;
    grid-row: 2;
    margin: 0;
}

@media (max-width: 768px) {
    .section-about .about-content {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
    }

    .about-main-image {
        grid-column: 1;
        grid-row: 2;
    }
    
    .about-logo {
        grid-column: 1;
        grid-row: 1;
    }

    .about-content p {
        grid-column: 1;
        grid-row: 3;
        text-align: center;
        padding-top: 1rem;
    }
}

.section-about .about-content p {
    font-size: 1.1rem;
    line-height: 1.7;
}

.section-about .about-content .gallery-item {
    height: 300px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.gallery-item {
    height: 250px;
    background-color: var(--color-wood-light);
    color: white;
    display: grid;
    place-items: center;
    font-style: italic;
    border-radius: 5px;
    overflow: hidden;
}

.pricing-columns {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.price-card {
    background: #fff;
    border: 1px solid #ddd;
    padding: 2rem;
    text-align: center;
    border-radius: 5px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.price-card h3 {
    font-family: var(--font-heading);
    color: var(--color-wood-dark);
    margin-bottom: 1rem;
}

.price-card .price-tag {
    display: block;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-wood-light);
    margin-top: 1.5rem;
}
.section-map {
    padding-bottom: 0;
}
.section-map .container {
    text-align: center;
}
.section-map p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.map-embed iframe {
    width: 100%;
    height: 450px;
    border: 0;
}

.site-footer {
    background-color: var(--color-wood-dark);
    color: var(--color-cream);
    padding: 4rem 0 2rem 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-column h3 {
    font-family: var(--font-heading);
    color: var(--color-accent-gold);
    margin-bottom: 1rem;
}

.footer-column a {
    color: var(--color-cream);
    text-decoration: none;
}
.footer-column a:hover {
    text-decoration: underline;
}

.social-links a {
    font-size: 1.2rem;
    margin-right: 1rem;
    display: inline-block;
    padding: 0.5rem;
    border: 1px solid var(--color-accent-gold);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    text-align: center;
    line-height: 1.2;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid var(--color-wood-light);
    padding-top: 2rem;
    font-size: 0.9rem;
}

.made-with-love {
    font-size: 0.9rem;
    color: var(--color-cream);
    opacity: 0.7;
    margin-top: 0.5rem;
}

.made-with-love a {
    text-decoration: none;
}

.made-with-love .fa-heart {
    color: #e25555;
    margin: 0 2px;
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 65px;
        right: 0;
        width: 100%;
        max-width: 300px;
        height: calc(100vh - 65px);
        background-color: var(--color-wood-dark);
        flex-direction: column;
        align-items: flex-start;
        padding: 2rem;
        transform: translateX(100%);
        transition: transform 0.3s ease-out;
    }

    .nav-open .nav-links {
        transform: translateX(0);
    }

    .nav-links li {
        width: 100%;
    }

    .nav-link {
        display: block;
        padding: 1rem;
        font-size: 1.2rem;
        width: 100%;
        border-bottom: 1px solid var(--color-wood-light);
    }
    
    .nav-link:hover, .nav-link.active {
        border-bottom-color: var(--color-accent-gold);
    }

    .nav-toggle {
        display: block;
    }

    .section-intro h1 {
        font-size: 2.5rem;
    }
    
    .section-about .about-content {
        grid-template-columns: 1fr;
    }

    .pricing-columns,
    .footer-content {
        grid-template-columns: 1fr;
    }

    .footer-column {
        text-align: center;
    }

    .social-links {
        text-align: center;
    }
}

.gallery-item {
    height: 250px;
    background-color: var(--color-wood-light);
    border-radius: 5px;
    overflow: hidden;
    display: block;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(18, 14, 12, 0.9);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    animation: fadeIn 0.3s ease;
}

.lightbox-overlay.visible {
    display: flex;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.lightbox-image {
    max-width: 90vw;
    max-height: 90vh;
    display: block;
    box-shadow: 0 0 3rem rgba(0,0,0,0.5);
    border-radius: 5px;
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 3rem;
    color: #fff;
    cursor: pointer;
    line-height: 1;
    font-weight: 600;
    opacity: 0.8;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.lightbox-close:hover {
    opacity: 1;
    transform: scale(1.1);
}

.subsection-title {
    text-align: center;
    font-family: var(--font-heading);
    color: var(--color-wood-dark);
    font-size: 2rem;
    margin-top: 5rem;
    margin-bottom: 3rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(0,0,0,0.1); 
}

.addons-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.addon-card {
    background: #fff;
    border: 1px solid #ddd;
    padding: 2rem;
    text-align: center;
    border-radius: 5px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
}

.addon-card h4 {
    font-family: var(--font-heading);
    color: var(--color-wood-dark);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.addon-card p {
    flex-grow: 1; 
    margin-bottom: 1.5rem;
}

@media (max-width: 992px) {
    .addons-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .addons-grid {
        grid-template-columns: 1fr;
    }
}

.section-contact {
    background-color: #fff;
    border-top: 1px solid #ddd;
}

.section-contact p {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem auto;
    font-size: 1.1rem;
}

.contact-form {
    max-width: 700px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--color-wood-dark);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent-gold);
    box-shadow: 0 0 0 3px rgba(201, 168, 124, 0.25);
}

.form-group textarea {
    resize: vertical;
}

.form-group .cta-button {
    width: 100%;
    font-size: 1.1rem;
    padding: 1rem;
    border: none;
    cursor: pointer;
}

.form-status {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
}
.form-status.success {
    color: #28a745;
}
.form-status.error {
    color: #dc3545;
}

@media (max-width: 768px) {
    .form-group .cta-button {
        width: 100%;
    }
}