/* ✅ Hero Section with fade layers */
header#hero {
  position: relative;
  height: 90vh; /* keep or adjust as you like */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  text-shadow: 1px 1px 4px black;
  text-align: center;
  overflow: hidden;
}

/* background layers */
#hero::before,
#hero::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: opacity 1s ease-in-out;
}

#hero::before {
  z-index: 1;
  opacity: 1;
  background-image: var(--bg-before);
}

#hero::after {
  z-index: 2;
  opacity: 0;
  background-image: var(--bg-after);
}

/* when fading */
#hero.fade::before { opacity: 0; }
#hero.fade::after { opacity: 1; }

header h1 {
  font-size: 3rem;
  z-index: 3;
  position: relative;
}

/* fallback hero styling */
.hero {
  height: 100vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* ✅ Font Awesome self-hosted */
@font-face {
  font-family: 'Font Awesome 6 Brands';
  font-style: normal;
  font-weight: 400;
  src: url('../webfonts/fa-brands-400.woff2') format('woff2');
}

@font-face {
  font-family: 'Font Awesome 6 Free';
  font-style: normal;
  font-weight: 900;
  src: url('../webfonts/fa-solid-900.woff2') format('woff2');
}

.fab {
  font-family: 'Font Awesome 6 Brands';
  font-weight: 400;
}

.fas {
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
}

.fa-facebook::before { content: "\f09a"; }
.fa-instagram::before { content: "\f16d"; }
.fa-whatsapp::before { content: "\f232"; }
.fa-envelope::before { content: "\f0e0"; }

.lang-switch {
  position: absolute; 
  top: 20px;
  right: 20px;
  display: flex;
  gap: 8px;
}

.lang-switch button {
  background: rgba(255,255,255,0.8);
  border: 1px solid #ccc;
  border-radius: 5px;
  padding: 5px 10px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.3s;
}

.lang-switch button:hover {
  background: #f0f0f0;
}

.lang-content {
  display: none;
}
.lang-content.active {
  display: block;
}

