/* --- GLOBAL STYLES --- */
body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background-color: white;
  color: #222;
  overflow-x: hidden;
}

* {
  box-sizing: border-box;
}

/* Limit site width and center */
.top-bar,
.header-container,
nav .menu,
.main-box {
  max-width: 1100px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}

/* --- HEADER / LOGOS AREA --- */
.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  background-color: #fff;
  padding: 8px 16px;
  gap: 10px;
  overflow: hidden;
}

.logo {
  max-height: 120px;
  width: auto;
  height: auto;
  margin-right: auto;
  flex-shrink: 0;
}

.van {
  max-height: 130px;
  width: auto;
  height: auto;
  margin-left: 20px;
  flex-shrink: 0;
}

.approved {
  max-height: 100px;
  width: auto;
  height: auto;
  margin-left: 10px;
  flex-shrink: 0;
  vertical-align: top;
}

/* --- HEADER TEXT AREA --- */
.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 5px;
}

.left-text,
.right-text {
  margin: 0;
  padding: 0;
  line-height: 1;
  text-align: right;
}

.advice {
  color: rgb(0, 49, 0);
  font-size: 1em;
  font-weight: bold;
  margin: 0;
  line-height: 1.1;
}

.phone {
  color: black;
  font-size: 1.3em;
  font-weight: bold;
  margin: 0;
  line-height: 1.1;
}

/* --- NAVIGATION BAR --- */
nav {
  background-color: #003366;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  padding: 6px 0;
  border-top: 2px solid #73AD21;
  border-bottom: 2px solid #73AD21;
}

.menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px;
}

.menu ul li a {
  display: inline-block;
  padding: 4px 8px;
  background-color: #003366;
  text-decoration: none;
  color: white;
  border-radius: 4px;
  transition: background-color 0.3s ease;
  font-weight: bold;
  font-size: 0.95rem;
}

.menu ul li a:hover {
  background-color: #ccc;
  color: #003366;
}

.menu ul li a.active {
  background-color: #ffffff;
  color: #003366;
}

/* --- MAIN CONTENT BOX --- */
.main-box {
  background-color: white;
  border: 1px solid #ccc;
  margin: 5px auto 20px auto;
  padding: 10px 20px;
  width: 100%;
  overflow: hidden;
}

/* --- WELCOME SECTION --- */
.welcome-section {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px 20px;
  line-height: 1.6;
}

.welcome-section h1 {
  font-size: 2rem;
  color: #003366;
  text-align: center;
  margin-bottom: 20px;
}

.welcome-section p {
  margin-bottom: 15px;
  font-size: 1rem;
}

.services-list {
  list-style-type: disc;
  margin-left: 25px;
  margin-bottom: 20px;
  padding-left: 15px;
}

.services-list li {
  margin-bottom: 12px;
}

.services-list strong {
  color: #003366;
}

/* --- CLOSING MESSAGE --- */
.closing-message {
  display: block;
  width: 100%;
  text-align: right !important;
  font-size: 1.3rem;
  font-weight: bold;
  font-style: italic;
  color: #003366;
  margin-top: 30px;
  margin-right: 12px;
  letter-spacing: 0.5px;
}

/* --- CONTACT FORM STYLES --- */
.contact-section {
  max-width: 600px;
  width: 100%;
  margin: 0 auto;
  padding: 20px;
  text-align: left;
}

.contact-section h1 {
  color: #003366;
  text-align: center;
  margin-bottom: 20px;
}

.contact-section p {
  text-align: center;
  margin-bottom: 20px;
  font-size: 1rem;
}

.contact-section form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-section label {
  font-weight: 600;
  color: #003366;
}

.contact-section input,
.contact-section textarea {
  font-family: inherit;
  font-size: 1rem;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.button-row {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.whatsapp-btn,
.email-button {
  background-color: #25D366; /* WhatsApp green */
  color: white;
  font-weight: bold;
  border: none;
  padding: 10px 15px;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  text-decoration: none;
  font-size: 1rem;
  text-align: center;       /* ✅ ensures text inside the button is centered */
  display: inline-block;    /* ✅ allows proper centering inside the flex container */
  min-width: 160px;         /* ✅ makes both buttons equal width */
}

.email-button {
  background-color: #003366; /* Site blue */
}

.whatsapp-btn:hover {
  background-color: #1ebe5d;
}

.email-button:hover {
  background-color: #73AD21;
}

.alt-options {
  margin-top: 15px;
  text-align: center;
}

.alt-options button {
  background-color: #ccc;
  color: #003366;
  font-weight: 600;
  border: none;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.alt-options button:hover {
  background-color: #bbb;
}

/* --- GLOSSARY SECTION --- */
.glossary-section h1 {
  text-align: center;
  color: #003366;
}

/* --- MOBILE RESPONSIVENESS FIXES --- */
@media (max-width: 768px) {

  /* Top bar layout for mobile */
  .top-bar {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 10px;
    padding: 10px;
  }

  /* Center the Litewire Solutions logo */
  .logo {
    display: block;
    margin: 0 auto 8px auto;  /* centers horizontally with small bottom space */
    max-height: 85px;
    height: auto;
    width: auto;
  }

  /* Group van + NIC EIC logos below */
  .logo-group {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: nowrap;
  }

  .logo-group img {
    height: auto;
  }

  .van {
    max-height: 70px;
  }

  .approved {
    max-height: 55px;

  }

  /* Prevent header text wrapping */
  .left-text {
    white-space: normal;
  }

  /* Header alignment below logos */
  .header-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .left-text,
  .right-text {
    text-align: center;
  }

  /* Nav menu resizing */
  nav {
    padding: 8px 0;
  }

  .menu ul li a {
    padding: 6px 10px;
    font-size: 0.9rem;
  }

  /* Contact form width fix */
  .contact-section {
    width: 95%;
    padding: 15px;
  }

  .contact-section input,
  .contact-section textarea {
    font-size: 0.95rem;
  }

  .button-row {
    flex-direction: column;
    gap: 10px;
  }
}

/* --- SOCIAL MEDIA ICONS --- */
.social-links {
  text-align: center;
  margin-top: 30px;
}

.facebook-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px; /* Space between logo and text */
  text-decoration: none;
}

.facebook-logo {
  width: 40px;  /* Adjust logo size */
  height: auto;
  transition: transform 0.3s ease;
}

.facebook-text {
  font-size: 1.2rem;
  color: #003366; /* Match your site's theme color */
  font-weight: bold;
  transition: color 0.3s ease;
}

.facebook-link:hover .facebook-logo {
  transform: scale(1.1); /* Slight hover effect */
}

.facebook-link:hover .facebook-text {
  color: #73AD21; /* Change color on hover */
}
