/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Base Styles */
body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: #f4f4f4;
  padding-top: 60px; /* Offset for fixed header-top */
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Header */
header {
  margin: 0;
}

/* Fixed Top Navigation Bar */
.header-top {
  background-color: #333;
  height: 60px;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 0 20px;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-top nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

.header-top nav ul li a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.header-top nav ul li a:hover {
  color: #ffa500;
}

.contact-info {
  display: flex;
  align-items: center;
  gap: 15px;
}

.contact-info a {
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  transition: color 0.3s ease;
}

.contact-info a:hover {
  color: #ffa500;
}

/* Header Main (Logo Bar) */
.header-main {
  background-color: #333;
  width: 100%;
  margin-top: -60px; /* Pull background up to touch header-top */
  padding-top: 60px; /* Ensure logo isn't hidden behind fixed header */
  padding-bottom: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.logo {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Hero Section */
#top {
  background: url('elektro-banner.jpg') no-repeat center center/cover;
  color: #000;
  padding: 100px 0;
  text-align: center;
  scroll-margin-top: 80px;
}

#top h2 {
  font-size: 2.5em;
  margin-bottom: 20px;
}

#top p {
  font-size: 1.2em;
  margin-bottom: 20px;
}

.btn {
  background-color: #333;
  color: #fff;
  padding: 10px 20px;
  text-decoration: none;
  font-size: 18px;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.btn:hover {
  background-color: #555;
}

/* Services Section */
#storitve {
  background-color: #eee;
  padding: 50px 0;
  text-align: center;
  scroll-margin-top: 80px;
}

#storitve h2 {
  margin-bottom: 30px;
  color: #333;
}

.service-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.service-item {
  background-color: #fff;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  width: 300px;
  padding: 20px;
  text-align: center;
}

.service-item img {
  width: 100%;
  height: auto;
  margin-bottom: 15px;
}

.service-item h3 {
  font-size: 1.5em;
  margin-bottom: 10px;
  color: #333;
}

/* Reference Section */
#reference {
  background-color: #fff;
  padding: 50px 0;
  text-align: center;
  scroll-margin-top: 80px;
}

#reference h2 {
  margin-bottom: 30px;
  color: #333;
}

.reference-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.reference-item img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* About Section */
#o-nas {
  background-color: #fff;
  padding: 50px 0;
  text-align: center;
  scroll-margin-top: 80px;
}

#o-nas h2 {
  margin-bottom: 30px;
  color: #333;
}

/* Contact Section */
#kontakt {
  background-color: #fff;
  padding: 50px 0;
  text-align: center;
  scroll-margin-top: 80px;
}

#kontakt.with-reference {
  background-color: #f0f0f0; /* Changed background when reference is visible */
}

#kontakt h2 {
  margin-bottom: 30px;
  color: #333;
}

#kontakt a {
  margin: 10px 0;
  color: #000;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

#kontakt a + a {
  margin-left: 20px;
}

/* Footer */
footer {
  background-color: #333;
  color: #fff;
  padding: 20px 0;
  text-align: center;
}

/* Icon Size */
.icon {
  width: 20px;
  height: 20px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .header-top {
    flex-direction: column;
    gap: 10px;
  }
  
  nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .header-main {
    padding-top: 80px;
  }
  
  .logo {
    max-width: 90%;
  }
  
  #top {
    padding: 80px 0;
  }
  
  #top h2 {
    font-size: 2em;
  }
  
  .service-grid,
  .reference-grid {
    flex-direction: column;
    align-items: center;
  }
}

/* Contact Form */
#contact-form {
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 6px;
}

.form-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.form-group {
  margin-bottom: 15px;
  flex: 1;
  min-width: 200px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
}

.message-group textarea {
  max-width: 80%;
  margin: 0 auto;
  display: block;
}

.captcha-group input {
  width: auto;
  display: inline-block;
  margin-left: 10px;
  vertical-align: middle;
}

button[type="submit"] {
  background-color: #007BFF;
  color: #fff;
  border: none;
  padding: 10px 20px;
  font-size: 1rem;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button[type="submit"]:hover {
  background-color: #0056b3;
}

/* Notification */
.notification {
  max-width: 600px;
  margin: 20px auto;
  padding: 15px;
  text-align: center;
  border-radius: 4px;
  font-weight: bold;
}

.notification.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.notification.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* Service Details */
.service-details {
  margin-top: 10px;
  border-top: 1px solid #ccc;
  padding-top: 10px;
}

.service-details summary {
  cursor: pointer;
  font-weight: bold;
  color: #6b6b6b;
  list-style: none;
  position: relative;
  padding-right: 20px;
}

.service-details summary::-webkit-details-marker {
  display: none;
}

.service-details summary::after {
  content: '▼';
  display: inline-block;
  margin-left: 8px;
  transition: transform 0.3s ease;
  transform-origin: center;
}

.service-details[open] summary::after {
  transform: rotate(-180deg);
}

.notification {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999; /* zelo visoko */
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
  max-width: 600px;
  width: 90%;
  padding: 15px;
  text-align: center;
  border-radius: 4px;
  font-weight: bold;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.notification.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}