:root {
    --color-olive: #6E9019;
    --color-earth: #B09176;
    --color-wine: #9D4448;
    --color-turquoise: #60B4A4;
    --color-sky: #176EE6;
    --color-background: #f5f5f5;
    --color-text: #333;
    --color-accent: #cc8800;
}

/* WebP/JP fallback för bakgrundsbild */
.webp .parallax-background {
    background-image: url('img/background.webp');
}

.no-webp .parallax-background {
    background-image: url('img/background.jpg');
}

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=Lato:wght@300;400;700&display=swap');

.parallax-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    z-index: -1;
    transform: translateZ(0);
    will-change: transform;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background-color: #fff;
    transform: translateZ(0);
}

/* Rubriker */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
}

/* Brödtext */
body, p, li, label, input, textarea{
    font-family: 'Nunito', sans-serif;
    font-size: 1.2rem;
    line-height: 1.7;
    color: var(--color-text);
    text-shadow: 0 2px 2px rgba(255, 255, 255, 0.3); /* Mjukare skugga */
}

/* Footer */
.footer, .footer p, .footer a, .footer h3 {
    font-family: 'Quicksand', sans-serif;
}

h2 {
    font-family: 'Quicksand', serif;
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: var(--color-olive);
    line-height: 1.3;
    letter-spacing: 0.2rem;
    font-weight: 600;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(2px);
    z-index: 0;
    transform: translateZ(0);
}

body > * {
    position: relative;
    z-index: 1;
}

/* Fixar korrekt scroll-position vid klick på ankar-länkar */
section[id] {
    scroll-margin-top: 150px;
}


header {
    background-color: rgba(110, 144, 25, 0.9);
    color: white;
    padding: 0.5rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    width: 100%;
    border-bottom: 2px solid rgba(176, 145, 118, 0.4);
}

.header-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    padding: 1rem;
}


header h1 {
    font-size: 2.0rem;
    line-height: 1.2;
    margin: 0;
    text-shadow: 0px 4px 4px rgba(176, 145, 118, 0.5);
}

    header h1 small {
        font-size: 0.9rem;
        display: block;
        margin-top: 0.2rem;
        font-weight: normal;
        opacity: 0.8;
    }

.thai-greeting-wrapper {
    text-align: center;
    color: #5c4434;
    padding: 1rem;
    text-shadow: 1px 1px 2px rgba(92, 68, 52, 0.4), 0 0 4px rgba(255, 255, 255, 0.2);
}

    .thai-greeting-wrapper .thai-script {
        font-size: clamp(1.2rem, 2vw, 2rem);
        font-weight: bold;
        margin-bottom: 0.3rem;
        color: #442b1d;
        text-shadow: 0px 4px 4px rgba(68, 43, 29, 0.5), 0 0 2px rgba(255, 255, 255, 0.2);
    }

    .thai-greeting-wrapper .thai-transcription {
        font-size: clamp(0.9rem, 1.5vw, 1.6rem);
        font-style: italic;
        font-weight: 500;
        color: #e0c98d; /* en lite klarare, ljusare grön ton */
        text-shadow: 1px 4px 4px rgba(0, 0, 0, 0.5); /* skapar djup och läsbarhet */
        margin: 0;
    }

nav {
    display: flex;
    align-items: center;
    margin-left: auto;
}

.nav-links {
    display: flex;
    gap: 1rem;
    list-style: none;
}

    .nav-links a {
        color: white;
        text-decoration: none;
        padding: 0.5rem;
        transition: color 0.3s;
    }

        .nav-links a:hover {
            color: var(--color-accent);
        }

        .nav-links a.active {
            color: var(--color-accent);
            border-bottom: 2px solid var(--color-accent);
        }


.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    margin-left: 1rem;
}

    .hamburger span {
        display: block;
        width: 25px;
        height: 3px;
        background-color: white;
        border-radius: 3px;
        transition: transform 0.5s ease, opacity 0.5s ease;
    }

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        flex-direction: column;
        background-color: rgba(0, 0, 0, 0.9);
        padding: 1rem;
        border-radius: 10px;
        z-index: 1000;
    }

        .nav-links.show {
            display: flex;
        }

    .hamburger {
        display: flex;
    }
}

.hero {
    background-color: var(--color-olive);
    background: linear-gradient(to bottom, rgba(110, 144, 25, 0.85), rgba(255, 255, 255, 0));
    color: white;
    padding: 4rem 1rem 2rem 1rem;
    text-align: center;
}

    .hero h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .hero p {
        font-size: 1.4rem;
        margin: 2rem;
        margin-bottom: 4rem;
        color:white;
    }

    .hero .button {
        background: linear-gradient(135deg, var(--color-olive), var(--color-earth));
        color: white;
        font-weight: bold;
        font-size: 1.1rem;
        padding: 0.75rem 1.5rem;
        border: none;
        border-radius: 30px;
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        text-decoration: none;
    }

        .hero .button:hover {
            transform: scale(1.05);
            box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
            background: linear-gradient(135deg, var(--color-earth), var(--color-olive));
        }

.about,
.thai-massage-info,
.services,
.gallery,
.booking,
.vision {
    margin: 1rem auto;
    padding: 2rem;
    max-width: 1000px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(2px);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

@media (max-width: 600px) {
    .about,
    .thai-massage-info,
    .services,
    .gallery,
    .booking,
    .vision {
        margin: 1rem;
        padding: 1.5rem 1rem;
        width: auto;
        max-width: 95vw;
        box-sizing: border-box;
    }
}

.section-divider {
    border: none;
    height: 3px;
    width: 99%;
    margin: 1rem auto 2rem auto;
    background: linear-gradient(to left, rgba(110, 144, 25, 0.5), rgba(176, 145, 118, 0.8), rgba(110, 144, 25, 0.5));
    border-radius: 3px;
}


.vision {
    margin-bottom: 4rem;
}

    .vision h2 {
        font-family: 'Playfair Display', serif;
        color: var(--color-olive);
        font-size: 1.8rem;
        font-weight: 600;
        letter-spacing: 0.05rem;
    }

    .vision p {
        margin-left: 1rem;
        margin-right: 1rem;
        max-width: 800px;
        line-height: 1.8;
    }


em {
    font-style: italic;
    color: var(--color-wine);
    font-weight: 500;
}
.thai-massage-info {
    background: rgba(255, 255, 255, 0.5);
    padding: 2rem;
    margin: 2rem auto;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(2px);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

#contactForm {
    background-color: rgba(255, 255, 255, 0.7);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    max-width: 600px;
    margin: 0 auto;
}

    #contactForm label {
        display: block;
        margin-top: 1rem;
        font-weight: bold;
        color: #333;
    }

    #contactForm input, #contactForm textarea {
        width: 100%;
        margin-top: 0.5rem;
        padding: 0.75rem;
        border: 1px solid #ccc;
        border-radius: 8px;
        background-color: rgba(255, 255, 255, 0.9);
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        transition: box-shadow 0.3s;
    }

        #contactForm input:focus, #contactForm textarea:focus {
            outline: none;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        }

    #contactForm button {
        background: linear-gradient(to right, rgba(110, 144, 25, 0.3), rgba(176, 145, 118, 0.3));
        color: white;
        padding: 0.75rem 1.5rem;
        border: none;
        border-radius: 8px;
        cursor: pointer;
        margin-top: 1rem;
        transition: background 0.3s;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    }

        #contactForm button:hover {
            background: linear-gradient(to right, rgba(110, 144, 25, 0.5), rgba(176, 145, 118, 0.5));
        }

        #contactForm button:disabled {
            background-color: rgba(200, 200, 200, 0.6);
            color: #666;
            cursor: not-allowed;
            opacity: 0.7;
        }

.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-top: 4px solid #60B4A4;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 1rem auto;
    display: none;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.footer {
    background-color: #f8f8f8;
    padding: 2rem 1rem;
    color: #333;
    font-size: 0.9rem;
}

.footer-flower {
    text-align: center;
    margin-top: 2rem;
}

    .footer-flower img {
        width: 80px;
        height: auto;
        opacity: 0.7;
        filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.2));
    }

@media (max-width: 600px) {
    .footer-flower img {
        width: 60px;
    }
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
    padding: 2rem 1rem;
}

.footer-contact, .footer-social {
    flex: 1 1 250px;
}

.footer-social {
    border-left: 1px solid #ccc;
    padding-left: 2rem;
}

.footer-contact a[href*="maps"]::after {
    content: "";
}

.footer-bottom {
    position: relative;
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1rem;
    font-size: 0.8rem;
    color: #666;
}

    .footer-bottom::before {
        content: "";
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 95%;
        height: 3px;
        background: linear-gradient(to left, rgba(110, 144, 25, 0.5), rgba(176, 145, 118, 0.8), rgba(110, 144, 25, 0.5));
        border-radius: 3px;
    }

.footer-social a img {
    width: 30px;
    height: 30px;
    margin: 0.5rem;
    transition: transform 0.3s;
}

    .footer-social a img:hover {
        transform: scale(1.2);
    }

.footer-contact a, .footer-social a {
    color: #333;
    text-decoration: none;
}

    .footer-contact a:hover, .footer-social a:hover {
        text-decoration: underline;
    }

@media (max-width: 600px) {
    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-social {
        border-left: none;
        padding-left: 0;
    }

    .header-container {
        flex-direction: column;
        align-items: center;
    }

    .hero, .about, .services, .gallery, .booking {
        margin: 1rem;
        padding: 1rem;
    }
}

.fade-booking-button {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: linear-gradient(135deg, var(--color-olive), var(--color-earth));
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: bold;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
    z-index: 1500;
}

    .fade-booking-button.visible {
        opacity: 1;
        pointer-events: auto;
    }

.hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
    background-color: grey; /* Grå mittlinje när öppen */
}

.hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.hamburger span {
    transition: all 0.4s ease;
}