:root {
    --sky-blue: #eaf6ff;
    --cloud-white: #ffffff;
    --primary-blue: #1f4d8f;
    --secondary-blue: #4d84d6;
    --soft-green: #7ca45c;
    --light-green: #dceecf;
    --warm-yellow: #f6d56c;
    --soft-orange: #f7c48b;
    --text-dark: #2d3748;
    --text-light: #5a6470;
    --card-bg: rgba(255,255,255,0.85);
}

/* Global resets and small niceties for responsive layout */
*, *::before, *::after {
    box-sizing: border-box;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
}

button, a, .sidebar a {
    -webkit-tap-highlight-color: rgba(0,0,0,0);
}

header {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.25rem 1rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
}

/* Utility classes used in layout markup */
.d-flex {
    display: flex;
}

.col {
    flex-direction: column;
}

.center {
    align-items: center;
    justify-content: center;
}


.page {
    width: 100%;
    overflow-x: hidden;
    flex-direction: column;
    align-items: center;
    background: radial-gradient(circle at 20% 20%, rgba(255,255,255,.9) 0%, transparent 15%), radial-gradient(circle at 70% 15%, rgba(255,255,255,.8) 0%, transparent 20%), radial-gradient(circle at 50% 30%, rgba(255,255,255,.7) 0%, transparent 15%), linear-gradient( to bottom, #eaf6ff 0%, #f4fbff 50%, #ffffff 100% );
}


.header-background {
    width: 100%;
    background-image: url("images/Rainbow.png");
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    align-items: center;
}



.nature-footer {
    position: relative;
    height: 120px;
    overflow: hidden;
}

    .nature-footer::before {
        content: "";
        position: absolute;
        inset: 0;
        background-image: url("images/Grass.png");
        background-size: cover;
        background-position: center top;
        filter: blur(10px) brightness(0.8);
        transform: scale(1.1);
        z-index: 0;
    }

    .nature-footer::after {
        content: "";
        position: absolute;
        inset: 0;
        background: rgba(255,255,255,0.25);
        z-index: 1;
    }

    .nature-footer > * {
        position: relative;
        z-index: 2;
    }


.footer-text {
    text-align: center;
    padding-top: 2rem;
    font-size: 1.1rem;
    color: #1f4d8f;
    font-weight: 600;
}


.info-card {
    background: rgba(255,255,255,0.9);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
    border: 1px solid rgba(255,255,255,0.6);
    transition: transform .18s ease, box-shadow .18s ease;
}

    .info-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 26px rgba(0,0,0,0.10);
    }

/* Card with image at top */
.card-with-image {
    padding: 0;
    overflow: hidden;
}

    .card-with-image img {
        width: 100%;
        height: auto;
        aspect-ratio: 370 / 704;
        object-fit: contain;
        display: block;
    }

    .card-with-image .card-body {
        padding: 1.25rem 1.5rem 1.5rem;
    }

        .card-with-image .card-body h3 {
            margin: 0 0 0.5rem;
            font-size: 1.05rem;
            font-weight: 700;
            color: var(--primary-blue);
        }

        .card-with-image .card-body p {
            margin: 0 0 0.5rem;
        }

/* TEXT */
.info-card p {
    margin: 0;
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* luftigare grid */
.airy-grid {
    gap: 2.5rem;
}

.info-card .muted {
    font-size: 0.9rem;
    opacity: 0.85;
}

/* bättre rubrik-hierarki */
.hero h1 {
    font-size: 2.8rem;
    line-height: 1.2;
}

h1, h2, h3 {
    color: var(--primary-blue);
    font-weight: 700;
}

.subtitle {
    color: var(--soft-green);
    font-style: italic;
    font-size: 1.2rem;
}

.navbar {
    background: rgba(255,255,255,.75);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,.4);
    box-shadow: 0 2px 12px rgba(0,0,0,.05);
}

.nav-link.active {
    background: #dceecf;
    color: var(--primary-blue);
    border-radius: 999px;
}


.hero-logo {
    max-width: 500px;
}

.feature-blue {
    border-left: 6px solid #4d84d6;
}

.feature-green {
    border-left: 6px solid #7ca45c;
}

.feature-yellow {
    border-left: 6px solid #f6d56c;
}

.feature-orange {
    border-left: 6px solid #f7c48b;
}

.card-with-image.feature-blue {
    border-left: none;
    border-top: 4px solid #4d84d6;
}

.card-with-image.feature-green {
    border-left: none;
    border-top: 4px solid #7ca45c;
}

.card-with-image.feature-yellow {
    border-left: none;
    border-top: 4px solid #f6d56c;
}

.card-with-image.feature-orange {
    border-left: none;
    border-top: 4px solid #f7c48b;
}

.rainbow {
    position: absolute;
    right: 0;
    top: 100px;
    width: 400px;
    height: 200px;
    background: radial-gradient(circle at bottom center, transparent 55%, rgba(255,0,0,.15) 56%, rgba(255,165,0,.15) 60%, rgba(255,255,0,.15) 64%, rgba(0,255,0,.15) 68%, rgba(0,0,255,.15) 72%, transparent 73%);
}

body {
    margin: 0;
    font-family: "Segoe UI", sans-serif;
    color: var(--text-dark);
    min-height: 100vh;
    background: radial-gradient(circle at 20% 20%, rgba(255,255,255,.9) 0%, transparent 15%), radial-gradient(circle at 70% 15%, rgba(255,255,255,.8) 0%, transparent 20%), linear-gradient( to bottom, #eaf6ff, #f7fcff, #ffffff );
}

/* Prevent horizontal panning caused by decorative elements */
body {
    overflow-x: hidden;
}

/* Improve readability on small screens */
html, body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.section-spacing {
    margin-top: 3rem;
}

.cards-grid {
    width: 100%;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

    .cards-grid > * {
        min-width: 0;
        box-sizing: border-box;
    }

@media (max-width: 992px) {
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
}

@media (max-width: 600px) {
    .cards-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .testimonials .cards-grid {
        grid-template-columns: 1fr;
    }
}



.hero {
    padding: 2rem 0 1rem;
}

    .hero h1 {
        font-size: 3rem;
        margin-bottom: .5rem;
    }

    .hero h2 {
        font-size: 2.4rem;
        line-height: 1.3;
        margin-bottom: .75rem;
    }

.subtitle {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Buttons */
.btn { display: inline-block; padding: .75rem 1.25rem; border-radius: 999px; text-decoration: none; font-weight: 600; margin: .25rem; }
.btn-primary { background: var(--primary-blue); color: #fff; }
.btn-outline { background: transparent; border: 1px solid rgba(0,0,0,.08); color: var(--primary-blue); }

.hero-ctas { margin-top: 1rem; display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }

/* Trust bar */
.trust-bar { background: rgba(255,255,255,.6); margin: 2rem 0; padding: .75rem 1rem; border-radius: 16px; text-align: center; }
.trust-inner { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; color: var(--primary-blue); font-weight: 600; }

/* Testimonials */
.testimonials { margin: 2rem 0; }
.testimonials h2 { text-align: center; margin-bottom: 1rem; }
.testimonials .cards-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 800px;
}

/* Make headings inside cards slightly smaller for uniformity */
.info-card h2, .info-card h3 { margin-top: 0; margin-bottom: .5rem; font-size: 1.1rem; }

/* Minor utility spacing */
.mb-1 { margin-bottom: .75rem; }

/* Responsive rules */
@media (max-width: 992px) {
    header {
        padding: 1.5rem 1rem;
    }

    main {
        padding: 1.25rem;
    }

    .hero h1 {
        font-size: 2.25rem;
    }

    .hero h2 {
        font-size: 2rem;
    }

    .hero-logo {
        max-width: 360px;
    }
}

@media (max-width: 768px) {
    header {
        padding: 1rem 0.75rem;
        gap: 1rem;
    }

    .hero h1 {
        font-size: 1.75rem;
    }

    .hero h2 {
        font-size: 1.75rem;
    }

    .subtitle {
        font-size: 1rem;
        padding: 0;
    }

    .intro-card {
        margin: 0 1rem 2rem;
    }

    .top-nav-container {
        padding: 0 0.5rem;
    }

    .sidebar {
        gap: .5rem;
        padding: .5rem;
    }

        .sidebar a {
            padding: .75rem 1rem;
            font-size: 0.95rem;
            display: inline-block;
        }

    .rainbow {
        display: none;
    }

    .nature-footer {
        height: 120px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 1.5rem 0 0.5rem;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .hero h2 {
        font-size: 1.5rem;
    }

    .hero-logo {
        max-width: 240px;
    }

    main {
        padding: 0.75rem;
    }

    .subtitle {
        font-size: 0.95rem;
    }

    .sidebar a {
        padding: .65rem .9rem;
        font-size: 0.95rem;
    }

    .info-card {
        padding: 1rem;
    }

    .section-spacing {
        margin-top: 2rem;
    }
}

.intro-card {
    max-width: 900px;
    margin: 0 auto 3rem auto;
    background: #fff8ec;
    border-radius: 24px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,.08);
}
.social-links {
    margin-bottom: 0.5rem;

    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.social-icon {
    width: 28px;
    height: 28px;
    color: #1f4d8f; /* matches your footer text */
    opacity: 0.85;
    transition: opacity .25s ease, transform .2s ease;
}

    .social-icon:hover {
        opacity: 1;
        transform: scale(1.1);
    }

    .social-icon svg {
        width: 100%;
        height: 100%;
    }

.methods-hero {
    padding: 1.25rem 1rem;
    margin-bottom: 1rem;
}

.methods-hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.methods-title h1 {
    margin: 0 0 .25rem 0;
}

.methods-cta {
    display: flex;
    gap: .5rem;
}

.methods-container {
    display: flex;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem 2rem;
    align-items: flex-start;
}

.methods-steps {
    width: 320px;
    flex: 0 0 320px;
}

.methods-details {
    flex: 1;
}

.steps-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.step {
    display: flex;
    gap: 1rem;
    padding: .5rem 0;
}

.num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--secondary-blue);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.step strong {
    display: block;
    font-weight: 700;
}

.muted {
    color: var(--text-light);
    font-size: .95rem;
}

.methods-list {
    margin-top: .75rem;
    margin-bottom: .75rem;
}

    .methods-list li {
        margin-bottom: .45rem;
    }

.methods-actions {
    margin-top: 1rem;
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
}

.faq-section {
    margin-top: 1.5rem;
}

/* Keep accordion-card style consistent with other pages */
.accordion-card {
    background: white;
    border-radius: 12px;
    padding: .85rem 1rem;
    box-shadow: 0 4px 14px rgba(0,0,0,0.06);
    margin-bottom: .75rem;
}

    .accordion-card summary {
        cursor: pointer;
        font-weight: 700;
    }

/* Responsive */
@media (max-width: 900px) {
    .methods-container {
        flex-direction: column;
        padding-bottom: 1.5rem;
    }

    .methods-steps {
        width: 100%;
        flex: 0 0 auto;
        order: 2;
    }

    .methods-details {
        order: 1;
    }
}

@media (max-width: 480px) {
    .methods-steps {
        display: none;
    }
    /* keep mobile simplified */
    .methods-hero-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .methods-cta {
        width: 100%;
    }
}


.contact-hero {
    text-align: center;
    margin-bottom: 3rem;
}

    .contact-hero h1 {
        margin-bottom: 0.5rem;
    }

.contact-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.contact-form-card {
    padding: 2rem;
}

.contact-side {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

    .form-group label {
        display: block;
        font-weight: 600;
        color: var(--primary-blue);
        margin-bottom: 0.4rem;
    }

.form-control {
    width: 100%;
    border: 1px solid #d7e3ef;
    border-radius: 14px;
    padding: 0.9rem 1rem;
    font-size: 1rem;
    background: white;
}

    .form-control:focus {
        outline: none;
        border-color: var(--secondary-blue);
        box-shadow: 0 0 0 4px rgba(77,132,214,.15);
    }

.message-box {
    min-height: 180px;
    resize: vertical;
}

.contact-item {
    margin-bottom: 1.5rem;
}

    .contact-item strong {
        color: var(--primary-blue);
    }

details {
    margin-bottom: 1rem;
}

    details summary {
        cursor: pointer;
        font-weight: 600;
        color: var(--primary-blue);
    }

    details p {
        margin-top: 0.75rem;
    }

@media (max-width: 900px) {

    .contact-layout {
        grid-template-columns: 1fr;
    }

    .contact-side {
        order: -1;
    }
}

.about-profile {
    padding: 2.5rem;
}

.profile-layout {
    display: grid;
    grid-template-columns: 1.8fr 1fr;
    gap: 3rem;
    align-items: center;
}

/* TEXT */
.profile-text h2 {
    margin-top: 0;
    margin-bottom: 1rem;
}

.profile-text p {
    line-height: 1.7;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

/* IMAGE (viktig förbättring) */
.profile-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

    .profile-image img {
        width: 100%;
        max-width: 260px;
        aspect-ratio: 1 / 1;
        object-fit: cover;
        border-radius: 50%;
        /* professionell “soft shadow” */
        box-shadow: 0 12px 30px rgba(31, 77, 143, 0.15);
        border: 3px solid rgba(255,255,255,0.9);
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

        .profile-image img:hover {
            transform: translateY(-3px);
            box-shadow: 0 18px 40px rgba(31, 77, 143, 0.2);
        }

/* RESPONSIVE */
@media (max-width: 768px) {
    .profile-layout {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
    }

    .profile-image img {
        max-width: 200px;
    }
}

.pulse-btn {
    position: relative;
    animation: softPulse 2.5s infinite;
}

/* mjuk glow + lätt förstoring */
@keyframes softPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(31, 77, 143, 0.25);
        transform: scale(1);
    }

    50% {
        box-shadow: 0 0 0 12px rgba(31, 77, 143, 0);
        transform: scale(1.03);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(31, 77, 143, 0);
        transform: scale(1);
    }
}

.attachments-card {
    margin-top: 3rem;
}

.attachments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.attachment-item {
    display: flex;
    gap: 1rem;
    align-items: center;
    padding: 1.25rem;
    border-radius: 16px;
    background: rgba(255,255,255,0.9);
    border: 1px solid rgba(31, 77, 143, 0.1);
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .attachment-item:hover {
        transform: translateY(-3px);
        box-shadow: 0 12px 28px rgba(0,0,0,0.08);
    }

.attachment-icon {
    font-size: 1.6rem;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(31, 77, 143, 0.08);
}

.attachment-item strong {
    display: block;
    color: var(--primary-blue);
}

.attachments-card .muted {
    margin: 0.25rem 0 0 0;
}
.contact-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1.25rem;
}

.contact-icon {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(31, 77, 143, 0.08);
    color: var(--primary-blue);
    flex-shrink: 0;
}

    .contact-icon svg {
        width: 20px;
        height: 20px;
        stroke: currentColor;
        stroke-width: 1.8;
    }

.contact-item strong {
    display: block;
    color: var(--primary-blue);
    margin-bottom: 0.2rem;
}

.contact-item a {
    color: var(--text-dark);
    text-decoration: none;
}

    .contact-item a:hover {
        text-decoration: underline;
    }