/* ─── Homepage — home.css ───────────────────────────────────────────────────
   Loaded only on the front page (is_front_page()).
   CSS variables from main.css are available here.
   ────────────────────────────────────────────────────────────────────────── */

/* ─── Header on landing page ───────────────────────────────────────────────
   Mobile keeps the header hidden (the hero shows its own centered logo). On
   desktop the redesigned navbar is shown and the hero's logo is dropped.
   ────────────────────────────────────────────────────────────────────────── */

.home .bc-header {
    display: none;
}

@media (min-width: 768px) {
    .home #page {
        position: relative;
    }

    /* Overlay the header on the hero and let the hero gradient show through. */
    .home .bc-header {
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        z-index: 10;
        background: transparent;
    }

    .home .home-hero > img {
        display: none;
    }
}

/* ─── Hero ──────────────────────────────────────────────────────────────── */

.home-hero__subtitle {
    font-weight: 500;
    font-size: 20px;
    line-height: 26px;
    letter-spacing: 0.4px;
    text-align: center;
    color: hsla(0, 0%, 0%, 1);
    margin: 23px auto 30px;
}

/* Extra line break so each sentence gets its own row on mobile;
   removed on desktop so the last two sentences share a line. */
.home-hero__br-mobile {
    display: inline;
}

@media (min-width: 768px) {
    .home-hero__br-mobile {
        display: none;
    }
}

.home-hero h1 {
    font-weight: 700;
    font-size: 52px;
    line-height: 52px;
    letter-spacing: 2.08px;
    text-align: center;
    color: white;
}

.home-hero {
    background: linear-gradient(0deg, rgba(255, 132, 0, 0.00) 0%, #D55803 100%), #FF8400;
    padding: 67px 35px 66px;
}

.home-hero__tagline {
    font-weight: 700;
    font-size: 11px;
    line-height: 52px;
    letter-spacing: 2.64px;
    text-align: center;
    color: hsla(0, 0%, 0%, 1);
    margin-top: 30px;
    margin-bottom: 5px;
}

.home-hero > img {
    width: 178px;
    height: auto;
    margin: 0 auto;
}

.home-hero__buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 13px;
    margin-top: 30px;
    margin-bottom: 24px;
}

.home-hero__buttons .button {
    width: 256px;
    height: 46px;
}

/* ─── Stats ─────────────────────────────────────────────────────────────── */

.home-stats__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 9px;
}

.home-stats__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.home-stats__number {
    font-weight: 400;
    font-size: 36px;
    line-height: normal;
    letter-spacing: 0.36px;
    text-align: center;
    color: white;
}

.home-stats__label {
    font-weight: 700;
    font-size: 11px;
    line-height: 15px;
    letter-spacing: 2.64px;
    text-align: center;
    text-transform: uppercase;
    color: white;
}

/* ─── Features ──────────────────────────────────────────────────────────── */

.home-features {
    background: #E9E8E3;
}

.home-features__list {
    list-style: none;
    padding: 51px 0 57px;
    margin: 0;
    width: 343px;
    margin: 0 auto;
}

.home-features__item {
    text-align: center;
    border-bottom: 1px solid hsla(0, 0%, 100%, 1);
    padding: 14px 40px;
}

.home-features__item:last-child {
    border-bottom: none;
}

.home-features__title {
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 0.18px;
    text-align: center;
    margin-bottom: 6px;
}

.home-features__text {
    font-weight: 400;
    font-size: 16px;
    line-height: 18px;
    letter-spacing: 0.16px;
    text-align: center;
    margin-bottom: 0;
    color: black;
}

/* ─── Login ──────────────────────────────────────────────────────────────── */

.home-login {
    background-color: var(--color-brand);
    padding: 5px 0 43px;
}

/* ─── Section eyebrow (shared) ─────────────────────────────────────────────── */

.home-eyebrow {
    font-weight: 700;
    font-size: 11px;
    line-height: 52px;
    letter-spacing: 2.64px;
    text-transform: uppercase;
    text-align: center;   /* centered on mobile; left-aligned on desktop */
    color: hsla(0, 0%, 20%, 1);
    margin: 0 0 8px;
}

/* Orange login section → white eyebrow. */
.home-login .home-eyebrow {
    color: white;
}

/* Eyebrow line break only applies on desktop (single line on mobile). */
.home-eyebrow__br {
    display: none;
}

.home-login__title {
    font-weight: 700;
    font-size: 24px;
    line-height: 24px;
    letter-spacing: -0.03em;
    text-align: center;
    color: black;
    margin: 0 0 7px;
}

.home-login__text {
    font-weight: 400;
    font-size: 16px;
    line-height: 19px;
    letter-spacing: -0.01em;
    text-align: center;
    color: black;
    margin: 0 auto 19px;
    max-width: 270px;
}

.home-login__form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 0;
}

.home-login__fields {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.home-login__field {
    width: 340px;
}

.home-login__field label {
    color: white;
    font-size: 12px;
    font-weight: 500;
    line-height: 17px;
    letter-spacing: 1.8px;
}

.home-login__field input {
    background: #F0F0F0;
    padding: 0 14px;
}

.home-login__forgot {
    font-weight: 500;
    font-size: 14px;
    line-height: 17px;
    letter-spacing: 0.14px;
    text-align: right;
    text-decoration: underline;
    color: white;
    display: block;
    margin-top: 6px;
}

.home-login__form button {
    margin-top: 28px;
}

/* ─── Systembolaget (privatkund) ─────────────────────────────────────────── */

.home-systembolaget {
    background: hsla(0, 0%, 90%, 1);
    padding: 0 24px 43px;
    text-align: center;
}

.home-systembolaget__title {
    font-weight: 700;
    font-size: 24px;
    line-height: 24px;
    letter-spacing: -0.03em;
    text-align: center;
    color: black;
    margin: 0 auto 7px;
    max-width: 168px;
}

.home-systembolaget__text {
    font-weight: 400;
    font-size: 16px;
    line-height: 19px;
    letter-spacing: 0.16px;
    text-align: center;
    color: black;
    margin: 0 auto;
    max-width: 230px;
}

.home-systembolaget .button {
    margin-top: 74px;
}

/* ─── Newsletter ─────────────────────────────────────────────────────────── */

.home-newsletter {
    padding: 0 0 29px;
}

.home-newsletter__form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.home-newsletter__fields {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.home-newsletter__title {
    font-weight: 700;
    font-size: 24px;
    line-height: 24px;
    letter-spacing: -0.03em;
    text-align: center;
    color: var(--color-accent);
    margin: 0 0 7px;
}

.home-newsletter__text {
    font-weight: 400;
    font-size: 16px;
    line-height: 19px;
    letter-spacing: 0.16px;
    text-align: center;
    color: var(--color-grey);
    width: 279px;
    margin: 0 auto 29px;
}

.home-newsletter__form button {
    width: 240px;
    margin-top: 35px;
}

/* ─── Desktop ────────────────────────────────────────────────────────────────
   The mobile layout above is preserved. From 768px up, sections widen and
   reflow to multi-column, capped at --max-width-desktop and centered.
   ────────────────────────────────────────────────────────────────────────── */

@media (min-width: 768px) {

    .home-hero {
        background: linear-gradient(0deg, rgba(255, 132, 0, 0.00) 0%, rgba(227, 118, 0, 0.80) 86.54%, #C86700 100%), #FF8400;
        padding: 198px 24px 120px;
    }

    .home-hero > img {
        width: 220px;
    }

    .home-hero__tagline {
        color: #FFF;
        font-size: 18px;
        font-weight: 600;
        line-height: 52px;
        letter-spacing: 6.84px;
        margin: 0 0 64px;
    }

    .home-hero h1 {
        font-size: 104px;
        line-height: 104px;
        letter-spacing: 4.16px;
        margin: 0 0 70px;
    }

    .home-hero__subtitle {
        width: auto;
        max-width: 900px;
        color: #FFF;
        font-size: 36px;
        font-weight: 500;
        line-height: normal;
        letter-spacing: 0.72px;
        margin: 0 auto 93px;
    }

    .home-hero__buttons {
        flex-direction: row;
        justify-content: center;
        gap: 32px;
        margin-top: 0;
        margin-bottom: 0;
    }

    .home-hero__buttons .button {
        width: 295px;
        height: 46px;
    }

    /* Stats — horizontal row with a full-bleed top divider.
       Negative side margins cancel the hero's 24px padding so the line spans
       the full hero width, while the items stay centered as a group. */
    .home-stats__list {
        flex-direction: row;
        justify-content: center;
        gap: 100px;
        max-width: none;
        margin: 192px -24px 0;
        padding-top: 75px;
        border-top: 2px solid #FFA673;
        border-image: linear-gradient(0deg, #FFA673 0%, #FFA673 100%) 1;
    }

    .home-stats__number {
        font-size: 64px;
        font-weight: 300;
        letter-spacing: 0.64px;
    }

    .home-stats__label {
        font-size: 18px;
        font-weight: 600;
        line-height: 27px;
        letter-spacing: 4.32px;
    }

    /* Features — 3 columns */
    .home-features__list {
        width: auto;
        max-width: var(--max-width-desktop);
        padding: 85px 140px 107px;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 48px;
        align-items: start;
    }

    .home-features__item {
        padding: 0;
        border-bottom: none;
    }

    .home-features__title {
        font-size: 28px;
        margin-bottom: 17px;
    }

    .home-features__text {
        font-size: 24px;
        color: black;
        font-weight: 400px;
        line-height: 30px;
        letter-spacing: 0.24px;
    }


    /* Left-aligned, inset from the section edge. */
    .home-eyebrow {
        text-align: left;
        width: 100%;
        max-width: 1440px;
        margin: 0 auto;
        padding: 0 100px;
        font-weight: 700;
        font-size: 14px;
        line-height: 24px;
        letter-spacing: 4.9px;
    }

    .home-eyebrow__br {
        display: inline;
    }

    /* Login */
    .home-login {
        position: relative;
        padding: 40px 24px 67px;
    }

    .home-login__field label {
        color: white;
        font-size: 14px;
        font-weight: 500;
        line-height: 17px;
        letter-spacing: 2.1px;
    }

    .home-login__title {
        font-size: 28px;
        line-height: 24px;
        letter-spacing: 0.56px;
        margin-bottom: 11px;
    }

    .home-login__text {
        width: auto;
        max-width: 520px;
        font-size: 24px;
        line-height: 30px;
        letter-spacing: 0.24px;
        margin-bottom: 40px;
    }

    /* Inputs side by side, centered. */
    .home-login__fields {
        flex-direction: row;
        align-items: flex-start;
        justify-content: center;
        gap: 26px;
    }

    .home-login__field {
        width: 340px;
    }

    .home-login__field input {
        width: 100%;
    }

    .home-login__form button {
        margin-top: 43px;
    }

    /* Systembolaget (privatkund) */
    .home-systembolaget {
        position: relative;
        padding: 40px 24px 67px;
    }

    .home-systembolaget__title {
        font-size: 30px;
        line-height: 32px;
        margin: 0 0 16px;
        max-width: none;
    }

    .home-systembolaget__text {
        max-width: 520px;
        font-size: 18px;
    }

    .home-systembolaget .button {
        margin-top: 98px;
    }

    /* Newsletter */
    .home-newsletter {
        position: relative;
        padding: 40px 24px 67px;
    }

    .home-newsletter__title {
        font-size: 30px;
        line-height: 32px;
        margin: 0 0 16px;
    }

    .home-newsletter__text {
        width: auto;
        max-width: 520px;
        font-size: 18px;
    }

    .home-newsletter__form {
        max-width: 720px;
        margin: 0 auto;
    }

    /* Inputs side by side, centered. */
    .home-newsletter__fields {
        flex-direction: row;
        align-items: flex-start;
        justify-content: center;
        gap: 24px;
    }

    .home-newsletter__field {
        width: 340px;
    }

    .home-newsletter__field input {
        width: 100%;
    }
}