body {
    padding-top: 56px;
    color: #1e293b;
}

.hero-section {
    background: url('/assets/systembydesign-hero.jpg') no-repeat center center;
    background-size: cover;
    height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.hero-section .hero-text {
    position: relative;
    z-index: 2;
}

#om-oss .hero-section .container,
#kontakta-oss .hero-section .container {
    position: relative;
    z-index: 2;
}

.timeline {
    position: relative;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 20px;
    width: 4px;
    background: #e9ecef;
}

.timeline-item {
    position: relative;
    margin-bottom: 20px;
    padding-left: 40px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 11px;
    top: 5px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #007bff;
    z-index: 1;
}

.timeline-content {
    background: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.timeline-content h3 {
    margin-top: 0;
}

.calendar .month {
    font-size: 1rem;
}

.calendar .wday {
    font-size: 0.8rem;
}

.card {
    border: none;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-5px);
}

.card-body img {
    border-radius: 22% !important;
}

.product-card {
    background: linear-gradient(45deg, #f8f9fa, #e9ecef);
    border: none;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.product-card .card-body {
    position: relative;
    z-index: 2;
}

.product-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.product-card .btn {
    border-radius: 50px;
    padding: 10px 30px;
    font-weight: bold;
    transition: all 0.3s;
}

.product-card:hover .btn {
    background-color: #0056b3;
    transform: scale(1.05);
}

.product-card .card-title {
    font-weight: 600;
    color: #0f172a;
}
.card-text {
    color: #334155;
}

a:focus-visible,
button:focus-visible,
.btn:focus-visible {
    outline: 3px solid #0056b3;
    outline-offset: 2px;
    box-shadow: 0 0 0 5px rgba(0, 86, 179, 0.5);
    transition: none;
}

/* Custom focus outlines on dark backgrounds for WCAG AA compliance (minimum 3:1 contrast) */
.bg-dark a:focus-visible,
.bg-dark button:focus-visible,
.bg-dark .navbar-toggler:focus-visible,
footer a:focus-visible,
footer button:focus-visible {
    outline-color: #ffffff;
    box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.5);
}

.btn-primary {
    background-color: #0056b3;
    border-color: #0056b3;
}

.btn-primary:hover {
    background-color: #004085;
    border-color: #00376e;
}

/* Skip link styling - hidden off-screen until focused */
.skip-link {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: #0056b3;
    color: white;
    padding: 10px 20px;
    border-radius: 0 0 5px 5px;
    z-index: 9999;
    transition: top 0.2s ease;
    font-weight: bold;
    text-decoration: none;
}

.skip-link:focus-visible {
    top: 56px; /* Positioned below fixed navbar */
    outline: 3px solid #ffffff;
    box-shadow: 0 0 0 5px rgba(0, 86, 179, 0.5);
}

/* Navbar link contrast improvement (WCAG AA > 4.5:1 ratio) */
.navbar-dark .navbar-nav .nav-link {
    color: #ffffff !important;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link:focus {
    color: #ffffff !important;
}

.language-switcher {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.language-button {
    min-width: 2.5rem;
    font-size: 0.75rem;
    font-weight: 700;
}

.language-button.active {
    background-color: #ffffff;
    color: #212529;
}

@media (max-width: 991.98px) {
    .language-switcher {
        margin-top: 0.75rem;
        margin-bottom: 0.25rem;
    }
}

/* Support users with motion sensitivities */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-delay: 0s !important;
        animation-duration: 0s !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0s !important;
        scroll-behavior: auto !important;
    }
    
    *[data-aos] {
        transition-delay: 0s !important;
        transition-duration: 0s !important;
        animation-duration: 0s !important;
        animation-delay: 0s !important;
        transform: none !important;
        opacity: 1 !important;
    }
}

/* Värderingskort (Value cards) under Om oss */
.value-card {
    background-color: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    height: 100%;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), 
                box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), 
                border-color 0.4s ease;
}

.value-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 86, 179, 0.08);
    border-color: rgba(0, 86, 179, 0.25);
}

.value-icon {
    width: 60px;
    height: 60px;
    background-color: #e8f0fe;
    color: #0056b3;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.value-card:hover .value-icon {
    background-color: #0056b3;
    color: #ffffff;
    transform: scale(1.05);
}

.value-card h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 0.75rem;
}

.value-card p {
    font-size: 0.95rem;
    color: #334155;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Kontaktkort (Contact cards) under Kontakta oss */
.contact-card {
    background-color: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    height: 100%;
    text-align: center;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), 
                box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), 
                border-color 0.4s ease;
    text-decoration: none;
    display: block;
    color: inherit;
}

/* If the contact card is a link (e.g. Email Card) */
a.contact-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 86, 179, 0.08);
    border-color: rgba(0, 86, 179, 0.25);
    color: inherit;
}

.contact-icon {
    width: 64px;
    height: 64px;
    background-color: #e8f0fe;
    color: #0056b3;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.contact-card:hover .contact-icon {
    background-color: #0056b3;
    color: #ffffff;
    transform: scale(1.05);
}

.contact-card h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 0.75rem;
}

.contact-card p {
    font-size: 0.95rem;
    color: #334155;
    line-height: 1.6;
    margin-bottom: 0;
}

.contact-card .contact-link-text {
    font-weight: 600;
    color: #0056b3;
    transition: color 0.2s ease;
}

.contact-card:hover .contact-link-text {
    color: #004085;
    text-decoration: underline;
}

/* Ensure focus outline on the clickable contact-card satisfies contrast requirements */
a.contact-card:focus-visible {
    outline: 3px solid #0056b3;
    outline-offset: 4px;
    box-shadow: 0 0 0 5px rgba(0, 86, 179, 0.25);
}
