/* Base styling and structure */
@import url('https://cdnjs.cloudflare.com/ajax/libs/milligram/1.4.1/milligram.min.css');

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  margin: 0;
  padding: 0;
}

/* Header and nav styles */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: #07407b;
  border-bottom: 2px solid #7fceef;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  padding-left: 10px;
  padding-top: 5px;
}

.nav {
  display: flex;
  gap: 1rem;
}

.nav a {
  font-weight: bold;
  color: white;
  padding: 5px 20px 5px 20px;
  border-right: 2px solid #f7931f;

}

.nav a.last {
  border-right: none !important

}

.nav a.contact-btn {
  font-weight: bold;
  background: #f7931f;
  color: white;
  padding: 5px 15px 5px 15px;
  border-radius: 5px;
  margin-right: 20px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  color: #f7931f;
}

.nav-toggle span {
  display: block;
  width: 30px;
  height: 3px;
  background-color: #f7931f;
}

/* Hero section */
.hero {
  background: #e0f7ff;
  text-align: center;
  width: 100%;
  background-image: url('images/hero_bg.png');
  background-size: cover;       /* Scales image to cover the whole div */
  background-position: center;  /* Centers the image */
  background-repeat: no-repeat; /* Prevents tiling */
  padding-bottom: 20px;

}

.hero h1 {
  color: #7fceef;
  font-weight: bold;
  padding: 4rem 2rem;
  text-align: center;
}

.hero p {
  color: white;
  text-align: center;
}

.hero p a {
  color: #f7931f;
  font-weight: bold;
}

.cta-btn {
  display: inline-block;
  margin: 1rem 0;
  background-color: #f7931f;
  color: white;
  text-decoration: none;
  font-weight: bold;
  padding: 5px 15px 5px 15px;
  border-radius: 5px;
}

/* About section */

.about {
  background-color: white;
}

.about h2 {
  color: #07407b;
  font-weight: bold;
  padding-top: 20px;
  text-decoration: underline;
  text-decoration-color: #f7931f;
  text-underline-offset: 8px;
  text-align: center;
}

.features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  padding: 2rem;
}

.feature img {
  flex: 1 1 200px;
  max-width: 200px;
  text-align: center;
  padding-bottom: 15px;
}

.feature h3 {
  color: #f7931f;
  font-weight: bold;
}

/* Brands section */

.brands {
  background-color: #eeeeed;
  text-align: center;
  padding-top: 20px;
}

.brands h2 {
  color: #07407b;
  font-weight: bold;
  padding-top: 20px;
  text-decoration: underline;
  text-decoration-color: #f7931f;
  text-underline-offset: 8px;
  text-align: center;
}

.brands p {
  padding: 10px 50px 0px 50px;
}

.brand-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  padding: 2rem;
}

.feature, .brand-logos img {
  flex: 1 1 200px;
  max-width: 300px;
  text-align: center;
}

.brand-logos img {
  height: 50px;
  max-width: 150px;
}

/* Testimonials - with arrows */
.testimonials {
  position: relative;
  padding: 2rem;
  text-align: center;
  background: #07407b;
}

.testimonials h2 {
  color: white;
  font-weight: bold;
  padding-top: 20px;
  text-decoration: underline;
  text-decoration-color: #f7931f;
  text-underline-offset: 8px;
  text-align: center;
}

.testimonials p {
  color: white;
  padding: 10px 50px 0px 50px;
}

.testimonial-slider {
  display: flex;
  transition: transform 0.5s ease;
  width: 100%;
  overflow: hidden;
  justify-content: center;
  padding-bottom: 50px;
}

.testimonial-slider blockquote {
  flex: 0 0 100%;
  max-width: 400px;
  border-left: 2px solid #f7931f;
  padding: 1rem;
  margin: 0 auto;
}

.testimonial-slider blockquote footer {
  font-weight: bold;
  color: #7fceef;
}

.testimonial-controls {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.testimonial-controls button {
  background: #0074D9;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  cursor: pointer;
  border-radius: 4px;
}

@media screen and (min-width: 768px) {
  .testimonial-slider blockquote {
    flex: 1;
  }
}

/* Contact form */

.contact {
  background: white;
  text-align: center;
}

.contact h2 {
  color: #07407b;
  font-weight: bold;
  padding-top: 20px;
  text-decoration: underline;
  text-decoration-color: #f7931f;
  text-underline-offset: 8px;
  text-align: center;
}

.contact p {
  padding: 10px 50px 0px 50px;
}

.contract address {
  padding-bottom: 20px;
}

.contact form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 500px;
  margin: 20px auto;
  padding: 20px;
}

.contact form button {
  background-color: #f7931f;
  color: white;
  text-decoration: none;
  font-weight: bold;
  padding: 5px 15px 5px 15px;
  border-radius: 5px;
}

/* Style for the success message */
.contact .success-message {
    display: none;
    margin-top: 20px;
    padding: 10px;
    background-color: #28a745;
    color: white;
    border-radius: 5px;
}

/* Footer */
.footer {
  background: #7fceef;
  padding: 2rem;
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  color: white;
}

.footer-content .footer-logo {
  text-align: left;
  padding-left: 25px;
}

.footer-content .footer-contact {
  text-align: right;
  padding-right: 25px;
  margin-top: -60px;
}

.footer-content .footer-legal {
  text-align: center;
  font-size: 80%;
}

/* Responsive nav */
@media screen and (max-width: 768px) {
  .nav {
    display: none;
    flex-direction: column;
    gap: 1rem;
    padding-top: 1rem;
  }

  .nav.active {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }
}
