/*
Theme Name: Enerhorizon
Version: 1.0
*/

* { margin: 0; padding: 0; box-sizing: border-box; }
:root { --primary: #1a73e8; --secondary: #34a853; --dark: #202124; --light: #f8f9fa; --gray: #5f6368; --white: #ffffff; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif; line-height: 1.6; color: var(--dark); background: var(--white); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Header */
header { background: var(--white); box-shadow: 0 2px 10px rgba(0,0,0,0.1); position: fixed; width: 100%; top: 0; z-index: 1000; }
.header-inner { display: flex; justify-content: space-between; align-items: center; padding: 15px 0; }
.logo a { font-size: 24px; font-weight: 700; color: var(--primary); text-decoration: none; }
.logo img { max-height: 50px; }
nav ul { display: flex; list-style: none; gap: 30px; }
nav a { color: var(--dark); text-decoration: none; font-weight: 500; transition: color 0.3s; }
nav a:hover { color: var(--primary); }

/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(0,50,100,0.4), rgba(0,30,60,0.5)), url('https://enerhorizon.com/wp-content/uploads/hero-original.jpg?w=1920&q=80');
    background-size: cover;
    background-position: center bottom;
    color: var(--white);
    padding: 180px 0 120px;
    text-align: center;
}
.hero h1 { font-size: 56px; font-weight: 700; margin-bottom: 20px; }
.hero .tagline { font-size: 28px; font-weight: 300; margin-bottom: 15px; opacity: 0.95; }
.hero .subtitle { font-size: 18px; opacity: 0.85; margin-bottom: 40px; }
.btn { display: inline-block; padding: 15px 40px; border-radius: 5px; text-decoration: none; font-weight: 600; transition: all 0.3s; }
.btn-primary { background: var(--secondary); color: var(--white); }
.btn-primary:hover { background: #2d8f47; transform: translateY(-2px); }

/* Section Styles */
section { padding: 80px 0; }
.section-title { font-size: 42px; text-align: center; margin-bottom: 15px; color: var(--dark); }
.section-subtitle { text-align: center; font-size: 18px; color: var(--gray); margin-bottom: 50px; }

/* Services */
.services { background: var(--light); }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 30px; }
.service-card { background: var(--white); border-radius: 10px; padding: 40px; box-shadow: 0 5px 20px rgba(0,0,0,0.08); transition: transform 0.3s; }
.service-card:hover { transform: translateY(-5px); }
.service-icon { font-size: 48px; margin-bottom: 20px; }
.service-card h3 { font-size: 24px; margin-bottom: 15px; color: var(--primary); }
.service-card p { color: var(--gray); margin-bottom: 20px; }
.service-card ul { list-style: none; margin-bottom: 20px; }
.service-card li { padding: 8px 0; border-bottom: 1px solid #eee; color: var(--dark); }
.service-card li:before { content: "✓ "; color: var(--secondary); margin-right: 10px; }
.tools { background: #f0f7ff; padding: 15px; border-radius: 5px; font-size: 14px; color: var(--gray); }

/* Hot item */
.service-card li.hot-item { color: #e65100; font-weight: 600; background: linear-gradient(90deg, #fff3e0, #ffffff); padding: 10px 15px; border-radius: 8px; border-left: 4px solid #ff6f00; margin: 5px 0; }
@keyframes fire-flicker { 0%, 100% { transform: scale(1); opacity: 1; } 25% { transform: scale(1.1) rotate(-5deg); opacity: 0.9; } 50% { transform: scale(1.2); opacity: 1; } 75% { transform: scale(1.1) rotate(5deg); opacity: 0.9; } }
.service-card li.hot-item .fire { display: inline-block; animation: fire-flicker 1.5s ease-in-out infinite; }
.service-card li.hot-item .hot-text { font-size: 10px; font-weight: bold; color: white; background: linear-gradient(180deg, #ff4500, #dc143c); padding: 2px 6px; border-radius: 3px; margin-left: 5px; vertical-align: middle; box-shadow: 0 2px 4px rgba(255,69,0,0.4); }

/* Projects */
.projects { background: var(--dark); }
.projects .section-title { color: var(--white); }
.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 25px; }
.project-card { background: var(--white); border-radius: 12px; overflow: hidden; transition: all 0.3s; position: relative; min-height: 280px; display: flex; flex-direction: column; }
.project-card:hover { transform: translateY(-5px); box-shadow: 0 15px 40px rgba(0,0,0,0.3); }
.project-bg { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background-size: cover; background-position: center bottom; z-index: 1; }
.project-bg::after { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.85) 100%); }
.project-card .content { position: relative; z-index: 2; padding: 30px; margin-top: auto; color: var(--white); }
.project-card h3 { font-size: 20px; margin-bottom: 10px; color: var(--white); text-shadow: 0 2px 4px rgba(0,0,0,0.3); }
.project-card .location { display: inline-block; background: rgba(255,255,255,0.25); backdrop-filter: blur(10px); color: var(--white); padding: 4px 12px; border-radius: 20px; font-size: 12px; margin-bottom: 15px; font-weight: 500; }
.project-card p { color: rgba(255,255,255,0.9); font-size: 14px; line-height: 1.5; }
.project-card.bess .project-bg { background-image: url('https://images.unsplash.com/photo-1497435334941-8c899ee9e8e9?w=800&q=80'); }
.project-card.wind .project-bg { background-image: url('https://images.unsplash.com/photo-1466611653911-95081537e5b7?w=800&q=80'); }
.project-card.solar .project-bg { background-image: url('https://images.unsplash.com/photo-1508514177221-188b1cf16e9d?w=800&q=80'); }
.project-card.microgrid { background: linear-gradient(135deg, rgba(0,100,150,0.7), rgba(0,50,100,0.7)), url('https://images.unsplash.com/photo-1509391366360-2e959784a276?w=1200&q=80'); background-size: cover; background-position: center bottom; }
.project-card.west-edmonton .project-bg { background-image: url('https://images.unsplash.com/photo-1611365892117-00ac5ef43c90?w=800&q=80'); }

/* About */
.about { background: var(--light); text-align: center; }
.about-text { max-width: 800px; margin: 0 auto; font-size: 20px; color: var(--gray); line-height: 1.8; }

/* Contact */
.contact { background: linear-gradient(135deg, #1a73e8 0%, #0d47a1 100%); color: var(--white); text-align: center; }
.contact .section-title { color: var(--white); }
.contact-info { margin-bottom: 40px; }
.contact-info p { font-size: 18px; margin: 10px 0; }

/* Footer */
footer { background: var(--dark); color: var(--white); padding: 30px 0; text-align: center; }
footer p { opacity: 0.7; }

/* Responsive */
@media (max-width: 768px) {
    .hero h1 { font-size: 36px; }
    .hero .tagline { font-size: 20px; }
    .section-title { font-size: 32px; }
    nav ul { display: flex !important; flex-wrap: wrap; gap: 10px; }
    .services-grid, .projects-grid { grid-template-columns: 1fr; }
}

/* Force header visibility */
header { display: block !important; visibility: visible !important; opacity: 1 !important; }
nav { display: flex !important; visibility: visible !important; }
nav ul { display: flex !important; gap: 20px !important; }
nav ul li { display: list-item !important; }

/* Debug header */
header {
    background: #ffffff !important;
    border-bottom: 3px solid #1a73e8 !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2) !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 9999 !important;
    padding: 10px 20px !important;
}
header * { visibility: visible !important; display: block !important; }

/* Mobile Responsive */
@media (max-width: 768px) {
    .header-inner { flex-wrap: wrap; justify-content: center; gap: 10px; }
    .logo { text-align: center; }
    nav { width: 100%; justify-content: center; }
    nav ul { 
        display: flex !important; 
        flex-wrap: wrap; 
        justify-content: center; 
        gap: 8px; 
        padding: 10px 0;
    }
    nav ul li { margin: 2px; }
    nav a { font-size: 14px; padding: 5px 10px; }
    .lang-switcher { margin-left: 5px; }
    .lang-switcher a { font-size: 11px; padding: 3px 6px; }
    .hero { padding: 120px 0 80px; }
    .hero h1 { font-size: 28px; }
    .hero .tagline { font-size: 18px; }
    .services-grid, .projects-grid { grid-template-columns: 1fr; }
    .service-card, .project-card { min-height: auto; padding: 20px; }
}
