/* ── Startsidans egna stilar (utbrutna från inline <style> i index.html 2026-08-12) ──
   Hero, about-/service-kort, projektlista, radar-karta, landningsanimationer.
   Laddas ENDAST på index.html (efter style.css). Innehåller ännu dubbletter som
   ska rensas – se notes.md. */
/* ===== LANDING PAGE SPECIFIC STYLES - ENHANCED WITH DARK MODE ===== */
/* Landing Page Hero Section */
.bg-gradient-light {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-section-bg) 100%);
    transition: background 0.3s ease;
}

/* Hero text styling for both themes */
.hero-title {
    color: var(--color-text) !important;
    font-family: var(--font-display);
}

.hero-description {
    color: var(--color-text-muted) !important;
    font-family: var(--font-primary);
}

/* ===== ENHANCED ABOUT SECTION CARDS ===== */
/* Main Service Card */
.about-service-card {
    background: var(--color-card-bg);
    border: 1px solid transparent;
    border-radius: 20px;
    overflow: hidden;
    transition: all var(--transition-medium);
    position: relative;
    height: 100%;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.about-service-card:hover {
    transform: scale(1.15);
    box-shadow: 0 6px 20px rgba(24, 22, 22, 0.4);
}

/* Add subtle gradient overlay on hover */
.about-service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.02), transparent);
    opacity: 0;
    transition: opacity var(--transition-medium);
    z-index: 1;
    pointer-events: none;
}

.about-service-card:hover::before {
    opacity: 1;
}

.service-card-split {
    display: flex;
    height: 100%;
    min-height: 450px;
    position: relative;
    z-index: 2;
}

.service-text-content {
    flex: 1.2;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--color-card-bg);
    color: var(--color-text);
    transition: all 0.3s ease;
}

.service-image-content {
    flex: 0.8;
    position: relative;
    overflow: hidden;
    background: linear-gradient(45deg, var(--color-accent), var(--color-primary));
}

.service-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-medium);
}

.about-service-card:hover .service-card-image {
    transform: scale(1.08);
}

/* Service Card Icons - Removed glow effect */
.service-icon-container {
    display: flex;
    align-items: center;
}

.service-main-icon {
    width: 70px;
    height: 70px;
    background: var(--color-accent);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    transition: all var(--transition-medium);

    /* Removed box-shadow glow effect */
}

.about-service-card:hover .service-main-icon {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, var(--color-accent), #c82333);
}

/* Service Description */
.service-description {
    color: var(--color-text-muted) !important;
    font-family: var(--font-primary);
    font-size: 1.1rem;
    line-height: 1.7;
}

/* Service Feature List */
.service-feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-feature-list li {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    color: var(--color-text-muted);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
    transform: translateX(0);
}

.about-service-card:hover .service-feature-list li {
    transform: translateX(8px);
}

.service-feature-list li i {
    color: var(--color-accent);
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* Info Cards - Improved hover effect */
.about-info-card {
    background: var(--color-card-bg);
    border: 1px solid transparent;
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    transition: all var(--transition-medium);
    height: 100%;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

/* Add subtle slide-up effect */
.about-info-card::after {
    content: '';
    position: absolute;
    bottom: -100%;
    left: 0;
    right: 0;
    height: 4px;
    transition: bottom var(--transition-medium);
}

.about-info-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.about-info-card:hover::after {
    bottom: 0;
}

.info-card-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: center;
    transition: transform var(--transition-medium);
}

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

/* Info Card Icons - Removed glow effect */
.info-icon-container {
    display: flex;
    justify-content: center;
}

/* Info Card Text */
.info-card-text {
    color: var(--color-text-muted) !important;
    font-family: var(--font-primary);
    line-height: 1.6;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.about-info-card:hover .info-card-text {
    color: var(--color-text) !important;
}

/* Dark Theme Adjustments */
[data-theme="dark"] .about-service-card,
[data-theme="dark"] .about-info-card {
    background: var(--color-secondary);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .about-service-card:hover,
[data-theme="dark"] .about-info-card:hover {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

[data-theme="dark"] .about-service-card::before {
    background: linear-gradient(135deg, rgba(203, 8, 57, 0.05), transparent);
}

/* ===== RESPONSIVE DESIGN FOR ABOUT CARDS ===== */
@media (max-width: 991px) {
    .service-card-split {
        min-height: 400px;
    }

    .service-text-content {
        padding: 2.5rem;
    }

    .about-info-card {
        min-height: 250px;
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .service-card-split {
        flex-direction: column;
        min-height: 600px;
    }

    .service-text-content,
    .service-image-content {
        flex: none;
    }

    .service-text-content {
        order: 2;
        padding: 2rem;
    }

    .service-image-content {
        order: 1;
    }

    .about-info-card {
        min-height: 220px;
        padding: 1.5rem;
    }

    .service-main-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

.about-info-card:hover {
    transform: scale(1.15);
    box-shadow: 0 6px 20px rgba(24, 22, 22, 0.4);
}

/* Info Card Text */
.info-card-text {
    color: var(--color-text-muted) !important;
    font-family: var(--font-primary);
    line-height: 1.6;
    font-size: 1rem;
}

/* Dark Theme Adjustments */
[data-theme="dark"] .about-service-card,
[data-theme="dark"] .about-info-card {
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .about-service-card:hover,
[data-theme="dark"] .about-info-card:hover {
    border-color: var(--color-accent);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

/* ===== ORIGINAL LANDING PAGE STYLES PRESERVED ===== */
.about-card {
    background: var(--color-card-bg);
    border: 2px solid var(--color-border);
    border-radius: 12px;
    overflow: hidden;
    transition: all var(--transition-medium);
    position: relative;
    height: 100%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.about-card:hover {
    border-color: var(--color-accent);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Dark theme specific card styling */
[data-theme="dark"] .about-card {
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .about-card:hover {
    border: 2px solid rgba(239, 68, 68, 0.8);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Large Image Card Styles */
.large-card {
    min-height: 400px;
}

.card-content-split {
    display: flex;
    height: 100%;
    min-height: 400px;
}

.text-content {
    flex: 1;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--color-card-bg);
    color: var(--color-text);
    transition: background 0.3s ease, color 0.3s ease;
}

.image-content {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.image-content .card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-medium);
}

.about-card:hover .image-content .card-image {
    transform: scale(1.05);
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--color-text-muted);
    transition: color 0.3s ease;
}

.feature-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-weight: bold;
}

/* Content Card Styles */
.content-card {
    background: var(--color-card-bg);
    min-height: 180px;
    transition: background 0.3s ease;
}

.card-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: var(--color-text);
    transition: color 0.3s ease;
}

/* ===== LANDING PAGE PROJECT LIST - ENHANCED ===== */
.project-list-item {
    border-bottom: 2px solid var(--color-border);
    padding-bottom: 2rem;
    margin-bottom: 2rem;
    cursor: pointer;
    transition: all var(--transition-medium);
}

.project-list-item:hover {
    border-bottom-color: var(--color-accent);
}

.project-title {
    font-size: 2.5rem;
    color: var(--color-text) !important;
    transition: color var(--transition-medium), transform var(--transition-medium);
    font-family: var(--font-display);
    font-weight: var(--font-weight-medium);
}

.project-list-item:hover .project-title {
    color: var(--color-accent) !important;
}

.project-title.scaleHover:hover {
    transform: scale(1.02) !important;
    color: var(--color-accent) !important;
}

.project-number {
    font-family: var(--font-display);
    font-weight: var(--font-weight-light);
    font-stretch: condensed;
    font-size: 4rem;
    color: var(--color-text-muted);
    transition: color var(--transition-medium);
}

.project-list-item:hover .project-number {
    color: var(--color-accent);
}

.project-year {
    color: var(--color-text-muted);
    font-size: 1.125rem;
    margin-top: 0.5rem;
    transition: color 0.3s ease;
}

/* ===== ENHANCED FLOATING IMAGE - PRESERVED FUNCTIONALITY ===== */
.floating-image {
    position: fixed;
    width: 20rem;
    height: 15rem;
    pointer-events: none;
    z-index: 1050;
    opacity: 0;
    transition: opacity var(--transition-medium);
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transform: translate3d(0, 0, 0);

    /* GPU acceleration */
}

.floating-image.show {
    opacity: 1;
}

.floating-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Dark theme floating image enhancement */
[data-theme="dark"] .floating-image {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ===== LANDING PAGE ANIMATIONS - PRESERVED ===== */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in-up.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Landing page specific hover effects */
.scaleHover:hover {
    transform: scale(1.02) !important;
    transition: transform var(--transition-medium) !important;
}

.slideHover:hover {
    transform: translateX(5px) !important;
    transition: transform var(--transition-medium) !important;
}

.pulseHover:hover {
    animation: landingPulse 1s infinite !important;
}

@keyframes landingPulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

/* ===== SWEDEN MAP RADAR - ENHANCED STYLING ===== */
.radar-map-container {
    height: 100vh !important;
    min-height: 100vh !important;
    max-height: 100vh !important;
    background: transparent;
}

.radar-svg-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: contrast(1.1) brightness(1.05);
}

.radar-svg-container svg {
    width: 85% !important;
    height: 85% !important;
    max-width: 85% !important;
    max-height: 85% !important;
    transition: filter 0.3s ease;
}

/* Dark theme radar map styling */
[data-theme="dark"] .radar-svg-container svg {
    filter: brightness(0.9) contrast(1.2);
}

[data-theme="dark"] .radar-svg-container {
    filter: contrast(1.2) brightness(0.9);
}

.radar-loading {
    color: var(--color-text) !important;
    font-family: var(--font-primary);
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

/* ===== RADAR MAP RESPONSIVE DESIGN - PRESERVED ===== */
@media (max-width: 991px) {
    .large-card {
        min-height: 350px;
    }

    .card-content-split {
        min-height: 350px;
    }

    .text-content {
        padding: 2rem;
    }

    .radar-map-container {
        height: 88vh !important;
        min-height: 80vh !important;
        max-height: 80vh !important;
        margin-top: 2rem;
    }

    .radar-svg-container svg {
        width: 80% !important;
        height: 80% !important;
        max-width: 80% !important;
        max-height: 80% !important;
    }
}

@media (max-width: 768px) {
    .card-content-split {
        flex-direction: column;
        min-height: 500px;
    }

    .text-content,
    .image-content {
        flex: none;
    }

    .text-content {
        order: 2;
        padding: 2rem;
    }

    .image-content {
        order: 1;
        height: 250px;
    }

    .content-card {
        min-height: 200px;
    }

    .card-content {
        padding: 2rem !important;
    }

    .project-title {
        font-size: 2rem;
    }

    .project-number {
        font-size: 2.5rem;
    }

    .floating-image {
        display: none;
    }

    .radar-map-container {
        height: 70vh !important;
        min-height: 70vh !important;
        max-height: 80vh !important;
        margin-bottom: 5rem;
    }

    .radar-svg-container svg {
        width: 100% !important;
        height: 100% !important;
        max-width: 95% !important;
        max-height: 95% !important;
    }
}

/* ===== DARK THEME SPECIFIC ENHANCEMENTS ===== */
[data-theme="dark"] .bg-gradient-light {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
}

[data-theme="dark"] .project-list-item {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .project-list-item:hover {
    border-bottom-color: var(--color-accent);
}

/* Understrykningsknapp (en definition, dark via tokens) */
.btn.underline {
    background: transparent;
    color: var(--color-text);
    border: 2px solid var(--color-border);
    position: relative;
    transition: all var(--transition-medium);
}

.btn.underline::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 6px;
    width: 0;
    height: 2px;
    background: var(--yttec-red);
    transform: translateX(-50%);
    transition: width var(--transition-medium);
}

.btn.underline:hover {
    border-color: var(--yttec-red);
    background: var(--color-service-hover);
}

.btn.underline:hover::after {
    width: 80%;
}

/* Hero-foto (ersätter tidigare GSAP-karta) */
.hero-photo-frame {
    position: relative;
}

.hero-photo {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--bs-border-radius, 1rem);
    box-shadow: 0 1.5rem 3rem rgba(0, 0, 0, 0.18);
}

.hero-badge {
    position: absolute;
    right: 1.25rem;
    bottom: 1.25rem;
    display: flex;
    flex-direction: row;
    background: rgba(18, 18, 18, 0.82);
    color: #fff;
    padding: 0.5rem 0.9rem;
    border-radius: 0.6rem;
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.03em;
    line-height: 1.2;
    align-items: center;
    justify-content: space-evenly;
}

.hero-badge-cc {
    font-weight: 400;
    font-size: 0.7rem;
    opacity: 0.8;
    letter-spacing: 0.02em;
    text-align: right;
}

/* Badgen är popover-trigger */
.hero-badge {
    cursor: pointer;
    transition: background 0.2s ease;
}

.hero-badge:hover,
.hero-badge:focus-visible {
    background: rgba(18, 18, 18, 0.92);
    outline: none;
}

.hero-badge-info {
    font-size: 1.8rem;
    margin-left: 0.4rem;
    opacity: 0.75;
    vertical-align: -0.1em;
    color: #ffffff;
}

/* Hero – helbild med övertoning (samma grepp som logistikgolv-heron) */
.hero-full {
    position: relative;
    min-height: 50vh;
    overflow: hidden;
    padding-top: 6rem;

    /* rensar den fasta nav:en */
    padding-bottom: 3rem;
}

.hero-full-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-full-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(18, 18, 18, 0.35) 0%, rgba(18, 18, 18, 0.32) 25%, rgba(18, 18, 18, 0.1) 100%);
}

.hero-full .container {
    position: relative;
    z-index: 2;
}

.hero-full-title {
    color: #ffffff !important;
    font-size: clamp(2.4rem, 6.5vw, 4.5rem);
    line-height: 1.05;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.hero-full-title .text-primary {
    color: var(--yttec-red) !important;
    text-shadow: 0 2px 12px rgba(203, 8, 57, 0.4);
}

.hero-full-lead {
    color: rgba(255, 255, 255, 0.92) !important;
    max-width: 40rem;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.hero-full .hero-badge {
    z-index: 3;
}

@media (max-width: 767px) {
    .hero-full {
        min-height: 60vh;
        padding-top: 5rem;
    }

    /* mobil: vertikal övertoning (text spänner full bredd) för läsbarhet */
    .hero-full-overlay {
        background: linear-gradient(180deg, rgba(18, 18, 18, 0.3) 0%, rgba(18, 18, 18, 0.25) 45%, rgba(18, 18, 18, 0.5) 100%);
    }

    .hero-full .hero-badge {
        left: 0.75rem;
        bottom: 0.75rem;
    }
}
