﻿/********** Template CSS **********/
:root {
    --primary: #dc3545;
    --secondary: #0B2154;
    --light: #F2F2F2;
    --dark: #111111;
}

body {
    color: var(--dark);
    padding-bottom: 80px;
}

/*** Utility ***/
.fw-medium {
    font-weight: 600 !important;
}

/*** Back to top ***/
.back-to-top {
    position: fixed;
    display: none;
    right: 20px;
    bottom: 20px;
    z-index: 99;
}

/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    visibility: visible;
    opacity: 1;
}

/*** Buttons ***/
.btn {
    font-weight: 500;
    text-transform: uppercase;
    transition: .3s;
}

.btn-danger {
    font-weight: 600;
    border-radius: 6px;
    background: var(--primary);
    border-color: var(--primary);
}

.btn-danger:hover {
    transform: scale(1.03);
    background: #bb2d3b;
    border-color: #bb2d3b;
}

/*** NAVBAR ***/
.logo {
    height: 50px;
    width: auto;
}

.navbar-light .navbar-brand,
.navbar-light a.btn {
    height: 75px;
    display: flex;
    align-items: center;
}

.navbar-light .navbar-nav .nav-link {
    margin-right: 25px;
    padding: 20px 0;
    color: var(--dark);
    font-size: 15px;
    text-transform: uppercase;
    font-weight: 500;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: var(--primary);
}

/* Mobil navbar */
@media (max-width: 991.98px) {
    .navbar-light .navbar-nav .nav-link {
        padding: 12px 0;
        font-size: 16px;
    }

    .navbar-nav {
        padding: 10px 0 !important;
        border-top: 1px solid #eee;
    }
}

/* Dropdown */
.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-left: 8px;
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        border: none;
        top: 150%;
        opacity: 0;
        visibility: hidden;
        transition: .3s;
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        opacity: 1;
        visibility: visible;
    }
}

/*** HERO (REN & STABIL) ***/
.hero-img {
    height: 550px;
    object-fit: cover;
    width: 100%;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(0,0,0,0.75),
        rgba(0,0,0,0.3)
    );
}

.hero-text {
    max-width: 900px;
    color: #fff;
    left: 10% !important;

}

.hero-text h1 {
    line-height: 1.2;
    font-weight: 700;
}

.hero-text p {
    margin-bottom: 10px;
}

.hero-text a {
    color: #fff !important;
    text-decoration: none;
    opacity: 0.9;
}

.hero-text a:hover {
    opacity: 1;
    text-decoration: underline;
}

/*** MOBIL HERO (ENKEL + VIRKER) ***/
@media (max-width: 768px) {

    .hero-img {
        height: 350px;
    }

    .hero-text {
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        text-align: center;
        width: 90%;
        padding: 0 10px;
    }

    .hero-text h1 {
        font-size: 34px !important;
    }

    .hero-text p {
        font-size: 18px !important;
    }

    .hero-text .btn {
        font-size: 16px;
        padding: 14px 20px;
    }

    .display-4 {
        font-size: 34px !important;
    }

    .fs-5 {
        font-size: 18px !important;
    }
}

/*** Layout spacing ***/
.container-xxl {
    padding-top: 60px !important;
    padding-bottom: 60px !important;
}

.container h1,
.container h2 {
    margin-bottom: 20px;
}

.container p {
    margin-bottom: 10px;
}

/*** Cards ***/
.border {
    border: 1px solid var(--light) !important;
    border-radius: 10px;
    background: #fff;
    transition: 0.3s;
}

.border:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

/*** Footer ***/
.footer {
    background: linear-gradient(rgba(0,0,0,.9), rgba(0,0,0,.9)),
    url(../img/carousel-bg-1.jpg);
    background-size: cover;
}

/*** CALL BUTTON ***/
.call-btn {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(90deg, var(--primary), #c82333);
    color: #fff;
    text-align: center;
    padding: 14px;
    font-size: 18px;
    font-weight: 600;
    z-index: 9999;
    text-decoration: none;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
    transition: 0.3s;
    animation: pulse 2s infinite;
}

.call-btn:hover {
    background: #bb2d3b;
    color: #fff;
}

.call-btn i {
    margin-right: 6px;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(220,53,69,0.5); }
    70% { box-shadow: 0 0 0 10px rgba(220,53,69,0); }
    100% { box-shadow: 0 0 0 0 rgba(220,53,69,0); }
}

/* skjul på desktop */
@media (min-width: 992px) {
    .call-btn {
        display: none;
    }
}

/* plads til call bar */
.copyright {
    padding-bottom: 140px;
}

/*** FIX blå links i hero (backup) ***/
.position-absolute.top-50.start-0.translate-middle-y a {
    color: #fff !important;
    text-decoration: none;
}

.position-absolute.top-50.start-0.translate-middle-y a:hover {
    text-decoration: underline;
}

/*** MOBIL GENEREL OPTIMERING ***/
@media (max-width: 768px) {

    .mobile-text {
        font-size: 16px;
        line-height: 1.5;
        padding-left: 10px;
        padding-right: 10px;
    }

    .mobile-title {
        font-size: 24px;
        line-height: 1.3;
    }

    .mobile-list {
        padding-left: 20px;
        margin-top: 10px;
    }

    .mobile-list li {
        margin-bottom: 6px;
    }

    .border {
        padding: 20px !important;
    }

    .container,
    .container-xxl {
        padding-top: 40px !important;
        padding-bottom: 40px !important;
    }

    .btn-lg {
        font-size: 16px;
        padding: 12px;
    }
}


/* 🔥 KUN DESKTOP HERO STØRRELSE */
@media (min-width: 992px) {

    .hero-text h1 {.hero-text {

    font-size: 64px !important;
        line-height: 1.2;
    }

    .hero-text p {
        font-size: 22px !important;
    }

    .hero-text .btn {
        font-size: 18px;
        padding: 16px 26px;
    }

}

    .topbar a {
    color: #333;
    text-decoration: none;
}

.topbar a:hover {
    color: #dc3545;
}