/* =====================================
   General Styles
   (style.css)
   ===================================== */


/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', 'Open Sans', sans-serif;
  margin: 0 auto;
  background-color: #f5f9ff;
  color: #222;
}

/* ------------ Navbar ------------ */
.navbar {
  background: linear-gradient(90deg, #0056b3, #007bff);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: fixed; /* for mobile menu positioning */
  z-index: 9999;
  width: 100%;
}

.navbar .logo img {
  height: 50px;
}

/* Desktop Links */
.navbar .links {
  display: flex;
  margin-left: 32px;
}

.navbar .links a.active {
  color: white;     /* Highlighted color */
  font-weight: 700;   /* Bold text */
  border-bottom: 2px solid white; /* Underline or other visual indicator */
}


.navbar a {
  color: white;
  text-decoration: none;
  margin: 0;
  padding: 10px 18px;
  font-size: 16px;
  font-weight: 500;
  border-radius: 8px;
  transition: background 0.3s ease;
}

.navbar a:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* Desktop Contact Info */
.navbar .contact-info {
  color: white;
  text-decoration: none;
  margin: 0 12px;
  padding: 10px 18px;
  font-size: 16px;
  font-weight: 500;
  border-radius: 8px;
  transition: background 0.3s ease;
}

.navbar .contact-info p {
  margin: 0;
}

.nav-contact {
  text-decoration: none;
  margin: 0 !important;
  padding: 0 !important;
  font-size: 16px;
  font-weight: 500;
  border-radius: 8px;
  transition: background 0.3s ease;
}

.nav-contact:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* ------------ Hamburger & Mobile Menu ------------ */
/* Hamburger icon (hidden on desktop) */
.hamburger {
  display: none;
  font-size: 2rem;           /* Bigger, easier to tap */
  cursor: pointer;
  color: white;
  background: none;
  border: none;
  padding: 0;
  transition: color 0.3s ease;
}
.hamburger:hover {
  color: #ffb41d;            /* Highlight color on hover */
}

/* Mobile menu (hidden by default) */
.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 75px; /* navbar height */
  left: 0;
  width: 100vw;
  height: calc(100vh - 60px);
  background-color: #004494; /* Slightly darker blue for depth */
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  opacity: 0;
  transform: translateY(-100%);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
  z-index: 9999;
  padding: 20px 0;
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
}

/* Mobile menu visible state */
.mobile-menu.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Links inside mobile menu */
.mobile-menu a {
  padding: 18px 32px;
  font-size: 18px;                /* Larger and readable */
  font-weight: 600;
  color: white;
  border-radius: 10px;
  margin: 6px 16px;
  background-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
  transition: 
    background-color 0.3s ease,
    box-shadow 0.3s ease,
    transform 0.2s ease;
  text-decoration: none;
  user-select: none;
}

.mobile-menu a:hover,
.mobile-menu a:focus {
  background-color: #ffb41d;
  color: #003366;  /* Dark navy for contrast */
  box-shadow: 0 6px 12px rgba(255, 180, 29, 0.6);
  transform: scale(1.05);
  outline: none;
}

/* Contact info inside mobile menu */
.mobile-contact-info {
  display: flex;
  flex-direction: column;
  padding: 20px 32px;
  gap: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  margin-top: auto;
}

.mobile-contact-info p {
  font-size: 16px;
  font-weight: bold;
  color: #f0f0f0;           /* Soft white for easy reading */
  margin: 8px 0;
  line-height: 1.5;
  user-select: text;
  letter-spacing: 0.02em;
}

/* Contact links */
.mobile-contact-info a {
  font-size: 17px;
  font-weight: 600;
  color: white;
  text-decoration: none;
  padding: 10px 0;
  transition: color 0.3s ease;
  border-bottom: 2px solid transparent;
}

.mobile-contact-info a:hover,
.mobile-contact-info a:focus {
  color: #ffb41d;
  border-bottom: 2px solid #ffb41d;
  outline: none;
}

/* Add subtle scrollbar for long menus */
.mobile-menu::-webkit-scrollbar {
  width: 8px;
}

.mobile-menu::-webkit-scrollbar-thumb {
  background-color: rgba(255, 180, 29, 0.6);
  border-radius: 4px;
}

.mobile-menu::-webkit-scrollbar-track {
  background: transparent;
}

/* Responsive tweaks */
@media (max-width: 400px) {
  .mobile-menu a {
    font-size: 16px;
    padding: 14px 24px;
    margin: 5px 12px;
  }
  .mobile-contact-info {
    padding: 16px 24px;
  }
  .mobile-contact-info p {
    font-size: 15px;
	}
}

/* ------------ Slider ------------ */
.slider-container {
  position: relative;
  height: 800px;
  overflow: hidden;
}

.slider {
  display: flex;
  width: 300%;
  height: 100%;
  transition: transform 0.5s ease-in-out; /* smooth animation */
  will-change: transform;
}

.slide {
  width: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  filter: brightness(0.6);
}

.overlay {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #fff;
  padding: 30px;
  max-width: 700px;
  backdrop-filter: blur(5px);
}

.slide h2 {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 16px;
}

.slide p {
  font-size: 18px;
  margin-bottom: 20px;
}

.button {
  background-color: #007bff;
  border: none;
  color: white;
  padding: 12px 28px;
  font-size: 16px;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.3s ease;
}

.button:hover {
  background-color: #0056b3;
}

.slider-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  text-align: center;
  width: 100%;
}

.slider-dots .dot {
  height: 12px;
  width: 12px;
  margin: 0 5px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.3s ease;
  cursor: pointer;
}
.slider-dots .dot.active {
  background-color: #333;
}


/* ------------ Welcome Section ------------ */
.welcome-section {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 60px 20px;
  background-color: #ffffff;
  flex-direction: row-reverse;
}

.welcome-section img {
  max-width: 460px;
  border-radius: 12px;
  margin: 20px;
}

.welcome-text {
  max-width: 520px;
  margin: 20px;
}

.welcome-text h1 {
  color: #0056b3;
  font-size: 34px;
  margin-bottom: 18px;
}

.welcome-text p {
  font-size: 18px;
  line-height: 1.6;
}

/* ------------ Services Section ------------ */
.services-section {
  background-color: #f5f9ff;
  padding: 80px 20px;
  text-align: center;
}

.services-section h1 {
  font-size: 34px;
  color: #007bff;
  margin-bottom: 48px;
}

.service-item {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 48px;
}

.service-item img {
  max-width: 280px;
  border-radius: 12px;
  margin: 20px;
}

.service-text {
  max-width: 500px;
  text-align: left;
  margin: 20px;
}

.service-text h2 {
  color: #0056b3;
  font-size: 26px;
  margin-bottom: 12px;
}

.service-text p {
  font-size: 17px;
  color: #333;
}

/* ------------ Stats Section ------------ */
.stats-section {
  background: #fef3dc;
  padding: 40px 20px;
  text-align: center;
  margin-bottom: 100px;
  margin-top: -50px;
}

.stats-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 40px;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 56px;
  font-weight: bold;
  color: #ffb41d;
}

.stat-label {
  font-size: 20px;
  color: #0c2d5b;
  font-weight: 500;
  margin-top: 5px;
}

.cta-button {
  display: inline-block;
  padding: 12px 24px;
  background: #ffb41d;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  transition: background 0.3s;
}

.cta-button:hover {
  background: #e09e18;
}

/* ------------ Location Section ------------ */
.location-section {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 60px 20px;
  background-color: #ffffff;
}

.location-section img {
  max-width: 460px;
  border-radius: 12px;
  margin: 20px;
}

.location-text {
  max-width: 520px;
  margin: 20px;
}

.location-text h1 {
  color: #0056b3;
  font-size: 34px;
  margin-bottom: 18px;
}

.location-text p {
  font-size: 18px;
  line-height: 1.6;
}

/* ------------ Contact Form ------------ */
.contact-container {
  padding: 40px;
  border-radius: 12px;
  width: 100%;
  max-width: 900px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  margin: 0 auto;
}

.form-title {
  text-align: center;
  color: #333;
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 30px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.form-row {
  display: flex;
  gap: 20px;
  width: 100%;
}

.form-group {
  flex: 1;
  margin-bottom: 20px;
}

.form-group label {
  font-size: 18px;
  color: #444;
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 16px;
  font-size: 18px;
  border-radius: 8px;
  border: 1px solid #ddd;
  box-sizing: border-box;
  transition: border 0.3s ease;
}

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

.form-group textarea {
  resize: vertical;
  height: 150px;
}

button[type="submit"] {
  padding: 16px 24px;
  background-color: #0056b3;
  color: white;
  font-size: 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  width: 100%;
}

button[type="submit"]:hover {
  background-color: #003f88;
}

/* ------------ Footer ------------ */
.footer {
  background-color: #121d2e;
  color: #cfd9e6;
  padding: 60px 20px;
  text-align: center;
}

.footer-logo img {
  height: 48px;
  margin-bottom: 16px;
}

.footer-links {
  margin-bottom: 24px;
}

.footer-links a {
  color: #cfd9e6;
  margin: 0 15px;
  text-decoration: none;
  font-size: 16px;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #1a8cff;
}

.footer-contact-info a {
  color: #cfd9e6;
  text-decoration: none;
}

.footer-contact-info a:hover {
  color: #1a8cff;
}

/* ------------ Fade-in ------------ */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: none;
}

/* ------------ Icons ------------ */
.icons-container {
  display: flex;
  justify-content: space-around;
  margin-top: 40px;
}

.icon-item {
  text-align: center;
}

.icon-item i {
  font-size: 40px;
  color: #007bff;
}

.icon-item p {
  font-size: 16px;
  color: #333;
  margin-top: 10px;
}

/* ------------ Responsive Adjustments ------------ */
@media (max-width: 768px) {
/* Reverse the navbar */
.navbar {
  flex-direction: row-reverse;
  Justify-content: flex-end;
  z-index: 10000;     /* higher than mobile-menu (which is 9999) */
}

/* Adjust logo size */
.navbar .logo img {
  margin: 5px 25px;
  Height: 40px;
 }

  /* Navbar adjustments */
  .navbar .links,
  .navbar .contact-info {
    display: none;
  }

  .hamburger {
    display: block;
  }

  /* Slider */
  .slider-container {
    height: 400px;
  }

  .slide h2 {
    font-size: 28px;
  }

  .slide p {
    font-size: 16px;
  }

  .button {
    font-size: 14px;
    padding: 10px 20px;
  }

  /* Welcome & Location Sections */
  .welcome-section,
  .location-section {
    flex-direction: column;
    text-align: center;
  }

  .welcome-section img,
  .location-section img {
    max-width: 90%;
    margin: 20px auto;
  }

  .welcome-text,
  .location-text {
    margin: 20px auto;
  }

  /* Services Section */
  .services-section h1 {
    font-size: 28px;
  }

  .service-item {
    flex-direction: column;
    text-align: center;
  }

  .service-item img {
    max-width: 90%;
  }

  .service-text {
    max-width: 90%;
    text-align: center;
  }

  /* Stats Section */
  .stat-number {
    font-size: 40px;
  }

  .stat-label {
    font-size: 16px;
  }

  /* Contact Form */
  .form-title {
    font-size: 28px;
  }

  .form-group label,
  .form-group input,
  .form-group textarea {
    font-size: 16px;
  }

  button[type="submit"] {
    font-size: 18px;
    padding: 14px 20px;
  }

  /* Icons */
  .icons-container {
    flex-direction: column;
    gap: 20px;
  }

  .icon-item i {
    font-size: 32px;
  }
}

@media (max-width: 480px) {
/* Adjust logo size */
.navbar .logo img {
  margin: 5px 5px;
  Height: 40px;
 }

  /* Navbar padding */
  .navbar {
    padding: 6px 0;
  }
  
  /* Hamburger adjustments (if needed) */
  .hamburger {
    font-size: 1.25rem;
	margin: 5px 15px;
  }

  /* Slider */
  .slider-container {
    height: 300px;
  }

  .slide h2 {
    font-size: 22px;
  }

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

  .button {
    font-size: 13px;
    padding: 8px 16px;
  }

  /* Welcome & Location Sections */
  .welcome-section img,
  .location-section img {
    max-width: 80%;
  }

  /* Stats Section */
  .stat-number {
    font-size: 32px;
  }

  .stat-label {
    font-size: 14px;
  }

  /* Contact Form */
  .form-title {
    font-size: 24px;
  }

  .form-group input,
  .form-group textarea {
    font-size: 15px;
    padding: 12px;
  }

  button[type="submit"] {
    font-size: 16px;
    padding: 12px 18px;
  }
}
/* Hide contact-info once the viewport is narrower than 900px */
@media (max-width: 900px) {
  .navbar .contact-info {
    display: none;
  }
}
/* Existing “mobile” rules at 768px */
@media (max-width: 768px) {
  .navbar .links {
    display: none;
  }
  .hamburger {
    display: block;
  }
  /* …etc. */
}


/* Container para centralizar os itens de contacto */
.additional-contact {
  display: flex;
  justify-content: center;
  gap: 3rem; /* espaçamento maior entre os blocos */
  margin-top: 2.5rem;
}

/* Cada bloco de contacto (ícone + texto) */
.additional-contact p {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
}

/* Ícones em azul e bem grandes */
.additional-contact i {
  color: #007BFF;
  font-size: 3rem; /* ícone aumentado */
  transition: transform 0.3s;
}

/* Texto do contacto, abaixo do ícone, maior */
.additional-contact a {
  margin-top: 0.75rem;
  font-size: 1.2rem; /* texto aumentado */
  color: #333;
  text-decoration: none;
  transition: color 0.3s;
}

/* Efeito hover no link: muda para azul */
.additional-contact a:hover {
  color: #007BFF;
}

/* Efeito hover no ícone: “bounce” sutil */
.additional-contact p:hover i {
  transform: scale(1.15);
}

/* Ajustes para ecrãs mais pequenos */
@media (max-width: 600px) {
  .additional-contact {
    flex-direction: column;
    gap: 2rem;
  }
  .additional-contact i {
    font-size: 2.5rem; /* ícone um pouco menor no mobile */
  }
  .additional-contact a {
    font-size: 1.1rem; /* texto um pouco menor no mobile */
  }
}


/* Existing desktop styles */
.fa-additional-contact {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin: 60px 0;
}

.fa-additional-contact p {
  margin: 0;
}

.fa-additional-contact a {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #333;
  text-decoration: none;
  transition: color 0.3s;
}

.fa-additional-contact a i {
  color: #007BFF;
  font-size: 3rem;
  transition: transform 0.3s;
}

.fa-additional-contact a span {
  margin-top: 0.75rem;
  font-size: 1.2rem;
}

.fa-additional-contact a:hover i {
  transform: scale(1.15);
}

.fa-additional-contact a:hover span {
  color: #007BFF;
}

.welcome-heading {
  display: none; /* hidden on desktop */
}

/* Larger devices welcome section */
@media (min-width: 1097px) {
  .welcome-section {
    flex-direction: row-reverse;
  }

  .welcome-heading {
    display: none; /* still hidden */
  }

  .welcome-text h1 {
    display: block; /* visible */
  }
  
  .welcome-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}

/* Tablet & Mobile resizing section*/
@media (max-width: 1096px) {
	.fa-additional-contact {
		flex-direction: column;
		align-items: center;
		gap: 2rem;
	}

	.overlay {
		backdrop-filter: none;
	}

	/* Ocultar H1 do PC */
	.welcome-text h1 {
		display: none;
	}

	.welcome-text p {
		font-size: 18px;
	}	

	.welcome-section {
		display: flex;
		align-items: center;
		flex-wrap: wrap;
	}

	.welcome-section {
		flex-direction: column;
		text-align: center;
		padding: 40px 20px;
	}

	/* H1 DO TELE */
	.welcome-heading {
		display: block;
		font-size: 2rem;
		color: #0056b3;
	}

	.welcome-section img {
		width: 80%;
		max-width: 400px;
		margin: 5px;
	}

	.icons-container {
		display: flex;
		justify-content: center;
		flex-wrap: wrap;
		gap: 1.5rem;
		margin-top: 1rem;
		}

	.stats-wrapper {
		display: flex;
		flex-wrap: wrap;
		justify-content: center;
		align-items: center;
		gap: 10px;
	}	
	.stat-cta {
		margin-top: 10px;
	}	
	
	.service-item {
		align-items: center;
	}	
	
	.service-item img {
		max-width: 60%;
	}		
}
