@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

:root {
    --primary-color: #47428d; /* Mörklila */
    --secondary-color: #F9A46B; /* Ljusorange */
    --background-light: #F4F4FF; /* Ljuslila */
    --accent-light: #FFF5E5; /* Ljusgul/orangeaktig bakgrund */
    --text-dark: #222;
    --text-light: #fff;
    --border-color: #ccc;
    --error-color: #e50000;
    --valid-color: #26b050;
    --font-main: 'Poppins', sans-serif;
    --font-fallback: 'Inter', sans-serif;
}
:focus {
    outline: none;
    /*box-shadow: 0 0 0 3px rgba(138, 43, 226, 0.4); /* Exempel på lila glow */
    /*border-radius: 4px;*/
}

/* Allmän layout och typografi */
body {
    margin: 0;
    font-family: var(--font-main), var(--font-fallback), sans-serif;
    background-color: white;
    color: var(--text-dark);
}

.layout {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main-content {
    flex-grow: 1;
    padding: 2rem 1rem;
}

.footer {
    background-color: #f4f4ff;
    padding: 2rem;
    font-size: 0.95rem;
    color: #444;
    border-top: 1px solid #e0e0e0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logo-img {
    background-color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 12px;
    max-height: 50px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

    .footer-links a {
        color: #4b0082;
        text-decoration: none;
        font-weight: 500;
    }

        .footer-links a:hover {
            text-decoration: underline;
        }

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.85rem;
    color: #888;
}

.navbar {
    background-color: var(--primary-color);
    padding: 1rem 2rem;
    color: white;
}

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

.navbar-logo {
    background-color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 12px;
    max-height: 50px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.nav-links {
    display: flex;
    gap: 1rem;
}


.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 600;
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    line-height: 1;
}

    .nav-link.active {
        background-color: var(--secondary-color);
        color: #fff;
    }

    .nav-link:hover {
        color: #8e44ad;
    }

.menu-toggle {
    display: none;
    font-size: 2rem;
    background: none;
    border: none;
    color: white;
}

.logo-full {
    width: 180px;
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.hero {
    text-align: center;
    padding: 4rem 1rem;
    background-color: #f4f4ff;
    color: #2d0353;
}

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

    .hero p {
        font-size: 1.2rem;
        margin-top: 1rem;
        color: #444;
    }

.tagline {
    font-size: 1.25rem;
    color: #666;
    margin-bottom: 2rem;
}

/* Call to Action Button */
.cta-button {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 12px 24px;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    transition: background 0.3s ease;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    text-decoration: none;
}

    .cta-button:hover {
        background-color: #4E0B9B;
    }

/* Feature Cards */
.features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 3rem 1rem;
    flex-wrap: wrap;
}

.feature-box {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
    max-width: 280px;
    text-align: center;
}

/* Signup */
.signup {
    text-align: center;
    padding: 4rem 1rem;
    background: #ffffff;
}

input.email-input {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: 1px solid #ccc;
    width: 100%;
    max-width: 400px;
    margin-bottom: 1rem;
    font-family: 'Poppins', sans-serif;
}

.signup-form {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}
    .signup-form + p {
        margin-top: 1rem;
        color: var(--primary-color);
        font-weight: 500;
    }

.email-input {
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    width: 100%;
    margin-bottom: 1rem; /* Mellanrum till knappen */
    font-size: 1rem;
}

.submit-button {
    padding: 0.5rem 1rem;
    background-color: #6a0dad; /* Mörklila */
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
}

    .submit-button:hover {
        background-color: #5800a3;
    }

.invalid {
    outline: 1px solid var(--error-color);
}

.validation-message {
    color: var(--error-color);
}

/* Responsivitet */
@media (max-width: 768px) {
    .features {
        flex-direction: column;
        align-items: center;
    }

    .feature-box {
        width: 100%;
        max-width: 90%;
    }
    .active-link {
        padding: 0.3rem 0.7rem;
        font-size: 0.9rem;
    }
    header {
        padding: 0.5rem 1rem;
    }

    .logo img {
        height: 30px;
    }

    .nav-link {
        font-size: 0.9rem;
        margin: 0 0.5rem;
        padding: 0.7rem;
    }
    .nav-links {
        position: absolute;
        top: 70px;
        right: 1rem;
        background: #4b3b8f;
        padding: 1rem;
        border-radius: 8px;
        z-index: 999;
        flex-direction: column;
        opacity: 0;
        transform: translateY(-10px);
        pointer-events: none;
        visibility: hidden;
    }
        .nav-links.show {
            animation: slideFadeIn 0.3s ease forwards;
            pointer-events: auto;
            visibility: visible;
        }
        .nav-links.hide {
            animation: slideFadeOut 0.3s ease forwards;
            pointer-events: none;
            visibility: hidden;
        }

    .menu-toggle {
        display: block;
    }
}
@keyframes slideFadeIn {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideFadeOut {
    0% {
        opacity: 1;
        transform: translateY(0);
    }

    100% {
        opacity: 0;
        transform: translateY(-10px);
    }
}



    