/* CSS Variables */
:root {
  --primary-color: #137070;
  --secondary-color: #E86925;
  --font-family: Arial, sans-serif;
  --background-color: #f4f4f4;
  --text-color: #333;
  --heading-font-size: 42px;
}

/* Global Styles */
body {
  font-family: var(--font-family);
  padding: 0;
  margin: 0;
  background-color: var(--background-color);
  color: var(--text-color);
}

/* Header */
header {
  position: initial;
  top: 0;
  margin-bottom: 10px;
  z-index: 1000;
}

/* Navbar */
.navbar {
  background-color: transparent;
  /* Remove background color */
  position: absolute;
  /* Make it sit on top of the hero section */
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem;
}

/* Logo */
.logo-img {
  width: 120px;
  /* Adjust the logo size to fit the menu */
}

.navbar-toggler {
  border: none;
  outline: none;
  /* Remove border on click */
  box-shadow: none;
  /* Ensure no shadow around the button */
}

.navbar-toggler-icon {
  background-color: white;
  border-radius: 4px;
}

.navbar-toggler:focus,
.navbar-toggler:active {
  outline: none;
  /* Remove outline on focus or active state */
  box-shadow: none;
  /* Ensure no shadow on active or focus */
}

.nav-link {
  color: white !important;
}

.nav-link:hover {
  color: #FFA500 !important;
}

/* Logo */
.logo-img {
  width: 120px;
  /* Adjust logo size to fit menu icon on one line */
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 100vh;
  background: linear-gradient(to bottom, rgba(24, 104, 107, 0.8), rgba(24, 104, 107, 0.5)), url(/images/Hero_1.png) center/cover;
  color: white;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(24, 104, 107, 0.5);
}

/* Adjust the hero section padding to move content down */
.hero-content {
  padding-top: 220px;
  /* Push the content down further for spacing */
  transition: padding-top 0.3s ease;
  /* Smooth transition when menu expands */
}

/* When the menu is collapsed (not expanded), add more top padding */
.navbar-collapse.collapse:not(.show)+.hero-content {
  padding-top: 160px;
  /* Default state */
}

h1.display-4 {
  margin-top: 30px;
  /* Add more spacing between the title and the top */
}

p.lead {
  margin-top: 20px;
  /* Add some spacing between the title and description */
}

/* When the navbar expands, it will push the hero section content down */
.navbar-collapse {
  background-color: rgba(24, 104, 107, 0.9);
  /* Background for mobile menu */
  padding: 1rem;
  /* Ensure spacing for the expanded menu */
  transition: all 0.3s ease;
  /* Smooth transition */
}

/* Ensure that the collapse pushes content down */
@media (max-width: 768px) {
  .navbar-collapse {
    position: relative;
    z-index: 1;
    /* Ensure it's not overlapping the hero section */
    background-color: rgba(24, 104, 107, 0.9);
  }

  .navbar-nav {
    text-align: center;
    padding-top: 20px;
  }

  .hero-section {
    height: auto;
    /* Allow the hero section to adjust based on content */
  }

  /* Ensure hero image doesn't overlap */
  .hero-section img {
    width: 100%;
    height: auto;
  }
}

/* Transition Effects */
.transition-transform {
  transition: transform 1.5s ease, opacity 1.5s ease;
}

.hidden-left {
  transform: translateX(-100%);
  opacity: 0;
}

.hidden-right {
  transform: translateX(100%);
  opacity: 0;
}

.visible {
  transform: none;
  opacity: 1;
}

/* Hero Bottom */
.hero-bottom {
  background-color: white;
  padding: 2rem;
  border-radius: 40px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
}

.green-line {
  border-top: 1px solid #2ECC71;
  width: 80%;
  margin: 15px auto;
}

/* How It Works Section */
.circle-icon {
  width: 80px;
  height: 80px;
  background-color: #E6F3F4;
  color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: bold;
  flex-shrink: 0;
}

.benefit-item {
  margin-bottom: 40px;
}

.btn-cta {
  background: linear-gradient(45deg, var(--secondary-color), #F8A02A);
  border-radius: 12px;
  padding: 15px 30px;
  color: white;
  font-weight: bold;
  border: none;
}

.btn-cta:hover {
  background: linear-gradient(45deg, #F8A02A, var(--secondary-color));
}

/* Nos Points Relais Section */
.relay-points-section {
  background-color: var(--primary-color);
  color: white;
  padding: 3rem 1rem;
}

.map-container {
  background-color: white;
  border-radius: 20px;
  padding: 20px;
  margin-top: 2rem;
  max-width: 90%;
  position: relative;
  overflow: hidden;
  padding-top: 56.25%;
  /* 16:9 Aspect Ratio */
}

.map-iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (min-width: 768px) {
  .map-container {
    max-width: 80%;
    max-height: 80vh;
  }
}

/* Catalog Section */
.catalog-section {
  padding: 2rem 1rem;
}

.catalog-left {
  text-align: center;
  margin-bottom: 2rem;
}

.catalog-left h2 {
  font-size: 36px;
  font-weight: 700;
}

.catalog-left p {
  font-size: 16px;
  color: var(--primary-color);
}

.slick-slide {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.catalog-slide {
  background-color: white;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  width: 220px;
  height: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.catalog-slide img {
  max-width: 150px;
  margin-bottom: 1rem;
}

.catalog-slide h3 {
  font-size: 18px;
  font-weight: bold;
  margin-top: 1rem;
}

.catalog-slide p {
  font-size: 14px;
}

.slick-dots {
  bottom: -25px;
}

.slick-dots li button:before {
  color: rgba(232, 105, 37, 0.3);
}

.slick-dots li.slick-active button:before {
  color: var(--secondary-color);
}

/* Discover Application Section */
.discover-section {
  padding: 1rem;
  background-color: var(--primary-color);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  top: 70px;
  max-width: 1400px;
  margin: 0 auto;
}

.discover-container {
  display: flex;
  flex-direction: column;
  text-align: center;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 1rem;
  color: white;
}

@media (min-width: 1024px) {
  .discover-container {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
    position: relative;
  }
}

.discover-image {
  margin-top: -100px;
  position: relative;
  z-index: 1;
}

.discover-image img {
  max-width: 100%;
  height: auto;
}

.discover-text {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.discover-text p.uppercase {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.discover-text h2 {
  font-size: var(--heading-font-size);
  font-weight: 700;
  line-height: 1.3;
}

.discover-links a {
  display: block;
  padding: 1rem;
  background-color: #2B7E7E;
  border-radius: 8px;
  color: white;
  text-decoration: none;
  margin-bottom: 0.5rem;
}

.discover-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
  align-items: center;
}

.discover-form input {
  padding: 0.75rem;
  border-radius: 6px;
  border: none;
  outline: none;
  width: 80%;
  font-size: 16px;
}

.discover-form button {
  padding: 0.75rem;
  border-radius: 8px;
  background-color: var(--secondary-color);
  color: white;
  font-weight: 600;
  font-size: 16px;
  border: none;
  cursor: pointer;
  width: 20%;
}

/* Testimonials Section */
.testimonial-section {
  padding: 2rem 1rem;
  text-align: center;
}

.testimonial-header p {
  color: var(--primary-color);
  font-size: 18px;
  font-weight: 400;
  text-transform: uppercase;
}

.testimonial-header h2 {
  font-size: var(--heading-font-size);
  font-weight: 700;
  margin-bottom: 10px;
}

.testimonial-header p.subheader {
  font-size: 16px;
  color: #555;
}

.testimonial-slider {
  max-width: 100%;
  margin: 0 auto;
  padding: 2rem;
}

.testimonial-slide {
  background-color: #f4f7f8;
  border-radius: 12px;
  padding: 1.5rem;
  text-align: left;
}

.testimonial-slide p {
  font-size: 16px;
  color: #333;
}

.testimonial-author {
  display: flex;
  align-items: center;
  margin-top: 1rem;
  gap: 1rem;
}

.testimonial-author img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial-author h3 {
  font-size: 20px;
  font-weight: 600;
  margin: 0;
}

.slick-prev:before, .slick-next:before {
  color: var(--secondary-color);
}

/* Partner Section */
.partner-section {
  padding: 2rem 1rem;
  text-align: center;
}

.partner-header p {
  color: var(--primary-color);
  font-size: 18px;
  font-weight: 400;
  text-transform: uppercase;
}

.partner-header h2 {
  font-size: var(--heading-font-size);
  font-weight: 700;
  margin-bottom: 10px;
}

.partner-header p.subheader {
  font-size: 16px;
  color: #555;
}

.partner-container {
  display: flex;
  flex-direction: column;
  justify-content: start;
  align-items: start;
  margin-top: 20px;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  background-color: #f4f7f8;
}

.partner-tabs {
  width: 100%;
  margin-bottom: 1rem;
}

.partner-tab-title {
  cursor: pointer;
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
  padding: 1rem 0;
  color: #ffa879;
  transition: color 0.3s;
}

.partner-tab-title.active {
  color: var(--secondary-color);
}

.partner-content {
  display: none;
  font-size: 18px;
  font-weight: 300;
}

.partner-content.active {
  display: block;
  margin-top: -10px;
}

@media (min-width: 768px) {
  .partner-section {
    max-width: 1200px;
    margin: 0 auto;
  }

  .partner-container {
    flex-direction: row;
  }

  .partner-tabs {
    width: 30%;
    margin-bottom: 0;
  }

  .partner-content-container {
    width: 70%;
    padding: 2rem;
    background-color: white;
    border-radius: 12px;
    margin-left: 2rem;
  }
}

/* FAQ Section */
.faq-section {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 2rem 1rem;
  justify-content: center;
  align-items: center;
  min-height: 70vh;
  background-color: var(--primary-color);
  color: white;
}

.faq-left {
  text-align: center;
  max-width: 600px;
}

.faq-left p {
  font-size: 16px;
  font-weight: 400;
  text-transform: uppercase;
}

.faq-left h2 {
  font-size: var(--heading-font-size);
  font-weight: 700;
  line-height: 1.2;
}

.faq-left .faq-description {
  font-size: 18px;
  font-weight: 300;
  padding: 1.5rem 0;
}

.faq-right {
  max-width: 600px;
  width: 100%;
}

.faq-item {
  border-bottom: 1px solid white;
  padding: 1rem 0;
  cursor: pointer;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 20px;
  font-weight: 600;
  transition: color 0.3s;
}

.faq-question.active {
  color: white;
}

.faq-question.inactive {
  color: rgba(255, 255, 255, 0.5);
}

.faq-answer {
  font-size: 18px;
  font-weight: 300;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.faq-answer.open {
  max-height: 10rem;
}

/* Icons */
.icon {
  font-size: 18px;
  transition: transform 0.3s;
}

.icon.open {
  transform: rotate(45deg);
}

/* Responsive */
@media (min-width: 768px) {
  .faq-section {
    flex-direction: row;
    padding: 4rem;
  }

  .faq-left {
    text-align: left;
    width: 40%;
  }

  .faq-right {
    width: 60%;
    padding-left: 2rem;
  }
}

/* Contact Section */
.contact-section {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  background-color: #fff;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.contact-details {
  flex: 1;
  padding: 20px;
}

.contact-details h2 {
  font-size: 36px;
  color: var(--primary-color);
}

.contact-details p {
  font-size: 16px;
  margin: 10px 0;
  color: #515151;
}

.contact-info {
  margin-top: 20px;
}

.contact-info img {
  vertical-align: middle;
  margin-right: 10px;
}

.contact-info a {
  font-weight: bold;
  color: var(--secondary-color);
  text-decoration: none;
}

.contact-form {
  flex: 1;
  padding: 20px;
  background-color: #FFF6EA;
  border-radius: 10px;
}

.contact-form label {
  font-weight: bold;
  display: block;
  margin-bottom: 5px;
  color: #333;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.contact-form button {
  width: 100%;
  background-color: var(--secondary-color);
  color: white;
  padding: 10px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.contact-form button:hover {
  background-color: #d75b1f;
}

@media (max-width: 768px) {
  .contact-section {
    flex-direction: column;
  }
}

/* Footer */
footer {
  background-color: var(--primary-color);
  color: white;
  padding: 2rem;
  text-align: center;
}

footer a {
  color: white;
  text-decoration: underline;
}

footer a:hover {
  text-decoration: none;
}