<?php
declare(strict_types=1);

/**
 * WTE Business Card — functions.php
 *
 * Orchestrator only. All logic is in inc/ subdirectories.
 * Load order follows dependency chain.
 *
 * @package WTE_Business_Card
 * @since   1.0.0
 */

// Prevent direct access.
if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

// 1. Helpers (no dependencies).
require_once get_template_directory() . '/inc/helpers/sanitize.php';
require_once get_template_directory() . '/inc/helpers/escape.php';
require_once get_template_directory() . '/inc/helpers/schema.php';
require_once get_template_directory() . '/inc/helpers/sns-icons.php';

// 2. Theme setup & assets.
require_once get_template_directory() . '/inc/setup/theme-support.php';
require_once get_template_directory() . '/inc/setup/enqueue.php';
require_once get_template_directory() . '/inc/setup/setup-pages.php';

// 3. Customizer.
require_once get_template_directory() . '/inc/customizer/callbacks.php';
require_once get_template_directory() . '/inc/customizer/panels.php';
require_once get_template_directory() . '/inc/customizer/sections.php';
require_once get_template_directory() . '/inc/customizer/settings.php';
require_once get_template_directory() . '/inc/customizer/controls.php';
require_once get_template_directory() . '/inc/customizer/output.php';

// 4. Meta fields.
require_once get_template_directory() . '/inc/meta/custom-fields.php';
require_once get_template_directory() . '/inc/meta/meta-boxes.php';

// 5. SEO.
require_once get_template_directory() . '/inc/seo/json-ld.php';
require_once get_template_directory() . '/inc/seo/meta-tags.php';

// 6. Navigation & widgets.
require_once get_template_directory() . '/inc/nav/nav-menus.php';
require_once get_template_directory() . '/inc/widgets/widget-areas.php';

// 7. Security.
require_once get_template_directory() . '/inc/security/security.php';
require_once get_template_directory() . '/inc/security/recaptcha.php';
