:root {
    --mahogny: #5D3A1A;
    --antik-guld: #C9A227;
    --varm-creme: #F5F0E6;
    --mork-ek: #2C1810;
    --teak: #8B5A2B;
    --patina-gron: #4A5D4A;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Source Serif 4', Georgia, serif;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', Georgia, serif;
}

.nav-link,
.nav-link-cta,
.nav-logo-text,
footer a {
    font-family: 'Cormorant Garamond', Georgia, serif;
}

#header.scrolled {
    background: rgba(245, 240, 230, 0.98);
    box-shadow: 0 2px 10px rgba(44, 24, 16, 0.1);
}

#header.scrolled .nav-logo-text {
    color: #1c1917;
}

#header.scrolled .nav-link {
    color: #1c1917;
}

#header.scrolled .nav-toggle-bar {
    background: #1c1917;
}

.nav-toggle.active .nav-toggle-bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active .nav-toggle-bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active .nav-toggle-bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 767px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: #fef3c7;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: right 0.3s ease;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
        display: flex;
        z-index: 40;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu .nav-link {
        color: #1c1917;
        font-size: 1.25rem;
    }

    .nav-menu .nav-link-cta {
        color: #ffffff;
    }
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    background: none;
    border: none;
    cursor: pointer;
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.form-message {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 2px;
    font-family: 'Cormorant Garamond', Georgia, serif;
}

.form-message--success {
    background: rgba(74, 93, 74, 0.1);
    color: #4A5D4A;
    border: 1px solid #4A5D4A;
}

.form-message--error {
    background: rgba(139, 90, 43, 0.1);
    color: #8B5A2B;
    border: 1px solid #8B5A2B;
}

#contact-form {
    max-width: 100%;
    overflow: hidden;
}

#contact-form .g-recaptcha {
    transform-origin: left center;
    max-width: 100%;
}

@media (max-width: 400px) {
    #contact-form .g-recaptcha {
        transform: scale(0.85);
    }
}

@media (max-width: 340px) {
    #contact-form .g-recaptcha {
        transform: scale(0.75);
    }
}

section,
section > div {
    max-width: 100%;
    box-sizing: border-box;
}

@media (max-width: 640px) {
    .grid > div {
        min-width: 0;
        max-width: 100%;
    }
}

@media print {
    #header,
    .hero-scroll,
    .lightbox {
        display: none;
    }

    .hero {
        min-height: auto;
        padding: 2rem;
    }

    .hero-overlay {
        background: none;
    }
}
