/*
Theme Name: 1st FWB Network
Theme URI: https://www.1stfreewillbaptist.church/
Description: Shared block-theme foundation for the digital ministry network of 1st Free Will Baptist Church, Park Hills, Missouri.
Author: 1st Free Will Baptist Church
Version: 0.7.2
Template: twentytwentyfive
Requires at least: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: first-fwb-network
*/

/* Interaction layer: all basic design tokens live in theme.json.
   Only the CSS features missing from theme.json are maintained here.
   Icons are selected Font Awesome Free vector outlines (OFL 1.1); no icon font/JS. */

/* All Gutenberg Button blocks carry a Font Awesome icon to the left. */
.wp-block-button__link.wp-element-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .65em;
    text-align: center;
    transition: background-color 180ms ease, color 180ms ease, transform 220ms ease, box-shadow 220ms ease;
}
.wp-block-button__link.wp-element-button::before {
    content: "";
    display: inline-block;
    flex: 0 0 1em;
    width: 1em;
    height: 1em;
    background-color: currentColor;
    -webkit-mask: url("assets/icons/arrow-right.svg") center / contain no-repeat;
    mask: url("assets/icons/arrow-right.svg") center / contain no-repeat;
}
/* Optional block-level icon choices. Without a choice, arrow-right is the default. */
.wp-block-button.fwb-icon-calendar .wp-block-button__link::before {
    -webkit-mask-image: url("assets/icons/calendar.svg");
    mask-image: url("assets/icons/calendar.svg");
}
.wp-block-button.fwb-icon-book .wp-block-button__link::before {
    -webkit-mask-image: url("assets/icons/book.svg");
    mask-image: url("assets/icons/book.svg");
}
.wp-block-button.fwb-icon-heart .wp-block-button__link::before {
    -webkit-mask-image: url("assets/icons/heart.svg");
    mask-image: url("assets/icons/heart.svg");
}
.wp-block-button.fwb-icon-hand-holding-heart .wp-block-button__link::before {
    -webkit-mask-image: url("assets/icons/hand-holding-heart.svg");
    mask-image: url("assets/icons/hand-holding-heart.svg");
}
.wp-block-button.fwb-icon-users .wp-block-button__link::before {
    -webkit-mask-image: url("assets/icons/users.svg");
    mask-image: url("assets/icons/users.svg");
}
.wp-block-button.fwb-icon-download .wp-block-button__link::before {
    -webkit-mask-image: url("assets/icons/download.svg");
    mask-image: url("assets/icons/download.svg");
}
.wp-block-button.fwb-icon-compass .wp-block-button__link::before {
    -webkit-mask-image: url("assets/icons/compass.svg");
    mask-image: url("assets/icons/compass.svg");
}
.wp-block-button.fwb-icon-external-link .wp-block-button__link::before {
    -webkit-mask-image: url("assets/icons/external-link.svg");
    mask-image: url("assets/icons/external-link.svg");
}

/* Organic section transitions: continuous, edge-safe shapes.
   Unlike rotated border-radius shapes, these inline vector masks always
   cover the entire bottom edge and cannot create orphaned color wedges.
   The shapes are embedded in this stylesheet: no external asset requests.
   Set --fwb-wave-front to the *exact* background of the next section. */
.fwb-wave-bottom {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding-bottom: clamp(5.5rem, 12vw, 8.25rem);
    --fwb-wave-front: var(--wp--preset--color--base);
    --fwb-wave-height: clamp(58px, 8.9vw, 116px);
}
:root {
    --fwb-wave-front-shape: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%201440%20120%27%20preserveAspectRatio%3D%27none%27%3E%3Cpath%20fill%3D%27%23000%27%20d%3D%27M0%2061%20C155%2024%20330%2089%20534%2064%20C742%2038%20892%2044%201054%2066%20C1209%2087%201331%2077%201440%2050%20L1440%20120%20L0%20120%20Z%27%2F%3E%3C%2Fsvg%3E");
    --fwb-wave-rear-shape: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%201440%20120%27%20preserveAspectRatio%3D%27none%27%3E%3Cpath%20fill%3D%27%23000%27%20d%3D%27M0%2040%20C176%209%20348%2073%20555%2048%20C775%2021%20935%2028%201109%2050%20C1259%2069%201359%2057%201440%2035%20L1440%20120%20L0%20120%20Z%27%2F%3E%3C%2Fsvg%3E");
}
/* Shared foreground silhouette.  Edges bleed 2px horizontally and vertically;
   its bottom is solid and matches the next section exactly. */
.fwb-wave-bottom::after {
    content: "";
    position: absolute;
    z-index: 2;
    pointer-events: none;
    left: -2px;
    bottom: -2px;
    width: calc(100% + 4px);
    height: var(--fwb-wave-height, clamp(48px, 7.45vw, 97px));
    background-color: var(--fwb-wave-front, var(--wp--preset--color--base));
    -webkit-mask: var(--fwb-wave-front-shape) center / 100% 100% no-repeat;
    mask: var(--fwb-wave-front-shape) center / 100% 100% no-repeat;
}
/* The optional rear wave is never rotated, and its upper edge remains
   consistently above the opaque foreground, at every viewport size. */
.fwb-wave-layered::before {
    content: "";
    position: absolute;
    z-index: 1;
    pointer-events: none;
    left: -2px;
    bottom: -2px;
    width: calc(100% + 4px);
    height: var(--fwb-wave-height, clamp(48px, 7.45vw, 97px));
    background-color: var(--fwb-wave-rear, rgba(255,255,255,.24));
    -webkit-mask: var(--fwb-wave-rear-shape) center / 100% 100% no-repeat;
    mask: var(--fwb-wave-rear-shape) center / 100% 100% no-repeat;
}
.fwb-wave-bottom > * { position: relative; z-index: 3; }
/* A background contour, not a section break. */
.fwb-wave-overlay {
    position: relative;
    isolation: isolate;
    overflow: hidden;
}
.fwb-wave-overlay::before {
    content: "";
    position: absolute;
    pointer-events: none;
    left: -2px;
    bottom: -2px;
    width: calc(100% + 4px);
    height: 55%;
    background: currentColor;
    opacity: .035;
    -webkit-mask: var(--fwb-wave-rear-shape) center / 100% 100% no-repeat;
    mask: var(--fwb-wave-rear-shape) center / 100% 100% no-repeat;
}
.fwb-wave-overlay > * { position: relative; z-index: 1; }
/* The fallback favors an honest straight edge over a broken wave. */
@supports not ((mask-image: linear-gradient(#000,#000)) or (-webkit-mask-image: linear-gradient(#000,#000))) {
    .fwb-wave-bottom::after,
    .fwb-wave-layered::before,
    .fwb-wave-overlay::before { display: none; }
}

/* Modern interaction: fast, subtle movement for user-directed moments only. */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
    .wp-block-button__link.wp-element-button:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 18px rgba(0, 0, 0, .11);
    }
    .fwb-lift {
        transition: transform 260ms ease, box-shadow 260ms ease;
    }
    .fwb-lift:hover {
        transform: translateY(-5px);
        box-shadow: 0 12px 24px rgba(0, 0, 0, .075);
    }
}
/* Reusable Gutenberg opt-in motion classes. Content is never hidden unless
   motion.js has identified it as off-screen and added .fwb-pending. */
.fwb-motion-target {
    transition: opacity 650ms cubic-bezier(.2,.72,.24,1), transform 650ms cubic-bezier(.2,.72,.24,1);
}
.fwb-motion-target.fwb-pending { opacity: 0; transform: translate3d(0,24px,0); }
.fwb-motion-target.fwb-from-left.fwb-pending { transform: translate3d(calc(-1 * min(32px, 2vw)),0,0); }
.fwb-motion-target.fwb-from-right.fwb-pending { transform: translate3d(min(32px, 2vw),0,0); }
.fwb-motion-target.fwb-delay-1 { transition-delay: 90ms; }
.fwb-motion-target.fwb-delay-2 { transition-delay: 180ms; }
.fwb-motion-target.fwb-delay-3 { transition-delay: 270ms; }
/* Directional entrances become vertical on small screens, preventing horizontal
   scrollbars while preserving a purposeful reveal. */
@media (max-width: 781px) {
    .fwb-motion-target.fwb-from-left.fwb-pending,
    .fwb-motion-target.fwb-from-right.fwb-pending { transform: translate3d(0,24px,0); }
}

@media (prefers-reduced-motion: reduce) {
    .wp-block-button__link.wp-element-button,
    .fwb-lift,
    .fwb-motion-target {
        animation: none !important;
        transform: none !important;
        transition: none !important;
    }
}


