<?php
/**
 * Customizer Color Option
 *
 * @package One Elementor
 */

// Color Section
$wp_customize->add_section( 'one_elementor_colors_section', array(
	'title'       => esc_html__( 'Colors', 'one-elementor' ),
	'panel'       => 'one_elementor_front_option',
	'priority'    => 20,
) );

// Primary Color
$wp_customize->add_setting( 'one_elementor_primary_color', array(
	'default'           => '#E2498A',
	'sanitize_callback' => 'sanitize_hex_color',
) );
$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'one_elementor_primary_color', array(
	'label'       => esc_html__( 'Primary Color', 'one-elementor' ),
	'description' => esc_html__( 'Applied to buttons, links, highlights, etc.', 'one-elementor' ),
	'section'     => 'one_elementor_colors_section',
) ) );

// Secondary Color
$wp_customize->add_setting( 'one_elementor_secondary_color', array(
	'default'           => '#605BE5',
	'sanitize_callback' => 'sanitize_hex_color',
) );
$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'one_elementor_secondary_color', array(
	'label'       => esc_html__( 'Secondary Color', 'one-elementor' ),
	'description' => esc_html__( 'Applied to secondary elements, hover states, etc.', 'one-elementor' ),
	'section'     => 'one_elementor_colors_section',
) ) );

// Heading Color
$wp_customize->add_setting( 'one_elementor_heading_color', array(
	'default'           => '#0A2540',
	'sanitize_callback' => 'sanitize_hex_color',
) );
$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'one_elementor_heading_color', array(
	'label'       => esc_html__( 'Heading Color', 'one-elementor' ),
	'description' => esc_html__( 'Applied to all headings (h1 - h6).', 'one-elementor' ),
	'section'     => 'one_elementor_colors_section',
) ) );

// Text Color
$wp_customize->add_setting( 'one_elementor_text_color', array(
	'default'           => '#696969',
	'sanitize_callback' => 'sanitize_hex_color',
) );
$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'one_elementor_text_color', array(
	'label'       => esc_html__( 'Body Text Color', 'one-elementor' ),
	'description' => esc_html__( 'Applied to standard paragraphs and body text.', 'one-elementor' ),
	'section'     => 'one_elementor_colors_section',
) ) );

// Form / Background Color
$wp_customize->add_setting( 'one_elementor_form_color', array(
	'default'           => '#F6F9FC',
	'sanitize_callback' => 'sanitize_hex_color',
) );
$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'one_elementor_form_color', array(
	'label'       => esc_html__( 'Form & Alt Background Color', 'one-elementor' ),
	'description' => esc_html__( 'Applied to form fields, secondary backgrounds, etc.', 'one-elementor' ),
	'section'     => 'one_elementor_colors_section',
) ) );

// Border Color
$wp_customize->add_setting( 'one_elementor_border_color', array(
	'default'           => '#E6E6E6',
	'sanitize_callback' => 'sanitize_hex_color',
) );
$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'one_elementor_border_color', array(
	'label'       => esc_html__( 'Border Color', 'one-elementor' ),
	'description' => esc_html__( 'Applied to borders, dividers, outlines, etc.', 'one-elementor' ),
	'section'     => 'one_elementor_colors_section',
) ) );
