/* ── RESET ── */
html, body {
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
    font-family: 'Montserrat', sans-serif;
}

/* ── BLAZOR ── */
.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

/* ── FORMS ── */
.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

/* ── LAYOUT ── */
.sidebar {
    display: none;
}

.page {
    display: block !important;
}

h1:focus {
    outline: none;
}

/* ── NAV ── */
.top-nav {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: rgba(240, 240, 240, 0.85);
    backdrop-filter: blur(10px);
    z-index: 1000;
}

    .top-nav a {
        color: #111827;
        text-decoration: none;
        font-weight: 600;
    }

.logo img {
    height: 35px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

/* Marginal vid scrollning */
section {
    scroll-margin-top: 65px;
}

/* ── HERO ── */
.hero {
    height: 100vh;
    width: 100%;
    margin: 0;
    padding: 0;
    background-image: url('/images/hero.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(20, 20, 20, 0.45); 
    z-index: 1;
}

.hero-divider {
    width: 140px;
    height: 1px;
    background: rgba(255, 255, 255, 0.65);
    margin: 18px auto 22px auto;
    position: relative;
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    padding: 20px;
}

/* Storlek rubrik */
.hero h1 {
    font-size: 3rem;
    font-weight: 400;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.5rem;
    font-weight: 300;
    line-height: 1.6;
    color: #e5e7eb;
}

/* ── OUR MISSION ── */
.mission-section {
    display: grid !important;
    align-items: center;
    padding: 0 !important;
}

/* Layout per sektion */
#mission.mission-section {
    grid-template-columns: 4fr 2.5fr 1.5fr !important;
}

#background.mission-section {
    grid-template-columns: 1fr 1fr !important;
}

#future.mission-section {
    grid-template-columns: 1fr 1fr !important;
}

/* ── IMAGE BLOCK ── */
.mission-image {
    position: relative;
    align-self: stretch;
    min-height: 650px;
    height: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Bild */
.mission-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Overlay */
.mission-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.15);
    transition: background 0.4s ease;
    z-index: 1;
}

/* Hover effekt */
.mission-image:hover::after {
    background: rgba(0, 0, 0, 0.55);
    }

/* Text ovanpå bilden */
.mission-image-label {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 2rem;
    font-weight: 600;
    color: #fff;
    z-index: 2;
}

/* ── TEXT BLOCK ── */
.mission-text {
    padding: 60px 40px;
    font-size: 0.95rem;
    line-height: 1.8;
    color: #333;
}

    .mission-text p {
        margin-bottom: 1.5rem;
    }

.mission-highlight {
    font-weight: 600;
}

/* ── QUOTE ── */
.mission-quote {
    padding: 60px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.quote-divider {
    width: 40px;
    height: 2px;
    background-color: #ccc;
}

.mission-quote blockquote {
    margin: 0;
    text-align: center;
}

.mission-quote blockquote p {
    font-style: italic;
    color: #5b9db5;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.mission-quote cite {
    font-style: italic;
    color: #5b9db5;
    font-size: 0.9rem;
    display: block;
    text-align: right;
}

.inline-quote {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #ccc;
    font-style: italic;
    color: #5b9db5;
    text-align: right;
}

.inline-quote p {
    color: #5b9db5;
}

.inline-quote cite {
    font-size: 0.9rem;
    color: #5b9db5;
}

.background-box {
    position: relative;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
    font-size: 2rem;
    font-weight: 600;
    color: #333;
    overflow: hidden;
}

.background-box::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.08);
    transition: background 0.4s ease;
    z-index: 1;
}

.background-box:hover::after {
    background: rgba(0, 0, 0, 0.35);
}

.background-box > * {
    position: relative;
    z-index: 2;
}

/* ── WHAT WE DO ── */
.whatwedo-section {
    background: #f0f0f0;
    padding: 100px 120px;
    text-align: center;
}

    .whatwedo-section h2 {
        font-size: 2.5rem;
        font-weight: 400;
        margin-bottom: 40px;
    }

.whatwedo-intro {
    max-width: 900px;
    margin: 0 auto 80px auto;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
    text-align: left;
}

.whatwedo-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 80px;
    text-align: left;
}

.whatwedo-item h3 {
    font-size: 1.3rem;
    font-weight: 500;
    margin-bottom: 16px;
    text-align: center;
}

.whatwedo-item p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #444;
    text-align: justify;
}

.capabilities-title {
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: 60px;
}

.capabilities-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px 80px;
}

.capability-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
}

    .capability-item i {
        font-size: 2rem;
        color: #1a1a1a;
    }

    .capability-item h4 {
        font-size: 1.2rem;
        font-weight: 500;
        margin: 0;
    }

    .capability-item p {
        font-size: 0.95rem;
        color: #444;
        line-height: 1.6;
        margin: 0;
    }

/* ── ABOUT ── */
.about-section {
    background: #f0f0f0;
    padding: 80px 60px;
    text-align: center;
}

    .about-section h2 {
        font-size: 2rem;
        font-weight: 600;
        margin-bottom: 30px;
    }

.about-card {
    background: white;
    max-width: 1000px;
    margin: 0 auto;
    padding: 60px 80px;
    text-align: left;
}

    .about-card p {
        font-size: 1rem;
        line-height: 1.8;
        color: #333;
        margin-bottom: 20px;
    }

        .about-card p:last-child {
            margin-bottom: 0;
        }

/* ── WORK WITH US ── */
.workwithus-section {
    background: white;
    padding: 80px 120px;
    text-align: center;
}

    .workwithus-section h2 {
        font-size: 2rem;
        font-weight: 700;
        margin-bottom: 20px;
    }

.workwithus-intro {
    max-width: 800px;
    margin: 0 auto 60px auto;
    font-size: 1rem;
    color: #333;
    line-height: 1.7;
}

.workwithus-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
    text-align: center;
}

.workwithus-text p {
    font-size: 1rem;
    line-height: 2;
    color: #333;
}

.workwithus-quote {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

    .workwithus-quote blockquote {
        margin: 0;
        text-align: center;
    }

        .workwithus-quote blockquote p {
            font-style: italic;
            color: #5b9db5;
            font-size: 1rem;
            line-height: 1.7;
            margin-bottom: 10px;
        }

    .workwithus-quote cite {
        font-style: italic;
        color: #5b9db5;
        font-size: 0.9rem;
        display: block;
        text-align: right;
    }

.apply-card {
    background: #f0f0f0;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 60px;
    text-align: left;
}

    .apply-card h3 {
        font-size: 1.8rem;
        font-weight: 700;
        margin-bottom: 10px;
    }

    .apply-card p {
        font-size: 0.95rem;
        color: #333;
        margin-bottom: 20px;
    }

    .apply-card a[href^="mailto"] {
        color: #c8a96e;
    }

.apply-button {
    display: inline-block;
    padding: 10px 24px;
    border: 1px solid #aaa;
    color: #333;
    text-decoration: none;
    font-size: 0.95rem;
    background: white;
}

    .apply-button:hover {
        background: #f0f0f0;
    }



/* ── CONTACT ── */
.section {
    min-height: 100vh;
    padding: 120px 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

    .section h2 {
        font-size: 2.5rem;
        margin-bottom: 20px;
    }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
    .about-section {
        flex-direction: column;
        padding: 80px 20px;
    }

    .about-left h2 {
        font-size: 2.2rem;
    }
}


/* ── OUR CUSTOMERS ── */
.customers-section {
    padding: 80px 60px;
    text-align: center;
    background: white;
}

    .customers-section h2 {
        font-size: 2rem;
        font-weight: 400;
        margin-bottom: 50px;
    }

.customers-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 4px;
}

.customer-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.customer-item span {
    position: absolute;
    bottom: 16px;
    left: 16px;
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}

.customer-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(60%);
    display: block;
    transition: filter 0.3s ease, transform 0.3s ease;
}

.customer-item:hover img {
    filter: grayscale(60%) brightness(0.7);
    transform: scale(1.03);
}

/* ── CONTACT ── */
.contact-section {
    background: #f0f0f0;
    padding: 80px 120px;
    text-align: center;
}

    .contact-section h2 {
        font-size: 2rem;
        font-weight: 700;
        margin-bottom: 30px;
    }

.contact-intro {
    max-width: 800px;
    margin: 0 auto 40px auto;
    font-size: 1rem;
    line-height: 1.7;
    color: #333;
    text-align: center;
}

.contact-divider {
    border: none;
    border-top: 1px solid #ccc;
    margin: 0 0 40px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    text-align: left;
    margin-bottom: 40px;
}

.contact-item strong {
    display: block;
    font-weight: 700;
    margin-bottom: 6px;
}

.contact-item p {
    margin: 2px 0;
    font-size: 0.95rem;
    color: #333;
}

.contact-email {
    color: #c8a96e;
    text-decoration: none;
    font-size: 0.95rem;
    display: block;
    margin-top: 4px;
}

.contact-linkedin {
    margin: 20px 0 30px 0;
}

.linkedin-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: #0077b5;
    color: white;
    border-radius: 4px;
    font-size: 1.2rem;
    text-decoration: none;
}

/* ── FOOTER ── */
.footer {
    background: #f0f0f0;
    padding: 40px 120px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;
    border-top: 1px solid #ddd;
}

.footer-left {
    font-size: 0.9rem;
    color: #333;
    line-height: 1.7;
}

    .footer-left strong {
        display: block;
        margin-bottom: 4px;
    }

    .footer-left p {
        margin: 0;
    }

.footer-center {
    text-align: center;
}

    .footer-center img {
        height: 60px;
    }

.footer-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 16px;
}

.footer-linkedin {
    border-radius: 50%;
}

.gdpr-button {
    display: inline-block;
    padding: 10px 20px;
    background: #1a1a2e;
    color: white;
    border-radius: 30px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
}


/* ── SCROLL TO TOP ── */
.scroll-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background: #1a1a2e;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .scroll-top:hover {
        background: #2d2d4e;
    }

/* ── Flip Cards ── */
.capability-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

/* CARD WRAPPER */
.capability-card {
    perspective: 1000px;
}

/* INNER FLIP */
.card-inner {
    position: relative;
    width: 100%;
    height: 240px;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

/* FLIP EFFECT */
.capability-card:hover .card-inner {
    transform: rotateX(180deg);
}

/* FRONT + BACK */
.card-front,
.card-back {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border-radius: 12px;
    backface-visibility: hidden;
    text-align: center;
    background: #f3f4f6;
}


/* BACK SIDE */
.card-back {
    transform: rotateX(180deg);
    font-size: 0.95rem;
    color: #444;
}

/* FRONT STYLE */
.card-front i {
    font-size: 28px;
    margin-bottom: 10px;
}

.card-front h4 {
    font-size: 1.1rem;
    font-weight: 500;
}

@media (max-width: 768px) {

    /* GRID */
    .capability-grid {
        grid-template-columns: 1fr;
    }

    /* TEXT SIZE */
    html, body {
        font-size: 16px;
    }

    /* NAV */
    .top-nav {
        padding: 12px 16px;
    }

    .nav-links {
        display: none; /* senare hamburger */
    }

    /* HERO */
    .hero {
        height: 70vh;
        padding: 0 20px;
    }

        .hero h1 {
            font-size: 2rem;
        }

        .hero p {
            font-size: 1rem;
        }

    /* CARD */
    .card-inner {
        height: 220px;
    }
}

@media (max-width: 640px) {

    #mission.mission-section,
    #background.mission-section {
        display: flex !important;
        flex-direction: column !important;
    }
    #future.mission-section {
        display: flex !important;
        flex-direction: column !important;
    }

    /* MISSION */
    #mission .mission-image {
        order: 1;
    }

    #mission .mission-text {
        order: 2;
        padding: 30px 20px;
    }

    #mission .mission-quote {
        order: 3;
        padding: 30px 20px;
    }

    /* BACKGROUND (reversed) */
    #background .background-box {
        order: 1;
    }

    #background .mission-text {
        order: 2;
        padding: 30px 20px;
    }

    /* FUTURE */
    #future .mission-image {
        order: 1;
    }

    #future .mission-text {
        order: 2;
        padding: 30px 20px;
    }
}


/*  MOBILE (≤640px) */
@media (max-width: 640px) {

    #background.mission-section {
        flex-direction: column-reverse !important;
    }
}


/* MOBILE (≤768px) */

/* Customers */
@media (max-width: 768px) {
    .customers-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* Layout + padding */
@media (max-width: 768px) {

    .whatwedo-columns,
    .workwithus-columns,
    .contact-grid,
    .capability-grid {
        grid-template-columns: 1fr !important;
    }

    .about-card,
    .apply-card {
        padding: 30px 20px !important;
    }

    .whatwedo-section,
    .workwithus-section,
    .contact-section {
        padding: 60px 20px !important;
    }
}


/* Top nav (basic) */
@media (max-width: 768px) {

    .top-nav {
        padding: 12px 16px;
        flex-wrap: wrap;
    }

    .nav-links {
        display: none; 
    }

    .logo img {
        height: 28px;
    }
}


/* Footer */
@media (max-width: 768px) {

    .footer {
        padding: 30px 20px;
        grid-template-columns: 1fr;
        text-align: center;
        gap: 20px;
    }

    .footer-center img {
        height: 40px;
    }

    .linkedin-icon {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .gdpr-button {
        padding: 8px 14px;
        font-size: 0.75rem;
    }

    .footer-right {
        align-items: center;
    }
}


/* Cards */
@media (max-width: 768px) {

    .card-inner {
        height: 320px;
    }

    .capability-card {
        margin-top: 10px;
    }
}


/* Contact */
@media (max-width: 768px) {

    .contact-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .contact-item {
        text-align: center;
    }

    .contact-email {
        text-align: center;
    }
}


/* Background box */
@media (max-width: 768px) {

    #background .background-box {
        width: 100%;
        min-height: 300px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}


/* Nav typography  */
@media (max-width: 768px) {

    .nav-links {
        display: flex;
        flex-wrap: nowrap;
        gap: 10px;
        justify-content: center;
    }

        .nav-links a {
            font-size: 0.75rem;
            white-space: nowrap;
        }

    .logo img {
        height: 26px;
    }

    .top-nav {
        padding: 10px 12px;
    }
}