:root {
    --green-dark: #2C392C;
    --green: #4A6741;
    --cream: #F5E6D3;
}

body {
    font-family: 'Inter', sans-serif;
}

.font-display {
    font-family: 'Playfair Display', serif;
}

header {
    animation: fadeIn 1s ease-out;
}

header a {
    color: white;
    font-weight: 300;
    transition: all 0.3s ease;
}

header a:hover {
    color: var(--cream);
}

.menu-trigger.active span:first-child {
    transform: translateY(8px) rotate(45deg);
    width: 32px;
}

.menu-trigger.active span:nth-child(2) {
    opacity: 0;
}

.menu-trigger.active span:last-child {
    transform: translateY(-8px) rotate(-45deg);
    width: 32px;
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu a {
    color: white;
    transition: all 0.3s ease;
}

.mobile-menu a:hover {
    color: var(--cream);
}

.btn-primary {
    display: flex;
    align-items: center;
    background: var(--green);
    color: white;
    font-weight: 500;
    padding: 1rem 2rem;
    border-radius: 3rem;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: var(--green-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    display: flex;
    align-items: center;
    background: transparent;
    color: white;
    font-weight: 500;
    padding: 1rem 2rem;
    border-radius: 3rem;
    border: 1px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-2px);
}

.bg-cream {
    background-color: var(--cream);
}

.text-green {
    color: var(--green);
}

.text-green-dark {
    color: var(--green-dark);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.decoration-section {
    background-color: var(--cream);
    padding: 4rem 1rem;
}

.advice-section {
    background-color: white;
    padding: 4rem 1rem;
}

@media (min-width: 1024px) {
    .decoration-section, .advice-section {
        padding: 6rem 2rem;
    }
}

.container {
    max-width: 1280px;
    margin: 0 auto;
}

.grid-layout {
    display: grid;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .grid-layout {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
        align-items: center;
    }
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--green-dark);
    margin-bottom: 1.5rem;
}

.text-body {
    font-size: 1.125rem;
    color: #4B5563;
    margin-bottom: 1.5rem;
}

.service-cards {
    display: grid;
    gap: 1rem;
    margin-top: 2rem;
}

@media (min-width: 640px) {
    .service-cards {
        grid-template-columns: 1fr 1fr;
    }
}

.service-card {
    background: white;
    padding: 1.5rem;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.service-card i {
    font-size: 2rem;
    color: var(--green);
    margin-bottom: 1rem;
}

.service-card h3 {
    font-size: 1.25rem;
    color: var(--green-dark);
    margin-bottom: 0.5rem;
}

.service-card p {
    color: #4B5563;
    line-height: 1.5;
}

.image-wrapper {
    position: relative;
}

.image-wrapper img {
    width: 100%;
    border-radius: 0.75rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.maintenance-badge, .contact-badge {
    position: absolute;
    background: rgba(255,255,255,0.95);
    padding: 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.maintenance-badge {
    bottom: -1rem;
    left: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.maintenance-badge i {
    font-size: 1.5rem;
    color: var(--green);
}

.contact-badge {
    top: 1rem;
    left: 1rem;
    background: var(--green-dark);
    color: white;
}

.contact-badge p {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.contact-badge a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-badge a:hover {
    color: white;
}

.help-cards {
    display: grid;
    gap: 1rem;
    margin-top: 2rem;
}

.help-card {
    background: var(--cream);
    padding: 1.5rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    transition: all 0.3s ease;
}

.help-card:hover {
    background: #efe4d6;
}

.help-card i {
    font-size: 1.5rem;
    color: var(--green);
}

.help-card h3 {
    font-size: 1.125rem;
    color: var(--green-dark);
    margin-bottom: 0.25rem;
}

.help-card p {
    color: #4B5563;
    line-height: 1.5;
}

.price-box {
    background: white;
    padding: 1.5rem;
    border-radius: 1rem;
    transition: all 0.3s ease;
}

.price-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.contact-input {
    width: 100%;
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    padding: 0.875rem 1rem;
    padding-left: 3rem;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
}

.contact-input:focus {
    background: white;
    border-color: var(--green);
    box-shadow: 0 0 0 4px rgba(74, 103, 65, 0.1);
    outline: none;
}

.form-group {
    position: relative;
}

.form-icon {
    position: absolute;
    left: 1rem;
    top: 2.75rem;
    font-size: 1.25rem;
    color: #9CA3AF;
}

textarea.contact-input {
    padding-left: 1rem;
    resize: vertical;
    min-height: 100px;
}

.social-btn {
    @apply w-12 h-12 bg-white/5 rounded-full flex items-center justify-center 
           hover:bg-green hover:text-black transition-all duration-300;
}

.footer-link {
    @apply text-gray-400 hover:text-white transition-colors duration-300
           relative w-fit;
}

.footer-link::after {
    content: '';
    @apply absolute left-0 bottom-0 w-0 h-px bg-green
           transition-all duration-300;
}

.footer-link:hover::after {
    @apply w-full;
}

.contact-item {
    @apply flex items-start gap-4;
}

.contact-icon {
    @apply w-10 h-10 bg-white/5 rounded-full flex items-center justify-center text-green;
}

.back-to-top {
    scroll-behavior: smooth;
}

.back-to-top:hover i {
    transform: translateY(-2px);
}

.back-to-top i {
    transition: transform 0.3s ease;
}

header.scrolled {
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
}

header.scrolled a {
    color: white;
}

header.scrolled .menu-trigger span {
    background: white;
}


#helpButton.scrolled:hover {
    background: var(--green-dark);
}

.mobile-menu.active {
    transform: translateX(0);
}

.menu-trigger.active span:first-child {
    transform: translateY(8px) rotate(45deg);
}

.menu-trigger.active span:nth-child(2) {
    opacity: 0;
}

.menu-trigger.active span:last-child {
    transform: translateY(-8px) rotate(-45deg);
}

.footer-link {
    color: white;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.footer-link:hover {
    opacity: 1;
    color: white;
}

.mobile-menu {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    min-height: 100vh !important;
    width: 100vw !important;
    display: flex !important;
    align-items: center !important;
    background: rgba(0, 0, 0, 0.98) !important;
    backdrop-filter: blur(10px) !important;
    transform: translateX(100%) !important;
    transition: transform 0.5s ease !important;
    z-index: 100 !important;
}

.mobile-menu.active {
    transform: translateX(0) !important;
}

.mobile-menu nav {
    width: 100% !important;
    padding: 2rem !important;
    text-align: center !important;
}

.menu-trigger {
    z-index: 101 !important;
}

#helpButton button {
    transition: all 0.3s ease !important;
}

#helpButton.scrolled button {
    background: black !important;
    border: none !important;
}

#helpButton i {
    color: white !important;
}

#helpButton.scrolled button:hover {
    background: var(--green-dark) !important;
}

header .logo {
    height: 52px !important;
    width: auto !important;
}

header.scrolled .logo {
    height: 40px !important;
}

.mobile-menu .container {
    padding-top: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    min-height: 100vh !important;
}

.mobile-menu .mobile-logo {
    height: 120px !important;
    width: auto !important;
    margin-bottom: 4rem !important;
}

@media (min-width: 640px) {
    .mobile-menu .mobile-logo {
        height: 140px !important;
    }
}

.contact-input {
    width: 100% !important;
    background: #F9FAFB !important;
    border: 1px solid #E5E7EB !important;
    padding: 0.875rem 1rem !important;
    border-radius: 0.75rem !important;
    transition: all 0.3s ease !important;
}

.contact-input:focus {
    background: white !important;
    border-color: var(--green) !important;
    box-shadow: 0 0 0 4px rgba(74, 103, 65, 0.1) !important;
    outline: none !important;
}

.form-group label {
    font-weight: 500 !important;
}

#helpButton button:hover {
    border-radius: 9999px !important;
}

@media (max-width: 640px) {
    body {
        overflow-x: hidden;
    }

    /* Hero-sektionen */
    .h-screen {
        height: 100vh;
    }
    .h-screen .absolute.inset-0 img {
        object-fit: cover;
        object-position: center;
    }
    .relative.h-full.flex.items-center {
        padding-top: 6rem;
        padding-bottom: 6rem;
    }
    .relative.h-full.flex.items-center > div {
        max-width: 90%;
        margin: 0 auto;
    }
    h1.text-5xl {
        font-size: 2rem !important;
        line-height: 1.2;
    }
    p.text-xl {
        font-size: 1rem !important;
    }

    /* Justering av överlappande bilder */
    .relative {
        overflow: hidden;
    }
    .relative .absolute.-right-12 {
        right: 0 !important;
    }
    .relative .absolute.-bottom-12 {
        bottom: 0 !important;
    }
    .relative .absolute.-right-12,
    .relative .absolute.-bottom-12 {
        width: 50% !important;
    }

    /* Footer-justeringar */
    footer .grid {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
    footer .grid > div {
        width: 100%;
    }
    footer .space-y-8 {
        margin-bottom: 1rem;
    }
    footer .pt-20 {
        padding-top: 2rem !important;
    }
    footer .pb-16 {
        padding-bottom: 2rem !important;
    }
    footer .flex {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    footer p.text-gray-500 {
        text-align: left;
    }

    /* Minska mellanrum mellan sektioner */
    section {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
}

/* Åtgärda svart kant på högersidan */
body {
    overflow-x: hidden;
}

@media (max-width: 640px) {
    .price-box .flex {
        flex-wrap: wrap !important;
    }
    .price-box .flex > .flex-1 > .flex {
        flex-direction: column !important;
        align-items: flex-start !important;
    }
    .price-box .flex > .flex-1 > .flex > p {
        margin-top: 0.5rem !important;
    }
}

body {
    overflow-x: hidden !important;
}

.relative.h-screen {
    height: 100vh !important;
    overflow: hidden !important;
}

.h-screen .absolute.inset-0 img {
    object-fit: cover !important;
    object-position: center !important;
}

.relative.h-full.flex.items-center {
    height: 100% !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.relative.h-full.flex.items-center > div {
    max-width: 90% !important;
    margin: 0 auto !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
}

@media (min-width: 1280px) {
    .relative.h-full.flex.items-center > div {
        max-width: 60% !important;
    }
}

@media (max-width: 640px) {
    h1.text-5xl {
        font-size: 2.5rem !important;
    }
    p.text-xl {
        font-size: 1.25rem !important;
    }
    .relative .absolute.-right-12 {
        left: 0 !important;
        right: auto !important;
        width: 60% !important;
        transform: translateX(0) !important;
    }
    .relative .absolute.-bottom-12 {
        bottom: 0 !important;
    }
}

.custom-img {
    max-width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}
