/* ----------------------------------- */
/*            General Styles           */
/* ----------------------------------- */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root{
  --white: #fff;
  --grey: #9e9e9e;
  --black: #000;
  --viewport-section-height: 100vh; /* Desktop default */
}

html{
  scroll-behavior: smooth;
  font-size: 62.5%
}

body {
  max-width: 100%;
  min-height: 100%;
  font-family: "Nunito Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'REM', sans-serif;
}

input,
textarea,
button,
select {
  font-family: inherit;
}

main {
  width: 100%;
}

button {
  background: none;
  border: none;
  font: inherit;
  color: var(--white);
}

a, ul {
  color: var(--white);
  text-decoration: none;
}

.menu_header {
  font-size: 10px;
}

/* Initial state for lazy images (before they appear) */
img.lazy-loaded {
  opacity: 0;
  transform: translateY(12px) scale(0.98);
  transition:
    opacity 0.5s ease-out,
    transform 0.5s ease-out;
  will-change: opacity, transform;
}

/* When visible */
img.lazy-loaded.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ----------------------------------- */
/*                Header               */
/* ----------------------------------- */
header {
    position: fixed;
    width: 100%;
    top: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 500; /* z-index higher because the header will be on top of mobile menu container */
    padding: 30px 30px;
}

.header_content {
    width: 90%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1;
}

/* with this the logo container stays centered for desktop and tablet */
.left_nav_header, 
.right_nav_header {
  width: 30%;
}

.logo_container {
  width: 40%;
  justify-content: center;
}

@media (max-width: 980px) {
  /* remove left nav header and move logo on the left side, not centered anymore */
  .left_nav_header {
    display: none;
  }

  .right_nav_header {
    width: 20%;
  }

  .logo_container{
    width: 80%;
    justify-content: flex-start;
  }
}

.logo_container img {
  width: 90px;
  height: 90px;
}

.left_nav_header_menu_links, .logo_container, .right_nav_header_menu_links {
  display: flex;
  align-items: center;
}

.left_nav_header_menu_links{
  justify-content: flex-start;
  gap: 2rem;
}

.right_nav_header_menu_links{
  justify-content: flex-end;
  gap: 1.3rem;
}

.left_nav_header_menu_links li, .right_nav_header_menu_links li {
    list-style: none;
    white-space: nowrap;
    position: relative;
    display: flex;
    align-items: center;
    fill: var(--white);
    font-size: 1.5rem;
    font-weight: 400;
    text-transform: uppercase;
    transition: transform 0.3s linear;
}

.left_nav_header_menu_links li:hover, .right_nav_header_menu_links li:hover{
  transform: scale(1.08);
}

/* --- Dropdown trigger (My Services button) --- */
.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 3px;

  background: transparent;
  border: none;
  cursor: pointer;

  font: inherit;
  color: inherit;
  text-transform: inherit;
  padding: 6px 0;

  line-height: 1;
}

/* SVG arrow */
.dropdown-arrow {
  height: 18px;
  width: 18px;
  display: inline-block;
  flex: 0 0 auto;
  transform-origin: center;
  transition: transform 0.2s ease;
}

/* Rotate arrow when dropdown is open */
.has-dropdown:hover .dropdown-arrow,
.has-dropdown:focus-within .dropdown-arrow {
  transform: rotate(180deg);
}

/* --- Dropdown menu My Services --- */
.dropdown-menu {
  position: absolute;
  top: calc(100% + 2px);
  left: 0;

  min-width: 240px;
  padding: 10px;
  margin: 0;
  list-style: none;

  background: linear-gradient(180deg, #fbfaf8 0%, #efece7 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);

  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 999;
}

/* Disable scale hover effect for dropdown items */
.dropdown-menu li {
  transition: none !important;
}

.dropdown-menu li:hover {
  transform: none !important;
}

.dropdown-menu li a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  text-decoration: none;
  color: #000;
  font-size: inherit;
  line-height: 1.2;
}

.dropdown-menu li a:hover {
  background: rgba(0, 0, 0, 0.06);
}

/* Open dropdown on hover OR keyboard focus */
.has-dropdown:hover .dropdown-menu,
.has-dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Nice keyboard focus */
.nav-dropdown-trigger:focus {
  outline: 2px solid rgba(255, 255, 255, 0.35);
  outline-offset: 3px;
  border-radius: 10px;
}

ul.right_nav_header_menu_links svg {
  width: 24px;
  height: 24px;
  display: block;
}

/* hide header by moving it up & fade-out background-color */
.navigation_header {
  background-color: transparent;
  transition: transform 0.5s ease, opacity 0.5s ease, background-color 0.35s ease-in-out;;
}

.navigation_header.hidden {
  transform: translateY(-100%);
  opacity: 0;
}

.navigation_header.scrolled {
  background-color: rgba(0, 0, 0, 0.7);
}

/* for mobile header when it passes hero section, bg becomes transparent black, but i want it to become
transparent full (remove black bg) when mobile menu is open so is not overlaying */
.navigation_header.scrolled.menu-open {
  background-color: transparent;
}

#contact-link{
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  border: 1px solid var(--white);
}

#contact-link a {
  color: #fff;
  font-weight: 500;
}
/* end */

/* ----------------------------------- */
/*              Mobile Nav             */
/* ----------------------------------- */

/* HAMBURGER ONLY */
.hamburger_icon_nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  z-index: 300;
  position: relative;
}

.hamburger_icon_nav svg {
  width: 40px;
  height: 40px;
  fill: white;
}

/* HAMBURGER - X BUTTON ANIMATION */
.hamburger_icon_nav .bar {
  transform-origin: center;
  transition: transform 0.5s ease, opacity 0.35s ease;
}

/* closed state → 3 lines */
.hamburger_icon_nav .top-bar {
  transform: translateY(-5px);   /* move up from center */
}

.hamburger_icon_nav .middle-bar {
  transform: translateY(0);      /* stay at center */
}

.hamburger_icon_nav .bottom-bar {
  transform: translateY(5px);    /* move down from center */
}

/* open state (menu active) → perfect X */
.hamburger_icon_nav.active .top-bar {
  transform: rotate(45deg);
}

.hamburger_icon_nav.active .middle-bar {
  opacity: 0;
}

.hamburger_icon_nav.active .bottom-bar {
  transform: rotate(-45deg);
}
/* ANIMATION ENDS HERE */

/* KEEPS IT TOP RIGHT AS HAMBURGER IS IN THIS CONTAINER */
.right_nav_header {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
/* HAMBURGER ENDS HERE */

/* MOBILE MENU */
.mobile_menu_container {
  position: fixed;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  background-color: var(--black);
  padding: 200px 30px 50px 30px;
  z-index: 200;
  overflow-x: hidden;
  overflow-y: auto;

  transform: translateX(100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.55s ease, opacity 0.35s ease;
}

.mobile_menu_container.active {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

.mobile_menu_content {
  width: 100%;
  max-width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

.mobile_menu_content ul {
  list-style: none;
}

.mobile_menu_links_list{
  list-style: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
}

.mobile_menu_link a {
  color: var(--white);
  font-size: 2rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* My Services with right arrow for submenu */
.mobile_services_trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;

  background: transparent;
  border: none;
  cursor: pointer;

  color: var(--white);
  font-size: 2rem;
  text-transform: uppercase;
  letter-spacing: 1px;

  padding: 0;
}

.mobile_arrow_right {
  color: var(--white);
  display: inline-block;
  flex: 0 0 auto;
}

.mobile_menu_social_links_list{
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
}

.mobile_menu_social_link a {
  color: var(--white);
  font-size: 1.6rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.mobile_menu_social_link svg {
  width: 36px !important;
  height: 36px !important;
  display: block;
  fill: var(--white)
}

html.no-scroll,
body.no-scroll {
  overflow: hidden;
  touch-action: none; /* good for iOS bounce */
}

/* AMBIENT GLOW BEHIND THE MENU EFFECT */
.mobile_menu_container::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;

  /* The glow itself */
  background: radial-gradient(
      circle at 50% 45%,
      rgba(255, 255, 255, 0.10),
      rgba(255, 255, 255, 0.02) 35%,
      rgba(0, 0, 0, 1) 80%
  );

  opacity: 0;
  transition: opacity 0.6s ease;
}

/* When menu opens → glow fades in */
.mobile_menu_container.active::before {
  opacity: 1;
}

/* SLIDE + FADE STAGGER ANIMATION FOR THE LINKS */
/* Base state: hidden + moved slightly down */
.mobile_menu_links_list .mobile_menu_link a {
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.mobile_menu_container.active .mobile_menu_link:nth-of-type(1) a {
  transition-delay: 0.05s;
  opacity: 1;
  transform: translateY(0);
}

.mobile_menu_container.active .mobile_menu_link:nth-of-type(2) a {
  transition-delay: 0.10s;
  opacity: 1;
  transform: translateY(0);
}

.mobile_menu_container.active .mobile_menu_link:nth-of-type(3) a {
  transition-delay: 0.15s;
  opacity: 1;
  transform: translateY(0);
}

.mobile_menu_container.active .mobile_menu_link:nth-of-type(4) a {
  transition-delay: 0.20s;
  opacity: 1;
  transform: translateY(0);
}

/* <br> is ignored because <br> is NOT .mobile_menu_link */
.mobile_menu_container.active .mobile_menu_link:nth-of-type(5) a {
  transition-delay: 0.25s;
  opacity: 1;
  transform: translateY(0);
}

.mobile_menu_container.active .mobile_menu_link:nth-of-type(6) a {
  transition-delay: 0.30s;
  opacity: 1;
  transform: translateY(0);
}

#mobile-contact-link a {
  display: inline-flex;
  justify-content: center;
  align-items: center;

  padding: 0.9rem 1.8rem;
  border-radius: 999px;
  border: 1px solid var(--white);

  font-size: 1.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* =========================================
   NEW: Submenu (My Services)
   ========================================= */
.mobile_services_submenu {
  position: absolute;
  inset: 0;
  z-index: 250;

  background-color: var(--black);

  padding: 160px 30px 50px 30px;

  overflow-y: auto;
  overflow-x: hidden;

  transform: translateX(100%);
  opacity: 0;
  pointer-events: none;

  transition: transform 0.55s ease, opacity 0.35s ease;
}

.mobile_services_submenu::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;

  background: radial-gradient(
      circle at 50% 45%,
      rgba(255, 255, 255, 0.10),
      rgba(255, 255, 255, 0.02) 35%,
      rgba(0, 0, 0, 1) 80%
  );

  opacity: 0;
  transition: opacity 0.6s ease;
}

.mobile_services_submenu.active {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

.mobile_services_submenu.active::before {
  opacity: 1;
}

.mobile_services_back {
  display: inline-flex;
  align-items: center;
  gap: 2px;

  background: transparent;
  border: none;
  cursor: pointer;

  color: var(--white);
  font-size: 1.6rem;
  text-transform: uppercase;
  letter-spacing: 1px;

  margin-bottom: 3rem;
  padding: 0;
}

.mobile_arrow_left {
  color: var(--white);
  display: inline-block;
  flex: 0 0 auto;
}

.mobile_services_links_list {
  list-style: none;
  padding: 0;
  margin: 0;

  display: flex;
  flex-direction: column;
  gap: 2rem;

  align-items: center;
  justify-content: center;
  text-align: center;
}

.mobile_services_link a {
  color: var(--white);
  font-size: 2rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
  opacity: 1;
}

/* ----------------------------------- */
/*                Fonts                */
/* ----------------------------------- */

/* ----------------------------------- */
/*               Footer                */
/* ----------------------------------- */
footer{
  position: relative;
  bottom: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  background-color: black;
}

.footer_links{
  width: 90%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 30px 30px;
  margin: 0 auto;
}

.main_footer_links_container{
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 50px 0px;
}

.footer_contact{
  width: 30%;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
}

.footer_contact a {
  font-size: 1.2rem;
}

.footer_contact_top, .footer_contact_bottom {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo_container_footer {
  width: 40%;
  justify-content: center;
}

.logo_container_footer img {
  width: 90px;
  height: 90px;
}

.logo_container_footer {
  display: flex;
  align-items: center;
}

.footer_location{
  width: 30%;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
  text-transform: uppercase;
}

.footer_location p {
  text-transform: uppercase;
  font-size: clamp(1rem, 1vw, 1.2rem);
  letter-spacing: 0.6px;
  text-align: left;
}

.footer_contact_top svg, .footer_contact_bottom svg {
  width: 24px;
  height: 24px;
  display: block;
  fill: white;
}

.footer_info_container{
  border-top: 1px solid white;
}

.footer_info_container{
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 15px;
}

.footer_info_container p {
  text-transform: uppercase;
  font-weight: 450;
  letter-spacing: 0.6px;
}

.footer_info_container p:first-child {
  font-size: clamp(1rem, 1vw, 1.5rem);
}

.footer_info_container p:nth-child(2) {
  font-size: clamp(0.8rem, 0.8vw, 1.3rem);
}

.secondary_footer_links_container{
  width: 100%;
  padding: 0% 30%;
}

.secondary_footer_links_nav{
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  list-style: none;
}

.secondary_footer_links_nav li {
  text-transform: uppercase;
  font-size: clamp(0.8rem, 0.8vw, 1.2rem);
  letter-spacing: 0.6px;
  transition: transform 0.3s linear;
}

.secondary_footer_links_nav li:hover {
  transform: scale(1.08);
}

/* ----------------------------------- */
/*            WhatsApp button          */
/* ----------------------------------- */
.whatsapp_floating_btn {
  position: fixed;
  right: 3rem;
  bottom: 3rem;
  z-index: 199;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 5.5rem;
  height: 5.5rem;
}

.whatsapp_floating_btn img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 50%;
  transition: transform 0.3s linear;
}

.whatsapp_floating_btn img:hover{
  transform: scale(1.05);
}

/* ----------------------------------- */
/*            Media Queries            */
/* ----------------------------------- */

@media (max-width: 980px) {
  .hide-mobile { 
    display: none; 
  }
}

@media (min-width: 981px) {
  .hide-desktop { 
    display: none; 
  }
}

@media(max-width: 981px){
    html,
    body{
    overflow-x: hidden;
    }
}

@media(max-width: 768px){
    .whatsapp_floating_btn {
    width: 4rem;
    height: 4rem;
  }

    .logo_container img {
    width: 70px;
    height: 70px;
  }
}

/* SHOW ONLY HAMBURGER BUTTON ON MOBILE */
@media (max-width: 980px) {
    /* Need to keep the parent containers of the links so logo stays centered and also because
    right_nav_header can't be display none as the hamburger button is included in it */
    .left_nav_header_menu_links, 
    .right_nav_header_menu_links {
        display: none;
    }
}

@media (max-width: 767px) {
  .main_footer_links_container {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0px 50px 0px;
  gap: 5rem;
  text-align: center;
  }

  .footer_contact, .footer_location {
      width: 100%;
    }

  .footer_location p {
    text-align: center;
  }

  .secondary_footer_links_container {
    padding: 0%;
  }

  .whatsapp_floating_btn {
    right: 2rem;
    bottom: 2rem;
  }
}