/* ============================================
   RESET & BASE STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: black;
}

h1 {
    font-size: 36px;
}

h2 {
    font-size: 30px;
}

img, video {
    max-width: 100%;
    height: auto;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
header {
    position: sticky;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 200px;
    z-index: 10;
    background-color: transparent;
    transition: background-color 0.3s ease;
}

.logo {
    font-weight: 600;
    font-size: 24px;
    margin-right: auto;
}

.logo img {
    width: 100px;
    height: auto;
    transition: transform 0.3s ease, filter 0.3s ease;
    filter: brightness(0) invert(1); /* Gör loggan vit */
}

.logo img:hover {
    transform: scale(0.9);
}

/* Desktop Navigation */
nav ul.menu {
    list-style: none;
    display: flex;
    gap: 40px;
    margin-left: auto;
}

nav ul.menu li {
    position: relative;
    font-size: 20px;
    font-weight: 400;
    cursor: pointer;
    padding: 5px 0;
}

/* Menu Items */
nav ul.menu li .menu-item {
    color: white;
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease;
}

/* Header scrolled state - change menu text to black after 80vh */
header.scrolled {
    background-color: white;
}

header.scrolled nav ul.menu li .menu-item {
    color: black;
}

header.scrolled .logo img {
    filter: brightness(0) invert(0); /* Gör loggan svart */
}

/* ============================================
   HEADER STYLES FOR NON-INDEX PAGES (with about-hero)
   Black menu text and logo, white header background with 100% opacity
   ============================================ */
body:has(.about-hero) header {
    background-color: rgba(255, 255, 255, 1);
}

body:has(.about-hero) nav ul.menu li .menu-item {
    color: black;
}

body:has(.about-hero) .logo img {
    filter: brightness(0) invert(0); /* Gör loggan svart */
}

body:has(.about-hero) nav ul.menu li:has(ul.dropdown) > .menu-item::after {
    color: #444F31;
}

    /* Hover underline for primary menu items (not dropdown items) - Desktop only */
@media (min-width: 1051px) {
    nav ul.menu > li > .menu-item:hover {
        text-decoration: underline;
    }
}

/* Arrow indicator for menu items with dropdowns */
nav ul.menu li:has(ul.dropdown) > .menu-item::after {
    content: '▼';
    margin-left: 9px;
    font-size: 12px;
    color: white;
    vertical-align: middle;
    display: inline-block;
    transition: color 0.3s ease;
}

/* Arrow indicator when header is scrolled */
header.scrolled nav ul.menu li:has(ul.dropdown) > .menu-item::after {
    color: #444F31;
}

/* Dropdown Menu */
nav ul.menu li ul.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    list-style: none;
    padding: 10px 0;
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    min-width: 200px;
}

/* Desktop hover dropdown - only for screens wider than 1050px */
@media (min-width: 1051px) {
    nav ul.menu li:hover ul.dropdown,
    nav ul.menu li.active ul.dropdown {
        display: block !important;
    }
    
    /* Dropdown box styling for desktop - rounded corners and 50% opacity */
    nav ul.menu li ul.dropdown {
        border-radius: 15px;
        background: rgba(255, 255, 255, 1);
    }
}

nav ul.menu li ul.dropdown li {
    padding: 12px 20px;
    font-size: 17px;
    white-space: nowrap;
}

/* Dropdown menu links (underrubriker) - black text, slightly thicker font, no underline by default */
nav ul.menu li ul.dropdown li a {
    color: black;
    font-weight: 510;
    text-decoration: none;
    transition: all 0.3s ease;
}

nav ul.menu li ul.dropdown li a:hover {
    color: #659C43;
    text-decoration: underline;
    text-decoration-color: #659C43;
    text-decoration-thickness: 2px;
}

/* Remove visited link styling for dropdown links - keep same appearance */
nav ul.menu li ul.dropdown li a:visited {
    color: black;
    text-decoration: none;
}

nav ul.menu li ul.dropdown li a:visited:hover {
    color: #659C43;
    text-decoration: underline;
    text-decoration-color: #659C43;
    text-decoration-thickness: 2px;
}

/* Hamburger Menu Button */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    background: none;
    border: none;
    padding: 8px;
    z-index: 1001;
    position: relative;
    width: 40px;
    height: 40px;
    margin-left: auto;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: #444F31;
    margin: 3px 0;
    transition: all 0.3s ease;
    display: block;
    border-radius: 2px;
}

.menu-close-icon {
    display: none;
    width: 24px;
    height: 24px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    stroke: #444F31;
}

.menu-toggle.active span {
    display: none;
}

.menu-toggle.active .menu-close-icon {
    display: block;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    z-index: 1;
}

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

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2;
}

 .hero-content {
    position: absolute;
    top: 50%;
    left: 40%;
    transform: translate(-50%, -50%); 
    text-align: left;
    color: white;
    z-index: 4;
    max-width: 800px;
    width: auto;
}

.hero-content h1 {
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 5px;
    max-width: 700px;
    display: block;
    line-height: 1.4;
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 30px; /* Reduced from 50px to decrease space before button */
    margin-top: 40px;
    max-width: 650px;
    line-height: 1.5;
}

/* Common Button Styles */
.hero-buttons button,
.section-left button,
.section2-buttons button,
.step-item button {
    background-color: #659C43;
    color: white;
    border: none;
    padding: 20px 65px;
    border-radius: 35px;
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-buttons button {
    margin-right: 30px;
}

.hero-buttons button:hover,
.section-left button:hover,
.section2-buttons button:hover,
.step-item button:hover {
    background-color: #444F31;
    color: white;
    transform: scale(0.95);
}

.hero-svg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: auto;
    z-index: 5;
    pointer-events: none;
    object-fit: cover;
    scale: 1.01;
}

.mobile-image {
    display: none;
}

/* ============================================
   SECTION 1
   ============================================ */
.section1 {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(20px, 10vw, 150px);
	padding: clamp(40px, 8vw, 100px) clamp(20px, 4vw, 50px);
    max-width: 1400px;
    margin: 0 auto;
	margin-top: 92vh;
    position: relative;
    z-index: 2;
    padding-top: 0;
}
/* Remove top padding so section1 starts immediately after hero */


.section-left {
    flex: 1.4;
    max-width: 850px;
    text-align: left;
}

.section-left h2 {
    font-size: 30px;
    font-weight: 600;
    color: #444F31;
    margin-bottom: 20px;
    display: inline-block;
    line-height: 1.2;
    position: relative;
}

.section-left h2:first-of-type {
    margin-bottom: 5px;
}

.section-left h2:nth-of-type(2) {
    margin-bottom: 40px;
    white-space: nowrap;
}

.section-left h2:nth-of-type(3) {
    margin-top: 60px;
}

.section-left h2 img {
    position: absolute;
    left: 100%;
    top: -10px;
    margin-left: 18px;
    width: 90px;
    height: auto;
}

.section-left p {
    font-size: 20px;
    margin-bottom: 20px;
}

.checklist {
    list-style: none;
    margin: 40px 0 20px 0;
    padding-left: 0;
}

.checklist li {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-size: 20px;
    line-height: 1.6;
}

.checklist li img {
    margin-right: 15px;
}

.section-left button {
    margin-top: 40px;
}

.section-right {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.section-right img {
    width: 100%;
    max-width: 620px;
    height: auto;
    object-fit: cover;
    border-radius: 15px;
}

/* ============================================
   SECTION 2
   ============================================ */
.section2 {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: clamp(40px, 8vw, 100px) clamp(20px, 4vw, 50px);
    gap: clamp(20px, 35vw, 600px);
    max-width: 1700px;
    width: 100%;
    margin: 0 auto;
    background-color: white;
    margin-top: clamp(20px, 6vw, 100px);
}

.section2-left {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.section2-left img {
    width: 100%;
    max-width: 600px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 50%;
}

.section2-right {
    flex: 1;
    max-width: 1000px;
    text-align: left;
    padding-right: 0;
    padding-top: 20px;
}

.section2-right h2 {
    font-size: 30px;
    font-weight: 600;
    color: #444F31;
    margin-bottom: 20px;
    margin-left: -400px;
}

.section2-right p {
    font-size: 20px;
    color: black;
    margin-bottom: 20px;
    margin-left: -400px;
    line-height: 1.7;
}

.section2-buttons button {
    margin-top: 30px;
    margin-left: -400px;
}

/* ============================================
   ABOUT PAGE STYLES
   ============================================ */
.about-hero {
    background: #444F31;
    color: white;
    padding: 120px 300px 300px 300px;
    text-align: center;
    position: relative;
}

.about-hero-content h1 {
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 20px;
}

.about-hero-content p {
    font-size: 20px;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.about-section {
    padding: 80px 300px;
    max-width: 1400px;
    margin: 0 auto;
    background: white;
}

.location-section {
    padding: 80px 300px 120px 300px;
    max-width: 1400px;
    margin: 0 auto;
    background: white;
}

.about-container {
    max-width: 1000px;
    margin: 0 auto;
}

.about-content h2 {
    font-size: 30px;
    font-weight: 600;
    color: #444F31;
    margin-bottom: 30px;
    text-align: left;
}

.about-content h3 {
    margin-bottom: 10px;
    margin-top: 30px;
    color: #444F31;
    font-weight: 600;
}

.about-content p {
    font-size: 20px;
    line-height: 1.7;
    margin-bottom: 20px;
    color: #333;
    text-align: left;
}

/* Team Section */
.team-section {
    background: #444F31;
    color: white;
    padding: 140px 300px;
    margin-top: 80px;
    text-align: center;
}

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

.team-section h2 {
    font-size: 30px;
    font-weight: 600;
    margin-bottom: 20px;
    color: white;
}

.team-section p {
    font-size: 20px;
    margin-bottom: 30px;
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.team-members-section {
    background: white;
    padding: 200px 300px;
    max-width: 1400px;
    margin: 0 auto;
}

.team-members-container {
    max-width: 1200px;
    margin: 0 auto;
}

.team-grid {
    display: grid;
    grid-template-columns: 640px 640px;
    grid-template-rows: auto auto;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    justify-content: center;
}

.team-member {
    background: none;
    padding: 30px;
    text-align: left;
    color: #333;
    width: 640px;
}

.team-member:nth-child(3) {
    grid-column: 1;
    grid-row: 2;
}

.team-member h3 {
    font-size: 24px;
    font-weight: 600;
    color: #444F31;
    margin-bottom: 10px;
}

.team-member h4 {
    font-size: 20px;
    font-weight: 600;
    color: #444F31;
    margin-bottom: 15px;
}

.team-member p {
    font-size: 20px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 0;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
    background-color: #444F31;
    color: white;
    padding: 120px 300px 80px 300px;
    position: relative;
    margin-top: 160px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 40px; /* Reduced from 60px for better spacing on all screen sizes */
    margin-bottom: 60px;
}

.footer-column {
    text-align: left;
    min-width: 0; /* Allow columns to shrink properly */
}

.footer-column h3 {
    font-size: 22px;
    font-weight: 400;
    margin-bottom: 25px;
    color: white;
    white-space: normal; /* Allow text to wrap if needed */
    word-wrap: break-word; /* Break long words if needed */
}

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

.footer-menu li {
    margin-bottom: 15px;
}

.footer-menu li a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 18px;
    transition: color 0.3s ease;
    white-space: normal; /* Allow menu items to wrap if needed */
    word-wrap: break-word; /* Break long words if needed */
}

.footer-menu li a:hover {
    color: white;
    text-decoration: underline;
}

.footer-logo-container {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-logo-container a {
    display: inline-block;
}

.footer-logo {
    width: 80px;
    height: auto;
    transition: transform 0.3s ease;
    cursor: pointer;
    display: block;
}

.footer-logo:hover {
    transform: scale(0.9);
}

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

.contact-list li {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    font-size: 18px;
}

.contact-icon {
    width: 24px;
    height: 24px;
    margin-right: 15px;
    filter: brightness(0) invert(1);
}

.contact-list a,
.contact-list a:visited {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-list a:hover {
    color: white;
    text-decoration: underline;
}

.contact-item-placering a,
.contact-item-placering a:visited {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.contact-item-placering a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* ============================================
   FAQ STYLES
   ============================================ */
.faq-question {
    cursor: pointer;
    position: relative;
    padding-right: 30px;
    transition: color 0.3s ease;
}

.faq-question:hover {
    color: #6A8E2A;
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.faq-question.active::after {
    content: '−';
    transform: translateY(-50%) rotate(0deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    margin-top: 0;
}

.faq-answer.active {
    max-height: 1000px;
    margin-top: 15px;
}

.faq-item {
    margin-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 15px;
}

/* ============================================
   QUALITY MANAGEMENT SYSTEM
   ============================================ */
.quality-section {
    margin-bottom: 60px;
    padding: 0;
}

.quality-section:nth-child(odd) {
    text-align: left;
    max-width: 850px;
    margin-left: 0;
    margin-right: auto;
}

.quality-section:nth-child(even) {
    text-align: right;
    max-width: 850px;
    margin-left: auto;
    margin-right: 0;
}

.quality-section h2 {
    margin-bottom: 12px;
    margin-top: 0;
    font-size: 30px;
    font-weight: 600;
    color: #444F31;
    text-align: left;
}

.quality-section p {
    margin-bottom: 12px;
    line-height: 1.6;
    color: black;
}

.quality-section ul {
    margin-bottom: 15px;
    padding-left: 20px;
}

.quality-section:nth-child(even) ul {
    padding-left: 0;
    padding-right: 20px;
}

.quality-section li {
    margin-bottom: 8px;
    line-height: 1.6;
    color: black;
    font-size: 20px;
}

/* ============================================
   PLACERING CONTACT INFO
   ============================================ */
.contact-info-placering {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 10px;
}

.contact-item-placering {
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-icon-placering {
    width: 24px;
    height: 24px;
    filter: brightness(0);
}

.contact-item-placering span {
    font-size: 20px;
    color: black;
}

.contact-info-placering + p {
    margin-top: 40px;
}

.requirement-title {
    color: #444F31;
    font-weight: 600;
}

/* ============================================
   STEP ITEMS & SUPPORT
   ============================================ */
/* Fade-in Animation - Shared Styles */
.step-item,
.support-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.2s ease, transform 1.2s ease;
}

.step-item {
    margin-bottom: 50px;
    padding-bottom: 50px;
    border-bottom: 1px solid #e0e0e0;
}

.step-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.step-item.fade-in,
.support-section.fade-in {
    opacity: 1;
    transform: translateY(0);
}

.support-section {
    margin-top: 0;
}

.step-item h3 {
    font-size: 28px;
    font-weight: 500;
    color: #444F31;
    margin-bottom: 15px;
}

.step-item p {
    font-size: 20px;
    line-height: 1.7;
    color: #333;
}

.step-item button {
    margin-top: 20px;
}

.support-list {
    list-style: none;
    padding-left: 0;
    margin: 20px 0;
}

.support-list li {
    margin-bottom: 22px;
    position: relative;
    font-size: 20px;
    line-height: 1.7;
    color: #333;
}

.support-list li strong {
    color: #444F31;
    font-weight: 600;
}

/* ============================================
   RESPONSIVE DESIGN - SMALLER DESKTOP (1600px)
   Fix excessive padding for smaller desktop screens
   ============================================ */
@media (max-width: 1600px) {
    /* Reduce header padding */
    header {
        padding: 20px clamp(40px, 8vw, 200px);
    }
    
    /* Reduce excessive padding in sections */
    .about-hero {
        padding: 120px clamp(40px, 8vw, 300px) 300px clamp(40px, 8vw, 300px);
    }
    
    .about-section {
        padding: 80px clamp(40px, 8vw, 300px);
    }
    
    .location-section {
        padding: 80px clamp(40px, 8vw, 300px) 120px clamp(40px, 8vw, 300px);
    }
    
    .team-section {
        padding: 140px clamp(40px, 8vw, 300px);
    }
    
    .team-members-section {
        padding: 200px clamp(40px, 8vw, 300px);
    }
    
    footer {
        padding: 120px clamp(40px, 8vw, 300px) 80px clamp(40px, 8vw, 300px);
    }
    
    /* Fix footer layout for smaller desktop screens (1600px and below) */
    .footer-content {
        gap: 30px; /* Further reduce gap for better spacing on smaller screens */
    }
    
    .footer-column {
        text-align: left; /* Ensure left alignment */
        min-width: 0; /* Allow columns to shrink properly */
    }
    
    .footer-column h3 {
        white-space: normal; /* Allow text to wrap if needed */
        word-wrap: break-word; /* Break long words if needed */
        hyphens: auto; /* Enable automatic hyphenation */
    }
    
    .footer-menu li a {
        white-space: normal; /* Allow menu items to wrap if needed */
        word-wrap: break-word; /* Break long words if needed */
    }
}

/* ============================================
   RESPONSIVE DESIGN - TABLET (1050px)
   Hamburger menu for both tablet and mobile sizes
   ============================================ */
@media (max-width: 1250px) {
    /* Disable blue tap/click highlight on mobile/tablet for all interactive elements */
    a, button, .menu-toggle, nav ul.menu li .menu-item, .hero-buttons button, .section-left button, .section2-buttons button, .step-item button {
        -webkit-tap-highlight-color: transparent;
        -webkit-tap-highlight-color: rgba(0,0,0,0);
    }
    /* Also apply to the menu list items themselves to avoid blue background on tap */
    nav ul.menu li,
    nav ul.menu li *,
    nav ul.menu li a,
    nav ul.menu li button {
        -webkit-tap-highlight-color: transparent;
    }
    /* Force transparent background on tap/active state in the overlay menu */
    nav ul.menu li:active,
    nav ul.menu li a:active {
        background-color: transparent !important;
    }
    a:focus, a:active,
    button:focus, button:active,
    .menu-toggle:focus, .menu-toggle:active,
    nav ul.menu li .menu-item:focus, nav ul.menu li .menu-item:active,
    .hero-buttons button:focus, .hero-buttons button:active,
    .section-left button:focus, .section-left button:active,
    .section2-buttons button:focus, .section2-buttons button:active,
    .step-item button:focus, .step-item button:active {
        outline: none;
        background: transparent !important;
        box-shadow: none;
    }

    .section-right img,
    .section2-left img,
    .section-right,
    .section2-left {
        display: none;
    }

    .hero-svg {
        bottom: 0px;
        top: auto;
        scale: 1.15;
    }
    
    /* Make logo white initially in tablet view (same as desktop) */
    .logo img {
        filter: brightness(0) invert(1); /* Gör loggan vit */
    }
    
    /* Header transparent initially in tablet view (same as desktop) */
    header {
        background-color: transparent;
        position: sticky;
        top: 0;
        z-index: 1000;
        transition: background-color 0.3s ease;
    }
    
    /* Arrow indicator white initially in tablet view (for hamburger icon - menu items in nav overlay are always black) */
    nav ul.menu li:has(ul.dropdown) > .menu-item::after {
        color: white;
    }
    
    /* Hamburger menu icon white initially in tablet view */
    .menu-toggle span {
        background-color: white;
    }
	
	/* On non-index pages (with about-hero), hamburger icon should be dark from start */
	body:has(.about-hero) .menu-toggle span {
		background-color: #444F31;
	}
	
	/* On non-index pages, dropdown arrow indicator should be dark from start */
	body:has(.about-hero) nav ul.menu li:has(ul.dropdown) > .menu-item::after {
		color: #444F31;
	}
    
    /* When scrolled, header becomes white with black logo and menu (same as desktop) */
    header.scrolled {
        background-color: white;
    }
    
    header.scrolled .logo img {
        filter: brightness(0) invert(0); /* Gör loggan svart */
    }
    
    header.scrolled nav ul.menu li .menu-item {
        color: black;
    }
    
    header.scrolled nav ul.menu li:has(ul.dropdown) > .menu-item::after {
        color: #444F31;
    }
    
    header.scrolled .menu-toggle span {
        background-color: #444F31;
    }
    
    /* Hero section - same as desktop, video behind header */
    .hero {
        position: absolute;
        top: 0;
        left: 0;
        height: 100vh;
        min-height: 70vh;
    }
    
    .menu-toggle {
        display: flex;
    }

    nav {
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        background: white;
        z-index: 1000;
        display: none;
        overflow-y: auto;
        transform: translateX(100%);
        transition: transform 0.3s ease;
    }

    nav.active {
        display: block;
        transform: translateX(0);
    }

    nav ul.menu {
        display: flex;
        flex-direction: column;
        padding: 80px 20px 20px 20px;
        gap: 0;
        margin: 0;
    }

    nav ul.menu li {
        width: 100%;
        padding: 0;
        border-bottom: 1px solid #e0e0e0;
        font-size: 20px; /* Increased from 18px to 20px for larger text in tablet view */
        position: relative;
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        transition: all 0.3s ease;
        overflow: visible; /* Ensure dropdown doesn't get clipped */
    }

    nav ul.menu li .menu-item {
        display: flex;
        align-items: center;
        width: 100%;
        min-height: 100px;
        padding: 0 20px;
        color: black;
        text-decoration: none;
        pointer-events: auto;
        box-sizing: border-box;
        font-size: 20px; /* Increased from 18px to 20px for larger text in tablet view */
        background: transparent;
        cursor: pointer;
        transition: color 0.3s ease;
        white-space: normal; /* Allow text to wrap to multiple lines */
        word-wrap: break-word; /* Break long words if needed */
    }
    
    /* Menu items in mobile nav are always black (nav overlay has white background) */
    nav ul.menu li .menu-item {
        color: black;
    }

    /* Arrow indicator for menu items with dropdowns (mobile) - always black in nav overlay */
    nav ul.menu li:has(ul.dropdown) > .menu-item::after {
        content: '▼';
        margin-left: auto;
        font-size: 12px;
        color: #444F31;
        vertical-align: middle;
        display: inline-block;
        transition: transform 0.3s ease, color 0.3s ease;
    }

    nav ul.menu li.active > .menu-item::after {
        transform: rotate(180deg);
    }

    nav ul.menu li:has(ul.dropdown) {
        cursor: pointer;
        width: 100%;
        display: flex;
        flex-direction: column;
        box-sizing: border-box;
    }

    nav ul.menu li ul.dropdown {
        display: block;
        max-height: 0;
        overflow: hidden;
        background: white; /* Changed from #f5f5f5 to white for pure white background */
        margin: 0;
        padding: 0;
        box-shadow: none;
        width: 100%;
        border-radius: 0;
        transition: max-height 0.3s ease, padding 0.3s ease;
        list-style: none;
        position: relative; /* Ensure dropdown is in document flow and pushes down other items */
    }

    nav ul.menu li.active ul.dropdown {
        max-height: 1000px;
        padding: 10px 0;
    }

    nav ul.menu li ul.dropdown li {
        padding: 18px 20px 18px 40px; /* Added left padding (40px) to indent items to the right */
        border-bottom: none; /* Remove full border, use pseudo-element instead for shorter line */
        font-size: 20px; /* Increased from 18px to 20px for larger text in tablet view */
        position: relative; /* Needed for pseudo-element positioning */
    }
    
    /* Shorter border line for dropdown items */
    nav ul.menu li ul.dropdown li::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 40px; /* Match left padding */
        right: 20px; /* Match right padding */
        height: 1px;
        background-color: #e0e0e0;
    }
    
    nav ul.menu li ul.dropdown li:last-child::after {
        display: none; /* Remove border from last item */
    }

    nav ul.menu li ul.dropdown li a {
        color: black;
        text-decoration: none;
        font-size: 20px; /* Increased from 18px to 20px to match li font-size in tablet view */
        font-weight: 500; /* Adjust this value to change text weight (400=normal, 600=semi-bold, 700=bold) */
        display: block;
        width: 100%;
        padding: 0;
        transition: text-decoration 0.3s ease;
        white-space: normal; /* Allow text to wrap to multiple lines */
        word-wrap: break-word; /* Break long words if needed */
        line-height: 1.4; /* Better line spacing for multi-line text */
    }
    
    nav ul.menu li ul.dropdown li a:hover {
        text-decoration: underline;
    }
    
    /* Remove visited link styling for dropdown links in mobile - keep same appearance */
    nav ul.menu li ul.dropdown li a:visited {
        color: black;
        text-decoration: none;
    }
    
    nav ul.menu li ul.dropdown li a:visited:hover {
        text-decoration: underline;
    }

    nav ul.menu li ul.dropdown li.desktop-only {
        display: none;
    }

    body.menu-open {
        overflow: hidden;
    }
    
    /* Footer - same structure as mobile view */
    footer {
        padding: 50px 32px 40px 32px;
        margin-top: 40px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-column h3 {
        font-size: 20px;
        position: relative;
        padding-right: 30px;
    }

    /* Footer columns except first - collapsible */
    .footer-column:not(:first-child) h3 {
        cursor: pointer;
    }

    .footer-column:not(:first-child) h3::after {
        content: '';
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%) rotate(0deg);
        width: 30px;
        height: 30px;
        background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M7 10l5 5 5-5z"/></svg>');
        background-size: contain;
        background-repeat: no-repeat;
        transition: transform 0.3s ease;
    }

    .footer-column:not(:first-child).active h3::after {
        transform: translateY(-50%) rotate(180deg);
    }

    /* First column - always visible */
    .footer-column:first-child .footer-menu,
    .footer-column:first-child .contact-list {
        max-height: none;
        overflow: visible;
    }

    /* Other columns - collapsible */
    .footer-column:not(:first-child) .footer-menu,
    .footer-column:not(:first-child) .contact-list {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .footer-column:not(:first-child).active .footer-menu,
    .footer-column:not(:first-child).active .contact-list {
        max-height: 500px;
    }

    .footer-menu li a,
    .contact-list li {
        font-size: 16px;
    }
    
    /* Fix section1 margin-top - hero is absolute (100vh), need margin to avoid overlap */
    .section1 {
		margin-top: 92vh; /* Align directly after hero */
		padding: clamp(40px, 8vw, 100px) clamp(20px, 4vw, 50px); /* Match desktop padding to avoid extra indentation */
		padding-top: 0; /* Remove extra space above section1 */
    }
    
    /* Fix section2 layout when image is hidden - remove negative margins */
    .section2 {
        flex-direction: column;
        align-items: center;
        gap: 30px;
        max-width: 100%;
        overflow-x: hidden;
        margin-top: 0; /* Reduce space between section1 and section2 in tablet view */
    }
    
    .section2-right {
        width: 100%;
        max-width: 100%;
        padding: 0 clamp(20px, 4vw, 50px);
        text-align: left;
        box-sizing: border-box;
    }
    
    .section2-right h2 {
        margin-left: 0;
    }
    
    .section2-right p {
        margin-left: 0;
    }
    
    .section2-buttons button {
        margin-left: 0;
    }
    
    /* Fix team-grid overflow - make it responsive */
    .team-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 100%;
        width: 100%;
    }
    
    .team-member {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    /* Prevent horizontal overflow */
    html, body {
        max-width: 100vw;
        width: 100%;
    }
    
    /* Ensure all containers respect viewport width */
    .section1,
    .about-section,
    .location-section,
    .team-section,
    .team-members-section,
    footer,
    .about-container,
    .team-container,
    .team-members-container {
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
    }
    
    /* Fix excessive padding for tablet - reduce to responsive values */
    header {
        padding: 20px clamp(20px, 5vw, 60px);
    }
    
    .about-hero {
        padding: 120px clamp(20px, 5vw, 60px) 300px clamp(20px, 5vw, 60px);
    }
    
    .about-section {
        padding: 60px clamp(20px, 5vw, 60px);
    }
    
    .location-section {
        padding: 60px clamp(20px, 5vw, 60px) 80px clamp(20px, 5vw, 60px);
    }
    
    .team-section {
        padding: 80px clamp(20px, 5vw, 60px);
    }
    
    .team-members-section {
        padding: 100px clamp(20px, 5vw, 60px);
    }
    
    /* Remove max-width constraints for containers in tablet */
    .about-container,
    .team-container,
    .team-members-container {
        max-width: 100%;
    }
    
    /* Fix quality-section alignment for tablet */
    .quality-section:nth-child(even) {
        text-align: left;
        margin-left: 0;
        margin-right: auto;
        max-width: 100%;
    }
    
    .quality-section:nth-child(even) ul {
        padding-left: 20px;
        padding-right: 0;
    }
    
    .quality-section:nth-child(odd) {
        max-width: 100%;
    }
}


/* ============================================
   RESPONSIVE DESIGN - MOBILE (600px)
   ============================================ */
@media (max-width: 600px) {
    header {
        padding: 20px 20px;
        position: sticky;
        background-color: transparent;
        transition: background-color 0.3s ease;
        z-index: 10; /* Ensure header is above hero (z-index: 1) */
    }

    .logo {
        margin-left: 0;
    }

    .logo img {
        width: 80px;
        filter: brightness(0) invert(1); /* Gör loggan vit initialt */
        transition: filter 0.3s ease;
    }
    
    /* Menu items in nav overlay are always black (nav overlay has white background) */
    nav ul.menu li .menu-item {
        color: black;
    }
    
    /* Arrow indicator in nav overlay is always black (nav overlay has white background) */
    nav ul.menu li:has(ul.dropdown) > .menu-item::after {
        color: #444F31;
    }
    
    /* Hamburger menu icon white initially in mobile view */
    .menu-toggle span {
        background-color: white;
        transition: background-color 0.3s ease;
    }
	
	/* On non-index pages (with about-hero), hamburger icon should be dark from start */
	body:has(.about-hero) .menu-toggle span {
		background-color: #444F31;
	}
	
	/* On non-index pages, dropdown arrow indicator should be dark from start */
	body:has(.about-hero) nav ul.menu li:has(ul.dropdown) > .menu-item::after {
		color: #444F31;
	}
    
    /* When scrolled, header becomes white with black logo and menu */
    header.scrolled {
        background-color: white;
    }
    
    header.scrolled .logo img {
        filter: brightness(0) invert(0); /* Gör loggan svart */
    }
    
    header.scrolled nav ul.menu li .menu-item {
        color: black;
    }
    
    header.scrolled nav ul.menu li:has(ul.dropdown) > .menu-item::after {
        color: #444F31;
    }
    
    header.scrolled .menu-toggle span {
        background-color: #444F31;
    }

    .hero {
        position: absolute;
        top: 0;
        left: 0;
        min-height: 600px;
        height: 70vh; /* Reduced from 100vh to make hero section shorter */
        z-index: 1; /* Make sure hero is behind header (z-index: 10) */
    }

    .hero video {
        left: 0;
        width: 100%;
        object-position: top;
    }

    .hero-overlay {
        width: 100%;
    }

    .hero-text-background {
        left: 50%;
        width: 90%;
        height: 60%;
    }

    .hero-content {
        left: 50%;
        top: 55%; /* Reduced from 45% to move content higher and decrease space before SVG */
        max-width: 100%;
        min-width: 330px;
        padding: 0 10px;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 25px;
        margin-bottom: 10px;
    }

    .hero-content p {
        font-size: 17px;
        max-width: 100%;
        margin-top: 20px;
        margin-bottom: 15px; /* Reduced from 20px to decrease space before button */
    }

    .hero-buttons a {
        text-decoration: none;
    }

    .hero-buttons button {
        width: 280px;
        height: 60px;
        font-size: 16px;
        display: block;
        margin: 20px auto 20px auto; /* Reduced bottom margin from 40px to 20px to decrease space before SVG */
    }

    .section1 {
        flex-direction: column;
        padding: 0 0 30px 0; /* Remove top padding to reduce space between hero and text */
        gap: 10px;
        max-width: 100%;
		margin-top: max(540px, 65vh); /* Align directly after hero; respect min-height */
    }

    .section-left {
        max-width: 100%;
        padding: 0 32px; /* Only horizontal padding */
        margin-top: 0; /* Ensure no margin-top */
    }

    .section-left h2,
    .section2-right h2 {
        font-size: 20px;
        margin-bottom: 15px;
    }
    
    /* Remove margin-top from first h2 to reduce space from top of section1 */
    .section-left h2:first-of-type {
        margin-top: 0;
    }

    .section-left h2:nth-of-type(2) {
        white-space: normal;
    }

    .section-left h2:nth-of-type(3) {
        margin-top: 40px;
    }

    .section-left p,
    .section2-right p {
        font-size: 17px;
        line-height: 1.6;
    }

    .checklist {
        margin: 25px 0;
    }

    .checklist li {
        font-size: 17px;
        margin-bottom: 12px;
    }

    .section-left a {
        text-decoration: none;
    }

    .section-left button {
        width: 280px;
        height: 60px;
        font-size: 17px;
        display: block;
        margin: 20px auto 0 auto;
    }

    .section-right {
        width: 100%;
        display: none;
    }

    .section-right img {
        width: 100%;
        max-width: 100%;
        height: auto;
        border-radius: 10px;
    }

    .mobile-image {
        display: none;
    }

    .hero-svg {
        bottom: 0;
        top: auto;
        scale: 1.01;
    }

    .section2 {
        flex-direction: column;
        padding: 30px 0;
        gap: 30px;
        margin-top: 30px;
        max-width: 100%;
    }

    .section2-left {
        order: 2;
        width: 100%;
    }

    .section2-left img {
        width: 100%;
        max-width: 300px;
        height: 300px;
        border-radius: 50%;
        margin: 0 auto;
        display: block;
    }

    .section2-right {
        order: 1;
        width: 100%;
        margin-left: 0;
        padding: 0 32px;
    }

    .section2-right h2 {
        font-size: 22px;
        margin-bottom: 15px;
        margin-left: 0;
    }

    .section2-right p {
        font-size: 17px;
        line-height: 1.6;
        margin-left: 0;
    }

    .section2-buttons {
        margin-top: 20px;
    }

    .section2-buttons a {
        text-decoration: none;
    }

    .section2-buttons button {
        width: 280px;
        height: 65px;
        font-size: 17px;
        display: block;
        margin: 0 auto;
        margin-top: 30px;
    }

    .about-hero {
        position: relative;
        top: auto;
        margin-top: 0;
        padding: 70px 32px 90px 32px;
    }

    .about-hero-content h1 {
        font-size: 25px;
    }

    .about-hero-content p {
        font-size: 17px;
    }

    .about-section {
        padding: 40px 0;
        margin-top: 0;
    }

    .about-content {
        padding: 0 32px;
    }

    .about-content h2 {
        font-size: 22px;
        margin-bottom: 10px;
    }

    .about-content h3 {
        font-size: 20px;
        margin-bottom: 10px;
    }

    .about-content .faq-question {
        font-weight: 300;
    }

    .about-content p {
        font-size: 17px;
        margin-top: 15px;
    }

    .contact-item-placering span {
        font-size: 15px;
        color: black;
    }

    .contact-icon-placering {
        width: 15px;
        height: 15px;
        filter: brightness(0);
    }

    .step-item h3 {
        font-size: 20px;
        margin-bottom: 12px;
    }

    .step-item p {
        font-size: 17px;
        line-height: 1.6;
    }

    .step-item button {
        padding: 14px 30px;
        font-size: 17px;
        width: 100%;
        max-width: 300px;
    }

    .support-section {
        padding: 30px 0 40px 0;
    }

    .support-section h2 {
        font-size: 22px;
        margin-bottom: 15px;
    }

    .support-section p {
        font-size: 17px;
        line-height: 1.6;
    }

    .support-list {
        padding: 0;
    }

    .support-list li {
        font-size: 17px;
        margin-bottom: 15px;
        line-height: 1.6;
    }

    .team-section {
        padding: 60px 0;
        margin-top: 20px;
    }

    .team-container,
    .team-members-container {
        padding: 0 32px;
    }

    .team-section h2 {
        font-size: 22px;
    }

    .team-section p {
        font-size: 17px;
        margin-bottom: 20px;
    }

    .team-section p:last-child {
        margin-bottom: 0;
    }

    .location-section {
        padding: 10px 0 40px 0;
    }

    .quality-section {
        padding: 0;
        margin-bottom: 40px;
    }

    .quality-section h2 {
        font-size: 20px;
        margin-bottom: 15px;
        margin-top: 0;
    }

    .quality-section p {
        font-size: 17px;
        margin-bottom: 15px;
    }

    .quality-section ul {
        padding-left: 20px;
    }

    .quality-section li {
        font-size: 17px;
    }

    .team-members-section {
        padding: 60px 0 40px 0;
    }

    .team-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        width: 100%;
    }

    .team-member {
        width: 100%;
        padding: 20px;
    }

    .team-member h3 {
        font-size: 22px;
        margin-bottom: 5px;
    }

    .team-member h4 {
        font-size: 17px;
        opacity: 0.8;
    }

    .team-member p {
        font-size: 17px;
    }

    .team-member:nth-child(3) {
        grid-column: 1;
        grid-row: 3;
    }

    footer {
        padding: 50px 32px 40px 32px;
        margin-top: 40px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-column h3 {
        font-size: 20px;
        position: relative;
        padding-right: 30px;
    }

    /* Footer columns except first - collapsible */
    .footer-column:not(:first-child) h3 {
        cursor: pointer;
    }

    .footer-column:not(:first-child) h3::after {
        content: '';
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%) rotate(0deg);
        width: 16px;
        height: 16px;
        background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M7 10l5 5 5-5z"/></svg>');
        background-size: contain;
        background-repeat: no-repeat;
        transition: transform 0.3s ease;
    }

    .footer-column:not(:first-child).active h3::after {
        transform: translateY(-50%) rotate(180deg);
    }

    /* First column - always visible */
    .footer-column:first-child .footer-menu,
    .footer-column:first-child .contact-list {
        max-height: none;
        overflow: visible;
    }

    /* Other columns - collapsible */
    .footer-column:not(:first-child) .footer-menu,
    .footer-column:not(:first-child) .contact-list {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .footer-column:not(:first-child).active .footer-menu,
    .footer-column:not(:first-child).active .contact-list {
        max-height: 500px;
    }

    .footer-menu li a,
    .contact-list li {
        font-size: 16px;
    }

    .faq-question {
        font-size: 14px;
        font-weight: 300;
        padding-right: 25px;
        color: #444F31;
    }

    .faq-question:hover {
        color: #444F31;
    }

    .faq-question.active {
        color: #444F31;
    }

    .faq-answer p {
        font-size: 17px;
        line-height: 1.6;
    }
}