<?php 
/**
 * About Section
 *
 * @package go-mechanic
 */
    
$wp_customize->add_section( 'go_mechanic_about_section' , array(
    'title'      => esc_html__( 'About Section', 'go-mechanic' ),
    'capability' => 'edit_theme_options',
    'panel' => 'go_mechanic_option_section_panel' 
) );

// About Header
$wp_customize->add_setting('go_mechanic_about_header', 
    array(
        'default'           => esc_html__('ABOUT US', 'go-mechanic'),
        'type'              => 'theme_mod',
        'capability'        => 'edit_theme_options',	
        'sanitize_callback' => 'sanitize_text_field'
    )
);
$wp_customize->add_control('go_mechanic_about_header', 
    array(
        'label'       => __('About Header', 'go-mechanic'),
        'section'     => 'go_mechanic_about_section',   
        'settings'    => 'go_mechanic_about_header',		
        'type'        => 'text'
    )
);

// Main Heading
$wp_customize->add_setting('go_mechanic_subheading_text', 
    array(
        'default'           => esc_html__('A modern garage built on trust, skill, and speed', 'go-mechanic'),
        'type'              => 'theme_mod',
        'capability'        => 'edit_theme_options',	
        'sanitize_callback' => 'sanitize_text_field'
    )
);
$wp_customize->add_control('go_mechanic_subheading_text', 
    array(
        'label'       => __('Main Heading', 'go-mechanic'),
        'section'     => 'go_mechanic_about_section',   
        'settings'    => 'go_mechanic_subheading_text',		
        'type'        => 'text'
    )
);

// Description Text
$wp_customize->add_setting('go_mechanic_text', 
    array(
        'default'           => esc_html__('We combine experienced technicians with up-to-date tools to deliver repairs that last—without the guesswork.', 'go-mechanic'),
        'type'              => 'theme_mod',
        'capability'        => 'edit_theme_options',	
        'sanitize_callback' => 'sanitize_text_field'
    )
);
$wp_customize->add_control('go_mechanic_text', 
    array(
        'label'       => __('Description', 'go-mechanic'),
        'section'     => 'go_mechanic_about_section',   
        'settings'    => 'go_mechanic_text',		
        'type'        => 'textarea'
    )
);

// Statistics Section
// Stat 1
$wp_customize->add_setting('go_mechanic_statfirst_icon', 
    array(
        'default'           => esc_html__('fa-solid fa-shield-halved', 'go-mechanic'),
        'type'              => 'theme_mod',
        'sanitize_callback' => 'sanitize_text_field'
    )
);
$wp_customize->add_control('go_mechanic_statfirst_icon', 
    array(
        'label'       => __('Statistic 1 Icon (Font Awesome class)', 'go-mechanic'),
        'description' => __('Enter Font Awesome icon class, e.g., fa-solid fa-shield-halved', 'go-mechanic'),
        'section'     => 'go_mechanic_about_section',
        'type'        => 'text'
    )
);

$wp_customize->add_setting('go_mechanic_statfirst_label', 
    array(
        'default'           => esc_html__('Experience', 'go-mechanic'),
        'type'              => 'theme_mod',
        'sanitize_callback' => 'sanitize_text_field'
    )
);
$wp_customize->add_control('go_mechanic_statfirst_label', 
    array(
        'label'       => __('Statistic 1 Label', 'go-mechanic'),
        'section'     => 'go_mechanic_about_section',
        'type'        => 'text'
    )
);

$wp_customize->add_setting('go_mechanic_statfirst_value', 
    array(
        'default'           => esc_html__('18+ Years', 'go-mechanic'),
        'type'              => 'theme_mod',
        'sanitize_callback' => 'sanitize_text_field'
    )
);
$wp_customize->add_control('go_mechanic_statfirst_value', 
    array(
        'label'       => __('Statistic 1 Value', 'go-mechanic'),
        'section'     => 'go_mechanic_about_section',
        'type'        => 'text'
    )
);

// Stat 2
$wp_customize->add_setting('go_mechanic_statsecond_icon', 
    array(
        'default'           => esc_html__('fa-solid fa-users', 'go-mechanic'),
        'type'              => 'theme_mod',
        'sanitize_callback' => 'sanitize_text_field'
    )
);
$wp_customize->add_control('go_mechanic_statsecond_icon', 
    array(
        'label'       => __('Statistic 2 Icon (Font Awesome class)', 'go-mechanic'),
        'description' => __('Enter Font Awesome icon class, e.g., fa-solid fa-users', 'go-mechanic'),
        'section'     => 'go_mechanic_about_section',
        'type'        => 'text'
    )
);

$wp_customize->add_setting('go_mechanic_statsecond_label', 
    array(
        'default'           => esc_html__('Customers', 'go-mechanic'),
        'type'              => 'theme_mod',
        'sanitize_callback' => 'sanitize_text_field'
    )
);
$wp_customize->add_control('go_mechanic_statsecond_label', 
    array(
        'label'       => __('Statistic 2 Label', 'go-mechanic'),
        'section'     => 'go_mechanic_about_section',
        'type'        => 'text'
    )
);

$wp_customize->add_setting('go_mechanic_statsecond_value', 
    array(
        'default'           => esc_html__('12K+', 'go-mechanic'),
        'type'              => 'theme_mod',
        'sanitize_callback' => 'sanitize_text_field'
    )
);
$wp_customize->add_control('go_mechanic_statsecond_value', 
    array(
        'label'       => __('Statistic 2 Value', 'go-mechanic'),
        'section'     => 'go_mechanic_about_section',
        'type'        => 'text'
    )
);

// Stat 3
$wp_customize->add_setting('go_mechanic_statthird_icon', 
    array(
        'default'           => esc_html__('fa-solid fa-wrench', 'go-mechanic'),
        'type'              => 'theme_mod',
        'sanitize_callback' => 'sanitize_text_field'
    )
);
$wp_customize->add_control('go_mechanic_statthird_icon', 
    array(
        'label'       => __('Statistic 3 Icon (Font Awesome class)', 'go-mechanic'),
        'description' => __('Enter Font Awesome icon class, e.g., fa-solid fa-wrench', 'go-mechanic'),
        'section'     => 'go_mechanic_about_section',
        'type'        => 'text'
    )
);

$wp_customize->add_setting('go_mechanic_statthird_label', 
    array(
        'default'           => esc_html__('Repairs', 'go-mechanic'),
        'type'              => 'theme_mod',
        'sanitize_callback' => 'sanitize_text_field'
    )
);
$wp_customize->add_control('go_mechanic_statthird_label', 
    array(
        'label'       => __('Statistic 3 Label', 'go-mechanic'),
        'section'     => 'go_mechanic_about_section',
        'type'        => 'text'
    )
);

$wp_customize->add_setting('go_mechanic_statthird_value', 
    array(
        'default'           => esc_html__('28K+', 'go-mechanic'),
        'type'              => 'theme_mod',
        'sanitize_callback' => 'sanitize_text_field'
    )
);
$wp_customize->add_control('go_mechanic_statthird_value', 
    array(
        'label'       => __('Statistic 3 Value', 'go-mechanic'),
        'section'     => 'go_mechanic_about_section',
        'type'        => 'text'
    )
);

// Feature Cards Section
// Feature 1
$wp_customize->add_setting('go_mechanic_featurefirst_icon', 
    array(
        'default'           => esc_html__('fa-solid fa-magnifying-glass', 'go-mechanic'),
        'type'              => 'theme_mod',
        'sanitize_callback' => 'sanitize_text_field'
    )
);
$wp_customize->add_control('go_mechanic_featurefirst_icon', 
    array(
        'label'       => __('Feature 1 Icon (Font Awesome class)', 'go-mechanic'),
        'description' => __('Enter Font Awesome icon class, e.g., fa-solid fa-magnifying-glass', 'go-mechanic'),
        'section'     => 'go_mechanic_about_section',
        'type'        => 'text'
    )
);

$wp_customize->add_setting('go_mechanic_featurefirst_title', 
    array(
        'default'           => esc_html__('Diagnose precisely', 'go-mechanic'),
        'type'              => 'theme_mod',
        'sanitize_callback' => 'sanitize_text_field'
    )
);
$wp_customize->add_control('go_mechanic_featurefirst_title', 
    array(
        'label'       => __('Feature 1 Title', 'go-mechanic'),
        'section'     => 'go_mechanic_about_section',
        'type'        => 'text'
    )
);

$wp_customize->add_setting('go_mechanic_featurefirst_text', 
    array(
        'default'           => esc_html__('We start with data-backed diagnostics so we fix the root cause—not just the symptom.', 'go-mechanic'),
        'type'              => 'theme_mod',
        'sanitize_callback' => 'sanitize_text_field'
    )
);
$wp_customize->add_control('go_mechanic_featurefirst_text', 
    array(
        'label'       => __('Feature 1 Text', 'go-mechanic'),
        'section'     => 'go_mechanic_about_section',
        'type'        => 'text'
    )
);

// Feature 2
$wp_customize->add_setting('go_mechanic_featuresecond_icon', 
    array(
        'default'           => esc_html__('fa-solid fa-file-invoice', 'go-mechanic'),
        'type'              => 'theme_mod',
        'sanitize_callback' => 'sanitize_text_field'
    )
);
$wp_customize->add_control('go_mechanic_featuresecond_icon', 
    array(
        'label'       => __('Feature 2 Icon (Font Awesome class)', 'go-mechanic'),
        'description' => __('Enter Font Awesome icon class, e.g., fa-solid fa-file-invoice', 'go-mechanic'),
        'section'     => 'go_mechanic_about_section',
        'type'        => 'text'
    )
);

$wp_customize->add_setting('go_mechanic_featuresecond_title', 
    array(
        'default'           => esc_html__('Quote transparently', 'go-mechanic'),
        'type'              => 'theme_mod',
        'sanitize_callback' => 'sanitize_text_field'
    )
);
$wp_customize->add_control('go_mechanic_featuresecond_title', 
    array(
        'label'       => __('Feature 2 Title', 'go-mechanic'),
        'section'     => 'go_mechanic_about_section',
        'type'        => 'text'
    )
);

$wp_customize->add_setting('go_mechanic_featuresecond_text', 
    array(
        'default'           => esc_html__('Clear estimates with options. You approve the work before we begin.', 'go-mechanic'),
        'type'              => 'theme_mod',
        'sanitize_callback' => 'sanitize_text_field'
    )
);
$wp_customize->add_control('go_mechanic_featuresecond_text', 
    array(
        'label'       => __('Feature 2 Text', 'go-mechanic'),
        'section'     => 'go_mechanic_about_section',
        'type'        => 'text'
    )
);

// Feature 3
$wp_customize->add_setting('go_mechanic_featurethird_icon', 
    array(
        'default'           => esc_html__('fa-solid fa-toolbox', 'go-mechanic'),
        'type'              => 'theme_mod',
        'sanitize_callback' => 'sanitize_text_field'
    )
);
$wp_customize->add_control('go_mechanic_featurethird_icon', 
    array(
        'label'       => __('Feature 3 Icon (Font Awesome class)', 'go-mechanic'),
        'description' => __('Enter Font Awesome icon class, e.g., fa-solid fa-toolbox', 'go-mechanic'),
        'section'     => 'go_mechanic_about_section',
        'type'        => 'text'
    )
);

$wp_customize->add_setting('go_mechanic_featurethird_title', 
    array(
        'default'           => esc_html__('Repair with care', 'go-mechanic'),
        'type'              => 'theme_mod',
        'sanitize_callback' => 'sanitize_text_field'
    )
);
$wp_customize->add_control('go_mechanic_featurethird_title', 
    array(
        'label'       => __('Feature 3 Title', 'go-mechanic'),
        'section'     => 'go_mechanic_about_section',
        'type'        => 'text'
    )
);

$wp_customize->add_setting('go_mechanic_featurethird_text', 
    array(
        'default'           => esc_html__('Quality parts, certified hands, and checks that ensure your car leaves in better condition.', 'go-mechanic'),
        'type'              => 'theme_mod',
        'sanitize_callback' => 'sanitize_text_field'
    )
);
$wp_customize->add_control('go_mechanic_featurethird_text', 
    array(
        'label'       => __('Feature 3 Text', 'go-mechanic'),
        'section'     => 'go_mechanic_about_section',
        'type'        => 'text'
    )
);

// Feature 4
$wp_customize->add_setting('go_mechanic_featurefourth_icon', 
    array(
        'default'           => esc_html__('fa-solid fa-shield', 'go-mechanic'),
        'type'              => 'theme_mod',
        'sanitize_callback' => 'sanitize_text_field'
    )
);
$wp_customize->add_control('go_mechanic_featurefourth_icon', 
    array(
        'label'       => __('Feature 4 Icon (Font Awesome class)', 'go-mechanic'),
        'description' => __('Enter Font Awesome icon class, e.g., fa-solid fa-shield', 'go-mechanic'),
        'section'     => 'go_mechanic_about_section',
        'type'        => 'text'
    )
);

$wp_customize->add_setting('go_mechanic_featurefourth_title', 
    array(
        'default'           => esc_html__('Stand behind it', 'go-mechanic'),
        'type'              => 'theme_mod',
        'sanitize_callback' => 'sanitize_text_field'
    )
);
$wp_customize->add_control('go_mechanic_featurefourth_title', 
    array(
        'label'       => __('Feature 4 Title', 'go-mechanic'),
        'section'     => 'go_mechanic_about_section',
        'type'        => 'text'
    )
);

$wp_customize->add_setting('go_mechanic_featurefourth_text', 
    array(
        'default'           => esc_html__('We support our work with warranty-backed repairs and follow-up recommendations.', 'go-mechanic'),
        'type'              => 'theme_mod',
        'sanitize_callback' => 'sanitize_text_field'
    )
);
$wp_customize->add_control('go_mechanic_featurefourth_text', 
    array(
        'label'       => __('Feature 4 Text', 'go-mechanic'),
        'section'     => 'go_mechanic_about_section',
        'type'        => 'text'
    )
);

// Main Image
$wp_customize->add_setting( 'go_mechanic_about_bigimage', array(  
    'type'              => 'theme_mod',
    'sanitize_callback' => 'go_mechanic_sanitise_custom_url'
    ));
$wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'go_mechanic_about_bigimage', array(
        'label'      => __( 'Main Image', 'go-mechanic' ),
        'section'    => 'go_mechanic_about_section',
        'settings'   => 'go_mechanic_about_bigimage',
)));
