/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2c2c2c;
    --secondary-color: #f5f5f0;
    --accent-color: #d4a574;
    --text-dark: #1a1a1a;
    --text-light: #666;
    --text-white: #ffffff;
    --wood-light: #f0e8d8;
    --wood-medium: #e5d5b8;
    --spacing-unit: 1rem;
    --max-width: 1200px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--secondary-color);
    overflow-x: hidden;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
}

.navbar .container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-brand {
    background: transparent !important;
    padding: 0;
}

.logo {
    height: 50px;
    width: auto;
    object-fit: contain;
    filter: brightness(0.7) 
            sepia(0.5) 
            hue-rotate(20deg) 
            saturate(1.2);
    mix-blend-mode: multiply;
    background: transparent;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-menu a:hover {
    color: var(--accent-color);
}

.nav-menu a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: var(--text-dark);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e8d5b7;
    margin-top: 10px;
    padding: 4rem 0;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    max-width: 1200px;
    width: 100%;
}

.hero-image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 180px;
}

.hero-profile-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    aspect-ratio: 3/4;
    object-fit: cover;
    border-radius: 2px;
    background: white;
    padding: 15px 15px 60px 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15), 
                0 2px 4px rgba(0, 0, 0, 0.1);
    transform: rotate(-5deg);
    transition: transform 0.3s ease;
}

.hero-profile-image:hover {
    transform: rotate(-2deg) scale(1.02);
}

.contact-overlay-image {
    position: absolute;
    top: 80px;
    left: 10px;
    max-width: 280px;
    height: auto;
    z-index: 10;
    transform: rotate(-18deg);
    filter: drop-shadow(2px 2px 6px rgba(0, 0, 0, 0.3));
}

.hero-text-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
}

.hero-intro-text {
    margin-top: 2rem;
    padding-top: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.hero-intro-text p:first-child {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.hero-intro-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.hero-logo {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 800px;
    object-fit: contain;
    margin: 0;
    padding: 0;
    margin-bottom: 0;
    filter: brightness(0.7) 
            sepia(0.5) 
            hue-rotate(20deg) 
            saturate(1.2);
    mix-blend-mode: multiply;
    background: transparent !important;
    display: block;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 400;
    color: var(--primary-color);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: clamp(1.2rem, 2vw, 1.8rem);
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-weight: 300;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.hero-description {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Section Styles */
.section {
    padding: 6rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.title-line {
    width: 80px;
    height: 2px;
    background: var(--accent-color);
    margin: 0 auto;
}

/* About Section */
.about-section {
    background: white;
}

#hur-varfor {
    background-color: white;
}

.hur-varfor-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.hur-section,
.varfor-section {
    display: flex;
    flex-direction: column;
}

.hur-varfor-subtitle {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.hur-card {
    background: #e8d5b7;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(232, 213, 183, 0.4), 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hur-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(232, 213, 183, 0.5), 0 4px 12px rgba(0, 0, 0, 0.15);
}

.hur-card p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin: 0;
    font-weight: 500;
}

.varfor-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-light);
}

.about-content {
    display: block;
    max-width: 800px;
    margin: 0 auto;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

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

.checklist li {
    font-size: 1.1rem;
    line-height: 2;
    color: var(--text-light);
    margin-bottom: 1rem;
    padding-left: 2.5rem;
    position: relative;
}

.checklist li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    width: 1.8rem;
    height: 1.8rem;
    background-color: var(--accent-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: bold;
    line-height: 1;
}

.about-image {
    position: relative;
}

.profile-image {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: block;
}

.about-image {
    min-height: 400px;
}

/* Services Section */
.services-section {
    background-color: #e8d5b7;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: white;
    padding: 2.5rem;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.service-card p {
    color: var(--text-light);
    line-height: 1.7;
}

/* Companies Section - MED LÄNKAR */
.companies-section {
    background-color: #e8d5b7;
}

.companies-grid {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 3rem !important;
    margin-top: 2rem;
}

/* Styling för länkarna runt loggorna */
.company-link {
    display: inline-block;
    text-decoration: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
    cursor: pointer;
}

.company-link:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

.company-link:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 4px;
    border-radius: 4px;
}

.company-logo {
    max-width: 200px !important;
    max-height: 100px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    display: block !important;
    opacity: 1;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.company-link:hover .company-logo {
    opacity: 0.85;
}

.company-placeholder {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    background: var(--secondary-color);
    border-radius: 8px;
    color: var(--text-light);
}

.company-placeholder small {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

/* Testimonials Section */
.testimonials-section {
    background-color: white;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonial-card {
    background: white;
    padding: 2rem 0 2rem 2.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(232, 213, 183, 0.4), 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.1);
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 150px;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 1rem;
    left: 1.5rem;
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    color: var(--accent-color);
    opacity: 0.2;
    line-height: 1;
}

.testimonial-text {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    margin-right: 0;
    padding-right: 2.5rem;
    position: relative;
    z-index: 1;
    flex: 1;
    width: 100%;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
    flex-shrink: 0;
    margin-top: auto;
    padding-right: 2.5rem;
    text-align: right;
}

.testimonial-author-info h4 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.25rem;
    text-align: right;
}

.testimonial-author-info p {
    color: var(--text-light);
    font-size: 0.9rem;
    text-align: right;
}

.testimonial-placeholder {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    background: white;
    border-radius: 8px;
    color: var(--text-light);
}

/* Contact Section */
.contact-section {
    background: #e8d5b7;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.contact-info p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.contact-details {
    margin-top: 2rem;
}

.contact-details p {
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.contact-details a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-details a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* LinkedIn Link Styling - EXTRA AGGRESSIV FIX */
.linkedin-link {
    margin-top: 1rem;
    padding-top: 1rem;
}

.linkedin-icon-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--accent-color);
    transition: all 0.3s ease;
    padding: 0.5rem 0;
}

.linkedin-icon-link:hover {
    color: #0077b5;
    transform: translateX(3px);
}

.linkedin-icon {
    width: 24px !important;
    height: 24px !important;
    max-width: 24px !important;
    max-height: 24px !important;
    min-width: 24px !important;
    min-height: 24px !important;
    fill: currentColor;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    display: block !important;
    box-sizing: border-box !important;
}

/* Extra säkerhet - targeta alla möjliga selektorer */
.linkedin-link svg,
.linkedin-link .linkedin-icon,
.linkedin-icon-link svg,
.linkedin-icon-link .linkedin-icon,
svg.linkedin-icon {
    width: 24px !important;
    height: 24px !important;
    max-width: 24px !important;
    max-height: 24px !important;
    min-width: 24px !important;
    min-height: 24px !important;
}

.linkedin-icon-link:hover .linkedin-icon {
    transform: scale(1.1);
    width: 24px !important;
    height: 24px !important;
}

.linkedin-text {
    font-size: 1rem;
    font-weight: 500;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group input,
.form-group textarea {
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background: var(--secondary-color);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

.btn-primary {
    padding: 1rem 2rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

.btn-primary:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
}

.btn-primary:active {
    transform: translateY(0);
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: white;
    padding: 2rem 0;
    text-align: center;
}

.footer p {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-logo {
        max-height: 600px;
    }

    .hur-varfor-content {
        gap: 3rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
        gap: 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        padding: 1rem 0;
    }

    .hamburger {
        display: flex;
    }

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

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

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

    .container {
        padding: 0 1.5rem;
    }

    .section {
        padding: 4rem 0;
    }

    .about-content,
    .contact-content,
    .hero-content,
    .hur-varfor-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-image-wrapper {
        padding-top: 100px;
    }

    .hero-profile-image {
        max-width: 300px;
        transform: rotate(-2deg);
    }

    .contact-overlay-image {
        max-width: 200px;
        top: 60px;
        left: 5px;
    }

    .hero-text-wrapper {
        text-align: center;
    }

    .hero-logo {
        max-height: 400px;
        margin: 0 auto;
    }

    .hur-card {
        padding: 1.5rem;
    }

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

    .hur-varfor-subtitle {
        font-size: 1.5rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .testimonial-card {
        flex-direction: column;
        min-height: auto;
    }

    .testimonial-author {
        min-width: auto;
    }

    .testimonial-card {
        min-height: auto;
    }

    .companies-grid {
        gap: 2rem !important;
    }

    .company-logo {
        max-width: 150px !important;
        max-height: 80px !important;
    }

    .hero-intro-text p {
        font-size: 1rem;
    }

    .about-text p,
    .hur-text p,
    .varfor-text {
        font-size: 1rem;
    }

    .checklist li {
        font-size: 1rem;
        padding-left: 2rem;
    }

    .checklist li::before {
        width: 1.5rem;
        height: 1.5rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .section {
        padding: 3rem 0;
    }

    .hero {
        padding: 2rem 0;
        min-height: auto;
    }

    .hero-image-wrapper {
        padding-top: 50px;
    }

    .hero-profile-image {
        max-width: 250px;
    }

    .contact-overlay-image {
        max-width: 150px;
        top: 40px;
    }

    .hero-logo {
        max-height: 300px;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .hur-varfor-subtitle {
        font-size: 1.25rem;
    }

    .testimonial-card {
        padding: 1.5rem 0 1.5rem 1.5rem;
    }

    .testimonial-text {
        padding-right: 1.5rem;
        font-size: 0.95rem;
    }

    .testimonial-author {
        padding-right: 1.5rem;
    }

    .hur-card {
        padding: 1.25rem;
    }

    .companies-grid {
        gap: 1.5rem !important;
    }

    .company-logo {
        max-width: 120px !important;
        max-height: 60px !important;
    }
}

/* Animation for scroll reveal */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}