<?php

/**
 * Header Theme Options
 *
 * @package express-movers
 */
$wp_customize->add_section('express_movers_header_section', array(

	'title'      => esc_html__('Header Section', 'express-movers'),
	'capability' => 'edit_theme_options',
	'panel' => 'express_movers_theme_section_panel'

));

//  Top bar announcement text (right side)
$wp_customize->add_setting( 'express_movers_head_toptext' , array(
    'default'   => 'Job Opportunities 2026: Logistics Manager, Operations Director & Fleet Coordinator',
    'sanitize_callback' => 'express_movers_sanitise_custom_texttitle',
    ) );

    $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'express_movers_head_toptext', array(
    'label'      => esc_html__( 'Top Bar Announcement Text', 'express-movers' ),
    'section'    => 'express_movers_header_section',
    'settings'   => 'express_movers_head_toptext',
    'type' => 'text',
) ) );

$wp_customize->add_setting( 'express_movers_top_job_link', array(
    'default'           => '#',
    'sanitize_callback' => 'esc_url_raw',
) );

$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'express_movers_top_job_link', array(
    'label'    => esc_html__( 'Top Bar Announcement Link', 'express-movers' ),
    'section'  => 'express_movers_header_section',
    'settings' => 'express_movers_top_job_link',
    'type'     => 'url',
) ) );

//  Phone Number 
$wp_customize->add_setting( 'express_movers_head_phonenumber' , array(
    'default'   => '+1 800 555 44 00',
    'sanitize_callback' => 'express_movers_sanitise_custom_texttitle',    
    ) );

    $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'express_movers_head_phonenumber', array(   
    'label'      => esc_html__( 'Phone Number', 'express-movers' ),   
    'section'    => 'express_movers_header_section',   
    'settings'   => 'express_movers_head_phonenumber',   
    'type' => 'text',         
) ) );

//  mail 
$wp_customize->add_setting( 'express_movers_head_mail' , array(
    'default'   => 'support@example.com',
    'sanitize_callback' => 'express_movers_sanitise_custom_texttitle',    
    ) );

    $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'express_movers_head_mail', array(   
    'label'      => esc_html__( 'Mail', 'express-movers' ),   
    'section'    => 'express_movers_header_section',   
    'settings'   => 'express_movers_head_mail',   
    'type' => 'text',         
) ) );

//  Button Text 
$wp_customize->add_setting( 'express_movers_head_btntext' , array(
    'default'   => 'Get A Quote',   
    'sanitize_callback' => 'express_movers_sanitise_custom_texttitle',    
    ) );

    $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'express_movers_head_btntext', array(   
    'label'      => esc_html__( 'Button Text', 'express-movers' ),   
    'section'    => 'express_movers_header_section',   
    'settings'   => 'express_movers_head_btntext',   
    'type' => 'text',         
) ) );

// Button Link
$wp_customize->add_setting( 'express_movers_head_btnlink', array(
    'default'           => '#',
    'sanitize_callback' => 'esc_url_raw', // ✅ Use proper URL sanitizer
) );

$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'express_movers_head_btnlink', array(
    'label'    => esc_html__( 'Button Link', 'express-movers' ),
    'section'  => 'express_movers_header_section',
    'settings' => 'express_movers_head_btnlink',
    'type'     => 'text',
) ) );


// ///////// Phone Icon Text Color
$wp_customize->add_setting('menu_bg_color', array(
    'default'   => '#fff',
    'transport' => 'refresh',
    'sanitize_callback' => 'sanitize_hex_color',
    ));
  
    $wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'menu_bg_color', array(
    'section' => 'express_movers_header_section',
    'label'      => esc_html__('Menu Bar Bg Color', 'express-movers'),
    )));

    // ///////// Menu Text Color
$wp_customize->add_setting('menu_text_color', array(
    'default'   => '#000',
    'transport' => 'refresh',
    'sanitize_callback' => 'sanitize_hex_color',
    ));
  
    $wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'menu_text_color', array(
    'section' => 'express_movers_header_section',
    'label'      => esc_html__('Menu Text Color', 'express-movers'),
    )));

    /////////// Button Bg Text Color
$wp_customize->add_setting('button_bg_color', array(
    'default'   => '#FDC72E',
    'transport' => 'refresh',
    'sanitize_callback' => 'sanitize_hex_color',
    ));
  
    $wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'button_bg_color', array(
    'section' => 'express_movers_header_section',
    'label'      => esc_html__('Button Bg Color', 'express-movers'),
    )));

    // ///////// Button Text Color
$wp_customize->add_setting('button_text_color', array(
    'default'   => '#000',
    'transport' => 'refresh',
    'sanitize_callback' => 'sanitize_hex_color',
    ));
  
    $wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'button_text_color', array(
    'section' => 'express_movers_header_section',
    'label'      => esc_html__('Button Text Color', 'express-movers'),
    )));


$wp_customize->add_setting( 'express_movers_top_social_facebook', array(
    'default'           => '#',
    'sanitize_callback' => 'esc_url_raw',
) );
$wp_customize->add_control( 'express_movers_top_social_facebook', array(
    'label'    => esc_html__( 'Top Bar: Facebook URL', 'express-movers' ),
    'section'  => 'express_movers_header_section',
    'settings' => 'express_movers_top_social_facebook',
    'type'     => 'url',
) );

$wp_customize->add_setting( 'express_movers_top_social_linkedin', array(
    'default'           => '#',
    'sanitize_callback' => 'esc_url_raw',
) );
$wp_customize->add_control( 'express_movers_top_social_linkedin', array(
    'label'    => esc_html__( 'Top Bar: LinkedIn URL', 'express-movers' ),
    'section'  => 'express_movers_header_section',
    'settings' => 'express_movers_top_social_linkedin',
    'type'     => 'url',
) );

$wp_customize->add_setting( 'express_movers_top_social_twitter', array(
    'default'           => '#',
    'sanitize_callback' => 'esc_url_raw',
) );
$wp_customize->add_control( 'express_movers_top_social_twitter', array(
    'label'    => esc_html__( 'Top Bar: Twitter / X URL', 'express-movers' ),
    'section'  => 'express_movers_header_section',
    'settings' => 'express_movers_top_social_twitter',
    'type'     => 'url',
) );

     // ///////// Top Header Bg Color
$wp_customize->add_setting('top_header_bg_color', array(
    'default'   => '#0a1d37',
    'transport' => 'refresh',
    'sanitize_callback' => 'sanitize_hex_color',
    ));
  
    $wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'top_header_bg_color', array(
    'section' => 'express_movers_header_section',
    'label'      => esc_html__('Top Header Bg Color', 'express-movers'),
    )));

    // ///////// Top Header Info Text Color
$wp_customize->add_setting('top_header_info_text_color', array(
    'default'   => '#fff',
    'transport' => 'refresh',
    'sanitize_callback' => 'sanitize_hex_color',
    ));
  
    $wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'top_header_info_text_color', array(
    'section' => 'express_movers_header_section',
    'label'      => esc_html__('Top Header Info Text Color', 'express-movers'),
    )));

$wp_customize->add_setting('top_header_accent_color', array(
    'default'   => '#d15b47',
    'transport' => 'refresh',
    'sanitize_callback' => 'sanitize_hex_color',
    ));

    $wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'top_header_accent_color', array(
    'section' => 'express_movers_header_section',
    'label'      => esc_html__('Top Bar Accent (job icons)', 'express-movers'),
    )));

     // ///////// Top Header Icon Bg Color
$wp_customize->add_setting('top_header_icon_bg_color', array(
    'default'   => '#1c2d46',
    'transport' => 'refresh',
    'sanitize_callback' => 'sanitize_hex_color',
    ));
  
    $wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'top_header_icon_bg_color', array(
    'section' => 'express_movers_header_section',
    'label'      => esc_html__('Top Header Icon Bg Color', 'express-movers'),
    )));

    // ///////// Top Header call Icon Color
$wp_customize->add_setting('top_header_callicon_color', array(
    'default'   => '#ffffff',
    'transport' => 'refresh',
    'sanitize_callback' => 'sanitize_hex_color',
    ));
  
    $wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'top_header_callicon_color', array(
    'section' => 'express_movers_header_section',
    'label'      => esc_html__('Top Header Call Icon Color', 'express-movers'),
    )));

    // ///////// Top Header email Icon Color
$wp_customize->add_setting('top_header_emailicon_color', array(
    'default'   => '#ffffff',
    'transport' => 'refresh',
    'sanitize_callback' => 'sanitize_hex_color',
    ));
  
    $wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'top_header_emailicon_color', array(
    'section' => 'express_movers_header_section',
    'label'      => esc_html__('Top Header Email Icon Color', 'express-movers'),
    )));

