/* style.css */

/* 1) SIMPLE RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background-color: #f7f9fc;
  color: #333;
}

/* 2) NAVBAR */
.navbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  background-color: #0a1633; /* navy */
  color: #fff;
  padding: 1rem 2rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-img {
  width: 40px;
  height: 40px;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: bold;
  white-space: nowrap;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin-left: 2rem;
}

.nav-links li a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
}

.nav-links li a:hover {
  text-decoration: underline;
}

/* 3) LANGUAGE SWITCH */
.language-switch {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto; /* push the language switch to the right */
}

.flag-btn {
  display: flex;
  align-items: center;
  background: none;
  border: none;
  cursor: pointer;
  color: white;
  gap: 0.5rem;
  font: inherit; /* match the navbar font style */
}

.flag-icon {
  width: 24px;
  height: 24px;
}

/* 4) RESPONSIVE NAVBAR */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    flex-direction: column;
    margin-left: 0;
    margin-top: 1rem;
  }

  .language-switch {
    margin-top: 1rem;
  }
}

/* 5) HERO SECTION */
.hero-section {
  background-color: #0a1633;
  color: #fff;
  text-align: center;
  padding: 4rem 2rem;
}

.hero-text h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.hero-text p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

/* Preferred hero button style (applied to both <button> and <a class="btn">) */
.hero-text button,
.hero-text a.btn {
  padding: 0.75rem 1.5rem;
  background-color: #fff;
  color: #0a1633;
  border: 2px solid #0a1633;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  text-decoration: none; /* for anchor elements */
  display: inline-block;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.hero-text button:hover,
.hero-text a.btn:hover {
  background-color: #0a1633;
  color: #fff;
  transform: translateY(-2px);
}

/* 6) INFO SECTION */
.info-section {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.info-box {
  flex: 1;
  min-width: 250px;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 1.5rem;
  text-align: center;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.info-box:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transform: translateY(-5px);
}

/* 7) PAGE BANNER (about, contact, mission, etc.) */
.page-banner {
  background-color: #0a1633;
  color: #fff;
  text-align: center;
  padding: 2rem 0;
}

.page-banner h1 {
  font-size: 2rem;
}

/* 8) PAGE CONTENT */
.page-content {
  max-width: 800px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.page-content p {
  font-size: 1.1rem;
  line-height: 1.6;
}

/* 9) CONTACT FORM */
#contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  max-width: 500px;
  margin: 2rem auto;
  background-color: #fff;
  padding: 2rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  margin-bottom: 0.5rem;
  font-weight: bold;
}

.form-group input,
.form-group textarea {
  padding: 0.75rem;
  border-radius: 4px;
  border: 1px solid #ccc;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #0a1633;
  outline: none;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

#form-spinner {
  border: 4px solid rgba(0, 0, 0, 0.1);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border-left-color: #0a1633;
  animation: spin 1s linear infinite;
  display: none;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* 10) FORM MESSAGES */
#form-messages {
  margin-top: 1rem;
  text-align: center;
  font-weight: bold;
}

#form-messages.success {
  color: green;
}

#form-messages.error {
  color: red;
}

/* Highlight text */
.highlight {
  font-family: 'Courier New', monospace;
  font-weight: bold;
  color: #2d0de3;
}

/* General styles for product logos */
.product-logo {
  width: 100px;
  height: auto;
  margin-bottom: 1rem;
  display: block;
  margin-left: auto;
  margin-right: auto;
  object-fit: contain;
  max-height: 80px;
}

/* For individual product cards */
.product-card {
  text-align: center;
  padding: 1rem;
  border: 1px solid #ddd;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background-color: #fff;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.product-details {
  margin-top: 10px;
  padding: 10px;
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.product-details p {
  margin: 0;
}

/* 11) FOOTER */
.footer-section {
  text-align: center;
  padding: 1rem;
  background-color: #fafafa;
  border-top: 1px solid #ddd;
}

.footer-section p {
  font-size: 0.85rem;
  color: #666;
}

/* 12) DISABLE BUTTON STYLE */
button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* 13) MEDIA QUERIES FOR RESPONSIVENESS */
@media (max-width: 600px) {
  .navbar {
    padding: 1rem;
  }
  .logo-text {
    font-size: 1.2rem;
  }
  .nav-links {
    flex-direction: column;
    width: 100%;
  }
  .nav-links li {
    width: 100%;
    text-align: center;
  }
  .info-section {
    flex-direction: column;
    gap: 1rem;
  }
  .hero-section {
    padding: 2rem 1rem;
  }
  .hero-text h1 {
    font-size: 1.5rem;
  }
  .hero-text p {
    font-size: 1rem;
  }
  .hero-text button {
    width: 100%;
  }
  #contact-form {
    padding: 1rem;
  }
}

/* 14) PRODUCTS INTRO SECTION STYLING */
#products-intro {
  background-color: #f0f4f8;
  padding: 2rem;
  margin-bottom: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

#products-intro h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: #0a1633;
}

#products-intro p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #333;
  margin-bottom: 1rem;
}

#products-intro ul {
  margin: 1rem 0;
  padding-left: 1.5rem;
  list-style-type: disc;
}

#products-intro li {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
  color: #333;
}