/* Baskartor och återställningar */
:root {
    /* Primära färger */
    --primary-color: #5cb85c;
    --primary-dark: #449d44;
    --primary-light: #80c780;
    
    /* Sekundära färger */
    --secondary-color: #3498db;
    --secondary-dark: #2980b9;
    --secondary-light: #5faee3;
    
    /* Neutrala färger */
    --dark: #333333;
    --medium-dark: #666666;
    --medium: #999999;
    --medium-light: #cccccc;
    --light: #f5f5f5;
    --white: #ffffff;
    
    /* Typografi */
    --heading-font: 'Montserrat', sans-serif;
    --body-font: 'Poppins', sans-serif;
    
    /* Skuggor */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 8px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 16px rgba(0,0,0,0.1);
    
    /* Radier */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    
    /* Övergångar */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color var(--transition-normal);
}

a:hover {
    color: var(--primary-dark);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    line-height: 1.3;
    margin-bottom: 0.5em;
}

h1 {
    font-size: 3rem;
    font-weight: 700;
}

h2 {
    font-size: 2.5rem;
    font-weight: 600;
}

h3 {
    font-size: 1.8rem;
    font-weight: 600;
}

h4 {
    font-size: 1.3rem;
    font-weight: 600;
}

p {
    margin-bottom: 1rem;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-header h2:after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.section-header p {
    font-size: 1.2rem;
    color: var(--medium-dark);
    max-width: 700px;
    margin: 0 auto;
}

.section-header.light h2, .section-header.light p {
    color: var(--white);
}

.section-header.light h2:after {
    background-color: var(--white);
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-normal);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.9rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    color: var(--white);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: var(--secondary-dark);
    color: var(--white);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Huvudhuvud - Header */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--white);
    padding: 15px 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

.main-header.scrolled {
    padding: 10px 0;
    box-shadow: var(--shadow-md);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: block;
}

.logo img {
    height: 50px;
    transition: height var(--transition-normal);
}

.main-header.scrolled .logo img {
    height: 40px;
}

.main-nav ul {
    display: flex;
    gap: 30px;
}

.main-nav a {
    color: var(--dark);
    font-weight: 500;
    position: relative;
}

.main-nav a:not(.btn):after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width var(--transition-normal);
}

.main-nav a:not(.btn):hover:after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px 0;
    background-color: var(--dark);
    transition: all var(--transition-normal);
}

/* 1. Hero-sektion */
.hero {
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--light) 0%, #e0f7e0 100%);
    margin-top: 80px;
}

.energy-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('images/energy.jpg') repeat;
    opacity: 0.1;
    animation: flow 15s linear infinite;
}

@keyframes flow {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 100px 100px;
    }
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-content {
    max-width: 600px;
}

.hero h1 {
    margin-bottom: 20px;
    font-size: 3.5rem;
    line-height: 1.2;
    color: var(--dark);
}

.hero .tagline {
    font-size: 1.5rem;
    color: var(--medium-dark);
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    max-width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    transform: perspective(1000px) rotateY(-15deg);
    transition: transform var(--transition-normal);
}

.hero-image img:hover {
    transform: perspective(1000px) rotateY(0deg);
}

/* 2. Näringslära som livsstil */
.nutrition-lifestyle {
    background-color: var(--white);
    padding: 100px 0;
}

.principles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.principle-card {
    background-color: var(--light);
    border-radius: var(--radius-lg);
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-normal);
}

.principle-card:hover {
    transform: translateY(-10px);
}

.principle-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.principle-card h3 {
    margin-bottom: 15px;
    color: var(--dark);
}

.principle-card p {
    color: var(--medium-dark);
}

.icons-row {
    display: flex;
    justify-content: space-around;
    margin: 50px 0;
}

.icon-item {
    text-align: center;
    width: 150px;
}

.icon-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--primary-color);
    padding: 5px;
    margin-bottom: 10px;
}

.icon-item span {
    display: block;
    font-weight: 500;
    color: var(--dark);
}

.not-diet {
    background-color: var(--primary-light);
    padding: 30px;
    border-radius: var(--radius-lg);
    text-align: center;
    color: var(--white);
    max-width: 800px;
    margin: 0 auto;
}

.not-diet h3 {
    margin-bottom: 10px;
}

/* 3. Din energi - ditt val */
.energy-choice {
    background-color: #f9f9f9;
    position: relative;
}

.energy-choice:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom right, var(--white) 0%, var(--white) 50%, transparent 50%, transparent 100%);
}

.energy-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.energy-card {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-normal);
}

.energy-card:hover {
    transform: translateY(-10px);
}

.card-image {
    height: 200px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.energy-card:hover .card-image img {
    transform: scale(1.05);
}

.card-content {
    padding: 25px;
    position: relative;
}

.card-content h3 {
    color: var(--dark);
    margin-bottom: 15px;
}

.card-content p {
    color: var(--medium-dark);
    margin-bottom: 20px;
}

.btn-examples {
    background-color: transparent;
    border: none;
    color: var(--primary-color);
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
}

.btn-examples:after {
    content: '\f107';
    font-family: 'Font Awesome 5 Free';
    margin-left: 5px;
    font-weight: 900;
    transition: transform var(--transition-normal);
}

.btn-examples.active:after {
    transform: rotate(180deg);
}

.examples-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-normal);
}

.examples-content.active {
    max-height: 200px;
}

.examples-content ul {
    list-style: disc;
    margin-left: 20px;
    margin-top: 15px;
}

.examples-content li {
    margin-bottom: 5px;
    color: var(--medium-dark);
}

/* 4. Hur vi arbetar */
.how-we-work {
    background-color: var(--white);
    padding: 120px 0;
}

.process-timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto 60px;
}

.process-timeline:before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 3px;
    background-color: var(--primary-light);
    transform: translateX(-50%);
}

.process-step {
    display: flex;
    margin-bottom: 80px;
    position: relative;
    opacity: 0.5;
    transition: opacity var(--transition-normal);
}

.process-step.active {
    opacity: 1;
}

.process-step:nth-child(odd) {
    flex-direction: row-reverse;
}

.step-number {
    position: absolute;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    z-index: 1;
    box-shadow: var(--shadow-md);
}

.step-content {
    width: 45%;
    padding: 30px;
    background-color: var(--light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.step-image {
    width: 45%;
}

.step-image img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.cta-centered {
    text-align: center;
    margin-top: 50px;
}

/* 5. Produkter */
.products {
    background-color: var(--light);
    position: relative;
}

.products:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom left, var(--white) 0%, var(--white) 50%, transparent 50%, transparent 100%);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.product-card {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    position: relative;
}

.product-card.featured:before {
    content: 'Populär';
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--primary-color);
    color: white;
    padding: 5px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 1;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.product-image {
    height: 200px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-details {
    padding: 25px;
}

.product-details h3 {
    margin-bottom: 10px;
}

.product-details p {
    color: var(--medium-dark);
    margin-bottom: 15px;
}

.product-price {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 20px;
}

/* 6. Omdömen */
.reviews {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 100px 0;
    position: relative;
}

.reviews:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom right, var(--light) 0%, var(--light) 50%, transparent 50%, transparent 100%);
}

.reviews-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.review-slide {
    display: none;
    padding: 20px;
}

.review-slide.active {
    display: block;
    animation: fadeIn 0.8s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.review-content {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-md);
}

.review-quote {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 20px;
    position: relative;
    padding: 0 20px;
}

.review-quote:before {
    content: '\f10d';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    top: -10px;
    left: -5px;
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.3);
}

.reviewer {
    display: flex;
    align-items: center;
}

.reviewer img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 15px;
}

.reviewer strong {
    display: block;
    font-weight: 600;
}

.reviewer span {
    font-size: 0.9rem;
    opacity: 0.8;
}

.reviews-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
}

.prev-review, .next-review {
    background-color: transparent;
    border: none;
    color: var(--white);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px 10px;
}

.review-dots {
    display: flex;
    gap: 10px;
    margin: 0 20px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: background-color var(--transition-normal);
}

.dot.active {
    background-color: var(--white);
}

/* 7. Jämför före och efter */
.before-after {
    background-color: var(--white);
    padding: 100px 0;
    position: relative;
}

.before-after:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom left, var(--primary-color) 0%, var(--primary-color) 50%, transparent 50%, transparent 100%);
}

.comparison-slider {
    max-width: 800px;
    margin: 0 auto 60px;
}

.comparison-container {
    position: relative;
    height: 400px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.before-image, .after-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.after-image {
    width: 50%;
    overflow: hidden;
}

.before-image img, .after-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.before-image .label, .after-image .label {
    position: absolute;
    top: 20px;
    color: var(--white);
    background-color: rgba(0, 0, 0, 0.6);
    padding: 5px 15px;
    border-radius: var(--radius-sm);
    font-weight: 600;
}

.before-image .label {
    right: 20px;
}

.after-image .label {
    left: 20px;
}

.slider-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    background-color: var(--white);
    transform: translateX(-50%);
    cursor: ew-resize;
    z-index: 2;
}

.slider-handle:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--white);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-handle i {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8rem;
    color: var(--dark);
}

.slider-handle i:first-child {
    left: -4px;
}

.slider-handle i:last-child {
    right: -4px;
}

.changes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.change-item {
    text-align: center;
    padding: 30px;
    background-color: var(--light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-normal);
}

.change-item:hover {
    transform: translateY(-10px);
}

.change-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

/* 8. Prenumeration */
.subscription {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 80px 0;
    position: relative;
}

.subscription:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom right, var(--white) 0%, var(--white) 50%, transparent 50%, transparent 100%);
}

.subscription-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.subscription h2 {
    margin-bottom: 15px;
}

.subscription p {
    margin-bottom: 30px;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.form-group {
    position: relative;
}

.newsletter-form input {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: var(--radius-md);
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--white);
    font-size: 1rem;
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.newsletter-form button {
    width: 100%;
}

.subscription .small {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* 9. Kontakt och FAQ */
.contact {
    background-color: var(--light);
    padding: 100px 0;
    position: relative;
}

.contact:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom left, var(--primary-color) 0%, var(--primary-color) 50%, transparent 50%, transparent 100%);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.contact-form-container h2, .faq-container h2 {
    margin-bottom: 20px;
}

.contact-form {
    background-color: var(--white);
    padding: 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--medium-light);
    border-radius: var(--radius-md);
    font-family: var(--body-font);
    font-size: 1rem;
    transition: border-color var(--transition-normal);
}

.contact-form input:focus, .contact-form textarea:focus {
    border-color: var(--primary-color);
    outline: none;
}

.accordion {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.accordion-item {
    border-bottom: 1px solid var(--medium-light);
}

.accordion-item:last-child {
    border-bottom: none;
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    transition: background-color var(--transition-normal);
}

.accordion-header:hover {
    background-color: var(--light);
}

.accordion-header h3 {
    margin: 0;
    font-size: 1.1rem;
}

.accordion-icon i {
    font-size: 1rem;
    color: var(--medium-dark);
    transition: transform var(--transition-normal);
}

.accordion-item.active .accordion-icon i {
    transform: rotate(45deg);
    color: var(--primary-color);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-normal);
}

.accordion-item.active .accordion-content {
    max-height: 200px;
}

.accordion-content p {
    padding: 0 20px 20px;
    color: var(--medium-dark);
}

.map-container {
    margin-top: 40px;
}

.map-container h3 {
    margin-bottom: 20px;
}

#map {
    height: 400px;
    border-radius: var(--radius-lg);
    margin-bottom: 20px;
    box-shadow: var(--shadow-md);
}

address {
    font-style: normal;
    line-height: 1.8;
    color: var(--medium-dark);
}

address a {
    color: var(--primary-color);
}

/* Footer */
.footer {
    background-color: var(--dark);
    color: var(--white);
    padding: 80px 0 30px;
    position: relative;
}

.footer:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom right, var(--light) 0%, var(--light) 50%, transparent 50%, transparent 100%);
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 2fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-logo img {
    height: 50px;
    margin-bottom: 15px;
}

.footer-logo p {
    opacity: 0.8;
}

.footer-nav h4 {
    margin-bottom: 20px;
    color: var(--white);
}

.footer-nav ul li {
    margin-bottom: 10px;
}

.footer-nav a {
    color: var(--medium-light);
    transition: color var(--transition-normal);
}

.footer-nav a:hover {
    color: var(--white);
}

.footer-newsletter h4 {
    margin-bottom: 20px;
}

.footer-form {
    display: flex;
    margin-bottom: 10px;
}

.footer-form input {
    flex: 1;
    padding: 10px 15px;
    border: none;
    border-radius: var(--radius-md) 0 0 var(--radius-md);
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.footer-form button {
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 0 15px;
    cursor: pointer;
    transition: background-color var(--transition-normal);
}

.footer-form button:hover {
    background-color: var(--primary-dark);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
}

.footer-bottom p {
    opacity: 0.6;
    font-size: 0.9rem;
}

/* Responsivitet */
@media (max-width: 1200px) {
    .container {
        padding: 0 40px;
    }
    
    h1 {
        font-size: 2.8rem;
    }
    
    h2 {
        font-size: 2.2rem;
    }
}

@media (max-width: 992px) {
    .hero .container, 
    .energy-cards, 
    .products-grid, 
    .changes-grid, 
    .contact-grid,
    .footer-top {
        grid-template-columns: 1fr 1fr;
    }
    
    .principles-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .process-timeline:before {
        left: 20px;
    }
    
    .process-step {
        flex-direction: row !important;
    }
    
    .step-number {
        left: 20px;
    }
    
    .step-content, .step-image {
        width: calc(100% - 50px);
        margin-left: 50px;
    }
    
    .energy-cards > :last-child,
    .products-grid > :last-child {
        grid-column: span 2;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .footer-logo, .footer-newsletter {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 0.95rem;
    }
    
    section {
        padding: 60px 0;
    }
    
    h1 {
        font-size: 2.3rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    .main-nav {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: var(--white);
        padding: 20px;
        box-shadow: var(--shadow-md);
        transform: translateY(-100%);
        transition: transform var(--transition-normal);
        z-index: 999;
    }
    
    .main-nav.active {
        transform: translateY(0);
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 15px;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .hero {
        min-height: auto;
        height: auto;
        padding: 100px 0;
    }
    
    .hero .container,
    .energy-cards,
    .products-grid,
    .changes-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .energy-cards > :last-child,
    .products-grid > :last-child {
        grid-column: span 1;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .hero-buttons .btn {
        width: 100%;
        text-align: center;
    }
    
    .comparison-container {
        height: 300px;
    }
    
    .footer-top {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-logo, .footer-newsletter {
        grid-column: span 1;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 20px;
    }
    
    .section-header {
        margin-bottom: 40px;
    }
    
    .icons-row {
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }
    
    .footer-form {
        flex-direction: column;
    }
    
    .footer-form input {
        border-radius: var(--radius-md);
        margin-bottom: 10px;
    }
    
    .footer-form button {
        border-radius: var(--radius-md);
        padding: 10px;
    }
}

/* Animationer */
@keyframes slideInRight {
    from { transform: translateX(100px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideInLeft {
    from { transform: translateX(-100px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeInUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.animate-in {
    opacity: 0;
}

.animate-in.visible {
    animation: fadeInUp 0.8s ease forwards;
}

.animate-right.visible {
    animation: slideInRight 0.8s ease forwards;
}

.animate-left.visible {
    animation: slideInLeft 0.8s ease forwards;
}

/* Style för kakor-policy, sekretess och villkor sidor */
.page {
    margin-top: 80px;
    padding: 80px 0;
}

.page-header {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 50px 0;
    margin-bottom: 50px;
}

.page-content {
    max-width: 800px;
    margin: 0 auto;
}

.page-content h2 {
    margin-top: 40px;
    margin-bottom: 20px;
}

.page-content p, .page-content ul, .page-content ol {
    margin-bottom: 20px;
}

.page-content ul, .page-content ol {
    margin-left: 20px;
}

.page-content ul li, .page-content ol li {
    margin-bottom: 10px;
}

/* Success page */
.success-page {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 80px;
}

.success-container {
    max-width: 600px;
    padding: 50px;
    background-color: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.success-icon {
    font-size: 5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.success-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}