:root {
    --gold: #C5A572;
    --dark: #1A1A1A;
    --light: #F5F5F5;
    --card-bg: rgba(45, 45, 45, 0.95);
    --transition-speed: 0.3s;
    --error: #f44336;
    --success: #4CAF50;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--dark);
    color: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Header */
.header {
    position: fixed;
    width: 100%;
    z-index: 1000;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    transition: all var(--transition-speed) ease;
}

.header.scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
    width: 100%;
}
.edit-mode .section-background {
    z-index: -1;  /* Lägg till denna för att säkerställa z-index i edit mode */
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    width: 150px;
    height: auto;
    transition: transform var(--transition-speed) ease;
    cursor: pointer;
}

.logo:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    justify-content: flex-end; /* Flyttar menyn till höger */
    align-items: center;
    gap: 2rem; /* Eller det mellanrum du vill ha mellan länkarna */
}
/* Mobil meny-knappen (hamburger) */
.menu-toggle {
    display: none; /* Dölj på desktop */
}

/* Mobil-menyn */
.mobile-menu {
    display: none; /* Dölj på desktop */
}


.nav-links a {
    color: var(--light);
    text-decoration: none;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color var(--transition-speed) ease;
    font-size: 0.9rem;
}

.nav-links a:hover {
    color: var(--gold);
}

/* Sections */
.section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 100px 0;
}

.section-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.8s ease-out;
    z-index: 1;
    cursor: pointer;
}

.section-background.fade-in {
    opacity: 1;
}

/* Hero Section */
.hero-content {
    max-width: 800px;
    margin-top: -50px;
}

.hero-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    margin-bottom: 1rem;
    color: var(--gold);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards 0.3s;
}

/* Services Section */
.services-container {
    padding-top: 50px;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--gold);
    margin-bottom: 3rem;
    text-align: center;
}

.services-grid {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
    padding: 0 2rem;
    flex-wrap: wrap;
}

.service-card {
    flex: 1;
    max-width: 350px;
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 8px;
    border: 1px solid rgba(197, 165, 114, 0.2);
    transition: all var(--transition-speed) ease;
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--gold);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.service-card h3 {
    color: var(--gold);
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-family: 'Playfair Display', serif;
}

/* Detail Sections */
.detail-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
    background: var(--card-bg);
    border-radius: 8px;
    border: 1px solid rgba(197, 165, 114, 0.2);
    width: 100%;
    box-sizing: border-box;
}

/* Forms */
.contact-form {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem;
    background: var(--card-bg);
    border-radius: 8px;
    border: 1px solid rgba(197, 165, 114, 0.2);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-control {
    width: 100%;
    padding: 1rem;
    background: rgba(255,255,255,0.1);
    border: 1px solid var(--gold);
    color: var(--light);
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
}

.form-control:focus {
    outline: none;
    background: rgba(255,255,255,0.15);
    box-shadow: 0 0 10px rgba(197, 165, 114, 0.3);
}

/* File Upload Styling */
.file-upload {
    position: relative;
    display: inline-block;
    width: 100%;
    margin-bottom: 1rem;
}

.file-upload-label {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(197, 165, 114, 0.1);
    border: 2px dashed var(--gold);
    border-radius: 4px;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
}

.file-upload-label:hover {
    background: rgba(197, 165, 114, 0.2);
}

.file-upload input[type="file"] {
    position: absolute;
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    z-index: -1;
}

/* Image Preview */
.image-preview {
    max-width: 100%;
    margin-top: 1rem;
    border-radius: 4px;
    overflow: hidden;
}

.image-preview img {
    width: 100%;
    height: auto;
    display: block;
}

/* Chat Widget */
.chat-widget {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 998;
    transition: all var(--transition-speed) ease;
}

.chat-toggle {
    width: 60px;
    height: 60px;
    background: var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transition: all var(--transition-speed) ease;
}

.chat-box {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 300px;
    background: var(--card-bg);
    border-radius: 15px;
    padding: 1.5rem;
    transform: translateY(20px);
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition-speed) ease;
    border: 1px solid rgba(197, 165, 114, 0.2);
}

.chat-box.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
}

/* Back to Services Button */
.back-to-services {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    background: var(--gold);
    color: var(--dark);
    padding: 1rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    opacity: 0;
    transform: translateY(100%);
    transition: all var(--transition-speed) ease;
    z-index: 997;
}

.back-to-services.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Animations */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Loading Spinner */
.loading-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 3px solid rgba(197, 165, 114, 0.3);
    border-radius: 50%;
    border-top-color: var(--gold);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Image Upload Progress */
.upload-progress {
    width: 100%;
    height: 4px;
    background: rgba(197, 165, 114, 0.2);
    margin-top: 1rem;
    border-radius: 2px;
    overflow: hidden;
}

/* Länkfärger */
.nav-links a, 
.mobile-menu a {
    color: var(--light) !important;
    text-decoration: none;
}

.nav-links a:visited,
.mobile-menu a:visited {
    color: var(--light) !important;
}

.nav-links a:hover,
.mobile-menu a:hover {
    color: var(--gold) !important;
}

/* Ta bort röd färg vid klick */
.nav-links a:active,
.mobile-menu a:active {
    color: var(--light) !important;
}

.upload-progress-bar {
    height: 100%;
    background: var(--gold);
    width: 0;
    transition: width 0.3s ease;
}

/* Notifications */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 4px;
    background: var(--card-bg);
    color: var(--light);
    z-index: 9999;
    animation: slideIn 0.3s ease forwards;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.notification.success {
    border-left: 4px solid var(--success);
}

.notification.error {
    border-left: 4px solid var(--error);
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}