<?php
/**
 * Pr Agency Theme Customizer
 *
 * @package Pr Agency
 */

function pr_agency_customize_register( $wp_customize ) {	

	//add home page setting pannel
	$wp_customize->add_panel( 'pr_agency_panel_id', array(
	    'priority' => 10,
	    'capability' => 'edit_theme_options',
	    'theme_supports' => '',
	    'title' => esc_html__( 'Home Page Setup', 'pr-agency' ),
	) );

	//Select width layout
    $wp_customize->add_setting('pr_agency_width_options',array(
        'default' => 'Full Width',
        'sanitize_callback' => 'pr_agency_sanitize_choices'
	));
	$wp_customize->add_control('pr_agency_width_options',array(
        'type' => 'radio',
        'label' => __('Select Width Layout','pr-agency'),
        'section' => 'pr_agency_left_right',
        'choices' => array(
        	'Full Width' => esc_html__('Full Width','pr-agency'),
            'Contained Width' => esc_html__('Contained Width','pr-agency'),
            'Boxed Width' => esc_html__('Boxed Width','pr-agency'),
        ),
	) );

	//Layout Setting
	$wp_customize->add_section( 'pr_agency_left_right' , array(
    	'title'      => esc_html__( 'General Settings', 'pr-agency' ),
		'priority'   => null,
		'panel' => 'pr_agency_panel_id'
	) );

	$wp_customize->add_setting('pr_agency_theme_options',array(
        'default' => 'Right Sidebar',
        'sanitize_callback' => 'pr_agency_sanitize_choices'
	));
	$wp_customize->add_control('pr_agency_theme_options',array(
        'type' => 'radio',
        'description' => __( 'Choose sidebar between different options', 'pr-agency' ),
        'label' => esc_html__( 'Post Sidebar Layout.', 'pr-agency' ),
        'section' => 'pr_agency_left_right',
        'choices' => array(
            'One Column' => esc_html__('One Column ','pr-agency'),
            'Three Columns' => esc_html__('Three Columns','pr-agency'),
            'Four Columns' => esc_html__('Four Columns','pr-agency'),
            'Right Sidebar' => esc_html__('Right Sidebar','pr-agency'),
            'Left Sidebar' => esc_html__('Left Sidebar','pr-agency'),
            'Grid Layout' => esc_html__('Grid Layout','pr-agency')
        ),
	));

	$wp_customize->add_setting('pr_agency_dropdown_anim',array(
		'default' => '',
		'capability' => 'edit_theme_options',
		'sanitize_callback' => 'pr_agency_sanitize_choices'
	));
	$wp_customize->add_control('pr_agency_dropdown_anim', array(
		'section'  => 'pr_agency_left_right',
		'label'    => __( 'Submenu Dropdown Effect','pr-agency'),
		'type'     => 'select',
		'choices'  => array(
			'bounceInUp' => __('bounceInUp', 'pr-agency'),
			'zoomIn' => __('zoomIn', 'pr-agency'),
			'flip-up' => __('flip-up', 'pr-agency'),
			'none' => __('none', 'pr-agency')
		)
	));

	$pr_agency_font_array = array(
        '' =>'No Fonts',
        'Abril Fatface' => 'Abril Fatface',
        'Acme' =>'Acme', 
        'Anton' => 'Anton', 
        'Architects Daughter' =>'Architects Daughter',
        'Arimo' => 'Arimo', 
        'Arsenal' =>'Arsenal',
        'Arvo' =>'Arvo',
        'Alegreya' =>'Alegreya',
        'Alfa Slab One' =>'Alfa Slab One',
        'Averia Serif Libre' =>'Averia Serif Libre', 
        'Bangers' =>'Bangers', 
        'Boogaloo' =>'Boogaloo', 
        'Bad Script' =>'Bad Script',
        'Bitter' =>'Bitter', 
        'Bree Serif' =>'Bree Serif', 
        'BenchNine' =>'BenchNine',
        'Cabin' =>'Cabin',
        'Cardo' =>'Cardo', 
        'Courgette' =>'Courgette', 
        'Cherry Swash' =>'Cherry Swash',
        'Cormorant Garamond' =>'Cormorant Garamond', 
        'Crimson Text' =>'Crimson Text',
        'Cuprum' =>'Cuprum', 
        'Cookie' =>'Cookie',
        'Chewy' =>'Chewy',
        'Days One' =>'Days One',
        'Dosis' =>'Dosis',
        'Droid Sans' =>'Droid Sans', 
        'Economica' =>'Economica', 
        'Fredoka One' =>'Fredoka One',
        'Fjalla One' =>'Fjalla One',
        'Francois One' =>'Francois One', 
        'Frank Ruhl Libre' => 'Frank Ruhl Libre', 
        'Gloria Hallelujah' =>'Gloria Hallelujah',
        'Great Vibes' =>'Great Vibes', 
        'Handlee' =>'Handlee', 
        'Hammersmith One' =>'Hammersmith One',
        'Inconsolata' =>'Inconsolata',
        'Indie Flower' =>'Indie Flower', 
        'IM Fell English SC' =>'IM Fell English SC',
        'Julius Sans One' =>'Julius Sans One',
        'Josefin Slab' =>'Josefin Slab',
        'Josefin Sans' =>'Josefin Sans',
        'Kanit' =>'Kanit',
        'Lobster' =>'Lobster',
        'Lato' => 'Lato',
        'Lora' =>'Lora', 
        'Libre Baskerville' =>'Libre Baskerville',
        'Lobster Two' => 'Lobster Two',
        'Merriweather' =>'Merriweather',
        'Monda' =>'Monda',
        'Montserrat' =>'Montserrat',
        'Muli' =>'Muli',
        'Marck Script' =>'Marck Script',
        'Noto Serif' =>'Noto Serif',
        'Open Sans' =>'Open Sans',
        'Overpass' => 'Overpass', 
        'Overpass Mono' =>'Overpass Mono',
        'Oxygen' =>'Oxygen',
        'Orbitron' =>'Orbitron',
        'Patua One' =>'Patua One',
        'Pacifico' =>'Pacifico',
        'Padauk' =>'Padauk',
        'Playball' =>'Playball',
        'Playfair Display' =>'Playfair Display',
        'PT Sans' =>'PT Sans',
        'Philosopher' =>'Philosopher',
        'Permanent Marker' =>'Permanent Marker',
        'Poiret One' =>'Poiret One',
        'Quicksand' =>'Quicksand',
        'Quattrocento Sans' =>'Quattrocento Sans',
        'Raleway' =>'Raleway',
        'Rubik' =>'Rubik',
        'Rokkitt' =>'Rokkitt',
        'Russo One' => 'Russo One', 
        'Righteous' =>'Righteous', 
        'Slabo' =>'Slabo', 
        'Source Sans Pro' =>'Source Sans Pro',
        'Shadows Into Light Two' =>'Shadows Into Light Two',
        'Shadows Into Light' =>  'Shadows Into Light',
        'Sacramento' =>'Sacramento',
        'Shrikhand' =>'Shrikhand',
        'Tangerine' => 'Tangerine',
        'Ubuntu' =>'Ubuntu',
        'VT323' =>'VT323',
        'Varela Round' =>'Varela Round',
        'Vampiro One' =>'Vampiro One',
        'Vollkorn' => 'Vollkorn',
        'Volkhov' =>'Volkhov',
        'Yanone Kaffeesatz' =>'Yanone Kaffeesatz'
    );

	//Typography
	$wp_customize->add_section( 'pr_agency_typography', array(
    	'title'      => __( 'Typography', 'pr-agency' ),
		'priority'   => null,
		'panel' => 'pr_agency_panel_id'
	) );
	
	// This is Paragraph Color picker setting
	$wp_customize->add_setting( 'pr_agency_paragraph_color', array(
		'default' => '',
		'sanitize_callback'	=> 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'pr_agency_paragraph_color', array(
		'label' => __('Paragraph Color', 'pr-agency'),
		'section' => 'pr_agency_typography',
		'settings' => 'pr_agency_paragraph_color',
	)));

	//This is Paragraph FontFamily picker setting
	$wp_customize->add_setting('pr_agency_paragraph_font_family',array(
	  'default' => '',
	  'capability' => 'edit_theme_options',
	  'sanitize_callback' => 'pr_agency_sanitize_choices'
	));
	$wp_customize->add_control(
	    'pr_agency_paragraph_font_family', array(
	    'section'  => 'pr_agency_typography',
	    'label'    => __( 'Paragraph Fonts','pr-agency'),
	    'type'     => 'select',
	    'choices'  => $pr_agency_font_array,
	));

	$wp_customize->add_setting('pr_agency_paragraph_font_size',array(
		'default'	=> '',
		'sanitize_callback'	=> 'absint'
	));
	$wp_customize->add_control('pr_agency_paragraph_font_size',array(
		'label'	=> __('Paragraph Font Size','pr-agency'),
		'section'	=> 'pr_agency_typography',
		'setting'	=> 'pr_agency_paragraph_font_size',
		'type'	=> 'text'
	));

	// This is "link" Tag Color picker setting
	$wp_customize->add_setting( 'pr_agency_atag_color', array(
		'default' => '',
		'sanitize_callback'	=> 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'pr_agency_atag_color', array(
		'label' => __('"link" Title Color', 'pr-agency'),
		'section' => 'pr_agency_typography',
		'settings' => 'pr_agency_atag_color',
	)));

	//This is "link" Tag FontFamily picker setting
	$wp_customize->add_setting('pr_agency_atag_font_family',array(
	  'default' => '',
	  'capability' => 'edit_theme_options',
	  'sanitize_callback' => 'pr_agency_sanitize_choices'
	));
	$wp_customize->add_control(
	    'pr_agency_atag_font_family', array(
	    'section'  => 'pr_agency_typography',
	    'label'    => __( '"link" Tag Fonts','pr-agency'),
	    'type'     => 'select',
	    'choices'  => $pr_agency_font_array,
	));

	// This is "link" Tag Color picker setting
	$wp_customize->add_setting( 'pr_agency_li_color', array(
		'default' => '',
		'sanitize_callback'	=> 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'pr_agency_li_color', array(
		'label' => __('"list" Tag Color', 'pr-agency'),
		'section' => 'pr_agency_typography',
		'settings' => 'pr_agency_li_color',
	)));

	//This is "li" Tag FontFamily picker setting
	$wp_customize->add_setting('pr_agency_li_font_family',array(
	  'default' => '',
	  'capability' => 'edit_theme_options',
	  'sanitize_callback' => 'pr_agency_sanitize_choices'
	));
	$wp_customize->add_control(
	    'pr_agency_li_font_family', array(
	    'section'  => 'pr_agency_typography',
	    'label'    => __( '"li" Tag Fonts','pr-agency'),
	    'type'     => 'select',
	    'choices'  => $pr_agency_font_array,
	));

	// This is H1 Color picker setting
	$wp_customize->add_setting( 'pr_agency_h1_color', array(
		'default' => '',
		'sanitize_callback'	=> 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'pr_agency_h1_color', array(
		'label' => __('H1 Color', 'pr-agency'),
		'section' => 'pr_agency_typography',
		'settings' => 'pr_agency_h1_color',
	)));

	//This is H1 FontFamily picker setting
	$wp_customize->add_setting('pr_agency_h1_font_family',array(
	  'default' => '',
	  'capability' => 'edit_theme_options',
	  'sanitize_callback' => 'pr_agency_sanitize_choices'
	));
	$wp_customize->add_control(
	    'pr_agency_h1_font_family', array(
	    'section'  => 'pr_agency_typography',
	    'label'    => __( 'H1 Fonts','pr-agency'),
	    'type'     => 'select',
	    'choices'  => $pr_agency_font_array,
	));

	//This is H1 FontSize setting
	$wp_customize->add_setting('pr_agency_h1_font_size',array(
		'default'	=> '',
		'sanitize_callback'	=> 'absint'
	));
	$wp_customize->add_control('pr_agency_h1_font_size',array(
		'label'	=> __('H1 Font Size','pr-agency'),
		'section'	=> 'pr_agency_typography',
		'setting'	=> 'pr_agency_h1_font_size',
		'type'	=> 'text'
	));

	// This is H2 Color picker setting
	$wp_customize->add_setting( 'pr_agency_h2_color', array(
		'default' => '',
		'sanitize_callback'	=> 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'pr_agency_h2_color', array(
		'label' => __('H2 Color', 'pr-agency'),
		'section' => 'pr_agency_typography',
		'settings' => 'pr_agency_h2_color',
	)));

	//This is H2 FontFamily picker setting
	$wp_customize->add_setting('pr_agency_h2_font_family',array(
	  'default' => '',
	  'capability' => 'edit_theme_options',
	  'sanitize_callback' => 'pr_agency_sanitize_choices'
	));
	$wp_customize->add_control(
	    'pr_agency_h2_font_family', array(
	    'section'  => 'pr_agency_typography',
	    'label'    => __( 'H2 Fonts','pr-agency'),
	    'type'     => 'select',
	    'choices'  => $pr_agency_font_array,
	));

	//This is H2 FontSize setting
	$wp_customize->add_setting('pr_agency_h2_font_size',array(
		'default'	=> '',
		'sanitize_callback'	=> 'absint'
	));
	$wp_customize->add_control('pr_agency_h2_font_size',array(
		'label'	=> __('H2 Font Size','pr-agency'),
		'section'	=> 'pr_agency_typography',
		'setting'	=> 'pr_agency_h2_font_size',
		'type'	=> 'text'
	));

	// This is H3 Color picker setting
	$wp_customize->add_setting( 'pr_agency_h3_color', array(
		'default' => '',
		'sanitize_callback'	=> 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'pr_agency_h3_color', array(
		'label' => __('H3 Color', 'pr-agency'),
		'section' => 'pr_agency_typography',
		'settings' => 'pr_agency_h3_color',
	)));

	//This is H3 FontFamily picker setting
	$wp_customize->add_setting('pr_agency_h3_font_family',array(
	  'default' => '',
	  'capability' => 'edit_theme_options',
	  'sanitize_callback' => 'pr_agency_sanitize_choices'
	));
	$wp_customize->add_control(
	    'pr_agency_h3_font_family', array(
	    'section'  => 'pr_agency_typography',
	    'label'    => __( 'H3 Fonts','pr-agency'),
	    'type'     => 'select',
	    'choices'  => $pr_agency_font_array,
	));

	//This is H3 FontSize setting
	$wp_customize->add_setting('pr_agency_h3_font_size',array(
		'default'	=> '',
		'sanitize_callback'	=> 'absint'
	));
	$wp_customize->add_control('pr_agency_h3_font_size',array(
		'label'	=> __('H3 Font Size','pr-agency'),
		'section'	=> 'pr_agency_typography',
		'setting'	=> 'pr_agency_h3_font_size',
		'type'	=> 'text'
	));

	// This is H4 Color picker setting
	$wp_customize->add_setting( 'pr_agency_h4_color', array(
		'default' => '',
		'sanitize_callback'	=> 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'pr_agency_h4_color', array(
		'label' => __('H4 Color', 'pr-agency'),
		'section' => 'pr_agency_typography',
		'settings' => 'pr_agency_h4_color',
	)));

	//This is H4 FontFamily picker setting
	$wp_customize->add_setting('pr_agency_h4_font_family',array(
	  'default' => '',
	  'capability' => 'edit_theme_options',
	  'sanitize_callback' => 'pr_agency_sanitize_choices'
	));
	$wp_customize->add_control(
	    'pr_agency_h4_font_family', array(
	    'section'  => 'pr_agency_typography',
	    'label'    => __( 'H4 Fonts','pr-agency'),
	    'type'     => 'select',
	    'choices'  => $pr_agency_font_array,
	));

	//This is H4 FontSize setting
	$wp_customize->add_setting('pr_agency_h4_font_size',array(
		'default'	=> '',
		'sanitize_callback'	=> 'absint'
	));
	$wp_customize->add_control('pr_agency_h4_font_size',array(
		'label'	=> __('H4 Font Size','pr-agency'),
		'section'	=> 'pr_agency_typography',
		'setting'	=> 'pr_agency_h4_font_size',
		'type'	=> 'text'
	));

	// This is H5 Color picker setting
	$wp_customize->add_setting( 'pr_agency_h5_color', array(
		'default' => '',
		'sanitize_callback'	=> 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'pr_agency_h5_color', array(
		'label' => __('H5 Color', 'pr-agency'),
		'section' => 'pr_agency_typography',
		'settings' => 'pr_agency_h5_color',
	)));

	//This is H5 FontFamily picker setting
	$wp_customize->add_setting('pr_agency_h5_font_family',array(
	  'default' => '',
	  'capability' => 'edit_theme_options',
	  'sanitize_callback' => 'pr_agency_sanitize_choices'
	));
	$wp_customize->add_control(
	    'pr_agency_h5_font_family', array(
	    'section'  => 'pr_agency_typography',
	    'label'    => __( 'H5 Fonts','pr-agency'),
	    'type'     => 'select',
	    'choices'  => $pr_agency_font_array,
	));

	//This is H5 FontSize setting
	$wp_customize->add_setting('pr_agency_h5_font_size',array(
		'default'	=> '',
		'sanitize_callback'	=> 'absint'
	));
	$wp_customize->add_control('pr_agency_h5_font_size',array(
		'label'	=> __('H5 Font Size','pr-agency'),
		'section'	=> 'pr_agency_typography',
		'setting'	=> 'pr_agency_h5_font_size',
		'type'	=> 'text'
	));

	// This is H6 Color picker setting
	$wp_customize->add_setting( 'pr_agency_h6_color', array(
		'default' => '',
		'sanitize_callback'	=> 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'pr_agency_h6_color', array(
		'label' => __('H6 Color', 'pr-agency'),
		'section' => 'pr_agency_typography',
		'settings' => 'pr_agency_h6_color',
	)));

	//This is H6 FontFamily picker setting
	$wp_customize->add_setting('pr_agency_h6_font_family',array(
	  'default' => '',
	  'capability' => 'edit_theme_options',
	  'sanitize_callback' => 'pr_agency_sanitize_choices'
	));
	$wp_customize->add_control(
	    'pr_agency_h6_font_family', array(
	    'section'  => 'pr_agency_typography',
	    'label'    => __( 'H6 Fonts','pr-agency'),
	    'type'     => 'select',
	    'choices'  => $pr_agency_font_array,
	));

	//This is H6 FontSize setting
	$wp_customize->add_setting('pr_agency_h6_font_size',array(
		'default'	=> '',
		'sanitize_callback'	=> 'absint'
	));
	$wp_customize->add_control('pr_agency_h6_font_size',array(
		'label'	=> __('H6 Font Size','pr-agency'),
		'section'	=> 'pr_agency_typography',
		'setting'	=> 'pr_agency_h6_font_size',
		'type'	=> 'text'
	));

	//Topbar section
	$wp_customize->add_section('pr_agency_topbar',array(
		'title'	=> esc_html__('Header','pr-agency'),
		'priority'	=> null,
		'panel' => 'pr_agency_panel_id',
	));

	// Banner Section
	$wp_customize->add_section( 'pr_agency_bannersettings', array(
		'title'    => esc_html__( 'Banner Settings', 'pr-agency' ),
		'priority' => null,
		'panel'    => 'pr_agency_panel_id',
	) );

	$wp_customize->add_setting( 'pr_agency_banner_hide_show', array(
		'default'           => false,
		'sanitize_callback' => 'pr_agency_sanitize_checkbox',
	) );
	$wp_customize->add_control( 'pr_agency_banner_hide_show', array(
		'type'        => 'checkbox',
		'description' => __( 'Click on the checkbox to enable the banner section.', 'pr-agency' ),
		'label'       => esc_html__( 'Show / Hide Banner', 'pr-agency' ),
		'section'     => 'pr_agency_bannersettings',
	) );

	$wp_customize->add_setting( 'pr_agency_banner_heading', array(
		'default'           => '',
		'sanitize_callback' => 'sanitize_text_field',
	) );
	$wp_customize->add_control( 'pr_agency_banner_heading', array(
		'label'   => __( 'Banner Heading', 'pr-agency' ),
		'section' => 'pr_agency_bannersettings',
		'type'    => 'text',
	) );

	$wp_customize->add_setting( 'pr_agency_banner_desc', array(
		'default'           => '',
		'sanitize_callback' => 'sanitize_text_field',
	) );
	$wp_customize->add_control( 'pr_agency_banner_desc', array(
		'label'   => __( 'Banner Description', 'pr-agency' ),
		'section' => 'pr_agency_bannersettings',
		'type'    => 'text',
	) );

	$wp_customize->add_setting( 'pr_agency_banner_btn1_text', array(
		'default'           => '',
		'sanitize_callback' => 'sanitize_text_field',
	) );
	$wp_customize->add_control( 'pr_agency_banner_btn1_text', array(
		'label'   => __( 'Button 1 Label (Outline)', 'pr-agency' ),
		'section' => 'pr_agency_bannersettings',
		'type'    => 'text',
	) );

	$wp_customize->add_setting( 'pr_agency_banner_btn1_url', array(
		'default'           => '',
		'sanitize_callback' => 'esc_url_raw',
	) );
	$wp_customize->add_control( 'pr_agency_banner_btn1_url', array(
		'label'   => __( 'Button 1 URL', 'pr-agency' ),
		'section' => 'pr_agency_bannersettings',
		'type'    => 'url',
	) );

	$wp_customize->add_setting( 'pr_agency_banner_btn2_text', array(
		'default'           => '',
		'sanitize_callback' => 'sanitize_text_field',
	) );
	$wp_customize->add_control( 'pr_agency_banner_btn2_text', array(
		'label'   => __( 'Button 2 Label (Filled)', 'pr-agency' ),
		'section' => 'pr_agency_bannersettings',
		'type'    => 'text',
	) );

	$wp_customize->add_setting( 'pr_agency_banner_btn2_url', array(
		'default'           => '',
		'sanitize_callback' => 'esc_url_raw',
	) );
	$wp_customize->add_control( 'pr_agency_banner_btn2_url', array(
		'label'   => __( 'Button 2 URL', 'pr-agency' ),
		'section' => 'pr_agency_bannersettings',
		'type'    => 'url',
	) );

	// Collage images (3 image slots + 1 decorative cell)
	$wp_customize->add_setting( 'pr_agency_banner_img_1', array(
		'default'           => '',
		'sanitize_callback' => 'esc_url_raw',
	) );
	$wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'pr_agency_banner_img_1', array(
		'label'   => __( 'Collage Image 1 (Top Left)', 'pr-agency' ),
		'section' => 'pr_agency_bannersettings',
	) ) );

	$wp_customize->add_setting( 'pr_agency_banner_img_2', array(
		'default'           => '',
		'sanitize_callback' => 'esc_url_raw',
	) );
	$wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'pr_agency_banner_img_2', array(
		'label'   => __( 'Collage Image 2 (Top Right)', 'pr-agency' ),
		'section' => 'pr_agency_bannersettings',
	) ) );

	$wp_customize->add_setting( 'pr_agency_banner_img_3', array(
		'default'           => '',
		'sanitize_callback' => 'esc_url_raw',
	) );
	$wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'pr_agency_banner_img_3', array(
		'label'   => __( 'Collage Image 3 (Bottom Left)', 'pr-agency' ),
		'section' => 'pr_agency_bannersettings',
	) ) );

	// Banner color / font controls
	$wp_customize->add_setting( 'pr_agency_banner_bg_color', array(
		'default'           => '#2c1654',
		'sanitize_callback' => 'sanitize_hex_color',
	) );
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'pr_agency_banner_bg_color', array(
		'label'   => __( 'Banner Background Color', 'pr-agency' ),
		'section' => 'pr_agency_bannersettings',
	) ) );

	$wp_customize->add_setting( 'pr_agency_banner_heading_color', array(
		'default'           => '#ffffff',
		'sanitize_callback' => 'sanitize_hex_color',
	) );
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'pr_agency_banner_heading_color', array(
		'label'   => __( 'Heading Color', 'pr-agency' ),
		'section' => 'pr_agency_bannersettings',
	) ) );

	$wp_customize->add_setting( 'pr_agency_banner_desc_color', array(
		'default'           => '#ddd6f0',
		'sanitize_callback' => 'sanitize_hex_color',
	) );
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'pr_agency_banner_desc_color', array(
		'label'   => __( 'Description Color', 'pr-agency' ),
		'section' => 'pr_agency_bannersettings',
	) ) );

	$wp_customize->add_setting( 'pr_agency_banner_btn1_color', array(
		'default'           => '#ffffff',
		'sanitize_callback' => 'sanitize_hex_color',
	) );
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'pr_agency_banner_btn1_color', array(
		'label'   => __( 'Button 1 (Outline) Text Color', 'pr-agency' ),
		'section' => 'pr_agency_bannersettings',
	) ) );

	$wp_customize->add_setting( 'pr_agency_banner_btn2_color', array(
		'default'           => '#ffffff',
		'sanitize_callback' => 'sanitize_hex_color',
	) );
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'pr_agency_banner_btn2_color', array(
		'label'   => __( 'Button 2 (Filled) Text Color', 'pr-agency' ),
		'section' => 'pr_agency_bannersettings',
	) ) );

	$wp_customize->add_setting( 'pr_agency_banner_btn2_bg', array(
		'default'           => '#F32F73',
		'sanitize_callback' => 'sanitize_hex_color',
	) );
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'pr_agency_banner_btn2_bg', array(
		'label'   => __( 'Button 2 (Filled) Background Color', 'pr-agency' ),
		'section' => 'pr_agency_bannersettings',
	) ) );

	$wp_customize->add_setting( 'pr_agency_banner_heading_size', array(
		'default'           => '',
		'sanitize_callback' => 'absint',
	) );
	$wp_customize->add_control( 'pr_agency_banner_heading_size', array(
		'label'   => __( 'Heading Font Size (px)', 'pr-agency' ),
		'section' => 'pr_agency_bannersettings',
		'type'    => 'number',
	) );

	$wp_customize->add_setting( 'pr_agency_banner_desc_size', array(
		'default'           => '',
		'sanitize_callback' => 'absint',
	) );
	$wp_customize->add_control( 'pr_agency_banner_desc_size', array(
		'label'   => __( 'Description Font Size (px)', 'pr-agency' ),
		'section' => 'pr_agency_bannersettings',
		'type'    => 'number',
	) );

	// Featured Pr Agency Section
	$wp_customize->add_section( 'pr_agency_features_section', array(
		'title' => __( 'Our Expertise Section', 'pr-agency' ),
		'panel' => 'pr_agency_panel_id',
	) );

	$wp_customize->add_setting( 'pr_agency_packages_heading', array(
		'default'           => '',
		'sanitize_callback' => 'sanitize_text_field',
	) );
	$wp_customize->add_control( 'pr_agency_packages_heading', array(
		'label'   => __( 'Section Heading', 'pr-agency' ),
		'section' => 'pr_agency_features_section',
		'type'    => 'text',
	) );

	$wp_customize->add_setting( 'pr_agency_packages_subtext', array(
		'default'           => '',
		'sanitize_callback' => 'sanitize_text_field',
	) );
	$wp_customize->add_control( 'pr_agency_packages_subtext', array(
		'label'   => __( 'Section Description', 'pr-agency' ),
		'section' => 'pr_agency_features_section',
		'type'    => 'text',
	) );

	for ( $i = 1; $i <= 3; $i++ ) {
		$wp_customize->add_setting( 'pr_agency_package_' . $i . '_img', array(
			'default'           => '',
			'sanitize_callback' => 'esc_url_raw',
		) );
		$wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'pr_agency_package_' . $i . '_img', array(
			/* translators: %d: package number */
			'label'   => sprintf( __( 'Service %d Image', 'pr-agency' ), $i ),
			'section' => 'pr_agency_features_section',
		) ) );

		$wp_customize->add_setting( 'pr_agency_package_' . $i . '_name', array(
			'default'           => '',
			'sanitize_callback' => 'sanitize_text_field',
		) );
		$wp_customize->add_control( 'pr_agency_package_' . $i . '_name', array(
			/* translators: %d: package number */
			'label'   => sprintf( __( 'Service %d Title', 'pr-agency' ), $i ),
			'section' => 'pr_agency_features_section',
			'type'    => 'text',
		) );

		$wp_customize->add_setting( 'pr_agency_package_' . $i . '_desc', array(
			'default'           => '',
			'sanitize_callback' => 'sanitize_text_field',
		) );
		$wp_customize->add_control( 'pr_agency_package_' . $i . '_desc', array(
			/* translators: %d: package number */
			'label'   => sprintf( __( 'Service %d Description', 'pr-agency' ), $i ),
			'section' => 'pr_agency_features_section',
			'type'    => 'text',
		) );

		$wp_customize->add_setting( 'pr_agency_package_' . $i . '_btn', array(
			'default'           => __( 'Read More', 'pr-agency' ),
			'sanitize_callback' => 'sanitize_text_field',
		) );
		$wp_customize->add_control( 'pr_agency_package_' . $i . '_btn', array(
			/* translators: %d: package number */
			'label'   => sprintf( __( 'Service %d Button Label', 'pr-agency' ), $i ),
			'section' => 'pr_agency_features_section',
			'type'    => 'text',
		) );

		$wp_customize->add_setting( 'pr_agency_package_' . $i . '_url', array(
			'default'           => '',
			'sanitize_callback' => 'esc_url_raw',
		) );
		$wp_customize->add_control( 'pr_agency_package_' . $i . '_url', array(
			/* translators: %d: package number */
			'label'   => sprintf( __( 'Service %d Button URL', 'pr-agency' ), $i ),
			'section' => 'pr_agency_features_section',
			'type'    => 'url',
		) );
	}

	$wp_customize->add_setting( 'pr_agency_packages_heading_color', array(
		'default'           => '',
		'sanitize_callback' => 'sanitize_hex_color',
	) );
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'pr_agency_packages_heading_color', array(
		'label'    => __( 'Section Heading Color', 'pr-agency' ),
		'section'  => 'pr_agency_features_section',
		'settings' => 'pr_agency_packages_heading_color',
	) ) );

	$wp_customize->add_setting( 'pr_agency_packages_desc_color', array(
		'default'           => '',
		'sanitize_callback' => 'sanitize_hex_color',
	) );
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'pr_agency_packages_desc_color', array(
		'label'    => __( 'Section Description Color', 'pr-agency' ),
		'section'  => 'pr_agency_features_section',
		'settings' => 'pr_agency_packages_desc_color',
	) ) );

	$wp_customize->add_setting( 'pr_agency_packages_name_color', array(
		'default'           => '',
		'sanitize_callback' => 'sanitize_hex_color',
	) );
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'pr_agency_packages_name_color', array(
		'label'    => __( 'Destination Name Color', 'pr-agency' ),
		'section'  => 'pr_agency_features_section',
		'settings' => 'pr_agency_packages_name_color',
	) ) );

	$wp_customize->add_setting( 'pr_agency_packages_price_color', array(
		'default'           => '',
		'sanitize_callback' => 'sanitize_hex_color',
	) );
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'pr_agency_packages_price_color', array(
		'label'    => __( 'Price Color', 'pr-agency' ),
		'section'  => 'pr_agency_features_section',
		'settings' => 'pr_agency_packages_price_color',
	) ) );

	$wp_customize->add_setting( 'pr_agency_packages_btn_color', array(
		'default'           => '',
		'sanitize_callback' => 'sanitize_hex_color',
	) );
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'pr_agency_packages_btn_color', array(
		'label'    => __( 'Button Text Color', 'pr-agency' ),
		'section'  => 'pr_agency_features_section',
		'settings' => 'pr_agency_packages_btn_color',
	) ) );

	$wp_customize->add_setting( 'pr_agency_packages_btnbg_color', array(
		'default'           => '',
		'sanitize_callback' => 'sanitize_hex_color',
	) );
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'pr_agency_packages_btnbg_color', array(
		'label'    => __( 'Button Background Color', 'pr-agency' ),
		'section'  => 'pr_agency_features_section',
		'settings' => 'pr_agency_packages_btnbg_color',
	) ) );

	// =============================================
	// Page Banner & Breadcrumb Settings
	// =============================================
	$wp_customize->add_section( 'pr_agency_banner_section', array(
		'title' => esc_html__( 'Page Banner & Breadcrumb', 'pr-agency' ),
		'panel' => 'pr_agency_panel_id',
	) );

	// Banner background image
	$wp_customize->add_setting( 'pr_agency_banner_bg', array(
		'default'           => '',
		'sanitize_callback' => 'esc_url_raw',
	) );
	$wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'pr_agency_banner_bg', array(
		'label'   => __( 'Banner Background Image', 'pr-agency' ),
		'section' => 'pr_agency_banner_section',
	) ) );

	// Banner overlay color
	$wp_customize->add_setting( 'pr_agency_banner_overlay_color', array(
		'default'           => 'rgba(0,0,0,0.55)',
		'sanitize_callback' => 'sanitize_text_field',
	) );
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'pr_agency_banner_overlay_color', array(
		'label'   => __( 'Banner Overlay Color', 'pr-agency' ),
		'section' => 'pr_agency_banner_section',
	) ) );

	// Banner min-height
	$wp_customize->add_setting( 'pr_agency_banner_height', array(
		'default'           => '220',
		'sanitize_callback' => 'absint',
	) );
	$wp_customize->add_control( 'pr_agency_banner_height', array(
		'label'       => __( 'Banner Min-Height (px)', 'pr-agency' ),
		'section'     => 'pr_agency_banner_section',
		'type'        => 'number',
		'input_attrs' => array( 'min' => 80, 'max' => 600, 'step' => 10 ),
	) );

	// Banner title color
	$wp_customize->add_setting( 'pr_agency_banner_title_color', array(
		'default'           => '#ffffff',
		'sanitize_callback' => 'sanitize_hex_color',
	) );
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'pr_agency_banner_title_color', array(
		'label'   => __( 'Banner Title Color', 'pr-agency' ),
		'section' => 'pr_agency_banner_section',
	) ) );

	// Show/hide banner title
	$wp_customize->add_setting( 'pr_agency_banner_title_toggle', array(
		'default'           => true,
		'sanitize_callback' => 'pr_agency_sanitize_checkbox',
	) );
	$wp_customize->add_control( 'pr_agency_banner_title_toggle', array(
		'label'   => __( 'Show Page Title in Banner', 'pr-agency' ),
		'section' => 'pr_agency_banner_section',
		'type'    => 'checkbox',
	) );

	// --- Breadcrumb settings ---

	// Show/hide breadcrumb
	$wp_customize->add_setting( 'pr_agency_breadcrumb_show', array(
		'default'           => true,
		'sanitize_callback' => 'pr_agency_sanitize_checkbox',
	) );
	$wp_customize->add_control( 'pr_agency_breadcrumb_show', array(
		'label'   => __( 'Show Breadcrumbs', 'pr-agency' ),
		'section' => 'pr_agency_banner_section',
		'type'    => 'checkbox',
	) );

	// Breadcrumb home label
	$wp_customize->add_setting( 'pr_agency_breadcrumb_home_text', array(
		'default'           => __( 'Home', 'pr-agency' ),
		'sanitize_callback' => 'sanitize_text_field',
	) );
	$wp_customize->add_control( 'pr_agency_breadcrumb_home_text', array(
		'label'   => __( 'Breadcrumb Home Label', 'pr-agency' ),
		'section' => 'pr_agency_banner_section',
		'type'    => 'text',
	) );

	// Breadcrumb separator
	$wp_customize->add_setting( 'pr_agency_breadcrumb_separator', array(
		'default'           => '/',
		'sanitize_callback' => 'sanitize_text_field',
	) );
	$wp_customize->add_control( 'pr_agency_breadcrumb_separator', array(
		'label'   => __( 'Breadcrumb Separator', 'pr-agency' ),
		'section' => 'pr_agency_banner_section',
		'type'    => 'text',
	) );

	// Breadcrumb text color
	$wp_customize->add_setting( 'pr_agency_breadcrumb_color', array(
		'default'           => '#ffffff',
		'sanitize_callback' => 'sanitize_hex_color',
	) );
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'pr_agency_breadcrumb_color', array(
		'label'   => __( 'Breadcrumb Text Color', 'pr-agency' ),
		'section' => 'pr_agency_banner_section',
	) ) );

	// Breadcrumb active/current color
	$wp_customize->add_setting( 'pr_agency_breadcrumb_active_color', array(
		'default'           => '#F32F73',
		'sanitize_callback' => 'sanitize_hex_color',
	) );
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'pr_agency_breadcrumb_active_color', array(
		'label'   => __( 'Breadcrumb Active Item Color', 'pr-agency' ),
		'section' => 'pr_agency_banner_section',
	) ) );

	//footer
	$wp_customize->add_section('pr_agency_footer_section',array(
		'title'	=> esc_html__('Footer Setting','pr-agency'),
		'panel' => 'pr_agency_panel_id'
	));

	$wp_customize->add_setting( 'pr_agency_footerbg_color', array(
		'default' => '',
		'sanitize_callback'	=> 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'pr_agency_footerbg_color', array(
		'label' => __('Footer BG Color', 'pr-agency'),
		'section' => 'pr_agency_footer_section',
		'settings' => 'pr_agency_footerbg_color',
	)));
		
	$wp_customize->add_setting('pr_agency_footer_copy',array(
		'default'	=> 'By UnityThemes',
		'sanitize_callback'	=> 'sanitize_text_field'
	));	
	$wp_customize->add_control('pr_agency_footer_copy',array(
		'label'	=> esc_html__('Copyright Text','pr-agency'),
		'section'	=> 'pr_agency_footer_section',
		'type'		=> 'text'
	));

	$wp_customize->add_setting('pr_agency_footer_copy_font_size',array(
		'default'	=> '',
		'sanitize_callback'	=> 'absint'
	));
	$wp_customize->add_control('pr_agency_footer_copy_font_size',array(
		'label'	=> __('Text Font Size','pr-agency'),
		'section' => 'pr_agency_footer_section',
		'type'	 => 'number'
	));

	$wp_customize->add_setting( 'pr_agency_footertitle_color', array(
		'default' => '',
		'sanitize_callback'	=> 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'pr_agency_footertitle_color', array(
		'label' => __('Footer Title Color', 'pr-agency'),
		'section' => 'pr_agency_footer_section',
		'settings' => 'pr_agency_footertitle_color',
	)));

	$wp_customize->add_setting( 'pr_agency_footertext_color', array(
		'default' => '',
		'sanitize_callback'	=> 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'pr_agency_footertext_color', array(
		'label' => __('Footer Text Color', 'pr-agency'),
		'section' => 'pr_agency_footer_section',
		'settings' => 'pr_agency_footertext_color',
	)));

	$wp_customize->add_setting( 'pr_agency_footermenu_color', array(
		'default' => '',
		'sanitize_callback'	=> 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'pr_agency_footermenu_color', array(
		'label' => __('Footer Menu Color', 'pr-agency'),
		'section' => 'pr_agency_footer_section',
		'settings' => 'pr_agency_footermenu_color',
	)));

	$wp_customize->add_setting( 'pr_agency_footer_copy_color', array(
		'default' => '',
		'sanitize_callback'	=> 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'pr_agency_footer_copy_color', array(
		'label' => __('Copyright Color', 'pr-agency'),
		'section' => 'pr_agency_footer_section',
		'settings' => 'pr_agency_footer_copy_color',
	)));

	$wp_customize->add_setting( 'pr_agency_footer_tbtext_color', array(
		'default' => '',
		'sanitize_callback'	=> 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'pr_agency_footer_tbtext_color', array(
		'label' => __('Top/Bottom Button Text Color', 'pr-agency'),
		'section' => 'pr_agency_footer_section',
		'settings' => 'pr_agency_footer_tbtext_color',
	)));

	$wp_customize->add_setting( 'pr_agency_footer_tbbg_color', array(
		'default' => '',
		'sanitize_callback'	=> 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'pr_agency_footer_tbbg_color', array(
		'label' => __('Top/Bottom Button BG Color', 'pr-agency'),
		'section' => 'pr_agency_footer_section',
		'settings' => 'pr_agency_footer_tbbg_color',
	)));

	//Wocommerce Shop Page
	$wp_customize->add_section('pr_agency_woocommerce_shop_page',array(
		'title'	=> __('Woocommerce Shop Page','pr-agency'),
		'panel' => 'pr_agency_panel_id'
	));

	$wp_customize->add_setting( 'pr_agency_products_per_column' , array(
		'default'           => 3,
		'transport'         => 'refresh',
		'sanitize_callback' => 'pr_agency_sanitize_choices',
	) );
	$wp_customize->add_control( 'pr_agency_products_per_column', array(
		'label'    => __( 'Product Per Columns', 'pr-agency' ),
		'description'	=> __('How many products should be shown per Column?','pr-agency'),
		'section'  => 'pr_agency_woocommerce_shop_page',
		'type'     => 'select',
		'choices'  => array(
			'2' => '2',
			'3' => '3',
			'4' => '4',
			'5' => '5',
		),
	)  );

	$wp_customize->add_setting('pr_agency_products_per_page',array(
		'default'	=> 9,
		'sanitize_callback'	=> 'pr_agency_sanitize_float',
	));	
	$wp_customize->add_control('pr_agency_products_per_page',array(
		'label'	=> __('Product Per Page','pr-agency'),
		'description'	=> __('How many products should be shown per page?','pr-agency'),
		'section'	=> 'pr_agency_woocommerce_shop_page',
		'type'		=> 'number'
	));

	// logo site title
	$wp_customize->add_setting('pr_agency_logo_size',array(
		'default' => '',
		'sanitize_callback'	=> 'pr_agency_sanitize_float'
	));
	$wp_customize->add_control('pr_agency_logo_size',array(
		'type' => 'range',
		'label' => __('Logo Size','pr-agency'),
		'section' => 'title_tagline'
	));

	$wp_customize->add_setting('pr_agency_site_title_tagline',array(
       'default' => true,
       'sanitize_callback'	=> 'pr_agency_sanitize_checkbox'
    ));
    $wp_customize->add_control('pr_agency_site_title_tagline',array(
       'type' => 'checkbox',
       'label' => __('Display Site Title and Tagline in Header','pr-agency'),
       'section' => 'title_tagline'
    ));
}
add_action( 'customize_register', 'pr_agency_customize_register' );