/* CSS Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #f9a602;        /* electrician yellow */
  --dark: #111;
  --light: #fefefe;
  --gray: #555;
  --bg: #f5f5f5;
  --max-width: 900px;
  --radius: 6px;
  --transition: .25s ease-in-out;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--dark);
  line-height: 1.6;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { width: 90%; max-width: var(--max-width); margin: auto; }

/* Header & Nav */
header {
  background: var(--dark);
  color: var(--light);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo { font-size: 1.5rem; font-weight: 700; color: var(--primary); }

nav { display: flex; align-items: center; justify-content: space-between; }
#nav-menu { list-style: none; display: flex; gap: 1.2rem; }
#nav-menu a { color: var(--light); font-weight: 500; }
#nav-toggle { display: none; background: none; border: none; color: var(--light); font-size: 1.8rem; cursor: pointer; }

/* Main Content */
main { min-height: 70vh; padding: 2.5rem 0; }

.blog-article h2 { font-size: 2rem; margin-bottom: 1.2rem; color: var(--dark); }
.blog-article p { margin-bottom: 1rem; text-align: justify; }

/* Forms */
.contact-form { display: grid; gap: 1rem; margin: 2rem 0; }
.contact-form label { font-weight: 600; }
.contact-form input,
.contact-form textarea {
  width: 100%; padding: .75rem; border: 1px solid #ccc; border-radius: var(--radius);
  font: inherit;
}
.contact-form button {
  background: var(--primary);
  color: #000;
  border: none; padding: .75rem 1.2rem; border-radius: var(--radius);
  font-weight: 600; cursor: pointer; transition: var(--transition);
}
.contact-form button:hover { background: #e69500; }

.contact-details { list-style: none; margin-top: 2rem; }
.contact-details li { margin-bottom: .5rem; }

/* Footer */
footer { background: var(--dark); color: var(--light); text-align: center; padding: 1.2rem 0; font-size: .9rem; }

/* Responsive Nav */
@media (max-width: 768px) {
  #nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    flex-direction: column;
    background: var(--dark);
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition);
  }
  #nav-menu.open { max-height: 300px; }
  #nav-toggle { display: block; }
}