/* ==========================================================================
   Finn Borch - Custom Styles
   Eksklusivt design til bronzeskulptør Finn Borch
   ========================================================================== */

/* Hide WP/ACF edit overlays on frontend */
.fp-hero .wp-block-image__crop-area,
.fp-hero .components-placeholder,
.fp-hero button.image-button,
.fp-hero .block-editor-media-placeholder,
.fp-hero__image .wp-element-button,
.fp-hero__image button:not(.fp-hero__scroll),
.fb-gallery button,
.fb-gallery .acf-image-uploader .acf-button,
button.acf-icon,
.entry-content button[aria-label="Rediger billede"],
.entry-content .image-button,
.acf-image-uploader button {
    display: none !important;
}

/* ---------- Base & Reset ---------- */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;500;600&display=swap');

body {
    overflow-x: hidden;
    font-family: 'Open Sans', 'Helvetica Neue', Arial, sans-serif !important;
    font-weight: 400;
    color: #333;
}

p, li, td, th, label, input, textarea, select, blockquote {
    font-family: 'Open Sans', 'Helvetica Neue', Arial, sans-serif !important;
    font-weight: 400 !important;
    color: #222 !important;
    font-size: 1rem;
    line-height: 1.8;
}

/* Keep serif font on site title/logo */
.wp-block-site-title, .wp-block-site-title a,
.fb-nav__logo, .fb-nav__logo a {
    font-family: 'Cormorant Garamond', Georgia, serif !important;
    color: #fff !important;
    text-decoration: none !important;
}
.wp-block-site-title a:hover,
.fb-nav__logo a:hover {
    text-decoration: underline !important;
}

/* Preserve white text in dark sections */
.fp-hero-txt p, .fp-hero-txt h1,
.fp-sec-dark p, .fp-sec-dark h2,
.bz-full-inner p,
.fb-footer p, .fb-footer a,
.fp-statement__quote, .fp-quote {color: inherit !important}
.fp-attr, .fp-label, .fp-card-link, .fb-section__label {color: inherit !important}

img {
    max-width: 100%;
    height: auto;
}

::selection {
    background: var(--wp--preset--color--accent);
    color: var(--wp--preset--color--white);
}

/* ---------- Hero Section ---------- */
.fb-hero {
    position: relative;
    width: 100vw;
    height: 70vh;
    min-height: 500px;
    max-height: 800px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-left: calc(-50vw + 50%);
}

.fb-hero__image {
    position: absolute !important;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover;
    object-position: center 30%;
    filter: brightness(0.6);
    transition: transform 8s ease-out;
}

.fb-hero:hover .fb-hero__image {
    transform: scale(1.03);
}

.fb-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.2) 0%,
        rgba(0, 0, 0, 0.1) 40%,
        rgba(0, 0, 0, 0.5) 100%
    );
}

.fb-hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    padding: 2rem;
}

.fb-hero__title {
    font-family: var(--wp--preset--font-family--heading);
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 300;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin: 0;
    line-height: 1;
    opacity: 0;
    animation: fadeInUp 1.2s ease forwards 0.3s;
}

.fb-hero__subtitle {
    font-family: var(--wp--preset--font-family--body);
    font-size: clamp(0.9rem, 1.5vw, 1.2rem);
    font-weight: 300;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    margin-top: 1.5rem;
    opacity: 0;
    animation: fadeInUp 1.2s ease forwards 0.7s;
}

.fb-hero__divider {
    width: 60px;
    height: 1px;
    background: var(--wp--preset--color--accent);
    margin: 1.5rem auto;
    opacity: 0;
    animation: fadeInUp 1.2s ease forwards 0.5s;
}

.fb-hero__scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.fb-hero__scroll:hover {
    color: #fff;
}

.fb-hero__scroll-line {
    width: 1px;
    height: 40px;
    background: currentColor;
    animation: scrollPulse 2s ease infinite;
}

/* ---------- Section Styles ---------- */
.fb-section {
    padding: clamp(4rem, 8vw, 8rem) 0;
}

.fb-section--dark {
    background: var(--wp--preset--color--dark);
    color: var(--wp--preset--color--light);
}

.fb-section--warm {
    background: #b8976a;
    color: #fff !important;
    padding-top: 3rem !important;
}
.fb-section--warm h1,
.fb-section--warm h2,
.fb-section--warm h3,
.fb-section--warm p,
.fb-section--warm a,
.fb-section--warm span,
.fb-section--warm .fb-section__label,
.fb-section--warm .fb-section__title,
.fb-section--warm .fb-section__text {
    color: #fff !important;
}

.fb-section__header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
    padding: 0 1.5rem;
}

.fb-section__label {
    font-family: var(--wp--preset--font-family--body);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--wp--preset--color--accent);
    margin-bottom: 1rem;
    display: block;
}

.fb-section__title {
    font-family: var(--wp--preset--font-family--heading);
    font-weight: 300;
    margin: 0;
}

.fb-section__divider {
    width: 50px;
    height: 1px;
    background: var(--wp--preset--color--accent);
    margin: 1.5rem auto;
}

.fb-section__text {
    font-weight: 300;
    line-height: 1.8;
    color: inherit;
    opacity: 0.85;
}

.fb-section--dark .fb-section__text {
    color: #fff !important;
}

/* Gallery page overrides */
.fb-section--gallery { padding: 0 !important; }
.fb-section--gallery .wp-block-post-content { max-width: none !important; }

/* ---------- Gallery Grid ---------- */
.fb-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(2rem, 4vw, 4rem);
    padding: clamp(2rem, 4vw, 4rem) clamp(2rem, 6vw, 8rem);
    max-width: 1400px;
    margin: 0 auto;
}

.fb-gallery__item {
    cursor: pointer;
}

.fb-gallery__img-wrap {
    position: relative;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(1rem, 2vw, 1.5rem);
    overflow: hidden;
    transition: box-shadow 0.4s ease;
}

.fb-gallery__item:hover .fb-gallery__img-wrap {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.fb-gallery__img-wrap img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.fb-gallery__item:hover .fb-gallery__img-wrap img {
    transform: scale(1.03);
}

/* Title & description below image */
.fb-gallery__info {
    padding: 1.2rem 0.25rem 0;
}

.fb-gallery__title {
    font-family: 'Open Sans', 'Helvetica Neue', Arial, sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.4rem;
    color: #1a1a1a;
}

.fb-gallery__desc {
    font-family: 'Open Sans', 'Helvetica Neue', Arial, sans-serif !important;
    font-size: 0.95rem !important;
    font-weight: 400 !important;
    line-height: 1.7 !important;
    color: #555 !important;
    margin: 0;
}

@media (max-width: 700px) {
    .fb-gallery {
        grid-template-columns: 1fr;
        padding: 2rem 1.5rem;
    }
}

/* ---------- Artist Statement ---------- */
.fb-statement {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: clamp(4rem, 10vw, 10rem) 2rem;
}

.fb-statement__quote {
    font-family: var(--wp--preset--font-family--heading);
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 300;
    font-style: italic;
    line-height: 1.5;
    color: var(--wp--preset--color--primary);
    margin: 0;
    position: relative;
}

.fb-statement__quote::before {
    content: '\201C';
    font-size: 4em;
    color: var(--wp--preset--color--accent);
    position: absolute;
    top: -0.3em;
    left: -0.15em;
    opacity: 0.3;
    font-style: normal;
}

.fb-statement__attribution {
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--wp--preset--color--secondary);
    margin-top: 2rem;
}

/* ---------- Info Cards (For Companies / Art Associations) ---------- */
.fb-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 0 2rem;
}

.fb-card {
    padding: 3rem 2.5rem;
    background: var(--wp--preset--color--white);
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.4s ease, transform 0.4s ease;
}

.fb-card:hover {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
}

.fb-card__icon {
    font-size: 2rem;
    color: var(--wp--preset--color--accent);
    margin-bottom: 1.5rem;
}

.fb-card__title {
    font-family: var(--wp--preset--font-family--heading);
    font-size: 1.4rem;
    font-weight: 400;
    margin: 0 0 1rem;
}

.fb-card__text {
    font-weight: 300;
    line-height: 1.8;
    opacity: 0.75;
    font-size: 0.95rem;
}

/* ---------- Process Section (Bronze Casting) ---------- */
.fb-process {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 0;
    counter-reset: process;
}

.fb-process__step {
    padding: 3rem 2.5rem;
    border-right: 1px solid rgba(0, 0, 0, 0.06);
    counter-increment: process;
    position: relative;
}

.fb-process__step:last-child {
    border-right: none;
}

.fb-process__step::before {
    content: counter(process, decimal-leading-zero);
    font-family: var(--wp--preset--font-family--heading);
    font-size: 3rem;
    font-weight: 300;
    color: var(--wp--preset--color--accent);
    opacity: 0.4;
    display: block;
    margin-bottom: 1.5rem;
}

.fb-process__step h3 {
    font-family: var(--wp--preset--font-family--heading);
    font-size: 1.3rem;
    font-weight: 400;
    margin: 0 0 1rem;
}

.fb-process__step p {
    font-weight: 300;
    line-height: 1.8;
    opacity: 0.75;
    font-size: 0.95rem;
}

@media (max-width: 900px) {
    .fb-process__step {
        border-right: none;
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    }
}

/* ---------- Contact Section ---------- */
.fb-contact {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 4rem;
    align-items: start;
    padding: 0 2rem;
    flex-wrap: nowrap;
}

.fb-contact__info h2 {
    font-family: var(--wp--preset--font-family--heading);
    font-weight: 300;
}

.fb-contact__detail {
    margin-bottom: 2rem;
}

.fb-contact__detail-label {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--wp--preset--color--accent);
    margin-bottom: 0.5rem;
    display: block;
}

.fb-contact__detail-value {
    font-weight: 300;
    line-height: 1.6;
}

.fb-contact__detail-value a {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid var(--wp--preset--color--accent);
    transition: color 0.3s ease;
}

.fb-contact__detail-value a:hover {
    color: var(--wp--preset--color--accent);
}

.fb-contact__map {
    width: 100%;
    aspect-ratio: 4/3;
    filter: grayscale(0.8) contrast(1.1);
    transition: filter 0.4s ease;
}

.fb-contact__map:hover {
    filter: grayscale(0) contrast(1);
}

@media (max-width: 900px) {
    .fb-contact {
        grid-template-columns: 1fr;
    }
}

/* ---------- Navigation Enhancements ---------- */
.fb-nav {
    position: relative;
    z-index: 1000;
    padding: 1.5rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
}

.fb-nav--scrolled {
    background: transparent;
    padding: 1rem 3rem;
}

/* Remove backdrop-filter when mobile menu is open – backdrop-filter
   creates a new containing block which traps the fixed overlay inside
   the header instead of letting it cover the full viewport. */
.fb-nav--scrolled:has(.is-open) {
    backdrop-filter: none;
}

.fb-nav__logo {
    font-family: var(--wp--preset--font-family--heading);
    font-size: 1.4rem;
    font-weight: 300;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #fff !important;
    text-decoration: none;
    transition: color 0.4s ease;
}

.fb-nav--scrolled .fb-nav__logo,
.fb-nav--scrolled .fb-nav__logo a,
.fb-nav--scrolled .wp-block-site-title,
.fb-nav--scrolled .wp-block-site-title a {
    color: #fff !important;
}

.fb-nav__links,
.fb-nav .wp-block-navigation {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.fb-nav__links a,
.fb-nav .wp-block-navigation a {
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #fff !important;
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
}

.fb-nav__links a::after,
.fb-nav .wp-block-navigation a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #fff;
    transition: width 0.3s ease;
}

.fb-nav__links a:hover::after,
.fb-nav .wp-block-navigation a:hover::after {
    width: 100%;
}

.fb-nav--scrolled .fb-nav__links a::after,
.fb-nav--scrolled .fb-nav .wp-block-navigation a::after {
    background: #fff;
}

.fb-nav--scrolled .fb-nav__links a,
.fb-nav--scrolled .fb-nav .wp-block-navigation a {
    color: #fff !important;
}

.fb-nav__links a:hover,
.fb-nav .wp-block-navigation a:hover {
    color: var(--wp--preset--color--accent);
}

/* Remove focus outline box on nav links */
.fb-nav__links a:focus,
.fb-nav__links a:focus-visible,
.wp-block-navigation a:focus,
.wp-block-navigation a:focus-visible,
.wp-block-navigation-item a:focus,
.wp-block-navigation-item a:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

/* Active/current page underline */
.wp-block-navigation-item.current-menu-item a::after,
.fb-nav__links a[aria-current="page"]::after,
.fb-nav .wp-block-navigation a[aria-current="page"]::after {
    width: 100% !important;
}

/* Pages with light header: dark nav text from the start */
body.fb-nav-dark .fb-nav .fb-nav__logo {
    color: #fff !important;
}
body.fb-nav-dark .fb-nav__links a,
body.fb-nav-dark .fb-nav .wp-block-navigation a {
    color: #fff !important;
}
body.fb-nav-dark .fb-nav__toggle span {
    background: #fff;
}
/* Scrolled state on subpages: keep white text */
body.fb-nav-dark .fb-nav--scrolled .fb-nav__logo,
body.fb-nav-dark .fb-nav--scrolled.fb-nav .fb-nav__logo {
    color: #fff !important;
}
body.fb-nav-dark .fb-nav--scrolled .fb-nav__links a,
body.fb-nav-dark .fb-nav--scrolled .wp-block-navigation a,
body.fb-nav-dark .fb-nav--scrolled.fb-nav .wp-block-navigation a {
    color: #fff !important;
}
body.fb-nav-dark .fb-nav--scrolled .fb-nav__toggle span {
    background: #fff;
}
/* When mobile menu is open on subpages, override fb-nav-dark to keep white text */
body.fb-nav-dark .fb-nav__toggle.is-active span {
    background: #fff;
}
body.fb-nav-dark nav.fb-nav__links.is-open a,
body.fb-nav-dark nav.fb-nav__links.is-open .wp-block-navigation-item a {
    color: rgba(255, 255, 255, 0.7) !important;
}
body.fb-nav-dark nav.fb-nav__links.is-open a:hover,
body.fb-nav-dark nav.fb-nav__links.is-open .wp-block-navigation-item a:hover {
    color: #fff !important;
}
body.fb-nav-dark nav.fb-nav__links.is-open a[aria-current="page"],
body.fb-nav-dark nav.fb-nav__links.is-open .current-menu-item a {
    color: #fff !important;
}
.fb-nav .fb-nav__logo.fb-nav__logo--menu-open {
    color: #fff !important;
}

/* Mobile nav */
.fb-nav__toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    width: 32px;
    height: 32px;
    position: relative;
}

.fb-nav__toggle span {
    display: block;
    width: 24px;
    height: 1px;
    background: #fff;
    position: absolute;
    left: 4px;
    transition: transform 0.35s ease, opacity 0.25s ease, top 0.35s ease;
}

.fb-nav__toggle span:nth-child(1) { top: 8px; }
.fb-nav__toggle span:nth-child(2) { top: 16px; }
.fb-nav__toggle span:nth-child(3) { top: 24px; }

/* Hamburger → X animation */
.fb-nav__toggle.is-active span:nth-child(1) {
    top: 16px;
    transform: rotate(45deg);
    background: #fff;
}
.fb-nav__toggle.is-active span:nth-child(2) {
    opacity: 0;
}
.fb-nav__toggle.is-active span:nth-child(3) {
    top: 16px;
    transform: rotate(-45deg);
    background: #fff;
}

.fb-nav--scrolled .fb-nav__toggle span {
    background: #fff;
}
.fb-nav--scrolled .fb-nav__toggle.is-active span {
    background: #fff;
}

@media (max-width: 1440px) {
    .fb-nav {
        padding: 1.2rem 1.5rem !important;
    }

    .fb-nav__toggle {
        display: block;
        z-index: 1001;
    }

    /* Full-screen mobile nav overlay */
    nav.fb-nav__links,
    .fb-nav > nav.wp-block-navigation {
        display: flex !important;
        position: fixed !important;
        inset: 0;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        background: #000 !important;
        gap: 0;
        z-index: 1000;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.25s ease, visibility 0.25s ease;
    }

    nav.fb-nav__links.is-open,
    .fb-nav > nav.wp-block-navigation.is-open {
        opacity: 1;
        visibility: visible;
    }

    /* Reset the inner ul that also has fb-nav__links */
    nav.fb-nav__links ul.fb-nav__links {
        position: static !important;
        transform: none !important;
        background: none !important;
        inset: auto !important;
    }

    /* Style all nav items in mobile overlay – always white on black */
    nav.fb-nav__links .wp-block-navigation-item a,
    nav.fb-nav__links a,
    .fb-nav > nav.wp-block-navigation a,
    .fb-nav--scrolled nav.fb-nav__links a,
    .fb-nav--scrolled .wp-block-navigation a {
        font-family: var(--wp--preset--font-family--heading);
        font-size: clamp(1.4rem, 4vw, 2rem) !important;
        font-weight: 300;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: #fff !important;
        text-decoration: none !important;
        padding: 0.6rem 0;
        display: inline-block;
        transition: color 0.3s ease, transform 0.3s ease;
    }

    nav.fb-nav__links .wp-block-navigation-item a:hover,
    nav.fb-nav__links a:hover,
    .fb-nav > nav.wp-block-navigation a:hover {
        color: rgba(255, 255, 255, 0.6) !important;
        transform: translateX(4px);
    }

    /* Active page in mobile menu */
    nav.fb-nav__links a[aria-current="page"],
    nav.fb-nav__links .current-menu-item a,
    .fb-nav > nav.wp-block-navigation a[aria-current="page"] {
        color: #fff !important;
        position: relative;
    }

    nav.fb-nav__links a[aria-current="page"]::before,
    nav.fb-nav__links .current-menu-item a::before,
    .fb-nav > nav.wp-block-navigation a[aria-current="page"]::before {
        content: '';
        position: absolute;
        left: -1.2rem;
        top: 50%;
        width: 16px;
        height: 1px;
        background: var(--wp--preset--color--accent, #b08d57);
        transform: translateY(-50%);
    }

    /* Stack WP nav items vertically */
    nav.fb-nav__links .wp-block-navigation__container,
    nav.fb-nav__links .wp-block-page-list,
    .fb-nav > nav.wp-block-navigation .wp-block-navigation__container,
    .fb-nav > nav.wp-block-navigation .wp-block-page-list {
        display: flex !important;
        flex-direction: column !important;
        align-items: center;
        justify-content: center;
        gap: 0.4rem;
        padding: 0;
        margin: auto;
        height: auto;
    }

    .fb-nav .wp-block-navigation .wp-block-navigation-item,
    .fb-nav .wp-block-navigation .wp-block-pages-list__item,
    .fb-nav__links .wp-block-navigation-item,
    .fb-nav__links .wp-block-pages-list__item {
        list-style: none;
        opacity: 0;
        transform: translateY(8px);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }

    /* Staggered entrance for each menu item */
    .is-open .wp-block-navigation-item:nth-child(1),
    .is-open .wp-block-pages-list__item:nth-child(1) { transition-delay: 0.05s; opacity: 1; transform: translateY(0); }
    .is-open .wp-block-navigation-item:nth-child(2),
    .is-open .wp-block-pages-list__item:nth-child(2) { transition-delay: 0.09s; opacity: 1; transform: translateY(0); }
    .is-open .wp-block-navigation-item:nth-child(3),
    .is-open .wp-block-pages-list__item:nth-child(3) { transition-delay: 0.13s; opacity: 1; transform: translateY(0); }
    .is-open .wp-block-navigation-item:nth-child(4),
    .is-open .wp-block-pages-list__item:nth-child(4) { transition-delay: 0.17s; opacity: 1; transform: translateY(0); }
    .is-open .wp-block-navigation-item:nth-child(5),
    .is-open .wp-block-pages-list__item:nth-child(5) { transition-delay: 0.21s; opacity: 1; transform: translateY(0); }
    .is-open .wp-block-navigation-item:nth-child(6),
    .is-open .wp-block-pages-list__item:nth-child(6) { transition-delay: 0.25s; opacity: 1; transform: translateY(0); }
    .is-open .wp-block-navigation-item:nth-child(7),
    .is-open .wp-block-pages-list__item:nth-child(7) { transition-delay: 0.29s; opacity: 1; transform: translateY(0); }
    .is-open .wp-block-navigation-item:nth-child(8),
    .is-open .wp-block-pages-list__item:nth-child(8) { transition-delay: 0.33s; opacity: 1; transform: translateY(0); }

    /* Fallback: ensure all items are visible when menu is open,
       regardless of class naming */
    .is-open li {
        opacity: 1 !important;
        transform: translateY(0) !important;
    }

    /* Decorative accent line */
    nav.fb-nav__links .wp-block-navigation__container::after,
    nav.fb-nav__links .wp-block-page-list::after,
    .fb-nav > nav.wp-block-navigation .wp-block-navigation__container::after,
    .fb-nav > nav.wp-block-navigation .wp-block-page-list::after {
        content: '';
        display: block;
        width: 40px;
        height: 1px;
        background: var(--wp--preset--color--accent, #b08d57);
        margin: 1.5rem auto 0;
        opacity: 0;
        transition: opacity 0.5s ease 0.5s;
    }

    nav.fb-nav__links.is-open .wp-block-navigation__container::after,
    nav.fb-nav__links.is-open .wp-block-page-list::after,
    .fb-nav > nav.wp-block-navigation.is-open .wp-block-navigation__container::after,
    .fb-nav > nav.wp-block-navigation.is-open .wp-block-page-list::after {
        opacity: 1;
    }

    /* Hide WP default responsive nav elements */
    .fb-nav .wp-block-navigation__responsive-container-open {
        display: none !important;
    }

    /* Remove desktop underline hover in mobile */
    nav.fb-nav__links a::after {
        display: none !important;
    }
}

/* ---------- Remove WP default white lines between template parts ---------- */
.wp-block-template-part,
.wp-block-template-part>*,
header.wp-block-template-part,
footer.wp-block-template-part{border:none !important;outline:none !important;box-shadow:none !important;background:#b8976a !important}
header.wp-block-template-part{background:#b8976a !important}
.wp-site-blocks{gap:0 !important}
main.wp-block-group{margin-top:0 !important;margin-bottom:0 !important}
header.wp-block-template-part+main,
main+footer.wp-block-template-part{margin-top:0 !important;border-top:none !important}

/* ---------- Footer ---------- */
.fb-footer hr,.fb-footer .wp-block-separator{display:none !important}
.fb-footer {
    background: #b8976a;
    color: rgba(255, 255, 255, 0.6);
    padding: 4rem 2rem 2rem;
    text-align: center;
}

.fb-footer__logo {
    font-family: var(--wp--preset--font-family--heading);
    font-size: 1.8rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    color: #fff;
    margin-bottom: 2rem;
}

.fb-footer__links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.fb-footer__links a {
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    transition: color 0.3s ease;
}

.fb-footer__links a:hover {
    color: var(--wp--preset--color--accent);
}

.fb-footer__social {
    margin-bottom: 3rem;
}

.fb-footer__social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: none;
    background: #8c7851;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    margin: 0 0.25rem;
    border-radius: 4px;
}

.fb-footer__social .wp-social-link,
.fb-footer__social .wp-social-link a {
    background: #8c7851 !important;
    color: #fff !important;
    border-radius: 4px;
}
.fb-footer__social .wp-social-link svg {
    width: 24px !important;
    height: 24px !important;
}
.fb-footer__social svg,
.fb-footer__social svg path,
.fb-footer__social .wp-social-link svg,
.fb-footer__social .wp-social-link svg path {
    fill: #fff !important;
    color: #fff !important;
}
.fb-footer__social a:hover,
.fb-footer__social .wp-social-link:hover {
    background: #a08963 !important;
    color: #fff !important;
}

.fb-footer__bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
}

/* ---------- Scroll Animations ---------- */
.fb-fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fb-fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.fb-fade-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fb-fade-in-left.is-visible {
    opacity: 1;
    transform: translateX(0);
}

.fb-fade-in-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fb-fade-in-right.is-visible {
    opacity: 1;
    transform: translateX(0);
}

/* Staggered children */
.fb-stagger > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fb-stagger.is-visible > *:nth-child(1) { transition-delay: 0.1s; opacity: 1; transform: translateY(0); }
.fb-stagger.is-visible > *:nth-child(2) { transition-delay: 0.2s; opacity: 1; transform: translateY(0); }
.fb-stagger.is-visible > *:nth-child(3) { transition-delay: 0.3s; opacity: 1; transform: translateY(0); }
.fb-stagger.is-visible > *:nth-child(4) { transition-delay: 0.4s; opacity: 1; transform: translateY(0); }
.fb-stagger.is-visible > *:nth-child(5) { transition-delay: 0.5s; opacity: 1; transform: translateY(0); }
.fb-stagger.is-visible > *:nth-child(6) { transition-delay: 0.6s; opacity: 1; transform: translateY(0); }

/* ---------- Keyframes ---------- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scrollPulse {
    0%, 100% {
        opacity: 0.4;
        transform: scaleY(1);
    }
    50% {
        opacity: 1;
        transform: scaleY(1.2);
    }
}

/* ---------- Utility ---------- */
.fb-text-center { text-align: center; }
.fb-mt-0 { margin-top: 0; }
.fb-mb-0 { margin-bottom: 0; }
.fb-full-width {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}
