/* ========================================
   FONTS
   ======================================== */

@font-face {
    font-family: 'Inter';
    src: url('../assets/fonts/Inter-VariableFont.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('../assets/fonts/Inter-Italic-VariableFont.ttf') format('truetype');
    font-weight: 100 900;
    font-style: italic;
    font-display: swap;
}

/* ========================================
   BASE STYLES
   ======================================== */

*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    max-width: 100vw;
}

html {
    scroll-behavior: smooth;
}

body {
    width: 100%;
}

.navbar-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 9.75rem; /* 156px */
    padding: 0 1rem;
}

.navbar {
    display: flex;
    flex-grow: 1;
    flex-direction: row;
    align-items: center;
}

.logo {
   width: 50%;
   display: flex;
   justify-content: flex-start;

   img {
    width: 40%;
    height: auto;
   }
}

/* Language Switcher */
.lang-switch {
    position: fixed;
    top: 1rem;
    right: 2rem;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem 0.75rem;
    background-color: rgba(26, 108, 54, 0.1);
    border-radius: 0.375rem;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 0.8125rem;
    color: #1A6C36;
    transition: all 0.2s ease;
}

.lang-switch:hover {
    background-color: rgba(26, 108, 54, 0.2);
}

.lang-switch span {
    letter-spacing: 0.05em;
}

.menu-list {
    display: flex;
    gap: 5rem;
    flex-grow: 1;
    flex-direction: row;
    align-items: flex-start;
    justify-content: flex-end;
    list-style: none;
    padding: 0;
    padding-right: 3rem;
    margin: 0;

    li {
        a {
            text-decoration: none;
            font-size: 1.5rem;
            font-weight: 400;
            font-family: 'Inter';
            color: #4B4545;
            white-space: nowrap;
        }
    }
}

.header-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10rem;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

.header-image {
    position: relative;
    
    img {
        display: flex;
        width: 100%;
        height: 100%;
        object-fit: cover;
        clip-path: polygon(
            0% 0%,
            10% 1%,
            25% 2%,
            50% 3%,
            75% 2%,
            90% 1%,
            100% 0%,
            100% 100%,
            90% 99%,
            75% 98%,
            50% 97%,
            25% 98%,
            10% 99%,
            0% 100%
        );
    }
}

.header-text-2-container {
    display: flex;
    gap: 0rem;
}

.header-text {
    position: absolute;
    left: 50%;
    top: 45%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 11;
    gap: 0.75rem;
    max-width: 600px;
    padding: 2rem 3rem;

    h1 {
        font-size: 2.75rem;
        font-weight: 400;
        font-family: 'Inter';
        color: #1A6C36;
        position: relative;
        z-index: 2;
        text-align: center;
        margin: 0;
        white-space: nowrap;
    }

    img {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -60%);
        width: 140%;
        height: 140%;
        min-width: 500px;
        min-height: 400px;
        object-fit: contain;
        z-index: 1;
    }
}

.hero-subtitle {
    font-size: 1.125rem;
    font-weight: 500;
    font-family: 'Inter';
    color: #4B4545;
    text-align: center;
    margin: 0;
    position: relative;
    z-index: 2;
    line-height: 1.5;
}

.hero-cta {
    position: relative;
    top: 5rem;
    background-color: #5A8B6D;
    color: white;
    font-family: 'Inter';
    font-weight: 600;
    font-size: 1.125rem;
    padding: 1rem 2.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
    box-shadow: 0 0.25rem 1rem rgba(90, 139, 109, 0.3);
    position: relative;
    z-index: 2;
    margin-top: 0.5rem;
}

.hero-cta:hover {
    background-color: #4a7a5d;
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1.5rem rgba(90, 139, 109, 0.4);
}

.hero-note {
    position: absolute;
    background-color: white;
    bottom: 0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 45.1875rem; /* 723px / 16 */
    max-width: 90%;
    font-family: 'Istok Web', sans-serif;
    font-weight: 400;
    font-size: 1.5rem; /* 24px / 16 */
    color: #666;
    text-align: center;
    background-color: white;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    z-index: 12;
    margin: 0;
}

.header-text-2 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 1rem;

    p {
        font-family: 'Inter';
        font-weight: 600;
        font-size: 2.25rem;
        color: #5A8B6D;
        text-align: center;
    }
}

.header-text-2-buttons {
    display: grid;
    grid-template-columns: repeat(3, auto);
    gap: 3rem 6rem;
    justify-items: center;
    justify-content: center;
    width: auto;
}

.header-text-2-buttons button,
.header-text-2-buttons a {
    font-family: 'Inter';
    font-weight: 200;
    font-size: 2.5rem;
    color: #322F2F;
    text-decoration: underline;
    background: none;
    border: none;
    cursor: pointer;
}

/* ========================================
   WHY CHOOSE US SECTION
   ======================================== */

.why-choose-us {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 5rem 2rem;
    background: linear-gradient(180deg, #f8faf9 0%, #fff 100%);
    gap: 3rem;
}

.why-choose-us-header {
    text-align: center;
    max-width: 700px;
}

.why-choose-us-header h2 {
    font-family: 'Inter';
    font-weight: 700;
    font-size: 2.5rem;
    color: #1A6C36;
    margin: 0 0 1rem 0;
}

.why-choose-us-header p {
    font-family: 'Inter';
    font-weight: 400;
    font-size: 1.125rem;
    color: #4B4545;
    line-height: 1.6;
    margin: 0;
}

.why-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 1200px;
    width: 100%;
}

.why-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.75rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid rgba(90, 139, 109, 0.1);
}

.why-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(90, 139, 109, 0.15);
}

.why-card-icon {
    font-size: 2.5rem;
    line-height: 1;
}

.why-card h3 {
    font-family: 'Inter';
    font-weight: 600;
    font-size: 1.125rem;
    color: #1A6C36;
    margin: 0;
}

.why-card p {
    font-family: 'Inter';
    font-weight: 400;
    font-size: 0.9375rem;
    color: #4B4545;
    line-height: 1.5;
    margin: 0;
}

.why-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1rem;
}

.why-badge {
    font-family: 'Inter';
    font-weight: 500;
    font-size: 1rem;
    color: #5A8B6D;
    background: rgba(90, 139, 109, 0.1);
    padding: 0.75rem 1.5rem;
    border-radius: 2rem;
}

/* Tablet breakpoint for why cards */
@media (max-width: 1024px) and (min-width: 769px) {
    .why-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ========================================
   TESTIMONIALS SECTION
   ======================================== */

.testimonials {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 5rem 2rem 2rem;
    background: #fff;
    gap: 3rem;
}

.testimonials h2 {
    font-family: 'Inter';
    font-weight: 700;
    font-size: 2.5rem;
    color: #1A6C36;
    margin: 0;
}

.testimonials-grid {
    display: flex;
    gap: 2rem;
    max-width: 900px;
    width: 100%;
    justify-content: center;
}

.logo-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}

.logo-divider img {
   height: 20%;
   width: 20%;
}

.testimonial-card {
    background: linear-gradient(135deg, #f8faf9 0%, #fff 100%);
    border: 1px solid rgba(90, 139, 109, 0.15);
    border-radius: 1rem;
    padding: 2.5rem 2rem;
    flex: 1;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.testimonial-quote {
    font-family: 'Inter';
    font-weight: 500;
    font-size: 1.25rem;
    color: #322F2F;
    line-height: 1.6;
    margin: 0 0 1rem 0;
    font-style: italic;
}

.testimonial-author {
    font-family: 'Inter';
    font-weight: 600;
    font-size: 1rem;
    color: #5A8B6D;
    margin: 0;
}

/* ========================================
   CONTACT SECTION
   ======================================== */

.contact-section {
    display: flex;
    justify-content: center;
    padding: 2rem 2rem 4rem;
    background: linear-gradient(180deg, #f8faf9 0%, #e8f0eb 100%);
}

.contact-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    max-width: 600px;
    text-align: center;
}

.contact-content h2 {
    font-family: 'Inter';
    font-weight: 700;
    font-size: 2rem;
    color: #1A6C36;
    margin: 0;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: 'Inter';
    font-weight: 500;
    font-size: 1.125rem;
    color: #322F2F;
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-item:hover {
    color: #5A8B6D;
}

.contact-icon {
    font-size: 1.25rem;
}

.contact-social {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.contact-social-label {
    font-family: 'Inter';
    font-weight: 500;
    font-size: 0.9375rem;
    color: #666;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-link {
    font-family: 'Inter';
    font-weight: 600;
    font-size: 1rem;
    color: #5A8B6D;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 2px solid #5A8B6D;
    border-radius: 2rem;
    transition: all 0.2s ease;
}

.social-link:hover {
    background-color: #5A8B6D;
    color: white;
}

.social-links-icons {
    display: flex;
    gap: 1rem;
}

.social-icon-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    background-color: #5A8B6D;
    border-radius: 50%;
    color: white;
    transition: all 0.2s ease;
}

.social-icon-link:hover {
    background-color: #1A6C36;
    transform: translateY(-2px);
}

.social-icon-link svg {
    width: 1.375rem;
    height: 1.375rem;
}

/* ========================================
   FOOTER
   ======================================== */

.site-footer {
    background-color: #1A6C36;
    padding: 1rem 2rem;
    text-align: center;
}

.site-footer p {
    color: rgba(255, 255, 255, 0.8);
    font-family: 'Inter';
    font-size: 0.875rem;
    margin: 0;
}

/* ========================================
   SERVICE SECTIONS (shared styles)
   ======================================== */

.service-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    position: relative;
}

.service-image {
    width: 100%;
    padding: 0 5%;
    
    img {
        display: flex;
        width: 100%;
        min-height: 800px;
        object-fit: cover;
        object-position: center center;
        clip-path: polygon(
            0% 0%,
            10% 1%,
            25% 2%,
            50% 3%,
            75% 2%,
            90% 1%,
            100% 0%,
            100% 100%,
            0% 100%
        );
    }
}

/* Service content wrapper - flexbox for alternating layout */
.service-content {
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 1200px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 0 3rem;
    z-index: 10;
}

/* Reverse direction for alternating sections */
.storstad .service-content,
.kontorstad .service-content {
    flex-direction: row-reverse;
}

.service-buttons {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    flex-shrink: 0;

    button,
    .service-btn-boka,
    .service-btn-pris {
        padding: 1rem 3rem;
        border: none;
        border-radius: 0.5rem;
        font-size: 1.75rem;
        font-family: 'Inter';
        font-weight: 500;
        cursor: pointer;
        transition: all 0.2s ease;
        box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.15);
        text-decoration: none;
        text-align: center;
    }

    .service-btn-boka {
        background-color: #5A8B6D;
        color: white;
    }

    .service-btn-pris {
        background-color: white;
        color: #5A8B6D;
    }
}

.service-card {
    width: 34rem;
    max-width: 50%;
    height: auto;
    background-color: white;
    border-radius: 0.75rem;
    padding: 3.5rem 3rem;
    box-shadow: 0 0.25rem 1.25rem rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 1rem;
}

.service-card-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    width: 100%;
    font-size: 1.25rem;

    > p:first-child {
        text-align: center;
        width: 100%;
        font-family: 'Inter';
        font-weight: 400;
        font-style: italic;
    }

    > p:nth-child(2) {
        font-weight: 700;
    }

    ul {
        list-style: none;
        padding-left: 0;
        margin: 0;
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }

    ul li {
        display: flex;
        align-items: center;
        gap: 1rem;
    }

    ul li img {
        width: 2rem;
        height: 2rem;
        flex-shrink: 0;
    }
}

.service-header {
    position: absolute;
    left: 50%;
    top: 12.5%;
    transform: translate(-50%, -50%);
    background-image: url('../assets/images/service-header-splash.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    padding: 2.5rem 5rem;
    z-index: 10;

    h2 {
        font-family: 'Inter';
        font-weight: 600;
        font-size: 2.5rem;
        color: #1A6C36;
        margin: 0;
        text-align: center;
    }
}

/* ========================================
   MOBILE STYLES
   ======================================== */

@media (max-width: 768px) {
    .navbar-container {
        height: auto;
        padding: 1rem;
    }

    .logo {
        width: 100%;
        justify-content: center;
        margin-bottom: 0;
        img {
            width: 60%;
            height: auto;
            max-width: 200px;
        }
    }

    .lang-switch {
        top: 1rem;
        right: 1rem;
        padding: 0.3rem 0.6rem;
        font-size: 0.75rem;
    }

    .navbar {
        display: none;
    }
    
    .header-image {
        height: 20rem;
    }

    .header-text {
        width: 90%;
        top: 40%;
        gap: 0.5rem;
        padding: 1.5rem 1rem;
    }

    .header-text h1 {
        top: -0.5rem;
        font-size: 1.5rem;
    }

    .header-text img {
        width: 120%;
        height: 120%;
        min-width: 320px;
        min-height: 350px;
        left: 50%;
    }

    .hero-subtitle {
        top: -0.5rem;
        font-size: 0.75rem;
        line-height: 1.4;
    }

    .hero-cta {
        margin-top: 0;
        top: 12rem;
        font-size: 0.875rem;
        padding: 0.75rem 1.5rem;
    }

    .hero-note {
        font-size: 0.75rem;
        bottom: -7rem;
        white-space: nowrap;
    }

    /* Swap Why Choose Us and Vad Söker Du sections on mobile */
    .header-container {
        display: flex;
        flex-direction: column;
    }

    .header-image {
        order: 1;
    }

    .header-text-2-container {
        order: 2;
    }

    .why-choose-us {
        order: 3;
    }

    .service-container {
        order: 4;
    }

    .testimonials {
        order: 5;
    }

    .logo-divider {
        order: 6;
    }

    .contact-section {
        order: 7;
    }

    /* Why Choose Us mobile styles */
    .why-choose-us {
        padding-top: 3rem;
        padding-right: 1.25rem;
        padding-left: 1.25rem;
        padding-bottom: 0rem;
        gap: 2rem;
    }

    .why-choose-us-header h2 {
        font-size: 1.75rem;
    }

    .why-choose-us-header p {
        font-size: 1rem;
    }

    .why-cards {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .why-card {
        padding: 1.5rem 1.25rem;
    }

    .why-card-icon {
        font-size: 2rem;
    }

    .why-card h3 {
        font-size: 1rem;
    }

    .why-card p {
        font-size: 0.875rem;
    }

    .why-badges {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }

    .why-badge {
        font-size: 0.875rem;
        padding: 0.625rem 1.25rem;
    }

    /* Testimonials mobile styles */
    .testimonials {
        padding: 3rem 1.25rem 1rem;
        gap: 2rem;
    }

    .testimonials h2 {
        font-size: 1.75rem;
    }

    .testimonials-grid {
        flex-direction: column;
        gap: 1rem;
    }

    .logo-divider {
        display: none;
    }

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

    .testimonial-quote {
        font-size: 1rem;
    }

    .testimonial-author {
        font-size: 0.875rem;
    }

    /* Contact section mobile styles */
    .contact-section {
        padding: 1rem 1.25rem 3rem;
    }

    .contact-content h2 {
        font-size: 1.5rem;
    }

    .contact-item {
        font-size: 1rem;
    }

    .social-links-icons {
        gap: 0.75rem;
    }

    .social-icon-link {
        width: 2.5rem;
        height: 2.5rem;
    }

    .social-icon-link svg {
        width: 1.25rem;
        height: 1.25rem;
    }

    /* Footer mobile styles */
    .site-footer {
        padding: 0.75rem 1rem;
    }

    .site-footer p {
        font-size: 0.75rem;
    }

    .service-container {
        width: 100%;
    }

    .service-image {
        width: 100%;
        padding: 0;
    }

    .service-header {
        top: 8%;
        padding: 1.25rem 2.5rem;
        margin-top: 0.5rem;
        h2 {
            font-size: 1.25rem;
        }
    }

    .service-content {
        position: absolute;
        top: 55%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 90%;
        flex-direction: column-reverse;
        padding: 0;
        gap: 1rem;
    }

    /* Reset for mobile - card above buttons */
    .storstad .service-content,
    .kontorstad .service-content {
        flex-direction: column-reverse;
    }

    .service-card {
        width: 100%;
        max-width: 100%;
        height: auto;
        max-height: 60%;
        padding: 1.25rem 1.85rem;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }

    .service-card-text {
        font-size: 0.8125rem;
        gap: 0.25rem;
        flex: 1;
        overflow: hidden;

        p:nth-child(2) {
            margin-left: 0.1rem;
        }
    }

    .service-card-text ul {
        gap: 0.8rem;
    }

    .service-card-text ul li img {
        width: 1rem;
        height: 1rem;
    }

    .service-buttons {
        flex-direction: row;
        gap: 0.5rem;
    }

    .service-buttons .service-btn-boka,
    .service-buttons .service-btn-pris {
        padding: 0.5rem 1.25rem;
        font-size: 1rem;
    }

    .header-text-2 {
        width: 100%;
        max-width: 100vw;
        padding: 1rem;
        align-items: center;
    }

    .header-text-2-buttons {
        display: grid;
        grid-template-columns: repeat(3, auto);
        gap: 1.5rem 2rem;
        justify-items: center;
        justify-content: center;
        width: auto;
    }

    .header-text-2-buttons button,
    .header-text-2-buttons a {
        font-size: 1rem;
        white-space: nowrap;
    }

    .header-text h1 {
        font-size: 1.5rem;
        text-align: center;
    }

    .header-text-2 p {
        font-size: 1.5rem;
    }

    .service-image img {
        height: 65vh;
        min-height: 500px;
        width: 100%;
        object-fit: cover;
    }

    /* Service-specific image positioning for mobile */
    .hemstad .service-image img {
        object-position: right center;
    }

    .storstad .service-image img {
        object-position: 60% center;
    }

    .flyttstad .service-image img {
        object-position: left center;
    }

    .kontorstad .service-image img {
        object-position: right center;
    }
}

/* ========================================
   MOBILE LANDSCAPE STYLES
   ======================================== */

@media (max-width: 768px) and (orientation: landscape) {
    .service-image img {
        height: 80vh;
        width: 100%;
        object-fit: cover;
    }

    .service-header {
        top: 8%;
        padding: 1.25rem 2.5rem;
        
        h2 {
            font-size: 1.25rem;
        }
    }

    .service-content {
        flex-direction: row;
        width: 95%;
        gap: 2rem;
    }

    .storstad .service-content,
    .kontorstad .service-content {
        flex-direction: row-reverse;
    }

    .service-card {
        width: 60%;
        max-width: 60%;
        height: auto;
        padding: 2rem 1.25rem;
    }

    .service-card-text {
        font-size: 0.75rem;
        gap: 0.25rem;
    }

    .service-card-text ul {
        gap: 0.5rem;
    }

    .service-card-text ul li img {
        width: 1rem;
        height: 1rem;
    }

    .service-buttons {
        gap: 0.5rem;
    }

    .service-buttons button,
    .service-buttons .service-btn-boka,
    .service-buttons .service-btn-pris {
        padding: 0.5rem 1rem;
        font-size: 1rem;
    }

    .header-text h1 {
        font-size: 1.25rem;
    }

    .header-text img {
        width: 110%;
        height: 130%;
        min-width: 400px;
        min-height: 280px;
    }

    .hero-subtitle {
        font-size: 0.75rem;
    }

    .hero-cta {
        font-size: 0.75rem;
        padding: 0.5rem 1rem;
    }

    .hero-note {
        font-size: 0.625rem;
    }

    .header-text-2 p {
        font-size: 1.25rem;
    }

    .header-text-2-buttons {
        grid-template-columns: repeat(3, auto);
        gap: 0.75rem 1rem;
    }

    .header-text-2-buttons button,
    .header-text-2-buttons a {
        font-size: 0.875rem;
    }
}

