/* ==========================================
   STELLA PSYKIATRI
   OM OSS
========================================== */


/* ==========================================
   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;

}


/* ==========================================
   GRUNDINSTÄLLNINGAR
========================================== */

* {

    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;

}



/* ==========================================
   MENY
========================================== */

.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 li {

    display: block;

}


.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);

}



/* ==========================================
   MOBILMENYKNAPP
========================================== */

.menu-toggle {

    width: 46px;

    height: 46px;

    padding: 10px;

    display: none;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    gap: 5px;

    background-color: 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;

}



/* ==========================================
   OM MIG
========================================== */

.about-section {

    padding: 65px 0 85px;

    background-color: var(--background);

}


.about-container {

    width: min(90%, 1400px);

    margin: 0 auto;

    display: grid;

    grid-template-columns: 44% 56%;

    align-items: center;

    gap: clamp(50px, 6vw, 90px);

}



/* ==========================================
   PORTRÄTT
========================================== */

.about-image-wrapper {

    width: 100%;

    overflow: hidden;

    border-radius: 15px;

}



.about-image-wrapper {
    width: 100%;
    overflow: hidden;
    border-radius: 20px;
}

.about-image {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center;
    border-radius: 20px;
}




/* ==========================================
   PRESENTATION
========================================== */

.about-content {

    max-width: 700px;

}


.eyebrow {

    margin-bottom: 8px;

    color: var(--sage-dark);

    font-size: 0.73rem;

    font-weight: 700;

    letter-spacing: 0.15em;

    text-transform: uppercase;

}


.about-content h1 {

    margin-bottom: 22px;

    color: var(--green-dark);

    font-family: "Playfair Display", Georgia, serif;

    font-size: clamp(3rem, 4vw, 4.2rem);

    font-weight: 500;

    line-height: 1.05;

    letter-spacing: -0.035em;

}


.about-content p {

    margin-bottom: 15px;

    color: #50554d;

    font-size: 0.92rem;

    line-height: 1.72;

}


.about-content .about-intro {

    margin-bottom: 25px;

    color: var(--green-dark);

    font-family: "Playfair Display", Georgia, serif;

    font-size: 1.18rem;

    line-height: 1.55;

}



/* ==========================================
   SAMARBETSPARTNERS
========================================== */

.partner-area {

    margin-top: 25px;

    padding-top: 20px;

    border-top: 1px solid var(--border);

}


.partner-area p {

    margin-bottom: 7px;

}


.partner-link {

    display: inline-flex;

    align-items: center;

    gap: 8px;

    color: var(--green);

    font-size: 0.9rem;

    font-weight: 700;

}


.partner-link span {

    display: inline-block;

    font-size: 1.15rem;

    transition: transform 0.2s ease;

}


.partner-link:hover span {

    transform: translateX(5px);

}



/* ==========================================
   KONTAKTSEKTION
========================================== */

.contact-section {

    padding: 70px 0;

    background-color: var(--sage-light);

}


.contact-container {

    width: min(86%, 1320px);

    margin: 0 auto;

    display: grid;

    grid-template-columns: 36% 64%;

    align-items: start;

    gap: clamp(55px, 7vw, 110px);

}



/* ==========================================
   KONTAKTTEXT
========================================== */

.contact-text {

    max-width: 450px;

}


.contact-eyebrow {

    margin-bottom: 8px;

    color: var(--sage-dark);

    font-size: 0.73rem;

    font-weight: 700;

    letter-spacing: 0.15em;

    text-transform: uppercase;

}


.contact-text h2 {

    margin-bottom: 20px;

    color: var(--green-dark);

    font-family: "Playfair Display", Georgia, serif;

    font-size: clamp(2.6rem, 3.7vw, 3.7rem);

    font-weight: 500;

    line-height: 1.1;

    letter-spacing: -0.03em;

}


.contact-text > p:last-child {

    max-width: 390px;

    margin-bottom: 0;

    color: #4e534b;

    font-size: 0.96rem;

    line-height: 1.75;

}



/* ==========================================
   FORMULÄR
========================================== */

.contact-form {

    width: 100%;

}


.form-group {

    position: relative;

    width: 100%;

}


.form-group label {

    position: absolute;

    top: 9px;

    left: 17px;

    z-index: 2;

    color: #4c5049;

    font-size: 0.68rem;

    font-weight: 500;

    pointer-events: none;

}


.contact-form input,
.contact-form textarea {

    width: 100%;

    color: var(--text);

    background-color: rgba(255, 255, 255, 0.94);

    border: 1px solid transparent;

    border-radius: 5px;

    outline: none;

    font-family: "Poppins", Arial, sans-serif;

    font-size: 0.93rem;

    transition:
        border-color 0.2s ease,
        background-color 0.2s ease;

}


.contact-form input {

    height: 58px;

    padding: 24px 17px 7px;

}


.contact-form textarea {

    min-height: 150px;

    padding: 30px 17px 12px;

    resize: vertical;

}


.contact-form input:focus,
.contact-form textarea:focus {

    background-color: var(--white);

    border-color: var(--sage-dark);

}



/* ==========================================
   FORMULÄRRADER
========================================== */

.form-full {

    width: 100%;

}


.form-row {

    margin: 15px 0;

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 15px;

}



/* ==========================================
   INFORMATION UNDER FORMULÄRET
========================================== */

.form-notice {

    margin-top: 10px;

    margin-bottom: 0;

    color: var(--text-light);

    font-size: 0.76rem;

    line-height: 1.5;

}



/* ==========================================
   SKICKA-KNAPP
========================================== */

.form-button-wrapper {

    margin-top: 15px;

    display: flex;

    justify-content: flex-end;

}


.submit-button {

    min-width: 185px;

    min-height: 52px;

    padding: 13px 25px;

    color: var(--white);

    background-color: var(--green);

    border: 0;

    border-radius: 9px;

    font-family: "Poppins", Arial, sans-serif;

    font-size: 0.91rem;

    font-weight: 700;

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        transform 0.2s ease;

}


.submit-button:hover {

    background-color: var(--green-dark);

    transform: translateY(-2px);

}



/* ==========================================
   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;

    }


    .about-container {

        grid-template-columns: 45% 55%;

        gap: 45px;

    }


    .about-image {

        height: 650px;

    }


    .about-content p {

        font-size: 0.88rem;

    }

}



/* ==========================================
   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);

    }



    /* OM MIG */

    .about-section {

        padding: 45px 0 65px;

    }


    .about-container {

        width: min(90%, 760px);

        grid-template-columns: 1fr;

        gap: 40px;

    }


    .about-image {

        height: 650px;

    }


    .about-content {

        max-width: 100%;

    }



    /* KONTAKT */

    .contact-container {

        width: min(90%, 760px);

        grid-template-columns: 1fr;

        gap: 40px;

    }


    .contact-text {

        max-width: 600px;

    }

}



/* ==========================================
   MOBIL
========================================== */

@media screen and (max-width: 600px) {

    body {

        font-size: 15px;

    }


    .header-container {

        width: 91%;

    }


    .logo img {

        width: 155px;

    }



    /* OM MIG */

    .about-section {

        padding: 22px 0 50px;

    }


    .about-container {

        width: calc(100% - 34px);

        gap: 30px;

    }


    .about-image-wrapper {

        border-radius: 10px;

    }


    .about-image {

        height: 500px;

        object-position: center center;

    }


    .eyebrow {

        font-size: 0.68rem;

    }


    .about-content h1 {

        margin-bottom: 18px;

        font-size: 2.45rem;

        line-height: 1.08;

    }


    .about-content .about-intro {

        font-size: 1.08rem;

        line-height: 1.55;

    }


    .about-content p {

        margin-bottom: 14px;

        font-size: 0.9rem;

        line-height: 1.7;

    }



    /* KONTAKT */

    .contact-section {

        padding: 50px 0;

    }


    .contact-container {

        width: calc(100% - 34px);

        gap: 32px;

    }


    .contact-text h2 {

        font-size: 2.35rem;

    }


    .form-row {

        grid-template-columns: 1fr;

        gap: 15px;

    }


    .form-button-wrapper {

        justify-content: stretch;

    }


    .submit-button {

        width: 100%;

    }



    /* FOOTER */

    .footer-container {

        flex-direction: column;

        align-items: flex-start;

    }

}

.footer strong {
    color: #ffffff;
}

.footer strong {
    font-size: 0.70rem;
    font-weight: 600;
}

.footer p,
.footer-links a {
    font-size: 0.70rem;
    font-weight: 400;
}