/* Design showcase: compositional styles.  Block markup stays editable in Gutenberg.
   Palette and type tokens remain sourced from theme.json, rather than CSS duplicates. */
.fwb-showcase {
    --fwb-cream: #f8faf7;
    --fwb-mist: #ecf4eb;
    --fwb-primary: var(--wp--preset--color--accent-3);
    --fwb-secondary: var(--wp--preset--color--accent-2);
    --fwb-ink: var(--wp--preset--color--contrast);
    --fwb-muted: var(--wp--preset--color--accent-4);
    --fwb-orange: var(--wp--preset--color--accent-1);
    color: var(--fwb-ink);
}
.fwb-showcase .fwb-section { position: relative; margin-block-start: 0; }
.fwb-showcase .fwb-inner { width: min(var(--wp--style--global--wide-size, 1200px), calc(100% - 48px)); margin-inline: auto; }
.fwb-showcase .fwb-section:not(.fwb-hero) { padding-block: clamp(68px, 8vw, 116px); }
.fwb-showcase .fwb-pale { background: var(--fwb-mist); }
.fwb-showcase .fwb-soft { background: var(--fwb-cream); }
.fwb-showcase .fwb-white { background: #fff; }
.fwb-showcase .fwb-dark { background: #202521; color: #fff; }
.fwb-showcase .fwb-eyebrow { margin-bottom: 15px; color: var(--fwb-primary); font: 900 .78rem/1.4 Lato,Arial,sans-serif; letter-spacing: .17em; text-transform: uppercase; }
.fwb-showcase .fwb-eyebrow-light { color: #daefda; }
.fwb-showcase .fwb-copy { color: var(--fwb-muted); font-size: clamp(1.07rem, .97rem + .4vw, 1.21rem); line-height: 1.75; }
.fwb-showcase .fwb-copy-light { color: #e2f0e1; }
.fwb-showcase .fwb-section-title { margin-top: 0; margin-bottom: 22px; font-family: var(--wp--preset--font-family--kalam); font-size: clamp(2.15rem, 1.58rem + 2.5vw, 3.8rem); line-height: 1.15; letter-spacing: -.015em; }
.fwb-showcase .fwb-lead { font-size: clamp(1.14rem, 1rem + .55vw, 1.42rem); line-height: 1.75; color: var(--fwb-muted); }
.fwb-showcase .fwb-center { text-align: center; margin-inline: auto; }
/* The centered call-to-action intentionally uses a narrower reading measure.
   Other prose follows Gutenberg's native 760px content rail. */
.fwb-showcase .fwb-center.fwb-copy { max-width: 680px; }
.fwb-showcase .fwb-spaced { margin-top: 44px; }

/* Intentional, spacious hero with one soft connecting contour. */
.fwb-showcase .fwb-hero {
    background: radial-gradient(circle at 88% 7%, rgba(255,255,255,.10) 0, rgba(255,255,255,0) 40%),
                linear-gradient(125deg, #124716 0%, #1b5e20 56%, #28772d 100%);
    color: #fff;
    padding: clamp(68px, 9vw, 130px) 0 clamp(104px, 12vw, 155px);
    min-height: 560px;
    isolation: isolate;
    overflow: hidden;
}
.fwb-showcase .fwb-hero-cols { align-items: center; gap: clamp(28px,5vw,76px); }
.fwb-showcase .fwb-hero-title { max-width: 760px; color: #fff; margin: 0 0 22px; font-family: var(--wp--preset--font-family--kalam); font-size: clamp(2.9rem, 2rem + 3.6vw, 5.25rem); line-height: 1.08; }
.fwb-showcase .fwb-hero .fwb-copy { margin: 0 0 30px; }
.fwb-showcase .fwb-logo-display { padding: 22px; border-radius: 26px; background: rgba(255,255,255,.96); box-shadow: 0 25px 65px rgba(0,0,0,.14); transform: rotate(-2deg); }
.fwb-showcase .fwb-logo-display figure { margin: 0; }
.fwb-showcase .fwb-logo-display img { display: block; width: 100%; height: auto; }
.fwb-showcase .fwb-hero .wp-block-buttons { margin-top: 28px; }
.fwb-showcase .fwb-hero .wp-block-button__link { background: #fff; color: var(--fwb-primary); }
.fwb-showcase .fwb-hero .wp-block-button.is-style-outline .wp-block-button__link { border: 1px solid rgba(255,255,255,.72); background: transparent; color: #fff; }
.fwb-showcase .fwb-hero .wp-block-button__link:hover { background: var(--fwb-orange); color: #202521; }
/* Hero to pale-green: exact target fill, no transforms or edge wedges. */
.fwb-showcase .fwb-hero-wave {
    --fwb-wave-front: var(--fwb-mist);
    --fwb-wave-rear: rgba(236,244,235,.23);
    --fwb-wave-height: clamp(61px, 9.5vw, 122px);
}

/* Components: cards and split visual demonstration. */
.fwb-showcase .fwb-card-grid { gap: 22px; }
.fwb-showcase .fwb-card {
    height: 100%; padding: clamp(24px, 3vw, 36px); border-radius: 20px; background: #fff;
    border: 1px solid #dce8dc; box-shadow: 0 2px 8px rgba(24,64,31,.025);
    transition: box-shadow 300ms cubic-bezier(.2,.7,.2,1), transform 300ms cubic-bezier(.2,.7,.2,1), border-color 300ms ease;
}
.fwb-showcase .fwb-card h3 { margin: 12px 0 13px; font-size: clamp(1.2rem,1.05rem + .5vw,1.52rem); line-height: 1.25; }
.fwb-showcase .fwb-card p:not(.fwb-card-no) { color: #56645a; line-height: 1.65; }
.fwb-showcase .fwb-card-no { display: inline-block; width: 48px; height: 48px; border-radius: 16px; background: var(--fwb-mist); color: var(--fwb-primary); font-weight: 900; font-size: 15px; line-height: 48px; text-align: center; }
.fwb-showcase .fwb-art-panel {
    position: relative; background: linear-gradient(140deg,#dcebdc,#f5faf4); border-radius: 26px;
    min-height: 380px; overflow: hidden; isolation: isolate;
}
.fwb-showcase .fwb-art-panel::before {
    content: ""; position: absolute; width: 160%; height: 63%; bottom: -35%; left: -35%;
    border-radius: 49% 51% 0 0 / 88% 88% 0 0; transform: rotate(-7deg);
    background: #4caf50; opacity: .78;
}
.fwb-showcase .fwb-art-panel::after {
    content: ""; position: absolute; width: 150%; height: 53%; bottom: -33%; right: -27%;
    border-radius: 47% 53% 0 0 / 75% 86% 0 0; transform: rotate(7deg);
    background: #1b5e20; opacity: .98;
}
.fwb-showcase .fwb-art-message {
    position: relative; z-index: 2; background: #fff; border-radius: 20px; padding: 24px 26px;
    max-width: 270px; margin: 68px auto 0; box-shadow: 0 17px 45px rgba(24,64,31,.13);
}
.fwb-showcase .fwb-art-message h3 { margin: 0 0 8px; color: var(--fwb-primary); font-family: var(--wp--preset--font-family--kalam); font-size: 1.75rem; }
.fwb-showcase .fwb-art-message p { margin: 0; color: #526453; font-size: .94rem; line-height: 1.5; }
.fwb-showcase .fwb-split { gap: clamp(28px,5vw,74px); align-items: center; }
.fwb-showcase .fwb-rule { width: 60px; height: 4px; background: var(--fwb-orange); border: none; border-radius: 99px; margin: 28px 0; }

/* Pale-green to white: its foreground is the SAME white as the next block. */
.fwb-showcase .fwb-wave-to-white {
    padding-bottom: clamp(108px, 12vw, 148px);
    overflow: hidden;
    --fwb-wave-front: #fff;
    --fwb-wave-rear: rgba(255,255,255,.48);
    --fwb-wave-height: clamp(59px, 9.15vw, 118px);
}

.fwb-showcase .fwb-button-showcase { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.fwb-showcase .fwb-secondary-button .wp-block-button__link { color: var(--fwb-primary); background: transparent; border: 1px solid #b6d0b8; }
.fwb-showcase .fwb-secondary-button .wp-block-button__link:hover { color: #fff; background: var(--fwb-primary); border-color: var(--fwb-primary); }
.fwb-showcase .fwb-button-note { font-size: .93rem; color: #66736a; }
.fwb-showcase .fwb-sample-palette { gap: 12px; }
.fwb-showcase .fwb-swatch { height: 100px; border-radius: 16px; padding: 18px; }
.fwb-showcase .fwb-swatch p { font-size: .81rem; font-weight: 700; margin: 0; }
.fwb-showcase .fwb-swatch-1 { background: var(--fwb-primary); color: #fff; }
.fwb-showcase .fwb-swatch-2 { background: var(--fwb-secondary); color: #123916; }
.fwb-showcase .fwb-swatch-3 { background: var(--fwb-orange); color: #202521; }
.fwb-showcase .fwb-swatch-4 { background: #212121; color: #fff; }
.fwb-showcase .fwb-type-display { margin-bottom: 16px; }
.fwb-showcase .fwb-type-display h2 { margin: 6px 0; font-family: var(--wp--preset--font-family--kalam); font-size: clamp(2rem, 1.65rem + 1.8vw, 3.2rem); }
.fwb-showcase .fwb-type-body { border-left: 3px solid var(--fwb-orange); padding-left: 22px; max-width: 630px; }
.fwb-showcase .fwb-type-body p { margin: 6px 0; }

/* Scroll storytelling: JS only toggles state for off-screen elements. No element is hidden without JS. */
.fwb-showcase .fwb-hero-in { animation: fwb-hero-in 620ms cubic-bezier(.2,.72,.24,1) both; }
.fwb-showcase .fwb-hero-in.fwb-delay-1 { animation-delay: 100ms; }
.fwb-showcase .fwb-hero-in.fwb-delay-2 { animation-delay: 200ms; }
.fwb-showcase .fwb-hero-in.fwb-delay-3 { animation-delay: 300ms; }
@keyframes fwb-hero-in { from {opacity:0;transform:translate3d(0,16px,0)} to {opacity:1;transform:none} }
@media (hover:hover) and (prefers-reduced-motion:no-preference) {
    .fwb-showcase .fwb-card:hover { transform: translateY(-6px); border-color: #b2d3b3; box-shadow: 0 20px 34px rgba(24,64,31,.09); }
    .fwb-showcase .wp-block-button__link:hover::before { transform: translateX(3px); }
}
.fwb-showcase .wp-block-button__link::before { transition: transform 190ms ease-out; }
/* Decorative depth affects a background only; text remains stationary. */
.fwb-showcase .fwb-depth-panel { position: relative; isolation: isolate; overflow: hidden; background: #e8f1e7; border-radius: 25px; padding: 66px 36px; }
.fwb-showcase .fwb-depth-panel::before { content:""; position:absolute; inset:-22% -13%; z-index:-1; background: radial-gradient(circle at 20% 34%,rgba(76,175,80,.24),transparent 39%),radial-gradient(circle at 88% 70%,rgba(255,152,0,.16),transparent 44%); }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .fwb-showcase .fwb-depth-panel::before { animation: fwb-depth-drift linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
    @keyframes fwb-depth-drift { from {transform:translateY(-10px)} to {transform:translateY(10px)} }
  }
}
.fwb-showcase .fwb-dark-cta { padding-block: clamp(72px, 9vw, 110px); }
.fwb-showcase .fwb-dark-cta .fwb-section-title { color: #fff; }
.fwb-showcase .fwb-dark-cta .fwb-copy { color: #c9d8cc; }
.fwb-showcase .fwb-dark-cta .wp-block-button__link { background: var(--fwb-orange); color: #202521; }
.fwb-showcase .fwb-dark-cta .wp-block-button__link:hover { background: #fff; }
.fwb-showcase .fwb-end-note { font-size: .9rem; color: #68786e; text-align: center; padding-block: 23px; }
@media (max-width: 781px) {
    .fwb-showcase .fwb-inner { width: min(100% - 32px, 680px); }
    .fwb-showcase .fwb-hero { padding-top: 56px; min-height: 0; }
    .fwb-showcase .fwb-logo-display { max-width: 360px; margin: 22px auto 0; }
    .fwb-showcase .fwb-hero-cols { gap: 16px; }
    .fwb-showcase .fwb-art-panel { min-height: 335px; }
    .fwb-showcase .fwb-art-message { margin-top: 48px; }
    .fwb-showcase .fwb-swatch { height: 85px; }
}
@media (max-width: 540px) {
    .fwb-showcase .fwb-section:not(.fwb-hero) { padding-block: 66px; }
    .fwb-showcase .fwb-logo-display { padding: 15px; }
    .fwb-showcase .fwb-hero-title { font-size: clamp(2.5rem, 10vw, 3.5rem); }
    /* Keep the overlaid message card inset on narrow screens. Without an
       explicit width it fills the art panel and its corners appear clipped. */
    .fwb-showcase .fwb-art-message {
        box-sizing: border-box;
        width: min(270px, calc(100% - 32px));
        padding-inline: 20px;
    }
    .fwb-showcase .fwb-button-showcase { gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
    .fwb-showcase .fwb-hero-in, .fwb-showcase .fwb-card, .fwb-showcase .wp-block-button__link::before, .fwb-showcase .fwb-depth-panel::before {
        animation: none !important; transition: none !important; transform: none !important; opacity: 1 !important;
    }
}
