/* Reset & Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: #f8fafc;
    /* Softer light background */
    color: #334155;
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: #0f172a;
}

/* Navbar */
.navbar-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 20px 40px;
    z-index: 1000;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0) 100%);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.logo img {
    height: 50px;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 25px;
    list-style: none;
    /* Tar bort punktlist-prickarna */
}

.nav-item {
    position: relative;
    /* Krävs för att dropdown ska positioneras rätt */
}

.nav-links a {
    text-decoration: none;
    color: #ffffff;
    font-weight: 500;
    font-size: 14px;
    text-transform: uppercase;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
    transition: color 0.2s;
    display: block;
    padding: 10px 0;
}

.nav-links a:hover,
.nav-links a.active {
    color: #fca5a5;
    text-shadow: 0 0 10px rgba(252, 165, 165, 0.5);
}

.arrow {
    font-size: 10px;
    margin-left: 4px;
    vertical-align: middle;
}

/* --- DROPDOWN FÖR DESKTOP --- */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    /* Align dropdown directly under parent */
    transform: none;
    background-color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 4px;
    list-style: none;
    min-width: 180px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 1002;
}

.nav-item:hover .dropdown-menu,
.nav-item.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    top: 100%;
}

.dropdown-item a {
    color: #333333 !important;
    text-shadow: none !important;
    padding: 10px 20px;
    font-size: 13px;
    text-transform: none;
    /* Vanliga små bokstäver i dropdown */
}

.dropdown-item a:hover {
    background-color: #f5f5f5;
    color: #e05348 !important;
}

.btn-avboka {
    background-color: #ffffff;
    color: #e05348 !important;
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 700 !important;
    text-shadow: none !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.btn-avboka:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    color: #bd3a30 !important;
}

/* Hero Sections */
.hero,
.hero-section {
    position: relative;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

/* Hamburgermeny-ikon (Dold på desktop) */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    background: none;
    border: none;
    z-index: 1001;
    padding: 10px;
}

.hamburger span {
    display: block;
    width: 28px;
    height: 3px;
    background-color: #ffffff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Animering för hamburgarikonen när den är aktiv (blir ett X) */
.hamburger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Mobilnavigering (Dold på desktop) */
.nav-links.active {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: all 0.3s ease;
}

.nav-links.active.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Home Hero */
.hero {
    height: 600px;
    background-image: url('../imgs/hero_bg_1.webp');
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.7));
}

.hero-content {
    position: relative;
    max-width: 800px;
    z-index: 99;
    padding: 0 20px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: #ffffff;
    font-weight: 800;
    line-height: 1.2;
    text-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.25rem;
    color: #e2e8f0;
    font-weight: 400;
}

/* Subpage Hero */
.hero-section {
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6)), url('../imgs/hero_bg_1.webp');
    min-height: 450px;
    padding: 20px 40px;
    align-items: flex-end;
    padding-bottom: 100px;
    /* Space for overlapping content */
}

.hero-title {
    text-align: center;
    color: #ffffff;
    font-size: 3rem;
    font-weight: 800;
    width: 100%;
    text-shadow: 0 4px 6px rgba(0, 0, 0, 0.4);
    letter-spacing: -1px;
}

/* Shared Main Containers */
.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    top: -60px;
    /* Overlap with hero */
    z-index: 10;
}

/* Contact Cards Grid */
.contact-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.info-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    padding: 40px 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.info-card .icon-wrapper {
    background: rgba(224, 83, 72, 0.1);
    color: #e05348;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
}

.info-card .icon-wrapper svg {
    width: 28px;
    height: 28px;
}

.info-card h3 {
    color: #0f172a;
    font-size: 1.25rem;
    margin-bottom: 12px;
    font-weight: 700;
}

.info-card p {
    font-size: 1rem;
    color: #475569;
    line-height: 1.6;
}

/* Forms */
.form-heading {
    color: #0f172a;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.form-subheading {
    font-size: 1rem;
    color: #64748b;
    margin-bottom: 30px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: span 2;
}

.form-group label {
    font-size: 0.875rem;
    color: #334155;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
    background-color: #f8fafc;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #e05348;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(224, 83, 72, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.btn-submit {
    background-color: #e05348;
    color: white;
    border: none;
    padding: 14px 36px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(224, 83, 72, 0.3);
}

.btn-submit:hover {
    background-color: #bd3a30;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(224, 83, 72, 0.4);
}

/* Home Sections */
.section {
    padding: 80px 20px;
    text-align: center;
}

.section h2 {
    color: #0f172a;
    font-size: 2.25rem;
    margin-bottom: 50px;
    font-weight: 800;
}

/* Cards */
.cars {
    display: flex;
    gap: 40px;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.card {
    background: white;
    padding: 0;
    width: 320px;
    border-radius: 16px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.card img {
    margin: 20px;
    object-fit: cover;
}

.card-content {
    padding: 24px;
    text-align: left;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card h3 {
    color: #0f172a;
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.card p {
    color: #64748b;
    font-size: 0.95rem;
    margin-bottom: 20px;
    flex-grow: 1;
}

.price {
    font-weight: 700;
    color: #e05348;
    font-size: 1.25rem;
    padding-top: 15px;
    border-top: 1px solid #e2e8f0;
}

/* About Page */
.main-content {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: 0 auto;
    padding: 50px;
    position: relative;
    top: -60px;
    z-index: 10;
}

.main-content h2 {
    color: #0f172a;
    margin-bottom: 24px;
    font-size: 2rem;
}

.main-content p {
    margin-bottom: 20px;
    font-size: 1.125rem;
    color: #475569;
    line-height: 1.8;
}

/* Footer */
.footer {
    text-align: center;
    padding: 60px 20px 80px 20px;
    background-color: #ffffff;
    border-top: 1px solid #e2e8f0;
    margin-top: 40px;
}

.footer-logo {
    max-width: 180px;
    margin: 0 auto 24px auto;
    display: block;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.footer-logo:hover {
    opacity: 1;
}

.footer-copyright {
    font-size: 0.875rem;
    color: #94a3b8;
    margin-bottom: 24px;
}

.footer-links {
    margin-bottom: 30px;
}

.footer-links a {
    text-decoration: none;
    color: #475569;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #e05348;
}

.btn-footer-contact {
    display: inline-block;
    background-color: #e05348;
    color: white;
    text-decoration: none;
    padding: 14px 40px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    box-shadow: 0 10px 15px -3px rgba(224, 83, 72, 0.3);
    transition: all 0.3s ease;
}

.btn-footer-contact:hover {
    background-color: #bd3a30;
    transform: translateY(-2px);
    box-shadow: 0 15px 20px -3px rgba(224, 83, 72, 0.4);
}

.features {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    border-left: 5px solid #C33A31;
}

.features h2 {
    color: #C33A31;
    font-size: 1.3rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature-list {
    list-style: none;
}

.feature-list li {
    padding: 12px 0;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    color: #444;
    font-size: 1.05rem;
    line-height: 1.5;
}

.feature-list li:last-child {
    border-bottom: none;
}

.check {
    color: #C33A31;
    font-size: 1.3rem;
    font-weight: bold;
    flex-shrink: 0;
    margin-top: 2px;
}

.applies-to {
    margin-bottom: 30px;
}

.applies-to h2 {
    color: #C33A31;
    font-size: 1.3rem;
    margin-bottom: 20px;
    text-align: center;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.tag {
    background: linear-gradient(135deg, #8B2520, #C33A31);
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 4px 15px rgba(195, 58, 49, 0.3);
}

.cta {
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, #e8e7e7, #e9ecef);
    border-radius: 15px;
    max-width: 900px;
    margin: 0 auto;
}

.cta p {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 20px;
    font-weight: 600;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, #8B2520, #C33A31);
    color: white;
    text-decoration: none;
    padding: 16px 40px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 8px 25px rgba(195, 58, 49, 0.4);
    transition: all 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(195, 58, 49, 0.5);
}

/* Responsive */
@media (max-width: 768px) {

    /* Visa hamburgarknappen */
    .hamburger {
        display: flex;
    }

    /* Gör om nav-links till en mobilmeny som glider ner */
    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(20, 20, 20, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        gap: 15px;
        z-index: 1000;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
        padding: 80px 20px 20px 20px;
        overflow-y: auto;
    }

    .nav-links.active {
        opacity: 1;
        pointer-events: auto;
    }

    .nav-item {
        width: 100%;
        text-align: center;
    }

    .nav-item:hover .dropdown-menu,
    .nav-item.active .dropdown-menu {
        opacity: 1;
        visibility: visible;
        top: 100%;
    }

    .btn-avboka {
        background-color: #e05348;
        color: #ffffff !important;
        width: 80%;
        text-align: center;
    }

    .navbar-container {
        padding: 15px;
    }

    .nav-links {
        gap: 15px;
    }

    .nav-links a {
        font-size: 18px;
        text-shadow: none;
        padding: 10px;
    }

    /* Mobilanpassning för Dropdown (Visas direkt under på mobil) */
    .dropdown-menu {
        position: static;
        transform: none;
        background-color: transparent;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        display: block;
        padding: 0;
    }

    .dropdown-item a {
        color: #aaaaaa !important;
        font-size: 15px;
        padding: 8px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-title {
        font-size: 2.25rem;
    }

    .contact-cards {
        grid-template-columns: 1fr;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-group.full-width {
        grid-column: span 1;
    }

    .main-content {
        padding: 30px 20px;
    }
}