/* --- FÄRGVARIANTER --- */
:root {
    --primary-color: #235B67;
    /* Slate Gray (Accent) */
    --secondary-color: #2f7889;
    /* Medium Purple (Action/Button) */
    --background-color: #CFC1AC;
    /* Soft White */
    --text-color: #333333;
    /* Dark Gray */
    --light-gray: #EDEDED;
}

/* --- BASÅTERSTÄLLNING OCH TYPOGRAFI --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

h1,
h2,
h3 {
    margin-bottom: 0.8em;
    font-weight: 600;
    color: var(--primary-color);
}

h2 {
    font-size: 2.2em;
}

h3 {
    font-size: 1.8em;
}

p {
    margin-bottom: 1.2em;
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--primary-color);
}

/* --- HEADER OCH NAVIGATION --- */
header {
    background: white;
    padding: 20px 0;
    border-bottom: 1px solid var(--light-gray);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    margin: 0;
    font-size: 1.8em;
}

nav ul {
    list-style: none;
    display: flex;
}

nav ul li {
    margin-left: 20px;
}

nav a {
    color: var(--text-color);
    padding: 5px 10px;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
}

nav a:hover,
nav a.active {
    color: white;
    background-color: var(--primary-color);
}

/* --- KNAPPAR --- */
.button {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: transform 0.2s, opacity 0.2s;
}

.button:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.button.primary {
    background-color: var(--primary-color);
    color: white;
    border: 2px solid var(--primary-color);
}

.button.secondary {
    background-color: var(--secondary-color);
    color: white;
    border: 2px solid var(--secondary-color);
}

/* --- SECTIONS --- */
.content-section {
    padding: 60px 0;
}

.secondary-bg {
    background-color: var(--light-gray);
}

/* --- HERO SECTION (START) --- */
.hero-section {
    background: var(--primary-color);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.hero-section h2 {
    color: white;
    font-size: 3em;
    margin-bottom: 0.2em;
}

.hero-section p {
    font-size: 1.3em;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* --- TRE PELARE (START) / RESEARCH FOCUS (TERAPEUT) --- */
.three-pillars,
.research-focus {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.three-pillars article,
.research-focus div {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.three-pillars h4,
.research-focus h4 {
    color: var(--secondary-color);
    font-size: 1.4em;
    margin-bottom: 10px;
}

/* --- LISTOR OCH ANTECKNINGAR --- */
.check-list {
    list-style: none;
    padding-left: 0;
}

.check-list li {
    padding-left: 1.8em;
    position: relative;
    margin-bottom: 0.5em;
}

.check-list li::before {
    content: "✔️";
    position: absolute;
    left: 0;
    color: var(--secondary-color);
}

.bullet-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
    list-style: disc;
    margin-left: 20px;
}

.step-list {
    list-style: none;
    counter-reset: step-counter;
    padding-left: 0;
}

.step-list li {
    background: white;
    padding: 25px;
    border-left: 5px solid var(--primary-color);
    margin-bottom: 20px;
    border-radius: 5px;
    position: relative;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.step-list li h4 {
    margin-top: 0;
    padding-left: 40px;
    position: relative;
    color: var(--primary-color);
}

.step-list li h4::before {
    counter-increment: step-counter;
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    background: var(--secondary-color);
    color: white;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.1em;
}

.note {
    background-color: #fffacd;
    /* Soft yellow for a note */
    padding: 15px;
    border-left: 4px solid var(--secondary-color);
    margin-top: 30px;
    border-radius: 5px;
}

/* --- ALERTS --- */
.alert {
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    font-weight: 600;
    text-align: center;
    animation: fadeIn 0.5s ease;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- KONTAKT SIDA --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 40px;
    align-items: start;
}

.contact-info h3 {
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.contact-image {
    width: 100%;
    max-width: 480px;
    border-radius: 15px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    margin-top: 25px;
    transition: transform 0.3s ease;
}

.contact-image:hover {
    transform: scale(1.02);
}

/* --- FORM STYLING --- */
.contact-form-container {
    background: white;
    padding: 45px;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.contact-form-container h3 {
    margin-bottom: 30px;
    font-size: 1.6em;
    border-bottom: 2px solid var(--light-gray);
    padding-bottom: 10px;
    display: inline-block;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 0.9em;
    color: var(--primary-color);
    letter-spacing: 0.2px;
}

.required {
    color: #d93025;
    margin-left: 2px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1.5px solid #e0e0e0;
    border-radius: 10px;
    font-family: inherit;
    font-size: 1em;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: #fafafa;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 4px rgba(47, 120, 137, 0.15);
    background-color: white;
    transform: translateY(-1px);
}

.contact-form .button {
    width: 100%;
    border: none;
    cursor: pointer;
    margin-top: 15px;
    padding: 16px;
    font-size: 1.05em;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(35, 91, 103, 0.2);
}

.contact-form .button:hover {
    box-shadow: 0 6px 20px rgba(35, 91, 103, 0.3);
}

/* --- FOOTER --- */
footer {
    background-color: var(--text-color);
    color: white;
    text-align: center;
    padding: 20px 0;
    font-size: 0.9em;
}

footer a {
    color: white;
    text-decoration: underline;
}

/* --- UTILITY KLASSER --- */
.mt-40 {
    margin-top: 40px;
}

/* --- RESPONSIVITET --- */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
    }

    nav ul {
        margin-top: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    nav ul li {
        margin: 5px 10px;
    }

    .hero-section {
        padding: 60px 20px;
    }

    .hero-section h2 {
        font-size: 2.5em;
    }

    .contact-details {
        grid-template-columns: 1fr;
    }

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