:root {
    /* Pro Palette */
    --primary: #0056b3;
    /* Work Blue */
    --secondary: #ffc107;
    /* Safety Yellow */
    --accent: #dc3545;
    /* Emergency Red */
    --bg-body: #f8f9fa;
    --bg-card: #ffffff;
    --text-main: #212529;
    --text-muted: #6c757d;

    /* Typography */
    --font-heading: 'Roboto Condensed', sans-serif;
    --font-body: 'Roboto', sans-serif;

    /* Spacing */
    --container-width: 1100px;
    --header-height: 80px;

    /* UI */
    --radius: 4px;
    --shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

[data-theme="electrician"] {
    --primary: #ffc107;
    /* Electric Yellow */
    --secondary: #212529;
    /* Dark Grey */
    --accent: #fd7e14;
    /* Orange */
    --bg-body: #212529;
    --bg-card: #343a40;
    --text-main: #f8f9fa;
    --text-muted: #adb5bd;
}

[data-theme="construction"] {
    --primary: #e65100;
    /* Brick Orange */
    --secondary: #3e2723;
    /* Earth Brown */
    --accent: #ffab00;
    /* Amber */
    --bg-body: #fff3e0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
}

/* Header */
header {
    height: var(--header-height);
    background: var(--bg-card);
    border-bottom: 3px solid var(--secondary);
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

.nav-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
}

.btn-emergency {
    background: var(--accent);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(220, 53, 69, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0);
    }
}

/* Hero */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('https://images.unsplash.com/photo-1621905251189-08b45d6a269e?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 6rem 0;
    text-align: center;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    font-weight: 300;
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.btn-primary {
    background: var(--primary);
    color: white;
    padding: 0.8rem 2rem;
    text-decoration: none;
    font-weight: 700;
    border-radius: var(--radius);
}

/* Services */
.services {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--bg-card);
    padding: 2rem;
    border-left: 5px solid var(--secondary);
    box-shadow: var(--shadow);
    transition: transform 0.2s;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
    display: block;
}

/* Why Choose Us */
.features {
    background: var(--primary);
    color: white;
    padding: 4rem 0;
}

.feature-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 2rem;
    text-align: center;
}

.feature-item {
    flex: 1;
    min-width: 200px;
}

.feature-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--secondary);
    display: block;
}

/* Contact Form */
.contact {
    padding: 5rem 0;
}

.contact-box {
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg-card);
    padding: 2rem;
    box-shadow: var(--shadow);
    border-top: 5px solid var(--primary);
}

.form-group {
    margin-bottom: 1rem;
}

.form-control {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    background: var(--bg-body);
    color: var(--text-main);
}

.btn-submit {
    width: 100%;
    padding: 1rem;
    background: var(--secondary);
    color: var(--text-main);
    border: none;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
}

/* Footer */
footer {
    background: #212529;
    color: #adb5bd;
    padding: 3rem 0;
    text-align: center;
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .nav-links {
        display: none;
    }

    .hero-btns {
        flex-direction: column;
    }
}