/* === CSS VARIABLES === */
:root {
    /* Colors */
    --color-primary: #1F3850;
    --color-primary-light: #2A4A66;
    --color-primary-dark: #17283A;
    --color-accent: #0A66C2;
    --color-white: #ffffff;
    --color-text: rgba(255, 255, 255, 0.9);
    --color-text-muted: rgba(255, 255, 255, 0.7);
    
    /* Spacing */
    --spacing-xs: 12px;
    --spacing-sm: 20px;
    --spacing-md: 30px;
    --spacing-lg: 60px;
    --spacing-xl: 90px;
    --spacing-2xl: 120px;
    
    /* Typography */
    --font-family: "Inter", sans-serif;
    --font-size-base: 1rem;
    --font-size-lg: 1.25rem;
    --font-size-xl: 2.2rem;
    --font-size-2xl: 2.8rem;
    --font-size-3xl: 3.5rem;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    
    /* Borders */
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 16px;
}

/* === GLOBAL STYLES === */
html {
    overflow-x: hidden;
}
body {
    margin: 0;
    font-family: var(--font-family);
    background: var(--color-primary);
    color: var(--color-white);
    overflow-x: hidden;
}

h1, h2, h3, p, nav a {
    margin: 0;
    font-family: var(--font-family);
    color: var(--color-white);
}

h1, h2, h3 {
    font-weight: 500;
    letter-spacing: 0.05em;
}

/* Heading hierarchy for SEO */
h1 {
    font-size: 2.7rem;
    text-transform: uppercase;
    margin-bottom: var(--spacing-md);
    line-height: 1.2;
}

h2 {
    font-size: 2.2rem;
    text-transform: uppercase;
    margin-bottom: var(--spacing-sm);
    margin-top: var(--spacing-lg);
    line-height: 1.3;
    position: relative;
    padding-bottom: 15px;
}

h2.no-line::after {
    display: none;
}

h3 {
    font-size: 1.4rem;
    text-transform: none;
    margin-bottom: 15px;
    margin-top: var(--spacing-md);
    font-weight: 500;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.95);
}

/* === UTILITY CLASSES === */
.container {
    max-width: 1200px;
    margin: 0 auto;
}

.container-lg {
    max-width: 1400px;
    margin: 0 auto;
}

.container-sm {
    max-width: 900px;
    margin: 0 auto;
}

.section-padding {
    padding: var(--spacing-xl) var(--spacing-xl);
}

.section-padding-lg {
    padding: 100px var(--spacing-xl) var(--spacing-2xl) var(--spacing-xl);
}

.glass-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-md);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-sm);
    backdrop-filter: blur(10px);
    padding: var(--spacing-sm);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all var(--transition-base);
}

.card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    transform: translateY(-2px);
}

.gradient-bg {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
}

.gradient-bg-vertical {
    background: linear-gradient(to bottom, var(--color-primary-light), var(--color-primary));
}

/* === HEADER === */
header {
    position: fixed;
    top: 0;
    width: 100%;
    height: 110px;
    z-index: 1000;
    background: rgba(31, 56, 80, 0);
    backdrop-filter: blur(10px);
    transition: background 0.4s ease;
}

.header-inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--spacing-xl);
}

.logo {
    height: 50px;
    width: auto;
    transition: opacity var(--transition-fast);
}

.logo:hover {
    opacity: 0.8;
}

nav {
    display: flex;
    align-items: center;
}

nav a {
    margin-left: 50px;
    color: var(--color-white);
    font-size: 1.1rem;
    letter-spacing: 0.18em;
    text-decoration: none;
    transition: opacity var(--transition-fast);
    text-transform: uppercase;
}

nav a:hover {
    opacity: 0.75;
}

/* Mobile Navigation */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
    background: transparent;
    border: 0;
    font: inherit;
    color: inherit;
}

.hamburger span {
    width: 30px;
    height: 3px;
    background: var(--color-white);
    transition: all var(--transition-base);
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* === BREADCRUMB === */
.breadcrumb-container {
    padding: 130px var(--spacing-xl) var(--spacing-sm) var(--spacing-xl);
    background: var(--color-primary);
    border: none;
}

.breadcrumb {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    letter-spacing: 0.05em;
    border: none;
    text-decoration: none;
}

.breadcrumb a {
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.breadcrumb a:hover {
    color: var(--color-white);
}

.breadcrumb-separator {
    margin: 0 15px;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 300;
}

.breadcrumb .current {
    color: var(--color-white);
}

/* === HERO === */
#hero {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    isolation: isolate;
}

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

.hero-mobile-poster {
    display: none;
    position: absolute;
    inset: 0;
    height: 100%;
    width: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.75), rgba(0,0,0,0.35), rgba(31,56,80,0.45));
    z-index: 2;
}

.hero-text {
    position: absolute;
    inset: 0;
    z-index: 3;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-text h1 {
    font-size: 2.7rem;
    font-weight: 500;
    max-width: 1000px;
    margin: 0 auto;
}

.fade-in {
    animation: fadein 2s ease-out forwards;
    opacity: 0;
}

@keyframes fadein {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* === PAGE HERO === */
.page-hero {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    padding: 80px var(--spacing-xl) 100px var(--spacing-xl);
    text-align: center;
}

.page-hero-content h1 {
    font-size: var(--font-size-3xl);
    font-weight: 500;
    margin-bottom: var(--spacing-sm);
    color: var(--color-white);
}

.hero-subtitle {
    font-size: 1.3rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 0.02em;
}

/* === COLUMNS (INDEX) === */
#columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 500px;
}

.col {
    padding: var(--spacing-lg) 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
}

.col:hover {
    background: #253F59;
}

.col.right:hover {
    background: #354E66;
}

.col-content {
    display: grid;
    grid-template-rows: auto auto auto auto auto;
    justify-items: center;
    align-items: start;
    text-align: center;
    max-width: 400px;
    width: 100%;
}

.left {
    background: var(--color-primary);
    color: var(--color-white);
}

.right {
    background: var(--color-primary-light);
    color: var(--color-white);
}

.col h2 {
    font-size: var(--font-size-xl);
    height: 75px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
}

.col p {
    font-size: var(--font-size-base);
    font-weight: 300;
    line-height: 1.6;
    margin: var(--spacing-sm) 0 0 0;
}

.icon-vehicle,
.icon-closure {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
}

.separator {
    width: 60px;
    height: 2px;
    background: var(--color-white);
    margin: var(--spacing-xs) 0;
}

/* === BUTTONS === */
.cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--color-white);
    color: var(--color-primary);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all var(--transition-base);
    margin-top: var(--spacing-md);
    border-radius: 4px;
}

.cta-button:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
}

.cta-outline {
    background: transparent;
    color: var(--color-white);
    border: 2px solid var(--color-white);
    margin-top: var(--spacing-md);
}

.cta-outline:hover {
    background: var(--color-white);
    color: var(--color-primary);
}

/* === CONTACT SECTION === */
#kontakt-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    padding: 100px var(--spacing-xl);
    gap: 80px;
}

.kontakt-left {
    display: flex;
    flex-direction: column;
}

.kontakt-left h2 {
    font-size: var(--font-size-2xl);
    margin-bottom: var(--spacing-md);
    color: var(--color-white);
}

.kontakt-heading-link {
    color: var(--color-white);
    text-decoration: underline;
    text-underline-offset: 4px;
    font-weight: 600;
    transition: opacity var(--transition-base);
}

.kontakt-heading-link:hover {
    opacity: 0.8;
}

.kontakt-left p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--color-text);
    font-weight: 300;
    margin-bottom: 40px;
}

.kontakt-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 35px;
}

.kontakt-logo,
.footer-logo {
    display: block;
    transition: opacity var(--transition-fast);
}

.kontakt-logo {
    width: 200px;
    height: auto;
    margin-bottom: var(--spacing-sm);
}

.kontakt-right a:hover .kontakt-logo,
.footer-content a:hover .footer-logo {
    opacity: 0.8;
}

.linkedin-link {
    color: var(--color-white);
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
}

.linkedin-link:hover {
    transform: scale(1.1);
    color: var(--color-accent);
}

.icon-large {
    width: 48px;
    height: 48px;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 25px;
    width: 100%;
    max-width: 400px;
}

.contact-card {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm);
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-sm);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all var(--transition-base);
}

.contact-card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    transform: translateY(-2px);
}

.contact-header {
    margin-bottom: 5px;
}

.contact-name {
    font-size: 1.15rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--color-white);
}

.contact-link {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    color: var(--color-text);
    text-decoration: none;
    transition: all var(--transition-fast);
    padding: 8px 0;
}

.contact-link:hover {
    color: var(--color-white);
    transform: translateX(3px);
}

.contact-link .icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.contact-link span {
    font-size: 0.95rem;
    font-weight: 300;
}

/* === OM OSS PAGE === */
.om-oss-main {
    background: var(--color-primary);
}

.content-section {
    padding: 80px var(--spacing-xl) 100px var(--spacing-xl);
    background: linear-gradient(to bottom, var(--color-primary-light), var(--color-primary));
}

.content-wrapper {
    /* Uses .container-sm utility class */
}

.content-wrapper p {
    font-size: 1.15rem;
    line-height: 1.9;
    color: var(--color-text);
    font-weight: 300;
    margin-bottom: var(--spacing-md);
    text-align: justify;
}

.content-wrapper h2 {
    font-size: 2.5rem;
    margin: 0 0 var(--spacing-md) 0;
    padding-bottom: var(--spacing-md);
    color: var(--color-white);
    text-align: left;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.content-separator {
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.2);
    margin: 50px 0;
}

.cta-wrapper {
    margin-top: var(--spacing-lg);
    text-align: center;
}

/* === SERVICES PAGE === */
.tjanster-main {
    background: var(--color-primary);
}

.tjanster-intro {
    padding: var(--spacing-lg) var(--spacing-xl);
    background: linear-gradient(to bottom, var(--color-primary-light), var(--color-primary));
}

.intro-text {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.intro-text p {
    font-size: var(--font-size-lg);
    line-height: 1.8;
    color: var(--color-text);
    font-weight: 300;
}

/* === SERVICES SECTIONS === */
.services-intro {
    padding: 60px var(--spacing-xl) 40px var(--spacing-xl);
    background: var(--color-primary);
    text-align: center;
}

.services-intro h1,
.services-intro h2 {
    font-size: 2.5rem;
    color: var(--color-white);
    margin: 0 auto;
    max-width: 800px;
    text-align: center;
}

.services-section {
    background: var(--color-primary);
}

.services-grid {
    padding: 40px var(--spacing-xl) 80px var(--spacing-xl);
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 50px;
    max-width: 1400px;
    margin: 0 auto;
}

/* 2x2 Grid for field investigations */
.services-grid-2x2 {
    grid-template-columns: repeat(2, 1fr) !important;
    max-width: 1000px !important;
    margin: 0 auto;
}
/* Adjust 2x2 grid for smaller screens to match cards above */
@media (max-width: 1400px) {
    .services-grid-2x2 {
        max-width: 650px !important;
    }
}

@media (max-width: 1200px) {
    .services-grid-2x2 {
        max-width: 100% !important;
    }
}

/* === EXPANDABLE SERVICE CARDS === */
.service-card.expandable {
    padding: 0;
    display: flex;
    flex-direction: column;
}

.service-card-header {
    width: 100%;
    background: transparent;
    border: none;
    padding: 45px 35px 35px 35px;
    cursor: pointer;
    text-align: center;
    position: relative;
    color: inherit;
    font-family: inherit;
}

.service-card-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: none;
}

.expand-icon {
    width: 28px;
    height: 28px;
    color: rgba(255, 255, 255, 0.6);
    transition: all var(--transition-base);
    margin-top: 15px;
}

.service-card-header:hover .expand-icon {
    color: var(--color-white);
}

.service-card-header[aria-expanded="true"] .expand-icon {
    transform: rotate(180deg);
    color: var(--color-white);
}

.service-card-expanded {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out;
}

.service-card-header[aria-expanded="true"] ~ .service-card-expanded {
    max-height: 2000px;
}

.service-card-content {
    padding: 0 35px 40px 35px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.service-image {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius-sm);
    margin: 25px 0 20px 0;
}

.service-card-content p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--color-text);
    margin-bottom: 15px;
}

.service-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-md);
    padding: 45px 35px;
    transition: all var(--transition-base);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.service-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    color: var(--color-white);
    transition: all var(--transition-base);
}

.service-card:hover .service-icon {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.05);
}

.service-icon svg {
    width: 35px;
    height: 35px;
}

.service-card-title {
    font-size: 1.4rem;
    margin-bottom: 15px;
    margin-top: 0;
    color: var(--color-white);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.service-card-text {
    font-size: var(--font-size-base);
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 300;
    margin: 0;
}

/* === CTA SECTION === */
.cta-section-page {
    padding: 100px var(--spacing-xl) var(--spacing-2xl) var(--spacing-xl);
    background: var(--color-primary);
}

.cta-content-page {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.cta-content-page h2 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
    color: var(--color-white);
    text-align: center;
}

.cta-content-page p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 300;
    margin-bottom: 35px;
    text-align: center;
}

.cta-content-page .cta-button {
    display: inline-block;
    margin: 0 auto;
}

/* === CONTACT PAGE === */
.kontakt-main {
    background: var(--color-primary);
}

.kontakt-intro {
    padding: var(--spacing-lg) var(--spacing-xl);
    background: linear-gradient(to bottom, var(--color-primary-light), var(--color-primary));
}

.kontakt-info-section {
    padding: 80px var(--spacing-xl) var(--spacing-2xl) var(--spacing-xl);
    background: var(--color-primary);
}

.kontakt-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.kontakt-cards h2,
.kontakt-company h2 {
    font-size: 1.8rem;
    margin-bottom: var(--spacing-md);
    color: var(--color-white);
    text-align: left;
}

.kontakt-cards {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.kontakt-company {
    display: flex;
    flex-direction: column;
}

.company-info-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-md);
    padding: 40px;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.info-item {
    display: flex;
    gap: var(--spacing-sm);
    align-items: flex-start;
}

.info-icon {
    width: 24px;
    height: 24px;
    color: var(--color-white);
    flex-shrink: 0;
    margin-top: 5px;
}

.info-text {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.info-text strong {
    font-size: 1.1rem;
    color: var(--color-white);
    font-weight: 500;
    margin-bottom: 5px;
}

.info-text span {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 300;
}

.linkedin-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    padding: 15px var(--spacing-md);
    background: rgba(10, 102, 194, 0.15);
    border: 1px solid rgba(10, 102, 194, 0.3);
    border-radius: var(--border-radius-sm);
    color: var(--color-accent);
    text-decoration: none;
    transition: all var(--transition-base);
    margin-top: 10px;
}

.linkedin-button:hover {
    background: rgba(10, 102, 194, 0.25);
    border-color: var(--color-accent);
    transform: translateY(-2px);
}

.linkedin-button svg {
    width: 24px;
    height: 24px;
}

.linkedin-button span {
    font-size: var(--font-size-base);
    font-weight: 500;
}

/* === FOOTER === */
footer {
    text-align: center;
    padding: 40px 25px 25px 25px;
    background: var(--color-primary-dark);
    color: var(--color-white);
    font-size: 0.9rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

.footer-logo {
    height: 60px;
    width: auto;
}

.footer-links {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--color-white);
}


footer p {
    color: rgba(255, 255, 255, 0.6);
}

#kontakt-section p a {
    color: inherit;
    font: inherit;
    font-weight: inherit;
    letter-spacing: inherit;
    text-decoration: none;
}

#kontakt-section p a:hover {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* === ACCESSIBILITY === */

/* Reduced motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Focus styles for keyboard navigation */
a:focus,
button:focus,
.cta-button:focus,
.contact-link:focus {
    outline: 3px solid rgba(255, 255, 255, 0.6);
    outline-offset: 3px;
}

nav a:focus {
    outline: 3px solid rgba(255, 255, 255, 0.6);
    outline-offset: 5px;
    opacity: 1;
}

.linkedin-link:focus,
.linkedin-button:focus {
    outline: 3px solid var(--color-accent);
    outline-offset: 3px;
}

.kontakt-right a:focus .kontakt-logo,
.footer-content a:focus .footer-logo {
    outline: 3px solid rgba(255, 255, 255, 0.6);
    outline-offset: 3px;
    border-radius: 4px;
}

/* === RESPONSIVE BREAKPOINTS === */

/* Large Desktop: 1440px and up */
@media (min-width: 1440px) {
    .header-inner {
        max-width: 1400px;
        margin: 0 auto;
    }
    
    .services-grid {
        max-width: 1600px;
    }
    
    h1 {
        font-size: 3.2rem;
    }
}

/* Tablet: 1024px and down */
@media (max-width: 1024px) {
    :root {
        --spacing-xl: 50px;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }
    
    .services-grid-2x2 {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    #columns {
        grid-template-columns: 1fr;
    }
    
    .kontakt-info-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
}

/* Small Tablet: 900px and down */
@media (max-width: 900px) {
    .services-grid {
        grid-template-columns: 1fr 1fr;
        gap: 25px;
    }
    
    .services-intro h1,
    .services-intro h2 {
        font-size: 2rem;
    }
    
    nav a {
        font-size: 1rem;
        margin-left: 35px;
    }
    
    h1 {
        font-size: 2.3rem;
    }
    
    h2 {
        font-size: 1.9rem;
    }
    
    .page-hero-content h1 {
        font-size: 2.8rem;
    }
}

/* Mobile: 768px and down */
@media (max-width: 768px) {
    :root {
        --spacing-xl: 30px;
    }
    
    /* Mobile Navigation */
    .hamburger {
        display: flex;
    }

    .hero-video {
        display: none;
    }

    .hero-mobile-poster {
        display: block;
    }
    .logo {
        height: 50px;
    }
    
    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: var(--color-primary);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: var(--spacing-md);
        transition: right 0.4s ease, opacity 0.3s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
        opacity: 0;
    }
    
    nav.active {
        right: 0;
        opacity: 1;
    }
    
    nav a {
        margin-left: 0;
        font-size: 1.3rem;
        opacity: 0;
        transform: translateX(20px);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }
    
    nav.active a {
        opacity: 1;
        transform: translateX(0);
    }
    
    nav.active a:nth-child(1) { transition-delay: 0.1s; }
    nav.active a:nth-child(2) { transition-delay: 0.2s; }
    nav.active a:nth-child(3) { transition-delay: 0.3s; }
    nav.active a:nth-child(4) { transition-delay: 0.4s; }
    
    /* Other mobile styles */
    .services-grid,
    .services-grid-2x2 {
        grid-template-columns: 1fr !important;
        gap: 25px;
        padding: 40px 15px var(--spacing-lg) 15px;
    }
    
    .services-intro {
        padding: 40px var(--spacing-md) 30px var(--spacing-md);
    }
    
    .services-intro h1,
    .services-intro h2 {
        font-size: 1.8rem;
    }
    
    .service-card-header {
        padding: 35px 25px 25px 25px;
    }
    
    .service-card-content {
        padding: 0 25px 30px 25px;
    }
    
    .tjanster-intro,
    .kontakt-intro {
        padding: 40px var(--spacing-md);
    }
    
    #kontakt-section {
        grid-template-columns: 1fr;
        padding: var(--spacing-lg) var(--spacing-md);
        gap: 50px;
    }
    
    .kontakt-info-section {
        padding: 40px var(--spacing-md) 80px var(--spacing-md);
    }
    
    .company-info-card {
        padding: var(--spacing-md) 25px;
    }
    
    .breadcrumb-container {
        padding: 130px var(--spacing-md) var(--spacing-sm) var(--spacing-md);
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    h3 {
        font-size: 1.2rem;
    }
    
    .page-hero-content h1 {
        font-size: 2.5rem;
    }

    .service-card-title {
        font-size: 1.1rem;
    }
    .content-wrapper p {
        text-align: left;
    }
}
/* === SERVICE CARDS (Updated for Modal) === */
.service-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-md);
    padding: 0;
    transition: all var(--transition-base);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.service-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

.service-card-header {
    width: 100%;
    background: transparent;
    border: none;
    padding: 35px 20px 25px 20px;
    cursor: pointer;
    text-align: center;
    color: inherit;
    font-family: inherit;
}

.service-card-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: none;
}

.service-icon {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    color: var(--color-white);
    transition: all var(--transition-base);
}

.service-card:hover .service-icon {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.05);
}

.service-icon svg {
    width: 35px;
    height: 35px;
}

.service-card-title {
    font-size: 1.4rem;
    margin-bottom: 15px;
    margin-top: 0;
    color: var(--color-white);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.service-card-text {
    font-size: var(--font-size-base);
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 300;
    margin: 0;
}

/* === MODALS === */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.open {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background: var(--color-primary);
    border-radius: var(--border-radius-lg);
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 2001;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--color-white);
    font-size: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
    z-index: 2002;
    line-height: 1;
    padding: 0;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.modal-body {
    padding: 60px 50px 50px 50px;
}

.modal-image {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius-md);
    margin-bottom: var(--spacing-md);
}

.modal-body h2 {
    font-size: 2.2rem;
    color: var(--color-white);
    margin-bottom: var(--spacing-sm);
    text-align: left;
    text-transform: uppercase;
}

.modal-body h2::after {
    display: none;
}

.modal-body p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
    font-weight: 300;
}

.modal-body p:last-child {
    margin-bottom: 0;
}
/* Small logo for modals */
.modal-logo {
    width: 50px;  /* Adjust size as needed */
    height: auto;
    margin-bottom: var(--spacing-md);
    display: block;
}

/* Modal subheadings */
.modal-body h3 {
    font-size: 1.5rem;
    color: var(--color-white);
    margin-top: var(--spacing-md);
    margin-bottom: 15px;
    text-transform: uppercase;
    font-weight: 500;
}

/* Modal bullet lists */
.modal-body ul {
    margin: 15px 0 25px 0;
    padding-left: 30px;
}

.modal-body li {
    font-size: 1.05rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 12px;
    font-weight: 300;
}

.modal-body li:last-child {
    margin-bottom: 0;
}
/* Content image in modal (below text) */
.modal-content-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius-md);
    margin-top: var(--spacing-md);
    display: block;
}
/* Modal CTA button */
.modal-cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--border-radius-sm);
    color: var(--color-white);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: all var(--transition-base);
    margin-top: var(--spacing-md);
    text-align: center;
}

.modal-cta-button:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Center the button if desired */
.modal-body .modal-cta-button {
    display: block;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

/* Optional: Add some space if there's text after the image */
.modal-content-image + p,
.modal-content-image + h3 {
    margin-top: var(--spacing-md);
}

/* Mobile responsive for modals */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        max-height: 95vh;
    }
    
    .modal-body {
        padding: 50px 25px 30px 25px;
    }
    
    .modal-body h2 {
        font-size: 1.8rem;
    }
    
    .modal-close {
        top: 15px;
        right: 15px;
        width: 35px;
        height: 35px;
        font-size: 24px;
    }
}
/* === CONTACT PAGE - SIDE BY SIDE LAYOUT === */
.kontakt-cards-row {
    margin-bottom: 80px;
}

.kontakt-cards-row h2 {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.kontakt-cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-md);
    padding: 40px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: all var(--transition-base);
}

.contact-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.contact-header {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-name {
    font-size: 1.8rem;
    font-weight: 500;
    color: var(--color-white);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.contact-title {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 300;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 15px;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 1rem;
    transition: all var(--transition-fast);
    padding: 10px;
    border-radius: var(--border-radius-sm);
}

.contact-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-white);
}

.contact-link .icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

/* Company info section below */
.kontakt-company-section {
    max-width: 1000px;
    margin: 0 auto;
}

.kontakt-company-section h2 {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.kontakt-company-section .company-info-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-md);
    padding: 50px;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.kontakt-company-section .info-text a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.kontakt-company-section .info-text a:hover {
    color: var(--color-white);
    text-decoration: underline;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .kontakt-cards-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .contact-card {
        padding: 30px 25px;
    }
    
    .contact-name {
        font-size: 1.5rem;
    }
    
    .kontakt-company-section .company-info-card {
        padding: 30px 25px;
    }
}
/* === PROJEKT PAGE === */
/* === PROJEKT PAGE === */
.projekt-main {
    background: var(--color-primary);
    min-height: 60vh;
}

/* === PROJEKT PAGE - UPDATED WITH REDUCED SPACING === */
.projekt-main {
    background: var(--color-primary);
    min-height: 60vh;
}

.projekt-content-section {
    padding: var(--spacing-2xl) var(--spacing-xl) 20px var(--spacing-xl);
    background: var(--color-primary);
}

.projekt-message {
    text-align: center;
    padding: var(--spacing-lg) 0;
}

.projekt-update-text {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 300;
    line-height: 1.8;
}

/* Reduce spacing on CTA section for projekt page */
.projekt-main .cta-section-page {
    padding-top: 30px;
}

/* Smaller font for projekt CTA */
.projekt-main .cta-content-page h2 {
    font-size: 1.8rem !important;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .projekt-update-text {
        font-size: 1.2rem;
    }
    
    .projekt-content-section {
        padding-bottom: 15px;
    }
    
    .projekt-main .cta-section-page {
        padding-top: 20px;
    }
    
    .projekt-main .cta-content-page h2 {
        font-size: 1.4rem;
    }
}
/* === SERVICE CARD LOGOS - SINGLE BLUE COLOR === */

/* Remove the old circle background */
.service-icon-gradient {
    width: auto;
    height: 80px;
    background: none;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

/* Logo styling - same blue color for all */
.service-logo-gradient {
    height: 50px;
    width: auto;
    display: block;
    filter: brightness(0) saturate(100%) invert(75%) sepia(38%) saturate(1678%) hue-rotate(175deg) brightness(100%) contrast(98%);
    transition: filter 0.3s ease;
}

/* Hover effect - darker blue */
.service-card:hover .service-logo-gradient {
    filter: brightness(0) saturate(100%) invert(65%) sepia(48%) saturate(1678%) hue-rotate(175deg) brightness(85%) contrast(98%);
}
/* === CONTACT CARD WITH PROFILE PHOTO ON RIGHT === */

/* === CONTACT CARD WITH PROFILE PHOTO ON RIGHT === */

/* Profile photo positioned on the right */
.contact-photo {
    width: 140px;
    height: 170px;
    border-radius: 12px;
    object-fit: cover;
    object-position: center top;
    position: absolute;
    top: 50px;
    right: 30px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all var(--transition-base);
}

.contact-card:hover .contact-photo {
    border-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.03);
}

/* Add padding to contact card to make room for photo */
.contact-card {
    padding-right: 190px;
    position: relative;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .contact-photo {
        width: 100px;
        height: 100px;
        top: 20px;
        right: 20px;
        border-radius: 10px;
    }
    
    .contact-card {
        padding-right: 130px;
    }
}
/* === INDEX PAGE - FIX CONTACT CARD NAMES ON ONE LINE === */

#kontakt-section .contact-name {
    white-space: nowrap;
    font-size: 1.4rem;
}

/* Mobile - allow wrapping on very small screens */
@media (max-width: 400px) {
    #kontakt-section .contact-name {
        white-space: normal;
        font-size: 0.95rem;
    }
}
/* === INDEX PAGE - FIX CONTACT LINKS === */

/* Prevent wrapping in contact links */
#kontakt-section .contact-link {
    white-space: nowrap;
}

#kontakt-section .contact-link span {
    white-space: nowrap;
}

/* === INDEX PAGE - FIX CONTACT LINK HOVER COVERAGE === */

/* Make contact-link a proper block element */
#kontakt-section .contact-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 6px;
    transition: background-color 0.3s ease;
    width: fit-content;
}

#kontakt-section .contact-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Prevent wrapping */
#kontakt-section .contact-link span {
    white-space: nowrap;
}

/* Ensure the entire email text is included in hover */
#kontakt-section .contact-link {
    text-decoration: none;
}

/* Mobile - allow smaller font if needed */
@media (max-width: 400px) {
    #kontakt-section .contact-link {
        font-size: 0.9rem;
    }
}
@media (max-width: 1400px) {
    .service-card-title {
        font-size: 1.2rem;
    }
}
/* FIX: CONTACT CARDS GETTING CUT OFF ON MOBILE */
@media (max-width: 600px) {
    .contact-card {
        padding-right: 20px !important;
        padding-left: 20px !important;
    }

    #kontakt-section {
        padding: 40px 20px !important;
        grid-template-columns: 1fr !important;
        gap: 40px !important;
    }
}
/* --- Mobile override for hero text (Samsung, iPhone, etc.) --- */
@media (max-width: 768px) {
    #hero .hero-text h1 {
        font-size: 2.4rem !important;
        line-height: 1.3 !important;
        max-width: 90%;
        margin: 0 auto;
    }
}
/* === MOBILE FIX: Center columns (#columns) === */
@media (max-width: 768px) {
    #columns {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .col {
        padding: 40px 20px;
        width: 100%;
        justify-content: center;
        align-items: center;
    }

    .col-content {
        justify-items: center;
        text-align: center;
    }

    .col h2 {
        justify-content: center;
        text-align: center;
    }

    .col p {
        text-align: center;
    }

    .separator {
        margin-left: auto;
        margin-right: auto;
    }
}
/* ===== MOBILE FIX FOR SERVICE CARDS ===== */
@media (max-width: 768px) {

    /* Centrera hela grid-containern */
    .services-grid,
    .services-grid-2x2 {
        display: grid;
        grid-template-columns: 1fr;
        justify-items: center;
        padding-left: 0;
        padding-right: 0;
    }

    /* Begränsa kortbredd + centrera dem */
    .service-card {
        width: 100%;
        max-width: 360px;
        margin-left: auto;
        margin-right: auto;
    }

    /* Centrera texten */
    .service-card-title,
    .service-card-text {
        text-align: center;
    }

    /* Säkerställ att långa titlar bryts */
    .service-card-title {
        word-break: break-word;
    }
}
/* Fixar padding på tjänstekorten i mobil-läge */
@media (max-width: 768px) {

    .services-grid,
    .services-grid-2x2 {
        padding-left: 1rem;
        padding-right: 1rem;
        box-sizing: border-box;
    }
}
@media (max-width: 768px) {
    .service-card-title {
        font-size: 1.05rem;
    }
}
@media (max-width: 768px) {
    .services-intro h2 {
        font-size: 1.4rem;
    }
}
@media (max-width: 768px) {
    .cta-section-page h2 {
        font-size: 1.4rem;
        line-height: 1.3;
        text-align: center;
        word-break: break-word;
        hyphens: auto;
    }

    .cta-section-page p {
        font-size: 1rem;
        line-height: 1.4;
        text-align: center;
        padding: 0 10px;
    }
}
/* Mindre rubriker i popup på mobil */
@media (max-width: 768px) {
    .modal-body h2 {
        font-size: 1.2rem;
        /* Standard är 2rem – detta blir lagom */
        line-height: 1.3;
        text-align: left;
    }
}

@media (max-width: 768px) {
    .kontakt-company-section h2 {
        font-size: 1.4rem;
        text-align: center;
        white-space: nowrap;
    }
}
/* === CONTACT CARD PHOTO IN TOP RIGHT CORNER === */
@media (max-width: 768px) {
.contact-card {
    position: relative;
    /* allows photo to be positioned inside */
}

/* Default (desktop) */
.contact-photo {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 80px;
    height: auto;
    border-radius: 6px;
}
}
/* Mobile adjustments */

@media (max-width: 768px) {
        .contact-card {
            position: relative;
            /* Required for absolute positioning inside */
            padding: 1.2rem;
        }

        .contact-photo {
            width: 60px;
            height: 80px;
            border-radius: 8px;

            position: absolute;
            top: 0.8rem;
            /* Distance from top */
            right: 1.8rem;
            /* Move slightly left by increasing/decreasing this */
        }
    }
