﻿body { font-family: Arial, sans-serif; margin: 0; padding: 0; color: rgb(12, 12, 12); }
header { background-color: #E54544;  /*16, 145, 206*/ color: white; padding: 1rem; display: flex; justify-content: space-between; align-items: center; }
/* Modern Header Styles — Prefixed to avoid conflicts */
.modern-header { background-color: #1a1a1a; padding: 20px 0; height: 120px; display: flex; align-items: center; box-shadow: 0 2px 4px rgba(0,0,0,0.2); }
/*.modern-container { width: 90%; max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; }*/
/*.modern-container { display: flex; flex-direction: column; align-items: center; }*/
.modern-container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap; /* allows wrapping for mobile */
}
.page-wrapper {
  min-height: 100%;          /* full viewport height */
  display: flex;
  flex-direction: column;
}
main { padding: 2rem; flex: 1; clear:both; }
section {
    margin-bottom: 2rem;
    padding: 1rem;
    background-color: rgba(245, 245, 245, 0.9);
    border-radius: 5px;
}

.modern-logo { font-size: 28px; font-weight: bold; color: #fff; letter-spacing: 1px; font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif; }
.modern-nav { width: 100%; margin-top: 10px; z-index: 1; }
.modern-nav ul { list-style: none; display: flex; gap: 30px; margin: 0; padding: 0; }
.modern-nav a { text-decoration: none; color: #f0f0f0; font-size: 16px; font-weight: 500; transition: color 0.3s ease; font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif; }
.modern-nav a:hover { color: #00bcd4; }
/* Mobile menu toggle button */
.modern-menu-toggle { display: none; font-size: 28px; background: none; border: none; color: #f0f0f0; cursor: pointer; }
/* Responsive behavior */
/*logo*/ .logo-container { position: relative; display: inline-block; color:rgb(229, 69, 68); } .logo { height: 50px; /* Adjust height as needed */ } .invisible-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; }
	/*.logo-container img { width:350px; }*/
	.logo-img {
  opacity: 0;
  transform: translateY(8px);
  animation: logoReveal 400ms ease-out forwards;
  animation-delay: 200ms;
}

@keyframes logoReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.logo-img:hover {
  transform: scale(1.02);
  filter: drop-shadow(0 0 4px rgba(255, 0, 0, 0.3));
  transition: transform 180ms ease, filter 180ms ease;
}



/*nav*/ nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1rem; } nav a { color: white; text-decoration: none; }
/*nav-min*/ .modern-menu-toggle { z-index: 2; position: relative; display: none; cursor: pointer; }
	/* .menu-toggle { display: none; cursor: pointer; }*/
/*footer*/

.footer {
  display: block;        /* ensure visible */
  margin-top: auto;      /* pushes footer to bottom */
  width: 100%;            /* keep it relative, not 100vw */
  max-width: 100%;        /* ensure it never exceeds viewport */
  box-sizing: border-box; /* padding stays inside width */
  overflow-x: hidden;     /* safeguard */
  background-color: #111; color: #eee; padding: 2rem 1rem; font-family: 'Segoe UI', sans-serif; display: none; /*Hidden until content is loaded*/
}
.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;        /* controlled horizontal padding */
  text-align: center;
}


/*.footer { width: 100%; background-color: #111; color: #eee; padding: 2rem 1rem; font-family: 'Segoe UI', sans-serif; display: none; Hidden until content is loaded  }
.footer-container { max-width: 1200px; margin: 0 auto; text-align: center; } */
.footer-logo { color:rgb(229, 69, 68); }
.footer-logo a { font-size: 1.5rem; font-weight: bold; color: rgb(229, 69, 68); /* #00bcd4*/ text-decoration: none; }
.footer-nav { margin: 1rem 0; }
.footer-nav a { margin: 0 1rem; color: #ccc; text-decoration: none; transition: color 0.3s ease;}
.footer-nav a:hover { color: #00bcd4; }
.footer-copy { font-size: 0.9rem; color: #777; margin-top: 1rem; }

.language-text-switcher {
  display: flex; justify-content: flex-end; margin-top: 10px;
}

.modern-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.globe-icon {
  font-size: 1.2em;
  opacity: 0.6;
}

.lang-link {
  text-decoration: none;
  color: #888;
  padding: 2px 6px;
  border-radius: 4px;
  transition: color 0.3s ease, background-color 0.3s ease;
}

.lang-link:hover {
  color: #000;
  background-color: #eee;
}

.lang-link.active {
  color: #000;
  font-weight: bold;
  background-color: #ddd;
}

/*class - control - output*/
.langPT, .langFR, .langEN { display: none; } .showPT .langPT, .showFR .langFR, .showEN .langEN { display: block; }

@media (max-width: 768px) {
.logo-container img { width:180px; }
  .modern-menu-toggle {
    display: block;
    z-index: 2;
    position: relative;
    background: #C4281A;
    border: 1px;
    font-size: 1.5em;
    color: white;
    cursor: pointer;
  }

  .modern-nav {
    display: none;
    width: 100%;
    background-color: #1a1a1a;
    padding: 60px 0 20px 0; /*padding: 20px 0;*/
    text-align: left;
  }

  .modern-nav ul {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .modern-nav.show {
    display: flex;
    flex-direction: column; /* ✅ This ensures vertical stacking */
  }
}