/* ==========================================
   STELLA PSYKIATRI
   LÄKARINTYGSSIDAN
========================================== */


/* ==========================================
   INLEDNING / HERO
========================================== */

.certificate-intro {
    padding: 105px 0 95px;

    background: linear-gradient(
        135deg,
        #414d3f 0%,
        #53614f 52%,
        #657261 100%
    );

    border-bottom: none;

    box-shadow: 0 18px 45px rgba(38, 48, 36, 0.14);
}


/* Begränsar textens bredd */

.certificate-intro-content {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}


/* Liten rubrik */

.certificate-intro .eyebrow {
    margin-bottom: 18px;
    color: #f0c3a3;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}


/* Huvudrubrik */

.certificate-intro h1 {
    max-width: 950px;
    margin: 0 auto 28px;
    color: #fffdf8;
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(3rem, 5.2vw, 5rem);
    font-weight: 500;
    line-height: 1.04;
    letter-spacing: -0.035em;
}


/* Vanliga stycken */

.certificate-intro p {
    max-width: 920px;
    margin: 0 auto 19px;
    color: #edf0e9;
    font-size: 1rem;
    line-height: 1.85;
}


/* Viktigaste inledningstexten */

.certificate-intro .certificate-lead {
    max-width: 920px;
    color: #ffffff;
    font-size: 1.18rem;
    font-weight: 500;
    line-height: 1.75;
}


/* Knappar i hero */

.certificate-intro .hero-buttons {
    margin-top: 35px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
}


/* Primär knapp */

.certificate-intro .btn-primary {
    padding: 14px 25px;
    color: #ffffff;
    background-color: #d8733f;
    border: 1px solid #d8733f;
    border-radius: 999px;
    font-weight: 700;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.certificate-intro .btn-primary:hover {
    background-color: #c46231;
    border-color: #c46231;
    transform: translateY(-2px);
}


/* Sekundär knapp */

.certificate-intro .btn-secondary {
    padding: 14px 25px;
    color: #fffdf8;
    background-color: transparent;
    border: 1px solid rgba(255, 253, 248, 0.8);
    border-radius: 999px;
    font-weight: 700;

    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.certificate-intro .btn-secondary:hover {
    color: #465244;
    background-color: #fffdf8;
    border-color: #fffdf8;
    transform: translateY(-2px);
}


/* ==========================================
   INTYGSPROCESS
========================================== */

.certificate-process {
    padding-top: 85px;
    padding-bottom: 85px;
}


/* ==========================================
   SEKTIONEN MED INTYGEN
========================================== */

.certificate-section {
    padding: 95px 0 110px;
    background-color: #faf8f4;
}


/* Rubrik ovanför korten */

.certificate-heading {
    max-width: 900px;
    margin-bottom: 48px;
}

.certificate-heading .eyebrow {
    margin-bottom: 10px;
    color: #697563;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.certificate-heading h2 {
    max-width: 850px;
    margin: 0;
    color: #303a2e;
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(2.7rem, 4.5vw, 4rem);
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: -0.025em;
}


/* ==========================================
   RUTNÄT MED INTYG
========================================== */

.certificate-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}


/* ==========================================
   ENSKILT INTYGSKORT
========================================== */

.certificate-card {
    position: relative;
    min-height: 390px;
    padding: 34px 29px 28px;
    overflow: hidden;

    display: flex;
    flex-direction: column;

    background: linear-gradient(
        145deg,
        #f3eee8 0%,
        #f7f3ee 100%
    );

    border: 1px solid #e5ded5;
    border-radius: 18px;

    box-shadow:
        0 4px 16px rgba(48, 58, 46, 0.025);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}


/* Orange detalj högst upp */

.certificate-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 29px;
    width: 54px;
    height: 4px;
    background-color: #d8733f;
    border-radius: 0 0 4px 4px;
}


/* ==========================================
   ÖVERRUBRIK / ETIKETT
========================================== */

/*
   Överrubriken hämtas från data-label
   på respektive kort i HTML-koden.

   Det innebär att överrubriken alltid
   följer rätt kort även om kortet flyttas.
*/

.certificate-card::before {
    content: attr(data-label);

    display: block;
    width: fit-content;

    margin-bottom: 22px;
    padding: 5px 10px;

    color: #64715f;
    background-color: rgba(107, 122, 101, 0.09);

    border-radius: 999px;

    font-family: "Poppins", Arial, sans-serif;
    font-size: 0.61rem;
    font-weight: 700;
    letter-spacing: 0.12em;
}


/* Hover */

.certificate-card:hover {
    transform: translateY(-6px);
    border-color: #d4cabf;

    box-shadow:
        0 18px 38px rgba(48, 58, 46, 0.09);
}


/* ==========================================
   RUBRIK I KORT
========================================== */

.certificate-card h3 {
    margin: 0 0 17px;
    color: #303a2e;

    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.6rem;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.015em;
}


/* ==========================================
   BESKRIVNING I KORT
========================================== */

.certificate-card > p {
    margin: 0 0 18px;
    color: #60665e;
    font-size: 0.91rem;
    line-height: 1.75;
}

.certificate-card > p strong {
    color: #3f4c3c;
    font-weight: 600;
}


/* ==========================================
   PRIS + KNAPP LÄNGST NED
========================================== */

.certificate-card-bottom {
    margin-top: auto;
    padding-top: 24px;
    border-top: 1px solid rgba(89, 100, 81, 0.13);
}


/* Pris */

.certificate-price {
    width: fit-content;
    margin: 0 0 17px;
    padding: 6px 11px;

    color: #3f4c3c;
    background-color: rgba(89, 100, 81, 0.08);

    border-radius: 7px;

    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.28rem;
    font-weight: 600;
    line-height: 1.2;
}


/* ==========================================
   KNAPP I KORT
========================================== */

.certificate-button {
    min-height: 49px;
    width: fit-content;
    padding: 12px 19px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    color: #ffffff;
    background-color: #3f4c3c;

    border-radius: 9px;

    font-size: 0.86rem;
    font-weight: 700;

    transition:
        background-color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}


/* Pil efter knapptext */

.certificate-button::after {
    content: "→";
    font-size: 1rem;
    transition: transform 0.2s ease;
}

.certificate-button:hover {
    color: #ffffff;
    background-color: #303a2e;
    transform: translateY(-2px);

    box-shadow:
        0 8px 18px rgba(48, 58, 46, 0.13);
}

.certificate-button:hover::after {
    transform: translateX(4px);
}


/* ==========================================
   VISUELL VARIATION MELLAN KORTEN
========================================== */

/* Vissa kort får en något varmare ton */

.certificate-card:nth-child(3n + 2) {
    background: linear-gradient(
        145deg,
        #f4efe9 0%,
        #faf7f3 100%
    );
}


/* Vissa kort får en subtil grön ton */

.certificate-card:nth-child(3n + 3) {
    background: linear-gradient(
        145deg,
        #f0f1eb 0%,
        #f7f7f3 100%
    );
}


/* ==========================================
   FAQ PÅ LÄKARINTYGSSIDAN
========================================== */

.certificate-faq {
    padding-top: 90px;
    padding-bottom: 90px;
    background-color: var(--background);
}


/* ==========================================
   SURFPLATTA / MINDRE DATOR
========================================== */

@media screen and (max-width: 1100px) {

    .certificate-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .certificate-card {
        min-height: 375px;
    }

}


/* ==========================================
   SURFPLATTA
========================================== */

@media screen and (max-width: 850px) {

    .certificate-intro {
        padding: 85px 0 78px;
    }

    .certificate-intro h1 {
        font-size: clamp(2.8rem, 7vw, 4rem);
    }

    .certificate-intro .certificate-lead {
        font-size: 1.1rem;
    }

    .certificate-section {
        padding: 75px 0 85px;
    }

}


/* ==========================================
   MOBIL
========================================== */

@media screen and (max-width: 650px) {

    /* HERO */

    .certificate-intro {
        padding: 70px 0 62px;
    }

    .certificate-intro-content {
        width: 100%;
    }

    .certificate-intro .eyebrow {
        font-size: 0.67rem;
    }

    .certificate-intro h1 {
        margin-bottom: 23px;
        font-size: 2.65rem;
        line-height: 1.06;
    }

    .certificate-intro p {
        font-size: 0.91rem;
        line-height: 1.75;
    }

    .certificate-intro .certificate-lead {
        font-size: 1.02rem;
    }

    .certificate-intro .hero-buttons {
        margin-top: 28px;
        flex-direction: column;
    }

    .certificate-intro .btn-primary,
    .certificate-intro .btn-secondary {
        width: 100%;
    }

    /* INTYG */

    .certificate-section {
        padding: 65px 0 75px;
    }

    .certificate-heading {
        margin-bottom: 35px;
    }

    .certificate-heading h2 {
        font-size: 2.6rem;
    }

    .certificate-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .certificate-card {
        min-height: 0;
        padding: 30px 23px 24px;
        border-radius: 14px;
    }

    .certificate-card::after {
        left: 23px;
    }

    .certificate-card h3 {
        font-size: 1.5rem;
    }

    .certificate-card > p {
        font-size: 0.88rem;
        line-height: 1.7;
    }

    .certificate-button {
        width: 100%;
    }

    .certificate-price {
        font-size: 1.2rem;
    }

}


/* ==========================================
   MYCKET SMÅ SKÄRMAR
========================================== */

@media screen and (max-width: 390px) {

    .certificate-intro h1 {
        font-size: 2.35rem;
    }

    .certificate-card {
        padding-left: 20px;
        padding-right: 20px;
    }

    .certificate-card::after {
        left: 20px;
    }

}


/* ==========================================
   FORMULÄR – FRÅGA OM LÄKARINTYG
========================================== */

.certificate-contact-form {
    width: 100%;
    max-width: 650px;

    display: flex;
    flex-direction: column;

    gap: 16px;
}

.certificate-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.certificate-contact-form input,
.certificate-contact-form textarea {
    width: 100%;
    padding: 17px 18px;

    color: var(--text);
    background-color: #ffffff;

    border: 1px solid var(--border);
    border-radius: 10px;

    font-family: "Poppins", Arial, sans-serif;
    font-size: 0.95rem;

    outline: none;
}

.certificate-contact-form textarea {
    min-height: 140px;
    resize: vertical;
}

.certificate-contact-form input:focus,
.certificate-contact-form textarea:focus {
    border-color: var(--green);
}

.certificate-contact-form .btn-light {
    width: fit-content;
    padding: 14px 25px;

    border: none;
    cursor: pointer;

    font-family: "Poppins", Arial, sans-serif;
    font-weight: 700;
}


/* ==========================================
   FORMULÄR – MOBIL
========================================== */

@media screen and (max-width: 650px) {

    .certificate-form-row {
        grid-template-columns: 1fr;
    }

    .certificate-contact-form .btn-light {
        width: 100%;
    }

}


/* ==========================================
   SKICKA FÖRFRÅGAN OM INTYG
========================================== */

.certificate-order-button {
    background-color: #d8733f;
    color: #ffffff;

    border: 2px solid #d8733f;
    border-radius: 10px;

    padding: 15px 28px;

    font-family: "Poppins", Arial, sans-serif;
    font-size: 0.95rem;
    font-weight: 700;

    cursor: pointer;

    box-shadow:
        0 6px 18px rgba(216, 115, 63, 0.22);

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.certificate-order-button:hover {
    background-color: #c46231;
    border-color: #c46231;

    transform: translateY(-2px);

    box-shadow:
        0 9px 22px rgba(196, 98, 49, 0.28);
}



/* Visa hela bilden med mjukt rundade hörn */
.certificate-faq .faq-image-wrapper {
    height: auto;
    overflow: hidden;
    border-radius: 20px;
}

.certificate-faq .faq-image {
    display: block;
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
    object-position: center;
    border-radius: 20px;
}

.footer-container {
    width: min(90%, 1300px);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 22px;
}

.footer-links a {
    font-size: 0.70rem;
}

.footer strong,
.footer p,
.footer-links a {
    font-size: 0.70rem;
}

.footer {
    padding: 12px 0;
}