/* Fairline hero — desktop overlay; mobile full-height photo + text overlay (Figma). */

.fl-hero {
    --fl-hero-green: #2e3b23;
    --fl-hero-green-hover: #24301c;
    --fl-hero-cream: #f5f0e8;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    margin-top: 1rem;
    border-radius: 16px;
    background: var(--fl-hero-cream);
    color: var(--fl-hero-green);
    font-family: Ubuntu, "Segoe UI", sans-serif;
}

.fl-hero__media {
    position: relative;
    order: 2;
    z-index: 0;
    width: 100%;
    background: var(--fl-hero-cream);
}

.fl-hero__photo {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: contain;
    object-position: center center;
}

.fl-hero__content {
    position: relative;
    order: 1;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    box-sizing: border-box;
    flex: 0 0 auto;
    padding: 28px 18px 24px;
    background: var(--fl-hero-cream);
}

/* Text is baked into photos — only CTAs overlay */
.fl-hero__content--cta {
    background: transparent;
    justify-content: flex-start;
}

.fl-hero__brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin: 0 auto 16px;
    color: var(--fl-hero-green);
}

.fl-hero__mark {
    width: 48px;
    height: 22px;
    display: block;
}

.fl-hero__name {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.22em;
    line-height: 1;
    text-transform: uppercase;
}

.fl-hero__title {
    margin: 0 0 10px;
    font-size: clamp(22px, 6.2vw, 28px);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--fl-hero-green);
}

.fl-hero__text {
    margin: 0 0 16px;
    max-width: 34em;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
    color: var(--fl-hero-green);
}

.fl-hero__actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0 0 14px;
}

.fl-hero__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 44px;
    padding: 10px 16px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.03em;
    line-height: 1.2;
    text-align: center;
    text-decoration: none !important;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.fl-hero__btn--primary {
    border: 1px solid var(--fl-hero-green);
    background: var(--fl-hero-green);
    color: #fff !important;
}

.fl-hero__btn--primary:hover,
.fl-hero__btn--primary:focus {
    background: var(--fl-hero-green-hover);
    border-color: var(--fl-hero-green-hover);
    color: #fff !important;
}

.fl-hero__btn--secondary {
    border: 1px solid var(--fl-hero-green);
    background: rgba(245, 240, 232, 0.75);
    color: var(--fl-hero-green) !important;
}

.fl-hero__btn--secondary:hover,
.fl-hero__btn--secondary:focus {
    background: rgba(245, 240, 232, 0.95);
    color: var(--fl-hero-green) !important;
}

.fl-hero__arrow {
    font-weight: 400;
    line-height: 1;
}

.fl-hero__promo {
    align-self: flex-start;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.3;
    color: var(--fl-hero-green) !important;
    text-decoration: underline !important;
    text-underline-offset: 3px;
}

.fl-hero__promo:hover,
.fl-hero__promo:focus {
    opacity: 0.8;
    color: var(--fl-hero-green) !important;
}

/* ——— Mobile: full-bleed portrait + CTAs tight under baked subtitle ——— */
@media (max-width: 991px) {
    /* Edge-to-edge hero on home */
    #common-home.container-xl {
        padding-left: 0;
        padding-right: 0;
        max-width: 100%;
    }

    #common-home > .row {
        margin-left: 0;
        margin-right: 0;
    }

    #common-home #content {
        padding-left: 0;
        padding-right: 0;
    }

    #common-home #content > *:not(.fl-hero):not(link):not(script):not(style) {
        padding-left: calc(var(--bs-gutter-x, 1.5rem) * 0.5);
        padding-right: calc(var(--bs-gutter-x, 1.5rem) * 0.5);
        box-sizing: border-box;
    }

    .fl-hero {
        display: block;
        position: relative;
        width: 100%;
        max-width: none;
        margin: 0;
        border-radius: 0;
        /* New mobile art is ~1:1 square */
        aspect-ratio: 1 / 1;
        height: auto;
        min-height: 0;
        background: var(--fl-hero-cream);
        overflow: hidden;
    }

    .fl-hero__media {
        position: absolute;
        inset: 0;
        z-index: 0;
    }

    .fl-hero__photo {
        position: absolute;
        inset: 0;
        width: 100% !important;
        height: 100% !important;
        max-width: none;
        object-fit: cover !important;
        object-position: center top;
    }

    /* Under baked logo + title + body on square mobile art (subtitle ends ~56–58%) */
    .fl-hero__content.fl-hero__content--cta {
        position: absolute;
        top: 58%;
        right: 0;
        bottom: auto;
        left: 0;
        z-index: 1;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        width: 100%;
        height: auto;
        min-height: 0;
        /* Align CTA left edge with baked title (user annotation) */
        padding: 0 6% 16px 4.75%;
        background: transparent;
        box-sizing: border-box;
        text-align: left;
    }

    .fl-hero__actions {
        width: 100%;
        max-width: 260px;
        margin: 0 0 10px;
        gap: 8px;
        flex-direction: column;
        align-items: stretch;
        align-self: flex-start;
    }

    .fl-hero__btn {
        min-height: 40px;
        width: 100% !important;
        font-size: 11px;
        letter-spacing: 0.02em;
    }

    .fl-hero__btn--secondary {
        background: rgba(245, 240, 232, 0.94);
    }

    .fl-hero__promo {
        align-self: flex-start;
        margin-top: 0;
        font-size: 12px;
    }
}

/* ——— Desktop ——— */
@media (min-width: 992px) {
    .fl-hero {
        display: block;
        position: relative;
        width: 100%;
        /* Full-bleed 3:1 — matches current desktop art */
        aspect-ratio: 3 / 1;
        height: auto;
        max-height: none;
        min-height: 0;
        overflow: hidden;
    }

    .fl-hero__media {
        position: absolute;
        inset: 0;
        z-index: 0;
        width: 100%;
        height: 100%;
    }

    .fl-hero__photo {
        position: absolute;
        inset: 0;
        display: block;
        width: 100% !important;
        height: 100% !important;
        max-width: none !important;
        object-fit: cover !important;
        object-position: center center;
        padding: 0 !important;
        background: none !important;
    }

    .fl-hero__content {
        position: absolute;
        z-index: 1;
        order: 0;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        width: min(640px, 52%);
        height: auto;
        min-height: 0;
        /* Match baked title/subtitle left edge */
        padding: 0 36px 16px 7.5%;
        background: transparent;
        box-sizing: border-box;
    }

    .fl-hero__content--cta {
        /* % top is vs height (unlike padding-% which is vs width). */
        top: 70%;
        left: 0;
        right: auto;
        bottom: auto;
    }

    .fl-hero__actions {
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        gap: 10px;
        margin: 0 0 12px;
    }

    .fl-hero__btn {
        flex: 0 1 auto;
        width: auto !important;
        max-width: 100%;
        min-width: 0;
        min-height: 42px;
        padding: 0 16px;
        font-size: 12px;
        letter-spacing: 0.02em;
        white-space: nowrap;
    }

    .fl-hero__btn--secondary {
        background: rgba(245, 240, 232, 0.88);
    }

    .fl-hero__btn--secondary:hover,
    .fl-hero__btn--secondary:focus {
        background: rgba(245, 240, 232, 0.98);
    }

    .fl-hero__promo {
        font-size: 14px;
    }
}

@media (min-width: 1200px) {
    .fl-hero__content {
        width: min(620px, 48%);
        padding-left: 7.5%;
    }

    .fl-hero__content--cta {
        top: 70%;
    }

    .fl-hero__btn {
        padding: 0 18px;
        font-size: 13px;
    }
}

/* ——— USP bar under hero (home: 3 items, no delivery) ——— */
/* Mobile: bare line icons. Desktop: glyphs in sage circles. */
.fl-usp {
    --fl-usp-ink: #1a1a1a;
    --fl-usp-muted: #6b6b6b;
    /* Pale olive fill from design mockup (~rgb 228,231,214) */
    --fl-usp-circle: #e4e7d6;
    --fl-usp-icon: #3f4336;
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    list-style: none;
    margin: 12px 0 0;
    padding: 4px 0 8px;
    border: 0;
    border-radius: 0;
    background: transparent;
    font-family: Ubuntu, "Segoe UI", sans-serif;
}

.fl-usp__item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    min-width: 0;
    flex: 0 1 auto;
    padding: 0;
    text-align: left;
}

.fl-usp__icon {
    flex: 0 0 auto;
    display: none;
    align-items: center;
    justify-content: center;
    color: var(--fl-usp-ink);
    line-height: 0;
}

/* Mobile — thin line icons, no circle */
.fl-usp__icon--mobile {
    display: inline-flex;
    width: 28px;
    height: 28px;
    border-radius: 0;
    background: transparent;
    color: var(--fl-usp-ink);
}

.fl-usp__icon--mobile svg {
    display: block;
    width: 26px;
    height: 26px;
}

.fl-usp__icon--desktop {
    display: none;
}

.fl-usp__body {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.fl-usp__title {
    display: none;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.25;
    color: var(--fl-usp-ink);
}

.fl-usp__short {
    display: block;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    color: var(--fl-usp-ink);
    white-space: nowrap;
}

.fl-usp__text {
    display: none;
    margin-top: 2px;
    font-size: 11px;
    font-weight: 400;
    line-height: 1.3;
    color: var(--fl-usp-muted);
}

@media (min-width: 600px) {
    .fl-usp {
        gap: 16px;
        margin-top: 14px;
        padding: 8px 0 4px;
    }

    .fl-usp__item {
        gap: 8px;
    }

    .fl-usp__icon--mobile {
        width: 30px;
        height: 30px;
    }

    .fl-usp__icon--mobile svg {
        width: 28px;
        height: 28px;
    }

    .fl-usp__short {
        font-size: 14px;
    }
}

@media (min-width: 992px) {
    .fl-usp {
        gap: 20px 36px;
        margin-top: 18px;
        padding: 16px 0 10px;
        justify-content: space-between;
    }

    .fl-usp__item {
        gap: 14px;
        flex: 0 1 auto;
    }

    .fl-usp__icon--mobile {
        display: none;
    }

    /* Desktop — sage circle + thin glyph */
    .fl-usp__icon--desktop {
        display: inline-flex;
        width: 52px;
        height: 52px;
        border-radius: 50%;
        background: var(--fl-usp-circle);
        color: var(--fl-usp-icon);
    }

    .fl-usp__icon--desktop svg {
        display: block;
        width: 24px;
        height: 24px;
    }

    .fl-usp__short {
        display: none;
    }

    .fl-usp__title {
        display: block;
        font-size: 15px;
    }

    .fl-usp__text {
        display: block;
        font-size: 13px;
    }
}

