/* Tom CSS-fil */

:root {
    --primary-green: #4CAF50; /* Main green */
    --dark-green: #388E3C;    /* Darker green for hover/accents */
    --light-green: #C8E6C9;   /* Lighter green for backgrounds */
    --accent-yellow: #ffd33d; /* Accent yellow */
    --primary-text: #212121;  /* Dark grey for text */
    --secondary-text: #757575;/* Medium grey for less important text */
    --background-light: #FFFFFF;
    --background-grey: #f4f6f8;
    --border-color: #E0E0E0;

    --font-primary: 'Poppins', sans-serif;
}

/* Grundläggande body-stilar och reset kommer här */

/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    line-height: 1.7;
    color: var(--primary-text);
    background-color: var(--background-light);
    font-size: 16px; /* Base font size */
}

.container {
    width: 90%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header, Footer, Main content styling comes next */

/* BUTTONS (Basic button styling first) */
.button {
    display: inline-flex; /* Use flex for icon alignment */
    align-items: center;
    gap: 0.5rem; /* Space between icon and text */
    padding: 0.8rem 1.8rem;
    border-radius: 50px; /* Pill shape */
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 1rem;
    border: none;
    background-color: var(--primary-green);
    color: white;
    text-decoration: none; /* Ensure links look like buttons */
}

.button:hover {
    background-color: var(--dark-green);
    transform: translateY(-2px);
}

/* HEADER */
.site-header {
    background-color: var(--background-light);
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    display: block; /* Ensure link takes up image space */
}

/* No specific styling needed for .logo img if using inline style for height */

.nav-button {
    padding: 0.6rem 1.5rem; /* Slightly smaller padding for nav button */
    box-shadow: none; /* Remove default shadow for nav button */
    /* Add transition for hover effect */
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.nav-button:hover {
    background-color: var(--accent-yellow); /* Yellow background on hover */
    color: var(--primary-text); /* Dark text on hover */
    transform: translateY(-2px); /* Keep subtle lift */
    /* No extra shadow needed here probably */
}

/* Wrapper for nav button and language switcher */
.nav-controls {
    display: flex;
    align-items: center;
    gap: 1.5rem; /* Space between switcher and button */
}

/* Language switcher style */
.language-switcher a {
    color: var(--secondary-text);
    font-size: 0.9rem;
    text-decoration: none;
    padding: 5px 10px; /* Adjusted padding */
    border: 1px solid var(--border-color); /* Add subtle border */
    border-radius: 4px;
    transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

.language-switcher a:hover {
    color: var(--primary-text);
    background-color: var(--background-grey);
    border-color: #ccc; /* Slightly darker border on hover */
}

/* FOOTER */
footer { /* Targeting the footer element directly */
    background-color: var(--primary-text);
    color: #bdc3c7;
    padding: 2rem 0;
    text-align: center;
    font-size: 0.9rem;
    margin-top: 0; /* Explicitly set margin-top to 0 */
}

footer p {
    margin-bottom: 0.5rem;
    color: #bdc3c7;
}

/* Hero section styling comes next */

/* TYPOGRAPHY (Basic heading/paragraph styles) */
h1, h2, h3 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--primary-text);
    letter-spacing: -1.5px; /* Added negative letter spacing to all headings */
}

h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size */
    font-weight: 600; /* Changed from 700 */
    /* letter-spacing: -1.5px; /* Removed - Moved to shared h1,h2,h3 rule */
    /* Remove gradient */
    /* background-image: linear-gradient(45deg, var(--primary-green), var(--dark-green)); */
    /* background-clip: text; */
    /* -webkit-background-clip: text; */ /* For Safari compatibility */
    color: var(--primary-text); /* Restore text color */
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1); /* Add subtle shadow */
}

h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    text-align: center;
    margin-bottom: 3rem;
}

h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

p {
    margin-bottom: 1rem;
    color: var(--secondary-text);
}

a {
    color: var(--primary-green);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--dark-green);
}

/* HERO SECTION */
.hero {
    background-color: var(--background-grey);
    padding: 6rem 0;
    text-align: center; /* Center text on small screens */
    overflow: hidden;
}

.hero-container {
    display: flex;
    flex-direction: column; /* Stack elements vertically on small screens */
    align-items: center;
    gap: 2rem;
}

.hero-text {
    max-width: 700px; /* Limit text width on larger screens */
}

.hero .subtitle {
    font-size: 1.15rem;
    color: var(--secondary-text);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;  /* Centering the subtitle */
    margin-right: auto;
}

.hero .cta-button {
    margin-bottom: 0.5rem; /* Space below button */
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3); /* Add shadow to main CTA */
    /* Ensure transition applies to the button itself */
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.hero .cta-button:hover {
     background-color: var(--accent-yellow); /* Change to accent yellow on hover */
     color: var(--primary-text); /* Change text color for contrast */
     transform: translateY(-3px); /* Keep lift */
     box-shadow: 0 7px 22px rgba(255, 211, 61, 0.4); /* Adjust shadow color slightly for yellow? */
}

.hero .cta-button i {
    font-size: 1.2em; /* Slightly larger icon */
}

.availability-note {
    font-size: 0.9rem;
    color: var(--secondary-text);
    margin-top: 1rem;
}

/* Styling for Launch Status text in Hero */
.launch-status {
    font-size: 1rem;
    color: var(--primary-text); /* Make it a bit more prominent */
    margin-top: 1.5rem; /* Add space above */
}

.launch-status strong {
    color: var(--primary-green); /* Highlight the main status */
}

.hero-image {
    flex: 1; /* Allow image to take available space */
    text-align: right;
    /* overflow: hidden; */ /* Let the carousel container handle overflow */
}

/* Carousel specific styles */
.carousel {
    max-width: 100%; /* Ensure carousel doesn't overflow its container */
    overflow: hidden;
    border-radius: 10px; /* Apply border-radius to the container */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); /* Apply shadow to the container */
    position: relative; /* Needed if adding absolute positioned controls later */
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out; /* Smooth slide transition */
    /* Width will be set by JS based on number of slides */
}

.carousel-slide {
    min-width: 100%; /* Each slide takes full width */
    box-sizing: border-box;
}

.carousel-slide img {
    max-width: 100%;
    height: auto;
    max-height: 550px; /* Reuse max height */
    display: block; /* Prevent extra space */
    /* border-radius and box-shadow moved to .carousel container */
}

/* Remove the zoom animation */
/* @keyframes subtleZoom {
    from {
        transform: scale(1); 
    }
    to {
        transform: scale(1.3); 
    }
} */

/* Remove reference to zoom animation from img */
/* .hero-image img or .carousel-slide img might have had 'animation: subtleZoom...' - ensure it's removed */
.carousel-slide img {
    /* Add other styles back if they were removed */
     max-width: 100%;
    height: auto;
    max-height: 550px; 
    display: block; 
}

/* Responsive styles for hero section */
@media (min-width: 768px) {
    .hero {
        text-align: left; /* Align text left on larger screens */
    }
    .hero-container {
        flex-direction: row; /* Place text and image side-by-side */
        align-items: center;
        gap: 3rem;
    }
    .hero-text {
        flex: 1; /* Allow text to take available space */
        max-width: none;
        text-align: left;
    }
     .hero-image {
        flex: 1; /* Allow image to take available space */
        text-align: right;
    }
    .hero .subtitle {
        margin-left: 0; /* Align subtitle left */
        margin-right: 0;
    }
}

/* Features section styling comes next */

/* FEATURES SECTION */
.features {
    padding: 5rem 0;
    background-color: var(--background-light);
}

.feature-grid {
    display: grid;
    /* Create responsive columns: min 280px wide, max 1fr */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem; /* Space between grid items */
    text-align: center;
}

.feature-item {
    padding: 2rem 1.5rem;
    background-color: var(--background-light);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px); /* Slight lift effect */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08); /* Soft shadow on hover */
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary-green); /* Use primary green for icons */
    margin-bottom: 1.5rem;
    display: inline-block; /* Needed for margin bottom to work */
}

/* Download CTA section styling comes next */

/* DOWNLOAD CTA SECTION */
.download-cta {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--dark-green) 100%);
    color: white;
    text-align: center;
}

.cta-container {
    max-width: 700px; /* Constrain width for readability */
    margin: 0 auto; /* Center the container */
}

.download-cta h2 {
    color: white; /* Ensure heading is white */
    margin-bottom: 1rem;
}

.download-cta p {
    color: rgba(255, 255, 255, 0.9); /* Slightly transparent white */
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.cta-button-large {
    padding: 1rem 2.5rem; /* Larger padding */
    font-size: 1.1rem; /* Larger font size */
    background-color: var(--accent-yellow); /* Use accent yellow */
    color: var(--primary-text); /* Dark text on yellow */
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2); /* Stronger shadow */
}

.cta-button-large:hover {
    background-color: #e6b800; /* Darker yellow on hover */
    color: var(--primary-text);
    transform: translateY(-3px); /* Slightly more lift */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

.cta-button-large i {
    font-size: 1.2em; /* Match icon size if needed, already covered by .button i */
}

/* Styling for Launch Status text in Download CTA */
.launch-status-cta {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.95); /* Keep it light */
    margin-top: 1.5rem; /* Add space above */
}

.launch-status-cta strong {
    color: var(--accent-yellow); /* Highlight with yellow */
}

/* Final adjustments and responsive checks next */

/* RESPONSIVE STYLES */

/* Adjust header layout on smaller screens */
@media (max-width: 767px) {
    .main-nav {
        flex-direction: column; /* Stack logo and controls */
        gap: 1rem; /* Add some space between logo and controls */
    }
    .nav-controls {
        flex-direction: column-reverse; /* Stack switcher above button on mobile */
        gap: 0.8rem;
    }

    /* Reduce font size for nav button on small screens */
    .nav-button {
        font-size: 0.9rem;
    }

    /* Reduce font size for other CTA buttons on small screens */
    .hero .cta-button {
        font-size: 0.9rem;
    }

    .download-cta .cta-button-large {
        font-size: 1rem; /* Keep slightly larger, but reduced */
        padding: 0.9rem 2rem; /* Adjust padding slightly too */
    }

    /* Optional: Adjust padding for sections on smaller screens if needed */
    .hero,
    .features,
    .download-cta {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }

    h1 {
        font-size: 2.2rem; /* Slightly smaller h1 on mobile */
    }

    h2 {
        font-size: 1.8rem; /* Slightly smaller h2 on mobile */
        margin-bottom: 2rem;
    }
}

/* About Slider Section */
.about-slider {
    padding: 60px 0;
    /* background-color: #f9f9f9; /* Light background for contrast */
    background-color: var(--background-light); /* Change to white */
}

.about-slider h2 {
    text-align: center;
    margin-bottom: 40px;
    color: #333;
}

/* Style for the brand name within the H2 */
.about-slider h2 .headline-brand {
    font-weight: 700; /* Make it bolder */
    color: var(--primary-green); /* Use primary brand color */
}

/* New wrapper for positioning buttons outside overflow */
.slider-wrapper {
    position: relative;
    max-width: 1140px; /* Match container width */
    margin: 0 auto; /* Center align */
}

.slider-container {
    position: relative; /* Keep relative for potential future use */
    /* max-width: 1140px; /* Removed from here, now on wrapper */
    /* margin: 0 auto; /* Removed from here, now on wrapper */
    overflow: hidden; /* Hide non-active slides */
    border-radius: 8px;
    /* box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08); /* Adjusted shadow */
    /* Added margin to ensure wrapper calculates height correctly if needed */
    /* margin-bottom: 10px; Maybe not needed */
}

.slider-track {
    display: flex;
    transition: transform 0.5s ease-in-out; /* Smooth transition */
}

.slider-slide {
    min-width: 100%;
    box-sizing: border-box;
    display: none; /* Hide slides by default */
    padding: 40px; /* Keep padding around content */
    background-color: #fff;
    align-items: center; /* Vertically center content if needed */
    gap: 50px; /* Increased space between image and text */
}

.slider-slide.active {
    display: flex; /* Show the active slide using flex */
    /* Adjust flex direction for mobile if needed via media query */
}

.slide-image {
    flex: 1.5; /* Give image more space relative to text */
    text-align: center;
}

.slide-image img {
    max-width: 100%;
    /* Removed fixed max-height for desktop */
    height: auto;
    border-radius: 8px;
}

.slide-content {
    flex: 1; /* Text takes remaining space */
}

.slide-content h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.slide-content p {
    color: #555;
    line-height: 1.6;
}

.slider-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    /* background-color: rgba(0, 0, 0, 0.5); */
    background-color: var(--primary-green); /* Use primary green */
    color: white;
    border: none;
    /* padding: 10px 15px; */
    padding: 12px 17px; /* Adjusted padding */
    cursor: pointer;
    border-radius: 50%;
    z-index: 10;
    font-size: 1.2rem;
    transition: background-color 0.3s ease;
}

.slider-button:hover {
    /* background-color: rgba(0, 0, 0, 0.8); */
    background-color: var(--dark-green); /* Darker green on hover */
}

.slider-button.prev {
    /* left: 0; /* Position relative to wrapper edge */
    left: -20px; /* Moved further out */
}

.slider-button.next {
    /* right: 0; /* Position relative to wrapper edge */
    right: -20px; /* Moved further out */
}

/* Responsive adjustments for slider */
@media (max-width: 768px) {
    .slider-wrapper {
         max-width: 100%; /* Allow full width on mobile */
         /* Add padding if buttons need space from screen edge */
         padding: 0 25px; /* Example: Pushes buttons inwards */
         box-sizing: border-box; /* Include padding in width */
    }
    .slider-container {
        max-width: 100%; /* Let container fill the padded wrapper */
    }
    .slider-slide.active {
        flex-direction: column; /* Stack image and text */
        padding: 20px; /* Reduce padding slightly */
        gap: 20px; /* Reduce gap */
    }
    .slide-image {
        flex: none; /* Reset flex for stacking */
        width: 100%; /* Ensure image container takes full width */
    }
    .slide-image img {
        max-height: 300px; /* Keep mobile max-height constraint */
        width: auto; /* Let height constraint dictate width if needed */
        max-width: 100%; /* Ensure image doesn't overflow */
        margin: 0 auto; /* Center image if it's narrower than container */
    }
    .slide-content {
        flex: none; /* Reset flex for stacking */
        margin-top: 15px; /* Adjust top margin */
        text-align: center;
    }
    .slider-button {
        /* padding: 8px 13px; /* Slightly smaller buttons */
        padding: 10px 15px; /* Adjusted mobile padding */
        font-size: 1rem;
    }
     .slider-button.prev {
        /* left: 5px; /* Adjusted for wrapper padding */
        left: -10px; /* Moved further out on mobile */
    }
    .slider-button.next {
        /* right: 5px; /* Adjusted for wrapper padding */
        right: -10px; /* Moved further out on mobile */
    }
}

/* Video Demo Section */
.video-demo {
    /* padding: 60px 0; */
    padding: 80px 0; /* Increased padding */
    /* background-color: var(--background-light); /* Keep consistent white background */
    background-color: var(--background-grey); /* Use light grey background */
    text-align: center;
}

.video-demo h2 {
    margin-bottom: 20px; /* Reduced margin below H2 */
}

/* Style for the description paragraph */
.video-demo p.video-description {
    max-width: 600px; /* Limit width */
    margin: 0 auto 40px auto; /* Center and add margin below */
    color: var(--secondary-text);
    font-size: 1.1rem;
    line-height: 1.7;
}

/* Style for the highlight within the H2 */
.video-demo h2 .headline-highlight {
    font-weight: 700; /* Bold */
    font-style: italic; /* Italic */
    color: var(--primary-green); /* Use primary brand color */
}

/* Responsive Video Wrapper */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    /* max-width: 960px; /* Limit max width, adjust as needed */
    max-width: 880px; /* Reduced max width */
    margin: 0 auto;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08); /* Consistent shadow */
    border-radius: 8px; /* Consistent radius */
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none; /* Remove default border */
}

/* Ensure footer links are styled */
.footer-links a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-yellow);
} 