/* ==========================================
   STELLA PSYKIATRI
   SAMARBETSPARTNERS
========================================== */


/* ==========================================
   FÄRGER
========================================== */

:root {

    --background: #f8f6f2;

    --white: #ffffff;

    --sage-light: #e5e8de;

    --sage: #87927d;

    --sage-dark: #596451;

    --green: #3f4c3c;

    --green-dark: #303a2e;

    --text: #292b26;

    --text-light: #62675f;

    --border: #dcded5;

    --orange: #d9672f;

}


/* ==========================================
   RESET
========================================== */

* {

    margin: 0;

    padding: 0;

    box-sizing: border-box;

}


html {

    scroll-behavior: smooth;

}


body {

    min-height: 100vh;

    overflow-x: hidden;

    color: var(--text);

    background-color: var(--background);

    font-family: "Poppins", Arial, sans-serif;

    font-size: 16px;

    line-height: 1.7;

}


a {

    color: inherit;

    text-decoration: none;

}


img {

    max-width: 100%;

    display: block;

}


ul {

    list-style: none;

}



/* ==========================================
   HEADER
========================================== */

.header {

    position: sticky;

    top: 0;

    z-index: 1000;

    width: 100%;

    background-color: rgba(248, 246, 242, 0.98);

    border-bottom: 1px solid var(--border);

    box-shadow: 0 4px 18px rgba(48, 58, 46, 0.04);

    backdrop-filter: blur(12px);

    -webkit-backdrop-filter: blur(12px);

}


.header-container {

    width: min(92%, 1450px);

    min-height: 90px;

    margin: 0 auto;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 30px;

}



/* ==========================================
   LOGOTYP
========================================== */

.logo {

    display: inline-flex;

    align-items: center;

    flex-shrink: 0;

}


.logo img {

    width: 220px;

    height: auto;

}



/* ==========================================
   NAVIGATION
========================================== */

.main-navigation {

    display: flex;

    align-items: center;

    justify-content: flex-end;

}


.nav-links {

    display: flex;

    align-items: center;

    justify-content: flex-end;

    gap: 3px;

}


.nav-links a {

    display: block;

    padding: 10px 9px;

    color: var(--text);

    font-size: 0.76rem;

    font-weight: 600;

    white-space: nowrap;

    border-radius: 8px;

    transition:
        color 0.2s ease,
        background-color 0.2s ease;

}


.nav-links a:hover {

    color: var(--green);

    background-color: var(--sage-light);

}


.nav-links a.active {

    color: var(--green);

    background-color: var(--sage-light);

}


.nav-links .contact-button {

    margin-left: 8px;

    padding: 12px 19px;

    color: var(--white);

    background-color: var(--green);

    border-radius: 999px;

}


.nav-links .contact-button:hover {

    color: var(--white);

    background-color: var(--green-dark);

}



/* ==========================================
   MOBILMENY
========================================== */

.menu-toggle {

    width: 46px;

    height: 46px;

    padding: 10px;

    display: none;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    gap: 5px;

    background: transparent;

    border: 1px solid var(--green);

    border-radius: 50%;

    cursor: pointer;

}


.menu-toggle span {

    width: 22px;

    height: 2px;

    display: block;

    background-color: var(--green);

    transition:
        transform 0.3s ease,
        opacity 0.3s ease;

}



/* ==========================================
   HERO
========================================== */

.partners-hero {

    min-height: 660px;

    display: flex;

    align-items: center;

    background-color: var(--background);

}


.partners-hero-container {

    width: min(90%, 1380px);

    margin: 0 auto;

    padding: 70px 0;

    display: grid;

    grid-template-columns: 42% 58%;

    align-items: center;

    gap: 70px;

}



/* ==========================================
   HERO TEXT
========================================== */

.partners-hero-text {

    max-width: 500px;

}


.eyebrow {

    margin-bottom: 12px;

    color: var(--sage-dark);

    font-size: 0.74rem;

    font-weight: 700;

    letter-spacing: 0.15em;

    text-transform: uppercase;

}


.partners-hero h1 {

    margin-bottom: 27px;

    color: var(--green-dark);

    font-family: "Playfair Display", Georgia, serif;

    font-size: clamp(4rem, 6vw, 6.5rem);

    font-weight: 500;

    line-height: 0.95;

    letter-spacing: -0.045em;

}


.hero-description {

    max-width: 450px;

    margin-bottom: 16px;

    color: var(--text-light);

    font-size: 1rem;

    line-height: 1.8;

}



/* ==========================================
   LOGO COLLAGE
========================================== */

.logo-collage {

    position: relative;

    width: 100%;

    height: 520px;

}


.floating-logo {

    position: absolute;

    z-index: 2;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 17px;

    background-color: var(--white);

    border: 1px solid var(--border);

    border-radius: 10px;

    box-shadow:
        0 15px 35px rgba(48, 58, 46, 0.09);

}


.floating-logo img {

    width: 100%;

    height: 100%;

    object-fit: contain;

}


.logo-one {

    width: 190px;

    height: 105px;

    top: 20px;

    left: 16%;

    transform: rotate(-4deg);

}


.logo-two {

    width: 180px;

    height: 105px;

    top: 30px;

    right: 8%;

    transform: rotate(3deg);

}


.logo-three {

    width: 170px;

    height: 105px;

    top: 170px;

    left: 1%;

    transform: rotate(2deg);

}


.logo-four {

    width: 190px;

    height: 110px;

    top: 155px;

    left: 37%;

    transform: rotate(-3deg);

}


.logo-five {

    width: 180px;

    height: 105px;

    top: 175px;

    right: 0;

    transform: rotate(4deg);

}


.logo-six {

    width: 175px;

    height: 105px;

    bottom: 35px;

    left: 12%;

    transform: rotate(-2deg);

}


.logo-seven {

    width: 190px;

    height: 110px;

    bottom: 20px;

    left: 44%;

    transform: rotate(3deg);

}


.logo-eight {

    width: 175px;

    height: 105px;

    bottom: 45px;

    right: -2%;

    transform: rotate(-4deg);

}



/* ==========================================
   DEKORATION
========================================== */

.decor {

    position: absolute;

    z-index: 1;

    display: block;

    border: 1px solid var(--sage);

    opacity: 0.55;

}


.decor-one {

    width: 60px;

    height: 60px;

    top: 112px;

    left: 36%;

    border-radius: 50%;

}


.decor-two {

    width: 90px;

    height: 1px;

    top: 310px;

    right: 23%;

    transform: rotate(-28deg);

}


.decor-three {

    width: 55px;

    height: 55px;

    bottom: 52px;

    left: 35%;

    border-radius: 50%;

}



/* ==========================================
   PARTNERSEKTION
========================================== */

.partners-section {

    padding: 110px 0;

    background-color: var(--white);

}


.partners-container {

    width: min(90%, 1250px);

    margin: 0 auto;

}


.section-heading {

    max-width: 700px;

    margin-bottom: 65px;

}


.section-heading h2 {

    margin-bottom: 20px;

    color: var(--green-dark);

    font-family: "Playfair Display", Georgia, serif;

    font-size: clamp(2.8rem, 4vw, 4.2rem);

    font-weight: 500;

    line-height: 1.08;

    letter-spacing: -0.03em;

}


.section-heading > p:last-child {

    max-width: 570px;

    color: var(--text-light);

    font-size: 0.98rem;

}



/* ==========================================
   PARTNERKORT
========================================== */

.partner-card {

    width: 100%;

    min-height: 245px;

    padding: 35px 15px;

    display: grid;

    grid-template-columns: 32% 68%;

    align-items: center;

    gap: 55px;

    border-top: 1px solid var(--border);

    transition:
        background-color 0.25s ease,
        padding 0.25s ease;

}


.partner-card:last-child {

    border-bottom: 1px solid var(--border);

}


.partner-card:hover {

    padding-left: 28px;

    padding-right: 28px;

    background-color: var(--background);

}



/* ==========================================
   LOGO I PARTNERKORT
========================================== */

.partner-logo {

    width: 100%;

    max-width: 270px;

    height: 120px;

    padding: 20px;

    display: flex;

    align-items: center;

    justify-content: center;

    background-color: var(--white);

}


.partner-logo img {

    width: 100%;

    height: 100%;

    object-fit: contain;

}



/* ==========================================
   PARTNERTEXT
========================================== */

.partner-content {

    position: relative;

    max-width: 700px;

}


.partner-number {

    margin-bottom: 6px;

    color: var(--sage);

    font-family: "Playfair Display", Georgia, serif;

    font-size: 0.8rem;

}


.partner-content h3 {

    margin-bottom: 11px;

    color: var(--green-dark);

    font-family: "Playfair Display", Georgia, serif;

    font-size: 2rem;

    font-weight: 500;

}


.partner-content p {

    max-width: 650px;

    margin-bottom: 17px;

    color: var(--text-light);

    font-size: 0.91rem;

    line-height: 1.7;

}


.partner-website {

    display: inline-flex;

    align-items: center;

    gap: 8px;

    color: var(--green);

    font-size: 0.85rem;

    font-weight: 700;

}


.partner-website strong {

    font-size: 1.05rem;

    transition: transform 0.2s ease;

}


.partner-card:hover .partner-website strong {

    transform: translate(3px, -3px);

}



/* ==========================================
   AVSLUTNING
========================================== */

.partners-bottom {

    padding: 100px 0;

    background-color: var(--sage-light);

}


.partners-bottom-container {

    width: min(90%, 850px);

    margin: 0 auto;

    text-align: center;

}


.partners-bottom h2 {

    margin-bottom: 20px;

    color: var(--green-dark);

    font-family: "Playfair Display", Georgia, serif;

    font-size: clamp(2.8rem, 4vw, 4.4rem);

    font-weight: 500;

    line-height: 1.08;

}


.partners-bottom p:not(.eyebrow) {

    max-width: 650px;

    margin: 0 auto 30px;

    color: var(--text-light);

}


.bottom-button {

    padding: 14px 27px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    color: var(--white);

    background-color: var(--green);

    border-radius: 999px;

    font-size: 0.9rem;

    font-weight: 700;

}


.bottom-button:hover {

    background-color: var(--green-dark);

}



/* ==========================================
   FOOTER
========================================== */

.footer {

    padding: 28px 0;

    background-color: var(--green-dark);

}


.footer-container {

    width: min(90%, 1400px);

    margin: 0 auto;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 25px;

}


.footer p {

    color: rgba(255,255,255,0.72);

    font-size: 0.8rem;

}


.footer-links {

    display: flex;

    gap: 25px;

}


.footer-links a {

    color: rgba(255,255,255,0.78);

    font-size: 0.8rem;

}


.footer-links a:hover {

    color: var(--white);

}



/* ==========================================
   MINDRE DATORER
========================================== */

@media screen and (max-width: 1200px) {

    .logo img {

        width: 185px;

    }


    .nav-links a {

        padding: 9px 6px;

        font-size: 0.69rem;

    }


    .partners-hero-container {

        grid-template-columns: 38% 62%;

        gap: 40px;

    }


    .floating-logo {

        transform: none;

    }

}



/* ==========================================
   SURFPLATTA
========================================== */

@media screen and (max-width: 950px) {

    .header-container {

        min-height: 76px;

    }


    .logo img {

        width: 175px;

    }


    .menu-toggle {

        display: flex;

    }


    .main-navigation {

        position: absolute;

        top: 76px;

        left: 0;

        width: 100%;

        max-height: 0;

        overflow: hidden;

        background-color: var(--background);

        border-bottom: 1px solid var(--border);

        transition: max-height 0.3s ease;

    }


    .main-navigation.open {

        max-height: 700px;

    }


    .nav-links {

        width: 92%;

        margin: 0 auto;

        padding: 15px 0 25px;

        display: block;

    }


    .nav-links li {

        border-bottom: 1px solid var(--border);

    }


    .nav-links a {

        padding: 13px 5px;

        font-size: 0.93rem;

        border-radius: 0;

    }


    .nav-links .contact-button {

        margin: 14px 0 0;

        display: inline-flex;

        padding: 12px 20px;

        border-radius: 999px;

    }


    .menu-toggle.open span:nth-child(1) {

        transform: translateY(7px) rotate(45deg);

    }


    .menu-toggle.open span:nth-child(2) {

        opacity: 0;

    }


    .menu-toggle.open span:nth-child(3) {

        transform: translateY(-7px) rotate(-45deg);

    }



    /* HERO */

    .partners-hero {

        min-height: auto;

    }


    .partners-hero-container {

        width: min(90%, 760px);

        padding: 65px 0;

        grid-template-columns: 1fr;

        gap: 50px;

    }


    .partners-hero-text {

        max-width: 620px;

    }


    .logo-collage {

        height: auto;

        display: grid;

        grid-template-columns: repeat(2, 1fr);

        gap: 14px;

    }


    .floating-logo {

        position: static;

        width: 100%;

        height: 120px;

        transform: none;

    }


    .decor {

        display: none;

    }



    /* PARTNERKORT */

    .partner-card {

        grid-template-columns: 30% 70%;

        gap: 35px;

    }

}



/* ==========================================
   MOBIL
========================================== */

@media screen and (max-width: 600px) {

    body {

        font-size: 15px;

    }


    .header-container {

        width: 91%;

    }


    .logo img {

        width: 155px;

    }



    /* HERO */

    .partners-hero-container {

        width: calc(100% - 34px);

        padding: 45px 0 55px;

    }


    .partners-hero h1 {

        font-size: 3.7rem;

    }


    .logo-collage {

        grid-template-columns: 1fr 1fr;

        gap: 10px;

    }


    .floating-logo {

        height: 100px;

        padding: 13px;

    }



    /* PARTNERS */

    .partners-section {

        padding: 70px 0;

    }


    .partners-container {

        width: calc(100% - 34px);

    }


    .section-heading {

        margin-bottom: 40px;

    }


    .section-heading h2 {

        font-size: 2.6rem;

    }


    .partner-card {

        padding: 30px 0;

        grid-template-columns: 1fr;

        gap: 20px;

    }


    .partner-card:hover {

        padding-left: 0;

        padding-right: 0;

        background-color: transparent;

    }


    .partner-logo {

        max-width: 230px;

        height: 100px;

        padding: 12px 0;

        justify-content: flex-start;

    }


    .partner-content h3 {

        font-size: 1.75rem;

    }



    /* AVSLUTNING */

    .partners-bottom {

        padding: 70px 0;

    }


    .partners-bottom-container {

        width: calc(100% - 34px);

    }


    .partners-bottom h2 {

        font-size: 2.6rem;

    }



    /* FOOTER */

    .footer-container {

        flex-direction: column;

        align-items: flex-start;

    }

}


.footer strong {
    color: #ffffff !important;
    font-size: 0.70rem;
    font-weight: 600;
}

.footer p,
.footer .footer-links a {
    color: #ffffff;
    font-size: 0.70rem;
    font-weight: 400 !important;
}