<?php
/**
 * Agência Boz Theme functions and definitions
 *
 * @link https://developer.wordpress.org/themes/basics/theme-functions/
 *
 * @package Agência Boz
 * @since 1.0.0
 */

/**
 * Define Constants
 */
define( 'CHILD_THEME_AGENCIA_BOZ_VERSION', '1.0.0' );

/**
 * Enqueue styles
 */
function child_enqueue_styles() {
	wp_enqueue_style( 'agencia-boz-theme-css', get_stylesheet_directory_uri() . '/style.css', array('hello-elementor-theme-style'), CHILD_THEME_AGENCIA_BOZ_VERSION, 'all' );
}
add_action( 'wp_enqueue_scripts', 'child_enqueue_styles', 15 );

add_action('login_enqueue_scripts', function () {
    // If your login styles are in style.css:
    wp_enqueue_style(
        'agencia-boz-login',
        get_stylesheet_directory_uri() . '/style.css',
        [],
        file_exists(get_stylesheet_directory() . '/style.css') ? filemtime(get_stylesheet_directory() . '/style.css') : null
    );
});

// Optional: adjust logo link/title
add_filter('login_headerurl', fn() => home_url());
add_filter('login_headertext', fn() => get_bloginfo('name'));