
/* STELLA PSYKIATRI – STARTSIDA */

@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600&family=Poppins:wght@300;400;500;600;700&display=swap");

/* FÄRGER */

:root {
    --background: #f8f6f2;
    --background-light: #ffffff;
    --background-soft: #eeeee7;
    --sage-light: #dfe4d8;
    --sage: #87927d;
    --sage-dark: #596451;
    --green: #3f4c3c;
    --green-dark: #303a2e;
    --text: #292b26;
    --text-light: #62675f;
    --border: #dcded5;
    --white: #ffffff;
    --orange: #d9672f;
    --shadow: 0 18px 45px rgba(48, 58, 46, 0.1);
}

/* GRUNDINSTÄLLNINGAR */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    overflow-x: hidden;
    font-family: "Poppins", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text);
    background-color: var(--background);
}

h1, h2, h3 {
    font-family: "Playfair Display", Georgia, serif;
    font-weight: 500;
    line-height: 1.15;
    color: var(--text);
}

h1 {
    font-size: clamp(2.8rem, 5vw, 4.8rem);
    letter-spacing: -0.04em;
}

h2 {
    font-size: clamp(2rem, 3.5vw, 3.4rem);
    letter-spacing: -0.025em;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

ul {
    list-style: none;
}

.container {
    width: min(90%, 1300px);
    margin: 0 auto;
}

/* HEADER */

.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    min-height: 90px;
    display: flex;
    align-items: center;
    background-color: rgba(248, 246, 242, 0.97);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 5px 20px rgba(48, 58, 46, 0.04);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.header-container {
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.logo {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.logo img {
    width: 210px;
    max-width: 100%;
    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: 2px;
}

.nav-links li {
    display: block;
}

.nav-links a {
    display: block;
    padding: 10px 8px;
    color: var(--text);
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    border-radius: 8px;
    transition:
        color 0.2s ease,
        background-color 0.2s ease,
        transform 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--green);
    background-color: var(--sage-light);
}

.nav-links .btn-menu {
    margin-left: 7px;
    padding: 11px 16px;
    color: var(--white);
    background-color: var(--green);
    border-radius: 999px;
}

.nav-links .btn-menu:hover {
    color: var(--white);
    background-color: var(--green-dark);
    transform: translateY(-2px);
}

/* MOBILMENY */

.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;
}

/* HERO */

.hero {
    width: 100%;
    min-height: 565px;
    display: grid;
    grid-template-columns: 46% 54%;
    background-color: var(--background);
}

.hero-text-side {
    display: flex;
    align-items: center;
    padding: 65px 7% 65px 6.2%;
    background-color: var(--background);
}

.hero-text {
    width: 100%;
    max-width: 490px;
}

.hero-eyebrow {
    margin-bottom: 18px;
    color: var(--sage-dark);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hero h1 {
    margin-bottom: 25px;
    color: var(--green-dark);
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(2.8rem, 4.1vw, 4.1rem);
    font-weight: 500;
    line-height: 1.03;
    letter-spacing: -0.035em;
}

.hero-description {
    max-width: 450px;
    margin-bottom: 0;
    color: var(--text-light);
    font-size: 0.98rem;
    line-height: 1.8;
}

.hero-buttons {
    margin-top: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* HERO – BILD */

.hero-image-side {
    position: relative;
    min-height: 565px;
    overflow: hidden;
}

.hero-main-image {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
    object-fit: cover;
    object-position: center 20%;
}

.hero-image-card {
    position: absolute;
    right: 26px;
    bottom: 22px;
    min-width: 240px;
    padding: 17px 20px;
    background-color: rgba(248, 246, 242, 0.95);
}

.hero-image-card span {
    display: block;
    margin-bottom: 5px;
    color: var(--text-light);
    font-size: 0.66rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.hero-image-card strong {
    display: block;
    color: var(--green-dark);
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.1rem;
    font-weight: 500;
}

/* HERO – SURFPLATTA */

@media screen and (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
    }

    .hero-text-side {
        padding: 55px 7%;
    }

    .hero-text {
        max-width: 620px;
    }

    .hero h1 {
        font-size: clamp(2.5rem, 7vw, 4rem);
    }

    .hero-image-side {
        min-height: 560px;
    }

    .hero-main-image {
        object-position: center 18%;
    }
}

/* HERO – MOBIL */

@media screen and (max-width: 520px) {
    .hero-text-side {
        padding: 42px 24px;
    }

    .hero h1 {
        margin-bottom: 20px;
        font-size: 2.55rem;
        line-height: 1.06;
    }

    .hero-description {
        font-size: 0.94rem;
        line-height: 1.7;
    }

    .hero-buttons {
        margin-top: 25px;
        flex-direction: column;
    }

    .hero-buttons a {
        width: 100%;
    }

    .hero-image-side {
        min-height: 520px;
    }

    .hero-main-image {
        object-position: center 15%;
    }

    .hero-image-card {
        right: 15px;
        bottom: 15px;
        min-width: 210px;
        padding: 14px 16px;
    }
}

/* KNAPPAR */

.btn-primary,
.btn-secondary,
.btn-light {
    min-height: 50px;
    padding: 13px 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 700;
    transition:
        color 0.2s ease,
        background-color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.btn-primary {
    color: var(--white);
    background-color: var(--green);
}

.btn-primary:hover {
    background-color: var(--green-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    color: var(--green);
    background-color: rgba(248, 246, 242, 0.64);
    border-color: var(--green);
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
}

.btn-secondary:hover {
    color: var(--white);
    background-color: var(--green);
    transform: translateY(-2px);
}

/* TRYGGHETSPUNKTER */

.trust-section {
    width: min(94%, 1300px);
    margin: 0 auto;
    padding: 32px 38px;
    background-color: var(--background-soft);
    border-radius: 0 0 24px 24px;
}

.trust-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.trust-item {
    display: flex;
    align-items: flex-start;
    gap: 13px;
}

.trust-icon {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    background-color: var(--sage-dark);
    border-radius: 50%;
    font-weight: 700;
}

.trust-item h2 {
    margin-bottom: 5px;
    font-family: "Poppins", Arial, sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: normal;
}

.trust-item p {
    margin-bottom: 0;
    color: var(--text-light);
    font-size: 0.82rem;
    line-height: 1.5;
}

/* GEMENSAMMA RUBRIKER */

.section-header {
    max-width: 760px;
    margin: 0 auto 48px;
    text-align: center;
}

.section-header h2 {
    margin-bottom: 18px;
}

.section-header > p:last-child {
    margin-bottom: 0;
    color: var(--text-light);
    font-size: 1.04rem;
}

/* TJÄNSTER */

.services-section {
    padding: 110px 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.service-card {
    min-height: 365px;
    padding: 32px 27px;
    display: flex;
    flex-direction: column;
    background-color: var(--background-light);
    border: 1px solid var(--border);
    border-radius: 14px;
    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.service-card:hover {
    transform: translateY(-6px);
    border-color: var(--sage);
    box-shadow: var(--shadow);
}

.service-number {
    margin-bottom: 45px;
    color: var(--sage-dark);
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1rem;
}

.service-card h3 {
    margin-bottom: 16px;
}

.service-card p {
    margin-bottom: 25px;
    color: var(--text-light);
}

.text-link {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--green);
    font-weight: 700;
}

.text-link span {
    transition: transform 0.2s ease;
}

.text-link:hover span {
    transform: translateX(5px);
}

/* OM MOTTAGNINGEN */

.about-section {
    padding: 100px 0;
    background-color: var(--background-soft);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: clamp(45px, 7vw, 90px);
}

.about-image-wrapper {
    overflow: hidden;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.about-image {
    width: 100%;
    min-height: 500px;
    object-fit: cover;
}

.about-content h2 {
    margin-bottom: 25px;
}

.about-content > p:not(.eyebrow) {
    margin-bottom: 18px;
    color: var(--text-light);
}

.check-list {
    margin: 12px 0 32px;
}

.check-list li {
    position: relative;
    margin-bottom: 11px;
    padding-left: 31px;
}

.check-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--sage-dark);
    font-weight: 700;
}

/* SÅ GÅR DET TILL */

.process-section {
    padding: 110px 0;
}

.process-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.process-grid::before {
    content: "";
    position: absolute;
    top: 28px;
    left: 12%;
    right: 12%;
    z-index: -1;
    height: 1px;
    background-color: var(--border);
}

.process-card {
    padding: 0 15px;
    text-align: center;
}

.process-number {
    width: 58px;
    height: 58px;
    margin: 0 auto 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    background-color: var(--sage-dark);
    border: 6px solid var(--background);
    border-radius: 50%;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.15rem;
}

.process-card h3 {
    margin-bottom: 12px;
    font-size: 1.25rem;
}

.process-card p {
    margin-bottom: 0;
    color: var(--text-light);
    font-size: 0.92rem;
}

/* LÄKEMEDELSBEHANDLING */

.information-section {
    padding: 100px 0;
    background-color: var(--sage-light);
}

.information-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    overflow: hidden;
    background-color: var(--background-light);
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.information-content {
    padding: clamp(45px, 7vw, 85px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.information-content h2 {
    margin-bottom: 24px;
}

.information-content > p:not(.eyebrow) {
    color: var(--text-light);
}

.information-content .btn-secondary {
    align-self: flex-start;
    margin-top: 15px;
}

.information-image-wrapper {
    min-height: 560px;
}

.information-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* VANLIGA FRÅGOR */

.faq-section {
    padding: 110px 0;
}

.faq-grid {
    display: grid;
    grid-template-columns: 1fr 0.85fr;
    align-items: center;
    gap: clamp(45px, 7vw, 85px);
}

.faq-content h2 {
    margin-bottom: 35px;
}

.faq-item {
    border-bottom: 1px solid var(--border);
}

.faq-item summary {
    position: relative;
    padding: 19px 45px 19px 0;
    color: var(--text);
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "+";
    position: absolute;
    right: 8px;
    top: 13px;
    color: var(--sage-dark);
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.7rem;
    font-weight: 400;
}

.faq-item[open] summary::after {
    content: "−";
}

.faq-item p {
    padding: 0 45px 19px 0;
    margin-bottom: 0;
    color: var(--text-light);
}

.faq-image-wrapper {
    overflow: hidden;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.faq-image {
    width: 100%;
    height: 520px;
    object-fit: cover;
}

/* KONTAKTUPPMANING */

.cta-section {
    padding: 75px 0;
    color: var(--white);
    background-color: var(--green);
}

.cta-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.cta-content {
    max-width: 820px;
}

.cta-content .eyebrow {
    color: #dce3d6;
}

.cta-content h2 {
    margin-bottom: 16px;
    color: var(--white);
}

.cta-content p:last-child {
    margin-bottom: 0;
    color: #e0e5dd;
}

.btn-light {
    flex-shrink: 0;
    color: var(--green-dark);
    background-color: var(--white);
}

.btn-light:hover {
    background-color: var(--sage-light);
    transform: translateY(-2px);
}

/* NY SMAL FOOTER */

.footer {
    padding: 12px 0;
    background-color: #eeeee7;
    border-top: 1px solid #dcded5;
}

.footer .footer-container {
    width: min(90%, 1300px);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.footer .footer-brand strong,
.footer .footer-brand p,
.footer .footer-links a,
.footer .footer-copyright {
    font-family: "Poppins", Arial, sans-serif;
    font-size: 0.70rem;
    line-height: 1.7;
}

.footer .footer-brand strong {
    color: #303a2e;
    font-weight: 600;
}

.footer .footer-brand p,
.footer .footer-copyright {
    margin: 0;
    color: #62675f;
    font-weight: 400;
}

.footer .footer-links {
    display: flex;
    align-items: center;
    gap: 22px;
}

.footer .footer-links a {
    color: #62675f;
    font-weight: 400;
    white-space: nowrap;
}

.footer .footer-links a:hover {
    color: #3f4c3c;
}

/* FOOTER – MOBIL */

@media screen and (max-width: 900px) {
    .footer .footer-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .footer .footer-links {
        flex-wrap: wrap;
        gap: 12px 22px;
    }
}

/* MINDRE DATORER OCH SURFPLATTOR */

@media screen and (max-width: 1150px) {
    .logo img {
        width: 180px;
    }

    .nav-links a {
        padding: 9px 5px;
        font-size: 0.73rem;
    }

    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* MOBILMENY OCH MOBILANPASSNING */

@media screen and (max-width: 900px) {
    .header {
        min-height: 76px;
    }

    .header-container {
        min-height: 76px;
        width: 92%;
    }

    .logo img {
        width: 170px;
    }

    .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: 650px;
    }

    .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.95rem;
        border-radius: 0;
    }

    .nav-links .btn-menu {
        margin: 12px 0 0;
        padding: 13px 18px;
        display: inline-flex;
        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);
    }

    .trust-section {
        width: 100%;
        padding: 30px 24px;
        border-radius: 0;
    }

    .trust-grid {
        grid-template-columns: 1fr;
    }

    .services-section,
    .process-section,
    .faq-section {
        padding: 75px 0;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        min-height: 320px;
    }

    .about-section {
        padding: 75px 0;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-image {
        min-height: 390px;
    }

    .process-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .process-grid::before {
        display: none;
    }

    .information-section {
        padding: 0;
    }

    .information-grid {
        width: 100%;
        grid-template-columns: 1fr;
        border-radius: 0;
    }

    .information-content {
        padding: 60px 24px;
    }

    .information-image-wrapper {
        min-height: 420px;
    }

    .faq-grid {
        grid-template-columns: 1fr;
    }

    .faq-image {
        height: 420px;
    }

    .cta-section {
        padding: 60px 0;
    }

    .cta-container {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* SMÅ MOBILTELEFONER */

@media screen and (max-width: 520px) {
    body {
        font-size: 15px;
    }

    .logo img {
        width: 150px;
    }

    .about-image {
        min-height: 300px;
    }

    .information-image-wrapper {
        min-height: 320px;
    }

    .faq-image {
        height: 320px;
    }
}
