/*
 * Flexiblocks — Shared Styles
 * Covers all block types used across home and interior templates.
 * Font sizes inherit from theme throughout.
 */

/* ── Tokens ──────────────────────────────────────── */
:root {
    --fb-green:      #495037;
    --fb-gold:       #c9b97a;
    --fb-cream:      #faf8f5;
    --fb-white:      #ffffff;
    --fb-text:       #3a3228;
    --fb-text-mid:   #6b5f50;
    --fb-text-muted: #9a8c6e;
    --fb-border:     #e0d8cc;
    --fb-px:         64px;
}

/* ── Wrapper breakout ────────────────────────────── */
.fb-page-template .entry-content {
    max-width: none !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    float: none !important;
}

/* ── Base ────────────────────────────────────────── */
.fb-page {
    background: var(--fb-cream);
    color: var(--fb-text);
    width: 100%;
    max-width: none;
}

.fb-eyebrow {
    display: block;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--fb-text-muted);
    margin-bottom: 14px;
}

.fb-text-link {
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--fb-green);
    border-bottom: 0.5px solid var(--fb-green);
    padding-bottom: 2px;
    text-decoration: none;
    display: inline-block;
    margin-top: 12px;
}

.fb-btn {
    display: inline-block;
    border: 1px solid rgba(240, 232, 216, 0.6);
    color: #e8dfc8;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 12px 120px;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
    background: transparent;
}

.fb-btn:hover {
    background: rgba(240, 232, 216, 0.1);
    color: #e8dfc8;
}

/* ── Hero slider ─────────────────────────────────── */
.fb-hero-slider {
    width: 100%;
}

/* ── Hero split ──────────────────────────────────── */
.fb-hero {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    min-height: 520px;
    width: 100%;
}

.fb-hero__text {
    background: var(--fb-white);
    padding: 80px var(--fb-px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.fb-hero__heading {
    font-weight: 400;
    line-height: 1.3;
    margin-bottom: 22px;
}

.fb-hero__body p {
    color: var(--fb-text-mid);
    line-height: 1.85;
    margin-bottom: 14px;
}

.fb-hero__media {
    overflow: hidden;
    min-width: 0;
    aspect-ratio: 16 / 9;
}

.fb-hero__media img,
.fb-hero__media video {
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: cover;
    display: block;
}

/* ── Two-column image panels ─────────────────────── */
.fb-image-panels {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--fb-white);
    padding: 96px 25%;
    gap: 48px;
}

.fb-image-panels__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    gap: 24px;
}

.fb-image-panels__image {
    overflow: hidden;
    width: 100%;
}

.fb-image-panels__image {
    aspect-ratio: 2 / 3 !important;
    width: 100%;
    overflow: hidden;
    position: relative;
}

.fb-image-panels__image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block;
    transition: transform 0.6s ease;
}

.fb-image-panels__item:hover .fb-image-panels__image img {
    transform: scale(1.03);
}

.fb-image-panels__label {
    border: 1px solid var(--fb-text);
    color: var(--fb-text);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    padding: 12px 40px;
    display: inline-block;
    transition: background 0.2s ease, color 0.2s ease;
}

.fb-image-panels__item:hover .fb-image-panels__label {
    background: var(--fb-text);
    color: var(--fb-white);
}

/* ── Carousel ────────────────────────────────────── */
.fb-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 0;
}

.fb-carousel__track {
    display: flex;
    transition: transform 0.45s ease;
    will-change: transform;
}

.fb-carousel__slide {
    flex-shrink: 0;
    padding: 0 6px;
    box-sizing: border-box;
}

.fb-carousel__slide:first-child { padding-left: 0; }
.fb-carousel__slide:last-child { padding-right: 0; }

.fb-carousel__slide img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    display: block;
}

/* Prev / next buttons */
.fb-carousel__btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.9);
    border: none;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    color: var(--fb-text);
    transition: background 0.2s ease;
    padding: 0;
    margin-top: -16px; /* offset for bottom padding */
}

.fb-carousel__btn:hover {
    background: var(--fb-white);
}

.fb-carousel__btn--prev { left: 12px; }
.fb-carousel__btn--next { right: 12px; }

@media ( max-width: 768px ) {
    .fb-carousel__slide img { height: 220px; }
}

/* ── Feature block ───────────────────────────────── */
.fb-feature {
    position: relative;
    display: flex;
    align-items: center;
    padding: 140px 0;
    background: transparent;
    justify-content: flex-end;
}

/* Green background — inset top and bottom, full right edge */
.fb-feature::after {
    content: '';
    position: absolute;
    top: 140px;
    right: 0;
    bottom: 140px;
    width: 78%;
    background: #495037;
    z-index: 0;
}

.fb-feature--img-right::after {
    right: auto;
    left: 0;
}

.fb-feature__image {
    position: relative;
    z-index: 1;
    flex: 0 0 25%;
    margin-left: 10%;
    padding: 40px 0;
    display: flex;
    align-items: center;
}

.fb-feature__image-inner {
    position: relative;
    width: 100%;
    aspect-ratio: 2 / 3;
    overflow: hidden;
}

.fb-feature__image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block;
    z-index: 1;
}

.fb-feature--img-right .fb-feature__image { order: 2; }
.fb-feature--img-right .fb-feature__body  { order: 1; }

.fb-feature__body {
    position: relative;
    z-index: 1;
    flex: 1;
    padding: 64px 72px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.fb-feature__heading {
    font-weight: 400;
    line-height: 1.4;
    margin-bottom: 20px;
    color: #e8dfc8 !important;
}

.fb-feature__copy p {
    color: rgba(232, 223, 200, 0.7) !important;
    line-height: 1.85;
    margin-bottom: 14px;
}

.fb-feature__badge {
    color: rgba(232, 223, 200, 0.75);
    margin-top: 20px;
}

.fb-feature .fb-eyebrow {
    color: rgba(201, 185, 122, 0.7);
}

.fb-feature .fb-text-link {
    color: var(--fb-gold);
    border-bottom-color: var(--fb-gold);
    margin-top: 16px;
}

/* ── CTA button centred ──────────────────────────── */
.fb-cta-button {
    background: #495037;
    padding: 160px var(--fb-px);
    text-align: center;
}

/* ── Showroom split ──────────────────────────────── */
.fb-showroom {
    display: grid;
    grid-template-columns: 2fr 1fr;
    min-height: 520px;
    padding: 0;
    gap: 0;
    width: 100%;
}

.fb-showroom__image {
    overflow: hidden;
    min-width: 0;
}

.fb-showroom__image img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: cover;
    display: block;
}

.fb-showroom__content {
    background: var(--fb-white);
    padding: 64px 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    text-align: center;
}

.fb-showroom__content .fb-btn {
    border-color: var(--fb-green);
    color: var(--fb-green);
}

.fb-showroom__content .fb-btn:hover {
    background: var(--fb-green);
    color: var(--fb-white);
}

.fb-showroom__heading {
    font-weight: 400;
    line-height: 1.35;
}

.fb-showroom__body {
    color: var(--fb-text-mid);
    line-height: 1.8;
}

/* ── Intro band ──────────────────────────────────── */
.fb-band {
    background: var(--fb-green);
    padding: 40px var(--fb-px);
    display: flex;
    align-items: center;
    gap: 48px;
}

.fb-band__quote {
    font-weight: 400;
    font-style: italic;
    color: #e8dfc8;
    line-height: 1.6;
    flex: 1;
    margin: 0;
}

.fb-band__link {
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--fb-gold);
    border-bottom: 0.5px solid var(--fb-gold);
    padding-bottom: 2px;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ── Full-width image ────────────────────────────── */
.fb-full-image {
    position: relative;
    height: 520px;
    overflow: hidden;
}

.fb-full-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.fb-full-image__caption {
    position: absolute;
    bottom: 24px;
    left: var(--fb-px);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(240, 232, 216, 0.75);
}

/* ── Pull quote ──────────────────────────────────── */
.fb-pull-quote {
    padding: 96px 160px;
    text-align: center;
    background: var(--fb-white);
    border-top: 0.5px solid var(--fb-border);
    border-bottom: 0.5px solid var(--fb-border);
}

.fb-pull-quote blockquote {
    font-weight: 400;
    font-style: italic;
    line-height: 1.6;
    color: var(--fb-text);
    margin: 0 0 16px;
    quotes: none;
}

.fb-pull-quote cite {
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--fb-text-muted);
    font-style: normal;
}

/* ── CTA strip ───────────────────────────────────── */
.fb-cta {
    background: var(--fb-green);
    padding: 80px var(--fb-px);
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 48px;
    align-items: center;
}

.fb-cta__heading {
    font-weight: 400;
    color: #e8dfc8;
    margin-bottom: 10px;
}

.fb-cta__body {
    color: rgba(232, 223, 200, 0.65);
    line-height: 1.7;
    margin: 0;
}

.fb-cta__btn {
    background: var(--fb-gold);
    color: #2a2018;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 16px 32px;
    border-radius: 2px;
    text-decoration: none;
    white-space: nowrap;
    font-weight: 500;
    display: inline-block;
    transition: opacity 0.2s ease;
}

.fb-cta__btn:hover { opacity: 0.88; }

/* ── Video ───────────────────────────────────────── */
.fb-video {
    background: #1a120a;
    position: relative;
}

.fb-video__player {
    width: 100%;
    max-height: 600px;
    display: block;
    object-fit: cover;
}

.fb-video__label {
    position: absolute;
    bottom: 20px;
    left: var(--fb-px);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(240, 232, 216, 0.55);
    pointer-events: none;
}

/* ── Responsive ──────────────────────────────────── */
@media ( max-width: 900px ) {
    :root { --fb-px: 40px; }
    .fb-image-panels__image img { height: 240px; }
}

@media ( max-width: 768px ) {
    :root { --fb-px: 20px; }

    .fb-hero,
    .fb-feature,
    .fb-showroom { grid-template-columns: 1fr; }

    .fb-hero__media { aspect-ratio: 4 / 3; }
    .fb-hero__text  { padding: 48px 20px; }

    .fb-feature {
        flex-direction: column;
        padding: 0;
    }
    .fb-feature::after { display: none; }
    .fb-feature__image {
        flex: none;
        width: 100%;
        padding: 0;
        margin-left: 0 !important;
        background: #495037;
    }
    .fb-feature__image-inner {
        aspect-ratio: 4 / 3;
        width: 100%;
    }
    .fb-feature--img-right .fb-feature__image,
    .fb-feature--img-right .fb-feature__body { order: unset; }
    .fb-feature__body {
        padding: 48px 20px;
        background: #495037;
        width: 100%;
        box-sizing: border-box;
    }
    .fb-feature__heading { color: #e8dfc8 !important; }
    .fb-feature__copy p { color: rgba(232,223,200,0.7) !important; }

    .fb-image-panels { grid-template-columns: 1fr; gap: 32px; padding: 32px 20px; }
    .fb-image-panels__image img { height: 420px; }

    .fb-showroom__content { padding: 40px 20px; }
    .fb-showroom__image { min-height: 280px; }

    .fb-pull-quote { padding: 56px 24px; }
    .fb-full-image { height: 300px; }
    .fb-band { flex-direction: column; align-items: flex-start; gap: 16px; }
    .fb-cta  { grid-template-columns: 1fr; }
}

/* ── FAQ accordion ───────────────────────────────── */
.fb-faq {
    padding: 80px var(--fb-px);
    background: var(--fb-white);
    border-top: 0.5px solid var(--fb-border);
}

.fb-faq__heading {
    font-weight: 400;
    text-align: center;
    margin-bottom: 56px;
    color: var(--fb-text);
}

.fb-faq__accordion {
    max-width: 900px;
    margin: 0 auto;
}

.fb-faq__item {
    border-bottom: 0.5px solid var(--fb-border);
}

.fb-faq__item:first-child {
    border-top: 0.5px solid var(--fb-border);
}

.fb-faq__trigger {
    width: 100%;
    background: none;
    border: none;
    padding: 32px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    cursor: pointer;
    text-align: left;
}

.fb-faq__question {
    font-family: Georgia, serif;
    font-weight: 400;
    color: var(--fb-text);
    line-height: 1.4;
    flex: 1;
    font-size: 1.2em;
}

.fb-faq__icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    position: relative;
}

.fb-faq__icon::before,
.fb-faq__icon::after {
    content: '';
    position: absolute;
    background: var(--fb-green);
    border-radius: 1px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.fb-faq__icon::before {
    width: 100%;
    height: 1px;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
}

.fb-faq__icon::after {
    width: 1px;
    height: 100%;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.fb-faq__item--open .fb-faq__icon::after {
    transform: translateX(-50%) rotate(90deg);
    opacity: 0;
}

.fb-faq__body[hidden] { display: none; }

.fb-faq__answer {
    padding: 0 0 36px;
    color: var(--fb-text-mid);
    line-height: 1.85;
    max-width: 760px;
}

.fb-faq__answer p {
    margin-bottom: 14px;
}

.fb-faq__answer p:last-child {
    margin-bottom: 0;
}

@media ( max-width: 768px ) {
    .fb-faq { padding: 48px 20px; }
    .fb-faq__trigger { padding: 20px 0; }
}