/* CleanKeel Custom Styles */

/* CSS Variables */
:root {
    --bs-primary: #1C6EA4;
    --bs-primary-rgb: 28, 110, 164;
    --bs-link-color: #1C6EA4;
    --bs-link-hover-color: #16527a;
}

/* Brand Logo Styles */
.brand-logo-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    color: #1C6EA4;
    line-height: 1.1;
    margin-bottom: 2px;
    font-weight: 600;
    letter-spacing: -0.8px;
    text-shadow: 0 1px 2px rgba(28, 110, 164, 0.15);
    background: linear-gradient(135deg, #1C6EA4 0%, #2980b9 50%, #1C6EA4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.brand-logo-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.65rem;
    line-height: 1;
    color: #495057;
    font-weight: 500;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 3px;
    opacity: 0.85;
}

.brand-logo-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, #1C6EA4 0%, #2980b9 50%, transparent 100%);
    margin-top: 1px;
    opacity: 0.6;
}

/* Logo Image Styles */
.logo-img {
    height: 48px;
    width: auto;
    margin-right: 12px;
}

/* Section Dividers */
.section-divider {
    width: 100px;
    height: 3px;
    background: #1C6EA4;
}

/* Card Image Containers */
.card-img-container {
    height: 120px;
    overflow: hidden;
    background: #f8f9fa;
}

.card-img-fit {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 15px;
}

/* Icon Styles */
.icon-lg {
    height: 5em;
    margin-bottom: 1.5rem;
}

.icon-md {
    height: 4em;
    margin-bottom: 0.5rem;
}

/* Gradient Backgrounds */
.gradient-bg-light {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

/* Hero Section Styles */
.hero-image {
    max-height: 70vh;
    width: auto;
}

/* Image Container Styles */
.image-container {
    width: fit-content;
}

/* Navbar Styles */
.navbar-brand {
    text-decoration: none !important;
}

/* Button Styles */
.btn-primary {
    --bs-btn-bg: #1C6EA4;
    --bs-btn-border-color: #1C6EA4;
    --bs-btn-hover-bg: #16527a;
    --bs-btn-hover-border-color: #144b6f;
    --bs-btn-active-bg: #144b6f;
    --bs-btn-active-border-color: #113f5d;
}

.btn-outline-primary {
    --bs-btn-color: #1C6EA4;
    --bs-btn-border-color: #1C6EA4;
    --bs-btn-hover-bg: #1C6EA4;
    --bs-btn-hover-border-color: #1C6EA4;
    --bs-btn-active-bg: #1C6EA4;
    --bs-btn-active-border-color: #1C6EA4;
}


/* Pricing Section Styles */
#priser .section-title {
    color: #212529 !important;
}
#priser .section-subtitle {
    color: #212529 !important;
}
#priser h2 {
    color: #212529 !important;
}
#priser h3.text-primary {
    color: #1C6EA4 !important;
}
#priser p {
    color: #212529 !important;
}
#priser .lead {
    color: #212529 !important;
}
#priser li {
    color: #212529 !important;
}
#priser small {
    color: #212529 !important;
}
#priser .text-muted {
    color: #212529 !important;
}
#priser .alert {
    color: #212529 !important;
}
#priser .alert small {
    color: #212529 !important;
}
#priser .display-6.text-primary {
    color: #1C6EA4 !important;
}
#priser .feature-list i {
    color: #1C6EA4 !important;
}
#priser i.text-primary {
    color: #1C6EA4 !important;
}

.pricing-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 15px !important;
    overflow: hidden;
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(28, 110, 164, 0.15) !important;
}

.pricing-card.recommended {
    transform: scale(1.02);
    border: 2px solid #1C6EA4;
}

.pricing-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #1C6EA4, #2980b9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 8px 25px rgba(28, 110, 164, 0.3);
}

.pricing-icon i {
    font-size: 2.2rem;
    color: white;
}

.pricing-amount {
    margin: 1.5rem 0;
    padding: 1rem;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 10px;
    border-left: 4px solid #1C6EA4;
}

.feature-list {
    padding: 1.5rem 0;
}

.feature-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
}

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

.feature-list i {
    margin-right: 1rem;
    font-size: 1.1rem;
    color: #1C6EA4 !important;
}

/* Cookie Banner Styles */
.cookie-consent-banner {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    transition: all 0.3s ease !important;
}

.cookie-consent-banner.hidden {
    display: none !important;
    opacity: 0 !important;
    transform: translateY(100%) !important;
}

.cookie-consent-banner .fas.fa-shield-alt {
    color: #1C6EA4 !important;
}

.cookie-consent-banner .text-white {
    color: white !important;
}

#showCookieBanner {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: white !important;
    text-decoration: none !important;
}

/* Section Overlays */
.section-overlay {
    position: relative;
    background: linear-gradient(135deg, rgba(248, 249, 250, 0.95) 0%, rgba(255, 255, 255, 0.9) 100%);
    backdrop-filter: blur(10px);
}

.section-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(28, 110, 164, 0.05) 0%, rgba(28, 110, 164, 0.02) 100%);
    pointer-events: none;
}

/* About Us Section Layout */
#om-oss {
    transform: translateY(-10%);
}

#om-oss .row {
    align-items: center;
}

#om-oss .col-lg-6 {
    padding: 2rem;
}

#om-oss .col-lg-6:first-child {
    padding-right: 4rem;
}

#om-oss .col-lg-6:last-child {
    padding-left: 4rem;
}

#om-oss .col-lg-6:first-child img {
    max-width: 80%;
    height: auto;
    margin: 0 auto;
    display: block;
}

#om-oss .col-lg-6:first-child .img-fluid {
    max-width: 80%;
    width: 80%;
}

@media (max-width: 991.98px) {
    #om-oss .col-lg-6 {
        padding: 1rem;
        margin-bottom: 2rem;
    }
    
    #om-oss .col-lg-6:first-child,
    #om-oss .col-lg-6:last-child {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Technology Section Layout */
#teknologi .row {
    align-items: center;
}

#teknologi .col-lg-6 {
    padding: 2rem;
}

/* Våre Tjenester Section Styling */
#tjenester {
    background: linear-gradient(135deg, #1C6EA4 0%, #2980b9 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

#tjenester::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.05)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.08)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
    pointer-events: none;
}

#tjenester .section-title,
#tjenester h2,
#tjenester h3,
#tjenester h4,
#tjenester h5,
#tjenester h6 {
    color: white !important;
}

#tjenester .section-subtitle,
#tjenester p,
#tjenester .lead {
    color: rgba(255, 255, 255, 0.9) !important;
}

#tjenester .text-muted {
    color: rgba(255, 255, 255, 0.8) !important;
}

#tjenester .card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

#tjenester .card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

#tjenester .card-body h3,
#tjenester .card-body h4,
#tjenester .card-body h5,
#tjenester .card-body h6 {
    color: white !important;
}

#tjenester .card-body p,
#tjenester .card-body .text-muted {
    color: rgba(255, 255, 255, 0.9) !important;
}

#tjenester .divider {
    background: rgba(255, 255, 255, 0.3) !important;
}

/* Utility Classes */
.card-image-container {
    height: 120px;
    overflow: hidden;
    background: #f8f9fa;
}

.card-image-fit {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 15px;
}

.contact-icon-circle {
    width: 50px;
    height: 50px;
}

.footer-logo-container {
    height: 48px;
    width: auto;
    margin-right: 12px;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #1C6EA4;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(28, 110, 164, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: #16527a;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(28, 110, 164, 0.4);
    color: white;
    text-decoration: none;
}

.back-to-top i {
    font-size: 18px;
    color: white;
}