/*
Theme Name: TG Electric
Theme URI: https://tgelectric.com
Author: TG Electric
Author URI: https://tgelectric.com
Description: Professional electrical services WordPress theme for TG Electric - Modern, responsive design optimized for electrical contractors
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tg-electric
Tags: business, electrical, contractor, responsive, modern
*/

/* ============================================
   RESET & BASE STYLES
============================================ */

/* ============================================
   SLIDER SECTION
============================================ */
.slider-section {
    margin: 0;
    padding: 0;
    width: 100%;
    max-height: 600px;
    overflow: hidden;
}

.slider-section .metaslider {
    margin: 0 !important;
    max-width: 100% !important;
    max-height: 600px !important;
    border: none !important;
}

.slider-section .flexslider {
    margin: 0 !important;
    border: none !important;
    background: transparent !important;
    max-height: 600px !important;
}

.slider-section .slides img {
    max-height: 600px !important;
    width: 100% !important;
    object-fit: cover !important;
}

@media (max-width: 768px) {
    .slider-section,
    .slider-section .metaslider,
    .slider-section .flexslider {
        max-height: 400px !important;
    }
    
    .slider-section .slides img {
        max-height: 400px !important;
    }
}

/* ============================================
   RESET & BASE STYLES
============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, Helvetica, sans-serif;
    line-height: 1.6;
    color: #e0e0e0;
    background-color: #000000;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ============================================
   CONTAINER & LAYOUT
============================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

/* ============================================
   NAVIGATION
============================================ */
.site-header {
    background: #000000;
    box-shadow: 0 2px 10px rgba(204, 255, 0, 0.2);
    border-bottom: 3px solid #88f100;
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 20px 0;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo {
    font-size: 28px;
    font-weight: bold;
    color: #88f100;
}

.site-logo span {
    color: #BFFF00;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

.main-nav a {
    color: #ffffff;
    font-weight: 500;
    transition: color 0.3s;
}

.main-nav a:hover {
    color: #88f100;
}

.nav-cta {
    background: #88f100;
    color: #000000 !important;
    padding: 10px 25px;
    border-radius: 5px;
    transition: transform 0.3s, box-shadow 0.3s;
    font-weight: 700;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(204, 255, 0, 0.5);
    background: #BFFF00;
}

.mobile-menu-toggle {
    display: none;
    background: #88f100;
    border: none;
    font-size: 28px;
    color: #000000;
    cursor: pointer;
    padding: 5px 15px;
    border-radius: 5px;
}

/* ============================================
   HERO SECTION
============================================ */
.hero-section {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    color: white;
    padding: 120px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(204,255,0,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-section h1 {
    font-size: 56px;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #88f100;
}

.hero-section p {
    font-size: 22px;
    margin-bottom: 40px;
    opacity: 0.95;
    color: #e0e0e0;
}

.btn-primary {
    display: inline-block;
    background: #88f100;
    color: #000000;
    padding: 18px 40px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(204, 255, 0, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(204, 255, 0, 0.5);
    background: #88f100;
}

/* ============================================
   SERVICES SECTION
============================================ */
.services-section {
    background: #000000;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 42px;
    color: #88f100;
    margin-bottom: 15px;
    font-weight: 700;
}

.section-header p {
    font-size: 18px;
    color: #aaaaaa;
    max-width: 700px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.service-card {
    background: #0a0a0a;
    padding: 40px 30px;
    border-radius: 15px;
    border: 2px solid #1a1a1a;
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
    transition: all 0.3s ease;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(204, 255, 0, 0.3);
    border-color: #88f100;
}

.service-icon {
    font-size: 50px;
    margin-bottom: 20px;
    display: block;
}

.service-card h3 {
    font-size: 24px;
    color: #88f100;
    margin-bottom: 15px;
    font-weight: 600;
}

.service-card p {
    color: #aaaaaa;
    line-height: 1.7;
}

/* ============================================
   ABOUT SECTION
============================================ */
.about-section {
    background: #0a0a0a;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h3 {
    font-size: 32px;
    color: #88f100;
    margin-bottom: 20px;
    font-weight: 700;
}

.about-text p {
    font-size: 17px;
    color: #aaaaaa;
    line-height: 1.8;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.stat-box {
    background: #000000;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    border: 2px solid #1a1a1a;
    box-shadow: 0 3px 15px rgba(0,0,0,0.5);
    transition: transform 0.3s;
}

.stat-box:hover {
    transform: scale(1.05);
    border-color: #88f100;
    box-shadow: 0 5px 25px rgba(204, 255, 0, 0.2);
}

.stat-number {
    font-size: 42px;
    font-weight: 800;
    color: #88f100;
    margin-bottom: 10px;
    display: block;
}

.stat-label {
    color: #aaaaaa;
    font-size: 16px;
    font-weight: 500;
}

/* ============================================
   WHY CHOOSE US SECTION
============================================ */
.why-choose-section {
    background: #000000;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.feature-item {
    text-align: center;
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #88f100, #88f100);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 35px;
    color: #000000;
}

.feature-item h3 {
    font-size: 22px;
    color: #88f100;
    margin-bottom: 12px;
    font-weight: 600;
}

.feature-item p {
    color: #aaaaaa;
    line-height: 1.6;
}

/* ============================================
   CONTACT SECTION
============================================ */
.contact-section {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    color: white;
    border-top: 3px solid #88f100;
}

.contact-section .section-header h2,
.contact-section .section-header p {
    color: white;
}

.contact-section .section-header h2 {
    color: #88f100;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 50px;
}

.contact-info-item {
    display: flex;
    align-items: start;
    margin-bottom: 25px;
    gap: 15px;
}

.contact-icon {
    font-size: 24px;
    margin-top: 3px;
    color: #88f100;
}

.contact-info-item h4 {
    font-size: 18px;
    margin-bottom: 5px;
    font-weight: 600;
    color: #88f100;
}

.contact-info-item p {
    opacity: 0.9;
    color: #e0e0e0;
}

.contact-form {
    background: rgba(26, 26, 26, 0.5);
    padding: 40px;
    border-radius: 15px;
    border: 2px solid #1a1a1a;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #88f100;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #333333;
    border-radius: 8px;
    background: #0a0a0a;
    color: white;
    font-size: 16px;
    transition: all 0.3s;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #666666;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #88f100;
    box-shadow: 0 0 10px rgba(204, 255, 0, 0.3);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-submit {
    width: 100%;
    background: #88f100;
    color: #000000;
    padding: 18px;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(204, 255, 0, 0.5);
    background: #88f100;
}

/* ============================================
   CONTACT FORM 7 STYLING
============================================ */
.contact-form .wpcf7 {
    width: 100%;
}

.contact-form .wpcf7-form p {
    margin-bottom: 20px;
}

.contact-form .wpcf7-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #88f100;
}

.contact-form .wpcf7-form input[type="text"],
.contact-form .wpcf7-form input[type="email"],
.contact-form .wpcf7-form input[type="tel"],
.contact-form .wpcf7-form textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #333333;
    border-radius: 8px;
    background: #0a0a0a;
    color: white;
    font-size: 16px;
    transition: all 0.3s;
}

.contact-form .wpcf7-form input::placeholder,
.contact-form .wpcf7-form textarea::placeholder {
    color: #666666;
}

.contact-form .wpcf7-form input:focus,
.contact-form .wpcf7-form textarea:focus {
    outline: none;
    border-color: #88f100;
    box-shadow: 0 0 10px rgba(204, 255, 0, 0.3);
}

.contact-form .wpcf7-form textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form .wpcf7-submit {
    width: 100%;
    background: #88f100;
    color: #000000;
    padding: 18px;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.contact-form .wpcf7-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(204, 255, 0, 0.5);
    background: #88f100;
}

.contact-form .wpcf7-not-valid-tip {
    color: #88f100;
    font-size: 14px;
    margin-top: 5px;
}

.contact-form .wpcf7-response-output {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    background: #0a0a0a;
    border: 2px solid #333333;
    color: white;
}

.contact-form .wpcf7-validation-errors {
    border-color: #ff6b6b;
}

.contact-form .wpcf7-mail-sent-ok {
    border-color: #88f100;
    background: rgba(204, 255, 0, 0.1);
}

/* ============================================
   FOOTER
============================================ */
.site-footer {
    background: #000000;
    color: white;
    padding: 40px 0 20px;
    text-align: center;
    border-top: 3px solid #88f100;
}

.footer-content {
    margin-bottom: 20px;
}

.footer-content p {
    opacity: 0.8;
    margin: 5px 0;
    color: #e0e0e0;
}

.footer-bottom {
    border-top: 1px solid rgba(204, 255, 0, 0.2);
    padding-top: 20px;
    opacity: 0.7;
    font-size: 14px;
}

/* ============================================
   RESPONSIVE DESIGN
============================================ */
@media (max-width: 968px) {
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #000000;
        border-bottom: 2px solid #88f100;
        box-shadow: 0 5px 15px rgba(0,0,0,0.5);
        padding: 20px;
    }
    
    .main-nav.active {
        display: block;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 15px;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .hero-section h1 {
        font-size: 38px;
    }
    
    .hero-section p {
        font-size: 18px;
    }
    
    .contact-content,
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    section {
        padding: 60px 0;
    }
}

@media (max-width: 640px) {
    .hero-section {
        padding: 80px 0;
    }
    
    .hero-section h1 {
        font-size: 32px;
    }
    
    .section-header h2 {
        font-size: 32px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-form {
        padding: 30px 20px;
    }
}

/* ============================================
   UTILITY CLASSES
============================================ */
.text-center {
    text-align: center;
}

.mb-20 {
    margin-bottom: 20px;
}

.mb-40 {
    margin-bottom: 40px;
}

.mt-40 {
    margin-top: 40px;
}
