/* ==========================================
   KJORA – FAQ
   Responsiv layout för mobil, surfplatta och dator
   ========================================== */

@font-face {
    font-family: "Butler";
    src: url("Font/Butler-Free-Med.otf") format("opentype");
    font-display: swap;
}
@font-face {
    font-family: "Bank";
    src: url("Font/F25_Bank_Printer.otf") format("opentype");
    font-display: swap;
}
@font-face {
    font-family: "Creato";
    src: url("Font/CreatoDisplay-Light.otf") format("opentype");
    font-display: swap;
}

:root {
    --dark: #2c211b;
    --deep: #28190f;
    --cream: wheat;
    --text: #fff8ef;
    --muted: rgba(255, 248, 239, .82);
    --content-width: 920px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    width: 100%;
    min-height: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: clip;
    color: var(--text);
    background: var(--dark) url("Bilder/Mönster4.png") repeat;
    font-family: "Creato", Arial, sans-serif;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Navbar */
.navbar {
    width: 100%;
    min-height: 84px;
    padding: 10px clamp(18px, 5.2vw, 76px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex: 0 0 auto;
    position: relative;
    z-index: 2;
    background: rgba(40, 25, 15, .92);
}

.nav-logo {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}

.nav-logo img {
    width: clamp(96px, 12vw, 150px);
    height: 58px;
    object-fit: contain;
}

.nav-links {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: clamp(10px, 2vw, 28px);
}

.nav-links a {
    display: flex;
    align-items: center;
    color: var(--text);
    font-family: "Bank", Arial, sans-serif;
    font-size: clamp(10px, .95vw, 15px);
    letter-spacing: .05em;
    white-space: nowrap;
    transition: color .2s ease;
}

.nav-links a:hover {
    color: #d8b08c;
}

.nav-links .cart-link img {
    width: 25px;
    height: 25px;
    object-fit: contain;
}

/* Page */
.faq-page {
    width: min(100% - 40px, 1100px);
    margin: 0 auto;
    padding: clamp(36px, 5vw, 64px) 0 clamp(48px, 6vw, 78px);
}

.faq-heading {
    max-width: 760px;
    margin: 0 auto clamp(30px, 4vw, 48px);
    text-align: center;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--cream);
    font-family: "Bank", Arial, sans-serif;
    font-size: 11px;
    letter-spacing: .16em;
    line-height: 1.6;
}

.faq-heading h1 {
    margin: 0;
    color: var(--cream);
    font-family: "Butler", Georgia, serif;
    font-size: clamp(32px, 4.5vw, 54px);
    font-weight: 400;
    line-height: 1.15;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.faq-heading > p:last-child {
    max-width: 650px;
    margin: 18px auto 0;
    color: var(--muted);
    font-size: clamp(15px, 1.4vw, 18px);
    line-height: 1.7;
}

/* FAQ accordion */
.Faq {
    width: 100%;
    max-width: var(--content-width);
    margin: 0 auto;
}

.FaqFraga {
    border-bottom: 1px solid rgba(255, 248, 239, .45);
}

.FaqKnapp {
    width: 100%;
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 4px;
    border: 0;
    background: transparent;
    color: var(--text);
    font-family: "Butler", Georgia, serif;
    font-size: clamp(17px, 1.55vw, 21px);
    line-height: 1.4;
    text-align: left;
    cursor: pointer;
}

.FaqKnapp > span:first-child {
    min-width: 0;
    overflow-wrap: anywhere;
}

.FaqKnapp:hover,
.FaqKnapp:focus-visible {
    color: var(--cream);
}

.FaqKnapp:focus-visible,
.contact-button:focus-visible,
.nav-links a:focus-visible {
    outline: 2px solid var(--cream);
    outline-offset: 4px;
}

.Plus {
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 248, 239, .65);
    border-radius: 50%;
    color: var(--cream);
    font-family: Arial, sans-serif;
    font-size: 20px;
    line-height: 1;
}

.FaqSvar {
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
}

.FaqSvar p {
    max-width: 780px;
    margin: 0;
    padding: 0 44px 22px 4px;
    color: var(--muted);
    font-family: "Creato", Arial, sans-serif;
    font-size: clamp(15px, 1.2vw, 17px);
    line-height: 1.8;
    overflow-wrap: anywhere;
}

.FaqSvar a {
    color: var(--cream);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.FaqSvar a:hover {
    color: #fff;
}

.FaqSvar.is-open {
    /* max-height is set by the accordion script for smooth expansion */
}

/* Contact prompt */
.contact-cta {
    width: min(100%, 920px);
    margin: clamp(42px, 6vw, 72px) auto 0;
    padding: clamp(24px, 3.5vw, 42px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    border: 1px solid rgba(245, 222, 179, .72);
    border-radius: 8px;
    background: rgba(40, 25, 15, .45);
}

.contact-cta > div {
    min-width: 0;
}

.contact-cta .eyebrow {
    margin-bottom: 10px;
}

.contact-cta h2 {
    margin: 0;
    color: var(--cream);
    font-family: "Butler", Georgia, serif;
    font-size: clamp(23px, 2.5vw, 32px);
    font-weight: 400;
    line-height: 1.2;
}

.contact-cta > div > p:last-child {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.6;
}

.contact-button {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-height: 48px;
    padding: 13px 22px;
    border-radius: 4px;
    background: var(--cream);
    color: #2c211b;
    font-family: "Bank", Arial, sans-serif;
    font-size: 12px;
    letter-spacing: .04em;
    white-space: nowrap;
    transition: transform .2s ease, background .2s ease;
}

.contact-button:hover {
    transform: translateY(-2px);
    background: #f5dfbd;
}

/* Footer */
footer {
    width: 100%;
    margin-top: auto;
    padding: clamp(30px, 3.5vw, 48px) clamp(22px, 8vw, 112px);
    display: grid;
    grid-template-columns: 2fr repeat(3, minmax(0, 1fr));
    gap: clamp(20px, 3vw, 38px);
    background: var(--deep);
    color: var(--text);
}

footer > div {
    min-width: 0;
}

footer .footer-brand img {
    width: clamp(100px, 8vw, 135px);
    height: auto;
    object-fit: contain;
}

footer .footer-brand p {
    margin: 12px 0 0;
    color: var(--text);
    font-family: "Butler", Georgia, serif;
    font-size: 13px;
    line-height: 1.5;
}

footer h4 {
    margin: 4px 0 14px;
    color: var(--text);
    font-family: "Bank", Arial, sans-serif;
    font-size: 12px;
    letter-spacing: .1em;
    opacity: .7;
}

footer a {
    display: block;
    margin: 9px 0;
    color: var(--muted);
    font-family: "Creato", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

footer a:hover {
    color: var(--cream);
}

/* Tablet */
@media (max-width: 800px) {
    .navbar {
        padding: 10px 22px;
        gap: 14px;
    }

    .nav-logo img {
        width: 100px;
        height: 54px;
    }

    .nav-links {
        gap: 10px 13px;
    }

    .nav-links a {
        font-size: 10px;
    }

    .faq-page {
        width: min(100% - 36px, 760px);
    }

    .contact-cta {
        gap: 20px;
        padding: 26px;
    }

    footer {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 32px 28px;
        gap: 24px;
    }

    footer .footer-brand {
        grid-column: 1 / -1;
    }
}

/* Mobile */
@media (max-width: 560px) {
    .navbar {
        flex-direction: column;
        justify-content: center;
        gap: 7px;
        padding: 10px 12px 14px;
    }

    .nav-logo img {
        width: 92px;
        height: 48px;
    }

    .nav-links {
        width: 100%;
        justify-content: center;
        gap: 10px 12px;
    }

    .nav-links a {
        font-size: 10px;
        letter-spacing: .02em;
    }

    .nav-links .cart-link img {
        width: 22px;
        height: 22px;
    }

    .faq-page {
        width: calc(100% - 32px);
        padding-top: 34px;
        padding-bottom: 44px;
    }

    .faq-heading {
        margin-bottom: 24px;
    }

    .faq-heading h1 {
        font-size: clamp(29px, 8vw, 38px);
        letter-spacing: .035em;
    }

    .faq-heading > p:last-child {
        margin-top: 12px;
        font-size: 15px;
    }

    .FaqKnapp {
        min-height: 58px;
        gap: 12px;
        padding: 15px 2px;
        font-size: 17px;
    }

    .Plus {
        flex-basis: 26px;
        width: 26px;
        height: 26px;
        font-size: 18px;
    }

    .FaqSvar p {
        padding: 0 8px 18px 2px;
        font-size: 15px;
        line-height: 1.7;
    }

    .contact-cta {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
        margin-top: 34px;
        padding: 23px 20px;
    }

    .contact-cta h2 {
        font-size: 27px;
    }

    .contact-button {
        align-self: flex-start;
    }

    footer {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 28px 18px;
        gap: 22px 16px;
    }

    footer .footer-brand {
        grid-column: 1 / -1;
    }

    footer .footer-brand img {
        width: 110px;
    }

    footer h4,
    footer a {
        font-size: 12px;
    }
}

@media (max-width: 350px) {
    .nav-links {
        gap: 8px;
    }

    .nav-links a {
        font-size: 9px;
    }

    .faq-page {
        width: calc(100% - 24px);
    }

    .FaqKnapp {
        font-size: 16px;
    }

    .contact-cta {
        padding: 20px 16px;
    }

    footer {
        padding-right: 12px;
        padding-left: 12px;
        gap: 20px 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
    }
}
