/* ==========================================================================
   JWB Techniek — Mobile-first responsive stylesheet
   ========================================================================== */

/* --- Reset & Base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  line-height: 1.6;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #333;
  background-color: #fff;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
}

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

a {
  color: #0056b3;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

ul {
  list-style: none;
}

/* --- Header --- */
.site-header {
  background-color: #1a1a2e;
  color: #fff;
  padding: 1rem;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
}

.header-logo {
  height: 40px;
  width: auto;
}

.logo-link {
  display: flex;
  align-items: center;
}

/* --- Mobile nav toggle --- */
.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  width: 36px;
  height: 36px;
  position: relative;
}

.nav-toggle-icon,
.nav-toggle-icon::before,
.nav-toggle-icon::after {
  display: block;
  width: 24px;
  height: 2px;
  background-color: #fff;
  border-radius: 2px;
  transition: transform 0.3s ease;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: "";
  position: absolute;
}

.nav-toggle-icon::before {
  top: 10px;
}

.nav-toggle-icon::after {
  top: 22px;
}

/* --- Navigation --- */
.main-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: #1a1a2e;
  z-index: 100;
}

.main-nav.open {
  display: block;
}

.nav-list {
  display: flex;
  flex-direction: column;
}

.nav-item {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-link {
  display: block;
  padding: 0.75rem 1rem;
  color: #fff;
  text-decoration: none;
}

.nav-link:hover,
.nav-link.active {
  background-color: rgba(255, 255, 255, 0.1);
  text-decoration: none;
}

.site-header {
  position: relative;
}

/* --- Main content --- */
main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1rem;
  width: 100%;
}

/* --- Homepage sections --- */
.hero {
  text-align: center;
  margin-bottom: 2rem;
}

.hero .logo {
  max-width: 200px;
  margin: 0 auto;
}

.location,
.services-summary,
.contact-info {
  margin-bottom: 2rem;
}

.location h2,
.services-summary h2,
.contact-info h2 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: #1a1a2e;
}

.services-summary ul {
  padding-left: 1.25rem;
  list-style: disc;
}

.services-summary li {
  margin-bottom: 0.25rem;
}

/* --- Article / Single pages --- */
article h1 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  color: #1a1a2e;
}

article h2 {
  font-size: 1.35rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  color: #1a1a2e;
}

article p {
  margin-bottom: 1rem;
}

article ul {
  padding-left: 1.25rem;
  list-style: disc;
  margin-bottom: 1rem;
}

/* --- Contact form --- */
#contact-form {
  max-width: 600px;
  margin-top: 1.5rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.5;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #0056b3;
  box-shadow: 0 0 0 2px rgba(0, 86, 179, 0.2);
}

.form-group textarea {
  resize: vertical;
}

#contact-form button[type="submit"] {
  display: inline-block;
  padding: 0.6rem 1.5rem;
  background-color: #0056b3;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

#contact-form button[type="submit"]:hover {
  background-color: #003d80;
}

/* --- Form messages --- */
.form-message {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 4px;
  font-size: 0.9rem;
}

.form-message.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.form-message.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* --- Footer --- */
.site-footer {
  background-color: #1a1a2e;
  color: #e0e0e0;
  padding: 2rem 1rem;
}

.footer-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-section h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: #fff;
}

.footer-section ul {
  padding-left: 1.25rem;
  list-style: disc;
}

.footer-section li {
  margin-bottom: 0.25rem;
}

.footer-section a {
  color: #8ab4f8;
}

.footer-section a:hover {
  color: #fff;
}

/* ==========================================================================
   Desktop breakpoint (768px)
   ========================================================================== */
@media (min-width: 768px) {
  /* --- Header / Navigation --- */
  .nav-toggle {
    display: none;
  }

  .main-nav {
    display: block;
    position: static;
    background-color: transparent;
  }

  .nav-list {
    flex-direction: row;
    gap: 0.25rem;
  }

  .nav-item {
    border-top: none;
  }

  .nav-link {
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
  }

  /* --- Main content --- */
  main {
    padding: 3rem 2rem;
  }

  /* --- Homepage grid --- */
  .hero .logo {
    max-width: 260px;
  }

  /* --- Footer columns --- */
  .footer-container {
    flex-direction: row;
    justify-content: space-between;
  }

  .footer-section {
    flex: 1;
  }
}
