/* Header Contact Information Styles */

.header-contact-info {
  background: linear-gradient(to right, #1e7e34, #28a745);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding: 2px 0; /* Reduced padding for more compact appearance */
  font-size: 11px; /* Slightly smaller font size */
  transition: all 0.3s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 1001; /* Ensure it's above other elements */
}

/* Add subtle pattern to the green background for more depth */
.header-contact-info::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.05' fill-rule='evenodd'%3E%3Ccircle cx='3' cy='3' r='1'/%3E%3Ccircle cx='13' cy='13' r='1'/%3E%3C/g%3E%3C/svg%3E");
  z-index: -1;
}

.contact-details {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  position: relative;
}

.contact-item {
  display: flex;
  align-items: center;
  margin-right: 12px; /* Reduced margin between items */
  color: #ffffff;
  transition: all 0.3s ease;
  position: relative;
}

.contact-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -8px;
  top: 50%;
  transform: translateY(-50%);
  height: 10px;
  width: 1px;
  background-color: rgba(255, 255, 255, 0.3);
}

.contact-item:last-child {
  margin-right: 0;
}

.contact-item i {
  color: #ffffff; /* White icons for better visibility on green */
  margin-right: 4px; /* Reduced margin */
  font-size: 11px; /* Smaller icon size */
  transition: all 0.2s ease;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.contact-item:hover i {
  transform: scale(1.1);
  color: rgba(255, 255, 255, 0.95);
}

.contact-item span {
  font-weight: 400;
  font-size: 10px; /* Smaller font size */
  letter-spacing: 0; /* Removed letter spacing for compactness */
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
}

.contact-item:hover span {
  color: rgba(255, 255, 255, 0.9);
}

/* Style for the main navigation part of the header (now the only part) */
header > .container {
  padding: 18px 0; /* Slightly increased padding for better appearance without contact bar */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* Added subtle shadow for depth */
  position: relative;
}

/* New quick contact styles for header */
.header-quick-contact {
  display: flex;
  align-items: center;
  margin-right: 15px;
}

.header-quick-contact a {
  color: #ffffff;
  font-size: 16px;
  margin-left: 16px;
  transition: all 0.3s ease;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: rgba(
    255,
    255,
    255,
    0.1
  ); /* Light background for contrast on dark navy */
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

.header-quick-contact a:hover {
  color: #0a1a2f; /* Dark navy on hover */
  background-color: #ffffff; /* White background on hover */
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(255, 255, 255, 0.2);
}

/* Adjust section padding for header without contact info bar */
section:not(.hero) {
  padding-top: 90px; /* Reduced padding as contact info bar is removed */
  scroll-margin-top: 90px; /* For smooth scrolling to sections */
}

/* Adjust hero section to account for new header height */
.hero {
  padding-top: 100px !important; /* Reduced padding */
}

/* Responsive styles */
@media screen and (max-width: 992px) {
  .contact-details {
    justify-content: space-around;
  }

  .contact-item {
    margin: 5px 10px;
  }
}

@media screen and (max-width: 768px) {
  header > .container {
    padding: 12px 0;
  }

  section:not(.hero) {
    padding-top: 80px; /* Reduced padding for mobile */
    scroll-margin-top: 80px;
  }

  .header-quick-contact {
    margin-right: 10px;
  }

  .header-quick-contact a {
    font-size: 14px;
    margin-left: 8px;
    width: 28px;
    height: 28px;
  }
}

@media screen and (max-width: 576px) {
  header > .container {
    padding: 10px 0;
  }

  section:not(.hero) {
    padding-top: 70px; /* Reduced to account for smaller header */
    scroll-margin-top: 70px;
  }

  .header-quick-contact {
    margin-right: 8px;
    position: absolute;
    right: 50px;
  }

  .header-quick-contact a {
    font-size: 12px;
    margin-left: 5px;
    width: 24px;
    height: 24px;
  }
}

/* Fix for smaller mobile screens */
@media screen and (max-width: 360px) {
  header > .container {
    padding: 8px 0;
  }
}
