/* ==========================================================================
   Layout: Header, Footer, Navigation
   ========================================================================== */

/* ---------- Header ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: #f5f5f5;
  border-bottom: 1px solid #eee;
  height: var(--header-height);
  display: flex;
  align-items: center;
  transition: background-color var(--transition-normal), box-shadow var(--transition-normal);
}

/* Offset body content below the fixed header */
body {
  padding-top: var(--header-height);
}

.header.scrolled {
  background-color: #f5f5f5;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 30px;
  width: 100%;
}

/* Navigation */
.nav {
  display: flex;
  align-items: center;
  gap: 0;
}

.nav__link {
  text-decoration: none;
  color: var(--color-black);
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 0 18px;
  position: relative;
  transition: color var(--transition-fast);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 18px;
  right: 18px;
  height: 2px;
  background-color: var(--color-black);
  transform: scaleX(0);
  transition: transform var(--transition-normal);
  transform-origin: center;
}

.nav__link:hover::after,
.nav__link.active::after {
  transform: scaleX(1);
}

.nav__separator {
  color: #aaa;
  font-size: 15px;
  font-weight: 300;
  padding: 0 4px;
  user-select: none;
}

/* Logo - centered */
.header__logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--color-black);
}

.header__logo img {
  height: 55px;
}

.header__logo-text {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 600;
  font-family: var(--font-heading);
  white-space: nowrap;
}

/* Right side */
.header__right {
  display: flex;
  align-items: center;
  gap: 15px;
}

.header__social-link {
  color: var(--color-black);
  font-size: 16px;
  text-decoration: none;
  transition: opacity var(--transition-fast);
}

.header__social-link:hover {
  opacity: 0.7;
}

.header__lang {
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
  color: var(--color-black);
  font-family: var(--font-heading);
}

.header__lang:hover {
  opacity: 0.7;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  width: 30px;
}

.hamburger__line {
  width: 100%;
  height: 2px;
  background-color: var(--color-black);
  transition: transform var(--transition-normal), opacity var(--transition-normal);
}

.hamburger.open .hamburger__line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.open .hamburger__line:nth-child(2) {
  opacity: 0;
}

.hamburger.open .hamburger__line:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ---------- Footer ---------- */
.footer {
  background-color: #191919;
  color: var(--color-white);
  padding: 0;
}

.footer__inner {
  display: flex;
  flex-direction: row-reverse;
  gap: 0;
  padding: 3vw 10vw;
}

.footer__cta,
.footer__social-col,
.footer__links,
.footer__brand {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 2vw;
  border-right: 1px solid rgba(255, 255, 255, 0.15);
}

.footer__brand {
  gap: 16px;
}

.footer__brand a {
  display: flex;
  justify-content: center;
}

.footer__brand img {
  width: 80%;
  height: auto;
  filter: brightness(0) invert(1);
}

.footer__logo {
  width: 80%;
}

.footer__copyright {
  font-size: 1.2rem;
  font-weight: 400;
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
}

.footer__heading {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 20px;
  text-align: center;
}

.footer__menu {
  list-style: none;
  text-align: center;
}

.footer__menu li {
  margin-bottom: 10px;
}

.footer__menu a {
  color: var(--color-white);
  text-decoration: none;
  font-family: "Assistant", sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: opacity var(--transition-fast);
}

.footer__menu a:hover {
  opacity: 0.7;
}

.footer__social {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.footer__social a {
  color: var(--color-white);
  width: 35px;
  height: 35px;
  border: 1px solid var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 16px;
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.footer__social a:hover {
  background-color: var(--color-white);
  color: var(--color-black);
}

.footer__cta {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn--rounded {
  border-radius: 25px;
}

/* ---------- Scroll to Top ---------- */
.scroll-top {
  position: fixed;
  bottom: 20px;
  left: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--color-white);
  border: 1px solid var(--color-gray-border);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--color-black);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
  z-index: 999;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.scroll-top.visible {
  opacity: 1;
  pointer-events: auto;
}

.scroll-top:hover {
  background-color: var(--color-gray-light);
}

/* ---------- WhatsApp Floating Button ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--color-green);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  text-decoration: none;
  z-index: 999;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.5);
}

/* ---------- Responsive ---------- */

/* Tablet: nav collapses to hamburger at 1147px (matches Elementor dropdown-tablet breakpoint) */
@media (max-width: 1147px) {
  .hamburger {
    display: flex;
    order: -1;
  }

  .nav {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background-color: var(--color-white);
    flex-direction: column;
    padding: 20px;
    border-bottom: 1px solid #eee;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }

  .nav.open {
    display: flex;
  }

  .nav__link {
    padding: 12px 0;
    font-size: 14px;
  }

  .nav__link::after {
    left: 0;
    right: 0;
  }

  .nav__separator {
    display: none;
  }

  .header__logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }
}

/* Mobile: footer and other adjustments at 767px */
@media (max-width: 767px) {
  .header__logo-text span {
    display: none;
  }

  .footer__inner {
    flex-direction: column;
    text-align: center;
    padding: 3vw;
    gap: 20px;
  }

  .footer__social {
    justify-content: center;
  }

  .footer__cta {
    align-items: center;
  }
}
