/* =========================================
   1. CSS Variables & Reset
   ========================================= */
:root {
    --primary: #0f172a;       /* Slate 900 - Professional Dark */
    --primary-light: #1e293b; /* Slate 800 */
    --accent: #f59e0b;        /* Amber 500 - Electrician/Energy */
    --accent-hover: #d97706;  /* Amber 600 */
    --text-dark: #0f172a;
    --text-body: #475569;     /* Slate 600 */
    --bg-light: #f8fafc;      /* Slate 50 */
    --white: #ffffff;
    --border: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --radius: 8px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.7;
    color: var(--text-body);
    background-color: var(--bg-light);
    -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-hover); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary); }

.container { width: 90%; max-width: 1200px; margin: 0 auto; padding: 0 1rem; }

/* =========================================
   2. Typography & Buttons
   ========================================= */
h1, h2, h3, h4 { color: var(--text-dark); line-height: 1.3; font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 1.5rem; }
h2 { font-size: 1.875rem; margin-top: 2.5rem; margin-bottom: 1rem; position: relative; padding-left: 1rem; }
h2::before { content: ''; position: absolute; left: 0; top: 0.25rem; bottom: 0.25rem; width: 4px; background: var(--accent); border-radius: 2px; }
h3 { font-size: 1.25rem; margin-bottom: 0.75rem; }
p { margin-bottom: 1.25rem; font-size: 1.05rem; }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    padding: 0.875rem 1.75rem; border-radius: var(--radius); font-weight: 600;
    cursor: pointer; transition: var(--transition); border: 2px solid transparent; font-size: 1rem;
}
.btn-primary { background: var(--accent); color: var(--primary); border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--white); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.5); }
.btn-outline:hover { background: var(--white); color: var(--primary); border-color: var(--white); }
.btn-accent { background: var(--primary); color: var(--white); }
.btn-accent:hover { background: var(--primary-light); color: var(--white); transform: translateY(-2px); }
.btn-large { padding: 1rem 2rem; font-size: 1.125rem; width: 100%; text-align: center; }
.full-width { width: 100%; margin-bottom: 0.75rem; }

/* =========================================
   3. Top Bar & Header
   ========================================= */
.top-bar { background: var(--primary); color: var(--white); padding: 0.5rem 0; font-size: 0.875rem; }
.top-bar-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.5rem; }
.top-bar-phone { color: var(--accent); font-weight: 700; }
.top-bar-phone:hover { color: var(--white); }

.site-header { background: var(--white); box-shadow: var(--shadow-sm); position: sticky; top: 0; z-index: 1000; }
.header-inner { display: flex; justify-content: space-between; align-items: center; padding: 1rem 0; }
.logo { font-size: 1.5rem; font-weight: 800; color: var(--primary); text-decoration: none; }
.logo span { color: var(--accent); }

.nav-list { list-style: none; display: flex; gap: 2rem; align-items: center; }
.nav-list a { color: var(--text-dark); font-weight: 500; font-size: 0.95rem; }
.nav-list a:hover { color: var(--accent-hover); }
.mobile-menu-toggle { display: none; background: none; border: none; font-size: 1.75rem; cursor: pointer; color: var(--primary); }

/* =========================================
   4. Hero Section
   ========================================= */
.hero-section {
    background: linear-gradient(135deg, var(--primary) 0%, #1e3a8a 100%);
    color: var(--white); padding: 4rem 0 5rem; text-align: center;
}
.hero-badge {
    display: inline-block; background: rgba(245, 158, 11, 0.2); color: var(--accent);
    padding: 0.375rem 1rem; border-radius: 99px; font-size: 0.875rem; font-weight: 600;
    margin-bottom: 1.5rem; border: 1px solid rgba(245, 158, 11, 0.3);
}
.hero-content h1 { color: var(--white); }
.hero-content p { color: rgba(255,255,255,0.85); font-size: 1.2rem; max-width: 700px; margin: 0 auto 2rem; }
.hero-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 2.5rem; }
.hero-trust { display: flex; gap: 2rem; justify-content: center; flex-wrap: wrap; font-size: 0.9rem; color: rgba(255,255,255,0.7); font-weight: 500; }

/* =========================================
   5. Content Layout (Article + Sidebar)
   ========================================= */
.content-layout {
    display: grid; grid-template-columns: 1fr 320px; gap: 3rem;
    margin-top: -3rem; position: relative; z-index: 10; padding-bottom: 4rem;
}

.article-column {
    background: var(--white); padding: 2.5rem; border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}
.article-column a { font-weight: 600; text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }

/* Sticky Sidebar */
.sidebar-column { position: relative; }
.sticky-card {
    position: sticky; top: 100px; background: var(--white); padding: 2rem;
    border-radius: var(--radius); box-shadow: var(--shadow-lg); border-top: 4px solid var(--accent);
}
.sticky-card h3 { margin-bottom: 0.75rem; font-size: 1.25rem; }
.sticky-card p { font-size: 0.95rem; margin-bottom: 1.5rem; }
.sidebar-contact { margin-bottom: 1.5rem; }
.sidebar-item { display: flex; align-items: flex-start; gap: 0.75rem; margin-bottom: 1rem; font-size: 0.95rem; }
.sidebar-item .icon { font-size: 1.25rem; flex-shrink: 0; }
.sidebar-item a { color: var(--text-dark); font-weight: 600; }
.sidebar-item a:hover { color: var(--accent-hover); }

/* =========================================
   6. Services Section
   ========================================= */
.services-section { background: var(--bg-light); padding: 4rem 0; border-top: 1px solid var(--border); }
.section-header { text-align: center; max-width: 600px; margin: 0 auto 3rem; }
.section-header h2 { padding-left: 0; }
.section-header h2::before { display: none; }
.section-header p { font-size: 1.1rem; }

.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.service-card {
    background: var(--white); padding: 2rem; border-radius: var(--radius);
    box-shadow: var(--shadow-md); transition: var(--transition); border: 1px solid var(--border);
}
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--accent); }
.service-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.service-card h3 { color: var(--primary); }
.service-card p { margin-bottom: 0; font-size: 0.95rem; }

/* =========================================
   7. FAQ Accordion
   ========================================= */
.faq-container { margin-top: 2rem; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 0.75rem; overflow: hidden; background: var(--bg-light); }
.faq-question {
    width: 100%; text-align: left; padding: 1.25rem; background: none; border: none;
    font-size: 1.05rem; font-weight: 600; color: var(--text-dark); cursor: pointer;
    display: flex; justify-content: space-between; align-items: center; transition: var(--transition);
}
.faq-question:hover { background: #f1f5f9; }
.faq-question::after { content: '+'; font-size: 1.5rem; color: var(--accent); font-weight: 300; transition: var(--transition); }
.faq-item.active .faq-question::after { content: '−'; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease-out; padding: 0 1.25rem; }
.faq-item.active .faq-answer { max-height: 300px; padding-bottom: 1.25rem; }
.faq-answer p { margin-bottom: 0; font-size: 0.95rem; }

/* =========================================
   8. Contact Section
   ========================================= */
.contact-section { background: var(--primary); color: var(--white); padding: 4rem 0; }
.contact-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.contact-info h2 { color: var(--white); padding-left: 0; margin-top: 0; }
.contact-info h2::before { display: none; }
.contact-info p { color: rgba(255,255,255,0.8); margin-bottom: 2rem; }
.contact-details { list-style: none; }
.contact-details li { margin-bottom: 1rem; font-size: 1.1rem; display: flex; align-items: center; gap: 0.75rem; }
.contact-details a { color: var(--accent); font-weight: 600; }
.contact-details a:hover { color: var(--white); }
.contact-action { background: var(--primary-light); padding: 2.5rem; border-radius: var(--radius); text-align: center; border: 1px solid rgba(255,255,255,0.1); }
.contact-action h3 { color: var(--white); margin-bottom: 0.5rem; }
.contact-action p { color: rgba(255,255,255,0.7); margin-bottom: 1.5rem; }

/* =========================================
   9. Footer
   ========================================= */
.site-footer { background: #020617; color: rgba(255,255,255,0.6); padding: 3rem 0 1.5rem; font-size: 0.9rem; }
.footer-content { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 2rem; margin-bottom: 2rem; padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-brand h4 { color: var(--white); font-size: 1.25rem; margin-bottom: 0.5rem; }
.footer-brand p { margin-bottom: 0; font-size: 0.9rem; }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { color: rgba(255,255,255,0.8); }
.footer-links a:hover { color: var(--accent); }
.footer-bottom { text-align: center; }

/* =========================================
   10. Responsive Design
   ========================================= */
@media (max-width: 900px) {
    .content-layout { grid-template-columns: 1fr; }
    .sidebar-column { order: -1; margin-bottom: 2rem; }
    .sticky-card { position: static; }
    .contact-wrapper { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .mobile-menu-toggle { display: block; }
    .nav-list {
        display: none; flex-direction: column; position: absolute; top: 100%; left: 0; width: 100%;
        background: var(--white); padding: 1.5rem; box-shadow: var(--shadow-lg); gap: 1.5rem;
        border-top: 1px solid var(--border);
    }
    .nav-list.active { display: flex; }
    .hero-buttons { flex-direction: column; }
    .hero-buttons .btn { width: 100%; }
    .article-column { padding: 1.5rem; }
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
}