
# Create Astra child theme files for Welookup Insights

# style.css - Main stylesheet with theme information
style_css = """/*
Theme Name: Welookup Insights - Astra Child
Theme URI: https://welookupinsights.com
Description: Professional child theme for Welookup Insights data analytics consulting
Author: Your Name
Author URI: https://welookupinsights.com
Template: astra
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: welookup-insights-child
*/

/* ===========================
   Color Palette (Inspired by professional corporate design)
   =========================== */
:root {
    --primary-color: #003366;      /* Deep blue */
    --secondary-color: #0066CC;    /* Bright blue */
    --accent-color: #FF6B35;       /* Orange accent */
    --text-dark: #1a1a1a;
    --text-light: #666666;
    --background-light: #f8f9fa;
    --white: #ffffff;
}

/* ===========================
   Typography
   =========================== */
body {
    font-family: 'Inter', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-dark);
    line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

h1 {
    font-size: 3rem;
    line-height: 1.2;
}

h2 {
    font-size: 2.25rem;
}

h3 {
    font-size: 1.75rem;
}

/* ===========================
   Hero Section
   =========================== */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 100px 0;
    text-align: center;
}

.hero-section h1 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 3.5rem;
}

.hero-section p {
    font-size: 1.25rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* ===========================
   Buttons
   =========================== */
.btn-primary {
    background-color: var(--accent-color);
    color: var(--white);
    padding: 15px 35px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: #e55a2b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 13px 35px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* ===========================
   Service Cards
   =========================== */
.services-section {
    padding: 80px 0;
    background-color: var(--background-light);
}

.service-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    margin-bottom: 30px;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.service-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.service-card p {
    color: var(--text-light);
    line-height: 1.8;
}

/* ===========================
   Stats Section
   =========================== */
.stats-section {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
}

.stat-item {
    padding: 20px;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-color);
    display: block;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
}

/* ===========================
   Navigation
   =========================== */
.main-header-menu a {
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
}

.main-header-menu a:hover {
    color: var(--secondary-color);
}

/* ===========================
   Footer
   =========================== */
.site-footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 60px 0 30px;
}

.site-footer a {
    color: var(--white);
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.site-footer a:hover {
    opacity: 1;
}

/* ===========================
   Featured Solution Section
   =========================== */
.featured-solution {
    padding: 80px 0;
    background: linear-gradient(135deg, rgba(0, 51, 102, 0.05) 0%, rgba(0, 102, 204, 0.05) 100%);
}

.featured-solution h2 {
    margin-bottom: 30px;
}

.featured-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

@media (max-width: 768px) {
    .featured-content {
        grid-template-columns: 1fr;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
}

/* ===========================
   Utility Classes
   =========================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center {
    text-align: center;
}

.mb-4 {
    margin-bottom: 2rem;
}

.mt-4 {
    margin-top: 2rem;
}
"""

# functions.php - Child theme functions
functions_php = """<?php
/**
 * Welookup Insights Child Theme Functions
 */

// Exit if accessed directly
if ( ! defined( 'ABSPATH' ) ) {
    exit;
}

/**
 * Enqueue parent and child theme styles
 */
function welookup_insights_enqueue_styles() {
    // Enqueue parent theme stylesheet
    wp_enqueue_style( 'astra-parent-style', get_template_directory_uri() . '/style.css' );
    
    // Enqueue child theme stylesheet
    wp_enqueue_style( 
        'welookup-insights-child-style',
        get_stylesheet_directory_uri() . '/style.css',
        array( 'astra-parent-style' ),
        wp_get_theme()->get('Version')
    );
    
    // Enqueue Google Fonts
    wp_enqueue_style( 
        'welookup-google-fonts',
        'https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap',
        array(),
        null
    );
}
add_action( 'wp_enqueue_scripts', 'welookup_insights_enqueue_styles', 15 );

/**
 * Customize Astra theme settings
 */
function welookup_insights_customize_astra() {
    // Set primary color
    set_theme_mod( 'accent_color', '#FF6B35' );
    
    // Enable header colors
    set_theme_mod( 'header_bg_obj', array(
        'background-color' => '#ffffff',
    ));
}
add_action( 'after_setup_theme', 'welookup_insights_customize_astra' );

/**
 * Add custom widget areas
 */
function welookup_insights_widgets_init() {
    register_sidebar( array(
        'name'          => __( 'Footer Column 1', 'welookup-insights-child' ),
        'id'            => 'footer-1',
        'description'   => __( 'Add widgets for footer column 1', 'welookup-insights-child' ),
        'before_widget' => '<div class="footer-widget">',
        'after_widget'  => '</div>',
        'before_title'  => '<h3 class="footer-widget-title">',
        'after_title'   => '</h3>',
    ));
    
    register_sidebar( array(
        'name'          => __( 'Footer Column 2', 'welookup-insights-child' ),
        'id'            => 'footer-2',
        'description'   => __( 'Add widgets for footer column 2', 'welookup-insights-child' ),
        'before_widget' => '<div class="footer-widget">',
        'after_widget'  => '</div>',
        'before_title'  => '<h3 class="footer-widget-title">',
        'after_title'   => '</h3>',
    ));
    
    register_sidebar( array(
        'name'          => __( 'Footer Column 3', 'welookup-insights-child' ),
        'id'            => 'footer-3',
        'description'   => __( 'Add widgets for footer column 3', 'welookup-insights-child' ),
        'before_widget' => '<div class="footer-widget">',
        'after_widget'  => '</div>',
        'before_title'  => '<h3 class="footer-widget-title">',
        'after_title'   => '</h3>',
    ));
}
add_action( 'widgets_init', 'welookup_insights_widgets_init' );

/**
 * Add custom shortcode for stats section
 */
function welookup_stats_shortcode( $atts ) {
    $atts = shortcode_atts( array(
        'number' => '100',
        'label' => 'Clients Served',
    ), $atts );
    
    return '<div class="stat-item">
                <span class="stat-number">' . esc_html( $atts['number'] ) . '</span>
                <span class="stat-label">' . esc_html( $atts['label'] ) . '</span>
            </div>';
}
add_shortcode( 'stat', 'welookup_stats_shortcode' );
"""

# README.md - Installation instructions
readme_md = """# Welookup Insights - Astra Child Theme

A professional WordPress child theme for Welookup Insights data analytics consulting business, built on the Astra theme framework.

## Features

- Clean, modern design inspired by professional corporate websites
- Fully responsive and mobile-friendly
- Custom color scheme with primary blues and orange accent
- Pre-styled components for services, stats, and hero sections
- Custom shortcodes for stats display
- Three footer widget areas
- Google Fonts integration (Inter font family)
- Optimized for performance and SEO

## Installation

1. **Prerequisites:**
   - WordPress 5.0 or higher
   - Astra theme (parent theme) must be installed and activated

2. **Install the child theme:**
   - Upload the `welookup-insights-child` folder to `/wp-content/themes/`
   - Go to Appearance > Themes in WordPress admin
   - Activate "Welookup Insights - Astra Child"

3. **Recommended plugins:**
   - Elementor or Gutenberg for page building
   - Astra Pro (optional, for additional features)
   - Contact Form 7 for forms

## Customization

### Colors
Edit the CSS variables in `style.css`:
```css
:root {
    --primary-color: #003366;
    --secondary-color: #0066CC;
    --accent-color: #FF6B35;
}
```

### Shortcodes

**Stats Display:**
```
[stat number="50+" label="Expert Consultants"]
[stat number="4" label="Global Markets"]
[stat number="100+" label="SMBs Served"]
```

## Support

For support and customization inquiries, visit: https://welookupinsights.com

## License

This theme is licensed under the GPL v2 or later.
"""

# Save files
with open('style.css', 'w', encoding='utf-8') as f:
    f.write(style_css)

with open('functions.php', 'w', encoding='utf-8') as f:
    f.write(functions_php)

with open('README.md', 'w', encoding='utf-8') as f:
    f.write(readme_md)

print("✅ Astra child theme files created successfully!")
print("\nFiles created:")
print("1. style.css - Main stylesheet with custom styling")
print("2. functions.php - Theme functions and customizations")
print("3. README.md - Installation and usage instructions")
print("\n📁 Upload these files to: /wp-content/themes/welookup-insights-child/")
